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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0f6b7668a07fcfc2be7c89b25bd531b6c4285bc2
| 4,466
|
py
|
Python
|
tests/prune_tests.py
|
dantaki/svtools
|
9e13813ba25d0588bf2bbea204e34e7cef9bc039
|
[
"MIT"
] | 120
|
2015-06-10T08:48:55.000Z
|
2022-03-22T13:17:50.000Z
|
tests/prune_tests.py
|
dantaki/svtools
|
9e13813ba25d0588bf2bbea204e34e7cef9bc039
|
[
"MIT"
] | 281
|
2015-05-01T20:08:54.000Z
|
2022-01-26T23:14:51.000Z
|
tests/prune_tests.py
|
dantaki/svtools
|
9e13813ba25d0588bf2bbea204e34e7cef9bc039
|
[
"MIT"
] | 52
|
2015-06-08T20:17:08.000Z
|
2022-03-14T19:57:49.000Z
|
from unittest import TestCase, main
import os
import sys
import tempfile
import difflib
import svtools.prune
class IntegrationTestPrune(TestCase):
def run_integration_test(self):
test_directory = os.path.dirname(os.path.abspath(__file__))
test_data_dir = os.path.join(test_directory, 'test_data', 'prune')
input = os.path.join(test_data_dir, 'input.no_missing.bed')
expected_result = os.path.join(test_data_dir, 'expected.no_missing.bed')
temp_descriptor, temp_output_path = tempfile.mkstemp(suffix='.bed')
with open(input) as input_handle, os.fdopen(temp_descriptor, 'w') as output_handle:
pruner = svtools.prune.Pruner(50, None)
pruner.cluster_bedpe(input_handle, output_handle, False)
expected_lines = open(expected_result).readlines()
produced_lines = open(temp_output_path).readlines()
diff = difflib.unified_diff(produced_lines, expected_lines, fromfile=temp_output_path, tofile=expected_result)
result = ''.join(diff)
if result != '':
for line in result:
sys.stdout.write(line)
self.assertFalse(result)
os.remove(temp_output_path)
def run_sname_integration_test(self):
test_directory = os.path.dirname(os.path.abspath(__file__))
test_data_dir = os.path.join(test_directory, 'test_data', 'prune')
input = os.path.join(test_data_dir, 'input.sname_merge.bedpe')
expected_result = os.path.join(test_data_dir, 'expected.sname_merge.bedpe')
temp_descriptor, temp_output_path = tempfile.mkstemp(suffix='.bed')
with open(input) as input_handle, os.fdopen(temp_descriptor, 'w') as output_handle:
pruner = svtools.prune.Pruner(50, None)
pruner.cluster_bedpe(input_handle, output_handle, False)
expected_lines = open(expected_result).readlines()
produced_lines = open(temp_output_path).readlines()
diff = difflib.unified_diff(produced_lines, expected_lines, fromfile=temp_output_path, tofile=expected_result)
result = ''.join(diff)
if result != '':
for line in result:
sys.stdout.write(line)
self.assertFalse(result)
os.remove(temp_output_path)
def run_sname_multiprune_integration_test(self):
test_directory = os.path.dirname(os.path.abspath(__file__))
test_data_dir = os.path.join(test_directory, 'test_data', 'prune')
input = os.path.join(test_data_dir, 'input.multi_prune.bedpe')
expected_result = os.path.join(test_data_dir, 'expected.multi_prune.bedpe')
temp_descriptor, temp_output_path = tempfile.mkstemp(suffix='.bed')
with open(input) as input_handle, os.fdopen(temp_descriptor, 'w') as output_handle:
pruner = svtools.prune.Pruner(50, None)
pruner.cluster_bedpe(input_handle, output_handle, False)
expected_lines = open(expected_result).readlines()
produced_lines = open(temp_output_path).readlines()
diff = difflib.unified_diff(produced_lines, expected_lines, fromfile=temp_output_path, tofile=expected_result)
result = ''.join(diff)
if result != '':
for line in result:
sys.stdout.write(line)
self.assertFalse(result)
os.remove(temp_output_path)
def run_sname_duplicate_output_integration_test(self):
test_directory = os.path.dirname(os.path.abspath(__file__))
test_data_dir = os.path.join(test_directory, 'test_data', 'prune')
input = os.path.join(test_data_dir, 'input.dup_lines.bed')
expected_result = os.path.join(test_data_dir, 'expected.dup_lines.bed')
temp_descriptor, temp_output_path = tempfile.mkstemp(suffix='.bed')
with open(input) as input_handle, os.fdopen(temp_descriptor, 'w') as output_handle:
pruner = svtools.prune.Pruner(75, None)
pruner.cluster_bedpe(input_handle, output_handle, False)
expected_lines = open(expected_result).readlines()
produced_lines = open(temp_output_path).readlines()
diff = difflib.unified_diff(produced_lines, expected_lines, fromfile=temp_output_path, tofile=expected_result)
result = ''.join(diff)
if result != '':
for line in result:
sys.stdout.write(line)
self.assertFalse(result)
os.remove(temp_output_path)
if __name__ == "__main__":
main()
| 51.333333
| 118
| 0.683162
| 565
| 4,466
| 5.092035
| 0.127434
| 0.04171
| 0.077859
| 0.058394
| 0.914494
| 0.914494
| 0.914494
| 0.914494
| 0.914494
| 0.914494
| 0
| 0.002268
| 0.210255
| 4,466
| 86
| 119
| 51.930233
| 0.813439
| 0
| 0
| 0.728395
| 0
| 0
| 0.059561
| 0.03202
| 0
| 0
| 0
| 0
| 0.049383
| 1
| 0.049383
| false
| 0
| 0.074074
| 0
| 0.135802
| 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
|
0f7941b2836cce282015431d44e115ab47015080
| 5,468
|
py
|
Python
|
spekev2_verification_testsuite/test_case_3_preset_video_5_preset_audio_3.py
|
amphied/speke-reference-server
|
7b589a333fb3c619c6f7e53483d43de9a588f7b7
|
[
"Apache-2.0"
] | null | null | null |
spekev2_verification_testsuite/test_case_3_preset_video_5_preset_audio_3.py
|
amphied/speke-reference-server
|
7b589a333fb3c619c6f7e53483d43de9a588f7b7
|
[
"Apache-2.0"
] | null | null | null |
spekev2_verification_testsuite/test_case_3_preset_video_5_preset_audio_3.py
|
amphied/speke-reference-server
|
7b589a333fb3c619c6f7e53483d43de9a588f7b7
|
[
"Apache-2.0"
] | null | null | null |
import pytest
from .helpers import utils, speke_element_assertions
import xml.etree.ElementTree as ET
@pytest.fixture(scope="session")
def widevine_response(spekev2_url):
return utils.send_speke_request(utils.TEST_CASE_3_P_V_5_A_3, utils.PRESETS_WIDEVINE, spekev2_url)
@pytest.fixture(scope="session")
def playready_response(spekev2_url):
return utils.send_speke_request(utils.TEST_CASE_3_P_V_5_A_3, utils.PRESETS_PLAYREADY, spekev2_url)
@pytest.fixture(scope="session")
def fairplay_response(spekev2_url):
return utils.send_speke_request(utils.TEST_CASE_3_P_V_5_A_3, utils.PRESETS_FAIRPLAY, spekev2_url)
@pytest.fixture(scope="session")
def widevine_playready_response(spekev2_url):
return utils.send_speke_request(utils.TEST_CASE_3_P_V_5_A_3, utils.PRESETS_WIDEVINE_PLAYREADY, spekev2_url)
@pytest.fixture(scope="session")
def widevine_fairplay_response(spekev2_url):
return utils.send_speke_request(utils.TEST_CASE_3_P_V_5_A_3, utils.PRESETS_WIDEVINE_FAIRPLAY, spekev2_url)
@pytest.fixture(scope="session")
def playready_fairplay_response(spekev2_url):
return utils.send_speke_request(utils.TEST_CASE_3_P_V_5_A_3, utils.PRESETS_PLAYREADY_FAIRPLAY, spekev2_url)
@pytest.fixture(scope="session")
def widevine_playready_fairplay_response(spekev2_url):
return utils.send_speke_request(utils.TEST_CASE_3_P_V_5_A_3, utils.PRESETS_WIDEVINE_PLAYREADY_FAIRPLAY, spekev2_url)
def test_case_3_widevine(widevine_response):
root_cpix = ET.fromstring(widevine_response)
speke_element_assertions.check_cpix_version(root_cpix)
speke_element_assertions.validate_root_element(root_cpix)
speke_element_assertions.validate_mandatory_cpix_child_elements(root_cpix)
speke_element_assertions.validate_content_key_list_element(root_cpix, 8, "cenc")
speke_element_assertions.validate_drm_system_list_element(root_cpix, 8, 8, 8, 0, 0)
speke_element_assertions.validate_content_key_usage_rule_list_element(root_cpix, 8)
def test_case_3_playready(playready_response):
root_cpix = ET.fromstring(playready_response)
speke_element_assertions.check_cpix_version(root_cpix)
speke_element_assertions.validate_root_element(root_cpix)
speke_element_assertions.validate_mandatory_cpix_child_elements(root_cpix)
speke_element_assertions.validate_content_key_list_element(root_cpix, 8, "cenc")
speke_element_assertions.validate_drm_system_list_element(root_cpix, 8, 8, 0, 8, 0)
speke_element_assertions.validate_content_key_usage_rule_list_element(root_cpix, 8)
def test_case_3_fairplay(fairplay_response):
root_cpix = ET.fromstring(fairplay_response)
speke_element_assertions.check_cpix_version(root_cpix)
speke_element_assertions.validate_root_element(root_cpix)
speke_element_assertions.validate_mandatory_cpix_child_elements(root_cpix)
speke_element_assertions.validate_content_key_list_element(root_cpix, 8, "cbcs")
speke_element_assertions.validate_drm_system_list_element(root_cpix, 8, 8, 0, 0, 8)
speke_element_assertions.validate_content_key_usage_rule_list_element(root_cpix, 8)
def test_case_3_widevine_playready(widevine_playready_response):
root_cpix = ET.fromstring(widevine_playready_response)
speke_element_assertions.check_cpix_version(root_cpix)
speke_element_assertions.validate_root_element(root_cpix)
speke_element_assertions.validate_mandatory_cpix_child_elements(root_cpix)
speke_element_assertions.validate_content_key_list_element(root_cpix, 8, "cenc")
speke_element_assertions.validate_drm_system_list_element(root_cpix, 16, 8, 8, 8, 0)
speke_element_assertions.validate_content_key_usage_rule_list_element(root_cpix, 8)
def test_case_3_widevine_fairplay(widevine_fairplay_response):
root_cpix = ET.fromstring(widevine_fairplay_response)
speke_element_assertions.check_cpix_version(root_cpix)
speke_element_assertions.validate_root_element(root_cpix)
speke_element_assertions.validate_mandatory_cpix_child_elements(root_cpix)
speke_element_assertions.validate_content_key_list_element(root_cpix, 8, "cbcs")
speke_element_assertions.validate_drm_system_list_element(root_cpix, 16, 8, 8, 0, 8)
speke_element_assertions.validate_content_key_usage_rule_list_element(root_cpix, 8)
def test_case_3_playready_fairplay(playready_fairplay_response):
root_cpix = ET.fromstring(playready_fairplay_response)
speke_element_assertions.check_cpix_version(root_cpix)
speke_element_assertions.validate_root_element(root_cpix)
speke_element_assertions.validate_mandatory_cpix_child_elements(root_cpix)
speke_element_assertions.validate_content_key_list_element(root_cpix, 8, "cbcs")
speke_element_assertions.validate_drm_system_list_element(root_cpix, 16, 8, 0, 8, 8)
speke_element_assertions.validate_content_key_usage_rule_list_element(root_cpix, 8)
def test_case_3_widevine_playready_fairplay(widevine_playready_fairplay_response):
root_cpix = ET.fromstring(widevine_playready_fairplay_response)
speke_element_assertions.check_cpix_version(root_cpix)
speke_element_assertions.validate_root_element(root_cpix)
speke_element_assertions.validate_mandatory_cpix_child_elements(root_cpix)
speke_element_assertions.validate_content_key_list_element(root_cpix, 8, "cbcs")
speke_element_assertions.validate_drm_system_list_element(root_cpix, 24, 8, 8, 8, 8)
speke_element_assertions.validate_content_key_usage_rule_list_element(root_cpix, 8)
| 47.137931
| 120
| 0.850037
| 789
| 5,468
| 5.333333
| 0.070976
| 0.093156
| 0.22481
| 0.249525
| 0.95865
| 0.953897
| 0.9173
| 0.875
| 0.835076
| 0.835076
| 0
| 0.018939
| 0.082663
| 5,468
| 115
| 121
| 47.547826
| 0.819976
| 0
| 0
| 0.525
| 0
| 0
| 0.014082
| 0
| 0
| 0
| 0
| 0
| 0.5375
| 1
| 0.175
| false
| 0
| 0.0375
| 0.0875
| 0.3
| 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
|
7e16965166cdb807f535cfadf5a629741e900ed6
| 21,621
|
py
|
Python
|
module2/RL_worlds.py
|
ccnss/ccnss2017_students
|
619c4549fc6f54cc6df1108725b835a6e5019ce0
|
[
"CC-BY-4.0"
] | 5
|
2017-07-17T05:26:26.000Z
|
2021-04-03T06:54:09.000Z
|
module2/RL_worlds.py
|
ccnss/ccnss2017_students
|
619c4549fc6f54cc6df1108725b835a6e5019ce0
|
[
"CC-BY-4.0"
] | null | null | null |
module2/RL_worlds.py
|
ccnss/ccnss2017_students
|
619c4549fc6f54cc6df1108725b835a6e5019ce0
|
[
"CC-BY-4.0"
] | 8
|
2017-07-06T02:01:16.000Z
|
2018-06-26T15:57:12.000Z
|
#!/usr/bin/python
# ENVIRONMENT / WORLD DEFINITIONS
class world(object):
def __init__(self):
return
def get_outcome(self):
print("Abstract method, not implemented")
return
def get_all_outcomes(self):
outcomes = {}
for state in xrange(self.n_states):
for action in xrange(self.n_actions):
next_state, reward = self.get_outcome(state, action)
outcomes[state, action] = [(1, next_state, reward)]
return outcomes
class n_armed_bandit(world):
"""
World: N-Armed bandit.
Only one state, multiple actions.
Each action returns different amount of reward.
"""
def __init__(self):
self.name = "n_armed_bandit"
self.n_states = 1
self.n_actions = 4
self.dim_x = 1
self.dim_y = 1
def get_outcome(self, state, action):
if not 0 <= action <= self.n_actions:
print("Action must be between 0 and 3.")
return None, None
next_state = None # session ends
rewards = [0, 0.5, -0.5, 1]
reward = rewards[action]
return int(next_state) if next_state is not None else None, reward
class cheese_world(world):
"""
World: Cheese world.
4 states, 2 actions.
States represent a one-dimensional track: 0 1 2 3
0 is always the starting state.
Actions 0, 1 correspond to move left and right.
Moving left at state 0 stays at 0.
Moving right at state 2 gets the reward.
Moving right at state 3 stays at 3.
"""
def __init__(self):
self.name = "cheese_world"
self.n_states = 4
self.n_actions = 2
self.dim_x = 4
self.dim_y = 1
def get_outcome(self, state, action):
if state == 3: # goal state
reward = 0
next_state = None
return next_state, reward
reward = 0 # default reward
if action == 0: # move left
next_state = state - 1
if state == 0:
next_state = state
elif action == 1: # move right
next_state = state + 1
if state == 2:
reward = 1
else:
print("Action must be between 0 and 1.")
next_state = None
reward = None
return int(next_state) if next_state is not None else None, reward
class cliff_world(world):
"""
World: Cliff world.
40 states (4-by-10 grid world).
The mapping from state to the grids are as follows:
30 31 32 ... 39
20 21 22 ... 29
10 11 12 ... 19
0 1 2 ... 9
0 is the starting state (S) and 9 is the goal state (G).
Actions 0, 1, 2, 3 correspond to right, up, left, down.
Moving anywhere from state 9 (goal state) will end the session.
Taking action down at state 11-18 will go back to state 0 and incur a
reward of -100.
Landing in any states other than the goal state will incur a reward of -1.
Going towards the border when already at the border will stay in the same
place.
"""
def __init__(self):
self.name = "cliff_world"
self.n_states = 40
self.n_actions = 4
self.dim_x = 10
self.dim_y = 4
def get_outcome(self, state, action):
if state == 9: # goal state
reward = 0
next_state = None
return next_state, reward
reward = -1 # default reward value
if action == 0: # move right
next_state = state + 1
if state % 10 == 9: # right border
next_state = state
elif state == 0: # start state (next state is cliff)
next_state = None
reward = -100
elif action == 1: # move up
next_state = state + 10
if state >= 30: # top border
next_state = state
elif action == 2: # move left
next_state = state - 1
if state % 10 == 0: # left border
next_state = state
elif action == 3: # move down
next_state = state - 10
if state >= 11 and state <= 18: # next is cliff
next_state = None
reward = -100
elif state <= 9: # bottom border
next_state = state
else:
print("Action must be between 0 and 3.")
next_state = None
reward = None
return int(next_state) if next_state is not None else None, reward
class quentins_world(world):
"""
World: Quentin's world.
100 states (10-by-10 grid world).
The mapping from state to the grid is as follows:
90 ... 99
...
40 ... 49
30 ... 39
20 21 22 ... 29
10 11 12 ... 19
0 1 2 ... 9
54 is the start state.
Actions 0, 1, 2, 3 correspond to right, up, left, down.
Moving anywhere from state 99 (goal state) will end the session.
Landing in red states incurs a reward of -1.
Landing in the goal state (99) gets a reward of 1.
Going towards the border when already at the border will stay in the same
place.
"""
def __init__(self):
self.name = "quentins_world"
self.n_states = 100
self.n_actions = 4
self.dim_x = 10
self.dim_y = 10
def get_outcome(self, state, action):
if state == 99: # goal state
reward = 0
next_state = None
return next_state, reward
reward = 0 # default reward value
if action == 0: # move right
next_state = state + 1
if state == 98: # next state is goal state
reward = 1
elif state % 10 == 9: # right border
next_state = state
elif state in [11, 21, 31, 41, 51, 61, 71,
12, 72,
73,
14, 74,
15, 25, 35, 45, 55, 65, 75]: # next state is red
reward = -1
elif action == 1: # move up
next_state = state + 10
if state == 89: # next state is goal state
reward = 1
if state >= 90: # top border
next_state = state
elif state in [2, 12, 22, 32, 42, 52, 62,
3, 63,
64,
5, 65,
6, 16, 26, 36, 46, 56, 66]: # next state is red
reward = -1
elif action == 2: # move left
next_state = state - 1
if state % 10 == 0: # left border
next_state = state
elif state in [17, 27, 37, 47, 57, 67, 77,
16, 76,
75,
14, 74,
13, 23, 33, 43, 53, 63, 73]: # next state is red
reward = -1
elif action == 3: # move down
next_state = state - 10
if state <= 9: # bottom border
next_state = state
elif state in [22, 32, 42, 52, 62, 72, 82,
23, 83,
84,
25, 85,
26, 36, 46, 56, 66, 76, 86]: # next state is red
reward = -1
else:
print("Action must be between 0 and 3.")
next_state = None
reward = None
return int(next_state) if next_state is not None else None, reward
class windy_cliff_grid(world):
"""
World: Windy grid world with cliffs.
84 states(6-by-14 grid world).
4 possible actions.
Actions 0, 1, 3, 4 correspond to right, up, left, down.
Each action returns different amount of reward.
"""
def __init__(self):
self.name = "windy_cliff_grid"
self.n_states = 168
self.n_actions = 4
self.dim_x = 14
self.dim_y = 12
def get_outcome(self, state, action):
"""
Obtains the outcome (next state and reward) obtained when taking
a particular action from a particular state.
Args:
state: int, current state.
action: int, action taken.
Returns:
the next state (int) and the reward (int) obtained.
"""
next_state = None
reward = 0
if state in [53, 131]: # end of MDP
return next_state, reward
if action == 0: # move right
next_state = state + 1
if state == 38: # goal state 1
next_state = 53
reward = 100
elif state == 158: # goal state 2
next_state = 131
reward = 100
elif state == 1: # cliff
next_state = None
reward = -100
elif 7 <= state <= 51 and (state % 14 == 7 or state % 14 == 8 or state % 14 == 9): # room 1 wind
next_state = state + 29
elif state in [63, 64, 65]: # room 1 wind
next_state = state + 15
elif 10 <= state <= 68 and (state % 14 == 10 or state % 14 == 11 or state % 14 == 12): # room 1 wind
next_state = state + 15
elif 113 <= state <= 157 and (state % 14 == 1 or state % 14 == 2 or state % 14 == 3): # room 2 wind
next_state = state - 13
elif 130 <= state <= 160 and (state % 14 == 4 or state % 14 == 5 or state % 14 == 6): # room 2 wind
next_state = state - 27
elif state in [116, 117, 118]: # room 2 wind
next_state = state - 13
elif 19 <= state <= 75 and state % 14 == 5: # room 1 left border
next_state = state
elif 105 <= state <= 161 and state % 14 == 7: # room 2 right border
next_state = state
elif state % 14 == 13: # world right border
next_state = state
elif action == 1: # move up
next_state = state - 14
if state in [16, 17, 18, 84]: # cliff
next_state = None
reward = -100
elif 21 <= state <= 65 and (state % 14 == 7 or state % 14 == 8 or state % 14 == 9): # room 1 wind
next_state = state + 14
elif state in [7, 8, 9]: # room 1 wind
next_state = state + 28
elif state in [77, 78, 79]: # room 1 wind
next_state = state
elif 24 <= state <= 82 and (state % 14 == 10 or state % 14 == 11 or state % 14 == 12): # room 1 wind
next_state = state
elif state in [10, 11, 12]: # room 1 wind
next_state = state + 14
elif 127 <= state <= 157 and (state % 14 == 1 or state % 14 == 2 or state % 14 == 3): # room 2 wind
next_state = state - 28
elif 144 <= state <= 160 and (state % 14 == 4 or state % 14 == 5 or state % 14 == 6): # room 2 wind
next_state = state - 42
elif state in [130, 131, 132]: # room 2 wind
next_state = state - 28
elif 90 <= state <= 97: # room 1 bottom border
next_state = state
elif 99 <= state <= 105: # room 2 top border
next_state = state
elif 0 <= state <= 13: # world top border
next_state = state
elif action == 2: # move left
next_state = state - 1
if state == 40: # goal state 1
next_state = 53
reward = 100
elif state == 160: # goal state 2
next_state = 131
reward = 100
elif state in [29, 43, 57, 71, 5]: # cliff
next_state = None
reward = -100
elif 7 <= state <= 51 and (state % 14 == 7 or state % 14 == 8 or state % 14 == 9): # room 1 wind
next_state = state + 27
elif state in [63, 64, 65]: # room 1 wind
next_state = state + 13
elif 10 <= state <= 68 and (state % 14 == 10 or state % 14 == 11 or state % 14 == 12): # room 1 wind
next_state = state + 13
elif 113 <= state <= 157 and (state % 14 == 1 or state % 14 == 2 or state % 14 == 3): # room 2 wind
next_state = state - 15
elif state == 99: # room 2 wind
next_state = state - 15
elif 130 <= state <= 160 and (state % 14 == 4 or state % 14 == 5 or state % 14 == 6): # room 2 wind
next_state = state - 29
elif state in [116, 117, 118]: # room 2 wind
next_state = state - 15
elif 20 <= state <= 76 and state % 14 == 6: # room 1 left border
next_state = state
elif 106 <= state <= 162 and state % 14 == 8: # room 2 right border
next_state = state
elif state % 14 == 0: # world left border
next_state = state
elif action == 3: # move down
next_state = state + 14
if state == 25: # goal state 1
next_state = 53
reward = 100
elif state == 145: # goal state 2
next_state = 131
reward = 100
elif state == 14: # cliff
next_state = None
reward = -100
elif 7 <= state <= 37 and (state % 14 == 7 or state % 14 == 8 or state % 14 == 9): # room 1 wind
next_state = state + 42
elif state in [49, 50, 51]: # room 1 wind
next_state = state + 28
elif 99 <= state <= 143 and (state % 14 == 1 or state % 14 == 2 or state % 14 == 3): # room 2 wind
next_state = state
elif state in [155, 156, 157]: # room 2 wind
next_state = state - 14
elif 116 <= state <= 146 and (state % 14 == 4 or state % 14 == 5 or state % 14 == 6): # room 2 wind
next_state = state - 14
elif state in [102, 103, 104]: # room 2 wind
next_state = state
elif state in [158, 159, 160]: # room 2 wind
next_state = state - 28
elif 76 <= state <= 83: # room 1 bottom border
next_state = state
elif 85 <= state <= 91: # room 2 top border
next_state = state
elif 154 <= state <= 167: # world bottom border
next_state = state
else:
print("Action must be between 0 and 3.")
next_state = None
reward = None
return int(next_state) if next_state is not None else None, reward
class windy_cliff_grid_2(windy_cliff_grid):
def get_outcome(self, state, action):
"""
Obtains the outcome (next state and reward) obtained when taking
a particular action from a particular state.
Args:
state: int, current state.
action: int, action taken.
Returns:
the next state (int) and the reward (int) obtained.
"""
next_state = None
reward = 0
if state in [53, 131]: # end of MDP
return next_state, reward
if action == 0: # move right
next_state = state + 1
if state == 38: # goal state 1
next_state = 53
reward = 100
elif state == 158: # goal state 2
next_state = 131
reward = 100
elif state == 1: # cliff
next_state = None
reward = -100
elif 7 <= state <= 51 and (state % 14 == 7 or state % 14 == 8 or state % 14 == 9): # room 1 wind
next_state = state + 29
elif state in [63, 64, 65]: # room 1 wind
next_state = state + 15
elif 10 <= state <= 68 and (state % 14 == 10 or state % 14 == 11 or state % 14 == 12): # room 1 wind
next_state = state + 15
elif 113 <= state <= 157 and (state % 14 == 1 or state % 14 == 2 or state % 14 == 3): # room 2 wind
next_state = state - 13
elif 130 <= state <= 160 and (state % 14 == 4 or state % 14 == 5 or state % 14 == 6): # room 2 wind
next_state = state - 27
elif state in [116, 117, 118]: # room 2 wind
next_state = state - 13
elif 5 <= state <= 75 and state % 14 == 5: # room 1 left border
next_state = state
elif 105 <= state <= 147 and state % 14 == 7: # room 2 right border
next_state = state
elif state % 14 == 13: # world right border
next_state = state
elif action == 1: # move up
next_state = state - 14
if state in [16, 17, 18, 84]: # cliff
next_state = None
reward = -100
elif 21 <= state <= 65 and (state % 14 == 7 or state % 14 == 8 or state % 14 == 9): # room 1 wind
next_state = state + 14
elif state in [7, 8, 9]: # room 1 wind
next_state = state + 28
elif state in [77, 78, 79]: # room 1 wind
next_state = state
elif 24 <= state <= 82 and (state % 14 == 10 or state % 14 == 11 or state % 14 == 12): # room 1 wind
next_state = state
elif state in [10, 11, 12]: # room 1 wind
next_state = state + 14
elif 127 <= state <= 157 and (state % 14 == 1 or state % 14 == 2 or state % 14 == 3): # room 2 wind
next_state = state - 28
elif 144 <= state <= 160 and (state % 14 == 4 or state % 14 == 5 or state % 14 == 6): # room 2 wind
next_state = state - 42
elif state in [130, 131, 132]: # room 2 wind
next_state = state - 28
elif 90 <= state <= 96: # room 1 bottom border
next_state = state
elif 98 <= state <= 105: # room 2 top border
next_state = state
elif 0 <= state <= 13: # world top border
next_state = state
elif action == 2: # move left
next_state = state - 1
if state == 40: # goal state 1
next_state = 53
reward = 100
elif state == 160: # goal state 2
next_state = 131
reward = 100
elif state in [29, 43, 57, 71, 5]: # cliff
next_state = None
reward = -100
elif 7 <= state <= 51 and (state % 14 == 7 or state % 14 == 8 or state % 14 == 9): # room 1 wind
next_state = state + 27
elif state in [63, 64, 65]: # room 1 wind
next_state = state + 13
elif 10 <= state <= 68 and (state % 14 == 10 or state % 14 == 11 or state % 14 == 12): # room 1 wind
next_state = state + 13
elif 113 <= state <= 157 and (state % 14 == 1 or state % 14 == 2 or state % 14 == 3): # room 2 wind
next_state = state - 15
elif state == 99: # room 2 wind
next_state = state - 15
elif 130 <= state <= 160 and (state % 14 == 4 or state % 14 == 5 or state % 14 == 6): # room 2 wind
next_state = state - 29
elif state in [116, 117, 118]: # room 2 wind
next_state = state - 15
elif 6 <= state <= 76 and state % 14 == 6: # room 1 left border
next_state = state
elif 106 <= state <= 148 and state % 14 == 8: # room 2 right border
next_state = state
elif state % 14 == 0: # world left border
next_state = state
elif action == 3: # move down
next_state = state + 14
if state == 25: # goal state 1
next_state = 53
reward = 100
elif state == 145: # goal state 2
next_state = 131
reward = 100
elif state == 14: # cliff
next_state = None
reward = -100
elif 7 <= state <= 37 and (state % 14 == 7 or state % 14 == 8 or state % 14 == 9): # room 1 wind
next_state = state + 42
elif state in [49, 50, 51]: # room 1 wind
next_state = state + 28
elif 99 <= state <= 143 and (state % 14 == 1 or state % 14 == 2 or state % 14 == 3): # room 2 wind
next_state = state
elif state in [155, 156, 157]: # room 2 wind
next_state = state - 14
elif 116 <= state <= 146 and (state % 14 == 4 or state % 14 == 5 or state % 14 == 6): # room 2 wind
next_state = state - 14
elif state in [102, 103, 104]: # room 2 wind
next_state = state
elif state in [158, 159, 160]: # room 2 wind
next_state = state - 28
elif 76 <= state <= 82: # room 1 bottom border
next_state = state
elif 84 <= state <= 91: # room 2 top border
next_state = state
elif 154 <= state <= 167: # world bottom border
next_state = state
else:
print("Action must be between 0 and 3.")
next_state = None
reward = None
return int(next_state) if next_state is not None else None, reward
| 41.41954
| 113
| 0.4818
| 2,838
| 21,621
| 3.587738
| 0.086681
| 0.150265
| 0.147122
| 0.098998
| 0.850128
| 0.843449
| 0.834021
| 0.813887
| 0.771656
| 0.771656
| 0
| 0.122733
| 0.43134
| 21,621
| 521
| 114
| 41.49904
| 0.705409
| 0.192591
| 0
| 0.792857
| 0
| 0
| 0.016843
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.033333
| false
| 0
| 0
| 0.002381
| 0.085714
| 0.016667
| 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
|
7e74625bba4991dc41fdf7c85411356baee0794e
| 2,609
|
py
|
Python
|
terrafirma/stock/migrations/0001_initial.py
|
AlexandraAlter/django-terrafirma
|
afce5946f173aded2b4bfea78cf1b1034ec32272
|
[
"MIT"
] | null | null | null |
terrafirma/stock/migrations/0001_initial.py
|
AlexandraAlter/django-terrafirma
|
afce5946f173aded2b4bfea78cf1b1034ec32272
|
[
"MIT"
] | null | null | null |
terrafirma/stock/migrations/0001_initial.py
|
AlexandraAlter/django-terrafirma
|
afce5946f173aded2b4bfea78cf1b1034ec32272
|
[
"MIT"
] | null | null | null |
# Generated by Django 3.1.2 on 2020-10-18 22:11
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('terrafirma', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Stock',
fields=[
('id',
models.AutoField(auto_created=True,
primary_key=True,
serialize=False,
verbose_name='ID')),
],
),
migrations.CreateModel(
name='StockAddition',
fields=[
('id',
models.AutoField(auto_created=True,
primary_key=True,
serialize=False,
verbose_name='ID')),
],
),
migrations.CreateModel(
name='StockRemoval',
fields=[
('id',
models.AutoField(auto_created=True,
primary_key=True,
serialize=False,
verbose_name='ID')),
('amount', models.PositiveIntegerField(blank=True)),
('unit', models.CharField(choices=[('g', 'grams'), ('c', 'count')], max_length=1)),
('date', models.DateField(auto_now=True)),
('plant',
models.ForeignKey(on_delete=django.db.models.deletion.PROTECT,
to='terrafirma.plant')),
],
options={
'abstract': False,
},
),
migrations.CreateModel(
name='StockExpiry',
fields=[
('id',
models.AutoField(auto_created=True,
primary_key=True,
serialize=False,
verbose_name='ID')),
('amount', models.PositiveIntegerField(blank=True)),
('unit', models.CharField(choices=[('g', 'grams'), ('c', 'count')], max_length=1)),
('date', models.DateField(auto_now=True)),
('plant',
models.ForeignKey(on_delete=django.db.models.deletion.PROTECT,
to='terrafirma.plant')),
],
options={
'verbose_name_plural': 'stock expiries',
},
),
]
| 34.786667
| 99
| 0.423917
| 189
| 2,609
| 5.740741
| 0.349206
| 0.050691
| 0.092166
| 0.084793
| 0.707834
| 0.707834
| 0.707834
| 0.707834
| 0.707834
| 0.707834
| 0
| 0.014894
| 0.459563
| 2,609
| 74
| 100
| 35.256757
| 0.75461
| 0.017248
| 0
| 0.746269
| 1
| 0
| 0.083528
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.029851
| 0
| 0.089552
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 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
| 7
|
0e37ab706387609138c20e27e66e5b79975e8de0
| 301
|
py
|
Python
|
playground_metrics/utils/__init__.py
|
ClementMaliet/playground-metrics
|
7a0607c14a830818f9450d2febd8ae5e1709f8cf
|
[
"MIT"
] | 2
|
2020-11-25T13:33:19.000Z
|
2021-04-16T08:14:16.000Z
|
playground_metrics/utils/__init__.py
|
ClementMaliet/playground-metrics
|
7a0607c14a830818f9450d2febd8ae5e1709f8cf
|
[
"MIT"
] | 1
|
2021-03-01T13:35:16.000Z
|
2021-03-01T15:38:04.000Z
|
playground_metrics/utils/__init__.py
|
ClementMaliet/playground-metrics
|
7a0607c14a830818f9450d2febd8ae5e1709f8cf
|
[
"MIT"
] | 4
|
2021-01-14T13:00:49.000Z
|
2022-03-09T04:00:55.000Z
|
def to_list(arr):
"""Transform an numpy array into a list with homogeneous element type."""
return arr.astype(type(arr.ravel()[0])).tolist()
def to_builtin(arr):
"""Transform an numpy array into a numpy array with homogeneous element type."""
return arr.astype(type(arr.ravel()[0]))
| 33.444444
| 84
| 0.694352
| 46
| 301
| 4.5
| 0.434783
| 0.144928
| 0.135266
| 0.183575
| 0.801932
| 0.801932
| 0.801932
| 0.521739
| 0.521739
| 0.521739
| 0
| 0.007937
| 0.162791
| 301
| 8
| 85
| 37.625
| 0.813492
| 0.471761
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.5
| false
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 7
|
addcf48bf1f6dbecd2b1dd5050ffc25533fec74d
| 7,062
|
py
|
Python
|
tests/test_specific.py
|
xadrnd/display_sdk_ios
|
f8a140d1cf3d1e8f63b915caf8c723d771dac13f
|
[
"BSD-3-Clause"
] | null | null | null |
tests/test_specific.py
|
xadrnd/display_sdk_ios
|
f8a140d1cf3d1e8f63b915caf8c723d771dac13f
|
[
"BSD-3-Clause"
] | null | null | null |
tests/test_specific.py
|
xadrnd/display_sdk_ios
|
f8a140d1cf3d1e8f63b915caf8c723d771dac13f
|
[
"BSD-3-Clause"
] | null | null | null |
from test_base import DisplaySDKTest
from utils import *
SLEEP_INTERVAL = 2
class SpecificTest(DisplaySDKTest):
def test_banner(self):
set_channel_id(self, "22394")
click_load_ad_btn(self, "Banner")
accept_location(self)
webview = block_until_webview(self)
sleep(SLEEP_INTERVAL)
# get web view
webview = self.driver.find_elements_by_ios_predicate('wdType == "XCUIElementTypeWebView"')
# if web view then click
if len(webview) > 0:
click_on_webview(self)
sleep(5)
# nagivate back
try:
click_back_btn(self)
except:
pass
# Assert bid agent is called when clicked
assert_href_called(self, r"/landingpage")
# Assert impression pixel is called
assert_href_called(self, r"notify.bidagent.xad.com")
def test_interstitial(self):
set_channel_id(self, "15999")
click_load_ad_btn(self, "Interstitial")
accept_location(self)
block_until_webview(self)
sleep(SLEEP_INTERVAL)
# get web view
webview = self.driver.find_elements_by_ios_predicate('wdType == "XCUIElementTypeWebView"')
# if web view then click
if len(webview) > 0:
click_on_webview(self)
sleep(5)
# nagivate back
try:
click_back_btn(self)
except:
pass
# find close button
close_btn = self.driver.find_elements_by_ios_predicate('wdType == "XCUIElementTypeButton"')[0]
close_btn.click()
block_until_element(self, "Banner")
# Assert impression pixel is called
assert_href_called(self, r"eastads.simpli.fi")
assert_href_called(self, r"notify.bidagent.xad.com")
def test_vast_inline_linear(self):
set_channel_id(self, "24373")
click_load_ad_btn(self, "Video")
accept_location(self)
block_until_not_element(self, "Video")
block_until_ios_predicate(self, "XCUIElementTypeButton")
# Click middle video
positions = []
positions.append((5, 5))
self.driver.tap(positions)
block_until_element(self, "Done")
assert_viewing_browser(self)
click_btn(self, "Done")
btn = block_until_ios_predicate(self, "XCUIElementTypeButton")
sleep(40)
btn[0].click()
block_until_element(self, "Banner")
assert_href_called(self, r"/click$")
assert_href_called(self, r"/impression$")
assert_href_called(self, r"/creativeView$")
assert_href_called(self, r"/start$")
assert_href_called(self, r"/firstQuartile$")
assert_href_called(self, r"/midpoint$")
assert_href_called(self, r"/thirdQuartile$")
assert_href_called(self, r"/complete$")
def test_vast_inline_linear_error(self):
set_channel_id(self, "24403")
click_load_ad_btn(self, "Video")
accept_location(self)
block_until_element(self, "Dismiss")
# Accept error
click_btn(self, "Dismiss")
# Assert error url called
assert_href_called(self, r"/error")
def test_vast_inline_linear_wrong_mimetype(self):
set_channel_id(self, "24408")
click_load_ad_btn(self, "Video")
accept_location(self)
block_until_element(self, "Dismiss")
# Accept error
click_btn(self, "Dismiss")
# Assert error url called
assert_href_called(self, r"/error")
def test_vast_urlencode_error(self):
set_channel_id(self, "28228")
click_load_ad_btn(self, "Video")
accept_location(self)
block_until_element(self, "Dismiss")
# Accept error
click_btn(self, "Dismiss")
def test_vast_wrapper_linear_1_error(self):
set_channel_id(self, "33838")
click_load_ad_btn(self, "Video")
accept_location(self)
block_until_element(self, "Dismiss")
# Accept error
click_btn(self, "Dismiss")
# Assert error url called
assert_href_called(self, r"/wrapper/error$")
assert_href_called(self, r"/error$")
def test_vast_wrapper_linear_1(self):
set_channel_id(self, "24383")
click_load_ad_btn(self, "Video")
accept_location(self)
block_until_not_element(self, "Video")
block_until_ios_predicate(self, "XCUIElementTypeButton")
# Click middle video
positions = []
positions.append((5, 5))
self.driver.tap(positions)
block_until_element(self, "Done")
assert_viewing_browser(self)
click_btn(self, "Done")
# Poll until video is done
sleep(45)
btn = block_until_ios_predicate(self, "XCUIElementTypeButton")
btn[0].click()
block_until_element(self, "Banner")
assert_href_called(self, r"/click$")
assert_href_called(self, r"/impression$")
assert_href_called(self, r"/creativeView$")
assert_href_called(self, r"/start$")
assert_href_called(self, r"/firstQuartile$")
assert_href_called(self, r"/midpoint$")
assert_href_called(self, r"/thirdQuartile$")
assert_href_called(self, r"/complete$")
assert_href_called(self, r"/wrapper/click$")
assert_href_called(self, r"/wrapper/impression$")
assert_href_called(self, r"/wrapper/start$")
assert_href_called(self, r"/wrapper/firstQuartile$")
assert_href_called(self, r"/wrapper/pause$")
assert_href_called(self, r"/wrapper/resume$")
assert_href_called(self, r"/wrapper/midpoint$")
assert_href_called(self, r"/wrapper/thirdQuartile$")
assert_href_called(self, r"/wrapper/complete$")
def test_vast_wrapper_linear_2(self):
set_channel_id(self, "24388")
click_load_ad_btn(self, "Video")
block_until_not_element(self, "Video")
block_until_ios_predicate(self, "XCUIElementTypeButton")
# Click middle video
positions = []
positions.append((5, 5))
self.driver.tap(positions)
block_until_element(self, "Done")
assert_viewing_browser(self)
click_btn(self, "Done")
# Poll until video is done
sleep(45)
btn = block_until_ios_predicate(self, "XCUIElementTypeButton")
btn[0].click()
block_until_element(self, "Banner")
assert_href_called(self, r"/click$")
assert_href_called(self, r"/impression$")
assert_href_called(self, r"/creativeView$")
assert_href_called(self, r"/start$")
assert_href_called(self, r"/firstQuartile$")
assert_href_called(self, r"/midpoint$")
assert_href_called(self, r"/thirdQuartile$")
assert_href_called(self, r"/complete$")
assert_href_called(self, r"/wrapper/impression$")
| 24.102389
| 102
| 0.62192
| 822
| 7,062
| 5.027981
| 0.136253
| 0.101621
| 0.162594
| 0.203242
| 0.910235
| 0.844907
| 0.751996
| 0.720542
| 0.71038
| 0.701428
| 0
| 0.013448
| 0.273435
| 7,062
| 293
| 103
| 24.102389
| 0.792048
| 0.064571
| 0
| 0.722973
| 0
| 0
| 0.152795
| 0.043894
| 0
| 0
| 0
| 0
| 0.304054
| 1
| 0.060811
| false
| 0.013514
| 0.013514
| 0
| 0.081081
| 0
| 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
|
70b4838cb42f93ba8319a6053b7f5e7b46579591
| 816
|
py
|
Python
|
tests/test_get_fee_day.py
|
Alfareiza/calc-payment
|
c0ad005795a1841da82ae1c8092c65233510fd99
|
[
"MIT"
] | null | null | null |
tests/test_get_fee_day.py
|
Alfareiza/calc-payment
|
c0ad005795a1841da82ae1c8092c65233510fd99
|
[
"MIT"
] | null | null | null |
tests/test_get_fee_day.py
|
Alfareiza/calc-payment
|
c0ad005795a1841da82ae1c8092c65233510fd99
|
[
"MIT"
] | null | null | null |
from src.tools import get_fee_day
def test__MO10_00_12_00__return_30_0_Monday():
assert get_fee_day('MO10:00-12:00') == (30.0, 'Monday')
def test__TU10_00_12_00__return_30_0_Tuesday():
assert get_fee_day('TU10:00-12:00') == (30.0, 'Tuesday')
def test__TH01_00_03_00__return_50_0_Thursday():
assert get_fee_day('TH01:00-03:00') == (50.0, 'Thursday')
def test__SA08_00_18_00__return_09_67_Saturday():
assert get_fee_day('SA08:00-18:00') == (209.67, 'Saturday')
def test__SU20_00_21_00__return_25_0_Sunday():
assert get_fee_day('SU20:00-21:00') == (25.0, 'Sunday')
def test__TH12_00_14_00__return_30_0_Thursday():
assert get_fee_day('TH12:00-14:00') == (30.0, 'Thursday')
def test__SU17_00_19_00__return_44_58_Sunday():
assert get_fee_day('SU17:00-19:00') == (44.58, 'Sunday')
| 27.2
| 63
| 0.727941
| 154
| 816
| 3.298701
| 0.253247
| 0.094488
| 0.141732
| 0.206693
| 0.271654
| 0.153543
| 0
| 0
| 0
| 0
| 0
| 0.220527
| 0.116422
| 816
| 29
| 64
| 28.137931
| 0.48405
| 0
| 0
| 0
| 0
| 0
| 0.171569
| 0
| 0
| 0
| 0
| 0
| 0.466667
| 1
| 0.466667
| true
| 0
| 0.066667
| 0
| 0.533333
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 0
| 1
| 1
| 0
| 0
| 0
| 1
| 0
|
0
| 7
|
cb558e278107416bb02eba298b9d1957b9e6466e
| 67
|
py
|
Python
|
all_windows/__init__.py
|
EXPmaster/notepad
|
b2d5535b424b8fbfa6786fc23af0d28e110fc2ba
|
[
"MIT"
] | 4
|
2020-11-15T15:45:15.000Z
|
2020-11-22T08:08:08.000Z
|
all_windows/__init__.py
|
EXPmaster/notepad
|
b2d5535b424b8fbfa6786fc23af0d28e110fc2ba
|
[
"MIT"
] | null | null | null |
all_windows/__init__.py
|
EXPmaster/notepad
|
b2d5535b424b8fbfa6786fc23af0d28e110fc2ba
|
[
"MIT"
] | null | null | null |
# from .Find_win import Find_Win
from .Find_win_ide import Find_Win
| 33.5
| 34
| 0.835821
| 13
| 67
| 3.923077
| 0.384615
| 0.54902
| 0.431373
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.119403
| 67
| 2
| 34
| 33.5
| 0.864407
| 0.447761
| 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
|
cb95d72bfe7ade74bad0c068a9fba07bc500c2de
| 9,114
|
py
|
Python
|
test/vanilla/low-level/Expected/AcceptanceTests/AnythingLowLevel/anythinglowlevel/rest/_request_builders.py
|
Azure/autorest.python
|
c36f5c1a2d614a1eeba6fec6a2c02517f2d1cce7
|
[
"MIT"
] | 35
|
2018-04-03T12:15:53.000Z
|
2022-03-11T14:03:34.000Z
|
test/vanilla/low-level/Expected/AcceptanceTests/AnythingLowLevel/anythinglowlevel/rest/_request_builders.py
|
Azure/autorest.python
|
c36f5c1a2d614a1eeba6fec6a2c02517f2d1cce7
|
[
"MIT"
] | 652
|
2017-08-28T22:44:41.000Z
|
2022-03-31T21:20:31.000Z
|
test/vanilla/low-level/Expected/AcceptanceTests/AnythingLowLevel/anythinglowlevel/rest/_request_builders.py
|
Azure/autorest.python
|
c36f5c1a2d614a1eeba6fec6a2c02517f2d1cce7
|
[
"MIT"
] | 29
|
2017-08-28T20:57:01.000Z
|
2022-03-11T14:03:38.000Z
|
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
from typing import TYPE_CHECKING
from azure.core.rest import HttpRequest
from msrest import Serializer
if TYPE_CHECKING:
# pylint: disable=unused-import,ungrouped-imports
from typing import Any, Optional
_SERIALIZER = Serializer()
# fmt: off
def build_get_object_request(
**kwargs # type: Any
):
# type: (...) -> HttpRequest
"""Basic get that returns an object as anything. Returns object { 'message': 'An object was
successfully returned' }.
See https://aka.ms/azsdk/python/protocol/quickstart for how to incorporate this request builder
into your code flow.
:return: Returns an :class:`~azure.core.rest.HttpRequest` that you will pass to the client's
`send_request` method. See https://aka.ms/azsdk/python/protocol/quickstart for how to
incorporate this response into your code flow.
:rtype: ~azure.core.rest.HttpRequest
"""
accept = "application/json"
# Construct URL
url = kwargs.pop("template_url", '/anything/object')
# Construct headers
header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any]
header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str')
return HttpRequest(
method="GET",
url=url,
headers=header_parameters,
**kwargs
)
def build_put_object_request(
**kwargs # type: Any
):
# type: (...) -> HttpRequest
"""Basic put that puts an object as anything. Pass in {'foo': 'bar'} to get a 200 and anything
else to get an object error.
See https://aka.ms/azsdk/python/protocol/quickstart for how to incorporate this request builder
into your code flow.
:keyword json: Pass in a JSON-serializable object (usually a dictionary). See the template in
our example to find the input shape. Pass in {'foo': 'bar'} for a 200, anything else for an
object error.
:paramtype json: any
:keyword content: Pass in binary content you want in the body of the request (typically bytes,
a byte iterator, or stream input). Pass in {'foo': 'bar'} for a 200, anything else for an
object error.
:paramtype content: any
:return: Returns an :class:`~azure.core.rest.HttpRequest` that you will pass to the client's
`send_request` method. See https://aka.ms/azsdk/python/protocol/quickstart for how to
incorporate this response into your code flow.
:rtype: ~azure.core.rest.HttpRequest
Example:
.. code-block:: python
# JSON input template you can fill out and use as your body input.
json = {} # Optional.
"""
content_type = kwargs.pop('content_type', None) # type: Optional[str]
# Construct URL
url = kwargs.pop("template_url", '/anything/object')
# Construct headers
header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any]
if content_type is not None:
header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str')
return HttpRequest(
method="PUT",
url=url,
headers=header_parameters,
**kwargs
)
def build_get_string_request(
**kwargs # type: Any
):
# type: (...) -> HttpRequest
"""Basic get that returns an string as anything. Returns string 'foo'.
See https://aka.ms/azsdk/python/protocol/quickstart for how to incorporate this request builder
into your code flow.
:return: Returns an :class:`~azure.core.rest.HttpRequest` that you will pass to the client's
`send_request` method. See https://aka.ms/azsdk/python/protocol/quickstart for how to
incorporate this response into your code flow.
:rtype: ~azure.core.rest.HttpRequest
"""
accept = "application/json"
# Construct URL
url = kwargs.pop("template_url", '/anything/string')
# Construct headers
header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any]
header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str')
return HttpRequest(
method="GET",
url=url,
headers=header_parameters,
**kwargs
)
def build_put_string_request(
**kwargs # type: Any
):
# type: (...) -> HttpRequest
"""Basic put that puts an string as anything. Pass in 'anything' to get a 200 and anything else to
get an object error.
See https://aka.ms/azsdk/python/protocol/quickstart for how to incorporate this request builder
into your code flow.
:keyword json: Pass in a JSON-serializable object (usually a dictionary). See the template in
our example to find the input shape. Pass in 'anything' for a 200, anything else for an object
error.
:paramtype json: any
:keyword content: Pass in binary content you want in the body of the request (typically bytes,
a byte iterator, or stream input). Pass in 'anything' for a 200, anything else for an object
error.
:paramtype content: any
:return: Returns an :class:`~azure.core.rest.HttpRequest` that you will pass to the client's
`send_request` method. See https://aka.ms/azsdk/python/protocol/quickstart for how to
incorporate this response into your code flow.
:rtype: ~azure.core.rest.HttpRequest
Example:
.. code-block:: python
# JSON input template you can fill out and use as your body input.
json = {} # Optional.
"""
content_type = kwargs.pop('content_type', None) # type: Optional[str]
# Construct URL
url = kwargs.pop("template_url", '/anything/string')
# Construct headers
header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any]
if content_type is not None:
header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str')
return HttpRequest(
method="PUT",
url=url,
headers=header_parameters,
**kwargs
)
def build_get_array_request(
**kwargs # type: Any
):
# type: (...) -> HttpRequest
"""Basic get that returns an array as anything. Returns string ['foo', 'bar'].
See https://aka.ms/azsdk/python/protocol/quickstart for how to incorporate this request builder
into your code flow.
:return: Returns an :class:`~azure.core.rest.HttpRequest` that you will pass to the client's
`send_request` method. See https://aka.ms/azsdk/python/protocol/quickstart for how to
incorporate this response into your code flow.
:rtype: ~azure.core.rest.HttpRequest
"""
accept = "application/json"
# Construct URL
url = kwargs.pop("template_url", '/anything/array')
# Construct headers
header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any]
header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str')
return HttpRequest(
method="GET",
url=url,
headers=header_parameters,
**kwargs
)
def build_put_array_request(
**kwargs # type: Any
):
# type: (...) -> HttpRequest
"""Basic put that puts an array as anything. Pass in ['foo', 'bar'] to get a 200 and anything else
to get an object error.
See https://aka.ms/azsdk/python/protocol/quickstart for how to incorporate this request builder
into your code flow.
:keyword json: Pass in a JSON-serializable object (usually a dictionary). See the template in
our example to find the input shape. Pass in ['foo', 'bar'] for a 200, anything else for an
object error.
:paramtype json: any
:keyword content: Pass in binary content you want in the body of the request (typically bytes,
a byte iterator, or stream input). Pass in ['foo', 'bar'] for a 200, anything else for an
object error.
:paramtype content: any
:return: Returns an :class:`~azure.core.rest.HttpRequest` that you will pass to the client's
`send_request` method. See https://aka.ms/azsdk/python/protocol/quickstart for how to
incorporate this response into your code flow.
:rtype: ~azure.core.rest.HttpRequest
Example:
.. code-block:: python
# JSON input template you can fill out and use as your body input.
json = {} # Optional.
"""
content_type = kwargs.pop('content_type', None) # type: Optional[str]
# Construct URL
url = kwargs.pop("template_url", '/anything/array')
# Construct headers
header_parameters = kwargs.pop("headers", {}) # type: Dict[str, Any]
if content_type is not None:
header_parameters['Content-Type'] = _SERIALIZER.header("content_type", content_type, 'str')
return HttpRequest(
method="PUT",
url=url,
headers=header_parameters,
**kwargs
)
| 35.463035
| 102
| 0.660632
| 1,193
| 9,114
| 4.986588
| 0.126572
| 0.048412
| 0.028408
| 0.026223
| 0.903345
| 0.894604
| 0.894604
| 0.894604
| 0.888889
| 0.888889
| 0
| 0.003936
| 0.219443
| 9,114
| 256
| 103
| 35.601563
| 0.832303
| 0.636274
| 0
| 0.793103
| 0
| 0
| 0.14988
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.068966
| false
| 0
| 0.045977
| 0
| 0.183908
| 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
|
cbe92ef27e72a58ced059e9d40a8ed680b2fce55
| 6,720
|
py
|
Python
|
scielomanager/export/tests/tests_pages.py
|
patymori/scielo-manager
|
0945f377376de8ef0ada83c35b4e2312062cdf45
|
[
"BSD-2-Clause"
] | 8
|
2015-07-07T03:09:16.000Z
|
2019-03-16T04:46:32.000Z
|
scielomanager/export/tests/tests_pages.py
|
DalavanCloud/scielo-manager
|
0945f377376de8ef0ada83c35b4e2312062cdf45
|
[
"BSD-2-Clause"
] | 245
|
2015-01-14T13:29:58.000Z
|
2022-01-13T00:48:44.000Z
|
scielomanager/export/tests/tests_pages.py
|
DalavanCloud/scielo-manager
|
0945f377376de8ef0ada83c35b4e2312062cdf45
|
[
"BSD-2-Clause"
] | 5
|
2016-02-19T15:47:08.000Z
|
2019-03-16T04:46:20.000Z
|
# coding:utf-8
import json
from django_webtest import WebTest
from django.core.urlresolvers import reverse
from django_factory_boy import auth
from journalmanager.tests import modelfactories
class DownloadMarkupFilesTests(WebTest):
def setUp(self):
self.user = auth.UserF(is_active=True)
self.collection = modelfactories.CollectionFactory.create()
self.collection.add_user(self.user, is_manager=False)
self.journal = modelfactories.JournalFactory(creator=self.user)
self.journal.join(self.collection, self.user)
def test_non_authenticated_users_are_redirected_to_login_page(self):
response = self.app.get(
reverse('export.markupfiles'),
status=302
).follow()
self.assertTemplateUsed(response, 'registration/login.html')
def test_authenticated_users_can_access(self):
response = self.app.get(
reverse('export.markupfiles'),
user=self.user
)
self.assertTemplateUsed(response, 'export/markup_files.html')
class ListIssuesForMarkupFilesTests(WebTest):
"""
Tests ajax interactions
"""
def setUp(self):
self.user = auth.UserF(is_active=True)
self.collection = modelfactories.CollectionFactory.create()
self.collection.add_user(self.user, is_manager=False)
self.journal = modelfactories.JournalFactory()
self.journal.join(self.collection, self.user)
def test_get_issues_pending_for_markup(self):
"""
This interaction is performed by ajax requests, while
querying for the list of issues waiting to be marked-up.
"""
issue = modelfactories.IssueFactory(
journal=self.journal, is_marked_up=False)
issue2 = modelfactories.IssueFactory(
journal=self.journal, is_marked_up=True)
params = 'j={0}&all=0'.format(self.journal.pk)
response = self.app.get(
reverse('ajx.list_issues_for_markup_files') + '?' + params,
headers={'x-requested-with': 'XMLHttpRequest'},
user=self.user,
expect_errors=True
)
response_data = json.loads(response.content)
self.assertEqual(len(response_data), 1)
def test_get_all_issues(self):
"""
This interaction is performed by ajax requests, while
querying for the list of issues of a given journal.
"""
issue = modelfactories.IssueFactory(
journal=self.journal, is_marked_up=False)
issue2 = modelfactories.IssueFactory(
journal=self.journal, is_marked_up=True)
params = 'j={0}&all=1'.format(self.journal.pk)
response = self.app.get(
reverse('ajx.list_issues_for_markup_files') + '?' + params,
headers={'x-requested-with': 'XMLHttpRequest'},
user=self.user,
expect_errors=True
)
response_data = json.loads(response.content)
self.assertEqual(len(response_data), 2)
def test_get_all_issues_passing_true_as_the_boolean_value(self):
"""
The recommended values to be used as boolean params are 0 and 1.
But we are already prepared to handle: True, true, yes, Yes, on,
On, y, Y. Anything else is handled as False.
"""
issue = modelfactories.IssueFactory(
journal=self.journal, is_marked_up=False)
issue2 = modelfactories.IssueFactory(
journal=self.journal, is_marked_up=True)
params = 'j={0}&all=true'.format(self.journal.pk)
response = self.app.get(
reverse('ajx.list_issues_for_markup_files') + '?' + params,
headers={'x-requested-with': 'XMLHttpRequest'},
user=self.user,
expect_errors=True
)
response_data = json.loads(response.content)
self.assertEqual(len(response_data), 2)
def test_get_all_issues_passing_On_as_the_boolean_value(self):
"""
The recommended values to be used as boolean params are 0 and 1.
But we are already prepared to handle: True, true, yes, Yes, on,
On, y, Y. Anything else is handled as False.
"""
issue = modelfactories.IssueFactory(
journal=self.journal, is_marked_up=False)
issue2 = modelfactories.IssueFactory(
journal=self.journal, is_marked_up=True)
params = 'j={0}&all=on'.format(self.journal.pk)
response = self.app.get(
reverse('ajx.list_issues_for_markup_files') + '?' + params,
headers={'x-requested-with': 'XMLHttpRequest'},
user=self.user,
expect_errors=True
)
response_data = json.loads(response.content)
self.assertEqual(len(response_data), 2)
def test_unknown_values_passed_to_All_are_treated_as_false(self):
"""
The recommended values to be used as boolean params are 0 and 1.
But we are already prepared to handle: True, true, yes, Yes, on,
On, y, Y. Anything else is handled as False.
"""
issue = modelfactories.IssueFactory(
journal=self.journal, is_marked_up=False)
issue2 = modelfactories.IssueFactory(
journal=self.journal, is_marked_up=True)
params = 'j={0}&all=Bzz'.format(self.journal.pk)
response = self.app.get(
reverse('ajx.list_issues_for_markup_files') + '?' + params,
headers={'x-requested-with': 'XMLHttpRequest'},
user=self.user,
expect_errors=True
)
response_data = json.loads(response.content)
self.assertEqual(len(response_data), 1)
def test_non_ajax_requests_gets_a_400_error(self):
issue = modelfactories.IssueFactory(
journal=self.journal, is_marked_up=False)
params = 'j={0}&all=0'.format(self.journal.pk)
response = self.app.get(
reverse('ajx.list_issues_for_markup_files') + '?' + params,
user=self.user,
status=400
)
self.assertEqual(response.status_code, 400)
def test_only_authenticated_users_can_query_issues(self):
"""
Access to the Ajax that returns a list of issues for a
given Journal.
"""
issue = modelfactories.IssueFactory(
journal=self.journal, is_marked_up=False)
params = 'j={0}&all=0'.format(self.journal.pk)
response = self.app.get(
reverse('ajx.list_issues_for_markup_files') + '?' + params,
headers={'x-requested-with': 'XMLHttpRequest'},
status=302
).follow()
self.assertTemplateUsed(response, 'registration/login.html')
| 34.639175
| 72
| 0.634673
| 789
| 6,720
| 5.230672
| 0.174905
| 0.061304
| 0.095953
| 0.107584
| 0.83087
| 0.827962
| 0.827962
| 0.827962
| 0.80567
| 0.752362
| 0
| 0.008669
| 0.261905
| 6,720
| 193
| 73
| 34.818653
| 0.823387
| 0.126339
| 0
| 0.727273
| 0
| 0
| 0.106289
| 0.052081
| 0
| 0
| 0
| 0
| 0.07438
| 1
| 0.090909
| false
| 0.024793
| 0.041322
| 0
| 0.14876
| 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
|
1df4ec26816a20ff491b478808982fcc15795bff
| 877
|
py
|
Python
|
TCO2_Dashboard/Figures_Carbon_Pool.py
|
originalpkbims/subgrounds-pkbims
|
03271135d985bc4a53129edb0cb2391555012270
|
[
"Apache-2.0"
] | null | null | null |
TCO2_Dashboard/Figures_Carbon_Pool.py
|
originalpkbims/subgrounds-pkbims
|
03271135d985bc4a53129edb0cb2391555012270
|
[
"Apache-2.0"
] | null | null | null |
TCO2_Dashboard/Figures_Carbon_Pool.py
|
originalpkbims/subgrounds-pkbims
|
03271135d985bc4a53129edb0cb2391555012270
|
[
"Apache-2.0"
] | null | null | null |
import plotly.express as px
from colors import colors
def deposited_over_time(df):
df = df.sort_values(by="Date", ascending=True)
df["Quantity"] = df["Quantity"].cumsum()
fig = px.area(df, x="Date", y="Quantity")
fig.update_layout(paper_bgcolor=colors['bg_color'], plot_bgcolor=colors['bg_color'], font_color='white', xaxis=dict(showgrid=False),
yaxis=dict(showgrid=False), hovermode='x unified', font_size=20)
return fig
def redeemed_over_time(df):
df = df.sort_values(by="Date", ascending=True)
df["Quantity"] = df["Quantity"].cumsum()
fig = px.area(df, x="Date", y="Quantity")
fig.update_layout(paper_bgcolor=colors['bg_color'], plot_bgcolor=colors['bg_color'], font_color='white', xaxis=dict(showgrid=False),
yaxis=dict(showgrid=False), hovermode='x unified', font_size=20)
return fig
| 41.761905
| 136
| 0.675029
| 125
| 877
| 4.576
| 0.352
| 0.027972
| 0.104895
| 0.13986
| 0.881119
| 0.881119
| 0.881119
| 0.881119
| 0.881119
| 0.881119
| 0
| 0.005457
| 0.164196
| 877
| 20
| 137
| 43.85
| 0.774898
| 0
| 0
| 0.75
| 0
| 0
| 0.141391
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.125
| false
| 0
| 0.125
| 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
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
383212dd095b2dd56b9301d58f8461fdae16c81c
| 2,485
|
py
|
Python
|
test/regexp/python11.py
|
kylebarron/MagicPython
|
da6fa0793e2c85d3bf7709ff1d4f65ccf468db11
|
[
"MIT"
] | 1,482
|
2015-10-16T21:59:32.000Z
|
2022-03-30T11:44:40.000Z
|
test/regexp/python11.py
|
kylebarron/MagicPython
|
da6fa0793e2c85d3bf7709ff1d4f65ccf468db11
|
[
"MIT"
] | 226
|
2015-10-15T15:53:44.000Z
|
2022-03-25T03:08:27.000Z
|
test/regexp/python11.py
|
kylebarron/MagicPython
|
da6fa0793e2c85d3bf7709ff1d4f65ccf468db11
|
[
"MIT"
] | 129
|
2015-10-20T02:41:49.000Z
|
2022-03-22T01:44:36.000Z
|
a = r"""
(?x) # multi-XXXline XXX regexp
foo (?# comm TODOent TODO)
foo # type: int
foo (?# type: int)
"""
a : source.python
: source.python
= : keyword.operator.assignment.python, source.python
: source.python
r : source.python, storage.type.string.python, string.regexp.quoted.multi.python
""" : punctuation.definition.string.begin.python, source.python, string.regexp.quoted.multi.python
: source.python, string.regexp.quoted.multi.python
(?x) : source.python, storage.modifier.flag.regexp, string.regexp.quoted.multi.python
: source.python, string.regexp.quoted.multi.python
# : comment.line.number-sign.python, punctuation.definition.comment.python, source.python, string.regexp.quoted.multi.python
multi-XXXline : comment.line.number-sign.python, source.python, string.regexp.quoted.multi.python
XXX : comment.line.number-sign.python, keyword.codetag.notation.python, source.python, string.regexp.quoted.multi.python
regexp : comment.line.number-sign.python, source.python, string.regexp.quoted.multi.python
foo : source.python, string.regexp.quoted.multi.python
(?# : comment.regexp, punctuation.comment.begin.regexp, source.python, string.regexp.quoted.multi.python
comm TODOent : comment.regexp, source.python, string.regexp.quoted.multi.python
TODO : comment.regexp, keyword.codetag.notation.python, source.python, string.regexp.quoted.multi.python
) : comment.regexp, punctuation.comment.end.regexp, source.python, string.regexp.quoted.multi.python
foo : source.python, string.regexp.quoted.multi.python
# : comment.line.number-sign.python, punctuation.definition.comment.python, source.python, string.regexp.quoted.multi.python
type: int : comment.line.number-sign.python, source.python, string.regexp.quoted.multi.python
foo : source.python, string.regexp.quoted.multi.python
(?# : comment.regexp, punctuation.comment.begin.regexp, source.python, string.regexp.quoted.multi.python
type: int : comment.regexp, source.python, string.regexp.quoted.multi.python
) : comment.regexp, punctuation.comment.end.regexp, source.python, string.regexp.quoted.multi.python
""" : punctuation.definition.string.end.python, source.python, string.regexp.quoted.multi.python
| 69.027778
| 136
| 0.690543
| 294
| 2,485
| 5.836735
| 0.112245
| 0.181818
| 0.230769
| 0.294872
| 0.844406
| 0.828671
| 0.828671
| 0.828671
| 0.790793
| 0.703963
| 0
| 0
| 0.186318
| 2,485
| 35
| 137
| 71
| 0.848665
| 0
| 0
| 0.166667
| 0
| 0
| 0.278431
| 0
| 0
| 0
| 0
| 0.057143
| 0
| 0
| null | null | 0
| 0
| null | null | 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
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 10
|
384ca56fc8576951e380b7592003db15afa5865c
| 11,735
|
py
|
Python
|
tests/test_main.py
|
mitodl/xanalytics
|
8cb7c373eb054bad741a9e567c0c8cbbc6ab08cf
|
[
"MIT"
] | 8
|
2015-03-05T21:09:40.000Z
|
2020-02-03T09:15:09.000Z
|
tests/test_main.py
|
mitodl/xanalytics
|
8cb7c373eb054bad741a9e567c0c8cbbc6ab08cf
|
[
"MIT"
] | 1
|
2015-09-24T18:43:27.000Z
|
2015-10-01T18:11:20.000Z
|
tests/test_main.py
|
mitodl/xanalytics
|
8cb7c373eb054bad741a9e567c0c8cbbc6ab08cf
|
[
"MIT"
] | 6
|
2015-04-23T16:47:34.000Z
|
2017-10-13T19:11:53.000Z
|
import unittest
from google.appengine.api import memcache
from google.appengine.ext import ndb
from google.appengine.ext import testbed
import json
import pytest
import StringIO
import webapp2
from webtest import TestApp
from webtest import Upload
from lxml import etree
import local_config
class TestGsData(unittest.TestCase):
def test_staff_sheet_read(self):
from main import MainPage
mp = MainPage()
data = mp.get_staff_table()
assert('username' in data[0])
class TestBadAuth(unittest.TestCase):
def setUp(self):
self.testbed = testbed.Testbed()
# Then activate the testbed, which prepares the service stubs for use.
self.testbed.activate()
# Next, declare which service stubs you want to use.
self.testbed.init_datastore_v3_stub()
self.testbed.init_memcache_stub()
self.testbed.init_urlfetch_stub()
from google.appengine.api.app_identity import app_identity_stub
from google.appengine.api.app_identity import app_identity_keybased_stub
email_address = local_config.SERVICE_EMAIL
private_key_path = local_config.SERVICE_KEY_FILE
stub = app_identity_keybased_stub.KeyBasedAppIdentityServiceStub(email_address=email_address,
private_key_path=private_key_path)
self.testbed._register_stub(testbed.APP_IDENTITY_SERVICE_NAME, stub)
def test_main_page_bad_auth(self):
from main import MainPage, auth, application
def AlwaysAuthenticated(self):
return 'testuser'
auth.AuthenticatedHandler.Authenticate = AlwaysAuthenticated
# auth.AuthenticatedHandler.AUTH_METHOD = 'google'
request = webapp2.Request.blank('/')
response = request.get_response(application)
assert('testuser is not authorized' in response.text)
class TestMain(unittest.TestCase):
def setUp(self):
self.testbed = testbed.Testbed()
# Then activate the testbed, which prepares the service stubs for use.
self.testbed.activate()
# Next, declare which service stubs you want to use.
self.testbed.init_datastore_v3_stub()
self.testbed.init_memcache_stub()
self.testbed.init_urlfetch_stub()
from google.appengine.api.app_identity import app_identity_stub
from google.appengine.api.app_identity import app_identity_keybased_stub
email_address = local_config.SERVICE_EMAIL
private_key_path = local_config.SERVICE_KEY_FILE
stub = app_identity_keybased_stub.KeyBasedAppIdentityServiceStub(email_address=email_address,
private_key_path=private_key_path)
self.testbed._register_stub(testbed.APP_IDENTITY_SERVICE_NAME, stub)
self.setup_main_with_auth()
self.course_id = self.get_a_course_id()
def setup_main_with_auth(self):
from main import MainPage, auth, application
def AlwaysAuthenticated(self):
return 'testuser2'
MainPage.AUTHORIZED_USERS = ['testuser2']
auth.AuthenticatedHandler.Authenticate = AlwaysAuthenticated
# auth.AuthenticatedHandler.AUTH_METHOD = 'google'
self.application = application
def get_a_course_id(self):
request = webapp2.Request.blank('/')
response = request.get_response(self.application)
xml = etree.fromstring(response.text, parser=etree.HTMLParser())
table = xml.find('.//table')
rows = table.findall('.//tr')
course_id = rows[4].findall('.//td')[-1].text
#print "rows4 ", etree.tostring(rows[4])
print "course_id ", course_id
self.response = response
return course_id
def test_main_page_good_auth(self):
assert('<table id="table_id" class="display">' in self.response.text)
def test_course_page(self):
course_id = self.course_id
request = webapp2.Request.blank('/course/' + course_id)
response = request.get_response(self.application)
assert('<h2>Content by chapter</h2>' in response.text)
def test_course_stats(self):
params = {'course_id': self.course_id}
request = webapp2.Request.blank('/get/{course_id}/course_stats'.format(**params))
response = request.get_response(self.application)
data = json.loads(response.text)
assert("stats_columns" in data)
def test_usage_stats(self):
params = {'course_id': self.course_id}
request = webapp2.Request.blank('/get/{course_id}/usage_stats'.format(**params))
response = request.get_response(self.application)
# response.encoding = 'utf-8'
# data = json.loads(response.text) # response.json
data = response.json
assert("data" in data)
def test_activity_stats(self):
params = {'course_id': self.course_id}
request = webapp2.Request.blank('/get/{course_id}/activity_stats'.format(**params))
response = request.get_response(self.application)
# response.encoding = 'utf-8'
# data = json.loads(response.text) # response.json
data = response.json
assert("series" in data)
def test_ajax_table_data(self):
params = {'course_id': self.course_id}
data = {'draw': 2, 'start': 10, 'length': 10}
request = webapp2.Request.blank('/get/{course_id}/user_info_combo/table_data'.format(**params), POST=data)
response = request.get_response(self.application)
data = response.json
assert("draw" in data and data['draw']==2)
def test_general_ajax_table_data(self):
params = {'course_id': self.course_id}
data = {'draw': 2, 'start': 10, 'length': 10}
request = webapp2.Request.blank('/table/{course_id}/user_info_combo'.format(**params), POST=data)
response = request.get_response(self.application)
# print "general_ajax_table_data response=", response
assert('.user_info_combo</title>' in str(response))
class TestAsCourseStaff(unittest.TestCase):
def setUp(self):
'''
Views when authenticated as course staff (not instructor)
'''
self.testbed = testbed.Testbed()
# Then activate the testbed, which prepares the service stubs for use.
self.testbed.activate()
# Next, declare which service stubs you want to use.
self.testbed.init_datastore_v3_stub()
self.testbed.init_memcache_stub()
self.testbed.init_urlfetch_stub()
from google.appengine.api.app_identity import app_identity_stub
from google.appengine.api.app_identity import app_identity_keybased_stub
email_address = local_config.SERVICE_EMAIL
private_key_path = local_config.SERVICE_KEY_FILE
stub = app_identity_keybased_stub.KeyBasedAppIdentityServiceStub(email_address=email_address,
private_key_path=private_key_path)
self.testbed._register_stub(testbed.APP_IDENTITY_SERVICE_NAME, stub)
self.setup_main_with_auth()
self.course_id = self.get_a_course_id()
def setup_main_with_auth(self):
from main import MainPage, auth, application
def AlwaysAuthenticated(self):
return 'CourseStaff'
auth.AuthenticatedHandler.Authenticate = AlwaysAuthenticated
auth.local_config.STAFF_COURSE_TABLE = "file:test_staff_file.csv"
self.application = application
def get_a_course_id(self):
request = webapp2.Request.blank('/')
response = request.get_response(self.application)
xml = etree.fromstring(response.text, parser=etree.HTMLParser())
table = xml.find('.//table')
rows = table.findall('.//tr')
try:
course_id = rows[1].findall('.//td')[-1].text
except Exception as err:
print "Oops - test failed - cannot get a course_id for user, response=", response
print "table=%s, rows=%s" % (etree.tostring(table), etree.tostring(rows[1]))
raise
#print "rows4 ", etree.tostring(rows[4])
print "course_id ", course_id
self.response = response
return course_id
def test_main_page_good_auth(self):
# print "test_main_page as course staff, response=", self.response
assert('<table id="table_id" class="display">' in self.response.text)
def test_general_ajax_table_data(self):
params = {'course_id': self.course_id}
data = {'draw': 2, 'start': 10, 'length': 10}
request = webapp2.Request.blank('/table/{course_id}/user_info_combo'.format(**params), POST=data)
response = request.get_response(self.application)
# print "general_ajax_table response=", response
assert('is not authorized to use this service' in str(response))
class TestAsResearcher(unittest.TestCase):
def setUp(self):
'''
Views when authenticated as researcher
'''
self.testbed = testbed.Testbed()
# Then activate the testbed, which prepares the service stubs for use.
self.testbed.activate()
# Next, declare which service stubs you want to use.
self.testbed.init_datastore_v3_stub()
self.testbed.init_memcache_stub()
self.testbed.init_urlfetch_stub()
from google.appengine.api.app_identity import app_identity_stub
from google.appengine.api.app_identity import app_identity_keybased_stub
email_address = local_config.SERVICE_EMAIL
private_key_path = local_config.SERVICE_KEY_FILE
stub = app_identity_keybased_stub.KeyBasedAppIdentityServiceStub(email_address=email_address,
private_key_path=private_key_path)
self.testbed._register_stub(testbed.APP_IDENTITY_SERVICE_NAME, stub)
self.setup_main_with_auth()
self.course_id = self.get_a_course_id()
def setup_main_with_auth(self):
from main import MainPage, auth, application
def AlwaysAuthenticated(self):
return 'DrResearch'
auth.AuthenticatedHandler.Authenticate = AlwaysAuthenticated
auth.local_config.STAFF_COURSE_TABLE = "file:test_staff_file.csv"
self.application = application
def get_a_course_id(self):
request = webapp2.Request.blank('/')
response = request.get_response(self.application)
xml = etree.fromstring(response.text, parser=etree.HTMLParser())
table = xml.find('.//table')
rows = table.findall('.//tr')
try:
course_id = rows[1].findall('.//td')[-1].text
except Exception as err:
print "Oops - test failed - cannot get a course_id for user, response=", response
print "table=%s, rows=%s" % (etree.tostring(table), etree.tostring(rows[1]))
raise
#print "rows4 ", etree.tostring(rows[4])
print "course_id ", course_id
self.response = response
return course_id
def test_main_page_good_auth(self):
# print "test_main_page as course staff, response=", self.response
assert('<table id="table_id" class="display">' in self.response.text)
def test_general_ajax_table_data(self):
params = {'course_id': self.course_id}
data = {'draw': 2, 'start': 10, 'length': 10}
request = webapp2.Request.blank('/table/{course_id}/user_info_combo'.format(**params), POST=data)
response = request.get_response(self.application)
# print "general_ajax_table response=", response
assert('.user_info_combo</title>' in str(response))
| 43.624535
| 114
| 0.665786
| 1,399
| 11,735
| 5.354539
| 0.116512
| 0.050194
| 0.027233
| 0.04165
| 0.891203
| 0.871579
| 0.866106
| 0.86357
| 0.856628
| 0.803498
| 0
| 0.006575
| 0.235364
| 11,735
| 268
| 115
| 43.787313
| 0.828263
| 0.095611
| 0
| 0.758621
| 0
| 0
| 0.095261
| 0.031498
| 0
| 0
| 0
| 0
| 0.064039
| 0
| null | null | 0
| 0.123153
| null | null | 0.034483
| 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
|
69ec74d55657bd37e13b5b9c8f45b462383e19d2
| 1,390
|
py
|
Python
|
Algo and DSA/LeetCode-Solutions-master/Python/maximize-palindrome-length-from-subsequences.py
|
Sourav692/FAANG-Interview-Preparation
|
f523e5c94d582328b3edc449ea16ac6ab28cdc81
|
[
"Unlicense"
] | 3,269
|
2018-10-12T01:29:40.000Z
|
2022-03-31T17:58:41.000Z
|
Algo and DSA/LeetCode-Solutions-master/Python/maximize-palindrome-length-from-subsequences.py
|
Sourav692/FAANG-Interview-Preparation
|
f523e5c94d582328b3edc449ea16ac6ab28cdc81
|
[
"Unlicense"
] | 53
|
2018-12-16T22:54:20.000Z
|
2022-02-25T08:31:20.000Z
|
Algo and DSA/LeetCode-Solutions-master/Python/maximize-palindrome-length-from-subsequences.py
|
Sourav692/FAANG-Interview-Preparation
|
f523e5c94d582328b3edc449ea16ac6ab28cdc81
|
[
"Unlicense"
] | 1,236
|
2018-10-12T02:51:40.000Z
|
2022-03-30T13:30:37.000Z
|
# Time: O((m + n)^2)
# Space: O((m + n)^2)
class Solution(object):
def longestPalindrome(self, word1, word2):
"""
:type word1: str
:type word2: str
:rtype: int
"""
s = word1+word2
dp = [[0]*len(s) for _ in xrange(len(s))]
result = 0
for j in xrange(len(s)):
dp[j][j] = 1
for i in reversed(xrange(j)):
if s[i] == s[j]:
dp[i][j] = 2 if i+1 == j else dp[i+1][j-1] + 2
if i < len(word1) <= j:
result = max(result, dp[i][j])
else:
dp[i][j] = max(dp[i+1][j], dp[i][j-1])
return result
# Time: O((m + n)^2)
# Space: O((m + n)^2)
class Solution2(object):
def longestPalindrome(self, word1, word2):
"""
:type word1: str
:type word2: str
:rtype: int
"""
s = word1+word2
dp = [[0]*len(s) for _ in xrange(len(s))]
for j in xrange(len(s)):
dp[j][j] = 1
for i in reversed(xrange(j)):
if s[i] == s[j]:
dp[i][j] = 2 if i+1 == j else dp[i+1][j-1] + 2
else:
dp[i][j] = max(dp[i+1][j], dp[i][j-1])
return max([dp[i][j] for i in xrange(len(word1)) for j in xrange(len(word1), len(s)) if s[i] == s[j]] or [0])
| 30.888889
| 117
| 0.409353
| 215
| 1,390
| 2.637209
| 0.167442
| 0.063492
| 0.056437
| 0.028219
| 0.823633
| 0.786596
| 0.786596
| 0.786596
| 0.786596
| 0.786596
| 0
| 0.048603
| 0.407914
| 1,390
| 44
| 118
| 31.590909
| 0.64034
| 0.123741
| 0
| 0.740741
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.074074
| false
| 0
| 0
| 0
| 0.222222
| 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
|
0e06cdd94322ab973c08fb98ac7907d30c9609f7
| 42
|
py
|
Python
|
data/__all_models.py
|
IlyaLyamin/buynet
|
8cef028cbe06af8ce25bd2c9980a9a4cf94aac79
|
[
"MIT"
] | null | null | null |
data/__all_models.py
|
IlyaLyamin/buynet
|
8cef028cbe06af8ce25bd2c9980a9a4cf94aac79
|
[
"MIT"
] | null | null | null |
data/__all_models.py
|
IlyaLyamin/buynet
|
8cef028cbe06af8ce25bd2c9980a9a4cf94aac79
|
[
"MIT"
] | null | null | null |
from . import users
from . import products
| 21
| 22
| 0.785714
| 6
| 42
| 5.5
| 0.666667
| 0.606061
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.166667
| 42
| 2
| 22
| 21
| 0.942857
| 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
|
38760036b074cddd836636f7a167e93a5b185e4b
| 15,573
|
py
|
Python
|
migration/20170407-fix-standard-ebooks-thumbnails.py
|
NYPL-Simplified/Simplified-content-server
|
3edd2decfc2493f1983ac5ddcc2e3443ca30d681
|
[
"Apache-2.0"
] | null | null | null |
migration/20170407-fix-standard-ebooks-thumbnails.py
|
NYPL-Simplified/Simplified-content-server
|
3edd2decfc2493f1983ac5ddcc2e3443ca30d681
|
[
"Apache-2.0"
] | null | null | null |
migration/20170407-fix-standard-ebooks-thumbnails.py
|
NYPL-Simplified/Simplified-content-server
|
3edd2decfc2493f1983ac5ddcc2e3443ca30d681
|
[
"Apache-2.0"
] | null | null | null |
#!/usr/bin/env python
"""Fixes thumbnails for Standard Ebooks that end in '.svg.png'
and thus render incorrectly (and largely invisibly)
"""
from nose.tools import set_trace
import os, sys
bin_dir = os.path.split(__file__)[0]
package_dir = os.path.join(bin_dir, "..")
sys.path.append(os.path.abspath(package_dir))
from sqlalchemy import or_
from core.external_search import DummyExternalSearchIndex
from core.model import (
DataSource,
Edition,
Identifier,
Hyperlink,
LicensePool,
PresentationCalculationPolicy,
Representation,
Resource,
Work,
production_session,
)
BROKEN_IMAGE_URLS = [
u'http://book-covers.nypl.org/Standard%20Ebooks/URI/https%3A//standardebooks.org/ebooks/abraham-merritt/the-moon-pool/cover.svg.png',
u'http://book-covers.nypl.org/Standard%20Ebooks/URI/https%3A//standardebooks.org/ebooks/alfred-lord-tennyson/idylls-of-the-king/gustave-dore/cover.svg.png',
u'http://book-covers.nypl.org/Standard%20Ebooks/URI/https%3A//standardebooks.org/ebooks/algis-budrys/short-fiction/cover.svg.png',
u'http://book-covers.nypl.org/Standard%20Ebooks/URI/https%3A//standardebooks.org/ebooks/anton-chekhov/the-duel/constance-garnett/cover.svg.png',
u'http://book-covers.nypl.org/Standard%20Ebooks/URI/https%3A//standardebooks.org/ebooks/apsley-cherry-garrard/the-worst-journey-in-the-world/cover.svg.png',
u'http://book-covers.nypl.org/Standard%20Ebooks/URI/https%3A//standardebooks.org/ebooks/charles-dickens/david-copperfield/cover.svg.png',
u'http://book-covers.nypl.org/Standard%20Ebooks/URI/https%3A//standardebooks.org/ebooks/edgar-rice-burroughs/a-princess-of-mars/frank-e-schoonover/cover.svg.png',
u'http://book-covers.nypl.org/Standard%20Ebooks/URI/https%3A//standardebooks.org/ebooks/emile-zola/his-masterpiece/ernest-alfred-vizetelly/cover.svg.png',
u'http://book-covers.nypl.org/Standard%20Ebooks/URI/https%3A//standardebooks.org/ebooks/fritz-leiber/the-big-time/cover.svg.png',
u'http://book-covers.nypl.org/Standard%20Ebooks/URI/https%3A//standardebooks.org/ebooks/g-k-chesterton/the-innocence-of-father-brown/cover.svg.png',
u'http://book-covers.nypl.org/Standard%20Ebooks/URI/https%3A//standardebooks.org/ebooks/g-k-chesterton/the-man-who-was-thursday/cover.svg.png',
u'http://book-covers.nypl.org/Standard%20Ebooks/URI/https%3A//standardebooks.org/ebooks/h-beam-piper/space-viking/cover.svg.png',
u'http://book-covers.nypl.org/Standard%20Ebooks/URI/https%3A//standardebooks.org/ebooks/h-g-wells/the-time-machine/cover.svg.png',
u'http://book-covers.nypl.org/Standard%20Ebooks/URI/https%3A//standardebooks.org/ebooks/henry-david-thoreau/walden/cover.svg.png',
u'http://book-covers.nypl.org/Standard%20Ebooks/URI/https%3A//standardebooks.org/ebooks/hermann-hesse/siddhartha/gunther-olesch-anke-dreher-amy-coulter-stefan-langer-semyon-chaichenets/cover.svg.png',
u'http://book-covers.nypl.org/Standard%20Ebooks/URI/https%3A//standardebooks.org/ebooks/jack-london/the-call-of-the-wild/cover.svg.png',
u'http://book-covers.nypl.org/Standard%20Ebooks/URI/https%3A//standardebooks.org/ebooks/jack-london/white-fang/cover.svg.png',
u'http://book-covers.nypl.org/Standard%20Ebooks/URI/https%3A//standardebooks.org/ebooks/james-fenimore-cooper/the-last-of-the-mohicans/cover.svg.png',
u'http://book-covers.nypl.org/Standard%20Ebooks/URI/https%3A//standardebooks.org/ebooks/james-joyce/dubliners/cover.svg.png',
u'http://book-covers.nypl.org/Standard%20Ebooks/URI/https%3A//standardebooks.org/ebooks/jane-austen/pride-and-prejudice/cover.svg.png',
u'http://book-covers.nypl.org/Standard%20Ebooks/URI/https%3A//standardebooks.org/ebooks/jerome-k-jerome/three-men-in-a-boat/cover.svg.png',
u'http://book-covers.nypl.org/Standard%20Ebooks/URI/https%3A//standardebooks.org/ebooks/jules-verne/around-the-world-in-eighty-days/george-makepeace-towle/cover.svg.png',
u'http://book-covers.nypl.org/Standard%20Ebooks/URI/https%3A//standardebooks.org/ebooks/jules-verne/the-mysterious-island/stephen-w-white/cover.svg.png',
u'http://book-covers.nypl.org/Standard%20Ebooks/URI/https%3A//standardebooks.org/ebooks/laozi/tao-te-ching/james-legge/cover.svg.png',
u'http://book-covers.nypl.org/Standard%20Ebooks/URI/https%3A//standardebooks.org/ebooks/leo-tolstoy/a-confession/louise-maude/cover.svg.png',
u'http://book-covers.nypl.org/Standard%20Ebooks/URI/https%3A//standardebooks.org/ebooks/lewis-carroll/alices-adventures-in-wonderland/cover.svg.png',
u'http://book-covers.nypl.org/Standard%20Ebooks/URI/https%3A//standardebooks.org/ebooks/lord-dunsany/the-book-of-wonder/sidney-h-sime/cover.svg.png',
u'http://book-covers.nypl.org/Standard%20Ebooks/URI/https%3A//standardebooks.org/ebooks/marcus-aurelius/meditations/george-long/cover.svg.png',
u'http://book-covers.nypl.org/Standard%20Ebooks/URI/https%3A//standardebooks.org/ebooks/mark-twain/the-adventures-of-huckleberry-finn/cover.svg.png',
u'http://book-covers.nypl.org/Standard%20Ebooks/URI/https%3A//standardebooks.org/ebooks/mary-shelley/frankenstein/cover.svg.png',
u'http://book-covers.nypl.org/Standard%20Ebooks/URI/https%3A//standardebooks.org/ebooks/omar-khayyam/the-rubaiyat-of-omar-khayyam/edward-fitzgerald/edmund-dulac/cover.svg.png',
u'http://book-covers.nypl.org/Standard%20Ebooks/URI/https%3A//standardebooks.org/ebooks/oscar-wilde/the-picture-of-dorian-gray/cover.svg.png',
u'http://book-covers.nypl.org/Standard%20Ebooks/URI/https%3A//standardebooks.org/ebooks/p-g-wodehouse/right-ho-jeeves/cover.svg.png',
u'http://book-covers.nypl.org/Standard%20Ebooks/URI/https%3A//standardebooks.org/ebooks/p-t-barnum/the-art-of-money-getting/cover.svg.png',
u'http://book-covers.nypl.org/Standard%20Ebooks/URI/https%3A//standardebooks.org/ebooks/philip-k-dick/short-fiction/cover.svg.png',
u'http://book-covers.nypl.org/Standard%20Ebooks/URI/https%3A//standardebooks.org/ebooks/robert-frost/north-of-boston/cover.svg.png',
u'http://book-covers.nypl.org/Standard%20Ebooks/URI/https%3A//standardebooks.org/ebooks/robert-louis-stevenson/treasure-island/milo-winter/cover.svg.png',
u'http://book-covers.nypl.org/Standard%20Ebooks/URI/https%3A//standardebooks.org/ebooks/rudyard-kipling/the-jungle-book/cover.svg.png',
u'http://book-covers.nypl.org/Standard%20Ebooks/URI/https%3A//standardebooks.org/ebooks/upton-sinclair/the-jungle/cover.svg.png',
u'http://book-covers.nypl.org/Standard%20Ebooks/URI/https%3A//standardebooks.org/ebooks/w-w-jacobs/the-lady-of-the-barge/maurice-greiffenhagen/cover.svg.png',
u'http://book-covers.nypl.org/scaled/300/Standard%20Ebooks/URI/https%3A//standardebooks.org/ebooks/abraham-merritt/the-moon-pool/cover.svg.png',
u'http://book-covers.nypl.org/scaled/300/Standard%20Ebooks/URI/https%3A//standardebooks.org/ebooks/alfred-lord-tennyson/idylls-of-the-king/gustave-dore/cover.svg.png',
u'http://book-covers.nypl.org/scaled/300/Standard%20Ebooks/URI/https%3A//standardebooks.org/ebooks/algis-budrys/short-fiction/cover.svg.png',
u'http://book-covers.nypl.org/scaled/300/Standard%20Ebooks/URI/https%3A//standardebooks.org/ebooks/anton-chekhov/the-duel/constance-garnett/cover.svg.png',
u'http://book-covers.nypl.org/scaled/300/Standard%20Ebooks/URI/https%3A//standardebooks.org/ebooks/apsley-cherry-garrard/the-worst-journey-in-the-world/cover.svg.png',
u'http://book-covers.nypl.org/scaled/300/Standard%20Ebooks/URI/https%3A//standardebooks.org/ebooks/charles-dickens/david-copperfield/cover.svg.png',
u'http://book-covers.nypl.org/scaled/300/Standard%20Ebooks/URI/https%3A//standardebooks.org/ebooks/edgar-rice-burroughs/a-princess-of-mars/frank-e-schoonover/cover.svg.png',
u'http://book-covers.nypl.org/scaled/300/Standard%20Ebooks/URI/https%3A//standardebooks.org/ebooks/emile-zola/his-masterpiece/ernest-alfred-vizetelly/cover.svg.png',
u'http://book-covers.nypl.org/scaled/300/Standard%20Ebooks/URI/https%3A//standardebooks.org/ebooks/fritz-leiber/the-big-time/cover.svg.png',
u'http://book-covers.nypl.org/scaled/300/Standard%20Ebooks/URI/https%3A//standardebooks.org/ebooks/g-k-chesterton/the-innocence-of-father-brown/cover.svg.png',
u'http://book-covers.nypl.org/scaled/300/Standard%20Ebooks/URI/https%3A//standardebooks.org/ebooks/g-k-chesterton/the-man-who-was-thursday/cover.svg.png',
u'http://book-covers.nypl.org/scaled/300/Standard%20Ebooks/URI/https%3A//standardebooks.org/ebooks/h-beam-piper/space-viking/cover.svg.png',
u'http://book-covers.nypl.org/scaled/300/Standard%20Ebooks/URI/https%3A//standardebooks.org/ebooks/h-g-wells/the-time-machine/cover.svg.png',
u'http://book-covers.nypl.org/scaled/300/Standard%20Ebooks/URI/https%3A//standardebooks.org/ebooks/henry-david-thoreau/walden/cover.svg.png',
u'http://book-covers.nypl.org/scaled/300/Standard%20Ebooks/URI/https%3A//standardebooks.org/ebooks/hermann-hesse/siddhartha/gunther-olesch-anke-dreher-amy-coulter-stefan-langer-semyon-chaichenets/cover.svg.png',
u'http://book-covers.nypl.org/scaled/300/Standard%20Ebooks/URI/https%3A//standardebooks.org/ebooks/jack-london/the-call-of-the-wild/cover.svg.png',
u'http://book-covers.nypl.org/scaled/300/Standard%20Ebooks/URI/https%3A//standardebooks.org/ebooks/jack-london/white-fang/cover.svg.png',
u'http://book-covers.nypl.org/scaled/300/Standard%20Ebooks/URI/https%3A//standardebooks.org/ebooks/james-fenimore-cooper/the-last-of-the-mohicans/cover.svg.png',
u'http://book-covers.nypl.org/scaled/300/Standard%20Ebooks/URI/https%3A//standardebooks.org/ebooks/james-joyce/dubliners/cover.svg.png',
u'http://book-covers.nypl.org/scaled/300/Standard%20Ebooks/URI/https%3A//standardebooks.org/ebooks/jane-austen/pride-and-prejudice/cover.svg.png',
u'http://book-covers.nypl.org/scaled/300/Standard%20Ebooks/URI/https%3A//standardebooks.org/ebooks/jerome-k-jerome/three-men-in-a-boat/cover.svg.png',
u'http://book-covers.nypl.org/scaled/300/Standard%20Ebooks/URI/https%3A//standardebooks.org/ebooks/jules-verne/around-the-world-in-eighty-days/george-makepeace-towle/cover.svg.png',
u'http://book-covers.nypl.org/scaled/300/Standard%20Ebooks/URI/https%3A//standardebooks.org/ebooks/jules-verne/the-mysterious-island/stephen-w-white/cover.svg.png',
u'http://book-covers.nypl.org/scaled/300/Standard%20Ebooks/URI/https%3A//standardebooks.org/ebooks/laozi/tao-te-ching/james-legge/cover.svg.png',
u'http://book-covers.nypl.org/scaled/300/Standard%20Ebooks/URI/https%3A//standardebooks.org/ebooks/leo-tolstoy/a-confession/louise-maude/cover.svg.png',
u'http://book-covers.nypl.org/scaled/300/Standard%20Ebooks/URI/https%3A//standardebooks.org/ebooks/lewis-carroll/alices-adventures-in-wonderland/cover.svg.png',
u'http://book-covers.nypl.org/scaled/300/Standard%20Ebooks/URI/https%3A//standardebooks.org/ebooks/marcus-aurelius/meditations/george-long/cover.svg.png',
u'http://book-covers.nypl.org/scaled/300/Standard%20Ebooks/URI/https%3A//standardebooks.org/ebooks/mark-twain/the-adventures-of-huckleberry-finn/cover.svg.png',
u'http://book-covers.nypl.org/scaled/300/Standard%20Ebooks/URI/https%3A//standardebooks.org/ebooks/mary-shelley/frankenstein/cover.svg.png',
u'http://book-covers.nypl.org/scaled/300/Standard%20Ebooks/URI/https%3A//standardebooks.org/ebooks/omar-khayyam/the-rubaiyat-of-omar-khayyam/edward-fitzgerald/edmund-dulac/cover.svg.png',
u'http://book-covers.nypl.org/scaled/300/Standard%20Ebooks/URI/https%3A//standardebooks.org/ebooks/p-g-wodehouse/right-ho-jeeves/cover.svg.png',
u'http://book-covers.nypl.org/scaled/300/Standard%20Ebooks/URI/https%3A//standardebooks.org/ebooks/p-t-barnum/the-art-of-money-getting/cover.svg.png',
u'http://book-covers.nypl.org/scaled/300/Standard%20Ebooks/URI/https%3A//standardebooks.org/ebooks/philip-k-dick/short-fiction/cover.svg.png',
u'http://book-covers.nypl.org/scaled/300/Standard%20Ebooks/URI/https%3A//standardebooks.org/ebooks/robert-frost/north-of-boston/cover.svg.png',
u'http://book-covers.nypl.org/scaled/300/Standard%20Ebooks/URI/https%3A//standardebooks.org/ebooks/robert-louis-stevenson/treasure-island/milo-winter/cover.svg.png',
u'http://book-covers.nypl.org/scaled/300/Standard%20Ebooks/URI/https%3A//standardebooks.org/ebooks/rudyard-kipling/the-jungle-book/cover.svg.png',
u'http://book-covers.nypl.org/scaled/300/Standard%20Ebooks/URI/https%3A//standardebooks.org/ebooks/upton-sinclair/the-jungle/cover.svg.png',
u'http://book-covers.nypl.org/scaled/300/Standard%20Ebooks/URI/https%3A//standardebooks.org/ebooks/w-w-jacobs/the-lady-of-the-barge/maurice-greiffenhagen/cover.svg.png'
]
BROKEN_EXTENSION = u'.svg.png'
def explain(edition, representation, work):
print "** %s by %s **" % (edition.author, edition.title)
print "\tCOVER: %s" % edition.cover_full_url
print "\tTHUMB: %s" % edition.cover_thumbnail_url
print "\tREP: %s" % representation.mirror_url
print "\n"
try:
_db = production_session()
LIKE_EXTENSION = '%'+BROKEN_EXTENSION+'%'
qu = _db.query(Edition, Representation, Work)\
.join(Edition.primary_identifier).join(Identifier.links)\
.join(Hyperlink.resource).join(Resource.representation)\
.join(Identifier.licensed_through).join(LicensePool.data_source)\
.join(Edition.work).filter(
Hyperlink.rel.in_([Hyperlink.IMAGE, Hyperlink.THUMBNAIL_IMAGE]),
Representation.mirror_url.like(LIKE_EXTENSION),
or_(
Work.verbose_opds_entry.like(LIKE_EXTENSION),
Work.simple_opds_entry.like(LIKE_EXTENSION),
Representation.mirror_url.in_(BROKEN_IMAGE_URLS),
Edition.cover_full_url.in_(BROKEN_IMAGE_URLS),
Edition.cover_thumbnail_url.in_(BROKEN_IMAGE_URLS)))
count = 0
policy = PresentationCalculationPolicy(regenerate_opds_entries=True)
fake_search = DummyExternalSearchIndex()
for (edition, representation, work) in qu:
explain(edition, representation, work)
# It might just be an issue with a cached OPDS entry and not
# the edition at all, so first check to see if the extension
# is in either image URL.
opds_problem = not (edition.cover_full_url.endswith(BROKEN_EXTENSION)
or edition.cover_thumbnail_url.endswith(BROKEN_EXTENSION))
if not opds_problem:
# The problem extends past the OPDS entries to the
# edition image URLs. These URLs haven't been replaced
# by '.jpg' images and those images likely don't exist.
#
# Instead, point to an existing '.png' file -- without the
# '.svg' interruption.
for url_type in ['cover_full_url', 'cover_thumbnail_url']:
url = getattr(edition, url_type)
if url.endswith(BROKEN_EXTENSION):
correct_image_url = url.replace(BROKEN_EXTENSION, '.png')
setattr(edition, url_type, correct_image_url)
representation.mirror_url = correct_image_url
# Recreate the OPDS entries.
work.calculate_presentation(policy=policy, search_index_client=fake_search)
# Confirm that the problem files are no longer being linked
# in the OPDS entries.
present = (BROKEN_EXTENSION in work.simple_opds_entry
or BROKEN_EXTENSION in work.verbose_opds_entry)
if not present:
print "The %s file has been removed from all OPDS entries." % BROKEN_EXTENSION
else:
print "ERROR: The %s file could not be removed: %r." % (BROKEN_EXTENSION, work)
count += 1
print "Updated %i Works" % count
finally:
_db.commit()
_db.close()
| 87
| 213
| 0.760932
| 2,370
| 15,573
| 4.960338
| 0.156118
| 0.04083
| 0.059714
| 0.099524
| 0.802824
| 0.7967
| 0.7967
| 0.791256
| 0.791256
| 0.791256
| 0
| 0.024343
| 0.074103
| 15,573
| 178
| 214
| 87.488764
| 0.79097
| 0.032235
| 0
| 0
| 0
| 0.527027
| 0.769612
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0.033784
| null | null | 0.054054
| 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
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 9
|
3895a969f82adb0f1006d2fe0088bb866806efc2
| 2,830
|
py
|
Python
|
testRequests.py
|
jacblo/tests-and-early-projects
|
16ca33498fe336b089e24981e148ad81e57adb13
|
[
"CC0-1.0"
] | null | null | null |
testRequests.py
|
jacblo/tests-and-early-projects
|
16ca33498fe336b089e24981e148ad81e57adb13
|
[
"CC0-1.0"
] | null | null | null |
testRequests.py
|
jacblo/tests-and-early-projects
|
16ca33498fe336b089e24981e148ad81e57adb13
|
[
"CC0-1.0"
] | null | null | null |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Nov 23 09:10:03 2020
@author: y4
"""
import requests
import time
import random
for x in range(1):
x = requests.post("https://pagead2.googlesyndication.com/pcs/activeview?xai=AKAOjsuGRTt_6bncT8b4q8oyKfrq281KRAA1B89SPphM13YPBxITGkHGbm_IxGc6ksS3VD_3etslgBA1hEKnDu-0nNokQO57I73A8mc-xqbUB6lb0C3CuE304Ro&sai=AMfl-YSRyEyN_z0o7iuGaiek948RaXoQ_a4mQSaUDAs0P82fnVSLhLvc0uMs1cLA2y8JP9Kv4oLREN6yA1VQ8rjGCvPS03JDWTvojc7FTlWntVm4YHHIQM2UhsORkphAkNbO0uzz&sig=Cg0ArKJSzMpJdTikRcIQEAE&adk=3205039840&tt=-1&bs=0%2C0&mtos=0,0,0,1019,8786&tos=0,0,0,1019,7767&p=872,418,1122,1388&mcvt=1019&rs=3&ht=0&tfs=568&tls=9354&mc=0.31<e=-1&bas=0&bac=0&if=1&met=mue&la=1&avms=nio&niot_obs=466&niot_cbk=468&md=2&btr=0&cpmav=0&lm=2&rst=1606591869449&dlt=27&rpt=3862&isd=0&msd=0&xdi=0&postrxl=1&ps=-12245933%2C-12245933&scs=1920%2C1080&pt=-1&bin=4&deb=1-0-0-88-3-87-87-0-0-0&tvt=9353&is=970%2C250&iframe_loc=https%3A%2F%2Fad7d7422533ddd250cce73001f120697.safeframe.googlesyndication.com%2Fsafeframe%2F1-0-37%2Fhtml%2Fcontainer.html&r=v&id=osdim&vs=4&uc=88&upc=1&tgt=DIV&cl=1&cec=1&wf=0&cac=1&cd=968x248&itpl=21&v=20201118",data={
"authority": "pagead2.googlesyndication.com",
"method": "GET",
"path": '/pcs/activeview?xai=AKAOjsuGRTt_6bncT8b4q8oyKfrq281KRAA1B89SPphM13YPBxITGkHGbm_IxGc6ksS3VD_3etslgBA1hEKnDu-0nNokQO57I73A8mc-xqbUB6lb0C3CuE304Ro&sai=AMfl-YSRyEyN_z0o7iuGaiek948RaXoQ_a4mQSaUDAs0P82fnVSLhLvc0uMs1cLA2y8JP9Kv4oLREN6yA1VQ8rjGCvPS03JDWTvojc7FTlWntVm4YHHIQM2UhsORkphAkNbO0uzz&sig=Cg0ArKJSzMpJdTikRcIQEAE&adk=3205039840&tt=-1&bs=0%2C0&mtos=0,0,0,1019,8786&tos=0,0,0,1019,7767&p=872,418,1122,1388&mcvt=1019&rs=3&ht=0&tfs=568&tls=9354&mc=0.31<e=-1&bas=0&bac=0&if=1&met=mue&la=1&avms=nio&niot_obs=466&niot_cbk=468&md=2&btr=0&cpmav=0&lm=2&rst=1606591869449&dlt=27&rpt=3862&isd=0&msd=0&xdi=0&postrxl=1&ps=-12245933%2C-12245933&scs=1920%2C1080&pt=-1&bin=4&deb=1-0-0-88-3-87-87-0-0-0&tvt=9353&is=970%2C250&iframe_loc=https%3A%2F%2Fad7d7422533ddd250cce73001f120697.safeframe.googlesyndication.com%2Fsafeframe%2F1-0-37%2Fhtml%2Fcontainer.html&r=v&id=osdim&vs=4&uc=88&upc=1&tgt=DIV&cl=1&cec=1&wf=0&cac=1&cd=968x248&itpl=21&v=20201118',
"scheme": "https",
"accept": "image/avif,image/webp,image/apng,image/*,*/*;q=0.8",
"accept-encoding": "gzip, deflate, br",
"accept-language": "en-GB,en-US;q=0.9,en;q=0.8",
"referer": "https://ad7d7422533ddd250cce73001f120697.safeframe.googlesyndication.com/safeframe/1-0-37/html/container.html",
"sec-fetch-dest": "image",
"sec-fetch-mode": "no-cors",
"sec-fetch-site": "same-site",
"user-agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36 OPR/72.0.3815.400"
})
time.sleep(1)
print(x)
| 94.333333
| 1,001
| 0.755477
| 463
| 2,830
| 4.580994
| 0.444924
| 0.013201
| 0.008487
| 0.013201
| 0.721358
| 0.721358
| 0.721358
| 0.721358
| 0.721358
| 0.721358
| 0
| 0.234428
| 0.063958
| 2,830
| 30
| 1,002
| 94.333333
| 0.566251
| 0.032509
| 0
| 0
| 0
| 0.25
| 0.881319
| 0.38022
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.15
| 0
| 0.15
| 0.05
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 9
|
38aedd7998e6e1b947607374fa753a918b64940d
| 1,667
|
py
|
Python
|
tests/test_print.py
|
IwoHerka/sexpr
|
28e32f543a127bbbf832b2dba7cb93f9e57db3b6
|
[
"MIT"
] | 7
|
2018-07-22T09:05:12.000Z
|
2021-01-07T16:38:11.000Z
|
tests/test_print.py
|
IwoHerka/sexpr
|
28e32f543a127bbbf832b2dba7cb93f9e57db3b6
|
[
"MIT"
] | 15
|
2018-06-24T14:41:26.000Z
|
2021-03-25T21:51:12.000Z
|
tests/test_print.py
|
IwoHerka/sexpr
|
28e32f543a127bbbf832b2dba7cb93f9e57db3b6
|
[
"MIT"
] | null | null | null |
from sexpr import Sexpr
from sexpr.print import pformat
def test_pformat():
exp = ['select_exp',
['set_quantifier', 'all'],
['select_list',
['select_item', ['column_name', 'sid']],
['select_item', ['column_name', 'status']],
],
['inner_join',
['from_clause', ['table_name', 'suppliers']],
['from_clause', ['table_name', 'parts']],
['eq',
['select_item', ['column_name', 'city']],
['select_item', ['column_name', 'city']]
]
]
]
assert pformat(exp) == '''\
['select_exp',
['set_quantifier', 'all'],
['select_list',
['select_item', ['column_name', 'sid']],
['select_item', ['column_name', 'status']]
],
['inner_join',
['from_clause', ['table_name', 'suppliers']],
['from_clause', ['table_name', 'parts']],
['eq',
['select_item', ['column_name', 'city']],
['select_item', ['column_name', 'city']]
]
]
]'''
exp = Sexpr(['tag', 1])
assert pformat(exp) == "['tag', 1]"
exp = ['eq',
['select_item', ['column_name', 'city']],
['select_item', ['column_name', 'city']]
]
assert pformat(exp) == '''\
['eq',
['select_item', ['column_name', 'city']],
['select_item', ['column_name', 'city']]
]'''
obj0 = object()
obj1 = object()
exp = ['eq',
['select_item', obj0],
['select_item', obj1]
]
repr0 = repr(obj0)
repr1 = repr(obj1)
assert pformat(exp) == '''\
['eq',
['select_item', {}],
['select_item', {}]
]'''.format(repr0, repr1)
| 24.880597
| 57
| 0.479304
| 160
| 1,667
| 4.7125
| 0.225
| 0.212202
| 0.254642
| 0.318302
| 0.746684
| 0.746684
| 0.709549
| 0.709549
| 0.709549
| 0.709549
| 0
| 0.010161
| 0.291542
| 1,667
| 66
| 58
| 25.257576
| 0.628281
| 0
| 0
| 0.568966
| 0
| 0
| 0.539292
| 0
| 0
| 0
| 0
| 0
| 0.068966
| 1
| 0.017241
| false
| 0
| 0.034483
| 0
| 0.051724
| 0.017241
| 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
| 0
|
0
| 8
|
2a0e91e1f8f13f594e2a8e694feba76d2b998b3e
| 129
|
py
|
Python
|
graphite_feeder/handler/event/enum/power/__init__.py
|
majamassarini/automate-graphite-feeder
|
0f17f99bbdaab86e10e0b7d424d055ff44fc4ca0
|
[
"MIT"
] | null | null | null |
graphite_feeder/handler/event/enum/power/__init__.py
|
majamassarini/automate-graphite-feeder
|
0f17f99bbdaab86e10e0b7d424d055ff44fc4ca0
|
[
"MIT"
] | null | null | null |
graphite_feeder/handler/event/enum/power/__init__.py
|
majamassarini/automate-graphite-feeder
|
0f17f99bbdaab86e10e0b7d424d055ff44fc4ca0
|
[
"MIT"
] | null | null | null |
from graphite_feeder.handler.event.enum.power import production
from graphite_feeder.handler.event.enum.power import consumption
| 43
| 64
| 0.875969
| 18
| 129
| 6.166667
| 0.555556
| 0.216216
| 0.324324
| 0.45045
| 0.810811
| 0.810811
| 0.810811
| 0.810811
| 0
| 0
| 0
| 0
| 0.062016
| 129
| 2
| 65
| 64.5
| 0.917355
| 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
| 1
| 1
| 1
| 1
| 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
| 12
|
2a45f3ae8a093bd69bd3f80a10cc45dab4c685fb
| 2,791
|
py
|
Python
|
Project1-MazeSolver/test_MazeSolver.py
|
EricCharnesky/CIS2001-Winter2021
|
a633e32026726f985eea1fe7dd0da3497fff45aa
|
[
"MIT"
] | 3
|
2021-02-04T22:56:48.000Z
|
2021-07-17T05:47:24.000Z
|
Project1-MazeSolver/test_MazeSolver.py
|
EricCharnesky/CIS2001-Winter2021
|
a633e32026726f985eea1fe7dd0da3497fff45aa
|
[
"MIT"
] | null | null | null |
Project1-MazeSolver/test_MazeSolver.py
|
EricCharnesky/CIS2001-Winter2021
|
a633e32026726f985eea1fe7dd0da3497fff45aa
|
[
"MIT"
] | 1
|
2021-02-07T01:40:24.000Z
|
2021-02-07T01:40:24.000Z
|
from unittest import TestCase
from MazeSolver import MazeSolver
class TestMazeSolver(TestCase):
def test_solve(self):
# arrange
maze = [
['S', 'W', ' ', ' ', ' '],
[' ', 'W', ' ', 'W', ' '],
[' ', ' ', ' ', ' ', ' '],
[' ', 'W', ' ', 'W', ' '],
[' ', 'W', ' ', ' ', 'E'],
]
expected_shorted_path = 8
# act
mazeSolver = MazeSolver(maze)
mazeSolver.solve()
actual_shorted_path = mazeSolver.shortest_path()
# assert
self.assertEqual(expected_shorted_path, actual_shorted_path)
def test_solve_other_maze(self):
# arrange
maze = [
['E', 'W', ' ', ' ', ' '],
[' ', 'W', ' ', 'W', ' '],
[' ', ' ', ' ', ' ', ' '],
[' ', 'W', ' ', 'W', ' '],
[' ', 'W', ' ', ' ', 'S'],
]
expected_shorted_path = 8
# act
mazeSolver = MazeSolver(maze)
mazeSolver.solve()
actual_shorted_path = mazeSolver.shortest_path()
# assert
self.assertEqual(expected_shorted_path, actual_shorted_path)
def test_solve_other_maze2(self):
# arrange
maze = [
['S', 'W', ' ', ' ', ' '],
[' ', 'W', ' ', 'W', ' '],
[' ', ' ', ' ', ' ', ' '],
[' ', 'W', ' ', 'W', 'E'],
[' ', 'W', ' ', ' ', ' '],
]
expected_shorted_path = 7
# act
mazeSolver = MazeSolver(maze)
mazeSolver.solve()
actual_shorted_path = mazeSolver.shortest_path()
# assert
self.assertEqual(expected_shorted_path, actual_shorted_path)
def test_solve_rectangle(self):
# arrange
maze = [
['S', 'W', ' ', ' ', ' ', ' '],
[' ', 'W', ' ', 'W', ' ', ' '],
[' ', ' ', ' ', ' ', ' ', ' '],
[' ', 'W', ' ', 'W', 'E', ' '],
[' ', 'W', ' ', ' ', ' ', ' '],
]
expected_shorted_path = 7
# act
mazeSolver = MazeSolver(maze)
mazeSolver.solve()
actual_shorted_path = mazeSolver.shortest_path()
# assert
self.assertEqual(expected_shorted_path, actual_shorted_path)
def test_solve_no_walls(self):
# arrange
maze = [
['S', ' ', ' ', ' ', ' '],
[' ', ' ', ' ', ' ', ' '],
[' ', ' ', ' ', ' ', ' '],
[' ', ' ', ' ', ' ', ' '],
[' ', ' ', ' ', ' ', 'E'],
]
expected_shorted_path = 8
# act
mazeSolver = MazeSolver(maze)
mazeSolver.solve()
actual_shorted_path = mazeSolver.shortest_path()
# assert
self.assertEqual(expected_shorted_path, actual_shorted_path)
| 27.362745
| 68
| 0.406306
| 207
| 2,791
| 5.202899
| 0.149758
| 0.204271
| 0.038997
| 0.03714
| 0.857939
| 0.857939
| 0.851439
| 0.851439
| 0.851439
| 0.831941
| 0
| 0.003536
| 0.391974
| 2,791
| 101
| 69
| 27.633663
| 0.631114
| 0.03368
| 0
| 0.632353
| 0
| 0
| 0.048489
| 0
| 0
| 0
| 0
| 0
| 0.073529
| 1
| 0.073529
| false
| 0
| 0.029412
| 0
| 0.117647
| 0
| 0
| 0
| 0
| null | 1
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
aabc502f7243793cc6696613f6f4a4f90b2edb44
| 93
|
py
|
Python
|
parameters_8000.py
|
mbreisch/real-python-rest-api
|
d89f70deca949273f021c995ca291e312b9fef13
|
[
"BSD-3-Clause"
] | null | null | null |
parameters_8000.py
|
mbreisch/real-python-rest-api
|
d89f70deca949273f021c995ca291e312b9fef13
|
[
"BSD-3-Clause"
] | null | null | null |
parameters_8000.py
|
mbreisch/real-python-rest-api
|
d89f70deca949273f021c995ca291e312b9fef13
|
[
"BSD-3-Clause"
] | null | null | null |
password="pbkdf2(1000,20,sha512)$be30318339857a4e$f163d3fdcd0c711d1db7b7e091d42420d171d782"
| 46.5
| 92
| 0.88172
| 7
| 93
| 11.714286
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.516484
| 0.021505
| 93
| 1
| 93
| 93
| 0.384615
| 0
| 0
| 0
| 0
| 0
| 0.869565
| 0.869565
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 1
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 8
|
6304f30891334d94b43e94140a68305f8c6e62bd
| 3,440
|
py
|
Python
|
progs/python-t77-date-master/python-t77-date-master/tests/set_next_week_day_test.py
|
am-3/TimeZoned
|
e8ae2e90c2d6addf13b145aa2a4c7a9a66c1346e
|
[
"MIT"
] | null | null | null |
progs/python-t77-date-master/python-t77-date-master/tests/set_next_week_day_test.py
|
am-3/TimeZoned
|
e8ae2e90c2d6addf13b145aa2a4c7a9a66c1346e
|
[
"MIT"
] | 1
|
2016-02-08T18:43:49.000Z
|
2016-02-08T19:21:13.000Z
|
progs/python-t77-date-master/python-t77-date-master/tests/set_next_week_day_test.py
|
am-3/TimeZoned
|
e8ae2e90c2d6addf13b145aa2a4c7a9a66c1346e
|
[
"MIT"
] | null | null | null |
import unittest
from datetime import datetime, date
from t77_date import FRIDAY, ISO_FRIDAY, set_next_week_day
class SetNextWeekDayTestCase(unittest.TestCase):
def test_date_saturday_to_next_friday(self):
saturday = date(2016, 7, 2) # SATURDAY
next_friday = set_next_week_day(saturday, FRIDAY)
self.assertEqual(next_friday.weekday(), FRIDAY)
self.assertGreater(next_friday, saturday)
def test_date_friday_to_friday(self):
friday = date(2016, 7, 1) # FRIDAY
next_friday = set_next_week_day(friday, FRIDAY)
self.assertEqual(next_friday.weekday(), FRIDAY)
self.assertEqual(next_friday, friday)
def test_date_thursday_to_next_friday(self):
thursday = date(2016, 6, 30) # THURSDAY
next_friday = set_next_week_day(thursday, FRIDAY)
self.assertEqual(next_friday.weekday(), FRIDAY)
self.assertGreater(next_friday, thursday)
def test_datetime_saturday_to_next_friday(self):
saturday = datetime(2016, 7, 2, 12) # SATURDAY
next_friday = set_next_week_day(saturday, FRIDAY)
self.assertEqual(next_friday.weekday(), FRIDAY)
self.assertGreater(next_friday, saturday)
def test_datetime_friday_to_friday(self):
friday = datetime(2016, 7, 1, 12) # FRIDAY
next_friday = set_next_week_day(friday, FRIDAY)
self.assertEqual(next_friday.weekday(), FRIDAY)
self.assertEqual(next_friday, friday)
def test_datetime_thursday_to_next_friday(self):
thursday = datetime(2016, 6, 30, 12) # THURSDAY
next_friday = set_next_week_day(thursday, FRIDAY)
self.assertEqual(next_friday.weekday(), FRIDAY)
self.assertGreater(next_friday, thursday)
def test_date_saturday_to_next_friday_iso(self):
saturday = date(2016, 7, 2) # SATURDAY
next_friday = set_next_week_day(saturday, ISO_FRIDAY, True)
self.assertEqual(next_friday.isoweekday(), ISO_FRIDAY)
self.assertGreater(next_friday, saturday)
def test_date_friday_to_friday_iso(self):
friday = date(2016, 7, 1) # FRIDAY
next_friday = set_next_week_day(friday, ISO_FRIDAY, True)
self.assertEqual(next_friday.isoweekday(), ISO_FRIDAY)
self.assertEqual(next_friday, friday)
def test_date_thursday_to_next_friday_iso(self):
thursday = date(2016, 6, 30) # THURSDAY
next_friday = set_next_week_day(thursday, ISO_FRIDAY, True)
self.assertEqual(next_friday.isoweekday(), ISO_FRIDAY)
self.assertGreater(next_friday, thursday)
def test_datetime_saturday_to_next_friday_iso(self):
saturday = datetime(2016, 7, 2, 12) # SATURDAY
next_friday = set_next_week_day(saturday, ISO_FRIDAY, True)
self.assertEqual(next_friday.isoweekday(), ISO_FRIDAY)
self.assertGreater(next_friday, saturday)
def test_datetime_friday_to_friday_iso(self):
friday = datetime(2016, 7, 1, 12) # FRIDAY
next_friday = set_next_week_day(friday, ISO_FRIDAY, True)
self.assertEqual(next_friday.isoweekday(), ISO_FRIDAY)
self.assertEqual(next_friday, friday)
def test_datetime_thursday_to_next_friday_iso(self):
thursday = datetime(2016, 6, 30, 12) # THURSDAY
next_friday = set_next_week_day(thursday, ISO_FRIDAY, True)
self.assertEqual(next_friday.isoweekday(), ISO_FRIDAY)
self.assertGreater(next_friday, thursday)
| 43.544304
| 67
| 0.710465
| 444
| 3,440
| 5.164414
| 0.074324
| 0.191888
| 0.132577
| 0.174444
| 0.95072
| 0.941997
| 0.939381
| 0.910161
| 0.910161
| 0.910161
| 0
| 0.032715
| 0.200291
| 3,440
| 78
| 68
| 44.102564
| 0.8008
| 0.028779
| 0
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.375
| 1
| 0.1875
| false
| 0
| 0.046875
| 0
| 0.25
| 0
| 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
|
630692d170e3e39e01cb9144acf59dcaa02d1ba0
| 4,316
|
py
|
Python
|
capybara/tests/session/test_has_checked_field.py
|
dwt/capybara.py
|
eafd9ac50d02e8b57ef90d767493c8fa2be0739a
|
[
"MIT"
] | null | null | null |
capybara/tests/session/test_has_checked_field.py
|
dwt/capybara.py
|
eafd9ac50d02e8b57ef90d767493c8fa2be0739a
|
[
"MIT"
] | null | null | null |
capybara/tests/session/test_has_checked_field.py
|
dwt/capybara.py
|
eafd9ac50d02e8b57ef90d767493c8fa2be0739a
|
[
"MIT"
] | null | null | null |
import pytest
class TestHasCheckedFiled:
@pytest.fixture(autouse=True)
def setup_session(self, session):
session.visit("/form")
def test_is_true_if_a_checked_field_is_on_the_page(self, session):
assert session.has_checked_field("gender_female")
assert session.has_checked_field("Hamster")
def test_is_true_for_disabled_checkboxes_if_disabled_is_true(self, session):
assert session.has_checked_field("Disabled Checkbox", disabled=True)
def test_is_false_if_an_unchecked_field_is_on_the_page(self, session):
assert not session.has_checked_field("form_pets_cat")
assert not session.has_checked_field("Male")
def test_is_false_if_no_field_is_on_the_page(self, session):
assert not session.has_checked_field("Does Not Exist")
def test_is_false_for_disabled_checkboxes_by_default(self, session):
assert not session.has_checked_field("Disabled Checkbox")
def test_is_false_for_disabled_checkboxes_if_disabled_is_false(self, session):
assert not session.has_checked_field("Disabled Checkbox", disabled=False)
def test_is_true_for_disabled_checkboxes_if_disabled_is_all(self, session):
assert session.has_checked_field("Disabled Checkbox", disabled="all")
def test_is_true_for_enabled_checkboxes_if_disabled_is_all(self, session):
assert session.has_checked_field("gender_female", disabled="all")
def test_is_true_after_an_unchecked_checkbox_is_checked(self, session):
session.check("form_pets_cat")
assert session.has_checked_field("form_pets_cat")
def test_is_false_after_a_checked_checkbox_is_unchecked(self, session):
session.uncheck("form_pets_dog")
assert not session.has_checked_field("form_pets_dog")
def test_is_true_after_an_unchecked_radio_button_is_chosen(self, session):
session.choose("gender_male")
assert session.has_checked_field("gender_male")
def test_is_false_after_another_radio_button_in_the_group_is_chosen(self, session):
session.choose("gender_male")
assert not session.has_checked_field("gender_female")
class TestHasNoCheckedFiled:
@pytest.fixture(autouse=True)
def setup_session(self, session):
session.visit("/form")
def test_is_false_if_a_checked_field_is_on_the_page(self, session):
assert not session.has_no_checked_field("gender_female")
assert not session.has_no_checked_field("Hamster")
def test_is_false_for_disabled_checkboxes_if_disabled_is_true(self, session):
assert not session.has_no_checked_field("Disabled Checkbox", disabled=True)
def test_is_true_if_an_unchecked_field_is_on_the_page(self, session):
assert session.has_no_checked_field("form_pets_cat")
assert session.has_no_checked_field("Male")
def test_is_true_if_no_field_is_on_the_page(self, session):
assert session.has_no_checked_field("Does Not Exist")
def test_is_true_for_disabled_checkboxes_by_default(self, session):
assert session.has_no_checked_field("Disabled Checkbox")
def test_is_true_for_disabled_checkboxes_if_disabled_is_false(self, session):
assert session.has_no_checked_field("Disabled Checkbox", disabled=False)
def test_is_false_for_disabled_checkboxes_if_disabled_is_all(self, session):
assert not session.has_no_checked_field("Disabled Checkbox", disabled="all")
def test_is_false_for_enabled_checkboxes_if_disabled_is_all(self, session):
assert not session.has_no_checked_field("gender_female", disabled="all")
def test_is_false_after_an_unchecked_checkbox_is_checked(self, session):
session.check("form_pets_cat")
assert not session.has_no_checked_field("form_pets_cat")
def test_is_true_after_a_checked_checkbox_is_unchecked(self, session):
session.uncheck("form_pets_dog")
assert session.has_no_checked_field("form_pets_dog")
def test_is_false_after_an_unchecked_radio_button_is_chosen(self, session):
session.choose("gender_male")
assert not session.has_no_checked_field("gender_male")
def test_is_true_after_another_radio_button_in_the_group_is_chosen(self, session):
session.choose("gender_male")
assert session.has_no_checked_field("gender_female")
| 44.040816
| 87
| 0.777108
| 622
| 4,316
| 4.877814
| 0.09164
| 0.118655
| 0.071193
| 0.101516
| 0.979565
| 0.959459
| 0.917601
| 0.863217
| 0.76236
| 0.712261
| 0
| 0
| 0.145968
| 4,316
| 97
| 88
| 44.494845
| 0.823114
| 0
| 0
| 0.202899
| 0
| 0
| 0.111677
| 0
| 0
| 0
| 0
| 0
| 0.405797
| 1
| 0.376812
| false
| 0
| 0.014493
| 0
| 0.42029
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
2da2983db7be31a130516be98d913fd0306cf632
| 164
|
py
|
Python
|
django/contrib/gis/sitemaps/__init__.py
|
egenerat/gae-django
|
f12379483cf3917ed3cb46ca5ff0b94daf89fc50
|
[
"MIT"
] | 3
|
2016-07-08T23:49:32.000Z
|
2018-04-15T22:55:01.000Z
|
django/contrib/gis/sitemaps/__init__.py
|
egenerat/gae-django
|
f12379483cf3917ed3cb46ca5ff0b94daf89fc50
|
[
"MIT"
] | 27
|
2017-02-05T15:57:04.000Z
|
2018-04-15T22:57:26.000Z
|
django/contrib/gis/sitemaps/__init__.py
|
egenerat/gae-django
|
f12379483cf3917ed3cb46ca5ff0b94daf89fc50
|
[
"MIT"
] | null | null | null |
# Geo-enabled Sitemap classes.
from django.contrib.gis.sitemaps.georss import GeoRSSSitemap
from django.contrib.gis.sitemaps.kml import KMLSitemap, KMZSitemap
| 32.8
| 67
| 0.817073
| 21
| 164
| 6.380952
| 0.714286
| 0.149254
| 0.253731
| 0.298507
| 0.41791
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.109756
| 164
| 4
| 68
| 41
| 0.917808
| 0.170732
| 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
|
2deea080c94c001c6d7c8f28cf0d655991d0aa50
| 1,941
|
py
|
Python
|
python/15_bsearch/bs.py
|
ioyy900205/algo
|
6ccf0d792cae34633d6044e2afd289a78d857fd5
|
[
"Apache-2.0"
] | null | null | null |
python/15_bsearch/bs.py
|
ioyy900205/algo
|
6ccf0d792cae34633d6044e2afd289a78d857fd5
|
[
"Apache-2.0"
] | null | null | null |
python/15_bsearch/bs.py
|
ioyy900205/algo
|
6ccf0d792cae34633d6044e2afd289a78d857fd5
|
[
"Apache-2.0"
] | null | null | null |
'''
Date: 2021-08-14 10:34:24
LastEditors: Liuliang
LastEditTime: 2021-08-14 11:55:32
Description:
'''
# 原始版本
def _bs(nums, target):
low, high = 0, len(nums)-1
while low <= high:
mid = low + (high - low) // 2
if nums[mid] == target:
return mid
elif nums[mid] < target:
low = mid + 1
else:
high = mid - 1
return -1
# 左边第一个
def _bs(nums, target):
low, high = 0, len(nums)-1
while low <= high:
mid = low + (high - low) // 2
if nums[mid] < target:
low = mid + 1
elif nums[mid] > target:
high = mid - 1
else:
if mid == 0 or nums[mid-1] != target:
return mid
else:
high = mid - 1
return -1
# 右边最后一个
def _bs(nums, target):
low, high = 0, len(nums)-1
while low <= high:
mid = low + (high - low) // 2
if nums[mid] < target:
low = mid + 1
elif nums[mid] > target:
high = mid - 1
else:
if mid == len(nums) - 1 or nums[mid+1] != target:
return mid
else:
low = mid + 1
return -1
# 第一个大于等于给定元素
def _bs(nums, target):
low, high = 0, len(nums)-1
while low <= high:
mid = low + (high - low) // 2
if nums[mid] < target:
low = mid + 1
else:
if mid == 0 or nums[mid-1] < target:
return mid
else:
high = mid - 1
return -1
# 查找最后⼀个⼩于等于给定值的元素
def _bs(nums, target):
low, high = 0, len(nums) - 1
while low <= high:
mid = low + (high - low) // 2
if nums[mid] > target:
high = mid - 1
else:
if mid == len(nums) - 1 or nums[mid + 1] > target:
return mid
else:
low = mid + 1
list = [1,2,3,5,5,5,6,7]
print(_bs(list,5))
| 23.107143
| 62
| 0.44101
| 256
| 1,941
| 3.328125
| 0.164063
| 0.075117
| 0.122066
| 0.088028
| 0.812207
| 0.812207
| 0.794601
| 0.766432
| 0.766432
| 0.766432
| 0
| 0.068966
| 0.432251
| 1,941
| 84
| 63
| 23.107143
| 0.702359
| 0.073673
| 0
| 0.859375
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.078125
| false
| 0
| 0
| 0
| 0.21875
| 0.015625
| 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
|
faeae81f91236726a47f9031dea8b4dfc2fd6f84
| 8,787
|
py
|
Python
|
test/test_exec/test_shift.py
|
iafisher/hera-py
|
773729870cd593f0dc55ac6fe8b9c8690faa73c1
|
[
"MIT"
] | 2
|
2020-10-27T19:16:45.000Z
|
2020-10-27T19:26:44.000Z
|
test/test_exec/test_shift.py
|
iafisher/hera-py
|
773729870cd593f0dc55ac6fe8b9c8690faa73c1
|
[
"MIT"
] | 141
|
2018-11-20T16:55:06.000Z
|
2021-03-29T01:07:59.000Z
|
test/test_exec/test_shift.py
|
iafisher/hera-py
|
773729870cd593f0dc55ac6fe8b9c8690faa73c1
|
[
"MIT"
] | 1
|
2019-02-27T22:02:33.000Z
|
2019-02-27T22:02:33.000Z
|
import pytest
from .utils import helper
from hera.utils import to_u16
from hera.vm import VirtualMachine
@pytest.fixture
def vm():
return VirtualMachine()
def test_LSL_with_small_positive(vm):
vm.registers[2] = 7
helper(vm, "LSL(R1, R2)")
assert vm.registers[1] == 14
def test_LSL_with_large_positive(vm):
vm.registers[2] = 15000
helper(vm, "LSL(R1, R2)")
assert vm.registers[1] == 30000
def test_LSL_with_positive_overflow(vm):
vm.registers[2] = 17000
helper(vm, "LSL(R1, R2)")
assert vm.registers[1] == 34000
def test_LSL_with_small_negative(vm):
vm.registers[2] = to_u16(-7)
helper(vm, "LSL(R1, R2)")
assert vm.registers[1] == to_u16(-14)
assert vm.flag_sign
assert not vm.flag_zero
def test_LSL_with_large_negative(vm):
vm.registers[2] = to_u16(-8400)
helper(vm, "LSL(R1, R2)")
assert vm.registers[1] == to_u16(-16800)
def test_LSL_with_negative_overflow(vm):
vm.registers[2] = to_u16(-20000)
helper(vm, "LSL(R1, R2)")
assert vm.registers[1] == 25536
assert vm.flag_carry
assert not vm.flag_overflow
def test_LSL_shifts_out_carry_when_blocked(vm):
vm.flag_carry_block = True
vm.registers[2] = to_u16(-20000)
helper(vm, "LSL(R1, R2)")
assert vm.flag_carry
def test_LSL_shifts_in_carry(vm):
vm.flag_carry = True
vm.registers[2] = 7
helper(vm, "LSL(R1, R2)")
assert vm.registers[1] == 15
assert not vm.flag_carry
def test_LSL_ignores_carry_when_blocked(vm):
vm.flag_carry = True
vm.flag_carry_block = True
vm.registers[2] = 7
helper(vm, "LSL(R1, R2)")
assert vm.registers[1] == 14
assert not vm.flag_carry
def test_LSL_resets_carry(vm):
vm.flag_carry = True
helper(vm, "LSL(R1, R2)")
assert not vm.flag_carry
def test_LSL_ignores_overflow_flag(vm):
vm.flag_overflow = True
helper(vm, "LSL(R1, R2)")
assert vm.flag_overflow
def test_LSR_with_small_positive(vm):
vm.registers[2] = 7
helper(vm, "LSR(R1, R2)")
assert vm.registers[1] == 3
def test_LSR_with_large_positive(vm):
vm.registers[2] = 15000
helper(vm, "LSR(R1, R2)")
assert vm.registers[1] == 7500
def test_LSR_with_small_negative(vm):
vm.registers[2] = to_u16(-7)
helper(vm, "LSR(R1, R2)")
assert vm.registers[1] == 32764
def test_LSR_with_large_negative(vm):
vm.registers[2] = to_u16(-8400)
helper(vm, "LSR(R1, R2)")
assert vm.registers[1] == 28568
def test_LSR_with_another_large_negative(vm):
vm.registers[2] = to_u16(-20000)
helper(vm, "LSR(R1, R2)")
assert vm.registers[1] == 22768
def test_LSR_shifts_out_carry_when_blocked(vm):
vm.flag_carry_block = True
vm.registers[2] = 3
helper(vm, "LSR(R1, R2)")
assert vm.registers[1] == 1
assert vm.flag_carry
def test_LSR_shifts_in_carry(vm):
vm.flag_carry = True
vm.registers[2] = 6
helper(vm, "LSR(R1, R2)")
assert vm.registers[1] == to_u16(-32765)
assert not vm.flag_carry
def test_LSR_ignores_carry_when_blocked(vm):
vm.flag_carry = True
vm.flag_carry_block = True
vm.registers[2] = 6
helper(vm, "LSR(R1, R2)")
assert vm.registers[1] == 3
assert not vm.flag_carry
def test_LSR_resets_carry(vm):
vm.flag_carry = True
helper(vm, "LSR(R1, R2)")
assert not vm.flag_carry
def test_LSR_ignores_overflow_flag(vm):
vm.flag_overflow = True
helper(vm, "LSR(R1, R2)")
assert vm.flag_overflow
def test_LSL8_with_small_positive(vm):
vm.registers[2] = 51
helper(vm, "LSL8(R1, R2)")
assert vm.registers[1] == 13056
def test_LSL8_with_large_positive(vm):
vm.registers[2] = 17000
helper(vm, "LSL8(R1, R2)")
assert vm.registers[1] == 26624
def test_LSL8_with_small_negative(vm):
vm.registers[2] = to_u16(-4)
helper(vm, "LSL8(R1, R2)")
assert vm.registers[1] == to_u16(-1024)
def test_LSL8_with_large_negative(vm):
vm.registers[2] = to_u16(-31781)
helper(vm, "LSL8(R1, R2)")
assert vm.registers[1] == to_u16(-9472)
def test_LSL8_ignores_incoming_carry(vm):
vm.flag_carry = True
vm.registers[2] = 5
helper(vm, "LSL8(R1, R2)")
assert vm.registers[1] == 1280
assert vm.flag_carry
def test_LSL8_does_not_set_carry_or_overflow(vm):
vm.registers[2] = to_u16(-1)
helper(vm, "LSL8(R1, R2)")
assert vm.registers[1] == to_u16(-256)
assert not vm.flag_carry
assert not vm.flag_overflow
def test_LSR8_with_small_positive(vm):
vm.registers[2] = 51
helper(vm, "LSR8(R1, R2)")
assert vm.registers[1] == 0
assert not vm.flag_sign
assert vm.flag_zero
def test_LSR8_with_large_positive(vm):
vm.registers[2] = 17000
helper(vm, "LSR8(R1, R2)")
assert vm.registers[1] == 66
def test_LSR8_with_small_negative(vm):
vm.registers[2] = to_u16(-4)
helper(vm, "LSR8(R1, R2)")
assert vm.registers[1] == 255
def test_LSR8_with_large_negative(vm):
vm.registers[2] = to_u16(-31781)
helper(vm, "LSR8(R1, R2)")
assert vm.registers[1] == 131
def test_LSR8_ignores_incoming_carry(vm):
vm.flag_carry = True
vm.registers[2] = 17000
helper(vm, "LSR8(R1, R2)")
assert vm.registers[1] == 66
assert vm.flag_carry
def test_LSR8_does_not_set_carry_or_overflow(vm):
vm.registers[2] = 15910
helper(vm, "LSR8(R1, R2)")
assert vm.registers[1] == 62
assert not vm.flag_carry
assert not vm.flag_overflow
def test_ASL_with_small_positive(vm):
vm.registers[2] = 7
helper(vm, "ASL(R1, R2)")
assert vm.registers[1] == 14
def test_ASL_with_large_positive(vm):
vm.registers[2] = 15000
helper(vm, "ASL(R1, R2)")
assert vm.registers[1] == 30000
def test_ASL_with_positive_overflow(vm):
vm.registers[2] = 17000
helper(vm, "ASL(R1, R2)")
assert vm.registers[1] == 34000
def test_ASL_with_small_negative(vm):
vm.registers[2] = to_u16(-7)
helper(vm, "ASL(R1, R2)")
assert vm.registers[1] == to_u16(-14)
def test_ASL_with_large_negative(vm):
vm.registers[2] = to_u16(-8400)
helper(vm, "ASL(R1, R2)")
assert vm.registers[1] == to_u16(-16800)
def test_ASL_with_negative_overflow(vm):
vm.registers[2] = to_u16(-20000)
helper(vm, "ASL(R1, R2)")
assert vm.registers[1] == 25536
assert vm.flag_carry
assert vm.flag_overflow
def test_ASL_shifts_out_carry_when_blocked(vm):
vm.registers[2] = to_u16(-20000)
helper(vm, "ASL(R1, R2)")
assert vm.flag_carry
assert vm.flag_overflow
def test_ASL_shifts_in_carry(vm):
vm.flag_carry = True
vm.registers[2] = 7
helper(vm, "ASL(R1, R2)")
assert vm.registers[1] == 15
assert not vm.flag_carry
def test_ASL_ignores_carry_when_blocked(vm):
vm.flag_carry = True
vm.flag_carry_block = True
vm.registers[2] = 7
helper(vm, "ASL(R1, R2)")
assert vm.registers[1] == 14
assert not vm.flag_carry
def test_ASL_resets_carry(vm):
vm.flag_carry = True
helper(vm, "ASL(R1, R2)")
assert not vm.flag_carry
def test_ASL_resets_overflow_flag(vm):
vm.flag_overflow = True
helper(vm, "ASL(R1, R2)")
assert not vm.flag_overflow
def test_ASR_with_small_positive(vm):
vm.registers[2] = 7
helper(vm, "ASR(R1, R2)")
assert vm.registers[1] == 3
def test_ASR_with_large_positive(vm):
vm.registers[2] = 15000
helper(vm, "ASR(R1, R2)")
assert vm.registers[1] == 7500
def test_ASR_with_small_negative(vm):
vm.registers[2] = to_u16(-7)
helper(vm, "ASR(R1, R2)")
assert vm.registers[1] == to_u16(-4)
def test_ASR_with_another_small_negative(vm):
vm.registers[2] = to_u16(-5)
helper(vm, "ASR(R1, R2)")
assert vm.registers[1] == to_u16(-3)
def test_ASR_with_large_negative(vm):
vm.registers[2] = to_u16(-8400)
helper(vm, "ASR(R1, R2)")
assert vm.registers[1] == to_u16(-4200)
def test_ASR_shifts_out_carry_when_blocked(vm):
vm.flag_carry_block = True
vm.registers[2] = 3
helper(vm, "ASR(R1, R2)")
assert vm.flag_carry
assert not vm.flag_overflow
def test_ASR_ignores_incoming_carry(vm):
vm.flag_carry = True
vm.registers[2] = 4
helper(vm, "ASR(R1, R2)")
assert vm.registers[1] == 2
assert not vm.flag_carry
def test_ASR_ignores_carry_when_blocked(vm):
vm.flag_carry = True
vm.flag_carry_block = True
vm.registers[2] = 4
helper(vm, "ASR(R1, R2)")
assert vm.registers[1] == 2
assert not vm.flag_carry
def test_ASR_resets_carry(vm):
vm.flag_carry = True
helper(vm, "ASR(R1, R2)")
assert not vm.flag_carry
def test_ASR_does_not_reset_overflow_flag(vm):
vm.flag_overflow = True
helper(vm, "ASR(R1, R2)")
assert vm.flag_overflow
| 18.117526
| 49
| 0.660294
| 1,420
| 8,787
| 3.851408
| 0.061268
| 0.179009
| 0.098738
| 0.107515
| 0.933809
| 0.907296
| 0.883891
| 0.877308
| 0.839824
| 0.672701
| 0
| 0.078069
| 0.205531
| 8,787
| 484
| 50
| 18.154959
| 0.705343
| 0
| 0
| 0.671698
| 0
| 0
| 0.068966
| 0
| 0
| 0
| 0
| 0
| 0.298113
| 1
| 0.207547
| false
| 0
| 0.015094
| 0.003774
| 0.226415
| 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
|
faeff745f6edc8719b8aec858e8395dfa5316497
| 65,529
|
py
|
Python
|
tccli/services/kms/kms_client.py
|
bopopescu/tencentcloud-cli-intl-en
|
e6317252557095dd10018226244e636daa4a3c67
|
[
"Apache-2.0"
] | null | null | null |
tccli/services/kms/kms_client.py
|
bopopescu/tencentcloud-cli-intl-en
|
e6317252557095dd10018226244e636daa4a3c67
|
[
"Apache-2.0"
] | null | null | null |
tccli/services/kms/kms_client.py
|
bopopescu/tencentcloud-cli-intl-en
|
e6317252557095dd10018226244e636daa4a3c67
|
[
"Apache-2.0"
] | null | null | null |
# -*- coding: utf-8 -*-
import os
import json
import tccli.options_define as OptionsDefine
import tccli.format_output as FormatOutput
from tccli.nice_command import NiceCommand
import tccli.error_msg as ErrorMsg
import tccli.help_template as HelpTemplate
from tccli import __version__
from tccli.utils import Utils
from tccli.configure import Configure
from tencentcloud.common import credential
from tencentcloud.common.profile.http_profile import HttpProfile
from tencentcloud.common.profile.client_profile import ClientProfile
from tencentcloud.kms.v20190118 import kms_client as kms_client_v20190118
from tencentcloud.kms.v20190118 import models as models_v20190118
from tccli.services.kms import v20190118
from tccli.services.kms.v20190118 import help as v20190118_help
def doEncrypt(argv, arglist):
g_param = parse_global_arg(argv)
if "help" in argv:
show_help("Encrypt", g_param[OptionsDefine.Version])
return
param = {
"KeyId": argv.get("--KeyId"),
"Plaintext": argv.get("--Plaintext"),
"EncryptionContext": argv.get("--EncryptionContext"),
}
cred = credential.Credential(g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey])
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.KmsClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.EncryptRequest()
model.from_json_string(json.dumps(param))
rsp = client.Encrypt(model)
result = rsp.to_json_string()
jsonobj = None
try:
jsonobj = json.loads(result)
except TypeError as e:
jsonobj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", jsonobj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
def doDecrypt(argv, arglist):
g_param = parse_global_arg(argv)
if "help" in argv:
show_help("Decrypt", g_param[OptionsDefine.Version])
return
param = {
"CiphertextBlob": argv.get("--CiphertextBlob"),
"EncryptionContext": argv.get("--EncryptionContext"),
}
cred = credential.Credential(g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey])
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.KmsClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.DecryptRequest()
model.from_json_string(json.dumps(param))
rsp = client.Decrypt(model)
result = rsp.to_json_string()
jsonobj = None
try:
jsonobj = json.loads(result)
except TypeError as e:
jsonobj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", jsonobj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
def doUpdateAlias(argv, arglist):
g_param = parse_global_arg(argv)
if "help" in argv:
show_help("UpdateAlias", g_param[OptionsDefine.Version])
return
param = {
"Alias": argv.get("--Alias"),
"KeyId": argv.get("--KeyId"),
}
cred = credential.Credential(g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey])
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.KmsClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.UpdateAliasRequest()
model.from_json_string(json.dumps(param))
rsp = client.UpdateAlias(model)
result = rsp.to_json_string()
jsonobj = None
try:
jsonobj = json.loads(result)
except TypeError as e:
jsonobj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", jsonobj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
def doDeleteWhiteBoxKey(argv, arglist):
g_param = parse_global_arg(argv)
if "help" in argv:
show_help("DeleteWhiteBoxKey", g_param[OptionsDefine.Version])
return
param = {
"KeyId": argv.get("--KeyId"),
}
cred = credential.Credential(g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey])
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.KmsClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.DeleteWhiteBoxKeyRequest()
model.from_json_string(json.dumps(param))
rsp = client.DeleteWhiteBoxKey(model)
result = rsp.to_json_string()
jsonobj = None
try:
jsonobj = json.loads(result)
except TypeError as e:
jsonobj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", jsonobj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
def doImportKeyMaterial(argv, arglist):
g_param = parse_global_arg(argv)
if "help" in argv:
show_help("ImportKeyMaterial", g_param[OptionsDefine.Version])
return
param = {
"EncryptedKeyMaterial": argv.get("--EncryptedKeyMaterial"),
"ImportToken": argv.get("--ImportToken"),
"KeyId": argv.get("--KeyId"),
"ValidTo": Utils.try_to_json(argv, "--ValidTo"),
}
cred = credential.Credential(g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey])
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.KmsClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.ImportKeyMaterialRequest()
model.from_json_string(json.dumps(param))
rsp = client.ImportKeyMaterial(model)
result = rsp.to_json_string()
jsonobj = None
try:
jsonobj = json.loads(result)
except TypeError as e:
jsonobj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", jsonobj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
def doGetPublicKey(argv, arglist):
g_param = parse_global_arg(argv)
if "help" in argv:
show_help("GetPublicKey", g_param[OptionsDefine.Version])
return
param = {
"KeyId": argv.get("--KeyId"),
}
cred = credential.Credential(g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey])
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.KmsClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.GetPublicKeyRequest()
model.from_json_string(json.dumps(param))
rsp = client.GetPublicKey(model)
result = rsp.to_json_string()
jsonobj = None
try:
jsonobj = json.loads(result)
except TypeError as e:
jsonobj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", jsonobj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
def doDisableKey(argv, arglist):
g_param = parse_global_arg(argv)
if "help" in argv:
show_help("DisableKey", g_param[OptionsDefine.Version])
return
param = {
"KeyId": argv.get("--KeyId"),
}
cred = credential.Credential(g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey])
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.KmsClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.DisableKeyRequest()
model.from_json_string(json.dumps(param))
rsp = client.DisableKey(model)
result = rsp.to_json_string()
jsonobj = None
try:
jsonobj = json.loads(result)
except TypeError as e:
jsonobj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", jsonobj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
def doGenerateDataKey(argv, arglist):
g_param = parse_global_arg(argv)
if "help" in argv:
show_help("GenerateDataKey", g_param[OptionsDefine.Version])
return
param = {
"KeyId": argv.get("--KeyId"),
"KeySpec": argv.get("--KeySpec"),
"NumberOfBytes": Utils.try_to_json(argv, "--NumberOfBytes"),
"EncryptionContext": argv.get("--EncryptionContext"),
}
cred = credential.Credential(g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey])
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.KmsClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.GenerateDataKeyRequest()
model.from_json_string(json.dumps(param))
rsp = client.GenerateDataKey(model)
result = rsp.to_json_string()
jsonobj = None
try:
jsonobj = json.loads(result)
except TypeError as e:
jsonobj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", jsonobj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
def doAsymmetricSm2Decrypt(argv, arglist):
g_param = parse_global_arg(argv)
if "help" in argv:
show_help("AsymmetricSm2Decrypt", g_param[OptionsDefine.Version])
return
param = {
"KeyId": argv.get("--KeyId"),
"Ciphertext": argv.get("--Ciphertext"),
}
cred = credential.Credential(g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey])
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.KmsClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.AsymmetricSm2DecryptRequest()
model.from_json_string(json.dumps(param))
rsp = client.AsymmetricSm2Decrypt(model)
result = rsp.to_json_string()
jsonobj = None
try:
jsonobj = json.loads(result)
except TypeError as e:
jsonobj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", jsonobj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
def doCancelKeyDeletion(argv, arglist):
g_param = parse_global_arg(argv)
if "help" in argv:
show_help("CancelKeyDeletion", g_param[OptionsDefine.Version])
return
param = {
"KeyId": argv.get("--KeyId"),
}
cred = credential.Credential(g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey])
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.KmsClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.CancelKeyDeletionRequest()
model.from_json_string(json.dumps(param))
rsp = client.CancelKeyDeletion(model)
result = rsp.to_json_string()
jsonobj = None
try:
jsonobj = json.loads(result)
except TypeError as e:
jsonobj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", jsonobj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
def doGetKeyRotationStatus(argv, arglist):
g_param = parse_global_arg(argv)
if "help" in argv:
show_help("GetKeyRotationStatus", g_param[OptionsDefine.Version])
return
param = {
"KeyId": argv.get("--KeyId"),
}
cred = credential.Credential(g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey])
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.KmsClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.GetKeyRotationStatusRequest()
model.from_json_string(json.dumps(param))
rsp = client.GetKeyRotationStatus(model)
result = rsp.to_json_string()
jsonobj = None
try:
jsonobj = json.loads(result)
except TypeError as e:
jsonobj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", jsonobj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
def doDescribeWhiteBoxKeyDetails(argv, arglist):
g_param = parse_global_arg(argv)
if "help" in argv:
show_help("DescribeWhiteBoxKeyDetails", g_param[OptionsDefine.Version])
return
param = {
"KeyStatus": Utils.try_to_json(argv, "--KeyStatus"),
}
cred = credential.Credential(g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey])
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.KmsClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.DescribeWhiteBoxKeyDetailsRequest()
model.from_json_string(json.dumps(param))
rsp = client.DescribeWhiteBoxKeyDetails(model)
result = rsp.to_json_string()
jsonobj = None
try:
jsonobj = json.loads(result)
except TypeError as e:
jsonobj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", jsonobj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
def doGetServiceStatus(argv, arglist):
g_param = parse_global_arg(argv)
if "help" in argv:
show_help("GetServiceStatus", g_param[OptionsDefine.Version])
return
param = {
}
cred = credential.Credential(g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey])
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.KmsClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.GetServiceStatusRequest()
model.from_json_string(json.dumps(param))
rsp = client.GetServiceStatus(model)
result = rsp.to_json_string()
jsonobj = None
try:
jsonobj = json.loads(result)
except TypeError as e:
jsonobj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", jsonobj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
def doReEncrypt(argv, arglist):
g_param = parse_global_arg(argv)
if "help" in argv:
show_help("ReEncrypt", g_param[OptionsDefine.Version])
return
param = {
"CiphertextBlob": argv.get("--CiphertextBlob"),
"DestinationKeyId": argv.get("--DestinationKeyId"),
"SourceEncryptionContext": argv.get("--SourceEncryptionContext"),
"DestinationEncryptionContext": argv.get("--DestinationEncryptionContext"),
}
cred = credential.Credential(g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey])
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.KmsClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.ReEncryptRequest()
model.from_json_string(json.dumps(param))
rsp = client.ReEncrypt(model)
result = rsp.to_json_string()
jsonobj = None
try:
jsonobj = json.loads(result)
except TypeError as e:
jsonobj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", jsonobj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
def doEnableWhiteBoxKeys(argv, arglist):
g_param = parse_global_arg(argv)
if "help" in argv:
show_help("EnableWhiteBoxKeys", g_param[OptionsDefine.Version])
return
param = {
"KeyIds": Utils.try_to_json(argv, "--KeyIds"),
}
cred = credential.Credential(g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey])
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.KmsClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.EnableWhiteBoxKeysRequest()
model.from_json_string(json.dumps(param))
rsp = client.EnableWhiteBoxKeys(model)
result = rsp.to_json_string()
jsonobj = None
try:
jsonobj = json.loads(result)
except TypeError as e:
jsonobj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", jsonobj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
def doListAlgorithms(argv, arglist):
g_param = parse_global_arg(argv)
if "help" in argv:
show_help("ListAlgorithms", g_param[OptionsDefine.Version])
return
param = {
}
cred = credential.Credential(g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey])
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.KmsClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.ListAlgorithmsRequest()
model.from_json_string(json.dumps(param))
rsp = client.ListAlgorithms(model)
result = rsp.to_json_string()
jsonobj = None
try:
jsonobj = json.loads(result)
except TypeError as e:
jsonobj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", jsonobj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
def doDescribeKey(argv, arglist):
g_param = parse_global_arg(argv)
if "help" in argv:
show_help("DescribeKey", g_param[OptionsDefine.Version])
return
param = {
"KeyId": argv.get("--KeyId"),
}
cred = credential.Credential(g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey])
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.KmsClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.DescribeKeyRequest()
model.from_json_string(json.dumps(param))
rsp = client.DescribeKey(model)
result = rsp.to_json_string()
jsonobj = None
try:
jsonobj = json.loads(result)
except TypeError as e:
jsonobj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", jsonobj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
def doListKeys(argv, arglist):
g_param = parse_global_arg(argv)
if "help" in argv:
show_help("ListKeys", g_param[OptionsDefine.Version])
return
param = {
"Offset": Utils.try_to_json(argv, "--Offset"),
"Limit": Utils.try_to_json(argv, "--Limit"),
"Role": Utils.try_to_json(argv, "--Role"),
}
cred = credential.Credential(g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey])
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.KmsClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.ListKeysRequest()
model.from_json_string(json.dumps(param))
rsp = client.ListKeys(model)
result = rsp.to_json_string()
jsonobj = None
try:
jsonobj = json.loads(result)
except TypeError as e:
jsonobj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", jsonobj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
def doGenerateRandom(argv, arglist):
g_param = parse_global_arg(argv)
if "help" in argv:
show_help("GenerateRandom", g_param[OptionsDefine.Version])
return
param = {
"NumberOfBytes": Utils.try_to_json(argv, "--NumberOfBytes"),
}
cred = credential.Credential(g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey])
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.KmsClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.GenerateRandomRequest()
model.from_json_string(json.dumps(param))
rsp = client.GenerateRandom(model)
result = rsp.to_json_string()
jsonobj = None
try:
jsonobj = json.loads(result)
except TypeError as e:
jsonobj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", jsonobj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
def doOverwriteWhiteBoxDeviceFingerprints(argv, arglist):
g_param = parse_global_arg(argv)
if "help" in argv:
show_help("OverwriteWhiteBoxDeviceFingerprints", g_param[OptionsDefine.Version])
return
param = {
"KeyId": argv.get("--KeyId"),
"DeviceFingerprints": Utils.try_to_json(argv, "--DeviceFingerprints"),
}
cred = credential.Credential(g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey])
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.KmsClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.OverwriteWhiteBoxDeviceFingerprintsRequest()
model.from_json_string(json.dumps(param))
rsp = client.OverwriteWhiteBoxDeviceFingerprints(model)
result = rsp.to_json_string()
jsonobj = None
try:
jsonobj = json.loads(result)
except TypeError as e:
jsonobj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", jsonobj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
def doCreateKey(argv, arglist):
g_param = parse_global_arg(argv)
if "help" in argv:
show_help("CreateKey", g_param[OptionsDefine.Version])
return
param = {
"Alias": argv.get("--Alias"),
"Description": argv.get("--Description"),
"KeyUsage": argv.get("--KeyUsage"),
"Type": Utils.try_to_json(argv, "--Type"),
}
cred = credential.Credential(g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey])
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.KmsClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.CreateKeyRequest()
model.from_json_string(json.dumps(param))
rsp = client.CreateKey(model)
result = rsp.to_json_string()
jsonobj = None
try:
jsonobj = json.loads(result)
except TypeError as e:
jsonobj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", jsonobj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
def doDescribeWhiteBoxKey(argv, arglist):
g_param = parse_global_arg(argv)
if "help" in argv:
show_help("DescribeWhiteBoxKey", g_param[OptionsDefine.Version])
return
param = {
"KeyId": argv.get("--KeyId"),
}
cred = credential.Credential(g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey])
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.KmsClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.DescribeWhiteBoxKeyRequest()
model.from_json_string(json.dumps(param))
rsp = client.DescribeWhiteBoxKey(model)
result = rsp.to_json_string()
jsonobj = None
try:
jsonobj = json.loads(result)
except TypeError as e:
jsonobj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", jsonobj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
def doEncryptByWhiteBox(argv, arglist):
g_param = parse_global_arg(argv)
if "help" in argv:
show_help("EncryptByWhiteBox", g_param[OptionsDefine.Version])
return
param = {
"KeyId": argv.get("--KeyId"),
"PlainText": argv.get("--PlainText"),
"InitializationVector": argv.get("--InitializationVector"),
}
cred = credential.Credential(g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey])
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.KmsClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.EncryptByWhiteBoxRequest()
model.from_json_string(json.dumps(param))
rsp = client.EncryptByWhiteBox(model)
result = rsp.to_json_string()
jsonobj = None
try:
jsonobj = json.loads(result)
except TypeError as e:
jsonobj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", jsonobj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
def doGetParametersForImport(argv, arglist):
g_param = parse_global_arg(argv)
if "help" in argv:
show_help("GetParametersForImport", g_param[OptionsDefine.Version])
return
param = {
"KeyId": argv.get("--KeyId"),
"WrappingAlgorithm": argv.get("--WrappingAlgorithm"),
"WrappingKeySpec": argv.get("--WrappingKeySpec"),
}
cred = credential.Credential(g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey])
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.KmsClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.GetParametersForImportRequest()
model.from_json_string(json.dumps(param))
rsp = client.GetParametersForImport(model)
result = rsp.to_json_string()
jsonobj = None
try:
jsonobj = json.loads(result)
except TypeError as e:
jsonobj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", jsonobj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
def doDisableWhiteBoxKeys(argv, arglist):
g_param = parse_global_arg(argv)
if "help" in argv:
show_help("DisableWhiteBoxKeys", g_param[OptionsDefine.Version])
return
param = {
"KeyIds": Utils.try_to_json(argv, "--KeyIds"),
}
cred = credential.Credential(g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey])
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.KmsClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.DisableWhiteBoxKeysRequest()
model.from_json_string(json.dumps(param))
rsp = client.DisableWhiteBoxKeys(model)
result = rsp.to_json_string()
jsonobj = None
try:
jsonobj = json.loads(result)
except TypeError as e:
jsonobj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", jsonobj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
def doListKeyDetail(argv, arglist):
g_param = parse_global_arg(argv)
if "help" in argv:
show_help("ListKeyDetail", g_param[OptionsDefine.Version])
return
param = {
"Offset": Utils.try_to_json(argv, "--Offset"),
"Limit": Utils.try_to_json(argv, "--Limit"),
"Role": Utils.try_to_json(argv, "--Role"),
"OrderType": Utils.try_to_json(argv, "--OrderType"),
"KeyState": Utils.try_to_json(argv, "--KeyState"),
"SearchKeyAlias": argv.get("--SearchKeyAlias"),
"Origin": argv.get("--Origin"),
"KeyUsage": argv.get("--KeyUsage"),
}
cred = credential.Credential(g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey])
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.KmsClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.ListKeyDetailRequest()
model.from_json_string(json.dumps(param))
rsp = client.ListKeyDetail(model)
result = rsp.to_json_string()
jsonobj = None
try:
jsonobj = json.loads(result)
except TypeError as e:
jsonobj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", jsonobj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
def doDisableKeyRotation(argv, arglist):
g_param = parse_global_arg(argv)
if "help" in argv:
show_help("DisableKeyRotation", g_param[OptionsDefine.Version])
return
param = {
"KeyId": argv.get("--KeyId"),
}
cred = credential.Credential(g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey])
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.KmsClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.DisableKeyRotationRequest()
model.from_json_string(json.dumps(param))
rsp = client.DisableKeyRotation(model)
result = rsp.to_json_string()
jsonobj = None
try:
jsonobj = json.loads(result)
except TypeError as e:
jsonobj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", jsonobj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
def doDisableWhiteBoxKey(argv, arglist):
g_param = parse_global_arg(argv)
if "help" in argv:
show_help("DisableWhiteBoxKey", g_param[OptionsDefine.Version])
return
param = {
"KeyId": argv.get("--KeyId"),
}
cred = credential.Credential(g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey])
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.KmsClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.DisableWhiteBoxKeyRequest()
model.from_json_string(json.dumps(param))
rsp = client.DisableWhiteBoxKey(model)
result = rsp.to_json_string()
jsonobj = None
try:
jsonobj = json.loads(result)
except TypeError as e:
jsonobj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", jsonobj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
def doEnableKeys(argv, arglist):
g_param = parse_global_arg(argv)
if "help" in argv:
show_help("EnableKeys", g_param[OptionsDefine.Version])
return
param = {
"KeyIds": Utils.try_to_json(argv, "--KeyIds"),
}
cred = credential.Credential(g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey])
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.KmsClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.EnableKeysRequest()
model.from_json_string(json.dumps(param))
rsp = client.EnableKeys(model)
result = rsp.to_json_string()
jsonobj = None
try:
jsonobj = json.loads(result)
except TypeError as e:
jsonobj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", jsonobj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
def doScheduleKeyDeletion(argv, arglist):
g_param = parse_global_arg(argv)
if "help" in argv:
show_help("ScheduleKeyDeletion", g_param[OptionsDefine.Version])
return
param = {
"KeyId": argv.get("--KeyId"),
"PendingWindowInDays": Utils.try_to_json(argv, "--PendingWindowInDays"),
}
cred = credential.Credential(g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey])
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.KmsClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.ScheduleKeyDeletionRequest()
model.from_json_string(json.dumps(param))
rsp = client.ScheduleKeyDeletion(model)
result = rsp.to_json_string()
jsonobj = None
try:
jsonobj = json.loads(result)
except TypeError as e:
jsonobj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", jsonobj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
def doDescribeWhiteBoxDeviceFingerprints(argv, arglist):
g_param = parse_global_arg(argv)
if "help" in argv:
show_help("DescribeWhiteBoxDeviceFingerprints", g_param[OptionsDefine.Version])
return
param = {
"KeyId": argv.get("--KeyId"),
}
cred = credential.Credential(g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey])
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.KmsClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.DescribeWhiteBoxDeviceFingerprintsRequest()
model.from_json_string(json.dumps(param))
rsp = client.DescribeWhiteBoxDeviceFingerprints(model)
result = rsp.to_json_string()
jsonobj = None
try:
jsonobj = json.loads(result)
except TypeError as e:
jsonobj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", jsonobj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
def doAsymmetricRsaDecrypt(argv, arglist):
g_param = parse_global_arg(argv)
if "help" in argv:
show_help("AsymmetricRsaDecrypt", g_param[OptionsDefine.Version])
return
param = {
"KeyId": argv.get("--KeyId"),
"Ciphertext": argv.get("--Ciphertext"),
"Algorithm": argv.get("--Algorithm"),
}
cred = credential.Credential(g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey])
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.KmsClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.AsymmetricRsaDecryptRequest()
model.from_json_string(json.dumps(param))
rsp = client.AsymmetricRsaDecrypt(model)
result = rsp.to_json_string()
jsonobj = None
try:
jsonobj = json.loads(result)
except TypeError as e:
jsonobj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", jsonobj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
def doEnableKeyRotation(argv, arglist):
g_param = parse_global_arg(argv)
if "help" in argv:
show_help("EnableKeyRotation", g_param[OptionsDefine.Version])
return
param = {
"KeyId": argv.get("--KeyId"),
}
cred = credential.Credential(g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey])
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.KmsClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.EnableKeyRotationRequest()
model.from_json_string(json.dumps(param))
rsp = client.EnableKeyRotation(model)
result = rsp.to_json_string()
jsonobj = None
try:
jsonobj = json.loads(result)
except TypeError as e:
jsonobj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", jsonobj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
def doCreateWhiteBoxKey(argv, arglist):
g_param = parse_global_arg(argv)
if "help" in argv:
show_help("CreateWhiteBoxKey", g_param[OptionsDefine.Version])
return
param = {
"Alias": argv.get("--Alias"),
"Algorithm": argv.get("--Algorithm"),
"Description": argv.get("--Description"),
}
cred = credential.Credential(g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey])
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.KmsClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.CreateWhiteBoxKeyRequest()
model.from_json_string(json.dumps(param))
rsp = client.CreateWhiteBoxKey(model)
result = rsp.to_json_string()
jsonobj = None
try:
jsonobj = json.loads(result)
except TypeError as e:
jsonobj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", jsonobj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
def doEnableWhiteBoxKey(argv, arglist):
g_param = parse_global_arg(argv)
if "help" in argv:
show_help("EnableWhiteBoxKey", g_param[OptionsDefine.Version])
return
param = {
"KeyId": argv.get("--KeyId"),
}
cred = credential.Credential(g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey])
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.KmsClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.EnableWhiteBoxKeyRequest()
model.from_json_string(json.dumps(param))
rsp = client.EnableWhiteBoxKey(model)
result = rsp.to_json_string()
jsonobj = None
try:
jsonobj = json.loads(result)
except TypeError as e:
jsonobj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", jsonobj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
def doEnableKey(argv, arglist):
g_param = parse_global_arg(argv)
if "help" in argv:
show_help("EnableKey", g_param[OptionsDefine.Version])
return
param = {
"KeyId": argv.get("--KeyId"),
}
cred = credential.Credential(g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey])
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.KmsClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.EnableKeyRequest()
model.from_json_string(json.dumps(param))
rsp = client.EnableKey(model)
result = rsp.to_json_string()
jsonobj = None
try:
jsonobj = json.loads(result)
except TypeError as e:
jsonobj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", jsonobj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
def doDeleteImportedKeyMaterial(argv, arglist):
g_param = parse_global_arg(argv)
if "help" in argv:
show_help("DeleteImportedKeyMaterial", g_param[OptionsDefine.Version])
return
param = {
"KeyId": argv.get("--KeyId"),
}
cred = credential.Credential(g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey])
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.KmsClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.DeleteImportedKeyMaterialRequest()
model.from_json_string(json.dumps(param))
rsp = client.DeleteImportedKeyMaterial(model)
result = rsp.to_json_string()
jsonobj = None
try:
jsonobj = json.loads(result)
except TypeError as e:
jsonobj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", jsonobj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
def doDescribeKeys(argv, arglist):
g_param = parse_global_arg(argv)
if "help" in argv:
show_help("DescribeKeys", g_param[OptionsDefine.Version])
return
param = {
"KeyIds": Utils.try_to_json(argv, "--KeyIds"),
}
cred = credential.Credential(g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey])
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.KmsClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.DescribeKeysRequest()
model.from_json_string(json.dumps(param))
rsp = client.DescribeKeys(model)
result = rsp.to_json_string()
jsonobj = None
try:
jsonobj = json.loads(result)
except TypeError as e:
jsonobj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", jsonobj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
def doDescribeWhiteBoxServiceStatus(argv, arglist):
g_param = parse_global_arg(argv)
if "help" in argv:
show_help("DescribeWhiteBoxServiceStatus", g_param[OptionsDefine.Version])
return
param = {
}
cred = credential.Credential(g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey])
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.KmsClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.DescribeWhiteBoxServiceStatusRequest()
model.from_json_string(json.dumps(param))
rsp = client.DescribeWhiteBoxServiceStatus(model)
result = rsp.to_json_string()
jsonobj = None
try:
jsonobj = json.loads(result)
except TypeError as e:
jsonobj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", jsonobj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
def doUpdateKeyDescription(argv, arglist):
g_param = parse_global_arg(argv)
if "help" in argv:
show_help("UpdateKeyDescription", g_param[OptionsDefine.Version])
return
param = {
"Description": argv.get("--Description"),
"KeyId": argv.get("--KeyId"),
}
cred = credential.Credential(g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey])
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.KmsClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.UpdateKeyDescriptionRequest()
model.from_json_string(json.dumps(param))
rsp = client.UpdateKeyDescription(model)
result = rsp.to_json_string()
jsonobj = None
try:
jsonobj = json.loads(result)
except TypeError as e:
jsonobj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", jsonobj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
def doDisableKeys(argv, arglist):
g_param = parse_global_arg(argv)
if "help" in argv:
show_help("DisableKeys", g_param[OptionsDefine.Version])
return
param = {
"KeyIds": Utils.try_to_json(argv, "--KeyIds"),
}
cred = credential.Credential(g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey])
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.KmsClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.DisableKeysRequest()
model.from_json_string(json.dumps(param))
rsp = client.DisableKeys(model)
result = rsp.to_json_string()
jsonobj = None
try:
jsonobj = json.loads(result)
except TypeError as e:
jsonobj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", jsonobj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
def doDescribeWhiteBoxDecryptKey(argv, arglist):
g_param = parse_global_arg(argv)
if "help" in argv:
show_help("DescribeWhiteBoxDecryptKey", g_param[OptionsDefine.Version])
return
param = {
"KeyId": argv.get("--KeyId"),
}
cred = credential.Credential(g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey])
http_profile = HttpProfile(
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
reqMethod="POST",
endpoint=g_param[OptionsDefine.Endpoint]
)
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
client = mod.KmsClient(cred, g_param[OptionsDefine.Region], profile)
client._sdkVersion += ("_CLI_" + __version__)
models = MODELS_MAP[g_param[OptionsDefine.Version]]
model = models.DescribeWhiteBoxDecryptKeyRequest()
model.from_json_string(json.dumps(param))
rsp = client.DescribeWhiteBoxDecryptKey(model)
result = rsp.to_json_string()
jsonobj = None
try:
jsonobj = json.loads(result)
except TypeError as e:
jsonobj = json.loads(result.decode('utf-8')) # python3.3
FormatOutput.output("action", jsonobj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
CLIENT_MAP = {
"v20190118": kms_client_v20190118,
}
MODELS_MAP = {
"v20190118": models_v20190118,
}
ACTION_MAP = {
"Encrypt": doEncrypt,
"Decrypt": doDecrypt,
"UpdateAlias": doUpdateAlias,
"DeleteWhiteBoxKey": doDeleteWhiteBoxKey,
"ImportKeyMaterial": doImportKeyMaterial,
"GetPublicKey": doGetPublicKey,
"DisableKey": doDisableKey,
"GenerateDataKey": doGenerateDataKey,
"AsymmetricSm2Decrypt": doAsymmetricSm2Decrypt,
"CancelKeyDeletion": doCancelKeyDeletion,
"GetKeyRotationStatus": doGetKeyRotationStatus,
"DescribeWhiteBoxKeyDetails": doDescribeWhiteBoxKeyDetails,
"GetServiceStatus": doGetServiceStatus,
"ReEncrypt": doReEncrypt,
"EnableWhiteBoxKeys": doEnableWhiteBoxKeys,
"ListAlgorithms": doListAlgorithms,
"DescribeKey": doDescribeKey,
"ListKeys": doListKeys,
"GenerateRandom": doGenerateRandom,
"OverwriteWhiteBoxDeviceFingerprints": doOverwriteWhiteBoxDeviceFingerprints,
"CreateKey": doCreateKey,
"DescribeWhiteBoxKey": doDescribeWhiteBoxKey,
"EncryptByWhiteBox": doEncryptByWhiteBox,
"GetParametersForImport": doGetParametersForImport,
"DisableWhiteBoxKeys": doDisableWhiteBoxKeys,
"ListKeyDetail": doListKeyDetail,
"DisableKeyRotation": doDisableKeyRotation,
"DisableWhiteBoxKey": doDisableWhiteBoxKey,
"EnableKeys": doEnableKeys,
"ScheduleKeyDeletion": doScheduleKeyDeletion,
"DescribeWhiteBoxDeviceFingerprints": doDescribeWhiteBoxDeviceFingerprints,
"AsymmetricRsaDecrypt": doAsymmetricRsaDecrypt,
"EnableKeyRotation": doEnableKeyRotation,
"CreateWhiteBoxKey": doCreateWhiteBoxKey,
"EnableWhiteBoxKey": doEnableWhiteBoxKey,
"EnableKey": doEnableKey,
"DeleteImportedKeyMaterial": doDeleteImportedKeyMaterial,
"DescribeKeys": doDescribeKeys,
"DescribeWhiteBoxServiceStatus": doDescribeWhiteBoxServiceStatus,
"UpdateKeyDescription": doUpdateKeyDescription,
"DisableKeys": doDisableKeys,
"DescribeWhiteBoxDecryptKey": doDescribeWhiteBoxDecryptKey,
}
AVAILABLE_VERSION_LIST = [
v20190118.version,
]
AVAILABLE_VERSIONS = {
'v' + v20190118.version.replace('-', ''): {"help": v20190118_help.INFO,"desc": v20190118_help.DESC},
}
def kms_action(argv, arglist):
if "help" in argv:
versions = sorted(AVAILABLE_VERSIONS.keys())
opt_v = "--" + OptionsDefine.Version
version = versions[-1]
if opt_v in argv:
version = 'v' + argv[opt_v].replace('-', '')
if version not in versions:
print("available versions: %s" % " ".join(AVAILABLE_VERSION_LIST))
return
action_str = ""
docs = AVAILABLE_VERSIONS[version]["help"]
desc = AVAILABLE_VERSIONS[version]["desc"]
for action, info in docs.items():
action_str += " %s\n" % action
action_str += Utils.split_str(" ", info["desc"], 120)
helpstr = HelpTemplate.SERVICE % {"name": "kms", "desc": desc, "actions": action_str}
print(helpstr)
else:
print(ErrorMsg.FEW_ARG)
def version_merge():
help_merge = {}
for v in AVAILABLE_VERSIONS:
for action in AVAILABLE_VERSIONS[v]["help"]:
if action not in help_merge:
help_merge[action] = {}
help_merge[action]["cb"] = ACTION_MAP[action]
help_merge[action]["params"] = []
for param in AVAILABLE_VERSIONS[v]["help"][action]["params"]:
if param["name"] not in help_merge[action]["params"]:
help_merge[action]["params"].append(param["name"])
return help_merge
def register_arg(command):
cmd = NiceCommand("kms", kms_action)
command.reg_cmd(cmd)
cmd.reg_opt("help", "bool")
cmd.reg_opt(OptionsDefine.Version, "string")
help_merge = version_merge()
for actionName, action in help_merge.items():
c = NiceCommand(actionName, action["cb"])
cmd.reg_cmd(c)
c.reg_opt("help", "bool")
for param in action["params"]:
c.reg_opt("--" + param, "string")
for opt in OptionsDefine.ACTION_GLOBAL_OPT:
stropt = "--" + opt
c.reg_opt(stropt, "string")
def parse_global_arg(argv):
params = {}
for opt in OptionsDefine.ACTION_GLOBAL_OPT:
stropt = "--" + opt
if stropt in argv:
params[opt] = argv[stropt]
else:
params[opt] = None
if params[OptionsDefine.Version]:
params[OptionsDefine.Version] = "v" + params[OptionsDefine.Version].replace('-', '')
config_handle = Configure()
profile = config_handle.profile
if ("--" + OptionsDefine.Profile) in argv:
profile = argv[("--" + OptionsDefine.Profile)]
is_conexist, conf_path = config_handle._profile_existed(profile + "." + config_handle.configure)
is_creexist, cred_path = config_handle._profile_existed(profile + "." + config_handle.credential)
config = {}
cred = {}
if is_conexist:
config = config_handle._load_json_msg(conf_path)
if is_creexist:
cred = config_handle._load_json_msg(cred_path)
if os.environ.get(OptionsDefine.ENV_SECRET_ID):
cred[OptionsDefine.SecretId] = os.environ.get(OptionsDefine.ENV_SECRET_ID)
if os.environ.get(OptionsDefine.ENV_SECRET_KEY):
cred[OptionsDefine.SecretKey] = os.environ.get(OptionsDefine.ENV_SECRET_KEY)
if os.environ.get(OptionsDefine.ENV_REGION):
config[OptionsDefine.Region] = os.environ.get(OptionsDefine.ENV_REGION)
for param in params.keys():
if param == OptionsDefine.Version:
continue
if params[param] is None:
if param in [OptionsDefine.SecretKey, OptionsDefine.SecretId]:
if param in cred:
params[param] = cred[param]
else:
raise Exception("%s is invalid" % param)
else:
if param in config:
params[param] = config[param]
elif param == OptionsDefine.Region:
raise Exception("%s is invalid" % OptionsDefine.Region)
try:
if params[OptionsDefine.Version] is None:
version = config["kms"][OptionsDefine.Version]
params[OptionsDefine.Version] = "v" + version.replace('-', '')
if params[OptionsDefine.Endpoint] is None:
params[OptionsDefine.Endpoint] = config["kms"][OptionsDefine.Endpoint]
except Exception as err:
raise Exception("config file:%s error, %s" % (conf_path, str(err)))
versions = sorted(AVAILABLE_VERSIONS.keys())
if params[OptionsDefine.Version] not in versions:
raise Exception("available versions: %s" % " ".join(AVAILABLE_VERSION_LIST))
return params
def show_help(action, version):
docs = AVAILABLE_VERSIONS[version]["help"][action]
desc = AVAILABLE_VERSIONS[version]["desc"]
docstr = ""
for param in docs["params"]:
docstr += " %s\n" % ("--" + param["name"])
docstr += Utils.split_str(" ", param["desc"], 120)
helpmsg = HelpTemplate.ACTION % {"name": action, "service": "kms", "desc": desc, "params": docstr}
print(helpmsg)
def get_actions_info():
config = Configure()
new_version = max(AVAILABLE_VERSIONS.keys())
version = new_version
try:
profile = config._load_json_msg(os.path.join(config.cli_path, "default.configure"))
version = profile["kms"]["version"]
version = "v" + version.replace('-', '')
except Exception:
pass
if version not in AVAILABLE_VERSIONS.keys():
version = new_version
return AVAILABLE_VERSIONS[version]["help"]
| 39.786885
| 105
| 0.698744
| 7,251
| 65,529
| 6.117639
| 0.043029
| 0.068171
| 0.197885
| 0.073852
| 0.810613
| 0.797268
| 0.788521
| 0.783156
| 0.778782
| 0.736987
| 0
| 0.008781
| 0.183217
| 65,529
| 1,646
| 106
| 39.811057
| 0.820003
| 0.00673
| 0
| 0.689227
| 0
| 0
| 0.072474
| 0.008686
| 0
| 0
| 0
| 0
| 0
| 1
| 0.033149
| false
| 0.000691
| 0.02279
| 0
| 0.087707
| 0.010359
| 0
| 0
| 0
| null | 0
| 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
| 7
|
4f0eea85824ce12fb4ae8d0a69a4a4eb60e7b5e2
| 2,877
|
py
|
Python
|
tests/materials_provider/test_kms.py
|
hupe1980/aws-s3-encryption-python
|
0d6cef12febdb6cbcf4657710f68e6875f30ae9f
|
[
"MIT"
] | null | null | null |
tests/materials_provider/test_kms.py
|
hupe1980/aws-s3-encryption-python
|
0d6cef12febdb6cbcf4657710f68e6875f30ae9f
|
[
"MIT"
] | null | null | null |
tests/materials_provider/test_kms.py
|
hupe1980/aws-s3-encryption-python
|
0d6cef12febdb6cbcf4657710f68e6875f30ae9f
|
[
"MIT"
] | null | null | null |
from s3_encryption_sdk.keys import DataKeyAlgorithms
from s3_encryption_sdk.materials_providers import EncryptionContext, KmsMaterialsProvider
def test_encryption_materials(kms, key):
materials_provider = KmsMaterialsProvider(
key_id=key["KeyMetadata"]["Arn"],
client=kms,
)
plaintext = b"foo bar"
encryption_context = EncryptionContext(bucket_name="dummy", object_key="dummy")
materials = materials_provider.encryption_materials(encryption_context)
ciphertext = materials.data_key.encrypt(plaintext)
encryption_context = EncryptionContext(
bucket_name="dummy",
object_key="dummy",
s3_metadata=materials.metadata.generate(),
)
materials = materials_provider.decryption_materials(encryption_context)
decrypted_ciphertext = materials.data_key.decrypt(ciphertext)
assert plaintext != ciphertext
assert plaintext == decrypted_ciphertext
def test_aes128_encryption_materials(kms, key):
aes128 = DataKeyAlgorithms.AES_128_GCM_IV12_TAG16
materials_provider = KmsMaterialsProvider(
key_id=key["KeyMetadata"]["Arn"],
client=kms,
algorithm=aes128,
)
plaintext = b"foo bar"
encryption_context = EncryptionContext(bucket_name="dummy", object_key="dummy")
materials = materials_provider.encryption_materials(encryption_context)
ciphertext = materials.data_key.encrypt(plaintext)
encryption_context = EncryptionContext(
bucket_name="dummy",
object_key="dummy",
s3_metadata=materials.metadata.generate(),
)
materials = materials_provider.decryption_materials(encryption_context)
decrypted_ciphertext = materials.data_key.decrypt(ciphertext)
assert plaintext != ciphertext
assert plaintext == decrypted_ciphertext
assert aes128.data_key_length == materials.data_key.algorithm.data_key_length == (128 // 8)
def test_aes192_encryption_materials(kms, key):
aes192 = DataKeyAlgorithms.AES_192_GCM_IV12_TAG16
materials_provider = KmsMaterialsProvider(
key_id=key["KeyMetadata"]["Arn"],
client=kms,
algorithm=aes192,
)
plaintext = b"foo bar"
encryption_context = EncryptionContext(bucket_name="dummy", object_key="dummy")
materials = materials_provider.encryption_materials(encryption_context)
ciphertext = materials.data_key.encrypt(plaintext)
encryption_context = EncryptionContext(
bucket_name="dummy",
object_key="dummy",
s3_metadata=materials.metadata.generate(),
)
materials = materials_provider.decryption_materials(encryption_context)
decrypted_ciphertext = materials.data_key.decrypt(ciphertext)
assert plaintext != ciphertext
assert plaintext == decrypted_ciphertext
assert aes192.data_key_length == materials.data_key.algorithm.data_key_length == (192 // 8)
| 29.659794
| 95
| 0.741745
| 295
| 2,877
| 6.935593
| 0.166102
| 0.099707
| 0.062561
| 0.117302
| 0.841642
| 0.841642
| 0.841642
| 0.841642
| 0.841642
| 0.841642
| 0
| 0.021411
| 0.172054
| 2,877
| 96
| 96
| 29.96875
| 0.837531
| 0
| 0
| 0.725806
| 0
| 0
| 0.042753
| 0
| 0
| 0
| 0
| 0
| 0.129032
| 1
| 0.048387
| false
| 0
| 0.032258
| 0
| 0.080645
| 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
|
87919e0118a907f067b12441758188bfc7ad5276
| 48
|
py
|
Python
|
src/envs/test_smac.py
|
MAS-anony/ASN
|
ceec77f4d5514dcd5c9339ac96a435dd352789af
|
[
"Apache-2.0"
] | 26
|
2019-12-23T02:04:36.000Z
|
2022-03-23T01:36:09.000Z
|
src/envs/test_smac.py
|
multiagent-arn/ARN
|
eb566fcab409965ea4684b6a18c433d34562d0d6
|
[
"Apache-2.0"
] | 6
|
2021-03-19T00:29:23.000Z
|
2022-03-11T23:47:17.000Z
|
src/envs/test_smac.py
|
multiagent-arn/ARN
|
eb566fcab409965ea4684b6a18c433d34562d0d6
|
[
"Apache-2.0"
] | 7
|
2019-12-24T12:18:03.000Z
|
2021-09-23T14:51:11.000Z
|
import smac
print('smac path: ', smac.__path__)
| 16
| 35
| 0.729167
| 7
| 48
| 4.428571
| 0.571429
| 0.516129
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.125
| 48
| 3
| 35
| 16
| 0.738095
| 0
| 0
| 0
| 0
| 0
| 0.22449
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 0
| 0.5
| 0.5
| 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
| 0
| 1
|
0
| 7
|
87ffc0679174d06268203f06fa70419bac432a73
| 7,012
|
py
|
Python
|
scripts/sdn_basic_topology_api.py
|
rombie/contrail-test
|
a68c71d6f282142501a7e2e889bbb232fdd82dc3
|
[
"Apache-2.0"
] | 1
|
2017-06-13T04:42:34.000Z
|
2017-06-13T04:42:34.000Z
|
scripts/policy/sdn_basic_topology_api.py
|
vkolli/contrail-test-perf
|
db04b8924a2c330baabe3059788b149d957a7d67
|
[
"Apache-2.0"
] | 1
|
2021-06-01T22:19:48.000Z
|
2021-06-01T22:19:48.000Z
|
scripts/policy/sdn_basic_topology_api.py
|
vkolli/contrail-test-perf
|
db04b8924a2c330baabe3059788b149d957a7d67
|
[
"Apache-2.0"
] | null | null | null |
'''*******AUTO-GENERATED TOPOLOGY*********'''
from vnc_api.vnc_api import *
class sdn_basic_config_api ():
def __init__(self, domain='default-domain', project='admin', username=None, password=None):
#
# Domain and project defaults: Do not change until support for
# non-default is tested!
self.domain = domain
self.project = project
self.username = username
self.password = password
#
# Define VN's in the project:
self.vnet_list = ['vnet0', 'vnet1', 'vnet2', 'vnet3', 'vnet4']
#
# Define network info for each VN:
self.vn_nets = {
'vnet0': [(NetworkIpam(), VnSubnetsType([IpamSubnetType(subnet=SubnetType('10.1.1.0', 24)), IpamSubnetType(subnet=SubnetType('11.1.1.0', 24))]))],
'vnet1': [(NetworkIpam(), VnSubnetsType([IpamSubnetType(subnet=SubnetType('12.1.1.0', 24)), IpamSubnetType(subnet=SubnetType('13.1.1.0', 24))]))],
'vnet2': [],
'vnet3': [(NetworkIpam(), VnSubnetsType([IpamSubnetType(subnet=SubnetType('14.1.1.0', 24))]))],
'vnet4': [(NetworkIpam(), VnSubnetsType([IpamSubnetType(subnet=SubnetType('15.1.1.0', 24))]))]
}
#
# Define network policies
self.policy_list = ['policy0', 'policy1', 'policy2', 'policy3']
# commenting out multiple policy associated to single vn untill PR 1181 is fixed
#self.vn_policy= {'vnet0': ['policy0'], 'vnet1': ['policy1'], 'vnet2': [], 'vnet3': ['policy2'], 'vnet4': ['policy0', 'policy1', 'policy2', 'policy3']}
self.vn_policy = {'vnet0': ['policy0'], 'vnet1': ['policy1'],
'vnet2': [], 'vnet3': ['policy2'], 'vnet4': ['policy3']}
#
# Define VM's
# VM distribution on available compute nodes is handled by nova
# scheduler or contrail vm naming scheme
self.vn_of_vm = {'vmc0': 'vnet0', 'vmc1': 'vnet1'}
#
# Define network policy rules
self.rules = {}
self.rules['policy0'] = [
PolicyRuleType(direction='>', protocol='icmp', dst_addresses=[AddressType(virtual_network='any')], src_addresses=[AddressType(
virtual_network='local')], dst_ports=[PortType(80, 80)], action_list=ActionListType(simple_action='deny'), src_ports=[PortType(-1, -1)]),
PolicyRuleType(direction='>', protocol='tcp', dst_addresses=[AddressType(virtual_network='any')], src_addresses=[AddressType(
virtual_network='local')], dst_ports=[PortType(80, 80)], action_list=ActionListType(simple_action='deny'), src_ports=[PortType(-1, -1)])
]
self.rules['policy1'] = [
PolicyRuleType(direction='>', protocol='icmp', dst_addresses=[AddressType(virtual_network='any')], src_addresses=[AddressType(
virtual_network='local')], dst_ports=[PortType(80, 80)], action_list=ActionListType(simple_action='pass'), src_ports=[PortType(-1, -1)]),
PolicyRuleType(direction='>', protocol='tcp', dst_addresses=[AddressType(virtual_network='any')], src_addresses=[AddressType(
virtual_network='local')], dst_ports=[PortType(80, 80)], action_list=ActionListType(simple_action='pass'), src_ports=[PortType(-1, -1)])
]
self.rules['policy2'] = []
self.rules['policy3'] = [
PolicyRuleType(direction='<>', protocol='udp', dst_addresses=[AddressType(virtual_network='any')], src_addresses=[AddressType(
virtual_network='local')], dst_ports=[PortType(80, 80)], action_list=ActionListType(simple_action='pass'), src_ports=[PortType(-1, -1)]),
PolicyRuleType(direction='>', protocol='any', dst_addresses=[AddressType(virtual_network='any')], src_addresses=[AddressType(
virtual_network='local')], dst_ports=[PortType(80, 80)], action_list=ActionListType(simple_action='pass'), src_ports=[PortType(80, 100)])
]
# end __init__
class sdn_multiple_vn_single_policy_config_api ():
def __init__(self, domain='default-domain', project='admin', username=None, password=None):
#
# Domain and project defaults: Do not change until support for
# non-default is tested!
self.domain = domain
self.project = project
self.username = username
self.password = password
#
# Define VN's in the project:
self.vnet_list = ['vnet0', 'vnet1', 'vnet2', 'vnet3', 'vnet4']
#
# Define network info for each VN:
self.vn_nets = {
'vnet0': [(NetworkIpam(), VnSubnetsType([IpamSubnetType(subnet=SubnetType('10.1.1.0', 24))]))],
'vnet1': [(NetworkIpam(), VnSubnetsType([IpamSubnetType(subnet=SubnetType('11.1.1.0', 24))]))],
'vnet2': [(NetworkIpam(), VnSubnetsType([IpamSubnetType(subnet=SubnetType('12.1.1.0', 24))]))],
'vnet3': [(NetworkIpam(), VnSubnetsType([IpamSubnetType(subnet=SubnetType('13.1.1.0', 24))]))],
'vnet4': [(NetworkIpam(), VnSubnetsType([IpamSubnetType(subnet=SubnetType('14.1.1.0', 24))]))],
}
#
# Define network policies
self.policy_list = ['policy0']
self.vn_policy = {'vnet0': ['policy0'], 'vnet1': ['policy0'], 'vnet2': [
'policy0'], 'vnet3': ['policy0'], 'vnet4': ['policy0']}
#
# Define VM's
# VM distribution on available compute nodes is handled by nova
# scheduler or contrail vm naming scheme
self.vn_of_vm = {'vmc0': 'vnet0', 'vmc1': 'vnet1',
'vmc2': 'vnet2', 'vmc3': 'vnet3', 'vmc4': 'vnet4'}
#
# Define network policy rules
self.rules = {}
self.rules['policy0'] = [
PolicyRuleType(direction='<>', protocol='icmp', dst_addresses=[AddressType(virtual_network='any')], src_addresses=[AddressType(
virtual_network='local')], dst_ports=[PortType(-1, -1)], action_list=ActionListType(simple_action='pass'), src_ports=[PortType(-1, -1)]),
]
# end __init__
if __name__ == '__main__':
print "Currently topology limited to one domain/project.."
print "Based on need, can be extended to cover config for multiple domain/projects"
print "Running unit test for this module ..."
my_topo = sdn_basic_config_api(domain='default-domain', project='admin')
x = my_topo.__dict__
print "\nprinting keys of topology dict:"
for key, value in x.iteritems():
print key
print
# print "keys & values:"
# for key, value in x.iteritems(): print key, "-->", value
# Use topology_helper to extend/derive data from user-defined topology to help verifications.
# ex. get list of all vm's from topology; get list of vn's associated to a
# policy
import topo_helper
topo_h = topo_helper.topology_helper(my_topo)
#vmc_list= topo_h.get_vmc_list()
policy_vn = topo_h.get_policy_vn()
print "printing derived topo data - vn's associated to a policy: \n", policy_vn
#
| 52.721805
| 160
| 0.617513
| 790
| 7,012
| 5.318987
| 0.213924
| 0.008567
| 0.089957
| 0.113279
| 0.794146
| 0.784388
| 0.758924
| 0.754641
| 0.714184
| 0.714184
| 0
| 0.036394
| 0.220194
| 7,012
| 132
| 161
| 53.121212
| 0.732078
| 0.165145
| 0
| 0.311688
| 1
| 0
| 0.151032
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0.116883
| 0.025974
| null | null | 0.090909
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 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
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 8
|
35b64d09a334c284e7f061f5349a78133bd3953c
| 32,418
|
py
|
Python
|
yaksh/evaluator_tests/test_java_evaluation.py
|
patilnayan92/online
|
0f9a8d8da5aa84a408a9a8e5825a045f6c86f481
|
[
"Python-2.0"
] | null | null | null |
yaksh/evaluator_tests/test_java_evaluation.py
|
patilnayan92/online
|
0f9a8d8da5aa84a408a9a8e5825a045f6c86f481
|
[
"Python-2.0"
] | null | null | null |
yaksh/evaluator_tests/test_java_evaluation.py
|
patilnayan92/online
|
0f9a8d8da5aa84a408a9a8e5825a045f6c86f481
|
[
"Python-2.0"
] | 1
|
2015-04-05T09:51:54.000Z
|
2015-04-05T09:51:54.000Z
|
from __future__ import unicode_literals
import unittest
import os
import shutil
import tempfile
from textwrap import dedent
from psutil import Process, pid_exists
import time
# Local Import
from yaksh import grader as gd
from yaksh.grader import Grader
from yaksh.java_code_evaluator import JavaCodeEvaluator
from yaksh.java_stdio_evaluator import JavaStdIOEvaluator
from yaksh.evaluator_tests.test_python_evaluation import EvaluatorBaseTest
class JavaAssertionEvaluationTestCases(EvaluatorBaseTest):
def setUp(self):
self.f_path = os.path.join(tempfile.gettempdir(), "test.txt")
with open(self.f_path, 'wb') as f:
f.write('2'.encode('ascii'))
tmp_in_dir_path = tempfile.mkdtemp()
self.tc_data = dedent("""
class main
{
public static <E> void check(E expect, E result)
{
if(result.equals(expect))
{
System.out.println("Correct:Output expected "+expect+" and got "+result);
}
else
{
System.out.println("Incorrect:Output expected "+expect+" but got "+result);
System.exit(1);
}
}
public static void main(String arg[])
{
Test t = new Test();
int result, input, output;
input = 0; output = 0;
result = t.square_num(input);
System.out.println("Input submitted to the function: "+input);
check(output, result);
input = 5; output = 25;
result = t.square_num(input);
System.out.println("Input submitted to the function: "+input);
check(output, result);
input = 6; output = 36;
result = t.square_num(input);
System.out.println("Input submitted to the function: "+input);
check(output, result);
}
}
""")
self.test_case_data = [
{"test_case": self.tc_data,
"test_case_type": "standardtestcase",
"weight": 0.0
}
]
self.in_dir = tmp_in_dir_path
self.file_paths = None
gd.SERVER_TIMEOUT = 9
self.timeout_msg = ("Code took more than {0} seconds to run. "
"You probably have an infinite loop in"
" your code.").format(gd.SERVER_TIMEOUT)
def tearDown(self):
gd.SERVER_TIMEOUT = 4
os.remove(self.f_path)
shutil.rmtree(self.in_dir)
def test_correct_answer(self):
# Given
user_answer = "class Test {\n\tint square_num(int a) {\n\treturn a*a;\n\t}\n}"
kwargs = {
'metadata': {
'user_answer': user_answer,
'file_paths': self.file_paths,
'partial_grading': False,
'language': 'java'
},
'test_case_data': self.test_case_data,
}
# When
grader = Grader(self.in_dir)
result = grader.evaluate(kwargs)
# Then
self.assertTrue(result.get('success'))
def test_incorrect_answer(self):
# Given
user_answer = "class Test {\n\tint square_num(int a) {\n\treturn a;\n\t}\n}"
kwargs = {
'metadata': {
'user_answer': user_answer,
'file_paths': self.file_paths,
'partial_grading': False,
'language': 'java'
},
'test_case_data': self.test_case_data,
}
# When
grader = Grader(self.in_dir)
result = grader.evaluate(kwargs)
# Then
self.assertFalse(result.get('success'))
lines_of_error = len(result.get('error')[0].splitlines())
self.assertFalse(result.get('success'))
self.assert_correct_output("Incorrect", result.get('error'))
self.assertTrue(lines_of_error > 1)
def test_error(self):
# Given
user_answer = "class Test {\n\tint square_num(int a) {\n\treturn a*a"
kwargs = {
'metadata': {
'user_answer': user_answer,
'file_paths': self.file_paths,
'partial_grading': False,
'language': 'java'
},
'test_case_data': self.test_case_data,
}
# When
grader = Grader(self.in_dir)
result = grader.evaluate(kwargs)
# Then
self.assertFalse(result.get("success"))
self.assert_correct_output("Error", result.get("error"))
def test_infinite_loop(self):
# Given
user_answer = "class Test {\n\tint square_num(int a) {\n\t\twhile(0==0){\n\t\t}\n\t}\n}"
kwargs = {
'metadata': {
'user_answer': user_answer,
'file_paths': self.file_paths,
'partial_grading': False,
'language': 'java'
},
'test_case_data': self.test_case_data,
}
# When
grader = Grader(self.in_dir)
result = grader.evaluate(kwargs)
# Then
self.assertFalse(result.get("success"))
self.assert_correct_output(self.timeout_msg,
result.get("error")[0]["message"]
)
parent_proc = Process(os.getpid()).children()
if parent_proc:
children_procs = Process(parent_proc[0].pid)
self.assertFalse(any(children_procs.children(recursive=True)))
def test_file_based_assert(self):
# Given
self.file_paths = [(self.f_path, False)]
self.tc_data = dedent("""
class main
{
public static <E> void check(E expect, E result)
{
if(result.equals(expect))
{
System.out.println("Correct:Output expected "+expect+" and got "+result);
}
else
{
System.out.println("Incorrect:Output expected "+expect+" but got "+result);
System.exit(1);
}
}
public static void main(String arg[])
{
String result = "";
Test t = new Test();
try{
result = t.readFile();}
catch(Exception e){
System.out.print(e);
}
check("2", result);
}
}
""")
self.test_case_data = [
{"test_case": self.tc_data,
"test_case_type": "standardtestcase",
"weight": 0.0
}
]
user_answer = dedent("""
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
class Test{
String readFile() throws IOException {
BufferedReader br = new BufferedReader(new FileReader("test.txt"));
try {
StringBuilder sb = new StringBuilder();
String line = br.readLine();
while (line != null) {
sb.append(line);
line = br.readLine();}
return sb.toString();
} finally {
br.close();
}}}
""")
kwargs = {
'metadata': {
'user_answer': user_answer,
'file_paths': self.file_paths,
'partial_grading': False,
'language': 'java'
},
'test_case_data': self.test_case_data,
}
# When
grader = Grader(self.in_dir)
result = grader.evaluate(kwargs)
# Then
self.assertTrue(result.get("success"))
class JavaStdIOEvaluationTestCases(EvaluatorBaseTest):
def setUp(self):
self.f_path = os.path.join(tempfile.gettempdir(), "test.txt")
with open(self.f_path, 'wb') as f:
f.write('2'.encode('ascii'))
tmp_in_dir_path = tempfile.mkdtemp()
self.in_dir = tmp_in_dir_path
self.test_case_data = [{'expected_output': '11',
'expected_input': '5\n6',
'test_case_type': 'stdiobasedtestcase',
'weight': 0.0
}]
self.file_paths = None
gd.SERVER_TIMEOUT = 9
self.timeout_msg = ("Code took more than {0} seconds to run. "
"You probably have an infinite loop in"
" your code.").format(gd.SERVER_TIMEOUT)
def tearDown(self):
gd.SERVER_TIMEOUT = 4
os.remove(self.f_path)
shutil.rmtree(self.in_dir)
def test_correct_answer(self):
# Given
user_answer = dedent("""
import java.util.Scanner;
class Test
{public static void main(String[] args){
Scanner s = new Scanner(System.in);
int a = s.nextInt();
int b = s.nextInt();
System.out.print(a+b);
}}""")
kwargs = {
'metadata': {
'user_answer': user_answer,
'file_paths': self.file_paths,
'partial_grading': False,
'language': 'java'
},
'test_case_data': self.test_case_data,
}
# When
grader = Grader(self.in_dir)
result = grader.evaluate(kwargs)
# Then
self.assertTrue(result.get('success'))
def test_array_input(self):
# Given
self.test_case_data = [{'expected_output': '561',
'expected_input': '5\n6\n1',
'test_case_type': 'stdiobasedtestcase',
'weight': 0.0
}]
user_answer = dedent("""
import java.util.Scanner;
class Test
{public static void main(String[] args){
Scanner s = new Scanner(System.in);
int a[] = new int[3];
for (int i=0;i<3;i++){
a[i] = s.nextInt();
System.out.print(a[i]);}
}}""")
kwargs = {
'metadata': {
'user_answer': user_answer,
'file_paths': self.file_paths,
'partial_grading': False,
'language': 'java'
},
'test_case_data': self.test_case_data,
}
# When
grader = Grader(self.in_dir)
result = grader.evaluate(kwargs)
# Then
self.assertTrue(result.get('success'))
def test_incorrect_answer(self):
# Given
user_answer = dedent("""
import java.util.Scanner;
class Test
{public static void main(String[] args){
Scanner s = new Scanner(System.in);
int a = s.nextInt();
int b = s.nextInt();
System.out.print(a);
}}""")
kwargs = {
'metadata': {
'user_answer': user_answer,
'file_paths': self.file_paths,
'partial_grading': False,
'language': 'java'
},
'test_case_data': self.test_case_data,
}
# When
grader = Grader(self.in_dir)
result = grader.evaluate(kwargs)
# Then
lines_of_error = len(result.get('error')[0].get('error_line_numbers'))
result_error = result.get('error')[0].get('error_msg')
self.assertFalse(result.get('success'))
self.assert_correct_output("Incorrect", result_error)
self.assertTrue(lines_of_error > 0)
def test_error(self):
# Given
user_answer = dedent("""
class Test
{
System.out.print("a");
}""")
kwargs = {
'metadata': {
'user_answer': user_answer,
'file_paths': self.file_paths,
'partial_grading': False,
'language': 'java'
},
'test_case_data': self.test_case_data,
}
# When
grader = Grader(self.in_dir)
result = grader.evaluate(kwargs)
# Then
self.assertFalse(result.get("success"))
self.assertTrue("Compilation Error" in '\n'.join(result.get("error")))
def test_infinite_loop(self):
# Given
user_answer = dedent("""
class Test
{public static void main(String[] args){
while(0==0)
{
System.out.print("a");}
}}""")
kwargs = {
'metadata': {
'user_answer': user_answer,
'file_paths': self.file_paths,
'partial_grading': False,
'language': 'java'
},
'test_case_data': self.test_case_data,
}
# When
grader = Grader(self.in_dir)
result = grader.evaluate(kwargs)
# Then
self.assertFalse(result.get("success"))
self.assert_correct_output(self.timeout_msg,
result.get("error")[0]["message"]
)
parent_proc = Process(os.getpid()).children()
if parent_proc:
children_procs = Process(parent_proc[0].pid)
self.assertFalse(any(children_procs.children(recursive=True)))
def test_only_stdout(self):
# Given
self.test_case_data = [{'expected_output': '11',
'test_case_type': 'stdiobasedtestcase',
'weight': 0.0
}]
user_answer = dedent("""
class Test
{public static void main(String[] args){
int a = 5;
int b = 6;
System.out.print(a+b);
}}""")
kwargs = {
'metadata': {
'user_answer': user_answer,
'file_paths': self.file_paths,
'partial_grading': False,
'language': 'java'
},
'test_case_data': self.test_case_data,
}
# When
grader = Grader(self.in_dir)
result = grader.evaluate(kwargs)
# Then
self.assertTrue(result.get('success'))
def test_string_input(self):
# Given
self.test_case_data = [{'expected_output': 'HelloWorld',
'expected_input': 'Hello\nWorld',
'test_case_type': 'stdiobasedtestcase',
'weight': 0.0
}]
user_answer = dedent("""
import java.util.Scanner;
class Test
{public static void main(String[] args){
Scanner s = new Scanner(System.in);
String a = s.nextLine();
String b = s.nextLine();
System.out.print(a+b);
}}""")
kwargs = {
'metadata': {
'user_answer': user_answer,
'file_paths': self.file_paths,
'partial_grading': False,
'language': 'java'
},
'test_case_data': self.test_case_data,
}
# When
grader = Grader(self.in_dir)
result = grader.evaluate(kwargs)
# Then
self.assertTrue(result.get('success'))
def test_file_based_stdout(self):
# Given
self.file_paths = [(self.f_path, False)]
self.test_case_data = [{'expected_output': '2',
'expected_input': '',
'test_case_type': 'stdiobasedtestcase',
'weight': 0.0
}]
user_answer = dedent("""
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
class Test{
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new FileReader("test.txt"));
try {
StringBuilder sb = new StringBuilder();
String line = br.readLine();
while (line != null) {
sb.append(line);
line = br.readLine();}
System.out.print(sb.toString());
} finally {
br.close();
}}}
""")
kwargs = {
'metadata': {
'user_answer': user_answer,
'file_paths': self.file_paths,
'partial_grading': False,
'language': 'java'
},
'test_case_data': self.test_case_data,
}
# When
grader = Grader(self.in_dir)
result = grader.evaluate(kwargs)
# Then
self.assertTrue(result.get("success"))
class JavaHookEvaluationTestCases(EvaluatorBaseTest):
def setUp(self):
self.f_path = os.path.join(tempfile.gettempdir(), "test.txt")
with open(self.f_path, 'wb') as f:
f.write('2'.encode('ascii'))
tmp_in_dir_path = tempfile.mkdtemp()
self.in_dir = tmp_in_dir_path
self.file_paths = None
gd.SERVER_TIMEOUT = 9
self.timeout_msg = ("Code took more than {0} seconds to run. "
"You probably have an infinite loop in"
" your code.").format(gd.SERVER_TIMEOUT)
def tearDown(self):
gd.SERVER_TIMEOUT = 4
os.remove(self.f_path)
shutil.rmtree(self.in_dir)
def test_correct_answer(self):
# Given
user_answer = dedent("""\
class Test
{public static void main(String[] args){
System.out.print("Hello, world!");
}}
""")
hook_code = dedent("""\
def check_answer(user_answer):
with open("Test.java", "w+") as f:
f.write(user_answer)
import subprocess
success = False
err = "Incorrect Answer"
mark_fraction = 0.0
def _run_command(cmd):
proc = subprocess.Popen("{}".format(cmd),
shell=True,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE
)
stdout,stderr = proc.communicate()
return stdout,stderr
cmds = ["javac Test.java", "java Test"]
for cmd in cmds:
stdout, stderr = _run_command(cmd)
if stdout.decode("utf-8") == "Hello, world!":
success, err, mark_fraction = True, "", 1.0
return success, err, mark_fraction
"""
)
test_case_data = [{"test_case_type": "hooktestcase",
"hook_code": hook_code,"weight": 1.0
}]
kwargs = {
'metadata': {
'user_answer': user_answer,
'file_paths': self.file_paths,
'partial_grading': False,
'language': 'java'
},
'test_case_data': test_case_data,
}
# When
grader = Grader(self.in_dir)
result = grader.evaluate(kwargs)
# Then
self.assertTrue(result.get('success'))
def test_incorrect_answer(self):
# Given
user_answer = dedent("""\
class Test
{public static void main(String[] args){
System.out.print("Goodbye, world!");
}}
""")
hook_code = dedent("""\
def check_answer(user_answer):
with open("Test.java", "w+") as f:
f.write(user_answer)
import subprocess
success = False
err = "Incorrect Answer"
mark_fraction = 0.0
def _run_command(cmd):
proc = subprocess.Popen("{}".format(cmd),
shell=True,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE
)
stdout,stderr = proc.communicate()
return stdout,stderr
cmds = ["javac Test.java", "java Test"]
for cmd in cmds:
stdout, stderr = _run_command(cmd)
if stdout.decode("utf-8") == "Hello, world!":
success, err, mark_fraction = True, "", 1.0
return success, err, mark_fraction
"""
)
test_case_data = [{"test_case_type": "hooktestcase",
"hook_code": hook_code,"weight": 1.0
}]
kwargs = {
'metadata': {
'user_answer': user_answer,
'file_paths': self.file_paths,
'partial_grading': False,
'language': 'java'
},
'test_case_data': test_case_data,
}
# When
grader = Grader(self.in_dir)
result = grader.evaluate(kwargs)
# Then
self.assertFalse(result.get('success'))
self.assert_correct_output('Incorrect Answer', result.get('error'))
def test_assert_with_hook(self):
# Given
user_answer = "class Test {\n\tint square_num(int a) {\n\treturn a*a;\n\t}\n}"
assert_test_case = dedent("""
class main
{
public static <E> void check(E expect, E result)
{
if(result.equals(expect))
{
System.out.println("Correct:Output expected "+expect+" and got "+result);
}
else
{
System.out.println("Incorrect:Output expected "+expect+" but got "+result);
System.exit(1);
}
}
public static void main(String arg[])
{
Test t = new Test();
int result, input, output;
input = 0; output = 0;
result = t.square_num(input);
System.out.println("Input submitted to the function: "+input);
check(output, result);
input = 5; output = 25;
result = t.square_num(input);
System.out.println("Input submitted to the function: "+input);
check(output, result);
input = 6; output = 36;
result = t.square_num(input);
System.out.println("Input submitted to the function: "+input);
check(output, result);
}
}
""")
hook_code = dedent("""\
def check_answer(user_answer):
success = False
err = "Incorrect Answer"
mark_fraction = 0.0
if "return a*a" in user_answer:
success, err, mark_fraction = True, "", 1.0
return success, err, mark_fraction
"""
)
test_case_data = [{"test_case_type": "standardtestcase",
"test_case": assert_test_case,
'weight': 1.0
},
{"test_case_type": "hooktestcase",
"hook_code": hook_code, 'weight': 1.0},
]
kwargs = {
'metadata': {
'user_answer': user_answer,
'file_paths': self.file_paths,
'partial_grading': True,
'language': 'java'
},
'test_case_data': test_case_data,
}
# When
grader = Grader(self.in_dir)
result = grader.evaluate(kwargs)
# Then
self.assertTrue(result.get('success'))
self.assertEqual(result.get("weight"), 2.0)
def test_multiple_hooks(self):
# Given
user_answer = dedent("""\
class Test
{public static void main(String[] args){
System.out.print("Hello, world!");
}}
""")
hook_code_1 = dedent("""\
def check_answer(user_answer):
with open("Test.java", "w+") as f:
f.write(user_answer)
import subprocess
success = False
err = "Incorrect Answer"
mark_fraction = 0.0
def _run_command(cmd):
proc = subprocess.Popen("{}".format(cmd),
shell=True,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE
)
stdout,stderr = proc.communicate()
return stdout,stderr
cmds = ["javac Test.java", "java Test"]
for cmd in cmds:
stdout, stderr = _run_command(cmd)
if stdout.decode("utf-8") == "Hello, world!":
success, err, mark_fraction = True, "", 1.0
return success, err, mark_fraction
"""
)
hook_code_2 = dedent("""\
def check_answer(user_answer):
success = False
err = "Incorrect Answer"
mark_fraction = 0.0
if 'System.out.print("Hello, world!");' in user_answer:
success, err, mark_fraction = True, "", 0.5
return success, err, mark_fraction
"""
)
test_case_data = [{"test_case_type": "hooktestcase",
"hook_code": hook_code_1, 'weight': 1.0},
{"test_case_type": "hooktestcase",
"hook_code": hook_code_2, 'weight': 1.0},
]
kwargs = {
'metadata': {
'user_answer': user_answer,
'file_paths': self.file_paths,
'partial_grading': True,
'language': 'java'
},
'test_case_data': test_case_data,
}
# When
grader = Grader(self.in_dir)
result = grader.evaluate(kwargs)
# Then
self.assertTrue(result.get('success'))
self.assertEqual(result.get("weight"), 1.5)
def test_infinite_loop(self):
# Given
user_answer = dedent("""\
class Test
{public static void main(String[] args){
while(0==0)
{
System.out.print("a");}
}}""")
hook_code = dedent("""\
def check_answer(user_answer):
with open("Test.java", "w+") as f:
f.write(user_answer)
import subprocess
success = False
err = "Incorrect Answer"
mark_fraction = 0.0
def _run_command(cmd):
proc = subprocess.Popen("{}".format(cmd),
shell=True,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE
)
stdout,stderr = proc.communicate()
return stdout,stderr
cmds = ["javac Test.java", "java Test"]
for cmd in cmds:
stdout, stderr = _run_command(cmd)
if stdout.decode("utf-8") == "Hello, world!":
success, err, mark_fraction = True, "", 1.0
return success, err, mark_fraction
"""
)
test_case_data = [{"test_case_type": "hooktestcase",
"hook_code": hook_code,"weight": 1.0
}]
kwargs = {
'metadata': {
'user_answer': user_answer,
'file_paths': self.file_paths,
'partial_grading': False,
'language': 'java'
},
'test_case_data': test_case_data,
}
# When
grader = Grader(self.in_dir)
result = grader.evaluate(kwargs)
# Then
self.assertFalse(result.get('success'))
self.assert_correct_output(self.timeout_msg,
result.get("error")[0]["message"]
)
parent_proc = Process(os.getpid()).children()
if parent_proc:
children_procs = Process(parent_proc[0].pid)
self.assertFalse(any(children_procs.children(recursive=True)))
if __name__ == '__main__':
unittest.main()
| 37.564311
| 97
| 0.424301
| 2,774
| 32,418
| 4.774694
| 0.083634
| 0.040468
| 0.043488
| 0.02416
| 0.924651
| 0.920045
| 0.909324
| 0.899811
| 0.885693
| 0.879049
| 0
| 0.007716
| 0.476279
| 32,418
| 862
| 98
| 37.607889
| 0.772411
| 0.009254
| 0
| 0.765193
| 0
| 0.005525
| 0.523766
| 0.04404
| 0
| 0
| 0
| 0
| 0.053867
| 1
| 0.033149
| false
| 0
| 0.037293
| 0
| 0.089779
| 0.035912
| 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
|
ea0a8475a641571a2c34fc142491661c9cdddc63
| 1,711
|
py
|
Python
|
hydroserver/hydroserver_core/migrations/0002_auto_20190709_2226.py
|
kjlippold/his_hydroserver
|
aaf3939965d12dd5bc74f69d22b653ce548bec0a
|
[
"MIT"
] | 1
|
2021-01-27T19:19:05.000Z
|
2021-01-27T19:19:05.000Z
|
hydroserver/hydroserver_core/migrations/0002_auto_20190709_2226.py
|
CUAHSI-APPS/his_hydroserver
|
aaf3939965d12dd5bc74f69d22b653ce548bec0a
|
[
"MIT"
] | 1
|
2019-09-27T16:20:49.000Z
|
2019-09-27T16:20:49.000Z
|
hydroserver/hydroserver_core/migrations/0002_auto_20190709_2226.py
|
kjlippold/his_hydroserver
|
aaf3939965d12dd5bc74f69d22b653ce548bec0a
|
[
"MIT"
] | 1
|
2020-06-08T21:43:38.000Z
|
2020-06-08T21:43:38.000Z
|
# Generated by Django 2.1.7 on 2019-07-09 22:26
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('hydroserver_core', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='timeseries',
name='begin_date',
field=models.TextField(blank=True, default=None, null=True),
),
migrations.AlterField(
model_name='timeseries',
name='end_date',
field=models.TextField(blank=True, default=None, null=True),
),
migrations.AlterField(
model_name='timeseries',
name='method_description',
field=models.TextField(blank=True, default=None, null=True),
),
migrations.AlterField(
model_name='timeseries',
name='method_link',
field=models.TextField(blank=True, default=None, null=True),
),
migrations.AlterField(
model_name='timeseries',
name='sample_medium',
field=models.TextField(blank=True, default=None, null=True),
),
migrations.AlterField(
model_name='timeseries',
name='site_name',
field=models.TextField(blank=True, default=None, null=True),
),
migrations.AlterField(
model_name='timeseries',
name='value_count',
field=models.IntegerField(blank=True, default=None, null=True),
),
migrations.AlterField(
model_name='timeseries',
name='variable_name',
field=models.TextField(blank=True, default=None, null=True),
),
]
| 31.685185
| 75
| 0.574518
| 164
| 1,711
| 5.884146
| 0.29878
| 0.165803
| 0.207254
| 0.240415
| 0.762694
| 0.762694
| 0.718135
| 0.718135
| 0.718135
| 0.718135
| 0
| 0.016034
| 0.307423
| 1,711
| 53
| 76
| 32.283019
| 0.798312
| 0.0263
| 0
| 0.659574
| 1
| 0
| 0.120793
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.021277
| 0
| 0.085106
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 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
| 8
|
ea1134e580a12dda91ecc014a49aa61efb5dbeb8
| 16,086
|
py
|
Python
|
tests/test_BaseOpsParser.py
|
mihudec/net_parser
|
025bd08e7b91b9c4674503be0f5ae6716f0af6f3
|
[
"MIT"
] | null | null | null |
tests/test_BaseOpsParser.py
|
mihudec/net_parser
|
025bd08e7b91b9c4674503be0f5ae6716f0af6f3
|
[
"MIT"
] | null | null | null |
tests/test_BaseOpsParser.py
|
mihudec/net_parser
|
025bd08e7b91b9c4674503be0f5ae6716f0af6f3
|
[
"MIT"
] | 1
|
2021-08-09T06:34:13.000Z
|
2021-08-09T06:34:13.000Z
|
import unittest
from net_parser.ops.BaseOpsParsers import *
from tests import BaseNetParserTest
class TestBaseOpsParser(BaseNetParserTest):
pass
class TestCdpNeighborDetailParser(BaseNetParserTest):
pass
class TestOpsParser(BaseNetParserTest):
cdp_text = """
-------------------------
Device ID: CORE-Router.a1.lab
Entry address(es):
IP address: 10.8.8.71
Platform: Linux Unix, Capabilities: Router Source-Route-Bridge
Interface: Ethernet1/3, Port ID (outgoing port): Ethernet0/1
Holdtime : 133 sec
Version :
Cisco IOS Software, Linux Software (I86BI_LINUX-ADVENTERPRISEK9-M), Version 15.7(3)M2, DEVELOPMENT TEST SOFTWARE
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2018 by Cisco Systems, Inc.
Compiled Wed 28-Mar-18 11:18 by prod_rel_team
advertisement version: 2
Management address(es):
IP address: 10.8.8.71
-------------------------
Device ID: CZ-OF1-SW-LAB10.alef.lab
Entry address(es):
IP address: 10.8.8.3
Platform: cisco WS-C2960X-48TS-L, Capabilities: Switch IGMP
Interface: Ethernet1/3, Port ID (outgoing port): GigabitEthernet1/0/15
Holdtime : 144 sec
Version :
Cisco IOS Software, C2960X Software (C2960X-UNIVERSALK9-M), Version 15.2(2)E3, RELEASE SOFTWARE (fc3)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2015 by Cisco Systems, Inc.
Compiled Wed 26-Aug-15 07:12 by prod_rel_team
advertisement version: 2
Protocol Hello: OUI=0x00000C, Protocol ID=0x0112; payload len=27, value=00000000FFFFFFFF010221FF00000000000000562BCE4E00FF0000
VTP Management Domain: ''
Native VLAN: 1000
Duplex: full
Management address(es):
IP address: 10.8.8.3
-------------------------
Device ID: OOB-Router.a1.lab
Entry address(es):
IP address: 10.8.8.159
Platform: Linux Unix, Capabilities: Router Source-Route-Bridge
Interface: Ethernet1/3, Port ID (outgoing port): Ethernet0/1
Holdtime : 176 sec
Version :
Cisco IOS Software, Linux Software (I86BI_LINUX-ADVENTERPRISEK9-M), Version 15.7(3)M2, DEVELOPMENT TEST SOFTWARE
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2018 by Cisco Systems, Inc.
Compiled Wed 28-Mar-18 11:18 by prod_rel_team
advertisement version: 2
Management address(es):
IP address: 10.8.8.159
-------------------------
Device ID: OOB-Router.a1.lab
Entry address(es):
IP address: 192.168.0.1
Platform: Linux Unix, Capabilities: Router Source-Route-Bridge
Interface: Ethernet1/0, Port ID (outgoing port): Ethernet0/0
Holdtime : 131 sec
Version :
Cisco IOS Software, Linux Software (I86BI_LINUX-ADVENTERPRISEK9-M), Version 15.7(3)M2, DEVELOPMENT TEST SOFTWARE
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2018 by Cisco Systems, Inc.
Compiled Wed 28-Mar-18 11:18 by prod_rel_team
advertisement version: 2
Management address(es):
IP address: 192.168.0.1
Total cdp entries displayed : 4
"""
interfaces_text = """
Ethernet0/0 is up, line protocol is up (connected)
Hardware is Ethernet, address is aabb.cc00.3e00 (bia aabb.cc00.3e00)
MTU 1500 bytes, BW 10000 Kbit/sec, DLY 1000 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation ARPA, loopback not set
Keepalive set (10 sec)
Full-duplex, Auto-speed, media type is RJ45
input flow-control is off, output flow-control is unsupported
ARP type: ARPA, ARP Timeout 04:00:00
Last input 00:00:00, output 00:00:01, output hang never
Last clearing of "show interface" counters never
Input queue: 0/2000/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: fifo
Output queue: 0/0 (size/max)
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
264854 packets input, 83169014 bytes, 0 no buffer
Received 7 broadcasts (0 multicasts)
0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
0 input packets with dribble condition detected
1079736 packets output, 143877792 bytes, 0 underruns
0 output errors, 0 collisions, 0 interface resets
0 unknown protocol drops
0 babbles, 0 late collision, 0 deferred
0 lost carrier, 0 no carrier
0 output buffer failures, 0 output buffers swapped out
Ethernet0/1 is up, line protocol is up (connected)
Hardware is Ethernet, address is aabb.cc00.3e10 (bia aabb.cc00.3e10)
MTU 1500 bytes, BW 10000 Kbit/sec, DLY 1000 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation ARPA, loopback not set
Keepalive set (10 sec)
Full-duplex, Auto-speed, media type is RJ45
input flow-control is off, output flow-control is unsupported
ARP type: ARPA, ARP Timeout 04:00:00
Last input 00:00:02, output 00:00:00, output hang never
Last clearing of "show interface" counters never
Input queue: 0/2000/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: fifo
Output queue: 0/0 (size/max)
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
264861 packets input, 83171338 bytes, 0 no buffer
Received 7 broadcasts (0 multicasts)
0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
0 input packets with dribble condition detected
1079695 packets output, 143859604 bytes, 0 underruns
0 output errors, 0 collisions, 0 interface resets
0 unknown protocol drops
0 babbles, 0 late collision, 0 deferred
0 lost carrier, 0 no carrier
0 output buffer failures, 0 output buffers swapped out
Ethernet0/2 is up, line protocol is up (connected)
Hardware is Ethernet, address is aabb.cc00.3e20 (bia aabb.cc00.3e20)
MTU 1500 bytes, BW 10000 Kbit/sec, DLY 1000 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation ARPA, loopback not set
Keepalive set (10 sec)
Full-duplex, Auto-speed, media type is RJ45
input flow-control is off, output flow-control is unsupported
ARP type: ARPA, ARP Timeout 04:00:00
Last input never, output 00:00:00, output hang never
Last clearing of "show interface" counters never
Input queue: 0/2000/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: fifo
Output queue: 0/0 (size/max)
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
0 packets input, 0 bytes, 0 no buffer
Received 0 broadcasts (0 multicasts)
0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
0 input packets with dribble condition detected
1344550 packets output, 227028851 bytes, 0 underruns
0 output errors, 0 collisions, 0 interface resets
0 unknown protocol drops
0 babbles, 0 late collision, 0 deferred
0 lost carrier, 0 no carrier
0 output buffer failures, 0 output buffers swapped out
Ethernet0/3 is up, line protocol is up (connected)
Hardware is Ethernet, address is aabb.cc00.3e30 (bia aabb.cc00.3e30)
MTU 1500 bytes, BW 10000 Kbit/sec, DLY 1000 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation ARPA, loopback not set
Keepalive set (10 sec)
Full-duplex, Auto-speed, media type is RJ45
input flow-control is off, output flow-control is unsupported
ARP type: ARPA, ARP Timeout 04:00:00
Last input never, output 00:00:00, output hang never
Last clearing of "show interface" counters never
Input queue: 0/2000/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: fifo
Output queue: 0/0 (size/max)
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
0 packets input, 0 bytes, 0 no buffer
Received 0 broadcasts (0 multicasts)
0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
0 input packets with dribble condition detected
1344556 packets output, 227031629 bytes, 0 underruns
0 output errors, 0 collisions, 0 interface resets
0 unknown protocol drops
0 babbles, 0 late collision, 0 deferred
0 lost carrier, 0 no carrier
0 output buffer failures, 0 output buffers swapped out
Ethernet1/0 is up, line protocol is up (connected)
Hardware is Ethernet, address is aabb.cc00.3e01 (bia aabb.cc00.3e01)
Internet address is 192.168.1.114/24
MTU 1500 bytes, BW 10000 Kbit/sec, DLY 1000 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation ARPA, loopback not set
Keepalive set (10 sec)
Full-duplex, Auto-speed, media type is RJ45
input flow-control is off, output flow-control is unsupported
ARP type: ARPA, ARP Timeout 04:00:00
Last input 00:00:07, output 00:00:43, output hang never
Last clearing of "show interface" counters never
Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: fifo
Output queue: 0/40 (size/max)
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
98825 packets input, 15338412 bytes, 0 no buffer
Received 91926 broadcasts (0 IP multicasts)
0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
0 input packets with dribble condition detected
40352 packets output, 13202454 bytes, 0 underruns
0 output errors, 0 collisions, 0 interface resets
0 unknown protocol drops
0 babbles, 0 late collision, 0 deferred
0 lost carrier, 0 no carrier
0 output buffer failures, 0 output buffers swapped out
Ethernet1/1 is up, line protocol is up (connected)
Hardware is Ethernet, address is aabb.cc00.3e11 (bia aabb.cc00.3e11)
MTU 1500 bytes, BW 10000 Kbit/sec, DLY 1000 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation ARPA, loopback not set
Keepalive set (10 sec)
Full-duplex, Auto-speed, media type is RJ45
input flow-control is off, output flow-control is unsupported
ARP type: ARPA, ARP Timeout 04:00:00
Last input 00:04:21, output 00:00:01, output hang never
Last clearing of "show interface" counters never
Input queue: 0/2000/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: fifo
Output queue: 0/0 (size/max)
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
768 packets input, 53760 bytes, 0 no buffer
Received 0 broadcasts (0 multicasts)
0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
0 input packets with dribble condition detected
721878 packets output, 53725957 bytes, 0 underruns
0 output errors, 0 collisions, 0 interface resets
0 unknown protocol drops
0 babbles, 0 late collision, 0 deferred
0 lost carrier, 0 no carrier
0 output buffer failures, 0 output buffers swapped out
Ethernet1/2 is up, line protocol is up (connected)
Hardware is Ethernet, address is aabb.cc00.3e21 (bia aabb.cc00.3e21)
MTU 1500 bytes, BW 10000 Kbit/sec, DLY 1000 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation ARPA, loopback not set
Keepalive set (10 sec)
Full-duplex, Auto-speed, media type is RJ45
input flow-control is off, output flow-control is unsupported
ARP type: ARPA, ARP Timeout 04:00:00
Last input 00:56:47, output 00:00:00, output hang never
Last clearing of "show interface" counters never
Input queue: 0/2000/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: fifo
Output queue: 0/0 (size/max)
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
768 packets input, 53760 bytes, 0 no buffer
Received 0 broadcasts (0 multicasts)
0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
0 input packets with dribble condition detected
721888 packets output, 53730587 bytes, 0 underruns
0 output errors, 0 collisions, 0 interface resets
0 unknown protocol drops
0 babbles, 0 late collision, 0 deferred
0 lost carrier, 0 no carrier
0 output buffer failures, 0 output buffers swapped out
Ethernet1/3 is up, line protocol is up (connected)
Hardware is Ethernet, address is aabb.cc00.3e31 (bia aabb.cc00.3e31)
Internet address will be negotiated using DHCP
MTU 1500 bytes, BW 10000 Kbit/sec, DLY 1000 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation ARPA, loopback not set
Keepalive set (10 sec)
Full-duplex, Auto-speed, media type is RJ45
input flow-control is off, output flow-control is unsupported
ARP type: ARPA, ARP Timeout 04:00:00
Last input 00:00:00, output 00:00:00, output hang never
Last clearing of "show interface" counters never
Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: fifo
Output queue: 0/40 (size/max)
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
891512 packets input, 83237850 bytes, 0 no buffer
Received 885006 broadcasts (0 IP multicasts)
0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
0 input packets with dribble condition detected
77760 packets output, 29409687 bytes, 0 underruns
0 output errors, 0 collisions, 0 interface resets
0 unknown protocol drops
0 babbles, 0 late collision, 0 deferred
0 lost carrier, 0 no carrier
0 output buffer failures, 0 output buffers swapped out
Vlan1 is administratively down, line protocol is down
Hardware is Ethernet SVI, address is aabb.cc80.3e00 (bia aabb.cc80.3e00)
MTU 1500 bytes, BW 1000000 Kbit/sec, DLY 10 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation ARPA, loopback not set
Keepalive not supported
ARP type: ARPA, ARP Timeout 04:00:00
Last input never, output never, output hang never
Last clearing of "show interface" counters never
Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: fifo
Output queue: 0/40 (size/max)
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
0 packets input, 0 bytes, 0 no buffer
Received 0 broadcasts (0 IP multicasts)
0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
0 packets output, 0 bytes, 0 underruns
0 output errors, 0 interface resets
0 unknown protocol drops
0 output buffer failures, 0 output buffers swapped out
Vlan10 is administratively down, line protocol is down
Hardware is Ethernet SVI, address is aabb.cc80.3e00 (bia aabb.cc80.3e00)
Description: FooBar
MTU 1500 bytes, BW 1000000 Kbit/sec, DLY 10 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation ARPA, loopback not set
Keepalive not supported
ARP type: ARPA, ARP Timeout 04:00:00
Last input never, output never, output hang never
Last clearing of "show interface" counters never
Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: fifo
Output queue: 0/40 (size/max)
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
0 packets input, 0 bytes, 0 no buffer
Received 0 broadcasts (0 IP multicasts)
0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
0 packets output, 0 bytes, 0 underruns
0 output errors, 0 interface resets
0 unknown protocol drops
0 output buffer failures, 0 output buffers swapped out
"""
def test_init_subclass(self):
print(OpsParser._registry)
cdp_parser = OpsParser(vendor='ios', command='show cdp neighbors detail')
print(cdp_parser)
results = cdp_parser.parse(text=self.cdp_text)
for result in results:
print(result)
interface_parser = OpsParser(vendor='ios', command='show interfaces')
print(interface_parser)
results = interface_parser.parse(text=self.interfaces_text)
for result in results:
print(result)
del BaseNetParserTest
if __name__ == '__main__':
unittest.main()
| 41.673575
| 127
| 0.724854
| 2,563
| 16,086
| 4.536481
| 0.120952
| 0.018061
| 0.022706
| 0.020642
| 0.873054
| 0.864367
| 0.855939
| 0.844156
| 0.838995
| 0.836415
| 0
| 0.110671
| 0.198993
| 16,086
| 386
| 128
| 41.673575
| 0.791696
| 0
| 0
| 0.783099
| 0
| 0.039437
| 0.946603
| 0.035681
| 0
| 0
| 0.00087
| 0
| 0
| 1
| 0.002817
| false
| 0.005634
| 0.008451
| 0
| 0.025352
| 0.014085
| 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
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
ea351337961c41bc65c9235bde8f813a450db74e
| 8,797
|
py
|
Python
|
ktapp/tests/test_message_sending.py
|
cu2/KT
|
8a0964b77dce150358637faa679d969a07e42f07
|
[
"CC-BY-3.0"
] | 5
|
2015-04-13T09:44:31.000Z
|
2017-10-19T01:07:58.000Z
|
ktapp/tests/test_message_sending.py
|
cu2/KT
|
8a0964b77dce150358637faa679d969a07e42f07
|
[
"CC-BY-3.0"
] | 49
|
2015-02-15T07:12:05.000Z
|
2022-03-11T23:11:43.000Z
|
ktapp/tests/test_message_sending.py
|
cu2/KT
|
8a0964b77dce150358637faa679d969a07e42f07
|
[
"CC-BY-3.0"
] | null | null | null |
from django.test import TestCase
from ktapp import models
class MessageSendingTestCase(TestCase):
def setUp(self):
models.KTUser.objects.create(
id=1,
username='u1',
email='u1@example.com',
)
models.KTUser.objects.create(
id=2,
username='u2',
email='u2@example.com',
)
models.KTUser.objects.create(
id=3,
username='u3',
email='u3@example.com',
)
def test_send_message(self):
u1 = models.KTUser.objects.get(id=1)
u2 = models.KTUser.objects.get(id=2)
models.Message.send_message(
sent_by=u1,
content='Test message',
recipients={u2},
)
messages = models.Message.objects.all()
self.assertEqual(messages.count(), 2)
message1, message2 = tuple(messages)
self.assertEqual(message1.sent_by, u1)
self.assertEqual(message2.sent_by, u1)
self.assertEqual(message1.owned_by, u1)
self.assertEqual(message2.owned_by, u2)
self.assertTrue(message1.private)
self.assertTrue(message2.private)
self.assertEqual(message1.sent_to.count(), 1)
self.assertEqual(message2.sent_to.count(), 1)
self.assertEqual(message1.sent_to.all()[0], u2)
self.assertEqual(message2.sent_to.all()[0], u2)
self.assertEqual(u1.number_of_messages, 1)
self.assertEqual(u2.number_of_messages, 1)
self.assertEqual(u1.last_message_at, None)
self.assertEqual(u2.last_message_at, message2.sent_at)
self.assertEqual(models.MessageCountCache.get_count(owned_by=u1, partner=u2), 1)
self.assertEqual(models.MessageCountCache.get_count(owned_by=u2, partner=u1), 1)
def test_send_message_with_ignore(self):
u1 = models.KTUser.objects.get(id=1)
u2 = models.KTUser.objects.get(id=2)
models.IgnoreUser.set(
who=u2,
whom=u1,
ignore_pm=True,
)
models.Message.send_message(
sent_by=u1,
content='Test message',
recipients={u2},
)
messages = models.Message.objects.all()
self.assertEqual(messages.count(), 1)
message1 = messages[0]
self.assertEqual(message1.sent_by, u1)
self.assertEqual(message1.owned_by, u1)
self.assertTrue(message1.private)
self.assertEqual(message1.sent_to.count(), 1)
self.assertEqual(message1.sent_to.all()[0], u2)
self.assertEqual(u1.number_of_messages, 1)
self.assertEqual(u2.number_of_messages, 0)
self.assertEqual(u1.last_message_at, None)
self.assertEqual(u2.last_message_at, None)
self.assertEqual(models.MessageCountCache.get_count(owned_by=u1, partner=u2), 1)
self.assertEqual(models.MessageCountCache.get_count(owned_by=u2, partner=u1), 0)
def test_send_message_2_recipients(self):
u1 = models.KTUser.objects.get(id=1)
u2 = models.KTUser.objects.get(id=2)
u3 = models.KTUser.objects.get(id=3)
models.Message.send_message(
sent_by=u1,
content='Test message',
recipients={u2, u3},
)
messages = models.Message.objects.all()
self.assertEqual(messages.count(), 3)
message1, message2, message3 = tuple(messages)
self.assertEqual(message1.sent_by, u1)
self.assertEqual(message2.sent_by, u1)
self.assertEqual(message3.sent_by, u1)
self.assertEqual(message1.owned_by, u1)
self.assertEqual(message2.owned_by, u2)
self.assertEqual(message3.owned_by, u3)
self.assertFalse(message1.private)
self.assertFalse(message2.private)
self.assertFalse(message3.private)
self.assertEqual(message1.sent_to.count(), 2)
self.assertEqual(message2.sent_to.count(), 2)
self.assertEqual(message3.sent_to.count(), 2)
self.assertListEqual(list(message1.sent_to.all()), [u2, u3])
self.assertListEqual(list(message2.sent_to.all()), [u2, u3])
self.assertListEqual(list(message3.sent_to.all()), [u2, u3])
self.assertEqual(u1.number_of_messages, 1)
self.assertEqual(u2.number_of_messages, 1)
self.assertEqual(u3.number_of_messages, 1)
self.assertEqual(u1.last_message_at, None)
self.assertEqual(u2.last_message_at, message2.sent_at)
self.assertEqual(u3.last_message_at, message3.sent_at)
self.assertEqual(models.MessageCountCache.get_count(owned_by=u1, partner=u2), 0)
self.assertEqual(models.MessageCountCache.get_count(owned_by=u1, partner=u3), 0)
self.assertEqual(models.MessageCountCache.get_count(owned_by=u2, partner=u1), 0)
self.assertEqual(models.MessageCountCache.get_count(owned_by=u2, partner=u3), 0)
self.assertEqual(models.MessageCountCache.get_count(owned_by=u3, partner=u1), 0)
self.assertEqual(models.MessageCountCache.get_count(owned_by=u3, partner=u2), 0)
def test_send_message_2_recipients_with_ignore(self):
u1 = models.KTUser.objects.get(id=1)
u2 = models.KTUser.objects.get(id=2)
u3 = models.KTUser.objects.get(id=3)
models.IgnoreUser.set(
who=u2,
whom=u1,
ignore_pm=True,
)
models.Message.send_message(
sent_by=u1,
content='Test message',
recipients={u2, u3},
)
messages = models.Message.objects.all()
self.assertEqual(messages.count(), 2)
message1, message3 = tuple(messages)
self.assertEqual(message1.sent_by, u1)
self.assertEqual(message3.sent_by, u1)
self.assertEqual(message1.owned_by, u1)
self.assertEqual(message3.owned_by, u3)
self.assertFalse(message1.private)
self.assertFalse(message3.private)
self.assertEqual(message1.sent_to.count(), 2)
self.assertEqual(message3.sent_to.count(), 2)
self.assertListEqual(list(message1.sent_to.all()), [u2, u3])
self.assertListEqual(list(message3.sent_to.all()), [u2, u3])
self.assertEqual(u1.number_of_messages, 1)
self.assertEqual(u3.number_of_messages, 1)
self.assertEqual(u1.last_message_at, None)
self.assertEqual(u3.last_message_at, message3.sent_at)
self.assertEqual(models.MessageCountCache.get_count(owned_by=u1, partner=u2), 0)
self.assertEqual(models.MessageCountCache.get_count(owned_by=u1, partner=u3), 0)
self.assertEqual(models.MessageCountCache.get_count(owned_by=u2, partner=u1), 0)
self.assertEqual(models.MessageCountCache.get_count(owned_by=u2, partner=u3), 0)
self.assertEqual(models.MessageCountCache.get_count(owned_by=u3, partner=u1), 0)
self.assertEqual(models.MessageCountCache.get_count(owned_by=u3, partner=u2), 0)
def test_send_system_message(self):
u2 = models.KTUser.objects.get(id=2)
models.Message.send_message(
sent_by=None,
content='Test message',
recipients={u2},
)
messages = models.Message.objects.all()
self.assertEqual(messages.count(), 1)
message2 = messages[0]
self.assertEqual(message2.sent_by, None)
self.assertEqual(message2.owned_by, u2)
self.assertTrue(message2.private)
self.assertEqual(message2.sent_to.count(), 1)
self.assertEqual(message2.sent_to.all()[0], u2)
self.assertEqual(u2.number_of_messages, 1)
self.assertEqual(u2.last_message_at, message2.sent_at)
def test_send_system_message_2_recipients(self):
u2 = models.KTUser.objects.get(id=2)
u3 = models.KTUser.objects.get(id=3)
models.Message.send_message(
sent_by=None,
content='Test message',
recipients={u2, u3},
)
messages = models.Message.objects.all()
self.assertEqual(messages.count(), 2)
message2, message3 = tuple(messages)
self.assertEqual(message2.sent_by, None)
self.assertEqual(message3.sent_by, None)
self.assertEqual(message2.owned_by, u2)
self.assertEqual(message3.owned_by, u3)
self.assertFalse(message2.private)
self.assertFalse(message3.private)
self.assertEqual(message2.sent_to.count(), 2)
self.assertEqual(message3.sent_to.count(), 2)
self.assertListEqual(list(message2.sent_to.all()), [u2, u3])
self.assertListEqual(list(message3.sent_to.all()), [u2, u3])
self.assertEqual(u2.number_of_messages, 1)
self.assertEqual(u3.number_of_messages, 1)
self.assertEqual(u2.last_message_at, message2.sent_at)
self.assertEqual(u3.last_message_at, message3.sent_at)
| 43.549505
| 88
| 0.653177
| 1,084
| 8,797
| 5.144834
| 0.059963
| 0.223238
| 0.048772
| 0.109019
| 0.95338
| 0.934553
| 0.921822
| 0.89887
| 0.876995
| 0.868926
| 0
| 0.040018
| 0.22735
| 8,797
| 201
| 89
| 43.766169
| 0.780491
| 0
| 0
| 0.78534
| 0
| 0
| 0.013641
| 0
| 0
| 0
| 0
| 0
| 0.528796
| 1
| 0.036649
| false
| 0
| 0.010471
| 0
| 0.052356
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 9
|
ea380841ca3c6af2b6b492697bd5ddc9b92f48fd
| 207,806
|
py
|
Python
|
data/enums.py
|
sebst/py-easyaddress
|
f71d76caf92e80cc69f34fc70811e95ce4b739dd
|
[
"MIT"
] | 1
|
2021-04-20T10:56:42.000Z
|
2021-04-20T10:56:42.000Z
|
data/enums.py
|
sebst/py-easyaddress
|
f71d76caf92e80cc69f34fc70811e95ce4b739dd
|
[
"MIT"
] | null | null | null |
data/enums.py
|
sebst/py-easyaddress
|
f71d76caf92e80cc69f34fc70811e95ce4b739dd
|
[
"MIT"
] | null | null | null |
from enum import Enum
class Country(Enum):
AD = '00000000-0000-0000-0000-001000000000'
AE = '00000000-0000-0000-0000-002000000000'
AF = '00000000-0000-0000-0000-003000000000'
AG = '00000000-0000-0000-0000-004000000000'
AI = '00000000-0000-0000-0000-005000000000'
AL = '00000000-0000-0000-0000-006000000000'
AM = '00000000-0000-0000-0000-007000000000'
AO = '00000000-0000-0000-0000-008000000000'
AQ = '00000000-0000-0000-0000-009000000000'
AR = '00000000-0000-0000-0000-00a000000000'
AS = '00000000-0000-0000-0000-00b000000000'
AT = '00000000-0000-0000-0000-00c000000000'
AU = '00000000-0000-0000-0000-00d000000000'
AZ = '00000000-0000-0000-0000-00e000000000'
BA = '00000000-0000-0000-0000-00f000000000'
BB = '00000000-0000-0000-0000-010000000000'
BD = '00000000-0000-0000-0000-011000000000'
BE = '00000000-0000-0000-0000-012000000000'
BF = '00000000-0000-0000-0000-013000000000'
BG = '00000000-0000-0000-0000-014000000000'
BH = '00000000-0000-0000-0000-015000000000'
BI = '00000000-0000-0000-0000-016000000000'
BJ = '00000000-0000-0000-0000-017000000000'
BM = '00000000-0000-0000-0000-018000000000'
BN = '00000000-0000-0000-0000-019000000000'
BO = '00000000-0000-0000-0000-01a000000000'
BQ = '00000000-0000-0000-0000-01b000000000'
BR = '00000000-0000-0000-0000-01c000000000'
BS = '00000000-0000-0000-0000-01d000000000'
BT = '00000000-0000-0000-0000-01e000000000'
BW = '00000000-0000-0000-0000-01f000000000'
BY = '00000000-0000-0000-0000-020000000000'
BZ = '00000000-0000-0000-0000-021000000000'
CA = '00000000-0000-0000-0000-022000000000'
CD = '00000000-0000-0000-0000-023000000000'
CF = '00000000-0000-0000-0000-024000000000'
CG = '00000000-0000-0000-0000-025000000000'
CH = '00000000-0000-0000-0000-026000000000'
CI = '00000000-0000-0000-0000-027000000000'
CK = '00000000-0000-0000-0000-028000000000'
CL = '00000000-0000-0000-0000-029000000000'
CM = '00000000-0000-0000-0000-02a000000000'
CN = '00000000-0000-0000-0000-02b000000000'
CO = '00000000-0000-0000-0000-02c000000000'
CR = '00000000-0000-0000-0000-02d000000000'
CU = '00000000-0000-0000-0000-02e000000000'
CV = '00000000-0000-0000-0000-02f000000000'
CY = '00000000-0000-0000-0000-030000000000'
CZ = '00000000-0000-0000-0000-031000000000'
DE = '00000000-0000-0000-0000-032000000000'
DJ = '00000000-0000-0000-0000-033000000000'
DK = '00000000-0000-0000-0000-034000000000'
DM = '00000000-0000-0000-0000-035000000000'
DO = '00000000-0000-0000-0000-036000000000'
DZ = '00000000-0000-0000-0000-037000000000'
EC = '00000000-0000-0000-0000-038000000000'
EE = '00000000-0000-0000-0000-039000000000'
EG = '00000000-0000-0000-0000-03a000000000'
ER = '00000000-0000-0000-0000-03b000000000'
ES = '00000000-0000-0000-0000-03c000000000'
ET = '00000000-0000-0000-0000-03d000000000'
FI = '00000000-0000-0000-0000-03e000000000'
FJ = '00000000-0000-0000-0000-03f000000000'
FK = '00000000-0000-0000-0000-040000000000'
FM = '00000000-0000-0000-0000-041000000000'
FO = '00000000-0000-0000-0000-042000000000'
FR = '00000000-0000-0000-0000-043000000000'
GA = '00000000-0000-0000-0000-044000000000'
GB = '00000000-0000-0000-0000-045000000000'
GD = '00000000-0000-0000-0000-046000000000'
GE = '00000000-0000-0000-0000-047000000000'
GF = '00000000-0000-0000-0000-048000000000'
GG = '00000000-0000-0000-0000-049000000000'
GH = '00000000-0000-0000-0000-04a000000000'
GI = '00000000-0000-0000-0000-04b000000000'
GL = '00000000-0000-0000-0000-04c000000000'
GM = '00000000-0000-0000-0000-04d000000000'
GN = '00000000-0000-0000-0000-04e000000000'
GP = '00000000-0000-0000-0000-04f000000000'
GQ = '00000000-0000-0000-0000-050000000000'
GR = '00000000-0000-0000-0000-051000000000'
GS = '00000000-0000-0000-0000-052000000000'
GT = '00000000-0000-0000-0000-053000000000'
GU = '00000000-0000-0000-0000-054000000000'
GW = '00000000-0000-0000-0000-055000000000'
GY = '00000000-0000-0000-0000-056000000000'
HK = '00000000-0000-0000-0000-057000000000'
HN = '00000000-0000-0000-0000-058000000000'
HR = '00000000-0000-0000-0000-059000000000'
HT = '00000000-0000-0000-0000-05a000000000'
HU = '00000000-0000-0000-0000-05b000000000'
ID = '00000000-0000-0000-0000-05c000000000'
IE = '00000000-0000-0000-0000-05d000000000'
IL = '00000000-0000-0000-0000-05e000000000'
IM = '00000000-0000-0000-0000-05f000000000'
IN = '00000000-0000-0000-0000-060000000000'
IO = '00000000-0000-0000-0000-061000000000'
IQ = '00000000-0000-0000-0000-062000000000'
IR = '00000000-0000-0000-0000-063000000000'
IS = '00000000-0000-0000-0000-064000000000'
IT = '00000000-0000-0000-0000-065000000000'
JE = '00000000-0000-0000-0000-066000000000'
JM = '00000000-0000-0000-0000-067000000000'
JO = '00000000-0000-0000-0000-068000000000'
JP = '00000000-0000-0000-0000-069000000000'
KE = '00000000-0000-0000-0000-06a000000000'
KG = '00000000-0000-0000-0000-06b000000000'
KH = '00000000-0000-0000-0000-06c000000000'
KI = '00000000-0000-0000-0000-06d000000000'
KM = '00000000-0000-0000-0000-06e000000000'
KN = '00000000-0000-0000-0000-06f000000000'
KP = '00000000-0000-0000-0000-070000000000'
KR = '00000000-0000-0000-0000-071000000000'
KW = '00000000-0000-0000-0000-072000000000'
KY = '00000000-0000-0000-0000-073000000000'
KZ = '00000000-0000-0000-0000-074000000000'
LA = '00000000-0000-0000-0000-075000000000'
LB = '00000000-0000-0000-0000-076000000000'
LC = '00000000-0000-0000-0000-077000000000'
LI = '00000000-0000-0000-0000-078000000000'
LK = '00000000-0000-0000-0000-079000000000'
LR = '00000000-0000-0000-0000-07a000000000'
LS = '00000000-0000-0000-0000-07b000000000'
LT = '00000000-0000-0000-0000-07c000000000'
LU = '00000000-0000-0000-0000-07d000000000'
LV = '00000000-0000-0000-0000-07e000000000'
LY = '00000000-0000-0000-0000-07f000000000'
MA = '00000000-0000-0000-0000-080000000000'
MC = '00000000-0000-0000-0000-081000000000'
MD = '00000000-0000-0000-0000-082000000000'
ME = '00000000-0000-0000-0000-083000000000'
MG = '00000000-0000-0000-0000-084000000000'
MH = '00000000-0000-0000-0000-085000000000'
MK = '00000000-0000-0000-0000-086000000000'
ML = '00000000-0000-0000-0000-087000000000'
MM = '00000000-0000-0000-0000-088000000000'
MN = '00000000-0000-0000-0000-089000000000'
MO = '00000000-0000-0000-0000-08a000000000'
MP = '00000000-0000-0000-0000-08b000000000'
MQ = '00000000-0000-0000-0000-08c000000000'
MR = '00000000-0000-0000-0000-08d000000000'
MS = '00000000-0000-0000-0000-08e000000000'
MT = '00000000-0000-0000-0000-08f000000000'
MU = '00000000-0000-0000-0000-090000000000'
MV = '00000000-0000-0000-0000-091000000000'
MW = '00000000-0000-0000-0000-092000000000'
MX = '00000000-0000-0000-0000-093000000000'
MY = '00000000-0000-0000-0000-094000000000'
MZ = '00000000-0000-0000-0000-095000000000'
NA = '00000000-0000-0000-0000-096000000000'
NE = '00000000-0000-0000-0000-097000000000'
NG = '00000000-0000-0000-0000-098000000000'
NI = '00000000-0000-0000-0000-099000000000'
NL = '00000000-0000-0000-0000-09a000000000'
NO = '00000000-0000-0000-0000-09b000000000'
NP = '00000000-0000-0000-0000-09c000000000'
NR = '00000000-0000-0000-0000-09d000000000'
NU = '00000000-0000-0000-0000-09e000000000'
NZ = '00000000-0000-0000-0000-09f000000000'
OM = '00000000-0000-0000-0000-0a0000000000'
PA = '00000000-0000-0000-0000-0a1000000000'
PE = '00000000-0000-0000-0000-0a2000000000'
PG = '00000000-0000-0000-0000-0a3000000000'
PH = '00000000-0000-0000-0000-0a4000000000'
PK = '00000000-0000-0000-0000-0a5000000000'
PL = '00000000-0000-0000-0000-0a6000000000'
PM = '00000000-0000-0000-0000-0a7000000000'
PN = '00000000-0000-0000-0000-0a8000000000'
PR = '00000000-0000-0000-0000-0a9000000000'
PS = '00000000-0000-0000-0000-0aa000000000'
PT = '00000000-0000-0000-0000-0ab000000000'
PW = '00000000-0000-0000-0000-0ac000000000'
PY = '00000000-0000-0000-0000-0ad000000000'
QA = '00000000-0000-0000-0000-0ae000000000'
RE = '00000000-0000-0000-0000-0af000000000'
RO = '00000000-0000-0000-0000-0b0000000000'
RS = '00000000-0000-0000-0000-0b1000000000'
RU = '00000000-0000-0000-0000-0b2000000000'
RW = '00000000-0000-0000-0000-0b3000000000'
SA = '00000000-0000-0000-0000-0b4000000000'
SB = '00000000-0000-0000-0000-0b5000000000'
SC = '00000000-0000-0000-0000-0b6000000000'
SD = '00000000-0000-0000-0000-0b7000000000'
SE = '00000000-0000-0000-0000-0b8000000000'
SG = '00000000-0000-0000-0000-0b9000000000'
SH = '00000000-0000-0000-0000-0ba000000000'
SI = '00000000-0000-0000-0000-0bb000000000'
SK = '00000000-0000-0000-0000-0bc000000000'
SL = '00000000-0000-0000-0000-0bd000000000'
SM = '00000000-0000-0000-0000-0be000000000'
SN = '00000000-0000-0000-0000-0bf000000000'
SO = '00000000-0000-0000-0000-0c0000000000'
SR = '00000000-0000-0000-0000-0c1000000000'
SS = '00000000-0000-0000-0000-0c2000000000'
ST = '00000000-0000-0000-0000-0c3000000000'
SV = '00000000-0000-0000-0000-0c4000000000'
SY = '00000000-0000-0000-0000-0c5000000000'
SZ = '00000000-0000-0000-0000-0c6000000000'
TC = '00000000-0000-0000-0000-0c7000000000'
TD = '00000000-0000-0000-0000-0c8000000000'
TF = '00000000-0000-0000-0000-0c9000000000'
TG = '00000000-0000-0000-0000-0ca000000000'
TH = '00000000-0000-0000-0000-0cb000000000'
TJ = '00000000-0000-0000-0000-0cc000000000'
TK = '00000000-0000-0000-0000-0cd000000000'
TL = '00000000-0000-0000-0000-0ce000000000'
TM = '00000000-0000-0000-0000-0cf000000000'
TN = '00000000-0000-0000-0000-0d0000000000'
TO = '00000000-0000-0000-0000-0d1000000000'
TR = '00000000-0000-0000-0000-0d2000000000'
TT = '00000000-0000-0000-0000-0d3000000000'
TV = '00000000-0000-0000-0000-0d4000000000'
TW = '00000000-0000-0000-0000-0d5000000000'
TZ = '00000000-0000-0000-0000-0d6000000000'
UA = '00000000-0000-0000-0000-0d7000000000'
UG = '00000000-0000-0000-0000-0d8000000000'
UM = '00000000-0000-0000-0000-0d9000000000'
US = '00000000-0000-0000-0000-0da000000000'
UY = '00000000-0000-0000-0000-0db000000000'
UZ = '00000000-0000-0000-0000-0dc000000000'
VA = '00000000-0000-0000-0000-0dd000000000'
VC = '00000000-0000-0000-0000-0de000000000'
VE = '00000000-0000-0000-0000-0df000000000'
VG = '00000000-0000-0000-0000-0e0000000000'
VI = '00000000-0000-0000-0000-0e1000000000'
VN = '00000000-0000-0000-0000-0e2000000000'
VU = '00000000-0000-0000-0000-0e3000000000'
WF = '00000000-0000-0000-0000-0e4000000000'
WS = '00000000-0000-0000-0000-0e5000000000'
YE = '00000000-0000-0000-0000-0e6000000000'
YT = '00000000-0000-0000-0000-0e7000000000'
ZA = '00000000-0000-0000-0000-0e8000000000'
ZM = '00000000-0000-0000-0000-0e9000000000'
ZW = '00000000-0000-0000-0000-0ea000000000'
class ADRegion(Enum):
AD_06 = '00000000-0000-0000-0000-001001000000'
AD_05 = '00000000-0000-0000-0000-001002000000'
AD_04 = '00000000-0000-0000-0000-001003000000'
AD_03 = '00000000-0000-0000-0000-001004000000'
AD_02 = '00000000-0000-0000-0000-001005000000'
AD_07 = '00000000-0000-0000-0000-001006000000'
AD_08 = '00000000-0000-0000-0000-001007000000'
class AERegion(Enum):
AE_UQ = '00000000-0000-0000-0000-002001000000'
AE_RK = '00000000-0000-0000-0000-002002000000'
AE_DU = '00000000-0000-0000-0000-002003000000'
AE_SH = '00000000-0000-0000-0000-002004000000'
AE_FU = '00000000-0000-0000-0000-002005000000'
AE_AJ = '00000000-0000-0000-0000-002006000000'
AE_AZ = '00000000-0000-0000-0000-002007000000'
class AFRegion(Enum):
AF_ZAB = '00000000-0000-0000-0000-003001000000'
AF_WAR = '00000000-0000-0000-0000-003002000000'
AF_TAK = '00000000-0000-0000-0000-003003000000'
AF_SAR = '00000000-0000-0000-0000-003004000000'
AF_SAM = '00000000-0000-0000-0000-003005000000'
AF_PAR = '00000000-0000-0000-0000-003006000000'
AF_PKA = '00000000-0000-0000-0000-003007000000'
AF_PIA = '00000000-0000-0000-0000-003008000000'
AF_ORU = '00000000-0000-0000-0000-003009000000'
AF_URU = '00000000-0000-0000-0000-00300a000000'
AF_NIM = '00000000-0000-0000-0000-00300b000000'
AF_NAN = '00000000-0000-0000-0000-00300c000000'
AF_LOG = '00000000-0000-0000-0000-00300d000000'
AF_LAG = '00000000-0000-0000-0000-00300e000000'
AF_KDZ = '00000000-0000-0000-0000-00300f000000'
AF_KNR = '00000000-0000-0000-0000-003010000000'
AF_KAP = '00000000-0000-0000-0000-003011000000'
AF_KAN = '00000000-0000-0000-0000-003012000000'
AF_KAB = '00000000-0000-0000-0000-003013000000'
AF_JOW = '00000000-0000-0000-0000-003014000000'
AF_HER = '00000000-0000-0000-0000-003015000000'
AF_HEL = '00000000-0000-0000-0000-003016000000'
AF_GHO = '00000000-0000-0000-0000-003017000000'
AF_GHA = '00000000-0000-0000-0000-003018000000'
AF_FYB = '00000000-0000-0000-0000-003019000000'
AF_FRA = '00000000-0000-0000-0000-00301a000000'
AF_BAM = '00000000-0000-0000-0000-00301b000000'
AF_BAL = '00000000-0000-0000-0000-00301c000000'
AF_BGL = '00000000-0000-0000-0000-00301d000000'
AF_BDG = '00000000-0000-0000-0000-00301e000000'
AF_BDS = '00000000-0000-0000-0000-00301f000000'
AF_KHO = '00000000-0000-0000-0000-003020000000'
AF_NUR = '00000000-0000-0000-0000-003021000000'
AF_DAY = '00000000-0000-0000-0000-003022000000'
AF_PAN = '00000000-0000-0000-0000-003023000000'
class AGRegion(Enum):
AG_08 = '00000000-0000-0000-0000-004001000000'
AG_07 = '00000000-0000-0000-0000-004002000000'
AG_06 = '00000000-0000-0000-0000-004003000000'
AG_05 = '00000000-0000-0000-0000-004004000000'
AG_04 = '00000000-0000-0000-0000-004005000000'
AG_03 = '00000000-0000-0000-0000-004006000000'
AG_11 = '00000000-0000-0000-0000-004007000000'
AG_10 = '00000000-0000-0000-0000-004008000000'
class ALRegion(Enum):
AL_BR = '00000000-0000-0000-0000-006001000000'
AL_DI = '00000000-0000-0000-0000-006002000000'
AL_EL = '00000000-0000-0000-0000-006003000000'
AL_GJ = '00000000-0000-0000-0000-006004000000'
AL_06 = '00000000-0000-0000-0000-006005000000'
AL_07 = '00000000-0000-0000-0000-006006000000'
AL_02 = '00000000-0000-0000-0000-006007000000'
AL_04 = '00000000-0000-0000-0000-006008000000'
AL_LE = '00000000-0000-0000-0000-006009000000'
AL_10 = '00000000-0000-0000-0000-00600a000000'
AL_11 = '00000000-0000-0000-0000-00600b000000'
AL_VL = '00000000-0000-0000-0000-00600c000000'
class AMRegion(Enum):
AM_AR = '00000000-0000-0000-0000-007001000000'
AM_SU = '00000000-0000-0000-0000-007002000000'
AM_VD = '00000000-0000-0000-0000-007003000000'
AM_ER = '00000000-0000-0000-0000-007004000000'
AM_AG = '00000000-0000-0000-0000-007005000000'
AM_AV = '00000000-0000-0000-0000-007006000000'
AM_GR = '00000000-0000-0000-0000-007007000000'
AM_KT = '00000000-0000-0000-0000-007008000000'
AM_LO = '00000000-0000-0000-0000-007009000000'
AM_SH = '00000000-0000-0000-0000-00700a000000'
AM_TV = '00000000-0000-0000-0000-00700b000000'
class AORegion(Enum):
AO_LSU = '00000000-0000-0000-0000-008001000000'
AO_LNO = '00000000-0000-0000-0000-008002000000'
AO_MOX = '00000000-0000-0000-0000-008003000000'
AO_CCU = '00000000-0000-0000-0000-008004000000'
AO_ZAI = '00000000-0000-0000-0000-008005000000'
AO_UIG = '00000000-0000-0000-0000-008006000000'
AO_MAL = '00000000-0000-0000-0000-008007000000'
AO_LUA = '00000000-0000-0000-0000-008008000000'
AO_CNO = '00000000-0000-0000-0000-008009000000'
AO_CAB = '00000000-0000-0000-0000-00800a000000'
AO_BGO = '00000000-0000-0000-0000-00800b000000'
AO_NAM = '00000000-0000-0000-0000-00800c000000'
AO_HUI = '00000000-0000-0000-0000-00800d000000'
AO_HUA = '00000000-0000-0000-0000-00800e000000'
AO_CNN = '00000000-0000-0000-0000-00800f000000'
AO_CUS = '00000000-0000-0000-0000-008010000000'
AO_BIE = '00000000-0000-0000-0000-008011000000'
AO_BGU = '00000000-0000-0000-0000-008012000000'
class ARRegion(Enum):
AR_N = '00000000-0000-0000-0000-00a001000000'
AR_P = '00000000-0000-0000-0000-00a002000000'
AR_C = '00000000-0000-0000-0000-00a003000000'
AR_E = '00000000-0000-0000-0000-00a004000000'
AR_W = '00000000-0000-0000-0000-00a005000000'
AR_B = '00000000-0000-0000-0000-00a006000000'
AR_T = '00000000-0000-0000-0000-00a007000000'
AR_V = '00000000-0000-0000-0000-00a008000000'
AR_G = '00000000-0000-0000-0000-00a009000000'
AR_S = '00000000-0000-0000-0000-00a00a000000'
AR_Z = '00000000-0000-0000-0000-00a00b000000'
AR_D = '00000000-0000-0000-0000-00a00c000000'
AR_J = '00000000-0000-0000-0000-00a00d000000'
AR_A = '00000000-0000-0000-0000-00a00e000000'
AR_R = '00000000-0000-0000-0000-00a00f000000'
AR_Q = '00000000-0000-0000-0000-00a010000000'
AR_M = '00000000-0000-0000-0000-00a011000000'
AR_F = '00000000-0000-0000-0000-00a012000000'
AR_L = '00000000-0000-0000-0000-00a013000000'
AR_Y = '00000000-0000-0000-0000-00a014000000'
AR_X = '00000000-0000-0000-0000-00a015000000'
AR_U = '00000000-0000-0000-0000-00a016000000'
AR_H = '00000000-0000-0000-0000-00a017000000'
AR_K = '00000000-0000-0000-0000-00a018000000'
class ASRegion(Enum):
AS_W = '00000000-0000-0000-0000-00b001000000'
AS_E = '00000000-0000-0000-0000-00b003000000'
AS_M = '00000000-0000-0000-0000-00b004000000'
class ATRegion(Enum):
AT_9 = '00000000-0000-0000-0000-00c001000000'
AT_8 = '00000000-0000-0000-0000-00c002000000'
AT_7 = '00000000-0000-0000-0000-00c003000000'
AT_6 = '00000000-0000-0000-0000-00c004000000'
AT_5 = '00000000-0000-0000-0000-00c005000000'
AT_4 = '00000000-0000-0000-0000-00c006000000'
AT_3 = '00000000-0000-0000-0000-00c007000000'
AT_2 = '00000000-0000-0000-0000-00c008000000'
AT_1 = '00000000-0000-0000-0000-00c009000000'
class AURegion(Enum):
AU_WA = '00000000-0000-0000-0000-00d001000000'
AU_SA = '00000000-0000-0000-0000-00d002000000'
AU_NT = '00000000-0000-0000-0000-00d003000000'
AU_VIC = '00000000-0000-0000-0000-00d004000000'
AU_TAS = '00000000-0000-0000-0000-00d005000000'
AU_QLD = '00000000-0000-0000-0000-00d006000000'
AU_NSW = '00000000-0000-0000-0000-00d007000000'
AU_ACT = '00000000-0000-0000-0000-00d008000000'
class AZRegion(Enum):
AZ_BEY = '00000000-0000-0000-0000-00e001000000'
AZ_ZAN = '00000000-0000-0000-0000-00e002000000'
AZ_YAR = '00000000-0000-0000-0000-00e003000000'
AZ_SUS = '00000000-0000-0000-0000-00e004000000'
AZ_SAL = '00000000-0000-0000-0000-00e005000000'
AZ_SAB = '00000000-0000-0000-0000-00e006000000'
AZ_SAT = '00000000-0000-0000-0000-00e007000000'
AZ_BIL = '00000000-0000-0000-0000-00e008000000'
AZ_NEF = '00000000-0000-0000-0000-00e009000000'
AZ_NX = '00000000-0000-0000-0000-00e00a000000'
AZ_MAS = '00000000-0000-0000-0000-00e00b000000'
AZ_LER = '00000000-0000-0000-0000-00e00c000000'
AZ_LA = '00000000-0000-0000-0000-00e00d000000'
AZ_LAC = '00000000-0000-0000-0000-00e00e000000'
AZ_QBI = '00000000-0000-0000-0000-00e00f000000'
AZ_IMI = '00000000-0000-0000-0000-00e010000000'
AZ_FUZ = '00000000-0000-0000-0000-00e011000000'
AZ_CAB = '00000000-0000-0000-0000-00e012000000'
AZ_CAL = '00000000-0000-0000-0000-00e013000000'
AZ_AST = '00000000-0000-0000-0000-00e014000000'
AZ_XCI = '00000000-0000-0000-0000-00e015000000'
AZ_AGC = '00000000-0000-0000-0000-00e016000000'
AZ_AGM = '00000000-0000-0000-0000-00e017000000'
AZ_SR = '00000000-0000-0000-0000-00e018000000'
AZ_LAN = '00000000-0000-0000-0000-00e019000000'
AZ_SUS1 = '00000000-0000-0000-0000-00e01a000000'
AZ_TAR = '00000000-0000-0000-0000-00e01b000000'
AZ_XA = '00000000-0000-0000-0000-00e01c000000'
AZ_XVD = '00000000-0000-0000-0000-00e01d000000'
AZ_ZAR = '00000000-0000-0000-0000-00e01e000000'
AZ_ZAQ = '00000000-0000-0000-0000-00e01f000000'
AZ_YEV = '00000000-0000-0000-0000-00e020000000'
AZ_OGU = '00000000-0000-0000-0000-00e021000000'
AZ_UCA = '00000000-0000-0000-0000-00e022000000'
AZ_TOV = '00000000-0000-0000-0000-00e023000000'
AZ_SMI = '00000000-0000-0000-0000-00e024000000'
AZ_SA = '00000000-0000-0000-0000-00e025000000'
AZ_SKR = '00000000-0000-0000-0000-00e026000000'
AZ_KUR = '00000000-0000-0000-0000-00e027000000'
AZ_QAB = '00000000-0000-0000-0000-00e028000000'
AZ_QUS = '00000000-0000-0000-0000-00e029000000'
AZ_QBA = '00000000-0000-0000-0000-00e02a000000'
AZ_GYG = '00000000-0000-0000-0000-00e02b000000'
AZ_XAC = '00000000-0000-0000-0000-00e02c000000'
AZ_KAL = '00000000-0000-0000-0000-00e02d000000'
AZ_QAZ = '00000000-0000-0000-0000-00e02e000000'
AZ_GOR = '00000000-0000-0000-0000-00e02f000000'
AZ_QAX = '00000000-0000-0000-0000-00e030000000'
AZ_ISM = '00000000-0000-0000-0000-00e031000000'
AZ_GOY = '00000000-0000-0000-0000-00e032000000'
AZ_SBN = '00000000-0000-0000-0000-00e033000000'
AZ_DAS = '00000000-0000-0000-0000-00e034000000'
AZ_BAL = '00000000-0000-0000-0000-00e035000000'
AZ_BAR = '00000000-0000-0000-0000-00e036000000'
AZ_BA = '00000000-0000-0000-0000-00e037000000'
AZ_ABS = '00000000-0000-0000-0000-00e038000000'
AZ_AGU = '00000000-0000-0000-0000-00e039000000'
AZ_AGS = '00000000-0000-0000-0000-00e03a000000'
AZ_GAD = '00000000-0000-0000-0000-00e03b000000'
AZ_AGA = '00000000-0000-0000-0000-00e03c000000'
AZ_GA = '00000000-0000-0000-0000-00e03d000000'
AZ_MI = '00000000-0000-0000-0000-00e03e000000'
AZ_NA = '00000000-0000-0000-0000-00e03f000000'
AZ_QOB = '00000000-0000-0000-0000-00e040000000'
AZ_SMX = '00000000-0000-0000-0000-00e041000000'
AZ_SAK = '00000000-0000-0000-0000-00e042000000'
AZ_SIY = '00000000-0000-0000-0000-00e043000000'
AZ_SM = '00000000-0000-0000-0000-00e044000000'
AZ_XIZ = '00000000-0000-0000-0000-00e045000000'
AZ_YE = '00000000-0000-0000-0000-00e046000000'
AZ_HAC = '00000000-0000-0000-0000-00e047000000'
AZ_NV = '00000000-0000-0000-0000-00e048000000'
class BARegion(Enum):
BA_BIH = '00000000-0000-0000-0000-00f001000000'
BA_SRP = '00000000-0000-0000-0000-00f002000000'
BA_BRC = '00000000-0000-0000-0000-00f003000000'
class BBRegion(Enum):
BB_11 = '00000000-0000-0000-0000-010001000000'
BB_10 = '00000000-0000-0000-0000-010002000000'
BB_09 = '00000000-0000-0000-0000-010003000000'
BB_08 = '00000000-0000-0000-0000-010004000000'
BB_07 = '00000000-0000-0000-0000-010005000000'
BB_06 = '00000000-0000-0000-0000-010006000000'
BB_05 = '00000000-0000-0000-0000-010007000000'
BB_04 = '00000000-0000-0000-0000-010008000000'
BB_03 = '00000000-0000-0000-0000-010009000000'
BB_02 = '00000000-0000-0000-0000-01000a000000'
BB_01 = '00000000-0000-0000-0000-01000b000000'
class BDRegion(Enum):
BD_E = '00000000-0000-0000-0000-011001000000'
BD_C = '00000000-0000-0000-0000-011002000000'
BD_B = '00000000-0000-0000-0000-011003000000'
BD_D = '00000000-0000-0000-0000-011004000000'
BD_A = '00000000-0000-0000-0000-011005000000'
BD_G = '00000000-0000-0000-0000-011006000000'
BD_F = '00000000-0000-0000-0000-011007000000'
BD_H = '00000000-0000-0000-0000-011008000000'
class BERegion(Enum):
BE_BRU = '00000000-0000-0000-0000-012001000000'
BE_WAL = '00000000-0000-0000-0000-012002000000'
BE_VLG = '00000000-0000-0000-0000-012003000000'
class BFRegion(Enum):
BF_01 = '00000000-0000-0000-0000-013001000000'
BF_02 = '00000000-0000-0000-0000-013002000000'
BF_03 = '00000000-0000-0000-0000-013003000000'
BF_04 = '00000000-0000-0000-0000-013004000000'
BF_05 = '00000000-0000-0000-0000-013005000000'
BF_06 = '00000000-0000-0000-0000-013006000000'
BF_07 = '00000000-0000-0000-0000-013007000000'
BF_08 = '00000000-0000-0000-0000-013008000000'
BF_09 = '00000000-0000-0000-0000-013009000000'
BF_10 = '00000000-0000-0000-0000-01300a000000'
BF_11 = '00000000-0000-0000-0000-01300b000000'
BF_12 = '00000000-0000-0000-0000-01300c000000'
BF_13 = '00000000-0000-0000-0000-01300d000000'
class BGRegion(Enum):
BG_17 = '00000000-0000-0000-0000-014001000000'
BG_12 = '00000000-0000-0000-0000-014002000000'
BG_06 = '00000000-0000-0000-0000-014003000000'
BG_03 = '00000000-0000-0000-0000-014004000000'
BG_08 = '00000000-0000-0000-0000-014005000000'
BG_23 = '00000000-0000-0000-0000-014006000000'
BG_18 = '00000000-0000-0000-0000-014007000000'
BG_16 = '00000000-0000-0000-0000-014008000000'
BG_15 = '00000000-0000-0000-0000-014009000000'
BG_14 = '00000000-0000-0000-0000-01400a000000'
BG_13 = '00000000-0000-0000-0000-01400b000000'
BG_11 = '00000000-0000-0000-0000-01400c000000'
BG_26 = '00000000-0000-0000-0000-01400d000000'
BG_22 = '00000000-0000-0000-0000-01400e000000'
BG_02 = '00000000-0000-0000-0000-01400f000000'
BG_01 = '00000000-0000-0000-0000-014010000000'
BG_07 = '00000000-0000-0000-0000-014011000000'
BG_09 = '00000000-0000-0000-0000-014012000000'
BG_10 = '00000000-0000-0000-0000-014013000000'
BG_27 = '00000000-0000-0000-0000-014014000000'
BG_19 = '00000000-0000-0000-0000-014015000000'
BG_20 = '00000000-0000-0000-0000-014016000000'
BG_21 = '00000000-0000-0000-0000-014017000000'
BG_24 = '00000000-0000-0000-0000-014018000000'
BG_25 = '00000000-0000-0000-0000-014019000000'
BG_04 = '00000000-0000-0000-0000-01401a000000'
BG_05 = '00000000-0000-0000-0000-01401b000000'
BG_28 = '00000000-0000-0000-0000-01401c000000'
class BHRegion(Enum):
BH_15 = '00000000-0000-0000-0000-015001000000'
BH_13 = '00000000-0000-0000-0000-015002000000'
BH_17 = '00000000-0000-0000-0000-015003000000'
BH_19 = '00000000-0000-0000-0000-015004000000'
class BIRegion(Enum):
BI_MA = '00000000-0000-0000-0000-016001000000'
BI_BR = '00000000-0000-0000-0000-016002000000'
BI_MU = '00000000-0000-0000-0000-016003000000'
BI_GI = '00000000-0000-0000-0000-016004000000'
BI_RY = '00000000-0000-0000-0000-016005000000'
BI_CA = '00000000-0000-0000-0000-016006000000'
BI_KR = '00000000-0000-0000-0000-016007000000'
BI_BB = '00000000-0000-0000-0000-016008000000'
BI_CI = '00000000-0000-0000-0000-016009000000'
BI_NG = '00000000-0000-0000-0000-01600a000000'
BI_KY = '00000000-0000-0000-0000-01600b000000'
BI_MY = '00000000-0000-0000-0000-01600c000000'
BI_KI = '00000000-0000-0000-0000-01600d000000'
BI_RT = '00000000-0000-0000-0000-01600e000000'
BI_MW = '00000000-0000-0000-0000-01600f000000'
BI_BM = '00000000-0000-0000-0000-016010000000'
BI_BL = '00000000-0000-0000-0000-016011000000'
BI_RM = '00000000-0000-0000-0000-016012000000'
class BJRegion(Enum):
BJ_ZO = '00000000-0000-0000-0000-017001000000'
BJ_OU = '00000000-0000-0000-0000-017002000000'
BJ_MO = '00000000-0000-0000-0000-017003000000'
BJ_BO = '00000000-0000-0000-0000-017004000000'
BJ_AQ = '00000000-0000-0000-0000-017005000000'
BJ_AK = '00000000-0000-0000-0000-017006000000'
BJ_AL = '00000000-0000-0000-0000-017007000000'
BJ_CO = '00000000-0000-0000-0000-017008000000'
BJ_KO = '00000000-0000-0000-0000-017009000000'
BJ_DO = '00000000-0000-0000-0000-01700a000000'
BJ_LI = '00000000-0000-0000-0000-01700b000000'
BJ_PL = '00000000-0000-0000-0000-01700c000000'
class BMRegion(Enum):
BM_WA = '00000000-0000-0000-0000-018001000000'
BM_SH = '00000000-0000-0000-0000-018002000000'
BM_SM = '00000000-0000-0000-0000-018003000000'
BM_SA = '00000000-0000-0000-0000-018004000000'
BM_SG = '00000000-0000-0000-0000-018005000000'
BM_SGE = '00000000-0000-0000-0000-018006000000'
BM_PEM = '00000000-0000-0000-0000-018007000000'
BM_PG = '00000000-0000-0000-0000-018008000000'
BM_HA = '00000000-0000-0000-0000-018009000000'
BM_HAM = '00000000-0000-0000-0000-01800a000000'
BM_DS = '00000000-0000-0000-0000-01800b000000'
class BNRegion(Enum):
BN_TU = '00000000-0000-0000-0000-019001000000'
BN_TE = '00000000-0000-0000-0000-019002000000'
BN_BM = '00000000-0000-0000-0000-019003000000'
BN_BE = '00000000-0000-0000-0000-019004000000'
class BORegion(Enum):
BO_T = '00000000-0000-0000-0000-01a001000000'
BO_S = '00000000-0000-0000-0000-01a002000000'
BO_P = '00000000-0000-0000-0000-01a003000000'
BO_N = '00000000-0000-0000-0000-01a004000000'
BO_O = '00000000-0000-0000-0000-01a005000000'
BO_L = '00000000-0000-0000-0000-01a006000000'
BO_C = '00000000-0000-0000-0000-01a007000000'
BO_H = '00000000-0000-0000-0000-01a008000000'
BO_B = '00000000-0000-0000-0000-01a009000000'
class BQRegion(Enum):
BQ_BO = '00000000-0000-0000-0000-01b001000000'
BQ_SA = '00000000-0000-0000-0000-01b002000000'
BQ_SE = '00000000-0000-0000-0000-01b003000000'
class BRRegion(Enum):
BR_RN = '00000000-0000-0000-0000-01c001000000'
BR_PI = '00000000-0000-0000-0000-01c002000000'
BR_PE = '00000000-0000-0000-0000-01c003000000'
BR_PB = '00000000-0000-0000-0000-01c004000000'
BR_PA = '00000000-0000-0000-0000-01c005000000'
BR_MA = '00000000-0000-0000-0000-01c006000000'
BR_CE = '00000000-0000-0000-0000-01c007000000'
BR_AP = '00000000-0000-0000-0000-01c008000000'
BR_AL = '00000000-0000-0000-0000-01c009000000'
BR_SE = '00000000-0000-0000-0000-01c00a000000'
BR_SP = '00000000-0000-0000-0000-01c00b000000'
BR_SC = '00000000-0000-0000-0000-01c00c000000'
BR_RS = '00000000-0000-0000-0000-01c00d000000'
BR_RJ = '00000000-0000-0000-0000-01c00e000000'
BR_PR = '00000000-0000-0000-0000-01c00f000000'
BR_MG = '00000000-0000-0000-0000-01c010000000'
BR_MS = '00000000-0000-0000-0000-01c011000000'
BR_MT = '00000000-0000-0000-0000-01c012000000'
BR_GO = '00000000-0000-0000-0000-01c013000000'
BR_DF = '00000000-0000-0000-0000-01c014000000'
BR_ES = '00000000-0000-0000-0000-01c015000000'
BR_BA = '00000000-0000-0000-0000-01c016000000'
BR_TO = '00000000-0000-0000-0000-01c017000000'
BR_RR = '00000000-0000-0000-0000-01c018000000'
BR_AM = '00000000-0000-0000-0000-01c019000000'
BR_AC = '00000000-0000-0000-0000-01c01a000000'
BR_RO = '00000000-0000-0000-0000-01c01b000000'
class BSRegion(Enum):
BS_SS = '00000000-0000-0000-0000-01d001000000'
BS_RI = '00000000-0000-0000-0000-01d002000000'
BS_BY = '00000000-0000-0000-0000-01d003000000'
BS_NP = '00000000-0000-0000-0000-01d004000000'
BS_MG = '00000000-0000-0000-0000-01d005000000'
BS_LI = '00000000-0000-0000-0000-01d006000000'
BS_IN = '00000000-0000-0000-0000-01d007000000'
BS_HI = '00000000-0000-0000-0000-01d008000000'
BS_FP = '00000000-0000-0000-0000-01d009000000'
BS_EX = '00000000-0000-0000-0000-01d00a000000'
BS_CI = '00000000-0000-0000-0000-01d00b000000'
BS_BI = '00000000-0000-0000-0000-01d00c000000'
BS_AK = '00000000-0000-0000-0000-01d00d000000'
BS_BP = '00000000-0000-0000-0000-01d00e000000'
BS_CO = '00000000-0000-0000-0000-01d00f000000'
BS_CS = '00000000-0000-0000-0000-01d010000000'
BS_CE = '00000000-0000-0000-0000-01d011000000'
BS_CK = '00000000-0000-0000-0000-01d012000000'
BS_EG = '00000000-0000-0000-0000-01d013000000'
BS_GC = '00000000-0000-0000-0000-01d014000000'
BS_HT = '00000000-0000-0000-0000-01d015000000'
BS_MC = '00000000-0000-0000-0000-01d016000000'
BS_MI = '00000000-0000-0000-0000-01d017000000'
BS_NO = '00000000-0000-0000-0000-01d018000000'
BS_NS = '00000000-0000-0000-0000-01d019000000'
BS_NE = '00000000-0000-0000-0000-01d01a000000'
BS_RC = '00000000-0000-0000-0000-01d01b000000'
BS_SO = '00000000-0000-0000-0000-01d01c000000'
BS_SA = '00000000-0000-0000-0000-01d01d000000'
BS_SE = '00000000-0000-0000-0000-01d01e000000'
BS_SW = '00000000-0000-0000-0000-01d01f000000'
BS_WG = '00000000-0000-0000-0000-01d020000000'
class BTRegion(Enum):
BT_33 = '00000000-0000-0000-0000-01e001000000'
BT_12 = '00000000-0000-0000-0000-01e002000000'
BT_22 = '00000000-0000-0000-0000-01e003000000'
BT_21 = '00000000-0000-0000-0000-01e004000000'
BT_31 = '00000000-0000-0000-0000-01e005000000'
BT_13 = '00000000-0000-0000-0000-01e006000000'
BT_44 = '00000000-0000-0000-0000-01e007000000'
BT_42 = '00000000-0000-0000-0000-01e008000000'
BT_11 = '00000000-0000-0000-0000-01e009000000'
BT_43 = '00000000-0000-0000-0000-01e00a000000'
BT_23 = '00000000-0000-0000-0000-01e00b000000'
BT_14 = '00000000-0000-0000-0000-01e00c000000'
BT_45 = '00000000-0000-0000-0000-01e00d000000'
BT_34 = '00000000-0000-0000-0000-01e00e000000'
BT_41 = '00000000-0000-0000-0000-01e00f000000'
BT_15 = '00000000-0000-0000-0000-01e010000000'
BT_32 = '00000000-0000-0000-0000-01e011000000'
BT_24 = '00000000-0000-0000-0000-01e012000000'
BT_GA = '00000000-0000-0000-0000-01e013000000'
BT_TY = '00000000-0000-0000-0000-01e014000000'
class BWRegion(Enum):
BW_SO = '00000000-0000-0000-0000-01f001000000'
BW_SE = '00000000-0000-0000-0000-01f002000000'
BW_NE = '00000000-0000-0000-0000-01f003000000'
BW_NW = '00000000-0000-0000-0000-01f004000000'
BW_KW = '00000000-0000-0000-0000-01f005000000'
BW_KL = '00000000-0000-0000-0000-01f006000000'
BW_KG = '00000000-0000-0000-0000-01f007000000'
BW_GH = '00000000-0000-0000-0000-01f008000000'
BW_CE = '00000000-0000-0000-0000-01f009000000'
class BYRegion(Enum):
BY_VI = '00000000-0000-0000-0000-020001000000'
BY_MA = '00000000-0000-0000-0000-020002000000'
BY_MI = '00000000-0000-0000-0000-020003000000'
BY_HM = '00000000-0000-0000-0000-020004000000'
BY_HR = '00000000-0000-0000-0000-020005000000'
BY_HO = '00000000-0000-0000-0000-020006000000'
BY_BR = '00000000-0000-0000-0000-020007000000'
class BZRegion(Enum):
BZ_TOL = '00000000-0000-0000-0000-021001000000'
BZ_SC = '00000000-0000-0000-0000-021002000000'
BZ_OW = '00000000-0000-0000-0000-021003000000'
BZ_CZL = '00000000-0000-0000-0000-021004000000'
BZ_CY = '00000000-0000-0000-0000-021005000000'
BZ_BZ = '00000000-0000-0000-0000-021006000000'
class CARegion(Enum):
CA_AB = '00000000-0000-0000-0000-022001000000'
CA_BC = '00000000-0000-0000-0000-022002000000'
CA_MB = '00000000-0000-0000-0000-022003000000'
CA_NB = '00000000-0000-0000-0000-022004000000'
CA_NT = '00000000-0000-0000-0000-022005000000'
CA_NS = '00000000-0000-0000-0000-022006000000'
CA_NU = '00000000-0000-0000-0000-022007000000'
CA_ON = '00000000-0000-0000-0000-022008000000'
CA_PE = '00000000-0000-0000-0000-022009000000'
CA_QC = '00000000-0000-0000-0000-02200a000000'
CA_SK = '00000000-0000-0000-0000-02200b000000'
CA_YT = '00000000-0000-0000-0000-02200c000000'
CA_NL = '00000000-0000-0000-0000-02200d000000'
class CDRegion(Enum):
CD_TU = '00000000-0000-0000-0000-023001000000'
CD_TO = '00000000-0000-0000-0000-023002000000'
CD_TA = '00000000-0000-0000-0000-023003000000'
CD_SK = '00000000-0000-0000-0000-023004000000'
CD_SA = '00000000-0000-0000-0000-023005000000'
CD_NK = '00000000-0000-0000-0000-023006000000'
CD_MO = '00000000-0000-0000-0000-023007000000'
CD_MA = '00000000-0000-0000-0000-023008000000'
CD_KC = '00000000-0000-0000-0000-023009000000'
CD_KE = '00000000-0000-0000-0000-02300a000000'
CD_KS = '00000000-0000-0000-0000-02300b000000'
CD_IT = '00000000-0000-0000-0000-02300c000000'
CD_HU = '00000000-0000-0000-0000-02300d000000'
CD_HL = '00000000-0000-0000-0000-02300e000000'
CD_EQ = '00000000-0000-0000-0000-02300f000000'
CD_BU = '00000000-0000-0000-0000-023010000000'
CD_LU = '00000000-0000-0000-0000-023011000000'
CD_MN = '00000000-0000-0000-0000-023012000000'
CD_KL = '00000000-0000-0000-0000-023013000000'
CD_KG = '00000000-0000-0000-0000-023014000000'
CD_KN = '00000000-0000-0000-0000-023015000000'
CD_BC = '00000000-0000-0000-0000-023016000000'
CD_HK = '00000000-0000-0000-0000-023017000000'
CD_LO = '00000000-0000-0000-0000-023018000000'
CD_NU = '00000000-0000-0000-0000-023019000000'
CD_SU = '00000000-0000-0000-0000-02301a000000'
class CFRegion(Enum):
CF_VK = '00000000-0000-0000-0000-024001000000'
CF_UK = '00000000-0000-0000-0000-024002000000'
CF_MB = '00000000-0000-0000-0000-024003000000'
CF_HM = '00000000-0000-0000-0000-024004000000'
CF_HK = '00000000-0000-0000-0000-024005000000'
CF_BK = '00000000-0000-0000-0000-024006000000'
CF_BB = '00000000-0000-0000-0000-024007000000'
CF_SE = '00000000-0000-0000-0000-024008000000'
CF_OP = '00000000-0000-0000-0000-024009000000'
CF_AC = '00000000-0000-0000-0000-02400a000000'
CF_MP = '00000000-0000-0000-0000-02400b000000'
CF_NM = '00000000-0000-0000-0000-02400c000000'
CF_LB = '00000000-0000-0000-0000-02400d000000'
CF_KG = '00000000-0000-0000-0000-02400e000000'
CF_HS = '00000000-0000-0000-0000-02400f000000'
CF_KB = '00000000-0000-0000-0000-024010000000'
CF_BGF = '00000000-0000-0000-0000-024011000000'
class CGRegion(Enum):
CG_13 = '00000000-0000-0000-0000-025001000000'
CG_12 = '00000000-0000-0000-0000-025002000000'
CG_14 = '00000000-0000-0000-0000-025003000000'
CG_9 = '00000000-0000-0000-0000-025004000000'
CG_7 = '00000000-0000-0000-0000-025005000000'
CG_2 = '00000000-0000-0000-0000-025006000000'
CG_5 = '00000000-0000-0000-0000-025007000000'
CG_8 = '00000000-0000-0000-0000-025008000000'
CG_11 = '00000000-0000-0000-0000-025009000000'
CG_BZV = '00000000-0000-0000-0000-02500a000000'
CG_15 = '00000000-0000-0000-0000-02500b000000'
CG_16 = '00000000-0000-0000-0000-02500c000000'
class CHRegion(Enum):
CH_ZH = '00000000-0000-0000-0000-026001000000'
CH_ZG = '00000000-0000-0000-0000-026002000000'
CH_VD = '00000000-0000-0000-0000-026003000000'
CH_VS = '00000000-0000-0000-0000-026004000000'
CH_UR = '00000000-0000-0000-0000-026005000000'
CH_TI = '00000000-0000-0000-0000-026006000000'
CH_TG = '00000000-0000-0000-0000-026007000000'
CH_SO = '00000000-0000-0000-0000-026008000000'
CH_SZ = '00000000-0000-0000-0000-026009000000'
CH_SH = '00000000-0000-0000-0000-02600a000000'
CH_SG = '00000000-0000-0000-0000-02600b000000'
CH_OW = '00000000-0000-0000-0000-02600c000000'
CH_NW = '00000000-0000-0000-0000-02600d000000'
CH_NE = '00000000-0000-0000-0000-02600e000000'
CH_LU = '00000000-0000-0000-0000-02600f000000'
CH_JU = '00000000-0000-0000-0000-026010000000'
CH_GR = '00000000-0000-0000-0000-026011000000'
CH_GL = '00000000-0000-0000-0000-026012000000'
CH_GE = '00000000-0000-0000-0000-026013000000'
CH_FR = '00000000-0000-0000-0000-026014000000'
CH_BE = '00000000-0000-0000-0000-026015000000'
CH_BS = '00000000-0000-0000-0000-026016000000'
CH_BL = '00000000-0000-0000-0000-026017000000'
CH_AR = '00000000-0000-0000-0000-026018000000'
CH_AI = '00000000-0000-0000-0000-026019000000'
CH_AG = '00000000-0000-0000-0000-02601a000000'
class CIRegion(Enum):
CI_YM = '00000000-0000-0000-0000-027001000000'
CI_BS = '00000000-0000-0000-0000-027002000000'
CI_CM = '00000000-0000-0000-0000-027003000000'
CI_DN = '00000000-0000-0000-0000-027004000000'
CI_GD = '00000000-0000-0000-0000-027005000000'
CI_LC = '00000000-0000-0000-0000-027006000000'
CI_LG = '00000000-0000-0000-0000-027007000000'
CI_MG = '00000000-0000-0000-0000-027008000000'
CI_SM = '00000000-0000-0000-0000-027009000000'
CI_SV = '00000000-0000-0000-0000-02700a000000'
CI_VB = '00000000-0000-0000-0000-02700b000000'
CI_WR = '00000000-0000-0000-0000-02700c000000'
CI_ZZ = '00000000-0000-0000-0000-02700d000000'
CI_AB = '00000000-0000-0000-0000-02700e000000'
class CLRegion(Enum):
CL_VS = '00000000-0000-0000-0000-029001000000'
CL_TA = '00000000-0000-0000-0000-029002000000'
CL_RM = '00000000-0000-0000-0000-029003000000'
CL_ML = '00000000-0000-0000-0000-029004000000'
CL_LL = '00000000-0000-0000-0000-029005000000'
CL_LI = '00000000-0000-0000-0000-029006000000'
CL_CO = '00000000-0000-0000-0000-029007000000'
CL_BI = '00000000-0000-0000-0000-029008000000'
CL_AT = '00000000-0000-0000-0000-029009000000'
CL_AR = '00000000-0000-0000-0000-02900a000000'
CL_AN = '00000000-0000-0000-0000-02900b000000'
CL_AI = '00000000-0000-0000-0000-02900c000000'
CL_MA = '00000000-0000-0000-0000-02900d000000'
CL_AP = '00000000-0000-0000-0000-02900e000000'
CL_LR = '00000000-0000-0000-0000-02900f000000'
class CMRegion(Enum):
CM_SW = '00000000-0000-0000-0000-02a001000000'
CM_SU = '00000000-0000-0000-0000-02a002000000'
CM_OU = '00000000-0000-0000-0000-02a003000000'
CM_NW = '00000000-0000-0000-0000-02a004000000'
CM_NO = '00000000-0000-0000-0000-02a005000000'
CM_LT = '00000000-0000-0000-0000-02a006000000'
CM_EN = '00000000-0000-0000-0000-02a007000000'
CM_ES = '00000000-0000-0000-0000-02a008000000'
CM_CE = '00000000-0000-0000-0000-02a009000000'
CM_AD = '00000000-0000-0000-0000-02a00a000000'
class CNRegion(Enum):
CN_54 = '00000000-0000-0000-0000-02b001000000'
CN_63 = '00000000-0000-0000-0000-02b002000000'
CN_65 = '00000000-0000-0000-0000-02b003000000'
CN_33 = '00000000-0000-0000-0000-02b004000000'
CN_53 = '00000000-0000-0000-0000-02b005000000'
CN_12 = '00000000-0000-0000-0000-02b006000000'
CN_51 = '00000000-0000-0000-0000-02b007000000'
CN_14 = '00000000-0000-0000-0000-02b008000000'
CN_31 = '00000000-0000-0000-0000-02b009000000'
CN_37 = '00000000-0000-0000-0000-02b00a000000'
CN_61 = '00000000-0000-0000-0000-02b00b000000'
CN_64 = '00000000-0000-0000-0000-02b00c000000'
CN_36 = '00000000-0000-0000-0000-02b00d000000'
CN_32 = '00000000-0000-0000-0000-02b00e000000'
CN_43 = '00000000-0000-0000-0000-02b00f000000'
CN_42 = '00000000-0000-0000-0000-02b010000000'
CN_41 = '00000000-0000-0000-0000-02b011000000'
CN_13 = '00000000-0000-0000-0000-02b012000000'
CN_46 = '00000000-0000-0000-0000-02b013000000'
CN_52 = '00000000-0000-0000-0000-02b014000000'
CN_45 = '00000000-0000-0000-0000-02b015000000'
CN_44 = '00000000-0000-0000-0000-02b016000000'
CN_62 = '00000000-0000-0000-0000-02b017000000'
CN_35 = '00000000-0000-0000-0000-02b018000000'
CN_50 = '00000000-0000-0000-0000-02b019000000'
CN_34 = '00000000-0000-0000-0000-02b01a000000'
CN_15 = '00000000-0000-0000-0000-02b01b000000'
CN_21 = '00000000-0000-0000-0000-02b01c000000'
CN_22 = '00000000-0000-0000-0000-02b01d000000'
CN_23 = '00000000-0000-0000-0000-02b01e000000'
CN_11 = '00000000-0000-0000-0000-02b01f000000'
class CORegion(Enum):
CO_VID = '00000000-0000-0000-0000-02c001000000'
CO_VAU = '00000000-0000-0000-0000-02c002000000'
CO_VAC = '00000000-0000-0000-0000-02c003000000'
CO_TOL = '00000000-0000-0000-0000-02c004000000'
CO_SUC = '00000000-0000-0000-0000-02c005000000'
CO_SAN = '00000000-0000-0000-0000-02c006000000'
CO_SAP = '00000000-0000-0000-0000-02c007000000'
CO_RIS = '00000000-0000-0000-0000-02c008000000'
CO_QUI = '00000000-0000-0000-0000-02c009000000'
CO_PUT = '00000000-0000-0000-0000-02c00a000000'
CO_NSA = '00000000-0000-0000-0000-02c00b000000'
CO_NAR = '00000000-0000-0000-0000-02c00c000000'
CO_MET = '00000000-0000-0000-0000-02c00d000000'
CO_MAG = '00000000-0000-0000-0000-02c00e000000'
CO_LAG = '00000000-0000-0000-0000-02c00f000000'
CO_HUI = '00000000-0000-0000-0000-02c010000000'
CO_GUV = '00000000-0000-0000-0000-02c011000000'
CO_GUA = '00000000-0000-0000-0000-02c012000000'
CO_CUN = '00000000-0000-0000-0000-02c013000000'
CO_COR = '00000000-0000-0000-0000-02c014000000'
CO_CHO = '00000000-0000-0000-0000-02c015000000'
CO_CES = '00000000-0000-0000-0000-02c016000000'
CO_CAU = '00000000-0000-0000-0000-02c017000000'
CO_CAS = '00000000-0000-0000-0000-02c018000000'
CO_CAQ = '00000000-0000-0000-0000-02c019000000'
CO_CAL = '00000000-0000-0000-0000-02c01a000000'
CO_BOY = '00000000-0000-0000-0000-02c01b000000'
CO_BOL = '00000000-0000-0000-0000-02c01c000000'
CO_DC = '00000000-0000-0000-0000-02c01d000000'
CO_ATL = '00000000-0000-0000-0000-02c01e000000'
CO_ARA = '00000000-0000-0000-0000-02c01f000000'
CO_ANT = '00000000-0000-0000-0000-02c020000000'
CO_AMA = '00000000-0000-0000-0000-02c021000000'
class CRRegion(Enum):
CR_SJ = '00000000-0000-0000-0000-02d001000000'
CR_P = '00000000-0000-0000-0000-02d002000000'
CR_L = '00000000-0000-0000-0000-02d003000000'
CR_H = '00000000-0000-0000-0000-02d004000000'
CR_G = '00000000-0000-0000-0000-02d005000000'
CR_C = '00000000-0000-0000-0000-02d006000000'
CR_A = '00000000-0000-0000-0000-02d007000000'
class CURegion(Enum):
CU_05 = '00000000-0000-0000-0000-02e001000000'
CU_13 = '00000000-0000-0000-0000-02e002000000'
CU_07 = '00000000-0000-0000-0000-02e003000000'
CU_01 = '00000000-0000-0000-0000-02e004000000'
CU_04 = '00000000-0000-0000-0000-02e005000000'
CU_10 = '00000000-0000-0000-0000-02e006000000'
CU_99 = '00000000-0000-0000-0000-02e007000000'
CU_11 = '00000000-0000-0000-0000-02e008000000'
CU_14 = '00000000-0000-0000-0000-02e009000000'
CU_12 = '00000000-0000-0000-0000-02e00a000000'
CU_03 = '00000000-0000-0000-0000-02e00b000000'
CU_06 = '00000000-0000-0000-0000-02e00c000000'
CU_08 = '00000000-0000-0000-0000-02e00d000000'
CU_09 = '00000000-0000-0000-0000-02e00e000000'
CU_AR = '00000000-0000-0000-0000-02e00f000000'
CU_MA = '00000000-0000-0000-0000-02e010000000'
class CVRegion(Enum):
CV_TA = '00000000-0000-0000-0000-02f001000000'
CV_SV = '00000000-0000-0000-0000-02f002000000'
CV_CA = '00000000-0000-0000-0000-02f003000000'
CV_SL = '00000000-0000-0000-0000-02f004000000'
CV_RG = '00000000-0000-0000-0000-02f005000000'
CV_PR = '00000000-0000-0000-0000-02f006000000'
CV_PA = '00000000-0000-0000-0000-02f007000000'
CV_MA = '00000000-0000-0000-0000-02f008000000'
CV_BR = '00000000-0000-0000-0000-02f009000000'
CV_BV = '00000000-0000-0000-0000-02f00a000000'
CV_MO = '00000000-0000-0000-0000-02f00b000000'
CV_CR = '00000000-0000-0000-0000-02f00c000000'
CV_SD = '00000000-0000-0000-0000-02f00d000000'
CV_SF = '00000000-0000-0000-0000-02f00e000000'
CV_SM = '00000000-0000-0000-0000-02f00f000000'
CV_PN = '00000000-0000-0000-0000-02f010000000'
CV_RB = '00000000-0000-0000-0000-02f011000000'
CV_CF = '00000000-0000-0000-0000-02f012000000'
CV_SS = '00000000-0000-0000-0000-02f013000000'
CV_TS = '00000000-0000-0000-0000-02f014000000'
CV_SO = '00000000-0000-0000-0000-02f015000000'
CV_RS = '00000000-0000-0000-0000-02f016000000'
class CYRegion(Enum):
CY_05 = '00000000-0000-0000-0000-030001000000'
CY_01 = '00000000-0000-0000-0000-030002000000'
CY_02 = '00000000-0000-0000-0000-030003000000'
CY_03 = '00000000-0000-0000-0000-030004000000'
CY_06 = '00000000-0000-0000-0000-030005000000'
CY_04 = '00000000-0000-0000-0000-030006000000'
class CZRegion(Enum):
CZ_PR = '00000000-0000-0000-0000-031001000000'
CZ_JM = '00000000-0000-0000-0000-031002000000'
CZ_JC = '00000000-0000-0000-0000-031003000000'
CZ_VY = '00000000-0000-0000-0000-031004000000'
CZ_KA = '00000000-0000-0000-0000-031005000000'
CZ_KR = '00000000-0000-0000-0000-031006000000'
CZ_LI = '00000000-0000-0000-0000-031007000000'
CZ_712 = '00000000-0000-0000-0000-031008000000'
CZ_MO = '00000000-0000-0000-0000-031009000000'
CZ_PA = '00000000-0000-0000-0000-03100a000000'
CZ_PL = '00000000-0000-0000-0000-03100b000000'
CZ_ST = '00000000-0000-0000-0000-03100c000000'
CZ_US = '00000000-0000-0000-0000-03100d000000'
CZ_72 = '00000000-0000-0000-0000-03100e000000'
class DERegion(Enum):
DE_TH = '00000000-0000-0000-0000-032001000000'
DE_SH = '00000000-0000-0000-0000-032002000000'
DE_ST = '00000000-0000-0000-0000-032003000000'
DE_SN = '00000000-0000-0000-0000-032004000000'
DE_SL = '00000000-0000-0000-0000-032005000000'
DE_RP = '00000000-0000-0000-0000-032006000000'
DE_NW = '00000000-0000-0000-0000-032007000000'
DE_NI = '00000000-0000-0000-0000-032008000000'
DE_MV = '00000000-0000-0000-0000-032009000000'
DE_HE = '00000000-0000-0000-0000-03200a000000'
DE_HH = '00000000-0000-0000-0000-03200b000000'
DE_HB = '00000000-0000-0000-0000-03200c000000'
DE_BB = '00000000-0000-0000-0000-03200d000000'
DE_BE = '00000000-0000-0000-0000-03200e000000'
DE_BY = '00000000-0000-0000-0000-03200f000000'
DE_BW = '00000000-0000-0000-0000-032010000000'
class DJRegion(Enum):
DJ_TA = '00000000-0000-0000-0000-033001000000'
DJ_OB = '00000000-0000-0000-0000-033002000000'
DJ_DJ = '00000000-0000-0000-0000-033003000000'
DJ_DI = '00000000-0000-0000-0000-033004000000'
DJ_AS = '00000000-0000-0000-0000-033005000000'
DJ_AR = '00000000-0000-0000-0000-033006000000'
class DKRegion(Enum):
DK_84 = '00000000-0000-0000-0000-034001000000'
DK_82 = '00000000-0000-0000-0000-034002000000'
DK_81 = '00000000-0000-0000-0000-034003000000'
DK_85 = '00000000-0000-0000-0000-034004000000'
DK_83 = '00000000-0000-0000-0000-034005000000'
class DMRegion(Enum):
DM_11 = '00000000-0000-0000-0000-035001000000'
DM_10 = '00000000-0000-0000-0000-035002000000'
DM_09 = '00000000-0000-0000-0000-035003000000'
DM_08 = '00000000-0000-0000-0000-035004000000'
DM_07 = '00000000-0000-0000-0000-035005000000'
DM_06 = '00000000-0000-0000-0000-035006000000'
DM_05 = '00000000-0000-0000-0000-035007000000'
DM_04 = '00000000-0000-0000-0000-035008000000'
DM_03 = '00000000-0000-0000-0000-035009000000'
DM_02 = '00000000-0000-0000-0000-03500a000000'
class DORegion(Enum):
DO_27 = '00000000-0000-0000-0000-036001000000'
DO_26 = '00000000-0000-0000-0000-036002000000'
DO_25 = '00000000-0000-0000-0000-036003000000'
DO_23 = '00000000-0000-0000-0000-036004000000'
DO_22 = '00000000-0000-0000-0000-036005000000'
DO_21 = '00000000-0000-0000-0000-036006000000'
DO_24 = '00000000-0000-0000-0000-036007000000'
DO_20 = '00000000-0000-0000-0000-036008000000'
DO_19 = '00000000-0000-0000-0000-036009000000'
DO_18 = '00000000-0000-0000-0000-03600a000000'
DO_17 = '00000000-0000-0000-0000-03600b000000'
DO_16 = '00000000-0000-0000-0000-03600c000000'
DO_01 = '00000000-0000-0000-0000-03600d000000'
DO_29 = '00000000-0000-0000-0000-03600e000000'
DO_15 = '00000000-0000-0000-0000-03600f000000'
DO_28 = '00000000-0000-0000-0000-036010000000'
DO_14 = '00000000-0000-0000-0000-036011000000'
DO_13 = '00000000-0000-0000-0000-036012000000'
DO_12 = '00000000-0000-0000-0000-036013000000'
DO_11 = '00000000-0000-0000-0000-036014000000'
DO_10 = '00000000-0000-0000-0000-036015000000'
DO_30 = '00000000-0000-0000-0000-036016000000'
DO_09 = '00000000-0000-0000-0000-036017000000'
DO_08 = '00000000-0000-0000-0000-036018000000'
DO_07 = '00000000-0000-0000-0000-036019000000'
DO_06 = '00000000-0000-0000-0000-03601a000000'
DO_05 = '00000000-0000-0000-0000-03601b000000'
DO_04 = '00000000-0000-0000-0000-03601c000000'
DO_03 = '00000000-0000-0000-0000-03601d000000'
DO_02 = '00000000-0000-0000-0000-03601e000000'
DO_31 = '00000000-0000-0000-0000-03601f000000'
DO_32 = '00000000-0000-0000-0000-036020000000'
class DZRegion(Enum):
DZ_13 = '00000000-0000-0000-0000-037001000000'
DZ_15 = '00000000-0000-0000-0000-037002000000'
DZ_38 = '00000000-0000-0000-0000-037003000000'
DZ_42 = '00000000-0000-0000-0000-037004000000'
DZ_37 = '00000000-0000-0000-0000-037005000000'
DZ_14 = '00000000-0000-0000-0000-037006000000'
DZ_12 = '00000000-0000-0000-0000-037007000000'
DZ_11 = '00000000-0000-0000-0000-037008000000'
DZ_41 = '00000000-0000-0000-0000-037009000000'
DZ_21 = '00000000-0000-0000-0000-03700a000000'
DZ_22 = '00000000-0000-0000-0000-03700b000000'
DZ_19 = '00000000-0000-0000-0000-03700c000000'
DZ_20 = '00000000-0000-0000-0000-03700d000000'
DZ_48 = '00000000-0000-0000-0000-03700e000000'
DZ_04 = '00000000-0000-0000-0000-03700f000000'
DZ_30 = '00000000-0000-0000-0000-037010000000'
DZ_31 = '00000000-0000-0000-0000-037011000000'
DZ_45 = '00000000-0000-0000-0000-037012000000'
DZ_28 = '00000000-0000-0000-0000-037013000000'
DZ_27 = '00000000-0000-0000-0000-037014000000'
DZ_43 = '00000000-0000-0000-0000-037015000000'
DZ_26 = '00000000-0000-0000-0000-037016000000'
DZ_29 = '00000000-0000-0000-0000-037017000000'
DZ_03 = '00000000-0000-0000-0000-037018000000'
DZ_40 = '00000000-0000-0000-0000-037019000000'
DZ_18 = '00000000-0000-0000-0000-03701a000000'
DZ_33 = '00000000-0000-0000-0000-03701b000000'
DZ_24 = '00000000-0000-0000-0000-03701c000000'
DZ_47 = '00000000-0000-0000-0000-03701d000000'
DZ_36 = '00000000-0000-0000-0000-03701e000000'
DZ_39 = '00000000-0000-0000-0000-03701f000000'
DZ_32 = '00000000-0000-0000-0000-037020000000'
DZ_17 = '00000000-0000-0000-0000-037021000000'
DZ_25 = '00000000-0000-0000-0000-037022000000'
DZ_02 = '00000000-0000-0000-0000-037023000000'
DZ_35 = '00000000-0000-0000-0000-037024000000'
DZ_10 = '00000000-0000-0000-0000-037025000000'
DZ_34 = '00000000-0000-0000-0000-037026000000'
DZ_09 = '00000000-0000-0000-0000-037027000000'
DZ_07 = '00000000-0000-0000-0000-037028000000'
DZ_06 = '00000000-0000-0000-0000-037029000000'
DZ_08 = '00000000-0000-0000-0000-03702a000000'
DZ_05 = '00000000-0000-0000-0000-03702b000000'
DZ_23 = '00000000-0000-0000-0000-03702c000000'
DZ_16 = '00000000-0000-0000-0000-03702d000000'
DZ_46 = '00000000-0000-0000-0000-03702e000000'
DZ_44 = '00000000-0000-0000-0000-03702f000000'
DZ_01 = '00000000-0000-0000-0000-037030000000'
class ECRegion(Enum):
EC_Z = '00000000-0000-0000-0000-038001000000'
EC_T = '00000000-0000-0000-0000-038002000000'
EC_P = '00000000-0000-0000-0000-038003000000'
EC_Y = '00000000-0000-0000-0000-038004000000'
EC_N = '00000000-0000-0000-0000-038005000000'
EC_S = '00000000-0000-0000-0000-038006000000'
EC_M = '00000000-0000-0000-0000-038007000000'
EC_R = '00000000-0000-0000-0000-038008000000'
EC_L = '00000000-0000-0000-0000-038009000000'
EC_I = '00000000-0000-0000-0000-03800a000000'
EC_G = '00000000-0000-0000-0000-03800b000000'
EC_W = '00000000-0000-0000-0000-03800c000000'
EC_E = '00000000-0000-0000-0000-03800d000000'
EC_O = '00000000-0000-0000-0000-03800e000000'
EC_X = '00000000-0000-0000-0000-03800f000000'
EC_H = '00000000-0000-0000-0000-038010000000'
EC_C = '00000000-0000-0000-0000-038011000000'
EC_F = '00000000-0000-0000-0000-038012000000'
EC_B = '00000000-0000-0000-0000-038013000000'
EC_A = '00000000-0000-0000-0000-038014000000'
EC_U = '00000000-0000-0000-0000-038015000000'
EC_D = '00000000-0000-0000-0000-038016000000'
EC_SD = '00000000-0000-0000-0000-038017000000'
EC_SE = '00000000-0000-0000-0000-038018000000'
class EERegion(Enum):
EE_86 = '00000000-0000-0000-0000-039001000000'
EE_84 = '00000000-0000-0000-0000-039002000000'
EE_82 = '00000000-0000-0000-0000-039003000000'
EE_78 = '00000000-0000-0000-0000-039004000000'
EE_74 = '00000000-0000-0000-0000-039005000000'
EE_70 = '00000000-0000-0000-0000-039006000000'
EE_65 = '00000000-0000-0000-0000-039007000000'
EE_67 = '00000000-0000-0000-0000-039008000000'
EE_59 = '00000000-0000-0000-0000-039009000000'
EE_57 = '00000000-0000-0000-0000-03900a000000'
EE_49 = '00000000-0000-0000-0000-03900b000000'
EE_51 = '00000000-0000-0000-0000-03900c000000'
EE_44 = '00000000-0000-0000-0000-03900d000000'
EE_39 = '00000000-0000-0000-0000-03900e000000'
EE_37 = '00000000-0000-0000-0000-03900f000000'
class EGRegion(Enum):
EG_SHG = '00000000-0000-0000-0000-03a001000000'
EG_SIN = '00000000-0000-0000-0000-03a002000000'
EG_KN = '00000000-0000-0000-0000-03a003000000'
EG_MT = '00000000-0000-0000-0000-03a004000000'
EG_KFS = '00000000-0000-0000-0000-03a005000000'
EG_JS = '00000000-0000-0000-0000-03a006000000'
EG_DT = '00000000-0000-0000-0000-03a007000000'
EG_PTS = '00000000-0000-0000-0000-03a008000000'
EG_BNS = '00000000-0000-0000-0000-03a009000000'
EG_AST = '00000000-0000-0000-0000-03a00a000000'
EG_ASN = '00000000-0000-0000-0000-03a00b000000'
EG_SUZ = '00000000-0000-0000-0000-03a00c000000'
EG_SHR = '00000000-0000-0000-0000-03a00d000000'
EG_WAD = '00000000-0000-0000-0000-03a00e000000'
EG_KB = '00000000-0000-0000-0000-03a00f000000'
EG_C = '00000000-0000-0000-0000-03a010000000'
EG_MN = '00000000-0000-0000-0000-03a011000000'
EG_MNF = '00000000-0000-0000-0000-03a012000000'
EG_GZ = '00000000-0000-0000-0000-03a013000000'
EG_IS = '00000000-0000-0000-0000-03a014000000'
EG_ALX = '00000000-0000-0000-0000-03a015000000'
EG_GH = '00000000-0000-0000-0000-03a016000000'
EG_FYM = '00000000-0000-0000-0000-03a017000000'
EG_BH = '00000000-0000-0000-0000-03a018000000'
EG_BA = '00000000-0000-0000-0000-03a019000000'
EG_DK = '00000000-0000-0000-0000-03a01a000000'
EG_LX = '00000000-0000-0000-0000-03a01b000000'
class ERRegion(Enum):
ER_AN = '00000000-0000-0000-0000-03b001000000'
ER_DU = '00000000-0000-0000-0000-03b002000000'
ER_DK = '00000000-0000-0000-0000-03b003000000'
ER_GB = '00000000-0000-0000-0000-03b004000000'
ER_MA = '00000000-0000-0000-0000-03b005000000'
ER_SK = '00000000-0000-0000-0000-03b006000000'
class ESRegion(Enum):
ES_MU = '00000000-0000-0000-0000-03c001000000'
ES_CE = '00000000-0000-0000-0000-03c002000000'
ES_PM = '00000000-0000-0000-0000-03c003000000'
ES_AN = '00000000-0000-0000-0000-03c004000000'
ES_CN = '00000000-0000-0000-0000-03c005000000'
ES_CM = '00000000-0000-0000-0000-03c006000000'
ES_EX = '00000000-0000-0000-0000-03c007000000'
ES_VC = '00000000-0000-0000-0000-03c008000000'
ES_AS = '00000000-0000-0000-0000-03c009000000'
ES_NC = '00000000-0000-0000-0000-03c00a000000'
ES_MD = '00000000-0000-0000-0000-03c00b000000'
ES_LO = '00000000-0000-0000-0000-03c00c000000'
ES_CB = '00000000-0000-0000-0000-03c00d000000'
ES_AR = '00000000-0000-0000-0000-03c00e000000'
ES_CL = '00000000-0000-0000-0000-03c00f000000'
ES_CT = '00000000-0000-0000-0000-03c010000000'
ES_GA = '00000000-0000-0000-0000-03c011000000'
ES_PV = '00000000-0000-0000-0000-03c012000000'
ES_ML = '00000000-0000-0000-0000-03c013000000'
class ETRegion(Enum):
ET_AA = '00000000-0000-0000-0000-03d001000000'
ET_AF = '00000000-0000-0000-0000-03d002000000'
ET_AM = '00000000-0000-0000-0000-03d003000000'
ET_BE = '00000000-0000-0000-0000-03d004000000'
ET_DD = '00000000-0000-0000-0000-03d005000000'
ET_GA = '00000000-0000-0000-0000-03d006000000'
ET_HA = '00000000-0000-0000-0000-03d007000000'
ET_OR = '00000000-0000-0000-0000-03d008000000'
ET_SO = '00000000-0000-0000-0000-03d009000000'
ET_TI = '00000000-0000-0000-0000-03d00a000000'
ET_SN = '00000000-0000-0000-0000-03d00b000000'
class FIRegion(Enum):
FI_10 = '00000000-0000-0000-0000-03e001000000'
FI_05 = '00000000-0000-0000-0000-03e002000000'
FI_14 = '00000000-0000-0000-0000-03e003000000'
FI_07 = '00000000-0000-0000-0000-03e004000000'
FI_12 = '00000000-0000-0000-0000-03e005000000'
FI_03 = '00000000-0000-0000-0000-03e006000000'
FI_08 = '00000000-0000-0000-0000-03e007000000'
FI_13 = '00000000-0000-0000-0000-03e008000000'
FI_15 = '00000000-0000-0000-0000-03e009000000'
FI_04 = '00000000-0000-0000-0000-03e00a000000'
FI_02 = '00000000-0000-0000-0000-03e00b000000'
FI_09 = '00000000-0000-0000-0000-03e00c000000'
FI_11 = '00000000-0000-0000-0000-03e00d000000'
FI_06 = '00000000-0000-0000-0000-03e00e000000'
FI_19 = '00000000-0000-0000-0000-03e00f000000'
FI_18 = '00000000-0000-0000-0000-03e010000000'
FI_16 = '00000000-0000-0000-0000-03e011000000'
FI_17 = '00000000-0000-0000-0000-03e012000000'
class FJRegion(Enum):
FJ_W = '00000000-0000-0000-0000-03f001000000'
FJ_N = '00000000-0000-0000-0000-03f002000000'
FJ_C = '00000000-0000-0000-0000-03f003000000'
FJ_E = '00000000-0000-0000-0000-03f004000000'
FJ_R = '00000000-0000-0000-0000-03f005000000'
class FMRegion(Enum):
FM_YAP = '00000000-0000-0000-0000-041001000000'
FM_PNI = '00000000-0000-0000-0000-041002000000'
FM_KSA = '00000000-0000-0000-0000-041003000000'
FM_TRK = '00000000-0000-0000-0000-041004000000'
class FORegion(Enum):
FO_VG = '00000000-0000-0000-0000-042001000000'
FO_NO = '00000000-0000-0000-0000-042005000000'
class FRRegion(Enum):
FR_U = '00000000-0000-0000-0000-043001000000'
FR_R = '00000000-0000-0000-0000-043002000000'
FR_J = '00000000-0000-0000-0000-043003000000'
FR_H = '00000000-0000-0000-0000-043004000000'
FR_F = '00000000-0000-0000-0000-043005000000'
FR_E = '00000000-0000-0000-0000-043006000000'
FR_BFC = '00000000-0000-0000-0000-043007000000'
FR_NAQ = '00000000-0000-0000-0000-043008000000'
FR_NOR = '00000000-0000-0000-0000-043009000000'
FR_GES = '00000000-0000-0000-0000-04300a000000'
FR_OCC = '00000000-0000-0000-0000-04300b000000'
FR_HDF = '00000000-0000-0000-0000-04300c000000'
FR_ARA = '00000000-0000-0000-0000-04300d000000'
class GARegion(Enum):
GA_9 = '00000000-0000-0000-0000-044001000000'
GA_8 = '00000000-0000-0000-0000-044002000000'
GA_7 = '00000000-0000-0000-0000-044003000000'
GA_6 = '00000000-0000-0000-0000-044004000000'
GA_5 = '00000000-0000-0000-0000-044005000000'
GA_4 = '00000000-0000-0000-0000-044006000000'
GA_3 = '00000000-0000-0000-0000-044007000000'
GA_2 = '00000000-0000-0000-0000-044008000000'
GA_1 = '00000000-0000-0000-0000-044009000000'
class GBRegion(Enum):
GB_WLS = '00000000-0000-0000-0000-045001000000'
GB_SCT = '00000000-0000-0000-0000-045002000000'
GB_NIR = '00000000-0000-0000-0000-045003000000'
GB_ENG = '00000000-0000-0000-0000-045004000000'
class GDRegion(Enum):
GD_06 = '00000000-0000-0000-0000-046001000000'
GD_05 = '00000000-0000-0000-0000-046002000000'
GD_04 = '00000000-0000-0000-0000-046003000000'
GD_03 = '00000000-0000-0000-0000-046004000000'
GD_02 = '00000000-0000-0000-0000-046005000000'
GD_01 = '00000000-0000-0000-0000-046006000000'
GD_10 = '00000000-0000-0000-0000-046007000000'
class GERegion(Enum):
GE_TB = '00000000-0000-0000-0000-047001000000'
GE_AJ = '00000000-0000-0000-0000-047002000000'
GE_KK = '00000000-0000-0000-0000-047003000000'
GE_KA = '00000000-0000-0000-0000-047004000000'
GE_GU = '00000000-0000-0000-0000-047005000000'
GE_IM = '00000000-0000-0000-0000-047006000000'
GE_SK = '00000000-0000-0000-0000-047007000000'
GE_MM = '00000000-0000-0000-0000-047008000000'
GE_RL = '00000000-0000-0000-0000-047009000000'
GE_SZ = '00000000-0000-0000-0000-04700a000000'
GE_SJ = '00000000-0000-0000-0000-04700b000000'
GE_AB = '00000000-0000-0000-0000-04700c000000'
class GHRegion(Enum):
GH_WP = '00000000-0000-0000-0000-04a001000000'
GH_TV = '00000000-0000-0000-0000-04a002000000'
GH_UW = '00000000-0000-0000-0000-04a003000000'
GH_UE = '00000000-0000-0000-0000-04a004000000'
GH_NP = '00000000-0000-0000-0000-04a005000000'
GH_AA = '00000000-0000-0000-0000-04a006000000'
GH_EP = '00000000-0000-0000-0000-04a007000000'
GH_CP = '00000000-0000-0000-0000-04a008000000'
GH_BA = '00000000-0000-0000-0000-04a009000000'
GH_AH = '00000000-0000-0000-0000-04a00a000000'
class GLRegion(Enum):
GL_QA = '00000000-0000-0000-0000-04c001000000'
GL_KU = '00000000-0000-0000-0000-04c002000000'
GL_QE = '00000000-0000-0000-0000-04c003000000'
GL_SM = '00000000-0000-0000-0000-04c004000000'
class GMRegion(Enum):
GM_W = '00000000-0000-0000-0000-04d001000000'
GM_U = '00000000-0000-0000-0000-04d002000000'
GM_N = '00000000-0000-0000-0000-04d003000000'
GM_M = '00000000-0000-0000-0000-04d004000000'
GM_L = '00000000-0000-0000-0000-04d005000000'
GM_B = '00000000-0000-0000-0000-04d006000000'
class GNRegion(Enum):
GN_C = '00000000-0000-0000-0000-04e001000000'
GN_B = '00000000-0000-0000-0000-04e002000000'
GN_F = '00000000-0000-0000-0000-04e003000000'
GN_K = '00000000-0000-0000-0000-04e004000000'
GN_D = '00000000-0000-0000-0000-04e005000000'
GN_LA = '00000000-0000-0000-0000-04e006000000'
GN_M = '00000000-0000-0000-0000-04e007000000'
GN_N = '00000000-0000-0000-0000-04e008000000'
class GQRegion(Enum):
GQ_AN = '00000000-0000-0000-0000-050001000000'
GQ_BN = '00000000-0000-0000-0000-050002000000'
GQ_BS = '00000000-0000-0000-0000-050003000000'
GQ_CS = '00000000-0000-0000-0000-050004000000'
GQ_KN = '00000000-0000-0000-0000-050005000000'
GQ_LI = '00000000-0000-0000-0000-050006000000'
GQ_WN = '00000000-0000-0000-0000-050007000000'
class GRRegion(Enum):
GR_69 = '00000000-0000-0000-0000-051001000000'
GR_I = '00000000-0000-0000-0000-051002000000'
GR_H = '00000000-0000-0000-0000-051003000000'
GR_B = '00000000-0000-0000-0000-051004000000'
GR_M = '00000000-0000-0000-0000-051005000000'
GR_A = '00000000-0000-0000-0000-051006000000'
GR_D = '00000000-0000-0000-0000-051007000000'
GR_F = '00000000-0000-0000-0000-051008000000'
GR_K = '00000000-0000-0000-0000-051009000000'
GR_J = '00000000-0000-0000-0000-05100a000000'
GR_L = '00000000-0000-0000-0000-05100b000000'
GR_E = '00000000-0000-0000-0000-05100c000000'
GR_G = '00000000-0000-0000-0000-05100d000000'
GR_C = '00000000-0000-0000-0000-05100e000000'
class GTRegion(Enum):
GT_ZA = '00000000-0000-0000-0000-053001000000'
GT_TO = '00000000-0000-0000-0000-053002000000'
GT_SU = '00000000-0000-0000-0000-053003000000'
GT_SO = '00000000-0000-0000-0000-053004000000'
GT_SR = '00000000-0000-0000-0000-053005000000'
GT_SM = '00000000-0000-0000-0000-053006000000'
GT_SA = '00000000-0000-0000-0000-053007000000'
GT_RE = '00000000-0000-0000-0000-053008000000'
GT_QC = '00000000-0000-0000-0000-053009000000'
GT_QZ = '00000000-0000-0000-0000-05300a000000'
GT_PE = '00000000-0000-0000-0000-05300b000000'
GT_JU = '00000000-0000-0000-0000-05300c000000'
GT_JA = '00000000-0000-0000-0000-05300d000000'
GT_IZ = '00000000-0000-0000-0000-05300e000000'
GT_HU = '00000000-0000-0000-0000-05300f000000'
GT_GU = '00000000-0000-0000-0000-053010000000'
GT_ES = '00000000-0000-0000-0000-053011000000'
GT_PR = '00000000-0000-0000-0000-053012000000'
GT_CQ = '00000000-0000-0000-0000-053013000000'
GT_CM = '00000000-0000-0000-0000-053014000000'
GT_BV = '00000000-0000-0000-0000-053015000000'
GT_AV = '00000000-0000-0000-0000-053016000000'
class GURegion(Enum):
GU_SR = '00000000-0000-0000-0000-054002000000'
GU_SJ = '00000000-0000-0000-0000-054003000000'
GU_TF = '00000000-0000-0000-0000-054004000000'
GU_TM = '00000000-0000-0000-0000-054005000000'
GU_UM = '00000000-0000-0000-0000-054006000000'
GU_YG = '00000000-0000-0000-0000-054007000000'
GU_YN = '00000000-0000-0000-0000-054008000000'
GU_ME = '00000000-0000-0000-0000-054009000000'
GU_AT = '00000000-0000-0000-0000-05400e000000'
GU_DD = '00000000-0000-0000-0000-05400f000000'
GU_IN = '00000000-0000-0000-0000-054012000000'
class GWRegion(Enum):
GW_TO = '00000000-0000-0000-0000-055001000000'
GW_QU = '00000000-0000-0000-0000-055002000000'
GW_OI = '00000000-0000-0000-0000-055003000000'
GW_GA = '00000000-0000-0000-0000-055004000000'
GW_CA = '00000000-0000-0000-0000-055005000000'
GW_BL = '00000000-0000-0000-0000-055006000000'
GW_BS = '00000000-0000-0000-0000-055007000000'
GW_BM = '00000000-0000-0000-0000-055008000000'
GW_BA = '00000000-0000-0000-0000-055009000000'
class GYRegion(Enum):
GY_UT = '00000000-0000-0000-0000-056001000000'
GY_UD = '00000000-0000-0000-0000-056002000000'
GY_PT = '00000000-0000-0000-0000-056003000000'
GY_PM = '00000000-0000-0000-0000-056004000000'
GY_MA = '00000000-0000-0000-0000-056005000000'
GY_ES = '00000000-0000-0000-0000-056006000000'
GY_EB = '00000000-0000-0000-0000-056007000000'
GY_DE = '00000000-0000-0000-0000-056008000000'
GY_CU = '00000000-0000-0000-0000-056009000000'
GY_BA = '00000000-0000-0000-0000-05600a000000'
class HKRegion(Enum):
HK_KKC = '00000000-0000-0000-0000-05700c000000'
class HNRegion(Enum):
HN_YO = '00000000-0000-0000-0000-058001000000'
HN_VA = '00000000-0000-0000-0000-058002000000'
HN_SB = '00000000-0000-0000-0000-058003000000'
HN_OL = '00000000-0000-0000-0000-058004000000'
HN_OC = '00000000-0000-0000-0000-058005000000'
HN_LE = '00000000-0000-0000-0000-058006000000'
HN_LP = '00000000-0000-0000-0000-058007000000'
HN_IB = '00000000-0000-0000-0000-058008000000'
HN_IN = '00000000-0000-0000-0000-058009000000'
HN_GD = '00000000-0000-0000-0000-05800a000000'
HN_FM = '00000000-0000-0000-0000-05800b000000'
HN_EP = '00000000-0000-0000-0000-05800c000000'
HN_CR = '00000000-0000-0000-0000-05800d000000'
HN_CP = '00000000-0000-0000-0000-05800e000000'
HN_CM = '00000000-0000-0000-0000-05800f000000'
HN_CL = '00000000-0000-0000-0000-058010000000'
HN_CH = '00000000-0000-0000-0000-058011000000'
HN_AT = '00000000-0000-0000-0000-058012000000'
class HRRegion(Enum):
HR_07 = '00000000-0000-0000-0000-059001000000'
HR_12 = '00000000-0000-0000-0000-059002000000'
HR_19 = '00000000-0000-0000-0000-059003000000'
HR_18 = '00000000-0000-0000-0000-059004000000'
HR_04 = '00000000-0000-0000-0000-059005000000'
HR_06 = '00000000-0000-0000-0000-059006000000'
HR_02 = '00000000-0000-0000-0000-059007000000'
HR_09 = '00000000-0000-0000-0000-059008000000'
HR_20 = '00000000-0000-0000-0000-059009000000'
HR_14 = '00000000-0000-0000-0000-05900a000000'
HR_11 = '00000000-0000-0000-0000-05900b000000'
HR_08 = '00000000-0000-0000-0000-05900c000000'
HR_15 = '00000000-0000-0000-0000-05900d000000'
HR_03 = '00000000-0000-0000-0000-05900e000000'
HR_17 = '00000000-0000-0000-0000-05900f000000'
HR_05 = '00000000-0000-0000-0000-059010000000'
HR_16 = '00000000-0000-0000-0000-059011000000'
HR_13 = '00000000-0000-0000-0000-059012000000'
HR_01 = '00000000-0000-0000-0000-059013000000'
HR_21 = '00000000-0000-0000-0000-059014000000'
HR_10 = '00000000-0000-0000-0000-059015000000'
class HTRegion(Enum):
HT_SE = '00000000-0000-0000-0000-05a001000000'
HT_SD = '00000000-0000-0000-0000-05a002000000'
HT_OU = '00000000-0000-0000-0000-05a003000000'
HT_NO = '00000000-0000-0000-0000-05a004000000'
HT_NE = '00000000-0000-0000-0000-05a005000000'
HT_ND = '00000000-0000-0000-0000-05a006000000'
HT_GA = '00000000-0000-0000-0000-05a007000000'
HT_CE = '00000000-0000-0000-0000-05a008000000'
HT_AR = '00000000-0000-0000-0000-05a009000000'
HT_NI = '00000000-0000-0000-0000-05a00a000000'
class HURegion(Enum):
HU_SZ = '00000000-0000-0000-0000-05b001000000'
HU_JN = '00000000-0000-0000-0000-05b002000000'
HU_HE = '00000000-0000-0000-0000-05b003000000'
HU_HB = '00000000-0000-0000-0000-05b004000000'
HU_CS = '00000000-0000-0000-0000-05b005000000'
HU_BZ = '00000000-0000-0000-0000-05b006000000'
HU_BE = '00000000-0000-0000-0000-05b007000000'
HU_ZA = '00000000-0000-0000-0000-05b008000000'
HU_VE = '00000000-0000-0000-0000-05b009000000'
HU_VA = '00000000-0000-0000-0000-05b00a000000'
HU_TO = '00000000-0000-0000-0000-05b00b000000'
HU_SO = '00000000-0000-0000-0000-05b00c000000'
HU_PE = '00000000-0000-0000-0000-05b00d000000'
HU_NO = '00000000-0000-0000-0000-05b00e000000'
HU_KE = '00000000-0000-0000-0000-05b00f000000'
HU_GS = '00000000-0000-0000-0000-05b010000000'
HU_FE = '00000000-0000-0000-0000-05b011000000'
HU_BU = '00000000-0000-0000-0000-05b012000000'
HU_BA = '00000000-0000-0000-0000-05b013000000'
HU_BK = '00000000-0000-0000-0000-05b014000000'
class IDRegion(Enum):
ID_SU = '00000000-0000-0000-0000-05c001000000'
ID_AC = '00000000-0000-0000-0000-05c002000000'
ID_YO = '00000000-0000-0000-0000-05c003000000'
ID_SS = '00000000-0000-0000-0000-05c004000000'
ID_SB = '00000000-0000-0000-0000-05c005000000'
ID_SA = '00000000-0000-0000-0000-05c006000000'
ID_SG = '00000000-0000-0000-0000-05c007000000'
ID_ST = '00000000-0000-0000-0000-05c008000000'
ID_SN = '00000000-0000-0000-0000-05c009000000'
ID_RI = '00000000-0000-0000-0000-05c00a000000'
ID_NT = '00000000-0000-0000-0000-05c00b000000'
ID_NB = '00000000-0000-0000-0000-05c00c000000'
ID_MA = '00000000-0000-0000-0000-05c00d000000'
ID_LA = '00000000-0000-0000-0000-05c00e000000'
ID_KI = '00000000-0000-0000-0000-05c00f000000'
ID_KT = '00000000-0000-0000-0000-05c010000000'
ID_KS = '00000000-0000-0000-0000-05c011000000'
ID_KB = '00000000-0000-0000-0000-05c012000000'
ID_JI = '00000000-0000-0000-0000-05c013000000'
ID_JT = '00000000-0000-0000-0000-05c014000000'
ID_JB = '00000000-0000-0000-0000-05c015000000'
ID_JA = '00000000-0000-0000-0000-05c016000000'
ID_JK = '00000000-0000-0000-0000-05c017000000'
ID_PA = '00000000-0000-0000-0000-05c018000000'
ID_BE = '00000000-0000-0000-0000-05c019000000'
ID_BA = '00000000-0000-0000-0000-05c01a000000'
ID_BT = '00000000-0000-0000-0000-05c01b000000'
ID_GO = '00000000-0000-0000-0000-05c01c000000'
ID_BB = '00000000-0000-0000-0000-05c01d000000'
ID_MU = '00000000-0000-0000-0000-05c01e000000'
ID_SR = '00000000-0000-0000-0000-05c020000000'
ID_KR = '00000000-0000-0000-0000-05c021000000'
ID_KU = '00000000-0000-0000-0000-05c022000000'
class IERegion(Enum):
IE_C = '00000000-0000-0000-0000-05d001000000'
IE_L = '00000000-0000-0000-0000-05d002000000'
IE_M = '00000000-0000-0000-0000-05d003000000'
IE_U = '00000000-0000-0000-0000-05d004000000'
class ILRegion(Enum):
IL_JM = '00000000-0000-0000-0000-05e001000000'
IL_TA = '00000000-0000-0000-0000-05e002000000'
IL_HA = '00000000-0000-0000-0000-05e003000000'
IL_Z = '00000000-0000-0000-0000-05e004000000'
IL_M = '00000000-0000-0000-0000-05e005000000'
IL_D = '00000000-0000-0000-0000-05e006000000'
class INRegion(Enum):
IN_WB = '00000000-0000-0000-0000-060001000000'
IN_UP = '00000000-0000-0000-0000-060002000000'
IN_TR = '00000000-0000-0000-0000-060003000000'
IN_TG = '00000000-0000-0000-0000-060004000000'
IN_TN = '00000000-0000-0000-0000-060005000000'
IN_SK = '00000000-0000-0000-0000-060006000000'
IN_RJ = '00000000-0000-0000-0000-060007000000'
IN_PB = '00000000-0000-0000-0000-060008000000'
IN_PY = '00000000-0000-0000-0000-060009000000'
IN_OR = '00000000-0000-0000-0000-06000a000000'
IN_NL = '00000000-0000-0000-0000-06000b000000'
IN_MZ = '00000000-0000-0000-0000-06000c000000'
IN_ML = '00000000-0000-0000-0000-06000d000000'
IN_MN = '00000000-0000-0000-0000-06000e000000'
IN_MH = '00000000-0000-0000-0000-06000f000000'
IN_MP = '00000000-0000-0000-0000-060010000000'
IN_LD = '00000000-0000-0000-0000-060011000000'
IN_KL = '00000000-0000-0000-0000-060012000000'
IN_KA = '00000000-0000-0000-0000-060013000000'
IN_JK = '00000000-0000-0000-0000-060014000000'
IN_HP = '00000000-0000-0000-0000-060015000000'
IN_HR = '00000000-0000-0000-0000-060016000000'
IN_GJ = '00000000-0000-0000-0000-060017000000'
IN_DD = '00000000-0000-0000-0000-060018000000'
IN_GA = '00000000-0000-0000-0000-060019000000'
IN_DL = '00000000-0000-0000-0000-06001a000000'
IN_DN = '00000000-0000-0000-0000-06001b000000'
IN_CH = '00000000-0000-0000-0000-06001c000000'
IN_BR = '00000000-0000-0000-0000-06001d000000'
IN_AS = '00000000-0000-0000-0000-06001e000000'
IN_AR = '00000000-0000-0000-0000-06001f000000'
IN_AP = '00000000-0000-0000-0000-060020000000'
IN_AN = '00000000-0000-0000-0000-060021000000'
IN_CT = '00000000-0000-0000-0000-060022000000'
IN_JH = '00000000-0000-0000-0000-060023000000'
IN_UL = '00000000-0000-0000-0000-060024000000'
class IQRegion(Enum):
IQ_BA = '00000000-0000-0000-0000-062001000000'
IQ_WA = '00000000-0000-0000-0000-062002000000'
IQ_SD = '00000000-0000-0000-0000-062003000000'
IQ_NI = '00000000-0000-0000-0000-062004000000'
IQ_MA = '00000000-0000-0000-0000-062005000000'
IQ_KA = '00000000-0000-0000-0000-062006000000'
IQ_AR = '00000000-0000-0000-0000-062007000000'
IQ_DI = '00000000-0000-0000-0000-062008000000'
IQ_DQ = '00000000-0000-0000-0000-062009000000'
IQ_DA = '00000000-0000-0000-0000-06200a000000'
IQ_BG = '00000000-0000-0000-0000-06200b000000'
IQ_BB = '00000000-0000-0000-0000-06200c000000'
IQ_KI = '00000000-0000-0000-0000-06200d000000'
IQ_SU = '00000000-0000-0000-0000-06200e000000'
IQ_NA = '00000000-0000-0000-0000-06200f000000'
IQ_QA = '00000000-0000-0000-0000-062010000000'
IQ_MU = '00000000-0000-0000-0000-062011000000'
IQ_AN = '00000000-0000-0000-0000-062012000000'
class IRRegion(Enum):
IR_07 = '00000000-0000-0000-0000-063001000000'
IR_11 = '00000000-0000-0000-0000-063002000000'
IR_25 = '00000000-0000-0000-0000-063003000000'
IR_12 = '00000000-0000-0000-0000-063004000000'
IR_21 = '00000000-0000-0000-0000-063005000000'
IR_22 = '00000000-0000-0000-0000-063006000000'
IR_20 = '00000000-0000-0000-0000-063007000000'
IR_16 = '00000000-0000-0000-0000-063008000000'
IR_18 = '00000000-0000-0000-0000-063009000000'
IR_10 = '00000000-0000-0000-0000-06300a000000'
IR_17 = '00000000-0000-0000-0000-06300b000000'
IR_15 = '00000000-0000-0000-0000-06300c000000'
IR_05 = '00000000-0000-0000-0000-06300d000000'
IR_23 = '00000000-0000-0000-0000-06300e000000'
IR_24 = '00000000-0000-0000-0000-06300f000000'
IR_19 = '00000000-0000-0000-0000-063010000000'
IR_14 = '00000000-0000-0000-0000-063011000000'
IR_08 = '00000000-0000-0000-0000-063012000000'
IR_06 = '00000000-0000-0000-0000-063013000000'
IR_01 = '00000000-0000-0000-0000-063014000000'
IR_02 = '00000000-0000-0000-0000-063015000000'
IR_03 = '00000000-0000-0000-0000-063016000000'
IR_04 = '00000000-0000-0000-0000-063017000000'
IR_27 = '00000000-0000-0000-0000-063018000000'
IR_28 = '00000000-0000-0000-0000-063019000000'
IR_26 = '00000000-0000-0000-0000-06301a000000'
IR_13 = '00000000-0000-0000-0000-06301b000000'
IR_29 = '00000000-0000-0000-0000-06301c000000'
IR_30 = '00000000-0000-0000-0000-06301d000000'
IR_31 = '00000000-0000-0000-0000-06301e000000'
IR_44 = '00000000-0000-0000-0000-06301f000000'
class ISRegion(Enum):
IS_5 = '00000000-0000-0000-0000-064001000000'
IS_6 = '00000000-0000-0000-0000-064002000000'
IS_7 = '00000000-0000-0000-0000-064003000000'
IS_8 = '00000000-0000-0000-0000-064004000000'
IS_1 = '00000000-0000-0000-0000-064005000000'
IS_2 = '00000000-0000-0000-0000-064006000000'
IS_3 = '00000000-0000-0000-0000-064007000000'
IS_4 = '00000000-0000-0000-0000-064008000000'
class ITRegion(Enum):
IT_82 = '00000000-0000-0000-0000-065001000000'
IT_88 = '00000000-0000-0000-0000-065002000000'
IT_78 = '00000000-0000-0000-0000-065003000000'
IT_34 = '00000000-0000-0000-0000-065004000000'
IT_23 = '00000000-0000-0000-0000-065005000000'
IT_55 = '00000000-0000-0000-0000-065006000000'
IT_32 = '00000000-0000-0000-0000-065007000000'
IT_52 = '00000000-0000-0000-0000-065008000000'
IT_75 = '00000000-0000-0000-0000-065009000000'
IT_21 = '00000000-0000-0000-0000-06500a000000'
IT_67 = '00000000-0000-0000-0000-06500b000000'
IT_57 = '00000000-0000-0000-0000-06500c000000'
IT_25 = '00000000-0000-0000-0000-06500d000000'
IT_42 = '00000000-0000-0000-0000-06500e000000'
IT_62 = '00000000-0000-0000-0000-06500f000000'
IT_36 = '00000000-0000-0000-0000-065010000000'
IT_45 = '00000000-0000-0000-0000-065011000000'
IT_72 = '00000000-0000-0000-0000-065012000000'
IT_77 = '00000000-0000-0000-0000-065013000000'
IT_65 = '00000000-0000-0000-0000-065014000000'
class JMRegion(Enum):
JM_10 = '00000000-0000-0000-0000-067001000000'
JM_07 = '00000000-0000-0000-0000-067002000000'
JM_03 = '00000000-0000-0000-0000-067003000000'
JM_05 = '00000000-0000-0000-0000-067004000000'
JM_08 = '00000000-0000-0000-0000-067005000000'
JM_11 = '00000000-0000-0000-0000-067006000000'
JM_14 = '00000000-0000-0000-0000-067007000000'
JM_06 = '00000000-0000-0000-0000-067008000000'
JM_02 = '00000000-0000-0000-0000-067009000000'
JM_04 = '00000000-0000-0000-0000-06700a000000'
JM_12 = '00000000-0000-0000-0000-06700b000000'
JM_01 = '00000000-0000-0000-0000-06700c000000'
JM_09 = '00000000-0000-0000-0000-06700d000000'
JM_13 = '00000000-0000-0000-0000-06700e000000'
class JORegion(Enum):
JO_MN = '00000000-0000-0000-0000-068001000000'
JO_IR = '00000000-0000-0000-0000-068002000000'
JO_AZ = '00000000-0000-0000-0000-068003000000'
JO_AT = '00000000-0000-0000-0000-068004000000'
JO_AM = '00000000-0000-0000-0000-068005000000'
JO_MA = '00000000-0000-0000-0000-068006000000'
JO_KA = '00000000-0000-0000-0000-068007000000'
JO_BA = '00000000-0000-0000-0000-068008000000'
JO_AJ = '00000000-0000-0000-0000-068009000000'
JO_JA = '00000000-0000-0000-0000-06800a000000'
JO_AQ = '00000000-0000-0000-0000-06800b000000'
JO_MD = '00000000-0000-0000-0000-06800c000000'
class JPRegion(Enum):
JP_19 = '00000000-0000-0000-0000-069001000000'
JP_35 = '00000000-0000-0000-0000-069002000000'
JP_30 = '00000000-0000-0000-0000-069003000000'
JP_16 = '00000000-0000-0000-0000-069004000000'
JP_31 = '00000000-0000-0000-0000-069005000000'
JP_13 = '00000000-0000-0000-0000-069006000000'
JP_36 = '00000000-0000-0000-0000-069007000000'
JP_09 = '00000000-0000-0000-0000-069008000000'
JP_22 = '00000000-0000-0000-0000-069009000000'
JP_32 = '00000000-0000-0000-0000-06900a000000'
JP_25 = '00000000-0000-0000-0000-06900b000000'
JP_11 = '00000000-0000-0000-0000-06900c000000'
JP_41 = '00000000-0000-0000-0000-06900d000000'
JP_27 = '00000000-0000-0000-0000-06900e000000'
JP_47 = '00000000-0000-0000-0000-06900f000000'
JP_33 = '00000000-0000-0000-0000-069010000000'
JP_44 = '00000000-0000-0000-0000-069011000000'
JP_15 = '00000000-0000-0000-0000-069012000000'
JP_29 = '00000000-0000-0000-0000-069013000000'
JP_42 = '00000000-0000-0000-0000-069014000000'
JP_20 = '00000000-0000-0000-0000-069015000000'
JP_45 = '00000000-0000-0000-0000-069016000000'
JP_24 = '00000000-0000-0000-0000-069017000000'
JP_26 = '00000000-0000-0000-0000-069018000000'
JP_43 = '00000000-0000-0000-0000-069019000000'
JP_39 = '00000000-0000-0000-0000-06901a000000'
JP_14 = '00000000-0000-0000-0000-06901b000000'
JP_46 = '00000000-0000-0000-0000-06901c000000'
JP_37 = '00000000-0000-0000-0000-06901d000000'
JP_17 = '00000000-0000-0000-0000-06901e000000'
JP_28 = '00000000-0000-0000-0000-06901f000000'
JP_34 = '00000000-0000-0000-0000-069020000000'
JP_10 = '00000000-0000-0000-0000-069021000000'
JP_21 = '00000000-0000-0000-0000-069022000000'
JP_40 = '00000000-0000-0000-0000-069023000000'
JP_18 = '00000000-0000-0000-0000-069024000000'
JP_38 = '00000000-0000-0000-0000-069025000000'
JP_23 = '00000000-0000-0000-0000-069026000000'
JP_06 = '00000000-0000-0000-0000-069027000000'
JP_04 = '00000000-0000-0000-0000-069028000000'
JP_03 = '00000000-0000-0000-0000-069029000000'
JP_08 = '00000000-0000-0000-0000-06902a000000'
JP_07 = '00000000-0000-0000-0000-06902b000000'
JP_12 = '00000000-0000-0000-0000-06902c000000'
JP_05 = '00000000-0000-0000-0000-06902d000000'
JP_01 = '00000000-0000-0000-0000-06902e000000'
JP_02 = '00000000-0000-0000-0000-06902f000000'
class KERegion(Enum):
KE_47 = '00000000-0000-0000-0000-06a001000000'
KE_46 = '00000000-0000-0000-0000-06a002000000'
KE_44 = '00000000-0000-0000-0000-06a003000000'
KE_43 = '00000000-0000-0000-0000-06a004000000'
KE_42 = '00000000-0000-0000-0000-06a005000000'
KE_41 = '00000000-0000-0000-0000-06a006000000'
KE_40 = '00000000-0000-0000-0000-06a007000000'
KE_38 = '00000000-0000-0000-0000-06a008000000'
KE_37 = '00000000-0000-0000-0000-06a009000000'
KE_30 = '00000000-0000-0000-0000-06a00a000000'
KE_29 = '00000000-0000-0000-0000-06a00b000000'
KE_28 = '00000000-0000-0000-0000-06a00c000000'
KE_26 = '00000000-0000-0000-0000-06a00d000000'
KE_25 = '00000000-0000-0000-0000-06a00e000000'
KE_24 = '00000000-0000-0000-0000-06a00f000000'
KE_20 = '00000000-0000-0000-0000-06a010000000'
KE_19 = '00000000-0000-0000-0000-06a011000000'
KE_18 = '00000000-0000-0000-0000-06a012000000'
KE_17 = '00000000-0000-0000-0000-06a013000000'
KE_16 = '00000000-0000-0000-0000-06a014000000'
KE_15 = '00000000-0000-0000-0000-06a015000000'
KE_14 = '00000000-0000-0000-0000-06a016000000'
KE_13 = '00000000-0000-0000-0000-06a017000000'
KE_12 = '00000000-0000-0000-0000-06a018000000'
KE_11 = '00000000-0000-0000-0000-06a019000000'
KE_09 = '00000000-0000-0000-0000-06a01a000000'
KE_07 = '00000000-0000-0000-0000-06a01b000000'
KE_06 = '00000000-0000-0000-0000-06a01c000000'
KE_04 = '00000000-0000-0000-0000-06a01d000000'
KE_03 = '00000000-0000-0000-0000-06a01e000000'
KE_01 = '00000000-0000-0000-0000-06a01f000000'
KE_35 = '00000000-0000-0000-0000-06a020000000'
KE_45 = '00000000-0000-0000-0000-06a021000000'
KE_21 = '00000000-0000-0000-0000-06a022000000'
KE_22 = '00000000-0000-0000-0000-06a023000000'
KE_23 = '00000000-0000-0000-0000-06a024000000'
KE_05 = '00000000-0000-0000-0000-06a025000000'
KE_39 = '00000000-0000-0000-0000-06a026000000'
KE_10 = '00000000-0000-0000-0000-06a027000000'
KE_36 = '00000000-0000-0000-0000-06a028000000'
KE_08 = '00000000-0000-0000-0000-06a029000000'
KE_02 = '00000000-0000-0000-0000-06a02a000000'
KE_27 = '00000000-0000-0000-0000-06a02b000000'
KE_31 = '00000000-0000-0000-0000-06a02c000000'
KE_33 = '00000000-0000-0000-0000-06a02d000000'
KE_34 = '00000000-0000-0000-0000-06a02e000000'
KE_32 = '00000000-0000-0000-0000-06a02f000000'
class KGRegion(Enum):
KG_O = '00000000-0000-0000-0000-06b001000000'
KG_B = '00000000-0000-0000-0000-06b002000000'
KG_T = '00000000-0000-0000-0000-06b003000000'
KG_N = '00000000-0000-0000-0000-06b004000000'
KG_Y = '00000000-0000-0000-0000-06b005000000'
KG_GB = '00000000-0000-0000-0000-06b006000000'
KG_J = '00000000-0000-0000-0000-06b007000000'
KG_C = '00000000-0000-0000-0000-06b008000000'
KG_GO = '00000000-0000-0000-0000-06b009000000'
class KHRegion(Enum):
KH_15 = '00000000-0000-0000-0000-06c001000000'
KH_2 = '00000000-0000-0000-0000-06c002000000'
KH_21 = '00000000-0000-0000-0000-06c003000000'
KH_20 = '00000000-0000-0000-0000-06c004000000'
KH_19 = '00000000-0000-0000-0000-06c005000000'
KH_22 = '00000000-0000-0000-0000-06c006000000'
KH_17 = '00000000-0000-0000-0000-06c007000000'
KH_16 = '00000000-0000-0000-0000-06c008000000'
KH_14 = '00000000-0000-0000-0000-06c009000000'
KH_13 = '00000000-0000-0000-0000-06c00a000000'
KH_12 = '00000000-0000-0000-0000-06c00b000000'
KH_24 = '00000000-0000-0000-0000-06c00c000000'
KH_11 = '00000000-0000-0000-0000-06c00d000000'
KH_10 = '00000000-0000-0000-0000-06c00e000000'
KH_23 = '00000000-0000-0000-0000-06c00f000000'
KH_9 = '00000000-0000-0000-0000-06c010000000'
KH_8 = '00000000-0000-0000-0000-06c011000000'
KH_7 = '00000000-0000-0000-0000-06c012000000'
KH_6 = '00000000-0000-0000-0000-06c013000000'
KH_5 = '00000000-0000-0000-0000-06c014000000'
KH_4 = '00000000-0000-0000-0000-06c015000000'
KH_3 = '00000000-0000-0000-0000-06c016000000'
KH_18 = '00000000-0000-0000-0000-06c017000000'
KH_1 = '00000000-0000-0000-0000-06c018000000'
KH_25 = '00000000-0000-0000-0000-06c019000000'
class KIRegion(Enum):
KI_G = '00000000-0000-0000-0000-06d001000000'
KI_L = '00000000-0000-0000-0000-06d002000000'
KI_P = '00000000-0000-0000-0000-06d003000000'
class KMRegion(Enum):
KM_M = '00000000-0000-0000-0000-06e001000000'
KM_G = '00000000-0000-0000-0000-06e002000000'
KM_A = '00000000-0000-0000-0000-06e003000000'
class KNRegion(Enum):
KN_15 = '00000000-0000-0000-0000-06f001000000'
KN_13 = '00000000-0000-0000-0000-06f002000000'
KN_12 = '00000000-0000-0000-0000-06f003000000'
KN_11 = '00000000-0000-0000-0000-06f004000000'
KN_10 = '00000000-0000-0000-0000-06f005000000'
KN_09 = '00000000-0000-0000-0000-06f006000000'
KN_08 = '00000000-0000-0000-0000-06f007000000'
KN_07 = '00000000-0000-0000-0000-06f008000000'
KN_06 = '00000000-0000-0000-0000-06f009000000'
KN_05 = '00000000-0000-0000-0000-06f00a000000'
KN_04 = '00000000-0000-0000-0000-06f00b000000'
KN_03 = '00000000-0000-0000-0000-06f00c000000'
KN_02 = '00000000-0000-0000-0000-06f00d000000'
KN_01 = '00000000-0000-0000-0000-06f00e000000'
class KPRegion(Enum):
KP_01 = '00000000-0000-0000-0000-070001000000'
KP_02 = '00000000-0000-0000-0000-070002000000'
KP_03 = '00000000-0000-0000-0000-070003000000'
KP_07 = '00000000-0000-0000-0000-070004000000'
KP_05 = '00000000-0000-0000-0000-070005000000'
KP_06 = '00000000-0000-0000-0000-070006000000'
KP_08 = '00000000-0000-0000-0000-070007000000'
KP_10 = '00000000-0000-0000-0000-070008000000'
KP_09 = '00000000-0000-0000-0000-070009000000'
KP_04 = '00000000-0000-0000-0000-07000a000000'
KP_13 = '00000000-0000-0000-0000-07000b000000'
class KRRegion(Enum):
KR_31 = '00000000-0000-0000-0000-071001000000'
KR_30 = '00000000-0000-0000-0000-071002000000'
KR_27 = '00000000-0000-0000-0000-071003000000'
KR_11 = '00000000-0000-0000-0000-071004000000'
KR_26 = '00000000-0000-0000-0000-071005000000'
KR_47 = '00000000-0000-0000-0000-071006000000'
KR_41 = '00000000-0000-0000-0000-071007000000'
KR_29 = '00000000-0000-0000-0000-071008000000'
KR_42 = '00000000-0000-0000-0000-071009000000'
KR_28 = '00000000-0000-0000-0000-07100a000000'
KR_44 = '00000000-0000-0000-0000-07100b000000'
KR_43 = '00000000-0000-0000-0000-07100c000000'
KR_46 = '00000000-0000-0000-0000-07100d000000'
KR_45 = '00000000-0000-0000-0000-07100e000000'
KR_49 = '00000000-0000-0000-0000-07100f000000'
KR_48 = '00000000-0000-0000-0000-071010000000'
KR_22 = '00000000-0000-0000-0000-071011000000'
class KWRegion(Enum):
KW_HA = '00000000-0000-0000-0000-072001000000'
KW_KU = '00000000-0000-0000-0000-072002000000'
KW_JA = '00000000-0000-0000-0000-072003000000'
KW_FA = '00000000-0000-0000-0000-072004000000'
KW_AH = '00000000-0000-0000-0000-072005000000'
KW_MU = '00000000-0000-0000-0000-072006000000'
class KZRegion(Enum):
KZ_ZAP = '00000000-0000-0000-0000-074001000000'
KZ_MAN = '00000000-0000-0000-0000-074002000000'
KZ_ATY = '00000000-0000-0000-0000-074003000000'
KZ_AKT = '00000000-0000-0000-0000-074004000000'
KZ_VOS = '00000000-0000-0000-0000-074005000000'
KZ_AKM = '00000000-0000-0000-0000-074006000000'
KZ_SEV = '00000000-0000-0000-0000-074007000000'
KZ_PAV = '00000000-0000-0000-0000-074008000000'
KZ_KZY = '00000000-0000-0000-0000-074009000000'
KZ_KUS = '00000000-0000-0000-0000-07400a000000'
KZ_KAR = '00000000-0000-0000-0000-07400b000000'
KZ_ZHA = '00000000-0000-0000-0000-07400c000000'
KZ_YUZ = '00000000-0000-0000-0000-07400d000000'
KZ_ALA = '00000000-0000-0000-0000-07400e000000'
KZ_ALM = '00000000-0000-0000-0000-07400f000000'
KZ_BAY = '00000000-0000-0000-0000-074010000000'
KZ_AST = '00000000-0000-0000-0000-074011000000'
class LARegion(Enum):
LA_XI = '00000000-0000-0000-0000-075001000000'
LA_XA = '00000000-0000-0000-0000-075002000000'
LA_VI = '00000000-0000-0000-0000-075003000000'
LA_SV = '00000000-0000-0000-0000-075004000000'
LA_SL = '00000000-0000-0000-0000-075005000000'
LA_PH = '00000000-0000-0000-0000-075006000000'
LA_OU = '00000000-0000-0000-0000-075007000000'
LA_LP = '00000000-0000-0000-0000-075008000000'
LA_LM = '00000000-0000-0000-0000-075009000000'
LA_KH = '00000000-0000-0000-0000-07500a000000'
LA_HO = '00000000-0000-0000-0000-07500b000000'
LA_CH = '00000000-0000-0000-0000-07500c000000'
LA_AT = '00000000-0000-0000-0000-07500d000000'
LA_XE = '00000000-0000-0000-0000-07500e000000'
LA_BK = '00000000-0000-0000-0000-07500f000000'
LA_BL = '00000000-0000-0000-0000-075010000000'
LA_VT = '00000000-0000-0000-0000-075011000000'
LA_XS = '00000000-0000-0000-0000-075012000000'
class LBRegion(Enum):
LB_JL = '00000000-0000-0000-0000-076001000000'
LB_BA = '00000000-0000-0000-0000-076002000000'
LB_AS = '00000000-0000-0000-0000-076003000000'
LB_JA = '00000000-0000-0000-0000-076004000000'
LB_BI = '00000000-0000-0000-0000-076005000000'
LB_NA = '00000000-0000-0000-0000-076006000000'
LB_AK = '00000000-0000-0000-0000-076007000000'
LB_BH = '00000000-0000-0000-0000-076008000000'
class LCRegion(Enum):
LC_11 = '00000000-0000-0000-0000-077001000000'
LC_10 = '00000000-0000-0000-0000-077002000000'
LC_08 = '00000000-0000-0000-0000-077003000000'
LC_07 = '00000000-0000-0000-0000-077004000000'
LC_06 = '00000000-0000-0000-0000-077005000000'
LC_05 = '00000000-0000-0000-0000-077006000000'
LC_03 = '00000000-0000-0000-0000-077007000000'
LC_02 = '00000000-0000-0000-0000-077008000000'
LC_01 = '00000000-0000-0000-0000-077009000000'
LC_12 = '00000000-0000-0000-0000-07700a000000'
class LIRegion(Enum):
LI_11 = '00000000-0000-0000-0000-078001000000'
LI_10 = '00000000-0000-0000-0000-078002000000'
LI_09 = '00000000-0000-0000-0000-078003000000'
LI_08 = '00000000-0000-0000-0000-078004000000'
LI_07 = '00000000-0000-0000-0000-078005000000'
LI_06 = '00000000-0000-0000-0000-078006000000'
LI_05 = '00000000-0000-0000-0000-078007000000'
LI_04 = '00000000-0000-0000-0000-078008000000'
LI_03 = '00000000-0000-0000-0000-078009000000'
LI_02 = '00000000-0000-0000-0000-07800a000000'
LI_01 = '00000000-0000-0000-0000-07800b000000'
class LKRegion(Enum):
LK_1 = '00000000-0000-0000-0000-079001000000'
LK_8 = '00000000-0000-0000-0000-079002000000'
LK_3 = '00000000-0000-0000-0000-079003000000'
LK_9 = '00000000-0000-0000-0000-079004000000'
LK_6 = '00000000-0000-0000-0000-079005000000'
LK_7 = '00000000-0000-0000-0000-079006000000'
LK_2 = '00000000-0000-0000-0000-079007000000'
LK_4 = '00000000-0000-0000-0000-079008000000'
LK_5 = '00000000-0000-0000-0000-079009000000'
class LRRegion(Enum):
LR_SI = '00000000-0000-0000-0000-07a001000000'
LR_NI = '00000000-0000-0000-0000-07a002000000'
LR_MO = '00000000-0000-0000-0000-07a003000000'
LR_MY = '00000000-0000-0000-0000-07a004000000'
LR_LO = '00000000-0000-0000-0000-07a005000000'
LR_GG = '00000000-0000-0000-0000-07a006000000'
LR_CM = '00000000-0000-0000-0000-07a007000000'
LR_GB = '00000000-0000-0000-0000-07a008000000'
LR_BG = '00000000-0000-0000-0000-07a009000000'
LR_BM = '00000000-0000-0000-0000-07a00a000000'
LR_GK = '00000000-0000-0000-0000-07a00b000000'
LR_MG = '00000000-0000-0000-0000-07a00c000000'
LR_RI = '00000000-0000-0000-0000-07a00d000000'
LR_GP = '00000000-0000-0000-0000-07a00e000000'
LR_RG = '00000000-0000-0000-0000-07a00f000000'
class LSRegion(Enum):
LS_K = '00000000-0000-0000-0000-07b001000000'
LS_G = '00000000-0000-0000-0000-07b002000000'
LS_H = '00000000-0000-0000-0000-07b003000000'
LS_J = '00000000-0000-0000-0000-07b004000000'
LS_F = '00000000-0000-0000-0000-07b005000000'
LS_A = '00000000-0000-0000-0000-07b006000000'
LS_E = '00000000-0000-0000-0000-07b007000000'
LS_C = '00000000-0000-0000-0000-07b008000000'
LS_B = '00000000-0000-0000-0000-07b009000000'
LS_D = '00000000-0000-0000-0000-07b00a000000'
class LTRegion(Enum):
LT_AL = '00000000-0000-0000-0000-07c001000000'
LT_KU = '00000000-0000-0000-0000-07c002000000'
LT_KL = '00000000-0000-0000-0000-07c003000000'
LT_MR = '00000000-0000-0000-0000-07c004000000'
LT_PN = '00000000-0000-0000-0000-07c005000000'
LT_SA = '00000000-0000-0000-0000-07c006000000'
LT_TA = '00000000-0000-0000-0000-07c007000000'
LT_TE = '00000000-0000-0000-0000-07c008000000'
LT_UT = '00000000-0000-0000-0000-07c009000000'
LT_VL = '00000000-0000-0000-0000-07c00a000000'
class LURegion(Enum):
LU_WI = '00000000-0000-0000-0000-07d001000000'
LU_VD = '00000000-0000-0000-0000-07d002000000'
LU_RM = '00000000-0000-0000-0000-07d003000000'
LU_RD = '00000000-0000-0000-0000-07d004000000'
LU_ME = '00000000-0000-0000-0000-07d005000000'
LU_LU = '00000000-0000-0000-0000-07d006000000'
LU_GR = '00000000-0000-0000-0000-07d007000000'
LU_ES = '00000000-0000-0000-0000-07d008000000'
LU_EC = '00000000-0000-0000-0000-07d009000000'
LU_DI = '00000000-0000-0000-0000-07d00a000000'
LU_CL = '00000000-0000-0000-0000-07d00b000000'
LU_CA = '00000000-0000-0000-0000-07d00c000000'
class LVRegion(Enum):
LV_106 = '00000000-0000-0000-0000-07e001000000'
LV_VEN = '00000000-0000-0000-0000-07e002000000'
LV_VMR = '00000000-0000-0000-0000-07e003000000'
LV_101 = '00000000-0000-0000-0000-07e004000000'
LV_099 = '00000000-0000-0000-0000-07e005000000'
LV_097 = '00000000-0000-0000-0000-07e006000000'
LV_088 = '00000000-0000-0000-0000-07e007000000'
LV_RIX = '00000000-0000-0000-0000-07e008000000'
LV_077 = '00000000-0000-0000-0000-07e009000000'
LV_REZ = '00000000-0000-0000-0000-07e00a000000'
LV_073 = '00000000-0000-0000-0000-07e00b000000'
LV_067 = '00000000-0000-0000-0000-07e00c000000'
LV_059 = '00000000-0000-0000-0000-07e00d000000'
LV_058 = '00000000-0000-0000-0000-07e00e000000'
LV_054 = '00000000-0000-0000-0000-07e00f000000'
LV_LPX = '00000000-0000-0000-0000-07e010000000'
LV_050 = '00000000-0000-0000-0000-07e011000000'
LV_047 = '00000000-0000-0000-0000-07e012000000'
LV_JUR = '00000000-0000-0000-0000-07e013000000'
LV_041 = '00000000-0000-0000-0000-07e014000000'
LV_JEL = '00000000-0000-0000-0000-07e015000000'
LV_042 = '00000000-0000-0000-0000-07e016000000'
LV_033 = '00000000-0000-0000-0000-07e017000000'
LV_026 = '00000000-0000-0000-0000-07e018000000'
LV_025 = '00000000-0000-0000-0000-07e019000000'
LV_DGV = '00000000-0000-0000-0000-07e01a000000'
LV_022 = '00000000-0000-0000-0000-07e01b000000'
LV_016 = '00000000-0000-0000-0000-07e01c000000'
LV_015 = '00000000-0000-0000-0000-07e01d000000'
LV_007 = '00000000-0000-0000-0000-07e01e000000'
LV_002 = '00000000-0000-0000-0000-07e01f000000'
LV_027 = '00000000-0000-0000-0000-07e020000000'
LV_006 = '00000000-0000-0000-0000-07e021000000'
LV_071 = '00000000-0000-0000-0000-07e022000000'
LV_066 = '00000000-0000-0000-0000-07e023000000'
LV_081 = '00000000-0000-0000-0000-07e024000000'
LV_032 = '00000000-0000-0000-0000-07e025000000'
LV_028 = '00000000-0000-0000-0000-07e026000000'
LV_003 = '00000000-0000-0000-0000-07e027000000'
LV_074 = '00000000-0000-0000-0000-07e028000000'
LV_100 = '00000000-0000-0000-0000-07e029000000'
LV_093 = '00000000-0000-0000-0000-07e02a000000'
LV_018 = '00000000-0000-0000-0000-07e02b000000'
LV_079 = '00000000-0000-0000-0000-07e02c000000'
LV_043 = '00000000-0000-0000-0000-07e02d000000'
LV_010 = '00000000-0000-0000-0000-07e02e000000'
LV_040 = '00000000-0000-0000-0000-07e02f000000'
LV_029 = '00000000-0000-0000-0000-07e030000000'
LV_098 = '00000000-0000-0000-0000-07e031000000'
LV_069 = '00000000-0000-0000-0000-07e032000000'
LV_083 = '00000000-0000-0000-0000-07e033000000'
LV_012 = '00000000-0000-0000-0000-07e034000000'
LV_062 = '00000000-0000-0000-0000-07e035000000'
LV_068 = '00000000-0000-0000-0000-07e036000000'
LV_034 = '00000000-0000-0000-0000-07e037000000'
LV_052 = '00000000-0000-0000-0000-07e038000000'
LV_087 = '00000000-0000-0000-0000-07e039000000'
LV_013 = '00000000-0000-0000-0000-07e03a000000'
LV_095 = '00000000-0000-0000-0000-07e03b000000'
LV_020 = '00000000-0000-0000-0000-07e03c000000'
LV_011 = '00000000-0000-0000-0000-07e03d000000'
LV_031 = '00000000-0000-0000-0000-07e03e000000'
LV_105 = '00000000-0000-0000-0000-07e03f000000'
LV_051 = '00000000-0000-0000-0000-07e040000000'
LV_053 = '00000000-0000-0000-0000-07e041000000'
LV_092 = '00000000-0000-0000-0000-07e042000000'
LV_038 = '00000000-0000-0000-0000-07e043000000'
LV_065 = '00000000-0000-0000-0000-07e044000000'
LV_107 = '00000000-0000-0000-0000-07e045000000'
LV_085 = '00000000-0000-0000-0000-07e046000000'
LV_JKB = '00000000-0000-0000-0000-07e047000000'
LV_004 = '00000000-0000-0000-0000-07e048000000'
LV_036 = '00000000-0000-0000-0000-07e049000000'
LV_103 = '00000000-0000-0000-0000-07e04a000000'
LV_056 = '00000000-0000-0000-0000-07e04b000000'
LV_102 = '00000000-0000-0000-0000-07e04c000000'
LV_109 = '00000000-0000-0000-0000-07e04d000000'
LV_078 = '00000000-0000-0000-0000-07e04e000000'
LV_001 = '00000000-0000-0000-0000-07e04f000000'
LV_023 = '00000000-0000-0000-0000-07e050000000'
LV_110 = '00000000-0000-0000-0000-07e051000000'
LV_108 = '00000000-0000-0000-0000-07e052000000'
LV_014 = '00000000-0000-0000-0000-07e053000000'
LV_024 = '00000000-0000-0000-0000-07e054000000'
LV_044 = '00000000-0000-0000-0000-07e055000000'
LV_082 = '00000000-0000-0000-0000-07e056000000'
LV_021 = '00000000-0000-0000-0000-07e057000000'
LV_057 = '00000000-0000-0000-0000-07e058000000'
LV_049 = '00000000-0000-0000-0000-07e059000000'
LV_072 = '00000000-0000-0000-0000-07e05a000000'
LV_046 = '00000000-0000-0000-0000-07e05b000000'
LV_035 = '00000000-0000-0000-0000-07e05c000000'
LV_080 = '00000000-0000-0000-0000-07e05d000000'
LV_037 = '00000000-0000-0000-0000-07e05e000000'
LV_048 = '00000000-0000-0000-0000-07e05f000000'
LV_091 = '00000000-0000-0000-0000-07e060000000'
LV_055 = '00000000-0000-0000-0000-07e061000000'
LV_061 = '00000000-0000-0000-0000-07e062000000'
LV_090 = '00000000-0000-0000-0000-07e063000000'
LV_089 = '00000000-0000-0000-0000-07e064000000'
LV_086 = '00000000-0000-0000-0000-07e065000000'
LV_005 = '00000000-0000-0000-0000-07e066000000'
LV_064 = '00000000-0000-0000-0000-07e067000000'
LV_084 = '00000000-0000-0000-0000-07e068000000'
LV_060 = '00000000-0000-0000-0000-07e069000000'
LV_019 = '00000000-0000-0000-0000-07e06a000000'
LV_070 = '00000000-0000-0000-0000-07e06b000000'
LV_045 = '00000000-0000-0000-0000-07e06c000000'
LV_008 = '00000000-0000-0000-0000-07e06d000000'
LV_075 = '00000000-0000-0000-0000-07e06e000000'
LV_076 = '00000000-0000-0000-0000-07e06f000000'
LV_096 = '00000000-0000-0000-0000-07e070000000'
LV_017 = '00000000-0000-0000-0000-07e071000000'
LV_094 = '00000000-0000-0000-0000-07e072000000'
LV_039 = '00000000-0000-0000-0000-07e073000000'
LV_030 = '00000000-0000-0000-0000-07e074000000'
LV_104 = '00000000-0000-0000-0000-07e075000000'
LV_009 = '00000000-0000-0000-0000-07e076000000'
LV_063 = '00000000-0000-0000-0000-07e077000000'
class LYRegion(Enum):
LY_DR = '00000000-0000-0000-0000-07f001000000'
LY_BA = '00000000-0000-0000-0000-07f002000000'
LY_MJ = '00000000-0000-0000-0000-07f003000000'
LY_KF = '00000000-0000-0000-0000-07f004000000'
LY_JA = '00000000-0000-0000-0000-07f005000000'
LY_TB = '00000000-0000-0000-0000-07f006000000'
LY_SR = '00000000-0000-0000-0000-07f007000000'
LY_SB = '00000000-0000-0000-0000-07f008000000'
LY_NL = '00000000-0000-0000-0000-07f009000000'
LY_MQ = '00000000-0000-0000-0000-07f00a000000'
LY_MI = '00000000-0000-0000-0000-07f00b000000'
LY_GT = '00000000-0000-0000-0000-07f00c000000'
LY_ZA = '00000000-0000-0000-0000-07f00d000000'
LY_WS = '00000000-0000-0000-0000-07f00e000000'
LY_JU = '00000000-0000-0000-0000-07f00f000000'
LY_NQ = '00000000-0000-0000-0000-07f010000000'
LY_BU = '00000000-0000-0000-0000-07f011000000'
LY_JG = '00000000-0000-0000-0000-07f012000000'
LY_JI = '00000000-0000-0000-0000-07f013000000'
LY_MB = '00000000-0000-0000-0000-07f014000000'
LY_WA = '00000000-0000-0000-0000-07f015000000'
LY_WD = '00000000-0000-0000-0000-07f016000000'
class MARegion(Enum):
MA_01 = '00000000-0000-0000-0000-080001000000'
MA_02 = '00000000-0000-0000-0000-080002000000'
MA_03 = '00000000-0000-0000-0000-080003000000'
MA_04 = '00000000-0000-0000-0000-080004000000'
MA_05 = '00000000-0000-0000-0000-080005000000'
MA_06 = '00000000-0000-0000-0000-080006000000'
MA_07 = '00000000-0000-0000-0000-080007000000'
MA_08 = '00000000-0000-0000-0000-080008000000'
MA_09 = '00000000-0000-0000-0000-080009000000'
MA_10 = '00000000-0000-0000-0000-08000a000000'
MA_11 = '00000000-0000-0000-0000-08000b000000'
MA_12 = '00000000-0000-0000-0000-08000c000000'
class MDRegion(Enum):
MD_ED = '00000000-0000-0000-0000-082001000000'
MD_UN = '00000000-0000-0000-0000-082002000000'
MD_TE = '00000000-0000-0000-0000-082003000000'
MD_TA = '00000000-0000-0000-0000-082004000000'
MD_SV = '00000000-0000-0000-0000-082005000000'
MD_ST = '00000000-0000-0000-0000-082006000000'
MD_SO = '00000000-0000-0000-0000-082007000000'
MD_RI = '00000000-0000-0000-0000-082008000000'
MD_RE = '00000000-0000-0000-0000-082009000000'
MD_OR = '00000000-0000-0000-0000-08200a000000'
MD_OC = '00000000-0000-0000-0000-08200b000000'
MD_AN = '00000000-0000-0000-0000-08200c000000'
MD_NI = '00000000-0000-0000-0000-08200d000000'
MD_LE = '00000000-0000-0000-0000-08200e000000'
MD_SI = '00000000-0000-0000-0000-08200f000000'
MD_CR = '00000000-0000-0000-0000-082010000000'
MD_IA = '00000000-0000-0000-0000-082011000000'
MD_CU = '00000000-0000-0000-0000-082012000000'
MD_CS = '00000000-0000-0000-0000-082013000000'
MD_CT = '00000000-0000-0000-0000-082014000000'
MD_CL = '00000000-0000-0000-0000-082015000000'
MD_CA = '00000000-0000-0000-0000-082016000000'
MD_GL = '00000000-0000-0000-0000-082017000000'
MD_FL = '00000000-0000-0000-0000-082018000000'
MD_FA = '00000000-0000-0000-0000-082019000000'
MD_DU = '00000000-0000-0000-0000-08201a000000'
MD_DR = '00000000-0000-0000-0000-08201b000000'
MD_DO = '00000000-0000-0000-0000-08201c000000'
MD_CM = '00000000-0000-0000-0000-08201d000000'
MD_BR = '00000000-0000-0000-0000-08201e000000'
MD_BS = '00000000-0000-0000-0000-08201f000000'
MD_HI = '00000000-0000-0000-0000-082020000000'
MD_SD = '00000000-0000-0000-0000-082021000000'
MD_SN = '00000000-0000-0000-0000-082022000000'
MD_GA = '00000000-0000-0000-0000-082023000000'
MD_BD = '00000000-0000-0000-0000-082024000000'
MD_BA = '00000000-0000-0000-0000-082025000000'
class MERegion(Enum):
ME_17 = '00000000-0000-0000-0000-083001000000'
ME_21 = '00000000-0000-0000-0000-083002000000'
ME_20 = '00000000-0000-0000-0000-083003000000'
ME_19 = '00000000-0000-0000-0000-083004000000'
ME_16 = '00000000-0000-0000-0000-083005000000'
ME_18 = '00000000-0000-0000-0000-083006000000'
ME_15 = '00000000-0000-0000-0000-083007000000'
ME_14 = '00000000-0000-0000-0000-083008000000'
ME_13 = '00000000-0000-0000-0000-083009000000'
ME_12 = '00000000-0000-0000-0000-08300a000000'
ME_11 = '00000000-0000-0000-0000-08300b000000'
ME_10 = '00000000-0000-0000-0000-08300c000000'
ME_09 = '00000000-0000-0000-0000-08300d000000'
ME_03 = '00000000-0000-0000-0000-08300e000000'
ME_08 = '00000000-0000-0000-0000-08300f000000'
ME_07 = '00000000-0000-0000-0000-083010000000'
ME_06 = '00000000-0000-0000-0000-083011000000'
ME_05 = '00000000-0000-0000-0000-083012000000'
ME_04 = '00000000-0000-0000-0000-083013000000'
ME_02 = '00000000-0000-0000-0000-083014000000'
ME_01 = '00000000-0000-0000-0000-083015000000'
ME_22 = '00000000-0000-0000-0000-083016000000'
ME_23 = '00000000-0000-0000-0000-083017000000'
class MGRegion(Enum):
MG_M = '00000000-0000-0000-0000-08400c000000'
MG_D = '00000000-0000-0000-0000-08400d000000'
class MHRegion(Enum):
MH_ALL = '00000000-0000-0000-0000-085002000000'
MH_ALK = '00000000-0000-0000-0000-085003000000'
MH_ARN = '00000000-0000-0000-0000-085004000000'
MH_AUR = '00000000-0000-0000-0000-085005000000'
MH_EBO = '00000000-0000-0000-0000-085008000000'
MH_ENI = '00000000-0000-0000-0000-085009000000'
MH_JAL = '00000000-0000-0000-0000-08500b000000'
MH_KWA = '00000000-0000-0000-0000-08500c000000'
MH_LAE = '00000000-0000-0000-0000-08500d000000'
MH_LIK = '00000000-0000-0000-0000-08500e000000'
MH_MAJ = '00000000-0000-0000-0000-08500f000000'
MH_MAL = '00000000-0000-0000-0000-085010000000'
MH_MIL = '00000000-0000-0000-0000-085011000000'
MH_NMK = '00000000-0000-0000-0000-085012000000'
MH_NMU = '00000000-0000-0000-0000-085013000000'
MH_RON = '00000000-0000-0000-0000-085014000000'
MH_UJA = '00000000-0000-0000-0000-085018000000'
MH_UTI = '00000000-0000-0000-0000-08501a000000'
MH_WTH = '00000000-0000-0000-0000-08501b000000'
MH_WTJ = '00000000-0000-0000-0000-08501c000000'
MH_JAB = '00000000-0000-0000-0000-08501d000000'
MH_KIL = '00000000-0000-0000-0000-08501f000000'
MH_LIB = '00000000-0000-0000-0000-085020000000'
MH_MEJ = '00000000-0000-0000-0000-085021000000'
class MKRegion(Enum):
MK_10 = '00000000-0000-0000-0000-086001000000'
MK_66 = '00000000-0000-0000-0000-086002000000'
MK_43 = '00000000-0000-0000-0000-086003000000'
MK_60 = '00000000-0000-0000-0000-086004000000'
MK_56 = '00000000-0000-0000-0000-086005000000'
MK_07 = '00000000-0000-0000-0000-086006000000'
MK_11 = '00000000-0000-0000-0000-086007000000'
MK_26 = '00000000-0000-0000-0000-086008000000'
MK_05 = '00000000-0000-0000-0000-086009000000'
MK_41 = '00000000-0000-0000-0000-08600a000000'
MK_51 = '00000000-0000-0000-0000-08600b000000'
MK_33 = '00000000-0000-0000-0000-08600c000000'
MK_37 = '00000000-0000-0000-0000-08600d000000'
MK_24 = '00000000-0000-0000-0000-08600e000000'
MK_67 = '00000000-0000-0000-0000-08600f000000'
MK_20 = '00000000-0000-0000-0000-086010000000'
MK_49 = '00000000-0000-0000-0000-086011000000'
MK_81 = '00000000-0000-0000-0000-086012000000'
MK_55 = '00000000-0000-0000-0000-086013000000'
MK_03 = '00000000-0000-0000-0000-086014000000'
MK_04 = '00000000-0000-0000-0000-086015000000'
MK_53 = '00000000-0000-0000-0000-086016000000'
MK_02 = '00000000-0000-0000-0000-086017000000'
MK_06 = '00000000-0000-0000-0000-086018000000'
MK_08 = '00000000-0000-0000-0000-086019000000'
MK_79 = '00000000-0000-0000-0000-08601a000000'
MK_80 = '00000000-0000-0000-0000-08601b000000'
MK_77 = '00000000-0000-0000-0000-08601c000000'
MK_78 = '00000000-0000-0000-0000-08601d000000'
MK_82 = '00000000-0000-0000-0000-08601e000000'
MK_21 = '00000000-0000-0000-0000-08601f000000'
MK_23 = '00000000-0000-0000-0000-086020000000'
MK_25 = '00000000-0000-0000-0000-086021000000'
MK_27 = '00000000-0000-0000-0000-086022000000'
MK_29 = '00000000-0000-0000-0000-086023000000'
MK_28 = '00000000-0000-0000-0000-086024000000'
MK_17 = '00000000-0000-0000-0000-086025000000'
MK_18 = '00000000-0000-0000-0000-086026000000'
MK_19 = '00000000-0000-0000-0000-086027000000'
MK_34 = '00000000-0000-0000-0000-086028000000'
MK_35 = '00000000-0000-0000-0000-086029000000'
MK_38 = '00000000-0000-0000-0000-08602a000000'
MK_36 = '00000000-0000-0000-0000-08602b000000'
MK_40 = '00000000-0000-0000-0000-08602c000000'
MK_39 = '00000000-0000-0000-0000-08602d000000'
MK_42 = '00000000-0000-0000-0000-08602e000000'
MK_44 = '00000000-0000-0000-0000-08602f000000'
MK_45 = '00000000-0000-0000-0000-086030000000'
MK_46 = '00000000-0000-0000-0000-086031000000'
MK_47 = '00000000-0000-0000-0000-086032000000'
MK_48 = '00000000-0000-0000-0000-086033000000'
MK_52 = '00000000-0000-0000-0000-086034000000'
MK_54 = '00000000-0000-0000-0000-086035000000'
MK_58 = '00000000-0000-0000-0000-086036000000'
MK_57 = '00000000-0000-0000-0000-086037000000'
MK_59 = '00000000-0000-0000-0000-086038000000'
MK_61 = '00000000-0000-0000-0000-086039000000'
MK_62 = '00000000-0000-0000-0000-08603a000000'
MK_63 = '00000000-0000-0000-0000-08603b000000'
MK_64 = '00000000-0000-0000-0000-08603c000000'
MK_65 = '00000000-0000-0000-0000-08603d000000'
MK_50 = '00000000-0000-0000-0000-08603e000000'
MK_68 = '00000000-0000-0000-0000-08603f000000'
MK_70 = '00000000-0000-0000-0000-086040000000'
MK_71 = '00000000-0000-0000-0000-086041000000'
MK_83 = '00000000-0000-0000-0000-086042000000'
MK_72 = '00000000-0000-0000-0000-086043000000'
MK_73 = '00000000-0000-0000-0000-086044000000'
MK_74 = '00000000-0000-0000-0000-086045000000'
MK_84 = '00000000-0000-0000-0000-086046000000'
MK_69 = '00000000-0000-0000-0000-086047000000'
MK_75 = '00000000-0000-0000-0000-086048000000'
MK_76 = '00000000-0000-0000-0000-086049000000'
MK_13 = '00000000-0000-0000-0000-08604a000000'
MK_12 = '00000000-0000-0000-0000-08604b000000'
MK_14 = '00000000-0000-0000-0000-08604c000000'
MK_15 = '00000000-0000-0000-0000-08604d000000'
MK_16 = '00000000-0000-0000-0000-08604e000000'
MK_31 = '00000000-0000-0000-0000-08604f000000'
MK_32 = '00000000-0000-0000-0000-086050000000'
MK_30 = '00000000-0000-0000-0000-086051000000'
MK_01 = '00000000-0000-0000-0000-086052000000'
MK_09 = '00000000-0000-0000-0000-086053000000'
MK_22 = '00000000-0000-0000-0000-086054000000'
class MLRegion(Enum):
ML_6 = '00000000-0000-0000-0000-087001000000'
ML_3 = '00000000-0000-0000-0000-087002000000'
ML_4 = '00000000-0000-0000-0000-087003000000'
ML_5 = '00000000-0000-0000-0000-087004000000'
ML_2 = '00000000-0000-0000-0000-087005000000'
ML_1 = '00000000-0000-0000-0000-087006000000'
ML_7 = '00000000-0000-0000-0000-087007000000'
ML_BKO = '00000000-0000-0000-0000-087008000000'
ML_8 = '00000000-0000-0000-0000-087009000000'
class MMRegion(Enum):
MM_05 = '00000000-0000-0000-0000-088001000000'
MM_17 = '00000000-0000-0000-0000-088002000000'
MM_01 = '00000000-0000-0000-0000-088003000000'
MM_06 = '00000000-0000-0000-0000-088004000000'
MM_16 = '00000000-0000-0000-0000-088005000000'
MM_02 = '00000000-0000-0000-0000-088006000000'
MM_15 = '00000000-0000-0000-0000-088007000000'
MM_04 = '00000000-0000-0000-0000-088008000000'
MM_03 = '00000000-0000-0000-0000-088009000000'
MM_12 = '00000000-0000-0000-0000-08800a000000'
MM_13 = '00000000-0000-0000-0000-08800b000000'
MM_11 = '00000000-0000-0000-0000-08800c000000'
MM_07 = '00000000-0000-0000-0000-08800d000000'
MM_14 = '00000000-0000-0000-0000-08800e000000'
MM_18 = '00000000-0000-0000-0000-08800f000000'
class MNRegion(Enum):
MN_046 = '00000000-0000-0000-0000-089001000000'
MN_043 = '00000000-0000-0000-0000-089002000000'
MN_065 = '00000000-0000-0000-0000-089003000000'
MN_057 = '00000000-0000-0000-0000-089004000000'
MN_071 = '00000000-0000-0000-0000-089005000000'
MN_069 = '00000000-0000-0000-0000-089006000000'
MN_1 = '00000000-0000-0000-0000-089007000000'
MN_047 = '00000000-0000-0000-0000-089008000000'
MN_051 = '00000000-0000-0000-0000-089009000000'
MN_049 = '00000000-0000-0000-0000-08900a000000'
MN_055 = '00000000-0000-0000-0000-08900b000000'
MN_053 = '00000000-0000-0000-0000-08900c000000'
MN_041 = '00000000-0000-0000-0000-08900d000000'
MN_039 = '00000000-0000-0000-0000-08900e000000'
MN_059 = '00000000-0000-0000-0000-08900f000000'
MN_063 = '00000000-0000-0000-0000-089010000000'
MN_061 = '00000000-0000-0000-0000-089011000000'
MN_067 = '00000000-0000-0000-0000-089012000000'
MN_073 = '00000000-0000-0000-0000-089013000000'
MN_037 = '00000000-0000-0000-0000-089014000000'
MN_064 = '00000000-0000-0000-0000-089015000000'
MN_035 = '00000000-0000-0000-0000-089016000000'
class MPRegion(Enum):
MP_100 = '00000000-0000-0000-0000-08b001000000'
MP_110 = '00000000-0000-0000-0000-08b002000000'
MP_120 = '00000000-0000-0000-0000-08b003000000'
MP_085 = '00000000-0000-0000-0000-08b004000000'
class MRRegion(Enum):
MR_06 = '00000000-0000-0000-0000-08d001000000'
MR_11 = '00000000-0000-0000-0000-08d002000000'
MR_09 = '00000000-0000-0000-0000-08d003000000'
MR_12 = '00000000-0000-0000-0000-08d004000000'
MR_02 = '00000000-0000-0000-0000-08d005000000'
MR_01 = '00000000-0000-0000-0000-08d006000000'
MR_10 = '00000000-0000-0000-0000-08d007000000'
MR_04 = '00000000-0000-0000-0000-08d008000000'
MR_08 = '00000000-0000-0000-0000-08d009000000'
MR_05 = '00000000-0000-0000-0000-08d00a000000'
MR_03 = '00000000-0000-0000-0000-08d00b000000'
MR_07 = '00000000-0000-0000-0000-08d00c000000'
MR_13 = '00000000-0000-0000-0000-08d00d000000'
MR_14 = '00000000-0000-0000-0000-08d00e000000'
MR_15 = '00000000-0000-0000-0000-08d00f000000'
class MTRegion(Enum):
MT_01 = '00000000-0000-0000-0000-08f001000000'
MT_02 = '00000000-0000-0000-0000-08f002000000'
MT_03 = '00000000-0000-0000-0000-08f003000000'
MT_04 = '00000000-0000-0000-0000-08f004000000'
MT_05 = '00000000-0000-0000-0000-08f005000000'
MT_06 = '00000000-0000-0000-0000-08f006000000'
MT_07 = '00000000-0000-0000-0000-08f007000000'
MT_08 = '00000000-0000-0000-0000-08f008000000'
MT_09 = '00000000-0000-0000-0000-08f009000000'
MT_10 = '00000000-0000-0000-0000-08f00a000000'
MT_13 = '00000000-0000-0000-0000-08f00b000000'
MT_14 = '00000000-0000-0000-0000-08f00c000000'
MT_15 = '00000000-0000-0000-0000-08f00d000000'
MT_16 = '00000000-0000-0000-0000-08f00e000000'
MT_17 = '00000000-0000-0000-0000-08f00f000000'
MT_11 = '00000000-0000-0000-0000-08f010000000'
MT_12 = '00000000-0000-0000-0000-08f011000000'
MT_18 = '00000000-0000-0000-0000-08f012000000'
MT_19 = '00000000-0000-0000-0000-08f013000000'
MT_29 = '00000000-0000-0000-0000-08f014000000'
MT_31 = '00000000-0000-0000-0000-08f015000000'
MT_33 = '00000000-0000-0000-0000-08f016000000'
MT_34 = '00000000-0000-0000-0000-08f017000000'
MT_35 = '00000000-0000-0000-0000-08f018000000'
MT_20 = '00000000-0000-0000-0000-08f019000000'
MT_21 = '00000000-0000-0000-0000-08f01a000000'
MT_22 = '00000000-0000-0000-0000-08f01b000000'
MT_23 = '00000000-0000-0000-0000-08f01c000000'
MT_24 = '00000000-0000-0000-0000-08f01d000000'
MT_25 = '00000000-0000-0000-0000-08f01e000000'
MT_26 = '00000000-0000-0000-0000-08f01f000000'
MT_27 = '00000000-0000-0000-0000-08f020000000'
MT_28 = '00000000-0000-0000-0000-08f021000000'
MT_30 = '00000000-0000-0000-0000-08f022000000'
MT_32 = '00000000-0000-0000-0000-08f023000000'
MT_36 = '00000000-0000-0000-0000-08f024000000'
MT_37 = '00000000-0000-0000-0000-08f025000000'
MT_38 = '00000000-0000-0000-0000-08f026000000'
MT_39 = '00000000-0000-0000-0000-08f027000000'
MT_40 = '00000000-0000-0000-0000-08f028000000'
MT_41 = '00000000-0000-0000-0000-08f029000000'
MT_42 = '00000000-0000-0000-0000-08f02a000000'
MT_43 = '00000000-0000-0000-0000-08f02b000000'
MT_44 = '00000000-0000-0000-0000-08f02c000000'
MT_46 = '00000000-0000-0000-0000-08f02d000000'
MT_45 = '00000000-0000-0000-0000-08f02e000000'
MT_47 = '00000000-0000-0000-0000-08f02f000000'
MT_49 = '00000000-0000-0000-0000-08f030000000'
MT_48 = '00000000-0000-0000-0000-08f031000000'
MT_50 = '00000000-0000-0000-0000-08f032000000'
MT_53 = '00000000-0000-0000-0000-08f033000000'
MT_51 = '00000000-0000-0000-0000-08f034000000'
MT_54 = '00000000-0000-0000-0000-08f035000000'
MT_52 = '00000000-0000-0000-0000-08f036000000'
MT_55 = '00000000-0000-0000-0000-08f037000000'
MT_56 = '00000000-0000-0000-0000-08f038000000'
MT_57 = '00000000-0000-0000-0000-08f039000000'
MT_58 = '00000000-0000-0000-0000-08f03a000000'
MT_59 = '00000000-0000-0000-0000-08f03b000000'
MT_61 = '00000000-0000-0000-0000-08f03c000000'
MT_62 = '00000000-0000-0000-0000-08f03d000000'
MT_63 = '00000000-0000-0000-0000-08f03e000000'
MT_64 = '00000000-0000-0000-0000-08f03f000000'
MT_66 = '00000000-0000-0000-0000-08f040000000'
MT_65 = '00000000-0000-0000-0000-08f041000000'
MT_67 = '00000000-0000-0000-0000-08f042000000'
MT_68 = '00000000-0000-0000-0000-08f043000000'
MT_60 = '00000000-0000-0000-0000-08f044000000'
class MURegion(Enum):
MU_AG = '00000000-0000-0000-0000-090001000000'
MU_SA = '00000000-0000-0000-0000-090002000000'
MU_RR = '00000000-0000-0000-0000-090003000000'
MU_PL = '00000000-0000-0000-0000-090004000000'
MU_PW = '00000000-0000-0000-0000-090005000000'
MU_PA = '00000000-0000-0000-0000-090006000000'
MU_MO = '00000000-0000-0000-0000-090007000000'
MU_GP = '00000000-0000-0000-0000-090008000000'
MU_FL = '00000000-0000-0000-0000-090009000000'
MU_BL = '00000000-0000-0000-0000-09000a000000'
MU_CC = '00000000-0000-0000-0000-09000b000000'
MU_RO = '00000000-0000-0000-0000-09000c000000'
class MVRegion(Enum):
MV_04 = '00000000-0000-0000-0000-091001000000'
MV_08 = '00000000-0000-0000-0000-091002000000'
MV_24 = '00000000-0000-0000-0000-091003000000'
MV_01 = '00000000-0000-0000-0000-091004000000'
MV_13 = '00000000-0000-0000-0000-091005000000'
MV_25 = '00000000-0000-0000-0000-091006000000'
MV_29 = '00000000-0000-0000-0000-091007000000'
MV_12 = '00000000-0000-0000-0000-091008000000'
MV_03 = '00000000-0000-0000-0000-091009000000'
MV_05 = '00000000-0000-0000-0000-09100a000000'
MV_26 = '00000000-0000-0000-0000-09100b000000'
MV_23 = '00000000-0000-0000-0000-09100c000000'
MV_07 = '00000000-0000-0000-0000-09100d000000'
MV_28 = '00000000-0000-0000-0000-09100e000000'
MV_27 = '00000000-0000-0000-0000-09100f000000'
MV_14 = '00000000-0000-0000-0000-091010000000'
MV_17 = '00000000-0000-0000-0000-091011000000'
MV_20 = '00000000-0000-0000-0000-091012000000'
MV_02 = '00000000-0000-0000-0000-091013000000'
MV_00 = '00000000-0000-0000-0000-091014000000'
class MWRegion(Enum):
MW_S = '00000000-0000-0000-0000-092001000000'
MW_N = '00000000-0000-0000-0000-092002000000'
MW_C = '00000000-0000-0000-0000-092003000000'
class MXRegion(Enum):
MX_YUC = '00000000-0000-0000-0000-093001000000'
MX_VER = '00000000-0000-0000-0000-093002000000'
MX_TLA = '00000000-0000-0000-0000-093003000000'
MX_TAM = '00000000-0000-0000-0000-093004000000'
MX_TAB = '00000000-0000-0000-0000-093005000000'
MX_ROO = '00000000-0000-0000-0000-093006000000'
MX_QUE = '00000000-0000-0000-0000-093007000000'
MX_PUE = '00000000-0000-0000-0000-093008000000'
MX_OAX = '00000000-0000-0000-0000-093009000000'
MX_NLE = '00000000-0000-0000-0000-09300a000000'
MX_MOR = '00000000-0000-0000-0000-09300b000000'
MX_MEX = '00000000-0000-0000-0000-09300c000000'
MX_HID = '00000000-0000-0000-0000-09300d000000'
MX_GRO = '00000000-0000-0000-0000-09300e000000'
MX_DIF = '00000000-0000-0000-0000-09300f000000'
MX_CHP = '00000000-0000-0000-0000-093010000000'
MX_CAM = '00000000-0000-0000-0000-093011000000'
MX_ZAC = '00000000-0000-0000-0000-093012000000'
MX_SON = '00000000-0000-0000-0000-093013000000'
MX_SIN = '00000000-0000-0000-0000-093014000000'
MX_SLP = '00000000-0000-0000-0000-093015000000'
MX_NAY = '00000000-0000-0000-0000-093016000000'
MX_MIC = '00000000-0000-0000-0000-093017000000'
MX_JAL = '00000000-0000-0000-0000-093018000000'
MX_GUA = '00000000-0000-0000-0000-093019000000'
MX_DUR = '00000000-0000-0000-0000-09301a000000'
MX_COL = '00000000-0000-0000-0000-09301b000000'
MX_COA = '00000000-0000-0000-0000-09301c000000'
MX_CHH = '00000000-0000-0000-0000-09301d000000'
MX_BCS = '00000000-0000-0000-0000-09301e000000'
MX_BCN = '00000000-0000-0000-0000-09301f000000'
MX_AGU = '00000000-0000-0000-0000-093020000000'
class MYRegion(Enum):
MY_04 = '00000000-0000-0000-0000-094001000000'
MY_11 = '00000000-0000-0000-0000-094002000000'
MY_10 = '00000000-0000-0000-0000-094003000000'
MY_13 = '00000000-0000-0000-0000-094004000000'
MY_12 = '00000000-0000-0000-0000-094005000000'
MY_09 = '00000000-0000-0000-0000-094006000000'
MY_08 = '00000000-0000-0000-0000-094007000000'
MY_06 = '00000000-0000-0000-0000-094008000000'
MY_05 = '00000000-0000-0000-0000-094009000000'
MY_03 = '00000000-0000-0000-0000-09400a000000'
MY_14 = '00000000-0000-0000-0000-09400b000000'
MY_07 = '00000000-0000-0000-0000-09400c000000'
MY_02 = '00000000-0000-0000-0000-09400d000000'
MY_01 = '00000000-0000-0000-0000-09400e000000'
MY_15 = '00000000-0000-0000-0000-09400f000000'
MY_16 = '00000000-0000-0000-0000-094010000000'
class MZRegion(Enum):
MZ_Q = '00000000-0000-0000-0000-095001000000'
MZ_T = '00000000-0000-0000-0000-095002000000'
MZ_S = '00000000-0000-0000-0000-095003000000'
MZ_A = '00000000-0000-0000-0000-095004000000'
MZ_N = '00000000-0000-0000-0000-095005000000'
MZ_L = '00000000-0000-0000-0000-095006000000'
MZ_B = '00000000-0000-0000-0000-095007000000'
MZ_I = '00000000-0000-0000-0000-095008000000'
MZ_G = '00000000-0000-0000-0000-095009000000'
MZ_P = '00000000-0000-0000-0000-09500a000000'
MZ_MPM = '00000000-0000-0000-0000-09500b000000'
class NARegion(Enum):
NA_CA = '00000000-0000-0000-0000-096001000000'
NA_KH = '00000000-0000-0000-0000-096002000000'
NA_ER = '00000000-0000-0000-0000-096003000000'
NA_HA = '00000000-0000-0000-0000-096004000000'
NA_KA = '00000000-0000-0000-0000-096005000000'
NA_KU = '00000000-0000-0000-0000-096006000000'
NA_OW = '00000000-0000-0000-0000-096007000000'
NA_OH = '00000000-0000-0000-0000-096008000000'
NA_OS = '00000000-0000-0000-0000-096009000000'
NA_ON = '00000000-0000-0000-0000-09600a000000'
NA_OT = '00000000-0000-0000-0000-09600b000000'
NA_OD = '00000000-0000-0000-0000-09600c000000'
NA_KE = '00000000-0000-0000-0000-09600d000000'
NA_KW = '00000000-0000-0000-0000-09600e000000'
class NERegion(Enum):
NE_7 = '00000000-0000-0000-0000-097001000000'
NE_5 = '00000000-0000-0000-0000-097002000000'
NE_4 = '00000000-0000-0000-0000-097003000000'
NE_3 = '00000000-0000-0000-0000-097004000000'
NE_2 = '00000000-0000-0000-0000-097005000000'
NE_1 = '00000000-0000-0000-0000-097006000000'
NE_6 = '00000000-0000-0000-0000-097007000000'
NE_8 = '00000000-0000-0000-0000-097008000000'
class NGRegion(Enum):
NG_SO = '00000000-0000-0000-0000-098001000000'
NG_RI = '00000000-0000-0000-0000-098002000000'
NG_PL = '00000000-0000-0000-0000-098003000000'
NG_OY = '00000000-0000-0000-0000-098004000000'
NG_ON = '00000000-0000-0000-0000-098005000000'
NG_OG = '00000000-0000-0000-0000-098006000000'
NG_NI = '00000000-0000-0000-0000-098007000000'
NG_LA = '00000000-0000-0000-0000-098008000000'
NG_KW = '00000000-0000-0000-0000-098009000000'
NG_KT = '00000000-0000-0000-0000-09800a000000'
NG_KN = '00000000-0000-0000-0000-09800b000000'
NG_KD = '00000000-0000-0000-0000-09800c000000'
NG_IM = '00000000-0000-0000-0000-09800d000000'
NG_CR = '00000000-0000-0000-0000-09800e000000'
NG_BO = '00000000-0000-0000-0000-09800f000000'
NG_BE = '00000000-0000-0000-0000-098010000000'
NG_BA = '00000000-0000-0000-0000-098011000000'
NG_AN = '00000000-0000-0000-0000-098012000000'
NG_AK = '00000000-0000-0000-0000-098013000000'
NG_FC = '00000000-0000-0000-0000-098014000000'
NG_AB = '00000000-0000-0000-0000-098015000000'
NG_DE = '00000000-0000-0000-0000-098016000000'
NG_AD = '00000000-0000-0000-0000-098017000000'
NG_ED = '00000000-0000-0000-0000-098018000000'
NG_EN = '00000000-0000-0000-0000-098019000000'
NG_JI = '00000000-0000-0000-0000-09801a000000'
NG_BY = '00000000-0000-0000-0000-09801b000000'
NG_EB = '00000000-0000-0000-0000-09801c000000'
NG_EK = '00000000-0000-0000-0000-09801d000000'
NG_GO = '00000000-0000-0000-0000-09801e000000'
NG_NA = '00000000-0000-0000-0000-09801f000000'
NG_ZA = '00000000-0000-0000-0000-098020000000'
NG_KE = '00000000-0000-0000-0000-098021000000'
NG_KO = '00000000-0000-0000-0000-098022000000'
NG_OS = '00000000-0000-0000-0000-098023000000'
NG_TA = '00000000-0000-0000-0000-098024000000'
NG_YO = '00000000-0000-0000-0000-098025000000'
class NIRegion(Enum):
NI_RI = '00000000-0000-0000-0000-099001000000'
NI_SJ = '00000000-0000-0000-0000-099002000000'
NI_NS = '00000000-0000-0000-0000-099003000000'
NI_MT = '00000000-0000-0000-0000-099004000000'
NI_MS = '00000000-0000-0000-0000-099005000000'
NI_MN = '00000000-0000-0000-0000-099006000000'
NI_MD = '00000000-0000-0000-0000-099007000000'
NI_LE = '00000000-0000-0000-0000-099008000000'
NI_JI = '00000000-0000-0000-0000-099009000000'
NI_GR = '00000000-0000-0000-0000-09900a000000'
NI_ES = '00000000-0000-0000-0000-09900b000000'
NI_CO = '00000000-0000-0000-0000-09900c000000'
NI_CI = '00000000-0000-0000-0000-09900d000000'
NI_CA = '00000000-0000-0000-0000-09900e000000'
NI_BO = '00000000-0000-0000-0000-09900f000000'
NI_AN = '00000000-0000-0000-0000-099010000000'
NI_AS = '00000000-0000-0000-0000-099011000000'
class NLRegion(Enum):
NL_ZH = '00000000-0000-0000-0000-09a001000000'
NL_ZE = '00000000-0000-0000-0000-09a002000000'
NL_UT = '00000000-0000-0000-0000-09a003000000'
NL_OV = '00000000-0000-0000-0000-09a004000000'
NL_NH = '00000000-0000-0000-0000-09a005000000'
NL_NB = '00000000-0000-0000-0000-09a006000000'
NL_LI = '00000000-0000-0000-0000-09a007000000'
NL_GR = '00000000-0000-0000-0000-09a008000000'
NL_GE = '00000000-0000-0000-0000-09a009000000'
NL_FR = '00000000-0000-0000-0000-09a00a000000'
NL_DR = '00000000-0000-0000-0000-09a00b000000'
NL_FL = '00000000-0000-0000-0000-09a00c000000'
class NORegion(Enum):
NO_20 = '00000000-0000-0000-0000-09b001000000'
NO_07 = '00000000-0000-0000-0000-09b002000000'
NO_10 = '00000000-0000-0000-0000-09b003000000'
NO_19 = '00000000-0000-0000-0000-09b004000000'
NO_08 = '00000000-0000-0000-0000-09b005000000'
NO_16 = '00000000-0000-0000-0000-09b006000000'
NO_14 = '00000000-0000-0000-0000-09b007000000'
NO_11 = '00000000-0000-0000-0000-09b008000000'
NO_01 = '00000000-0000-0000-0000-09b009000000'
NO_03 = '00000000-0000-0000-0000-09b00a000000'
NO_05 = '00000000-0000-0000-0000-09b00b000000'
NO_17 = '00000000-0000-0000-0000-09b00c000000'
NO_18 = '00000000-0000-0000-0000-09b00d000000'
NO_15 = '00000000-0000-0000-0000-09b00e000000'
NO_12 = '00000000-0000-0000-0000-09b00f000000'
NO_04 = '00000000-0000-0000-0000-09b010000000'
NO_06 = '00000000-0000-0000-0000-09b011000000'
NO_09 = '00000000-0000-0000-0000-09b012000000'
NO_02 = '00000000-0000-0000-0000-09b013000000'
class NPRegion(Enum):
NP_FR = '00000000-0000-0000-0000-09c001000000'
NP_MR = '00000000-0000-0000-0000-09c002000000'
NP_CR = '00000000-0000-0000-0000-09c003000000'
NP_ER = '00000000-0000-0000-0000-09c004000000'
NP_WR = '00000000-0000-0000-0000-09c005000000'
class NRRegion(Enum):
NR_14 = '00000000-0000-0000-0000-09d001000000'
NR_13 = '00000000-0000-0000-0000-09d002000000'
NR_12 = '00000000-0000-0000-0000-09d003000000'
NR_11 = '00000000-0000-0000-0000-09d004000000'
NR_10 = '00000000-0000-0000-0000-09d005000000'
NR_09 = '00000000-0000-0000-0000-09d006000000'
NR_08 = '00000000-0000-0000-0000-09d007000000'
NR_07 = '00000000-0000-0000-0000-09d008000000'
NR_06 = '00000000-0000-0000-0000-09d009000000'
NR_05 = '00000000-0000-0000-0000-09d00a000000'
NR_04 = '00000000-0000-0000-0000-09d00b000000'
NR_03 = '00000000-0000-0000-0000-09d00c000000'
NR_02 = '00000000-0000-0000-0000-09d00d000000'
NR_01 = '00000000-0000-0000-0000-09d00e000000'
class NZRegion(Enum):
NZ_WGN = '00000000-0000-0000-0000-09f001000000'
NZ_MWT = '00000000-0000-0000-0000-09f002000000'
NZ_WKO = '00000000-0000-0000-0000-09f003000000'
NZ_TAS = '00000000-0000-0000-0000-09f004000000'
NZ_TKI = '00000000-0000-0000-0000-09f005000000'
NZ_STL = '00000000-0000-0000-0000-09f006000000'
NZ_BOP = '00000000-0000-0000-0000-09f007000000'
NZ_NTL = '00000000-0000-0000-0000-09f008000000'
NZ_MBH = '00000000-0000-0000-0000-09f009000000'
NZ_HKB = '00000000-0000-0000-0000-09f00a000000'
NZ_GIS = '00000000-0000-0000-0000-09f00b000000'
NZ_WTC = '00000000-0000-0000-0000-09f00c000000'
NZ_CAN = '00000000-0000-0000-0000-09f00d000000'
NZ_AUK = '00000000-0000-0000-0000-09f00e000000'
NZ_NSN = '00000000-0000-0000-0000-09f010000000'
NZ_OTA = '00000000-0000-0000-0000-09f011000000'
NZ_WTC1 = '00000000-0000-0000-0000-09f012000000'
class OMRegion(Enum):
OM_DA = '00000000-0000-0000-0000-0a0001000000'
OM_BJ = '00000000-0000-0000-0000-0a0002000000'
OM_WU = '00000000-0000-0000-0000-0a0003000000'
OM_SJ = '00000000-0000-0000-0000-0a0004000000'
OM_ZA = '00000000-0000-0000-0000-0a0005000000'
OM_MA = '00000000-0000-0000-0000-0a0006000000'
OM_MU = '00000000-0000-0000-0000-0a0007000000'
OM_ZU = '00000000-0000-0000-0000-0a0008000000'
OM_BU = '00000000-0000-0000-0000-0a0009000000'
OM_SS = '00000000-0000-0000-0000-0a000a000000'
OM_BS = '00000000-0000-0000-0000-0a000b000000'
class PARegion(Enum):
PA_9 = '00000000-0000-0000-0000-0a1001000000'
PA_KY = '00000000-0000-0000-0000-0a1002000000'
PA_8 = '00000000-0000-0000-0000-0a1003000000'
PA_7 = '00000000-0000-0000-0000-0a1004000000'
PA_6 = '00000000-0000-0000-0000-0a1005000000'
PA_5 = '00000000-0000-0000-0000-0a1006000000'
PA_3 = '00000000-0000-0000-0000-0a1007000000'
PA_2 = '00000000-0000-0000-0000-0a1008000000'
PA_4 = '00000000-0000-0000-0000-0a1009000000'
PA_1 = '00000000-0000-0000-0000-0a100a000000'
PA_EM = '00000000-0000-0000-0000-0a100b000000'
PA_NB = '00000000-0000-0000-0000-0a100c000000'
PA_10 = '00000000-0000-0000-0000-0a100d000000'
class PERegion(Enum):
PE_UCA = '00000000-0000-0000-0000-0a2001000000'
PE_TUM = '00000000-0000-0000-0000-0a2002000000'
PE_SAM = '00000000-0000-0000-0000-0a2003000000'
PE_PIU = '00000000-0000-0000-0000-0a2004000000'
PE_LOR = '00000000-0000-0000-0000-0a2005000000'
PE_LAM = '00000000-0000-0000-0000-0a2006000000'
PE_LAL = '00000000-0000-0000-0000-0a2007000000'
PE_HUC = '00000000-0000-0000-0000-0a2008000000'
PE_CAJ = '00000000-0000-0000-0000-0a2009000000'
PE_ANC = '00000000-0000-0000-0000-0a200a000000'
PE_AMA = '00000000-0000-0000-0000-0a200b000000'
PE_TAC = '00000000-0000-0000-0000-0a200c000000'
PE_PUN = '00000000-0000-0000-0000-0a200d000000'
PE_PAS = '00000000-0000-0000-0000-0a200e000000'
PE_MOQ = '00000000-0000-0000-0000-0a200f000000'
PE_MDD = '00000000-0000-0000-0000-0a2010000000'
PE_LMA = '00000000-0000-0000-0000-0a2011000000'
PE_LIM = '00000000-0000-0000-0000-0a2012000000'
PE_JUN = '00000000-0000-0000-0000-0a2013000000'
PE_ICA = '00000000-0000-0000-0000-0a2014000000'
PE_HUV = '00000000-0000-0000-0000-0a2015000000'
PE_CUS = '00000000-0000-0000-0000-0a2016000000'
PE_CAL = '00000000-0000-0000-0000-0a2017000000'
PE_AYA = '00000000-0000-0000-0000-0a2018000000'
PE_ARE = '00000000-0000-0000-0000-0a2019000000'
PE_APU = '00000000-0000-0000-0000-0a201a000000'
class PGRegion(Enum):
PG_WBK = '00000000-0000-0000-0000-0a3001000000'
PG_WPD = '00000000-0000-0000-0000-0a3002000000'
PG_WHM = '00000000-0000-0000-0000-0a3003000000'
PG_SHM = '00000000-0000-0000-0000-0a3004000000'
PG_SAN = '00000000-0000-0000-0000-0a3005000000'
PG_NSA = '00000000-0000-0000-0000-0a3006000000'
PG_NPP = '00000000-0000-0000-0000-0a3007000000'
PG_NIK = '00000000-0000-0000-0000-0a3008000000'
PG_NCD = '00000000-0000-0000-0000-0a3009000000'
PG_MPL = '00000000-0000-0000-0000-0a300a000000'
PG_MRL = '00000000-0000-0000-0000-0a300b000000'
PG_MPM = '00000000-0000-0000-0000-0a300c000000'
PG_GPK = '00000000-0000-0000-0000-0a300d000000'
PG_EPW = '00000000-0000-0000-0000-0a300e000000'
PG_ESW = '00000000-0000-0000-0000-0a300f000000'
PG_EBR = '00000000-0000-0000-0000-0a3010000000'
PG_EHG = '00000000-0000-0000-0000-0a3011000000'
PG_CPK = '00000000-0000-0000-0000-0a3012000000'
PG_MBA = '00000000-0000-0000-0000-0a3013000000'
PG_CPM = '00000000-0000-0000-0000-0a3014000000'
PG_HLA = '00000000-0000-0000-0000-0a3015000000'
PG_JWK = '00000000-0000-0000-0000-0a3016000000'
class PHRegion(Enum):
PH_14 = '00000000-0000-0000-0000-0a4001000000'
PH_10 = '00000000-0000-0000-0000-0a4002000000'
PH_41 = '00000000-0000-0000-0000-0a4003000000'
PH_02 = '00000000-0000-0000-0000-0a4004000000'
PH_12 = '00000000-0000-0000-0000-0a4005000000'
PH_13 = '00000000-0000-0000-0000-0a4006000000'
PH_15 = '00000000-0000-0000-0000-0a4007000000'
PH_01 = '00000000-0000-0000-0000-0a4008000000'
PH_40 = '00000000-0000-0000-0000-0a4009000000'
PH_06 = '00000000-0000-0000-0000-0a400a000000'
PH_03 = '00000000-0000-0000-0000-0a400b000000'
PH_07 = '00000000-0000-0000-0000-0a400c000000'
PH_08 = '00000000-0000-0000-0000-0a400d000000'
PH_09 = '00000000-0000-0000-0000-0a400e000000'
PH_11 = '00000000-0000-0000-0000-0a400f000000'
PH_05 = '00000000-0000-0000-0000-0a4010000000'
PH_00 = '00000000-0000-0000-0000-0a4011000000'
class PKRegion(Enum):
PK_IS = '00000000-0000-0000-0000-0a5001000000'
PK_SD = '00000000-0000-0000-0000-0a5002000000'
PK_PB = '00000000-0000-0000-0000-0a5003000000'
PK_KP = '00000000-0000-0000-0000-0a5004000000'
PK_NA = '00000000-0000-0000-0000-0a5005000000'
PK_TA = '00000000-0000-0000-0000-0a5006000000'
PK_BA = '00000000-0000-0000-0000-0a5007000000'
PK_JK = '00000000-0000-0000-0000-0a5008000000'
class PLRegion(Enum):
PL_LU = '00000000-0000-0000-0000-0a6001000000'
PL_MA = '00000000-0000-0000-0000-0a6002000000'
PL_MZ = '00000000-0000-0000-0000-0a6003000000'
PL_PK = '00000000-0000-0000-0000-0a6004000000'
PL_PD = '00000000-0000-0000-0000-0a6005000000'
PL_SK = '00000000-0000-0000-0000-0a6006000000'
PL_WN = '00000000-0000-0000-0000-0a6007000000'
PL_DS = '00000000-0000-0000-0000-0a6008000000'
PL_LD = '00000000-0000-0000-0000-0a6009000000'
PL_LB = '00000000-0000-0000-0000-0a600a000000'
PL_OP = '00000000-0000-0000-0000-0a600b000000'
PL_PM = '00000000-0000-0000-0000-0a600c000000'
PL_SL = '00000000-0000-0000-0000-0a600d000000'
PL_WP = '00000000-0000-0000-0000-0a600e000000'
PL_ZP = '00000000-0000-0000-0000-0a600f000000'
PL_KP = '00000000-0000-0000-0000-0a6010000000'
class PRRegion(Enum):
PR_001 = '00000000-0000-0000-0000-0a9001000000'
PR_003 = '00000000-0000-0000-0000-0a9002000000'
PR_005 = '00000000-0000-0000-0000-0a9003000000'
PR_007 = '00000000-0000-0000-0000-0a9004000000'
PR_009 = '00000000-0000-0000-0000-0a9005000000'
PR_011 = '00000000-0000-0000-0000-0a9006000000'
PR_013 = '00000000-0000-0000-0000-0a9007000000'
PR_015 = '00000000-0000-0000-0000-0a9008000000'
PR_017 = '00000000-0000-0000-0000-0a9009000000'
PR_019 = '00000000-0000-0000-0000-0a900a000000'
PR_023 = '00000000-0000-0000-0000-0a900c000000'
PR_025 = '00000000-0000-0000-0000-0a900d000000'
PR_027 = '00000000-0000-0000-0000-0a900e000000'
PR_029 = '00000000-0000-0000-0000-0a900f000000'
PR_031 = '00000000-0000-0000-0000-0a9010000000'
PR_033 = '00000000-0000-0000-0000-0a9011000000'
PR_035 = '00000000-0000-0000-0000-0a9012000000'
PR_037 = '00000000-0000-0000-0000-0a9013000000'
PR_039 = '00000000-0000-0000-0000-0a9014000000'
PR_041 = '00000000-0000-0000-0000-0a9015000000'
PR_043 = '00000000-0000-0000-0000-0a9016000000'
PR_045 = '00000000-0000-0000-0000-0a9017000000'
PR_047 = '00000000-0000-0000-0000-0a9018000000'
PR_049 = '00000000-0000-0000-0000-0a9019000000'
PR_051 = '00000000-0000-0000-0000-0a901a000000'
PR_053 = '00000000-0000-0000-0000-0a901b000000'
PR_054 = '00000000-0000-0000-0000-0a901c000000'
PR_055 = '00000000-0000-0000-0000-0a901d000000'
PR_057 = '00000000-0000-0000-0000-0a901e000000'
PR_059 = '00000000-0000-0000-0000-0a901f000000'
PR_061 = '00000000-0000-0000-0000-0a9020000000'
PR_063 = '00000000-0000-0000-0000-0a9021000000'
PR_065 = '00000000-0000-0000-0000-0a9022000000'
PR_067 = '00000000-0000-0000-0000-0a9023000000'
PR_069 = '00000000-0000-0000-0000-0a9024000000'
PR_071 = '00000000-0000-0000-0000-0a9025000000'
PR_073 = '00000000-0000-0000-0000-0a9026000000'
PR_075 = '00000000-0000-0000-0000-0a9027000000'
PR_077 = '00000000-0000-0000-0000-0a9028000000'
PR_079 = '00000000-0000-0000-0000-0a9029000000'
PR_081 = '00000000-0000-0000-0000-0a902a000000'
PR_083 = '00000000-0000-0000-0000-0a902b000000'
PR_085 = '00000000-0000-0000-0000-0a902c000000'
PR_087 = '00000000-0000-0000-0000-0a902d000000'
PR_089 = '00000000-0000-0000-0000-0a902e000000'
PR_091 = '00000000-0000-0000-0000-0a902f000000'
PR_093 = '00000000-0000-0000-0000-0a9030000000'
PR_095 = '00000000-0000-0000-0000-0a9031000000'
PR_097 = '00000000-0000-0000-0000-0a9032000000'
PR_099 = '00000000-0000-0000-0000-0a9033000000'
PR_101 = '00000000-0000-0000-0000-0a9034000000'
PR_103 = '00000000-0000-0000-0000-0a9035000000'
PR_105 = '00000000-0000-0000-0000-0a9036000000'
PR_107 = '00000000-0000-0000-0000-0a9037000000'
PR_109 = '00000000-0000-0000-0000-0a9038000000'
PR_111 = '00000000-0000-0000-0000-0a9039000000'
PR_113 = '00000000-0000-0000-0000-0a903a000000'
PR_117 = '00000000-0000-0000-0000-0a903b000000'
PR_115 = '00000000-0000-0000-0000-0a903c000000'
PR_119 = '00000000-0000-0000-0000-0a903d000000'
PR_121 = '00000000-0000-0000-0000-0a903e000000'
PR_123 = '00000000-0000-0000-0000-0a903f000000'
PR_125 = '00000000-0000-0000-0000-0a9040000000'
PR_127 = '00000000-0000-0000-0000-0a9041000000'
PR_129 = '00000000-0000-0000-0000-0a9042000000'
PR_131 = '00000000-0000-0000-0000-0a9043000000'
PR_133 = '00000000-0000-0000-0000-0a9044000000'
PR_135 = '00000000-0000-0000-0000-0a9045000000'
PR_137 = '00000000-0000-0000-0000-0a9046000000'
PR_139 = '00000000-0000-0000-0000-0a9047000000'
PR_141 = '00000000-0000-0000-0000-0a9048000000'
PR_143 = '00000000-0000-0000-0000-0a9049000000'
PR_145 = '00000000-0000-0000-0000-0a904a000000'
PR_149 = '00000000-0000-0000-0000-0a904b000000'
PR_151 = '00000000-0000-0000-0000-0a904c000000'
PR_153 = '00000000-0000-0000-0000-0a904d000000'
PR_147 = '00000000-0000-0000-0000-0a904e000000'
class PSRegion(Enum):
PS_GZZ = '00000000-0000-0000-0000-0aa001000000'
PS_WBK = '00000000-0000-0000-0000-0aa002000000'
class PTRegion(Enum):
PT_15 = '00000000-0000-0000-0000-0ab001000000'
PT_14 = '00000000-0000-0000-0000-0ab002000000'
PT_12 = '00000000-0000-0000-0000-0ab003000000'
PT_11 = '00000000-0000-0000-0000-0ab004000000'
PT_10 = '00000000-0000-0000-0000-0ab005000000'
PT_08 = '00000000-0000-0000-0000-0ab006000000'
PT_07 = '00000000-0000-0000-0000-0ab007000000'
PT_05 = '00000000-0000-0000-0000-0ab008000000'
PT_02 = '00000000-0000-0000-0000-0ab009000000'
PT_30 = '00000000-0000-0000-0000-0ab00a000000'
PT_18 = '00000000-0000-0000-0000-0ab00b000000'
PT_17 = '00000000-0000-0000-0000-0ab00c000000'
PT_16 = '00000000-0000-0000-0000-0ab00d000000'
PT_13 = '00000000-0000-0000-0000-0ab00e000000'
PT_09 = '00000000-0000-0000-0000-0ab00f000000'
PT_06 = '00000000-0000-0000-0000-0ab010000000'
PT_04 = '00000000-0000-0000-0000-0ab011000000'
PT_03 = '00000000-0000-0000-0000-0ab012000000'
PT_01 = '00000000-0000-0000-0000-0ab013000000'
PT_20 = '00000000-0000-0000-0000-0ab014000000'
class PWRegion(Enum):
PW_224 = '00000000-0000-0000-0000-0ac001000000'
PW_370 = '00000000-0000-0000-0000-0ac002000000'
PW_100 = '00000000-0000-0000-0000-0ac003000000'
PW_050 = '00000000-0000-0000-0000-0ac004000000'
PW_002 = '00000000-0000-0000-0000-0ac005000000'
PW_004 = '00000000-0000-0000-0000-0ac006000000'
PW_010 = '00000000-0000-0000-0000-0ac007000000'
PW_150 = '00000000-0000-0000-0000-0ac008000000'
PW_212 = '00000000-0000-0000-0000-0ac009000000'
PW_214 = '00000000-0000-0000-0000-0ac00a000000'
PW_226 = '00000000-0000-0000-0000-0ac00b000000'
PW_218 = '00000000-0000-0000-0000-0ac00c000000'
PW_222 = '00000000-0000-0000-0000-0ac00d000000'
PW_227 = '00000000-0000-0000-0000-0ac00e000000'
PW_228 = '00000000-0000-0000-0000-0ac00f000000'
PW_350 = '00000000-0000-0000-0000-0ac010000000'
class PYRegion(Enum):
PY_2 = '00000000-0000-0000-0000-0ad001000000'
PY_15 = '00000000-0000-0000-0000-0ad002000000'
PY_9 = '00000000-0000-0000-0000-0ad003000000'
PY_12 = '00000000-0000-0000-0000-0ad004000000'
PY_8 = '00000000-0000-0000-0000-0ad005000000'
PY_7 = '00000000-0000-0000-0000-0ad006000000'
PY_4 = '00000000-0000-0000-0000-0ad007000000'
PY_3 = '00000000-0000-0000-0000-0ad008000000'
PY_1 = '00000000-0000-0000-0000-0ad009000000'
PY_11 = '00000000-0000-0000-0000-0ad00a000000'
PY_14 = '00000000-0000-0000-0000-0ad00b000000'
PY_6 = '00000000-0000-0000-0000-0ad00c000000'
PY_5 = '00000000-0000-0000-0000-0ad00d000000'
PY_13 = '00000000-0000-0000-0000-0ad00e000000'
PY_10 = '00000000-0000-0000-0000-0ad00f000000'
PY_16 = '00000000-0000-0000-0000-0ad010000000'
PY_ASU = '00000000-0000-0000-0000-0ad011000000'
PY_19 = '00000000-0000-0000-0000-0ad012000000'
class QARegion(Enum):
QA_MS = '00000000-0000-0000-0000-0ae001000000'
QA_KH = '00000000-0000-0000-0000-0ae002000000'
QA_US = '00000000-0000-0000-0000-0ae003000000'
QA_RA = '00000000-0000-0000-0000-0ae004000000'
QA_DA = '00000000-0000-0000-0000-0ae005000000'
QA_WA = '00000000-0000-0000-0000-0ae006000000'
QA_ZA = '00000000-0000-0000-0000-0ae007000000'
class RORegion(Enum):
RO_VN = '00000000-0000-0000-0000-0b0001000000'
RO_VL = '00000000-0000-0000-0000-0b0002000000'
RO_VS = '00000000-0000-0000-0000-0b0003000000'
RO_TL = '00000000-0000-0000-0000-0b0004000000'
RO_TM = '00000000-0000-0000-0000-0b0005000000'
RO_TR = '00000000-0000-0000-0000-0b0006000000'
RO_SV = '00000000-0000-0000-0000-0b0007000000'
RO_SB = '00000000-0000-0000-0000-0b0008000000'
RO_SM = '00000000-0000-0000-0000-0b0009000000'
RO_SJ = '00000000-0000-0000-0000-0b000a000000'
RO_PH = '00000000-0000-0000-0000-0b000b000000'
RO_OT = '00000000-0000-0000-0000-0b000c000000'
RO_NT = '00000000-0000-0000-0000-0b000d000000'
RO_MS = '00000000-0000-0000-0000-0b000e000000'
RO_MH = '00000000-0000-0000-0000-0b000f000000'
RO_MM = '00000000-0000-0000-0000-0b0010000000'
RO_IS = '00000000-0000-0000-0000-0b0011000000'
RO_IL = '00000000-0000-0000-0000-0b0012000000'
RO_HD = '00000000-0000-0000-0000-0b0013000000'
RO_HR = '00000000-0000-0000-0000-0b0014000000'
RO_GJ = '00000000-0000-0000-0000-0b0015000000'
RO_GR = '00000000-0000-0000-0000-0b0016000000'
RO_GL = '00000000-0000-0000-0000-0b0017000000'
RO_DJ = '00000000-0000-0000-0000-0b0018000000'
RO_DB = '00000000-0000-0000-0000-0b0019000000'
RO_CV = '00000000-0000-0000-0000-0b001a000000'
RO_CT = '00000000-0000-0000-0000-0b001b000000'
RO_CJ = '00000000-0000-0000-0000-0b001c000000'
RO_CS = '00000000-0000-0000-0000-0b001d000000'
RO_CL = '00000000-0000-0000-0000-0b001e000000'
RO_BZ = '00000000-0000-0000-0000-0b001f000000'
RO_B = '00000000-0000-0000-0000-0b0020000000'
RO_BV = '00000000-0000-0000-0000-0b0021000000'
RO_BR = '00000000-0000-0000-0000-0b0022000000'
RO_BT = '00000000-0000-0000-0000-0b0023000000'
RO_BN = '00000000-0000-0000-0000-0b0024000000'
RO_BH = '00000000-0000-0000-0000-0b0025000000'
RO_BC = '00000000-0000-0000-0000-0b0026000000'
RO_AG = '00000000-0000-0000-0000-0b0027000000'
RO_AR = '00000000-0000-0000-0000-0b0028000000'
RO_AB = '00000000-0000-0000-0000-0b0029000000'
RO_IF = '00000000-0000-0000-0000-0b002a000000'
class RSRegion(Enum):
RS_VO = '00000000-0000-0000-0000-0b1001000000'
RS_SE = '00000000-0000-0000-0000-0b1002000000'
class RURegion(Enum):
RU_YAR = '00000000-0000-0000-0000-0b2001000000'
RU_VOR = '00000000-0000-0000-0000-0b2002000000'
RU_VLG = '00000000-0000-0000-0000-0b2003000000'
RU_VGG = '00000000-0000-0000-0000-0b2004000000'
RU_ULY = '00000000-0000-0000-0000-0b2005000000'
RU_UD = '00000000-0000-0000-0000-0b2006000000'
RU_TVE = '00000000-0000-0000-0000-0b2007000000'
RU_TUL = '00000000-0000-0000-0000-0b2008000000'
RU_TA = '00000000-0000-0000-0000-0b2009000000'
RU_TAM = '00000000-0000-0000-0000-0b200a000000'
RU_STA = '00000000-0000-0000-0000-0b200b000000'
RU_SMO = '00000000-0000-0000-0000-0b200c000000'
RU_SAR = '00000000-0000-0000-0000-0b200d000000'
RU_SAM = '00000000-0000-0000-0000-0b200e000000'
RU_RYA = '00000000-0000-0000-0000-0b200f000000'
RU_ROS = '00000000-0000-0000-0000-0b2010000000'
RU_PSK = '00000000-0000-0000-0000-0b2011000000'
RU_PER = '00000000-0000-0000-0000-0b2012000000'
RU_PNZ = '00000000-0000-0000-0000-0b2013000000'
RU_ORL = '00000000-0000-0000-0000-0b2014000000'
RU_ORE = '00000000-0000-0000-0000-0b2015000000'
RU_NGR = '00000000-0000-0000-0000-0b2016000000'
RU_SE = '00000000-0000-0000-0000-0b2017000000'
RU_NEN = '00000000-0000-0000-0000-0b2018000000'
RU_MUR = '00000000-0000-0000-0000-0b2019000000'
RU_MOW = '00000000-0000-0000-0000-0b201a000000'
RU_MOS = '00000000-0000-0000-0000-0b201b000000'
RU_MO = '00000000-0000-0000-0000-0b201c000000'
RU_ME = '00000000-0000-0000-0000-0b201d000000'
RU_LIP = '00000000-0000-0000-0000-0b201e000000'
RU_LEN = '00000000-0000-0000-0000-0b201f000000'
RU_SPE = '00000000-0000-0000-0000-0b2020000000'
RU_KRS = '00000000-0000-0000-0000-0b2021000000'
RU_KDA = '00000000-0000-0000-0000-0b2022000000'
RU_KOS = '00000000-0000-0000-0000-0b2023000000'
RU_KO = '00000000-0000-0000-0000-0b2024000000'
RU_KIR = '00000000-0000-0000-0000-0b2025000000'
RU_KR = '00000000-0000-0000-0000-0b2026000000'
RU_KC = '00000000-0000-0000-0000-0b2027000000'
RU_KLU = '00000000-0000-0000-0000-0b2028000000'
RU_KL = '00000000-0000-0000-0000-0b2029000000'
RU_KGD = '00000000-0000-0000-0000-0b202a000000'
RU_KB = '00000000-0000-0000-0000-0b202b000000'
RU_IVA = '00000000-0000-0000-0000-0b202c000000'
RU_IN = '00000000-0000-0000-0000-0b202d000000'
RU_NIZ = '00000000-0000-0000-0000-0b202e000000'
RU_DA = '00000000-0000-0000-0000-0b202f000000'
RU_CU = '00000000-0000-0000-0000-0b2030000000'
RU_CE = '00000000-0000-0000-0000-0b2031000000'
RU_BRY = '00000000-0000-0000-0000-0b2032000000'
RU_BEL = '00000000-0000-0000-0000-0b2033000000'
RU_BA = '00000000-0000-0000-0000-0b2034000000'
RU_AST = '00000000-0000-0000-0000-0b2035000000'
RU_ARK = '00000000-0000-0000-0000-0b2036000000'
RU_AD = '00000000-0000-0000-0000-0b2037000000'
RU_VLA = '00000000-0000-0000-0000-0b2038000000'
RU_YAN = '00000000-0000-0000-0000-0b2039000000'
RU_TYU = '00000000-0000-0000-0000-0b203a000000'
RU_TY = '00000000-0000-0000-0000-0b203b000000'
RU_TOM = '00000000-0000-0000-0000-0b203c000000'
RU_SVE = '00000000-0000-0000-0000-0b203d000000'
RU_OMS = '00000000-0000-0000-0000-0b203e000000'
RU_NVS = '00000000-0000-0000-0000-0b203f000000'
RU_KGN = '00000000-0000-0000-0000-0b2040000000'
RU_KYA = '00000000-0000-0000-0000-0b2041000000'
RU_KHM = '00000000-0000-0000-0000-0b2042000000'
RU_KK = '00000000-0000-0000-0000-0b2043000000'
RU_KEM = '00000000-0000-0000-0000-0b2044000000'
RU_AL = '00000000-0000-0000-0000-0b2045000000'
RU_CHE = '00000000-0000-0000-0000-0b2046000000'
RU_ALT = '00000000-0000-0000-0000-0b2047000000'
RU_SA = '00000000-0000-0000-0000-0b2048000000'
RU_PRI = '00000000-0000-0000-0000-0b2049000000'
RU_KHA = '00000000-0000-0000-0000-0b204a000000'
RU_IRK = '00000000-0000-0000-0000-0b204b000000'
RU_YEV = '00000000-0000-0000-0000-0b204c000000'
RU_AMU = '00000000-0000-0000-0000-0b204d000000'
RU_BU = '00000000-0000-0000-0000-0b204e000000'
RU_SAK = '00000000-0000-0000-0000-0b204f000000'
RU_MAG = '00000000-0000-0000-0000-0b2050000000'
RU_KAM = '00000000-0000-0000-0000-0b2051000000'
RU_CHU = '00000000-0000-0000-0000-0b2052000000'
RU_ZAB = '00000000-0000-0000-0000-0b2053000000'
class RWRegion(Enum):
RW_02 = '00000000-0000-0000-0000-0b3001000000'
RW_12 = '00000000-0000-0000-0000-0b3002000000'
RW_03 = '00000000-0000-0000-0000-0b3003000000'
RW_04 = '00000000-0000-0000-0000-0b3004000000'
RW_05 = '00000000-0000-0000-0000-0b3005000000'
class SARegion(Enum):
SA_07 = '00000000-0000-0000-0000-0b4001000000'
SA_10 = '00000000-0000-0000-0000-0b4002000000'
SA_02 = '00000000-0000-0000-0000-0b4003000000'
SA_09 = '00000000-0000-0000-0000-0b4004000000'
SA_06 = '00000000-0000-0000-0000-0b4005000000'
SA_14 = '00000000-0000-0000-0000-0b4006000000'
SA_04 = '00000000-0000-0000-0000-0b4007000000'
SA_01 = '00000000-0000-0000-0000-0b4008000000'
SA_05 = '00000000-0000-0000-0000-0b4009000000'
SA_03 = '00000000-0000-0000-0000-0b400a000000'
SA_12 = '00000000-0000-0000-0000-0b400b000000'
SA_08 = '00000000-0000-0000-0000-0b400c000000'
SA_11 = '00000000-0000-0000-0000-0b400d000000'
class SBRegion(Enum):
SB_WE = '00000000-0000-0000-0000-0b5001000000'
SB_ML = '00000000-0000-0000-0000-0b5002000000'
SB_IS = '00000000-0000-0000-0000-0b5003000000'
SB_GU = '00000000-0000-0000-0000-0b5004000000'
SB_CE = '00000000-0000-0000-0000-0b5005000000'
SB_TE = '00000000-0000-0000-0000-0b5006000000'
SB_MK = '00000000-0000-0000-0000-0b5007000000'
SB_CH = '00000000-0000-0000-0000-0b5008000000'
SB_RB = '00000000-0000-0000-0000-0b5009000000'
SB_CT = '00000000-0000-0000-0000-0b500a000000'
class SCRegion(Enum):
SC_23 = '00000000-0000-0000-0000-0b6001000000'
SC_22 = '00000000-0000-0000-0000-0b6002000000'
SC_21 = '00000000-0000-0000-0000-0b6003000000'
SC_20 = '00000000-0000-0000-0000-0b6004000000'
SC_19 = '00000000-0000-0000-0000-0b6005000000'
SC_18 = '00000000-0000-0000-0000-0b6006000000'
SC_17 = '00000000-0000-0000-0000-0b6007000000'
SC_16 = '00000000-0000-0000-0000-0b6008000000'
SC_15 = '00000000-0000-0000-0000-0b6009000000'
SC_13 = '00000000-0000-0000-0000-0b600a000000'
SC_14 = '00000000-0000-0000-0000-0b600b000000'
SC_12 = '00000000-0000-0000-0000-0b600c000000'
SC_11 = '00000000-0000-0000-0000-0b600d000000'
SC_10 = '00000000-0000-0000-0000-0b600e000000'
SC_09 = '00000000-0000-0000-0000-0b600f000000'
SC_08 = '00000000-0000-0000-0000-0b6010000000'
SC_07 = '00000000-0000-0000-0000-0b6011000000'
SC_06 = '00000000-0000-0000-0000-0b6012000000'
SC_05 = '00000000-0000-0000-0000-0b6013000000'
SC_03 = '00000000-0000-0000-0000-0b6014000000'
SC_02 = '00000000-0000-0000-0000-0b6015000000'
SC_01 = '00000000-0000-0000-0000-0b6016000000'
SC_24 = '00000000-0000-0000-0000-0b6017000000'
SC_25 = '00000000-0000-0000-0000-0b6018000000'
SC_04 = '00000000-0000-0000-0000-0b6019000000'
class SDRegion(Enum):
SD_NO = '00000000-0000-0000-0000-0b7001000000'
SD_KH = '00000000-0000-0000-0000-0b7002000000'
SD_RS = '00000000-0000-0000-0000-0b7003000000'
SD_GZ = '00000000-0000-0000-0000-0b7004000000'
SD_GD = '00000000-0000-0000-0000-0b7005000000'
SD_NW = '00000000-0000-0000-0000-0b7006000000'
SD_NB = '00000000-0000-0000-0000-0b7007000000'
SD_DW = '00000000-0000-0000-0000-0b7008000000'
SD_GK = '00000000-0000-0000-0000-0b7009000000'
SD_DS = '00000000-0000-0000-0000-0b700a000000'
SD_KS = '00000000-0000-0000-0000-0b700b000000'
SD_KA = '00000000-0000-0000-0000-0b700c000000'
SD_NR = '00000000-0000-0000-0000-0b700d000000'
SD_DN = '00000000-0000-0000-0000-0b700e000000'
SD_KN = '00000000-0000-0000-0000-0b700f000000'
SD_SI = '00000000-0000-0000-0000-0b7010000000'
SD_DE = '00000000-0000-0000-0000-0b7011000000'
SD_DC = '00000000-0000-0000-0000-0b7012000000'
class SERegion(Enum):
SE_BD = '00000000-0000-0000-0000-0b8001000000'
SE_U = '00000000-0000-0000-0000-0b8002000000'
SE_Y = '00000000-0000-0000-0000-0b8003000000'
SE_AC = '00000000-0000-0000-0000-0b8004000000'
SE_S = '00000000-0000-0000-0000-0b8005000000'
SE_C = '00000000-0000-0000-0000-0b8006000000'
SE_AB = '00000000-0000-0000-0000-0b8007000000'
SE_D = '00000000-0000-0000-0000-0b8008000000'
SE_E = '00000000-0000-0000-0000-0b8009000000'
SE_T = '00000000-0000-0000-0000-0b800a000000'
SE_G = '00000000-0000-0000-0000-0b800b000000'
SE_W = '00000000-0000-0000-0000-0b800c000000'
SE_H = '00000000-0000-0000-0000-0b800d000000'
SE_F = '00000000-0000-0000-0000-0b800e000000'
SE_Z = '00000000-0000-0000-0000-0b800f000000'
SE_N = '00000000-0000-0000-0000-0b8010000000'
SE_I = '00000000-0000-0000-0000-0b8011000000'
SE_X = '00000000-0000-0000-0000-0b8012000000'
SE_K = '00000000-0000-0000-0000-0b8013000000'
SE_M = '00000000-0000-0000-0000-0b8014000000'
SE_O = '00000000-0000-0000-0000-0b8015000000'
class SGRegion(Enum):
SG_01 = '00000000-0000-0000-0000-0b9001000000'
SG_02 = '00000000-0000-0000-0000-0b9002000000'
SG_04 = '00000000-0000-0000-0000-0b9003000000'
SG_05 = '00000000-0000-0000-0000-0b9004000000'
SG_03 = '00000000-0000-0000-0000-0b9005000000'
class SHRegion(Enum):
SH_AC = '00000000-0000-0000-0000-0ba001000000'
SH_TA = '00000000-0000-0000-0000-0ba002000000'
SH_HL = '00000000-0000-0000-0000-0ba003000000'
class SIRegion(Enum):
SI_190 = '00000000-0000-0000-0000-0bb001000000'
SI_142 = '00000000-0000-0000-0000-0bb002000000'
SI_140 = '00000000-0000-0000-0000-0bb003000000'
SI_131 = '00000000-0000-0000-0000-0bb004000000'
SI_130 = '00000000-0000-0000-0000-0bb005000000'
SI_129 = '00000000-0000-0000-0000-0bb006000000'
SI_128 = '00000000-0000-0000-0000-0bb007000000'
SI_133 = '00000000-0000-0000-0000-0bb008000000'
SI_124 = '00000000-0000-0000-0000-0bb009000000'
SI_114 = '00000000-0000-0000-0000-0bb00a000000'
SI_113 = '00000000-0000-0000-0000-0bb00b000000'
SI_112 = '00000000-0000-0000-0000-0bb00c000000'
SI_122 = '00000000-0000-0000-0000-0bb00d000000'
SI_111 = '00000000-0000-0000-0000-0bb00e000000'
SI_110 = '00000000-0000-0000-0000-0bb00f000000'
SI_120 = '00000000-0000-0000-0000-0bb010000000'
SI_104 = '00000000-0000-0000-0000-0bb011000000'
SI_102 = '00000000-0000-0000-0000-0bb012000000'
SI_101 = '00000000-0000-0000-0000-0bb013000000'
SI_096 = '00000000-0000-0000-0000-0bb014000000'
SI_094 = '00000000-0000-0000-0000-0bb015000000'
SI_090 = '00000000-0000-0000-0000-0bb016000000'
SI_087 = '00000000-0000-0000-0000-0bb017000000'
SI_085 = '00000000-0000-0000-0000-0bb018000000'
SI_084 = '00000000-0000-0000-0000-0bb019000000'
SI_080 = '00000000-0000-0000-0000-0bb01a000000'
SI_079 = '00000000-0000-0000-0000-0bb01b000000'
SI_073 = '00000000-0000-0000-0000-0bb01c000000'
SI_070 = '00000000-0000-0000-0000-0bb01d000000'
SI_064 = '00000000-0000-0000-0000-0bb01e000000'
SI_063 = '00000000-0000-0000-0000-0bb01f000000'
SI_060 = '00000000-0000-0000-0000-0bb020000000'
SI_058 = '00000000-0000-0000-0000-0bb021000000'
SI_057 = '00000000-0000-0000-0000-0bb022000000'
SI_054 = '00000000-0000-0000-0000-0bb023000000'
SI_052 = '00000000-0000-0000-0000-0bb024000000'
SI_050 = '00000000-0000-0000-0000-0bb025000000'
SI_048 = '00000000-0000-0000-0000-0bb026000000'
SI_043 = '00000000-0000-0000-0000-0bb027000000'
SI_041 = '00000000-0000-0000-0000-0bb028000000'
SI_040 = '00000000-0000-0000-0000-0bb029000000'
SI_038 = '00000000-0000-0000-0000-0bb02a000000'
SI_036 = '00000000-0000-0000-0000-0bb02b000000'
SI_034 = '00000000-0000-0000-0000-0bb02c000000'
SI_032 = '00000000-0000-0000-0000-0bb02d000000'
SI_029 = '00000000-0000-0000-0000-0bb02e000000'
SI_025 = '00000000-0000-0000-0000-0bb02f000000'
SI_023 = '00000000-0000-0000-0000-0bb030000000'
SI_017 = '00000000-0000-0000-0000-0bb031000000'
SI_013 = '00000000-0000-0000-0000-0bb032000000'
SI_011 = '00000000-0000-0000-0000-0bb033000000'
SI_009 = '00000000-0000-0000-0000-0bb034000000'
SI_001 = '00000000-0000-0000-0000-0bb035000000'
SI_035 = '00000000-0000-0000-0000-0bb036000000'
SI_019 = '00000000-0000-0000-0000-0bb037000000'
SI_091 = '00000000-0000-0000-0000-0bb038000000'
SI_065 = '00000000-0000-0000-0000-0bb039000000'
SI_066 = '00000000-0000-0000-0000-0bb03a000000'
SI_088 = '00000000-0000-0000-0000-0bb03b000000'
SI_134 = '00000000-0000-0000-0000-0bb03c000000'
SI_123 = '00000000-0000-0000-0000-0bb03d000000'
SI_037 = '00000000-0000-0000-0000-0bb03e000000'
SI_008 = '00000000-0000-0000-0000-0bb03f000000'
SI_005 = '00000000-0000-0000-0000-0bb040000000'
SI_136 = '00000000-0000-0000-0000-0bb041000000'
SI_049 = '00000000-0000-0000-0000-0bb042000000'
SI_075 = '00000000-0000-0000-0000-0bb043000000'
SI_007 = '00000000-0000-0000-0000-0bb044000000'
SI_044 = '00000000-0000-0000-0000-0bb045000000'
SI_147 = '00000000-0000-0000-0000-0bb046000000'
SI_014 = '00000000-0000-0000-0000-0bb047000000'
SI_146 = '00000000-0000-0000-0000-0bb048000000'
SI_027 = '00000000-0000-0000-0000-0bb049000000'
SI_021 = '00000000-0000-0000-0000-0bb04a000000'
SI_046 = '00000000-0000-0000-0000-0bb04b000000'
SI_006 = '00000000-0000-0000-0000-0bb04c000000'
SI_004 = '00000000-0000-0000-0000-0bb04d000000'
SI_003 = '00000000-0000-0000-0000-0bb04e000000'
SI_082 = '00000000-0000-0000-0000-0bb04f000000'
SI_053 = '00000000-0000-0000-0000-0bb050000000'
SI_095 = '00000000-0000-0000-0000-0bb051000000'
SI_012 = '00000000-0000-0000-0000-0bb052000000'
SI_117 = '00000000-0000-0000-0000-0bb053000000'
SI_138 = '00000000-0000-0000-0000-0bb054000000'
SI_071 = '00000000-0000-0000-0000-0bb055000000'
SI_072 = '00000000-0000-0000-0000-0bb056000000'
SI_022 = '00000000-0000-0000-0000-0bb057000000'
SI_077 = '00000000-0000-0000-0000-0bb058000000'
SI_030 = '00000000-0000-0000-0000-0bb059000000'
SI_067 = '00000000-0000-0000-0000-0bb05a000000'
SI_103 = '00000000-0000-0000-0000-0bb05b000000'
SI_074 = '00000000-0000-0000-0000-0bb05c000000'
SI_081 = '00000000-0000-0000-0000-0bb05d000000'
SI_141 = '00000000-0000-0000-0000-0bb05e000000'
SI_016 = '00000000-0000-0000-0000-0bb05f000000'
SI_062 = '00000000-0000-0000-0000-0bb060000000'
SI_126 = '00000000-0000-0000-0000-0bb061000000'
SI_125 = '00000000-0000-0000-0000-0bb062000000'
SI_068 = '00000000-0000-0000-0000-0bb063000000'
SI_099 = '00000000-0000-0000-0000-0bb064000000'
SI_039 = '00000000-0000-0000-0000-0bb065000000'
SI_020 = '00000000-0000-0000-0000-0bb066000000'
SI_109 = '00000000-0000-0000-0000-0bb067000000'
SI_119 = '00000000-0000-0000-0000-0bb068000000'
SI_121 = '00000000-0000-0000-0000-0bb069000000'
SI_127 = '00000000-0000-0000-0000-0bb06a000000'
SI_139 = '00000000-0000-0000-0000-0bb06b000000'
SI_137 = '00000000-0000-0000-0000-0bb06c000000'
SI_144 = '00000000-0000-0000-0000-0bb06d000000'
SI_076 = '00000000-0000-0000-0000-0bb06e000000'
SI_108 = '00000000-0000-0000-0000-0bb06f000000'
SI_055 = '00000000-0000-0000-0000-0bb070000000'
SI_118 = '00000000-0000-0000-0000-0bb071000000'
SI_089 = '00000000-0000-0000-0000-0bb072000000'
SI_026 = '00000000-0000-0000-0000-0bb073000000'
SI_098 = '00000000-0000-0000-0000-0bb074000000'
SI_115 = '00000000-0000-0000-0000-0bb075000000'
SI_045 = '00000000-0000-0000-0000-0bb076000000'
SI_069 = '00000000-0000-0000-0000-0bb077000000'
SI_135 = '00000000-0000-0000-0000-0bb078000000'
SI_106 = '00000000-0000-0000-0000-0bb079000000'
SI_107 = '00000000-0000-0000-0000-0bb07a000000'
SI_092 = '00000000-0000-0000-0000-0bb07b000000'
SI_051 = '00000000-0000-0000-0000-0bb07c000000'
SI_028 = '00000000-0000-0000-0000-0bb07d000000'
SI_143 = '00000000-0000-0000-0000-0bb07e000000'
SI_024 = '00000000-0000-0000-0000-0bb07f000000'
SI_042 = '00000000-0000-0000-0000-0bb080000000'
SI_116 = '00000000-0000-0000-0000-0bb081000000'
SI_100 = '00000000-0000-0000-0000-0bb082000000'
SI_097 = '00000000-0000-0000-0000-0bb083000000'
SI_105 = '00000000-0000-0000-0000-0bb084000000'
SI_056 = '00000000-0000-0000-0000-0bb085000000'
SI_031 = '00000000-0000-0000-0000-0bb086000000'
SI_078 = '00000000-0000-0000-0000-0bb087000000'
SI_047 = '00000000-0000-0000-0000-0bb088000000'
SI_002 = '00000000-0000-0000-0000-0bb089000000'
SI_132 = '00000000-0000-0000-0000-0bb08a000000'
SI_086 = '00000000-0000-0000-0000-0bb08b000000'
SI_015 = '00000000-0000-0000-0000-0bb08c000000'
SI_083 = '00000000-0000-0000-0000-0bb08d000000'
SI_061 = '00000000-0000-0000-0000-0bb08e000000'
SI_192 = '00000000-0000-0000-0000-0bb08f000000'
SI_163 = '00000000-0000-0000-0000-0bb090000000'
SI_180 = '00000000-0000-0000-0000-0bb091000000'
SI_164 = '00000000-0000-0000-0000-0bb092000000'
SI_162 = '00000000-0000-0000-0000-0bb093000000'
SI_183 = '00000000-0000-0000-0000-0bb094000000'
SI_150 = '00000000-0000-0000-0000-0bb095000000'
SI_179 = '00000000-0000-0000-0000-0bb096000000'
SI_186 = '00000000-0000-0000-0000-0bb097000000'
SI_175 = '00000000-0000-0000-0000-0bb098000000'
SI_189 = '00000000-0000-0000-0000-0bb099000000'
SI_184 = '00000000-0000-0000-0000-0bb09a000000'
SI_151 = '00000000-0000-0000-0000-0bb09b000000'
SI_173 = '00000000-0000-0000-0000-0bb09c000000'
SI_174 = '00000000-0000-0000-0000-0bb09d000000'
SI_165 = '00000000-0000-0000-0000-0bb09e000000'
SI_193 = '00000000-0000-0000-0000-0bb09f000000'
SI_157 = '00000000-0000-0000-0000-0bb0a0000000'
SI_170 = '00000000-0000-0000-0000-0bb0a1000000'
SI_149 = '00000000-0000-0000-0000-0bb0a2000000'
SI_154 = '00000000-0000-0000-0000-0bb0a3000000'
SI_155 = '00000000-0000-0000-0000-0bb0a4000000'
SI_171 = '00000000-0000-0000-0000-0bb0a5000000'
SI_093 = '00000000-0000-0000-0000-0bb0a6000000'
SI_177 = '00000000-0000-0000-0000-0bb0a7000000'
SI_167 = '00000000-0000-0000-0000-0bb0a8000000'
SI_178 = '00000000-0000-0000-0000-0bb0a9000000'
SI_160 = '00000000-0000-0000-0000-0bb0aa000000'
SI_169 = '00000000-0000-0000-0000-0bb0ab000000'
SI_159 = '00000000-0000-0000-0000-0bb0ac000000'
SI_191 = '00000000-0000-0000-0000-0bb0ad000000'
SI_172 = '00000000-0000-0000-0000-0bb0ae000000'
SI_168 = '00000000-0000-0000-0000-0bb0af000000'
SI_018 = '00000000-0000-0000-0000-0bb0b0000000'
SI_185 = '00000000-0000-0000-0000-0bb0b1000000'
SI_182 = '00000000-0000-0000-0000-0bb0b2000000'
SI_153 = '00000000-0000-0000-0000-0bb0b3000000'
SI_148 = '00000000-0000-0000-0000-0bb0b4000000'
SI_181 = '00000000-0000-0000-0000-0bb0b5000000'
SI_166 = '00000000-0000-0000-0000-0bb0b6000000'
SI_188 = '00000000-0000-0000-0000-0bb0b7000000'
SI_187 = '00000000-0000-0000-0000-0bb0b8000000'
SI_059 = '00000000-0000-0000-0000-0bb0b9000000'
SI_156 = '00000000-0000-0000-0000-0bb0ba000000'
SI_010 = '00000000-0000-0000-0000-0bb0bb000000'
SI_152 = '00000000-0000-0000-0000-0bb0bc000000'
SI_158 = '00000000-0000-0000-0000-0bb0bd000000'
SI_161 = '00000000-0000-0000-0000-0bb0be000000'
SI_176 = '00000000-0000-0000-0000-0bb0bf000000'
SI_194 = '00000000-0000-0000-0000-0bb0c0000000'
SI_033 = '00000000-0000-0000-0000-0bb0c1000000'
SI_195 = '00000000-0000-0000-0000-0bb0c2000000'
SI_197 = '00000000-0000-0000-0000-0bb0c3000000'
SI_196 = '00000000-0000-0000-0000-0bb0c4000000'
SI_208 = '00000000-0000-0000-0000-0bb0c5000000'
SI_198 = '00000000-0000-0000-0000-0bb0c6000000'
SI_199 = '00000000-0000-0000-0000-0bb0c7000000'
SI_200 = '00000000-0000-0000-0000-0bb0c8000000'
SI_209 = '00000000-0000-0000-0000-0bb0c9000000'
SI_201 = '00000000-0000-0000-0000-0bb0ca000000'
SI_202 = '00000000-0000-0000-0000-0bb0cb000000'
SI_203 = '00000000-0000-0000-0000-0bb0cc000000'
SI_204 = '00000000-0000-0000-0000-0bb0cd000000'
SI_205 = '00000000-0000-0000-0000-0bb0ce000000'
SI_211 = '00000000-0000-0000-0000-0bb0cf000000'
SI_206 = '00000000-0000-0000-0000-0bb0d0000000'
SI_210 = '00000000-0000-0000-0000-0bb0d1000000'
SI_207 = '00000000-0000-0000-0000-0bb0d2000000'
SI_213 = '00000000-0000-0000-0000-0bb0d3000000'
SI_212 = '00000000-0000-0000-0000-0bb0d4000000'
class SKRegion(Enum):
SK_KI = '00000000-0000-0000-0000-0bc001000000'
SK_PV = '00000000-0000-0000-0000-0bc002000000'
SK_ZI = '00000000-0000-0000-0000-0bc003000000'
SK_BC = '00000000-0000-0000-0000-0bc004000000'
SK_BL = '00000000-0000-0000-0000-0bc005000000'
SK_NI = '00000000-0000-0000-0000-0bc006000000'
SK_TC = '00000000-0000-0000-0000-0bc007000000'
SK_TA = '00000000-0000-0000-0000-0bc008000000'
class SLRegion(Enum):
SL_W = '00000000-0000-0000-0000-0bd001000000'
SL_S = '00000000-0000-0000-0000-0bd002000000'
SL_N = '00000000-0000-0000-0000-0bd003000000'
SL_E = '00000000-0000-0000-0000-0bd004000000'
class SMRegion(Enum):
SM_09 = '00000000-0000-0000-0000-0be001000000'
SM_02 = '00000000-0000-0000-0000-0be002000000'
SM_07 = '00000000-0000-0000-0000-0be003000000'
SM_01 = '00000000-0000-0000-0000-0be004000000'
SM_06 = '00000000-0000-0000-0000-0be005000000'
SM_03 = '00000000-0000-0000-0000-0be006000000'
SM_04 = '00000000-0000-0000-0000-0be007000000'
SM_05 = '00000000-0000-0000-0000-0be008000000'
SM_08 = '00000000-0000-0000-0000-0be009000000'
class SNRegion(Enum):
SN_ZG = '00000000-0000-0000-0000-0bf001000000'
SN_TH = '00000000-0000-0000-0000-0bf002000000'
SN_TC = '00000000-0000-0000-0000-0bf003000000'
SN_SL = '00000000-0000-0000-0000-0bf004000000'
SN_MT = '00000000-0000-0000-0000-0bf005000000'
SN_LG = '00000000-0000-0000-0000-0bf006000000'
SN_KD = '00000000-0000-0000-0000-0bf007000000'
SN_KL = '00000000-0000-0000-0000-0bf008000000'
SN_FK = '00000000-0000-0000-0000-0bf009000000'
SN_DB = '00000000-0000-0000-0000-0bf00a000000'
SN_DK = '00000000-0000-0000-0000-0bf00b000000'
SN_KA = '00000000-0000-0000-0000-0bf00c000000'
SN_KE = '00000000-0000-0000-0000-0bf00d000000'
SN_SE = '00000000-0000-0000-0000-0bf00e000000'
class SORegion(Enum):
SO_WO = '00000000-0000-0000-0000-0c0001000000'
SO_TO = '00000000-0000-0000-0000-0c0002000000'
SO_SH = '00000000-0000-0000-0000-0c0003000000'
SO_SD = '00000000-0000-0000-0000-0c0004000000'
SO_SA = '00000000-0000-0000-0000-0c0005000000'
SO_NU = '00000000-0000-0000-0000-0c0006000000'
SO_MU = '00000000-0000-0000-0000-0c0007000000'
SO_JH = '00000000-0000-0000-0000-0c0008000000'
SO_JD = '00000000-0000-0000-0000-0c0009000000'
SO_HI = '00000000-0000-0000-0000-0c000a000000'
SO_GE = '00000000-0000-0000-0000-0c000b000000'
SO_GA = '00000000-0000-0000-0000-0c000c000000'
SO_BY = '00000000-0000-0000-0000-0c000d000000'
SO_BR = '00000000-0000-0000-0000-0c000e000000'
SO_BN = '00000000-0000-0000-0000-0c000f000000'
SO_BK = '00000000-0000-0000-0000-0c0010000000'
SO_AW = '00000000-0000-0000-0000-0c0011000000'
SO_SO = '00000000-0000-0000-0000-0c0012000000'
class SRRegion(Enum):
SR_WA = '00000000-0000-0000-0000-0c1001000000'
SR_SI = '00000000-0000-0000-0000-0c1002000000'
SR_SA = '00000000-0000-0000-0000-0c1003000000'
SR_PM = '00000000-0000-0000-0000-0c1004000000'
SR_PR = '00000000-0000-0000-0000-0c1005000000'
SR_NI = '00000000-0000-0000-0000-0c1006000000'
SR_MA = '00000000-0000-0000-0000-0c1007000000'
SR_CR = '00000000-0000-0000-0000-0c1008000000'
SR_CM = '00000000-0000-0000-0000-0c1009000000'
SR_BR = '00000000-0000-0000-0000-0c100a000000'
class SSRegion(Enum):
SS_JG = '00000000-0000-0000-0000-0c2017000000'
class STRegion(Enum):
ST_S = '00000000-0000-0000-0000-0c3001000000'
ST_P = '00000000-0000-0000-0000-0c3002000000'
class SVRegion(Enum):
SV_US = '00000000-0000-0000-0000-0c4001000000'
SV_SO = '00000000-0000-0000-0000-0c4002000000'
SV_SV = '00000000-0000-0000-0000-0c4003000000'
SV_SA = '00000000-0000-0000-0000-0c4004000000'
SV_SS = '00000000-0000-0000-0000-0c4005000000'
SV_SM = '00000000-0000-0000-0000-0c4006000000'
SV_MO = '00000000-0000-0000-0000-0c4007000000'
SV_UN = '00000000-0000-0000-0000-0c4008000000'
SV_PA = '00000000-0000-0000-0000-0c4009000000'
SV_LI = '00000000-0000-0000-0000-0c400a000000'
SV_CU = '00000000-0000-0000-0000-0c400b000000'
SV_CH = '00000000-0000-0000-0000-0c400c000000'
SV_CA = '00000000-0000-0000-0000-0c400d000000'
SV_AH = '00000000-0000-0000-0000-0c400e000000'
class SYRegion(Enum):
SY_TA = '00000000-0000-0000-0000-0c5001000000'
SY_DI = '00000000-0000-0000-0000-0c5002000000'
SY_ID = '00000000-0000-0000-0000-0c5003000000'
SY_HI = '00000000-0000-0000-0000-0c5004000000'
SY_HM = '00000000-0000-0000-0000-0c5005000000'
SY_HL = '00000000-0000-0000-0000-0c5006000000'
SY_RD = '00000000-0000-0000-0000-0c5007000000'
SY_DY = '00000000-0000-0000-0000-0c5008000000'
SY_DR = '00000000-0000-0000-0000-0c5009000000'
SY_SU = '00000000-0000-0000-0000-0c500a000000'
SY_RA = '00000000-0000-0000-0000-0c500b000000'
SY_QU = '00000000-0000-0000-0000-0c500c000000'
SY_LA = '00000000-0000-0000-0000-0c500d000000'
SY_HA = '00000000-0000-0000-0000-0c500e000000'
class SZRegion(Enum):
SZ_SH = '00000000-0000-0000-0000-0c6001000000'
SZ_MA = '00000000-0000-0000-0000-0c6002000000'
SZ_LU = '00000000-0000-0000-0000-0c6003000000'
SZ_HH = '00000000-0000-0000-0000-0c6004000000'
class TDRegion(Enum):
TD_SA = '00000000-0000-0000-0000-0c8001000000'
TD_OD = '00000000-0000-0000-0000-0c8002000000'
TD_WF = '00000000-0000-0000-0000-0c8003000000'
TD_TA = '00000000-0000-0000-0000-0c8004000000'
TD_MC = '00000000-0000-0000-0000-0c8005000000'
TD_ME = '00000000-0000-0000-0000-0c8006000000'
TD_LR = '00000000-0000-0000-0000-0c8007000000'
TD_LO = '00000000-0000-0000-0000-0c8008000000'
TD_LC = '00000000-0000-0000-0000-0c8009000000'
TD_KA = '00000000-0000-0000-0000-0c800a000000'
TD_GR = '00000000-0000-0000-0000-0c800b000000'
TD_CB = '00000000-0000-0000-0000-0c800c000000'
TD_BA = '00000000-0000-0000-0000-0c800d000000'
TD_23 = '00000000-0000-0000-0000-0c800e000000'
TD_HL = '00000000-0000-0000-0000-0c800f000000'
TD_MA = '00000000-0000-0000-0000-0c8010000000'
TD_MO = '00000000-0000-0000-0000-0c8011000000'
TD_ND = '00000000-0000-0000-0000-0c8012000000'
TD_BG = '00000000-0000-0000-0000-0c8013000000'
TD_SI = '00000000-0000-0000-0000-0c8014000000'
TD_TI = '00000000-0000-0000-0000-0c8015000000'
TD_EO = '00000000-0000-0000-0000-0c8016000000'
TD_EE = '00000000-0000-0000-0000-0c8017000000'
class TFRegion(Enum):
TF_X2 = '00000000-0000-0000-0000-0c9001000000'
TF_X3 = '00000000-0000-0000-0000-0c9002000000'
TF_X1 = '00000000-0000-0000-0000-0c9003000000'
TF_X4 = '00000000-0000-0000-0000-0c9004000000'
class TGRegion(Enum):
TG_S = '00000000-0000-0000-0000-0ca001000000'
TG_P = '00000000-0000-0000-0000-0ca002000000'
TG_M = '00000000-0000-0000-0000-0ca003000000'
TG_C = '00000000-0000-0000-0000-0ca004000000'
TG_K = '00000000-0000-0000-0000-0ca005000000'
class THRegion(Enum):
TH_61 = '00000000-0000-0000-0000-0cb001000000'
TH_92 = '00000000-0000-0000-0000-0cb002000000'
TH_63 = '00000000-0000-0000-0000-0cb003000000'
TH_84 = '00000000-0000-0000-0000-0cb004000000'
TH_64 = '00000000-0000-0000-0000-0cb005000000'
TH_70 = '00000000-0000-0000-0000-0cb006000000'
TH_85 = '00000000-0000-0000-0000-0cb007000000'
TH_77 = '00000000-0000-0000-0000-0cb008000000'
TH_83 = '00000000-0000-0000-0000-0cb009000000'
TH_76 = '00000000-0000-0000-0000-0cb00a000000'
TH_82 = '00000000-0000-0000-0000-0cb00b000000'
TH_58 = '00000000-0000-0000-0000-0cb00c000000'
TH_51 = '00000000-0000-0000-0000-0cb00d000000'
TH_52 = '00000000-0000-0000-0000-0cb00e000000'
TH_81 = '00000000-0000-0000-0000-0cb00f000000'
TH_71 = '00000000-0000-0000-0000-0cb010000000'
TH_62 = '00000000-0000-0000-0000-0cb011000000'
TH_86 = '00000000-0000-0000-0000-0cb012000000'
TH_57 = '00000000-0000-0000-0000-0cb013000000'
TH_50 = '00000000-0000-0000-0000-0cb014000000'
TH_35 = '00000000-0000-0000-0000-0cb015000000'
TH_95 = '00000000-0000-0000-0000-0cb016000000'
TH_53 = '00000000-0000-0000-0000-0cb017000000'
TH_23 = '00000000-0000-0000-0000-0cb018000000'
TH_32 = '00000000-0000-0000-0000-0cb019000000'
TH_72 = '00000000-0000-0000-0000-0cb01a000000'
TH_90 = '00000000-0000-0000-0000-0cb01b000000'
TH_33 = '00000000-0000-0000-0000-0cb01c000000'
TH_17 = '00000000-0000-0000-0000-0cb01d000000'
TH_91 = '00000000-0000-0000-0000-0cb01e000000'
TH_19 = '00000000-0000-0000-0000-0cb01f000000'
TH_75 = '00000000-0000-0000-0000-0cb020000000'
TH_74 = '00000000-0000-0000-0000-0cb021000000'
TH_11 = '00000000-0000-0000-0000-0cb022000000'
TH_47 = '00000000-0000-0000-0000-0cb023000000'
TH_45 = '00000000-0000-0000-0000-0cb024000000'
TH_21 = '00000000-0000-0000-0000-0cb025000000'
TH_14 = '00000000-0000-0000-0000-0cb026000000'
TH_54 = '00000000-0000-0000-0000-0cb027000000'
TH_65 = '00000000-0000-0000-0000-0cb028000000'
TH_66 = '00000000-0000-0000-0000-0cb029000000'
TH_67 = '00000000-0000-0000-0000-0cb02a000000'
TH_56 = '00000000-0000-0000-0000-0cb02b000000'
TH_93 = '00000000-0000-0000-0000-0cb02c000000'
TH_94 = '00000000-0000-0000-0000-0cb02d000000'
TH_13 = '00000000-0000-0000-0000-0cb02e000000'
TH_12 = '00000000-0000-0000-0000-0cb02f000000'
TH_43 = '00000000-0000-0000-0000-0cb030000000'
TH_96 = '00000000-0000-0000-0000-0cb031000000'
TH_55 = '00000000-0000-0000-0000-0cb032000000'
TH_80 = '00000000-0000-0000-0000-0cb033000000'
TH_60 = '00000000-0000-0000-0000-0cb034000000'
TH_30 = '00000000-0000-0000-0000-0cb035000000'
TH_48 = '00000000-0000-0000-0000-0cb036000000'
TH_73 = '00000000-0000-0000-0000-0cb037000000'
TH_26 = '00000000-0000-0000-0000-0cb038000000'
TH_49 = '00000000-0000-0000-0000-0cb039000000'
TH_44 = '00000000-0000-0000-0000-0cb03a000000'
TH_16 = '00000000-0000-0000-0000-0cb03b000000'
TH_42 = '00000000-0000-0000-0000-0cb03c000000'
TH_10 = '00000000-0000-0000-0000-0cb03d000000'
TH_40 = '00000000-0000-0000-0000-0cb03e000000'
TH_46 = '00000000-0000-0000-0000-0cb03f000000'
TH_20 = '00000000-0000-0000-0000-0cb040000000'
TH_22 = '00000000-0000-0000-0000-0cb041000000'
TH_36 = '00000000-0000-0000-0000-0cb042000000'
TH_18 = '00000000-0000-0000-0000-0cb043000000'
TH_24 = '00000000-0000-0000-0000-0cb044000000'
TH_31 = '00000000-0000-0000-0000-0cb045000000'
TH_15 = '00000000-0000-0000-0000-0cb046000000'
TH_41 = '00000000-0000-0000-0000-0cb047000000'
TH_25 = '00000000-0000-0000-0000-0cb048000000'
TH_34 = '00000000-0000-0000-0000-0cb049000000'
TH_37 = '00000000-0000-0000-0000-0cb04a000000'
TH_39 = '00000000-0000-0000-0000-0cb04b000000'
TH_27 = '00000000-0000-0000-0000-0cb04c000000'
TH_38 = '00000000-0000-0000-0000-0cb04d000000'
class TJRegion(Enum):
TJ_SU = '00000000-0000-0000-0000-0cc001000000'
TJ_GB = '00000000-0000-0000-0000-0cc002000000'
TJ_KT = '00000000-0000-0000-0000-0cc003000000'
TJ_RA = '00000000-0000-0000-0000-0cc004000000'
TJ_DU = '00000000-0000-0000-0000-0cc005000000'
class TLRegion(Enum):
TL_VI = '00000000-0000-0000-0000-0ce001000000'
TL_MF = '00000000-0000-0000-0000-0ce002000000'
TL_MT = '00000000-0000-0000-0000-0ce003000000'
TL_LI = '00000000-0000-0000-0000-0ce004000000'
TL_LA = '00000000-0000-0000-0000-0ce005000000'
TL_CO = '00000000-0000-0000-0000-0ce006000000'
TL_ER = '00000000-0000-0000-0000-0ce007000000'
TL_DI = '00000000-0000-0000-0000-0ce008000000'
TL_BO = '00000000-0000-0000-0000-0ce009000000'
TL_BA = '00000000-0000-0000-0000-0ce00a000000'
TL_OE = '00000000-0000-0000-0000-0ce00b000000'
TL_AN = '00000000-0000-0000-0000-0ce00c000000'
TL_AL = '00000000-0000-0000-0000-0ce00d000000'
class TMRegion(Enum):
TM_B = '00000000-0000-0000-0000-0cf001000000'
TM_A = '00000000-0000-0000-0000-0cf002000000'
TM_S = '00000000-0000-0000-0000-0cf003000000'
TM_D = '00000000-0000-0000-0000-0cf004000000'
TM_M = '00000000-0000-0000-0000-0cf005000000'
TM_L = '00000000-0000-0000-0000-0cf006000000'
class TNRegion(Enum):
TN_22 = '00000000-0000-0000-0000-0d0001000000'
TN_11 = '00000000-0000-0000-0000-0d0002000000'
TN_72 = '00000000-0000-0000-0000-0d0003000000'
TN_83 = '00000000-0000-0000-0000-0d0004000000'
TN_51 = '00000000-0000-0000-0000-0d0005000000'
TN_34 = '00000000-0000-0000-0000-0d0006000000'
TN_43 = '00000000-0000-0000-0000-0d0007000000'
TN_61 = '00000000-0000-0000-0000-0d0008000000'
TN_73 = '00000000-0000-0000-0000-0d0009000000'
TN_71 = '00000000-0000-0000-0000-0d000a000000'
TN_81 = '00000000-0000-0000-0000-0d000b000000'
TN_21 = '00000000-0000-0000-0000-0d000c000000'
TN_82 = '00000000-0000-0000-0000-0d000d000000'
TN_32 = '00000000-0000-0000-0000-0d000e000000'
TN_13 = '00000000-0000-0000-0000-0d000f000000'
TN_23 = '00000000-0000-0000-0000-0d0010000000'
TN_31 = '00000000-0000-0000-0000-0d0011000000'
TN_12 = '00000000-0000-0000-0000-0d0012000000'
TN_41 = '00000000-0000-0000-0000-0d0013000000'
TN_42 = '00000000-0000-0000-0000-0d0014000000'
TN_52 = '00000000-0000-0000-0000-0d0015000000'
TN_53 = '00000000-0000-0000-0000-0d0016000000'
TN_33 = '00000000-0000-0000-0000-0d0017000000'
TN_14 = '00000000-0000-0000-0000-0d0018000000'
class TORegion(Enum):
TO_05 = '00000000-0000-0000-0000-0d1001000000'
TO_04 = '00000000-0000-0000-0000-0d1002000000'
TO_02 = '00000000-0000-0000-0000-0d1003000000'
TO_01 = '00000000-0000-0000-0000-0d1004000000'
TO_03 = '00000000-0000-0000-0000-0d1005000000'
class TRRegion(Enum):
TR_66 = '00000000-0000-0000-0000-0d2001000000'
TR_65 = '00000000-0000-0000-0000-0d2002000000'
TR_64 = '00000000-0000-0000-0000-0d2003000000'
TR_63 = '00000000-0000-0000-0000-0d2004000000'
TR_62 = '00000000-0000-0000-0000-0d2005000000'
TR_58 = '00000000-0000-0000-0000-0d2006000000'
TR_56 = '00000000-0000-0000-0000-0d2007000000'
TR_51 = '00000000-0000-0000-0000-0d2008000000'
TR_50 = '00000000-0000-0000-0000-0d2009000000'
TR_49 = '00000000-0000-0000-0000-0d200a000000'
TR_48 = '00000000-0000-0000-0000-0d200b000000'
TR_47 = '00000000-0000-0000-0000-0d200c000000'
TR_45 = '00000000-0000-0000-0000-0d200d000000'
TR_44 = '00000000-0000-0000-0000-0d200e000000'
TR_43 = '00000000-0000-0000-0000-0d200f000000'
TR_42 = '00000000-0000-0000-0000-0d2010000000'
TR_40 = '00000000-0000-0000-0000-0d2011000000'
TR_38 = '00000000-0000-0000-0000-0d2012000000'
TR_46 = '00000000-0000-0000-0000-0d2013000000'
TR_35 = '00000000-0000-0000-0000-0d2014000000'
TR_32 = '00000000-0000-0000-0000-0d2015000000'
TR_33 = '00000000-0000-0000-0000-0d2016000000'
TR_31 = '00000000-0000-0000-0000-0d2017000000'
TR_30 = '00000000-0000-0000-0000-0d2018000000'
TR_27 = '00000000-0000-0000-0000-0d2019000000'
TR_26 = '00000000-0000-0000-0000-0d201a000000'
TR_25 = '00000000-0000-0000-0000-0d201b000000'
TR_24 = '00000000-0000-0000-0000-0d201c000000'
TR_23 = '00000000-0000-0000-0000-0d201d000000'
TR_21 = '00000000-0000-0000-0000-0d201e000000'
TR_20 = '00000000-0000-0000-0000-0d201f000000'
TR_15 = '00000000-0000-0000-0000-0d2020000000'
TR_13 = '00000000-0000-0000-0000-0d2021000000'
TR_12 = '00000000-0000-0000-0000-0d2022000000'
TR_11 = '00000000-0000-0000-0000-0d2023000000'
TR_10 = '00000000-0000-0000-0000-0d2024000000'
TR_09 = '00000000-0000-0000-0000-0d2025000000'
TR_07 = '00000000-0000-0000-0000-0d2026000000'
TR_06 = '00000000-0000-0000-0000-0d2027000000'
TR_04 = '00000000-0000-0000-0000-0d2028000000'
TR_03 = '00000000-0000-0000-0000-0d2029000000'
TR_02 = '00000000-0000-0000-0000-0d202a000000'
TR_01 = '00000000-0000-0000-0000-0d202b000000'
TR_80 = '00000000-0000-0000-0000-0d202c000000'
TR_76 = '00000000-0000-0000-0000-0d202d000000'
TR_68 = '00000000-0000-0000-0000-0d202e000000'
TR_72 = '00000000-0000-0000-0000-0d202f000000'
TR_70 = '00000000-0000-0000-0000-0d2030000000'
TR_71 = '00000000-0000-0000-0000-0d2031000000'
TR_73 = '00000000-0000-0000-0000-0d2032000000'
TR_79 = '00000000-0000-0000-0000-0d2033000000'
TR_67 = '00000000-0000-0000-0000-0d2034000000'
TR_61 = '00000000-0000-0000-0000-0d2035000000'
TR_60 = '00000000-0000-0000-0000-0d2036000000'
TR_59 = '00000000-0000-0000-0000-0d2037000000'
TR_57 = '00000000-0000-0000-0000-0d2038000000'
TR_55 = '00000000-0000-0000-0000-0d2039000000'
TR_54 = '00000000-0000-0000-0000-0d203a000000'
TR_53 = '00000000-0000-0000-0000-0d203b000000'
TR_52 = '00000000-0000-0000-0000-0d203c000000'
TR_41 = '00000000-0000-0000-0000-0d203d000000'
TR_39 = '00000000-0000-0000-0000-0d203e000000'
TR_37 = '00000000-0000-0000-0000-0d203f000000'
TR_36 = '00000000-0000-0000-0000-0d2040000000'
TR_34 = '00000000-0000-0000-0000-0d2041000000'
TR_29 = '00000000-0000-0000-0000-0d2042000000'
TR_28 = '00000000-0000-0000-0000-0d2043000000'
TR_22 = '00000000-0000-0000-0000-0d2044000000'
TR_19 = '00000000-0000-0000-0000-0d2045000000'
TR_18 = '00000000-0000-0000-0000-0d2046000000'
TR_17 = '00000000-0000-0000-0000-0d2047000000'
TR_16 = '00000000-0000-0000-0000-0d2048000000'
TR_14 = '00000000-0000-0000-0000-0d2049000000'
TR_08 = '00000000-0000-0000-0000-0d204a000000'
TR_05 = '00000000-0000-0000-0000-0d204b000000'
TR_74 = '00000000-0000-0000-0000-0d204c000000'
TR_78 = '00000000-0000-0000-0000-0d204d000000'
TR_77 = '00000000-0000-0000-0000-0d204e000000'
TR_75 = '00000000-0000-0000-0000-0d204f000000'
TR_69 = '00000000-0000-0000-0000-0d2050000000'
TR_81 = '00000000-0000-0000-0000-0d2051000000'
class TTRegion(Enum):
TT_TOB = '00000000-0000-0000-0000-0d3001000000'
TT_SFO = '00000000-0000-0000-0000-0d3002000000'
TT_POS = '00000000-0000-0000-0000-0d3003000000'
TT_MRC = '00000000-0000-0000-0000-0d3004000000'
TT_ARI = '00000000-0000-0000-0000-0d3005000000'
TT_CHA = '00000000-0000-0000-0000-0d3006000000'
TT_CTT = '00000000-0000-0000-0000-0d3007000000'
TT_DMN = '00000000-0000-0000-0000-0d3008000000'
TT_PED = '00000000-0000-0000-0000-0d3009000000'
TT_PRT = '00000000-0000-0000-0000-0d300a000000'
TT_PTF = '00000000-0000-0000-0000-0d300b000000'
TT_SGE = '00000000-0000-0000-0000-0d300c000000'
TT_SIP = '00000000-0000-0000-0000-0d300d000000'
TT_SJL = '00000000-0000-0000-0000-0d300e000000'
TT_TUP = '00000000-0000-0000-0000-0d300f000000'
class TVRegion(Enum):
TV_NIU = '00000000-0000-0000-0000-0d4001000000'
TV_NMA = '00000000-0000-0000-0000-0d4002000000'
TV_FUN = '00000000-0000-0000-0000-0d4003000000'
TV_NIT = '00000000-0000-0000-0000-0d4004000000'
TV_NMG = '00000000-0000-0000-0000-0d4005000000'
TV_VAI = '00000000-0000-0000-0000-0d4006000000'
TV_NKF = '00000000-0000-0000-0000-0d4007000000'
TV_NKL = '00000000-0000-0000-0000-0d4008000000'
class TWRegion(Enum):
TW_CHA = '00000000-0000-0000-0000-0d5001000000'
TW_CYI = '00000000-0000-0000-0000-0d5002000000'
TW_CYQ = '00000000-0000-0000-0000-0d5003000000'
TW_HSZ = '00000000-0000-0000-0000-0d5004000000'
TW_HSQ = '00000000-0000-0000-0000-0d5005000000'
TW_HUA = '00000000-0000-0000-0000-0d5006000000'
TW_KHH = '00000000-0000-0000-0000-0d5007000000'
TW_KEE = '00000000-0000-0000-0000-0d5008000000'
TW_KIN = '00000000-0000-0000-0000-0d5009000000'
TW_LIE = '00000000-0000-0000-0000-0d500a000000'
TW_MIA = '00000000-0000-0000-0000-0d500b000000'
TW_NAN = '00000000-0000-0000-0000-0d500c000000'
TW_NWT = '00000000-0000-0000-0000-0d500d000000'
TW_PEN = '00000000-0000-0000-0000-0d500e000000'
TW_PIF = '00000000-0000-0000-0000-0d500f000000'
TW_TXG = '00000000-0000-0000-0000-0d5010000000'
TW_TNN = '00000000-0000-0000-0000-0d5011000000'
TW_TPE = '00000000-0000-0000-0000-0d5012000000'
TW_TTT = '00000000-0000-0000-0000-0d5013000000'
TW_TAO = '00000000-0000-0000-0000-0d5014000000'
TW_ILA = '00000000-0000-0000-0000-0d5015000000'
TW_YUN = '00000000-0000-0000-0000-0d5016000000'
class TZRegion(Enum):
TZ_05 = '00000000-0000-0000-0000-0d6001000000'
TZ_15 = '00000000-0000-0000-0000-0d6002000000'
TZ_07 = '00000000-0000-0000-0000-0d6003000000'
TZ_11 = '00000000-0000-0000-0000-0d6004000000'
TZ_25 = '00000000-0000-0000-0000-0d6005000000'
TZ_24 = '00000000-0000-0000-0000-0d6006000000'
TZ_23 = '00000000-0000-0000-0000-0d6007000000'
TZ_22 = '00000000-0000-0000-0000-0d6008000000'
TZ_20 = '00000000-0000-0000-0000-0d6009000000'
TZ_19 = '00000000-0000-0000-0000-0d600a000000'
TZ_10 = '00000000-0000-0000-0000-0d600b000000'
TZ_06 = '00000000-0000-0000-0000-0d600c000000'
TZ_18 = '00000000-0000-0000-0000-0d600d000000'
TZ_16 = '00000000-0000-0000-0000-0d600e000000'
TZ_14 = '00000000-0000-0000-0000-0d600f000000'
TZ_13 = '00000000-0000-0000-0000-0d6010000000'
TZ_12 = '00000000-0000-0000-0000-0d6011000000'
TZ_09 = '00000000-0000-0000-0000-0d6012000000'
TZ_08 = '00000000-0000-0000-0000-0d6013000000'
TZ_04 = '00000000-0000-0000-0000-0d6014000000'
TZ_03 = '00000000-0000-0000-0000-0d6015000000'
TZ_02 = '00000000-0000-0000-0000-0d6016000000'
TZ_01 = '00000000-0000-0000-0000-0d6017000000'
TZ_26 = '00000000-0000-0000-0000-0d6018000000'
TZ_21 = '00000000-0000-0000-0000-0d6019000000'
TZ_17 = '00000000-0000-0000-0000-0d601a000000'
TZ_30 = '00000000-0000-0000-0000-0d601b000000'
TZ_27 = '00000000-0000-0000-0000-0d601c000000'
TZ_28 = '00000000-0000-0000-0000-0d601d000000'
TZ_301 = '00000000-0000-0000-0000-0d601e000000'
class UARegion(Enum):
UA_18 = '00000000-0000-0000-0000-0d7001000000'
UA_23 = '00000000-0000-0000-0000-0d7002000000'
UA_21 = '00000000-0000-0000-0000-0d7003000000'
UA_07 = '00000000-0000-0000-0000-0d7004000000'
UA_05 = '00000000-0000-0000-0000-0d7005000000'
UA_61 = '00000000-0000-0000-0000-0d7006000000'
UA_59 = '00000000-0000-0000-0000-0d7007000000'
UA_40 = '00000000-0000-0000-0000-0d7008000000'
UA_56 = '00000000-0000-0000-0000-0d7009000000'
UA_53 = '00000000-0000-0000-0000-0d700a000000'
UA_51 = '00000000-0000-0000-0000-0d700b000000'
UA_48 = '00000000-0000-0000-0000-0d700c000000'
UA_46 = '00000000-0000-0000-0000-0d700d000000'
UA_09 = '00000000-0000-0000-0000-0d700e000000'
UA_32 = '00000000-0000-0000-0000-0d700f000000'
UA_30 = '00000000-0000-0000-0000-0d7010000000'
UA_43 = '00000000-0000-0000-0000-0d7011000000'
UA_35 = '00000000-0000-0000-0000-0d7012000000'
UA_68 = '00000000-0000-0000-0000-0d7013000000'
UA_65 = '00000000-0000-0000-0000-0d7014000000'
UA_63 = '00000000-0000-0000-0000-0d7015000000'
UA_26 = '00000000-0000-0000-0000-0d7016000000'
UA_14 = '00000000-0000-0000-0000-0d7017000000'
UA_12 = '00000000-0000-0000-0000-0d7018000000'
UA_77 = '00000000-0000-0000-0000-0d7019000000'
UA_74 = '00000000-0000-0000-0000-0d701a000000'
UA_71 = '00000000-0000-0000-0000-0d701b000000'
class UGRegion(Enum):
UG_C = '00000000-0000-0000-0000-0d8001000000'
UG_E = '00000000-0000-0000-0000-0d8002000000'
UG_N = '00000000-0000-0000-0000-0d8003000000'
UG_W = '00000000-0000-0000-0000-0d8004000000'
class UMRegion(Enum):
UM_79 = '00000000-0000-0000-0000-0d9001000000'
UM_76 = '00000000-0000-0000-0000-0d9002000000'
UM_81 = '00000000-0000-0000-0000-0d9003000000'
UM_84 = '00000000-0000-0000-0000-0d9004000000'
UM_86 = '00000000-0000-0000-0000-0d9005000000'
UM_67 = '00000000-0000-0000-0000-0d9006000000'
UM_89 = '00000000-0000-0000-0000-0d9007000000'
UM_71 = '00000000-0000-0000-0000-0d9008000000'
UM_95 = '00000000-0000-0000-0000-0d9009000000'
class USRegion(Enum):
US_AR = '00000000-0000-0000-0000-0da001000000'
US_DC = '00000000-0000-0000-0000-0da002000000'
US_DE = '00000000-0000-0000-0000-0da003000000'
US_FL = '00000000-0000-0000-0000-0da004000000'
US_GA = '00000000-0000-0000-0000-0da005000000'
US_KS = '00000000-0000-0000-0000-0da006000000'
US_LA = '00000000-0000-0000-0000-0da007000000'
US_MD = '00000000-0000-0000-0000-0da008000000'
US_MO = '00000000-0000-0000-0000-0da009000000'
US_MS = '00000000-0000-0000-0000-0da00a000000'
US_NC = '00000000-0000-0000-0000-0da00b000000'
US_OK = '00000000-0000-0000-0000-0da00c000000'
US_SC = '00000000-0000-0000-0000-0da00d000000'
US_TN = '00000000-0000-0000-0000-0da00e000000'
US_TX = '00000000-0000-0000-0000-0da00f000000'
US_WV = '00000000-0000-0000-0000-0da010000000'
US_AL = '00000000-0000-0000-0000-0da011000000'
US_CT = '00000000-0000-0000-0000-0da012000000'
US_IA = '00000000-0000-0000-0000-0da013000000'
US_IL = '00000000-0000-0000-0000-0da014000000'
US_IN = '00000000-0000-0000-0000-0da015000000'
US_ME = '00000000-0000-0000-0000-0da016000000'
US_MI = '00000000-0000-0000-0000-0da017000000'
US_MN = '00000000-0000-0000-0000-0da018000000'
US_NE = '00000000-0000-0000-0000-0da019000000'
US_NH = '00000000-0000-0000-0000-0da01a000000'
US_NJ = '00000000-0000-0000-0000-0da01b000000'
US_NY = '00000000-0000-0000-0000-0da01c000000'
US_OH = '00000000-0000-0000-0000-0da01d000000'
US_RI = '00000000-0000-0000-0000-0da01e000000'
US_VT = '00000000-0000-0000-0000-0da01f000000'
US_WI = '00000000-0000-0000-0000-0da020000000'
US_CA = '00000000-0000-0000-0000-0da021000000'
US_CO = '00000000-0000-0000-0000-0da022000000'
US_NM = '00000000-0000-0000-0000-0da023000000'
US_NV = '00000000-0000-0000-0000-0da024000000'
US_UT = '00000000-0000-0000-0000-0da025000000'
US_AZ = '00000000-0000-0000-0000-0da026000000'
US_ID = '00000000-0000-0000-0000-0da027000000'
US_MT = '00000000-0000-0000-0000-0da028000000'
US_ND = '00000000-0000-0000-0000-0da029000000'
US_OR = '00000000-0000-0000-0000-0da02a000000'
US_SD = '00000000-0000-0000-0000-0da02b000000'
US_WA = '00000000-0000-0000-0000-0da02c000000'
US_WY = '00000000-0000-0000-0000-0da02d000000'
US_HI = '00000000-0000-0000-0000-0da02e000000'
US_AK = '00000000-0000-0000-0000-0da02f000000'
US_KY = '00000000-0000-0000-0000-0da030000000'
US_MA = '00000000-0000-0000-0000-0da031000000'
US_PA = '00000000-0000-0000-0000-0da032000000'
US_VA = '00000000-0000-0000-0000-0da033000000'
class UYRegion(Enum):
UY_TT = '00000000-0000-0000-0000-0db001000000'
UY_TA = '00000000-0000-0000-0000-0db002000000'
UY_SO = '00000000-0000-0000-0000-0db003000000'
UY_SJ = '00000000-0000-0000-0000-0db004000000'
UY_SA = '00000000-0000-0000-0000-0db005000000'
UY_RO = '00000000-0000-0000-0000-0db006000000'
UY_RV = '00000000-0000-0000-0000-0db007000000'
UY_RN = '00000000-0000-0000-0000-0db008000000'
UY_PA = '00000000-0000-0000-0000-0db009000000'
UY_MO = '00000000-0000-0000-0000-0db00a000000'
UY_MA = '00000000-0000-0000-0000-0db00b000000'
UY_LA = '00000000-0000-0000-0000-0db00c000000'
UY_FD = '00000000-0000-0000-0000-0db00d000000'
UY_FS = '00000000-0000-0000-0000-0db00e000000'
UY_DU = '00000000-0000-0000-0000-0db00f000000'
UY_CO = '00000000-0000-0000-0000-0db010000000'
UY_CL = '00000000-0000-0000-0000-0db011000000'
UY_CA = '00000000-0000-0000-0000-0db012000000'
UY_AR = '00000000-0000-0000-0000-0db013000000'
class UZRegion(Enum):
UZ_QR = '00000000-0000-0000-0000-0dc001000000'
UZ_SU = '00000000-0000-0000-0000-0dc002000000'
UZ_SA = '00000000-0000-0000-0000-0dc003000000'
UZ_QA = '00000000-0000-0000-0000-0dc004000000'
UZ_BU = '00000000-0000-0000-0000-0dc005000000'
UZ_TO = '00000000-0000-0000-0000-0dc006000000'
UZ_TK = '00000000-0000-0000-0000-0dc007000000'
UZ_SI = '00000000-0000-0000-0000-0dc008000000'
UZ_NW = '00000000-0000-0000-0000-0dc009000000'
UZ_NG = '00000000-0000-0000-0000-0dc00a000000'
UZ_XO = '00000000-0000-0000-0000-0dc00b000000'
UZ_JI = '00000000-0000-0000-0000-0dc00c000000'
UZ_FA = '00000000-0000-0000-0000-0dc00d000000'
UZ_AN = '00000000-0000-0000-0000-0dc00e000000'
class VCRegion(Enum):
VC_05 = '00000000-0000-0000-0000-0de001000000'
VC_04 = '00000000-0000-0000-0000-0de002000000'
VC_03 = '00000000-0000-0000-0000-0de003000000'
VC_02 = '00000000-0000-0000-0000-0de004000000'
VC_06 = '00000000-0000-0000-0000-0de005000000'
VC_01 = '00000000-0000-0000-0000-0de006000000'
class VERegion(Enum):
VE_V = '00000000-0000-0000-0000-0df001000000'
VE_U = '00000000-0000-0000-0000-0df002000000'
VE_T = '00000000-0000-0000-0000-0df003000000'
VE_S = '00000000-0000-0000-0000-0df004000000'
VE_R = '00000000-0000-0000-0000-0df005000000'
VE_P = '00000000-0000-0000-0000-0df006000000'
VE_O = '00000000-0000-0000-0000-0df007000000'
VE_N = '00000000-0000-0000-0000-0df008000000'
VE_M = '00000000-0000-0000-0000-0df009000000'
VE_L = '00000000-0000-0000-0000-0df00a000000'
VE_K = '00000000-0000-0000-0000-0df00b000000'
VE_J = '00000000-0000-0000-0000-0df00c000000'
VE_W = '00000000-0000-0000-0000-0df00d000000'
VE_A = '00000000-0000-0000-0000-0df00e000000'
VE_I = '00000000-0000-0000-0000-0df00f000000'
VE_Y = '00000000-0000-0000-0000-0df010000000'
VE_H = '00000000-0000-0000-0000-0df011000000'
VE_G = '00000000-0000-0000-0000-0df012000000'
VE_F = '00000000-0000-0000-0000-0df013000000'
VE_E = '00000000-0000-0000-0000-0df014000000'
VE_D = '00000000-0000-0000-0000-0df015000000'
VE_C = '00000000-0000-0000-0000-0df016000000'
VE_B = '00000000-0000-0000-0000-0df017000000'
VE_Z = '00000000-0000-0000-0000-0df018000000'
VE_X = '00000000-0000-0000-0000-0df019000000'
class VIRegion(Enum):
VI_C = '00000000-0000-0000-0000-0e1001000000'
VI_J = '00000000-0000-0000-0000-0e1002000000'
VI_T = '00000000-0000-0000-0000-0e1003000000'
class VNRegion(Enum):
VN_22 = '00000000-0000-0000-0000-0e2001000000'
VN_18 = '00000000-0000-0000-0000-0e2002000000'
VN_36 = '00000000-0000-0000-0000-0e2003000000'
VN_52 = '00000000-0000-0000-0000-0e2004000000'
VN_51 = '00000000-0000-0000-0000-0e2005000000'
VN_07 = '00000000-0000-0000-0000-0e2006000000'
VN_49 = '00000000-0000-0000-0000-0e2007000000'
VN_06 = '00000000-0000-0000-0000-0e2008000000'
VN_02 = '00000000-0000-0000-0000-0e2009000000'
VN_46 = '00000000-0000-0000-0000-0e200a000000'
VN_26 = '00000000-0000-0000-0000-0e200b000000'
VN_28 = '00000000-0000-0000-0000-0e200c000000'
VN_21 = '00000000-0000-0000-0000-0e200d000000'
VN_20 = '00000000-0000-0000-0000-0e200e000000'
VN_37 = '00000000-0000-0000-0000-0e200f000000'
VN_05 = '00000000-0000-0000-0000-0e2010000000'
VN_25 = '00000000-0000-0000-0000-0e2011000000'
VN_13 = '00000000-0000-0000-0000-0e2012000000'
VN_29 = '00000000-0000-0000-0000-0e2013000000'
VN_24 = '00000000-0000-0000-0000-0e2014000000'
VN_32 = '00000000-0000-0000-0000-0e2015000000'
VN_14 = '00000000-0000-0000-0000-0e2016000000'
VN_41 = '00000000-0000-0000-0000-0e2017000000'
VN_09 = '00000000-0000-0000-0000-0e2018000000'
VN_35 = '00000000-0000-0000-0000-0e2019000000'
VN_01 = '00000000-0000-0000-0000-0e201a000000'
VN_47 = '00000000-0000-0000-0000-0e201b000000'
VN_34 = '00000000-0000-0000-0000-0e201c000000'
VN_SG = '00000000-0000-0000-0000-0e201d000000'
VN_23 = '00000000-0000-0000-0000-0e201e000000'
VN_03 = '00000000-0000-0000-0000-0e201f000000'
VN_30 = '00000000-0000-0000-0000-0e2020000000'
VN_HN = '00000000-0000-0000-0000-0e2021000000'
VN_CT = '00000000-0000-0000-0000-0e2022000000'
VN_HP = '00000000-0000-0000-0000-0e2023000000'
VN_40 = '00000000-0000-0000-0000-0e2024000000'
VN_45 = '00000000-0000-0000-0000-0e2025000000'
VN_39 = '00000000-0000-0000-0000-0e2026000000'
VN_33 = '00000000-0000-0000-0000-0e2027000000'
VN_43 = '00000000-0000-0000-0000-0e2028000000'
VN_04 = '00000000-0000-0000-0000-0e2029000000'
VN_31 = '00000000-0000-0000-0000-0e202a000000'
VN_50 = '00000000-0000-0000-0000-0e202b000000'
VN_44 = '00000000-0000-0000-0000-0e202c000000'
VN_72 = '00000000-0000-0000-0000-0e202d000000'
VN_71 = '00000000-0000-0000-0000-0e202e000000'
VN_56 = '00000000-0000-0000-0000-0e202f000000'
VN_54 = '00000000-0000-0000-0000-0e2030000000'
VN_DN = '00000000-0000-0000-0000-0e2031000000'
VN_57 = '00000000-0000-0000-0000-0e2032000000'
VN_58 = '00000000-0000-0000-0000-0e2033000000'
VN_69 = '00000000-0000-0000-0000-0e2034000000'
VN_27 = '00000000-0000-0000-0000-0e2035000000'
VN_68 = '00000000-0000-0000-0000-0e2036000000'
VN_67 = '00000000-0000-0000-0000-0e2037000000'
VN_63 = '00000000-0000-0000-0000-0e2038000000'
VN_53 = '00000000-0000-0000-0000-0e2039000000'
VN_55 = '00000000-0000-0000-0000-0e203a000000'
VN_59 = '00000000-0000-0000-0000-0e203b000000'
VN_61 = '00000000-0000-0000-0000-0e203c000000'
VN_66 = '00000000-0000-0000-0000-0e203d000000'
VN_70 = '00000000-0000-0000-0000-0e203e000000'
VN_73 = '00000000-0000-0000-0000-0e203f000000'
class VURegion(Enum):
VU_TAE = '00000000-0000-0000-0000-0e3001000000'
VU_SAM = '00000000-0000-0000-0000-0e3002000000'
VU_TOB = '00000000-0000-0000-0000-0e3003000000'
VU_MAP = '00000000-0000-0000-0000-0e3004000000'
VU_PAM = '00000000-0000-0000-0000-0e3005000000'
VU_SEE = '00000000-0000-0000-0000-0e3006000000'
class WFRegion(Enum):
WF_UV = '00000000-0000-0000-0000-0e4001000000'
WF_SG = '00000000-0000-0000-0000-0e4002000000'
WF_AL = '00000000-0000-0000-0000-0e4003000000'
class WSRegion(Enum):
WS_VS = '00000000-0000-0000-0000-0e5001000000'
WS_VF = '00000000-0000-0000-0000-0e5002000000'
WS_TU = '00000000-0000-0000-0000-0e5003000000'
WS_SA = '00000000-0000-0000-0000-0e5004000000'
WS_PA = '00000000-0000-0000-0000-0e5005000000'
WS_GI = '00000000-0000-0000-0000-0e5006000000'
WS_GE = '00000000-0000-0000-0000-0e5007000000'
WS_FA = '00000000-0000-0000-0000-0e5008000000'
WS_AT = '00000000-0000-0000-0000-0e5009000000'
WS_AL = '00000000-0000-0000-0000-0e500a000000'
WS_AA = '00000000-0000-0000-0000-0e500b000000'
class YERegion(Enum):
YE_TA = '00000000-0000-0000-0000-0e6001000000'
YE_SH = '00000000-0000-0000-0000-0e6002000000'
YE_SA = '00000000-0000-0000-0000-0e6003000000'
YE_SD = '00000000-0000-0000-0000-0e6004000000'
YE_RA = '00000000-0000-0000-0000-0e6005000000'
YE_MA = '00000000-0000-0000-0000-0e6006000000'
YE_MW = '00000000-0000-0000-0000-0e6007000000'
YE_JA = '00000000-0000-0000-0000-0e6008000000'
YE_HD = '00000000-0000-0000-0000-0e6009000000'
YE_DH = '00000000-0000-0000-0000-0e600a000000'
YE_MR = '00000000-0000-0000-0000-0e600b000000'
YE_HU = '00000000-0000-0000-0000-0e600c000000'
YE_BA = '00000000-0000-0000-0000-0e600d000000'
YE_AD = '00000000-0000-0000-0000-0e600e000000'
YE_AB = '00000000-0000-0000-0000-0e600f000000'
YE_DA = '00000000-0000-0000-0000-0e6010000000'
YE_AM = '00000000-0000-0000-0000-0e6011000000'
YE_HJ = '00000000-0000-0000-0000-0e6012000000'
YE_IB = '00000000-0000-0000-0000-0e6013000000'
YE_LA = '00000000-0000-0000-0000-0e6014000000'
YE_SA1 = '00000000-0000-0000-0000-0e6015000000'
class ZARegion(Enum):
ZA_FS = '00000000-0000-0000-0000-0e8001000000'
ZA_ZN = '00000000-0000-0000-0000-0e8002000000'
ZA_EC = '00000000-0000-0000-0000-0e8003000000'
ZA_GT = '00000000-0000-0000-0000-0e8004000000'
ZA_MP = '00000000-0000-0000-0000-0e8005000000'
ZA_NC = '00000000-0000-0000-0000-0e8006000000'
ZA_LP = '00000000-0000-0000-0000-0e8007000000'
ZA_NW = '00000000-0000-0000-0000-0e8008000000'
ZA_WC = '00000000-0000-0000-0000-0e8009000000'
class ZMRegion(Enum):
ZM_01 = '00000000-0000-0000-0000-0e9001000000'
ZM_07 = '00000000-0000-0000-0000-0e9002000000'
ZM_06 = '00000000-0000-0000-0000-0e9003000000'
ZM_05 = '00000000-0000-0000-0000-0e9004000000'
ZM_09 = '00000000-0000-0000-0000-0e9005000000'
ZM_04 = '00000000-0000-0000-0000-0e9006000000'
ZM_03 = '00000000-0000-0000-0000-0e9007000000'
ZM_08 = '00000000-0000-0000-0000-0e9008000000'
ZM_02 = '00000000-0000-0000-0000-0e9009000000'
ZM_10 = '00000000-0000-0000-0000-0e900a000000'
class ZWRegion(Enum):
ZW_MI = '00000000-0000-0000-0000-0ea001000000'
ZW_MS = '00000000-0000-0000-0000-0ea002000000'
ZW_MN = '00000000-0000-0000-0000-0ea003000000'
ZW_MV = '00000000-0000-0000-0000-0ea004000000'
ZW_MW = '00000000-0000-0000-0000-0ea005000000'
ZW_ME = '00000000-0000-0000-0000-0ea006000000'
ZW_MC = '00000000-0000-0000-0000-0ea007000000'
ZW_MA = '00000000-0000-0000-0000-0ea008000000'
ZW_BU = '00000000-0000-0000-0000-0ea009000000'
ZW_HA = '00000000-0000-0000-0000-0ea00a000000'
| 45.126167
| 52
| 0.72495
| 28,243
| 207,806
| 5.201466
| 0.192685
| 0.43326
| 0.43326
| 0.541574
| 0.500555
| 0
| 0
| 0
| 0
| 0
| 0
| 0.709248
| 0.138033
| 207,806
| 4,604
| 53
| 45.135969
| 0.110891
| 0
| 0
| 0
| 0
| 0
| 0.689143
| 0.689143
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.000239
| 0
| 1
| 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
| 0
| 0
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 8
|
ea8b24982feeec6b75a570073c615748e0d9dd8a
| 17,029
|
py
|
Python
|
tests/test_opt.py
|
interesaaat/onnxconverter-common
|
5f670d71184abb1f4601193f552bdda6c1f59555
|
[
"MIT"
] | 1
|
2021-05-04T15:58:36.000Z
|
2021-05-04T15:58:36.000Z
|
tests/test_opt.py
|
interesaaat/onnxconverter-common
|
5f670d71184abb1f4601193f552bdda6c1f59555
|
[
"MIT"
] | null | null | null |
tests/test_opt.py
|
interesaaat/onnxconverter-common
|
5f670d71184abb1f4601193f552bdda6c1f59555
|
[
"MIT"
] | 1
|
2020-07-30T13:07:02.000Z
|
2020-07-30T13:07:02.000Z
|
import os
import glob
import unittest
import numpy as np
import onnx
from onnx import helper
from onnx import onnx_pb as onnx_proto
from onnxconverter_common.optimizer import optimize_onnx, optimize_onnx_model
working_path = os.path.abspath(os.path.dirname(__file__))
tmp_path = os.path.join(working_path, 'temp')
class OptimizerTestCase(unittest.TestCase):
@staticmethod
def get_temp_file(name):
if not os.path.exists(tmp_path):
os.mkdir(tmp_path)
return os.path.join(tmp_path, name)
def tearDown(self):
for fl in glob.glob(os.path.join(tmp_path, '*.onnx')):
os.remove(fl)
def test_optimizer(self):
val = np.asarray([[[[1.0, 2.0, 3.0], [1.1, 2.1, 3.1]]]], np.float32)
nodes = []
nodes[0:] = \
[helper.make_node('Constant', [], ['const1'], value=helper.make_tensor(
name='const0',
data_type=onnx_proto.TensorProto.FLOAT,
dims=val.shape,
vals=val.flatten().astype(float)))]
nodes[1:] = [helper.make_node('Identity', ['const1'], ['identity1'])]
nodes[2:] = [helper.make_node('Identity', ['identity1'], ['identity2'])]
nodes[3:] = [helper.make_node('Max', ['input1', 'identity2'], ['max0'])]
nodes[4:] = [helper.make_node('Transpose', ['max0'], ['tranpose0'], perm=[0, 2, 3, 1])]
nodes[5:] = [helper.make_node('Transpose', ['tranpose0'], ['tranpose1'], perm=(0, 3, 1, 2))]
nodes[6:] = [helper.make_node('Relu', ['tranpose1'], ['output0'], perm=(0, 3, 1, 2))]
input0 = helper.make_tensor_value_info('input1', onnx_proto.TensorProto.FLOAT, [1, 1, 2, 3])
output0 = helper.make_tensor_value_info('output0', onnx_proto.TensorProto.FLOAT, [1, 1, 2, 3])
graph = helper.make_graph(nodes, 'test0', [input0], [output0])
model = helper.make_model(graph)
self.assertIsNotNone(model)
onnx.save_model(model, self.get_temp_file('temp_before.onnx'))
new_nodes = optimize_onnx(nodes, inputs=[input0], outputs=[output0])
new_nodes = [n_ for n_ in new_nodes if not isinstance(n_, tuple)]
self.assertEqual(len(new_nodes), 3)
graph = helper.make_graph(new_nodes, 'test0', [input0], [output0])
model = helper.make_model(graph)
onnx.save_model(model, self.get_temp_file('temp_after.onnx'))
self.assertIsNotNone(model)
def test_move_transpose(self):
val = np.asarray([[[[1.0, 2.0, 3.0], [1.1, 2.1, 3.1]]]], np.float32)
nodes = []
nodes[0:] = \
[helper.make_node('Constant', [], ['const1'], value=helper.make_tensor(
name='const0',
data_type=onnx_proto.TensorProto.FLOAT,
dims=val.shape,
vals=val.flatten().astype(float)))]
nodes[1:] = [helper.make_node('Identity', ['const1'], ['identity1'])]
nodes[2:] = [helper.make_node('Identity', ['identity1'], ['identity2'])]
nodes[3:] = [helper.make_node('Max', ['input1', 'identity2'], ['max0'])]
nodes[4:] = [helper.make_node('Transpose', ['max0'], ['tranpose0'], perm=[0, 2, 3, 1])]
nodes[5:] = [helper.make_node('LeakyRelu', ['tranpose0'], ['tranpose1'])]
nodes[6:] = [helper.make_node('Relu', ['tranpose1'], ['output0'], perm=(0, 3, 1, 2))]
input0 = helper.make_tensor_value_info('input1', onnx_proto.TensorProto.FLOAT, [1, 1, 2, 3])
output0 = helper.make_tensor_value_info('output0', onnx_proto.TensorProto.FLOAT, [1, 1, 2, 3])
graph = helper.make_graph(nodes, 'test0', [input0], [output0])
model = helper.make_model(graph)
self.assertIsNotNone(model)
onnx.save_model(model, self.get_temp_file('temp_before.onnx'))
new_nodes = optimize_onnx(nodes, inputs=[input0], outputs=[output0])
new_nodes = [n_ for n_ in new_nodes if not isinstance(n_, tuple)]
self.assertEqual(len(new_nodes), 5)
graph = helper.make_graph(new_nodes, 'test0', [input0], [output0])
model = helper.make_model(graph)
onnx.save_model(model, self.get_temp_file('temp_after.onnx'))
self.assertIsNotNone(model)
def test_merge(self):
val = np.asarray([[[[1.0, 2.0, 3.0], [1.1, 2.1, 3.1]]]], np.float32)
nodes = []
nodes[0:] = \
[helper.make_node('Constant', [], ['const1'], value=helper.make_tensor(
name='const0',
data_type=onnx_proto.TensorProto.FLOAT,
dims=val.shape,
vals=val.flatten().astype(float)))]
nodes[1:] = [helper.make_node('Max', ['input1'], ['max0'])]
nodes[2:] = [helper.make_node('Transpose', ['max0'], ['tranpose0'], perm=[0, 2, 3, 1])]
nodes[3:] = [helper.make_node('Transpose', ['tranpose0'], ['add_input1'], perm=(0, 3, 1, 2))]
nodes[4:] = [helper.make_node('Add', ['max0', 'add_input1'], ['output0'])]
input0 = helper.make_tensor_value_info('input1', onnx_proto.TensorProto.FLOAT, [1, 1, 2, 3])
output0 = helper.make_tensor_value_info('output0', onnx_proto.TensorProto.FLOAT, [1, 1, 2, 3])
graph = helper.make_graph(nodes, 'test0', [input0], [output0])
model = helper.make_model(graph)
self.assertIsNotNone(model)
onnx.save_model(model, self.get_temp_file('temp_before.onnx'))
new_nodes = optimize_onnx(nodes, inputs=[input0], outputs=[output0])
new_nodes = [n_ for n_ in new_nodes if not isinstance(n_, tuple)]
graph = helper.make_graph(new_nodes, 'test0', [input0], [output0])
model = helper.make_model(graph)
onnx.save_model(model, self.get_temp_file('temp_after.onnx'))
self.assertEqual(len(new_nodes), 3)
self.assertIsNotNone(model)
def test_fan_out(self):
val = np.asarray([[[[1.0, 2.0, 3.0], [1.1, 2.1, 3.1]]]], np.float32)
nodes = []
nodes[0:] = \
[helper.make_node('Constant', [], ['const1'], value=helper.make_tensor(
name='const0',
data_type=onnx_proto.TensorProto.FLOAT,
dims=val.shape,
vals=val.flatten().astype(float)),
name="0")]
nodes[1:] = [helper.make_node('Identity', ['const1'], ['identity1'], name="1")]
nodes[2:] = [helper.make_node('Identity', ['identity1'], ['identity2'], name="2")]
nodes[3:] = [helper.make_node('Max', ['input1', 'identity2'], ['max0'], name="3")]
nodes[4:] = [helper.make_node('Transpose', ['max0'], ['tranpose0'], perm=[0, 2, 3, 1], name="4")]
nodes[5:] = [helper.make_node('LeakyRelu', ['tranpose0'], ['leak0'], name="5")]
nodes[6:] = [helper.make_node('LeakyRelu', ['leak0'], ['leak1'], name="6")]
nodes[7:] = [helper.make_node('Transpose', ['leak1'], ['add_input1'], perm=(0, 3, 1, 2), name="7")]
nodes[8:] = [helper.make_node('Add', ['leak0', 'add_input1'], ['output0'], name="8")]
input0 = helper.make_tensor_value_info('input1', onnx_proto.TensorProto.FLOAT, [1, 1, 2, 3])
output0 = helper.make_tensor_value_info('output0', onnx_proto.TensorProto.FLOAT, [1, 1, 2, 3])
graph = helper.make_graph(nodes, 'test0', [input0], [output0])
model = helper.make_model(graph)
self.assertIsNotNone(model)
onnx.save_model(model, self.get_temp_file('temp_before.onnx'))
new_nodes = optimize_onnx(nodes, inputs=[input0], outputs=[output0])
new_nodes = [n_ for n_ in new_nodes if not isinstance(n_, tuple)]
graph = helper.make_graph(new_nodes, 'test0', [input0], [output0])
model = helper.make_model(graph)
onnx.save_model(model, self.get_temp_file('temp_after.onnx'))
self.assertEqual(len(new_nodes), 6)
self.assertIsNotNone(model)
def test_fan_in(self):
val = np.asarray([[[[1.0, 2.0, 3.0], [1.1, 2.1, 3.1]]]], np.float32)
nodes = []
nodes[0:] = \
[helper.make_node('Constant', [], ['const1'], value=helper.make_tensor(
name='const0',
data_type=onnx_proto.TensorProto.FLOAT,
dims=val.shape,
vals=val.flatten().astype(float)),
name="0")]
nodes[1:] = [helper.make_node('Identity', ['const1'], ['identity1'], name="1")]
nodes[2:] = [helper.make_node('Identity', ['identity1'], ['identity2'], name="2")]
nodes[3:] = [helper.make_node('Max', ['input1', 'identity2'], ['max0'], name="3")]
nodes[4:] = [helper.make_node('LeakyRelu', ['max0'], ['leak0'], name="4")]
nodes[5:] = [helper.make_node('LeakyRelu', ['leak0'], ['leak1'], name="5")]
nodes[6:] = [helper.make_node('LeakyRelu', ['leak0'], ['leak2'], name="6")]
nodes[7:] = [helper.make_node('Transpose', ['leak1'], ['tranpose0'], perm=[0, 2, 3, 1], name="7")]
nodes[8:] = [helper.make_node('Transpose', ['leak2'], ['tranpose1'], perm=[0, 2, 3, 1], name="8")]
nodes[9:] = [helper.make_node('Add', ['tranpose0', 'tranpose1'], ['add0'], name="9")]
nodes[10:] = [helper.make_node('Transpose', ['add0'], ['tranpose2'], perm=[0, 3, 1, 2], name="10")]
nodes[11:] = [helper.make_node('Conv', ['tranpose2'], ['output0'], name="11")]
input0 = helper.make_tensor_value_info('input1', onnx_proto.TensorProto.FLOAT, [1, 1, 2, 3])
output0 = helper.make_tensor_value_info('output0', onnx_proto.TensorProto.FLOAT, [1, 1, 2, 3])
graph = helper.make_graph(nodes, 'test0', [input0], [output0])
model = helper.make_model(graph)
self.assertIsNotNone(model)
onnx.save_model(model, self.get_temp_file('temp_before.onnx'))
new_nodes = optimize_onnx(nodes, inputs=[input0], outputs=[output0])
new_nodes = [n_ for n_ in new_nodes if not isinstance(n_, tuple)]
graph = helper.make_graph(new_nodes, 'test0', [input0], [output0])
model = helper.make_model(graph)
onnx.save_model(model, self.get_temp_file('temp_after.onnx'))
self.assertEqual(len(new_nodes), 6)
self.assertIsNotNone(model)
def test_NextToOutputSolution(self):
val = np.asarray([[[[1.0, 2.0, 3.0], [1.1, 2.1, 3.1]]]], np.float32)
nodes = []
nodes[0:] = \
[helper.make_node('Constant', [], ['const1'], value=helper.make_tensor(
name='const0',
data_type=onnx_proto.TensorProto.FLOAT,
dims=val.shape,
vals=val.flatten().astype(float)),
name="0")]
nodes[1:] = [helper.make_node('Identity', ['const1'], ['identity1'], name="1")]
nodes[2:] = [helper.make_node('Identity', ['identity1'], ['identity2'], name="2")]
nodes[3:] = [helper.make_node('Max', ['input1', 'identity2'], ['max0'], name="3")]
nodes[4:] = [helper.make_node('Identity', ['max0'], ['output0'], name="4")]
input0 = helper.make_tensor_value_info('input1', onnx_proto.TensorProto.FLOAT, [1, 1, 2, 3])
output0 = helper.make_tensor_value_info('output0', onnx_proto.TensorProto.FLOAT, [1, 1, 2, 3])
graph = helper.make_graph(nodes, 'test_NextToOutputSolution', [input0], [output0])
model = helper.make_model(graph)
self.assertIsNotNone(model)
new_nodes = optimize_onnx(nodes, inputs=[input0], outputs=[output0])
new_nodes = [n_ for n_ in new_nodes if not isinstance(n_, tuple)]
graph = helper.make_graph(new_nodes, 'test_NextToOutputSolution', [input0], [output0])
model = helper.make_model(graph)
self.assertEqual(len(new_nodes), 2)
self.assertIsNotNone(model)
@unittest.skipIf(onnx.defs.onnx_opset_version() < 9, "Optimizer for the model graph only happens on opset >= 9")
def test_opt_on_model(self):
val = np.asarray([[[[1.0, 2.0, 3.0], [1.1, 2.1, 3.1]]]], np.float32)
nodes = []
nodes[0:] = \
[helper.make_node('Constant', [], ['const1'], value=helper.make_tensor(
name='const0',
data_type=onnx_proto.TensorProto.FLOAT,
dims=val.shape,
vals=val.flatten().astype(float)),
name="0")]
nodes[1:] = [helper.make_node('Identity', ['const1'], ['identity1'], name="1")]
nodes[2:] = [helper.make_node('Identity', ['identity1'], ['identity2'], name="2")]
nodes[3:] = [helper.make_node('Max', ['input1', 'identity2'], ['max0'], name="3")]
nodes[4:] = [helper.make_node('LeakyRelu', ['max0'], ['leak0'], name="4")]
nodes[5:] = [helper.make_node('LeakyRelu', ['leak0'], ['leak1'], name="5")]
nodes[6:] = [helper.make_node('LeakyRelu', ['leak0'], ['leak2'], name="6")]
nodes[7:] = [helper.make_node('Transpose', ['leak1'], ['tranpose0'], perm=[0, 2, 3, 1], name="7")]
nodes[8:] = [helper.make_node('Transpose', ['leak2'], ['tranpose1'], perm=[0, 2, 3, 1], name="8")]
nodes[9:] = [helper.make_node('Add', ['tranpose0', 'tranpose1'], ['add0'], name="9")]
nodes[10:] = [helper.make_node('Transpose', ['add0'], ['tranpose2'], perm=[0, 3, 1, 2], name="10")]
nodes[11:] = [helper.make_node('Conv', ['tranpose2'], ['output0'], name="11")]
input0 = helper.make_tensor_value_info('input1', onnx_proto.TensorProto.FLOAT, [1, 1, 2, 3])
output0 = helper.make_tensor_value_info('output0', onnx_proto.TensorProto.FLOAT, [1, 1, 2, 3])
graph = helper.make_graph(nodes, 'test0', [input0], [output0])
model = helper.make_model(graph)
self.assertIsNotNone(model)
optd_model = optimize_onnx_model(model)
self.assertEqual(len(optd_model.graph.node), 5)
def test_merge_common(self):
val = np.asarray([[[[1.0, 2.0, 3.0], [1.1, 2.1, 3.1]]]], np.float32)
nodes = []
nodes[0:] = \
[helper.make_node('Constant', [], ['const1'], value=helper.make_tensor(
name='const0',
data_type=onnx_proto.TensorProto.FLOAT,
dims=val.shape,
vals=val.flatten().astype(float)),
name="0")]
nodes[1:] = [helper.make_node('Identity', ['const1'], ['identity1'], name="1")]
nodes[2:] = [helper.make_node('Identity', ['identity1'], ['identity2'], name="2")]
nodes[3:] = [helper.make_node('Max', ['input1', 'identity2'], ['max0'], name="3")]
nodes[4:] = [helper.make_node('LeakyRelu', ['max0'], ['leak0'], name="4")]
nodes[5:] = [helper.make_node('LeakyRelu', ['leak0'], ['leak1'], name="5")]
nodes[6:] = [helper.make_node('LeakyRelu', ['leak0'], ['leak2'], name="6")]
nodes[7:] = [helper.make_node('Cast', ['leak1'], ['cast0'], to=6, name="7")]
nodes[8:] = [helper.make_node('Cast', ['cast0'], ['cast1'], to=1, name="8")]
nodes[9:] = [helper.make_node('Cast', ['leak2'], ['cast2'], to=6, name="9")]
nodes[10:] = [helper.make_node('Cast', ['cast2'], ['cast3'], to=7, name="10")]
nodes[11:] = [helper.make_node('Cast', ['cast3'], ['cast4'], to=1, name="11")]
nodes[12:] = [helper.make_node('Add', ['cast1', 'cast4'], ['add0'], name="12")]
nodes[13:] = [helper.make_node('Transpose', ['add0'], ['tranpose2'], perm=[0, 3, 1, 2], name="13")]
nodes[14:] = [helper.make_node('Conv', ['tranpose2'], ['output0'], name="14")]
input0 = helper.make_tensor_value_info('input1', onnx_proto.TensorProto.FLOAT, [1, 1, 2, 3])
output0 = helper.make_tensor_value_info('output0', onnx_proto.TensorProto.FLOAT, [1, 1, 2, 3])
graph = helper.make_graph(nodes, 'test0', [input0], [output0])
model = helper.make_model(graph)
self.assertIsNotNone(model)
onnx.save_model(model, self.get_temp_file('temp_before.onnx'))
new_nodes = optimize_onnx(nodes, inputs=[input0], outputs=[output0])
new_nodes = [n_ for n_ in new_nodes if not isinstance(n_, tuple)]
graph = helper.make_graph(new_nodes, 'test0', [input0], [output0])
model = helper.make_model(graph)
onnx.save_model(model, self.get_temp_file('temp_after.onnx'))
self.assertEqual(len(new_nodes), 11)
self.assertIsNotNone(model)
def test_onnx_models(self):
model_names = ['mobile_segnet_no_opt.onnx', 'srgan_no_opt.onnx', 'test_model_0_no_opt.onnx',
'test_model_1_no_opt.onnx']
num_transpose_list = [2, 3, 11, 5]
dir_path = os.path.dirname(os.path.realpath(__file__))
for idx_, model_name_ in enumerate(model_names):
model_dir = dir_path + '/data/' + model_name_
origin_model = onnx.load_model(model_dir)
opt_model = optimize_onnx_model(origin_model)
self.assertIsNotNone(opt_model)
num_transpose = sum([1 if n_.op_type == 'Transpose' else 0 for n_ in opt_model.graph.node])
self.assertEqual(num_transpose, num_transpose_list[idx_])
if __name__ == '__main__':
unittest.main()
| 53.550314
| 116
| 0.587292
| 2,175
| 17,029
| 4.413333
| 0.071264
| 0.131264
| 0.105011
| 0.062507
| 0.859881
| 0.838629
| 0.833212
| 0.811647
| 0.805396
| 0.797271
| 0
| 0.049057
| 0.218333
| 17,029
| 317
| 117
| 53.719243
| 0.672076
| 0
| 0
| 0.745387
| 0
| 0
| 0.128193
| 0.007223
| 0
| 0
| 0
| 0
| 0.092251
| 1
| 0.04059
| false
| 0
| 0.02952
| 0
| 0.077491
| 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
|
576ca5a890a2c18d7f34996c10bab812f74da0e7
| 87,853
|
py
|
Python
|
nhance/nhance/report/india_gstr_1c/india_gstr_1c.py
|
ksbbalean/nhance
|
2660878f9226d0bdaca7ffef7260c3af03a60885
|
[
"MIT"
] | null | null | null |
nhance/nhance/report/india_gstr_1c/india_gstr_1c.py
|
ksbbalean/nhance
|
2660878f9226d0bdaca7ffef7260c3af03a60885
|
[
"MIT"
] | null | null | null |
nhance/nhance/report/india_gstr_1c/india_gstr_1c.py
|
ksbbalean/nhance
|
2660878f9226d0bdaca7ffef7260c3af03a60885
|
[
"MIT"
] | null | null | null |
# Copyright (c) 2013, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
from frappe.utils import flt, getdate
from frappe import _, msgprint
from datetime import datetime
import datetime
from datetime import date, timedelta
import calendar
import dateutil.parser
import time
import math
import json
import ast
import sys
reload(sys)
sys.setdefaultencoding('utf-8')
def execute(filters=None):
return IndiaGstr1C(filters).run()
class IndiaGstr1C(object):
def __init__(self, filters=None):
self.filters = frappe._dict(filters or {})
self.data = []
self.columns = []
self.invoice_id = ""
self.item_code = ""
self.tax_data = []
self.tax_details = []
self.customer_address = ""
self.company_address = ""
if self.filters.fetch_days_data is not None:
self.filters.from_date = self.filters.temp_from_date
self.filters.to_date = self.filters.temp_to_date
def run(self):
from_date = self.filters.from_date
to_date = self.filters.to_date
if self.filters.get("type_of_business") == "B2B":
columns = self.get_columns_b2b()
grand_total_taxable = 0.0
grand_total_invoice = 0.0
grand_total_cess = 0.0
b2b_sales = sales_invoice_details(from_date,to_date)
invoice_no = ""
for sales in b2b_sales:
amended_from = sales.amended_from
if amended_from is None:
invoice_id = sales.name
selas_taxes = sales_taxes_charges(invoice_id)
if invoice_id != invoice_no and len(selas_taxes)!= 0:
invoice_no = invoice_id
gstin_and_place_of_supply = sales.gstin_and_place_of_supply
place_of_supply = ""
billing_address_gstin = ""
customer_address = sales.customer_address
shipping_address_name = sales.shipping_address_name
gst_state_number = ""
gst_state = ""
party_gsstin = ""
if shipping_address_name:
if gstin_and_place_of_supply == 1:
billing_address = get_address_details(customer_address)
for bill in billing_address:
gst_state_number = bill.gst_state_number
gst_state = bill.gst_state
party_gsstin = bill.gstin
elif gstin_and_place_of_supply == 0:
shipping_address = get_address_details(shipping_address_name)
for bill in shipping_address:
gst_state_number = bill.gst_state_number
gst_state = bill.gst_state
party_gsstin = bill.gstin
else:
billing_address = get_address_details(customer_address)
for bill in billing_address:
gst_state_number = bill.gst_state_number
gst_state = bill.gst_state
party_gsstin = bill.gstin
manual_serial_number = sales.manual_serial_number
reverse_charge = sales.reverse_charge
invoice_type = sales.invoice_type
customer_name = sales.customer_name
ecommerce_gstin = sales.ecommerce_gstin
posting_date = sales.posting_date
posting_date = posting_date.strftime('%d-%m-%Y')
grand_total = sales.grand_total
company_address = sales.company_address
customer_type = sales.customer_type
port_code = sales.port_code
shipping_bill_number = sales.shipping_bill_number
shipping_bill_date = sales.shipping_bill_date
if shipping_bill_date is not None:
shipping_bill_date = shipping_bill_date.strftime('%d-%m-%Y')
export_type = sales.export_type
is_return = sales.is_return
return_against = sales.return_against
account_head = ""
modified = sales.modified
modified = modified.date()
modified = modified.strftime('%d-%m-%Y')
amended_from = sales.amended_from
net_total = sales.net_total
taxable_value = 0.0
tax_rate = 0.0
cess_amount = 0.0
for taxes in selas_taxes:
charge_type = taxes.charge_type
if "On Net Total" in charge_type:
taxable_value = net_total
elif "On Previous Row Total" in charge_type:
row_id = taxes.row_id
get_amount_tax = sales_tax_amount(row_id,invoice_id)
for amount in get_amount_tax:
taxable_value = amount.total
account_head = taxes.account_head
if "SGST" in account_head:
tax_rate = tax_rate + taxes.rate
elif "CGST" in account_head:
tax_rate = tax_rate + taxes.rate
elif "IGST" in account_head:
tax_rate = taxes.rate
grand_total_taxable = grand_total_taxable + taxable_value
grand_total_invoice = grand_total_invoice + grand_total
self.data.append([party_gsstin,customer_address,invoice_id,manual_serial_number,
posting_date,grand_total,str(gst_state_number)+"-"+str(gst_state),
reverse_charge,"",invoice_type,ecommerce_gstin,tax_rate,
taxable_value,cess_amount])
self.data.append(["","","","",""])
self.data.append(["Total","","","","",grand_total_invoice,"","","","",
"","",grand_total_taxable,grand_total_cess,""])
elif self.filters.get("type_of_business") == "B2BA":
columns = self.get_columns_b2ba()
grand_total_taxable = 0.0
grand_total_invoice = 0.0
grand_total_cess = 0.0
b2b_sales = sales_invoice_details(from_date,to_date)
invoice_no = ""
for sales in b2b_sales:
amended_from = sales.amended_from
if amended_from is not None:
invoice_id = sales.name
selas_taxes = sales_taxes_charges(invoice_id)
if invoice_id != invoice_no and len(selas_taxes)!= 0:
invoice_no = invoice_id
billing_address_gstin = sales.billing_address_gstin
manual_serial_number = sales.manual_serial_number
customer_address = sales.customer_address
place_of_supply = ""
gstin_and_place_of_supply = sales.gstin_and_place_of_supply
place_of_supply = ""
customer_address = sales.customer_address
shipping_address_name = sales.shipping_address_name
gst_state_number = ""
gst_state = ""
party_gsstin = ""
if shipping_address_name:
if gstin_and_place_of_supply == 1:
billing_address = get_address_details(customer_address)
for bill in billing_address:
gst_state_number = bill.gst_state_number
gst_state = bill.gst_state
party_gsstin = bill.gstin
elif gstin_and_place_of_supply == 0:
shipping_address = get_address_details(shipping_address_name)
for bill in shipping_address:
gst_state_number = bill.gst_state_number
gst_state = bill.gst_state
party_gsstin = bill.gstin
else:
billing_address = get_address_details(customer_address)
for bill in billing_address:
gst_state_number = bill.gst_state_number
gst_state = bill.gst_state
party_gsstin = bill.gstin
reverse_charge = sales.reverse_charge
invoice_type = sales.invoice_type
customer_name = sales.customer_name
ecommerce_gstin = sales.ecommerce_gstin
posting_date = sales.posting_date
posting_date = posting_date.strftime('%d-%m-%Y')
grand_total = sales.grand_total
company_address = sales.company_address
customer_type = sales.customer_type
port_code = sales.port_code
shipping_bill_number = sales.shipping_bill_number
shipping_bill_date = sales.shipping_bill_date
if shipping_bill_date is not None:
shipping_bill_date = shipping_bill_date.strftime('%d-%m-%Y')
export_type = sales.export_type
is_return = sales.is_return
return_against = sales.return_against
account_head = ""
modified = sales.modified
modified = modified.date()
modified = modified.strftime('%d-%m-%Y')
amended_from = sales.amended_from
net_total = sales.net_total
taxable_value = 0.0
tax_rate = 0.0
cess_amount = 0.0
for taxes in selas_taxes:
charge_type = taxes.charge_type
if "On Net Total" in charge_type:
taxable_value = net_total
elif "On Previous Row Total" in charge_type:
row_id = taxes.row_id
get_amount_tax = sales_tax_amount(row_id,invoice_id)
for amount in get_amount_tax:
taxable_value = amount.total
account_head = taxes.account_head
if "SGST" in account_head:
tax_rate = tax_rate + taxes.rate
elif "CGST" in account_head:
tax_rate = tax_rate + taxes.rate
elif "IGST" in account_head:
tax_rate = taxes.rate
amount_by_gst = taxable_value * tax_rate/100
invoice_value = amount_by_gst + taxable_value
invoice_value = round(invoice_value)
grand_total_taxable = grand_total_taxable + taxable_value
grand_total_invoice = grand_total_invoice + grand_total
self.data.append([party_gsstin,customer_address,amended_from,manual_serial_number,
posting_date,invoice_id,modified,grand_total,str(gst_state_number)+"-"+str(gst_state),
reverse_charge,"",invoice_type,ecommerce_gstin,tax_rate,taxable_value,cess_amount])
self.data.append(["","","","",""])
self.data.append(["Total","","","","","","",grand_total_invoice,"","","","",
"","",grand_total_taxable,grand_total_cess,""])
elif self.filters.get("type_of_business") == "B2CL":
invoice_map = {}
grand_total_invoice = 0.0
grand_total_taxable = 0.0
grand_total_cess = 0.0
columns = self.get_columns_b2bl()
b2cl_details = sales_invoice_b2bl(from_date,to_date)
for sales in b2cl_details:
amended_from = sales.amended_from
if amended_from is None:
invoice_id = sales.name
invoice_no = ""
selas_taxes = sales_taxes_charges(invoice_id)
if invoice_id != invoice_no and len(selas_taxes)!= 0:
invoice_no = invoice_id
billing_address_gstin = sales.billing_address_gstin
invoice_id = sales.name
manual_serial_number = sales.manual_serial_number
customer_address = sales.customer_address
place_of_supply = ""
billing_address_gstin = ""
gstin_and_place_of_supply = sales.gstin_and_place_of_supply
customer_address = sales.customer_address
shipping_address_name = sales.shipping_address_name
gst_state_number = ""
gst_state = ""
party_gsstin = ""
if shipping_address_name:
if gstin_and_place_of_supply == 1:
billing_address = get_address_details(customer_address)
for bill in billing_address:
gst_state_number = bill.gst_state_number
gst_state = bill.gst_state
party_gsstin = bill.gstin
elif gstin_and_place_of_supply == 0:
shipping_address = get_address_details(shipping_address_name)
for bill in shipping_address:
gst_state_number = bill.gst_state_number
gst_state = bill.gst_state
party_gsstin = bill.gstin
else:
billing_address = get_address_details(customer_address)
for bill in billing_address:
gst_state_number = bill.gst_state_number
gst_state = bill.gst_state
party_gsstin = bill.gstin
reverse_charge = sales.reverse_charge
invoice_type = sales.invoice_type
customer_name = sales.customer_name
ecommerce_gstin = sales.ecommerce_gstin
posting_date = sales.posting_date
posting_date = posting_date.strftime('%d-%m-%Y')
grand_total = sales.grand_total
company_address = sales.company_address
customer_type = sales.customer_type
port_code = sales.port_code
shipping_bill_number = sales.shipping_bill_number
shipping_bill_date = sales.shipping_bill_date
if shipping_bill_date is not None:
shipping_bill_date = shipping_bill_date.strftime('%d-%m-%Y')
export_type = sales.export_type
is_return = sales.is_return
return_against = sales.return_against
account_head = ""
modified = sales.modified
modified = modified.date()
modified = modified.strftime('%d-%m-%Y')
amended_from = sales.amended_from
net_total = sales.net_total
selas_taxes = sales_taxes_charges(invoice_id)
taxable_value = 0.0
tax_rate = 0.0
cess_amount = 0.0
b2c_limit = frappe.db.get_value('GST Settings',customer_address,'b2c_limit')
gst_state_number = get_contact_details(customer_address)
address_details = address_gst_number(company_address)
for taxes in selas_taxes:
charge_type = taxes.charge_type
if "On Net Total" in charge_type:
taxable_value = net_total
elif "On Previous Row Total" in charge_type:
row_id = taxes.row_id
get_amount_tax = sales_tax_amount(row_id,invoice_id)
for amount in get_amount_tax:
taxable_value = amount.total
account_head = taxes.account_head
if "SGST" in account_head:
tax_rate = tax_rate + taxes.rate
elif "CGST" in account_head:
tax_rate = tax_rate + taxes.rate
elif "IGST" in account_head:
tax_rate = taxes.rate
if grand_total > float(b2c_limit) and address_details != gst_state_number:
amount_by_gst = taxable_value * tax_rate/100
invoice_value = amount_by_gst + taxable_value
invoice_value = round(invoice_value)
grand_total_taxable = grand_total_taxable + taxable_value
grand_total_invoice = grand_total_invoice + grand_total
self.data.append([invoice_id,
posting_date,grand_total,str(gst_state_number)+"-"+str(gst_state),"",
tax_rate,taxable_value,cess_amount,ecommerce_gstin])
self.data.append(["","","","",""])
self.data.append(["Total","",grand_total_invoice,"",
"","",grand_total_taxable,grand_total_cess,""])
elif self.filters.get("type_of_business") == "B2CLA":
invoice_map = {}
grand_total_invoice = 0.0
grand_total_taxable = 0.0
grand_total_cess = 0.0
columns = self.get_columns_b2bla()
b2cl_details = sales_invoice_b2bl(from_date,to_date)
for sales in b2cl_details:
amended_from = sales.amended_from
if amended_from is not None:
invoice_id = sales.name
invoice_no = ""
selas_taxes = sales_taxes_charges(invoice_id)
if invoice_id != invoice_no and len(selas_taxes)!= 0:
invoice_no = invoice_id
original_place_of_supply =""
billing_address_gstin = sales.billing_address_gstin
invoice_id = sales.name
customer_address = sales.customer_address
place_of_supply = ""
billing_address_gstin = ""
gstin_and_place_of_supply,shipping_address_name,customer_address = frappe.db.get_value('Sales Invoice',amended_from,['gstin_and_place_of_supply','shipping_address_name','customer_address'])
print "amended_from----------",amended_from
print "gstin_and_place_of_supply----------",gstin_and_place_of_supply
print "shipping_address_name-----------",shipping_address_name
print "customer_address----------",customer_address
gst_state_number = ""
gst_state = ""
party_gsstin = ""
if shipping_address_name:
if gstin_and_place_of_supply == 1:
billing_address = get_address_details(customer_address)
for bill in billing_address:
gst_state_number = bill.gst_state_number
gst_state = bill.gst_state
party_gsstin = bill.gstin
elif gstin_and_place_of_supply == 0:
shipping_address = get_address_details(shipping_address_name)
for bill in shipping_address:
gst_state_number = bill.gst_state_number
gst_state = bill.gst_state
party_gsstin = bill.gstin
else:
billing_address = get_address_details(customer_address)
for bill in billing_address:
gst_state_number = bill.gst_state_number
gst_state = bill.gst_state
party_gsstin = bill.gstin
reverse_charge = sales.reverse_charge
invoice_type = sales.invoice_type
customer_name = sales.customer_name
ecommerce_gstin = sales.ecommerce_gstin
posting_date = sales.posting_date
posting_date = posting_date.strftime('%d-%m-%Y')
grand_total = sales.grand_total
company_address = sales.company_address
customer_type = sales.customer_type
port_code = sales.port_code
shipping_bill_number = sales.shipping_bill_number
shipping_bill_date = sales.shipping_bill_date
if shipping_bill_date is not None:
shipping_bill_date = shipping_bill_date.strftime('%d-%m-%Y')
export_type = sales.export_type
is_return = sales.is_return
return_against = sales.return_against
account_head = ""
modified = sales.modified
modified = modified.date()
modified = modified.strftime('%d-%m-%Y')
amended_from = sales.amended_from
net_total = sales.net_total
selas_taxes = sales_taxes_charges(invoice_id)
taxable_value = 0.0
tax_rate = 0.0
cess_amount = 0.0
b2c_limit = frappe.db.get_value('GST Settings',customer_address,'b2c_limit')
gst_state_number = get_contact_details(customer_address)
address_details = address_gst_number(company_address)
for taxes in selas_taxes:
charge_type = taxes.charge_type
if "On Net Total" in charge_type:
taxable_value = net_total
elif "On Previous Row Total" in charge_type:
row_id = taxes.row_id
get_amount_tax = sales_tax_amount(row_id,invoice_id)
for amount in get_amount_tax:
taxable_value = amount.total
account_head = taxes.account_head
if "SGST" in account_head:
tax_rate = tax_rate + taxes.rate
elif "CGST" in account_head:
tax_rate = tax_rate + taxes.rate
elif "IGST" in account_head:
tax_rate = taxes.rate
if grand_total > float(b2c_limit) and address_details != gst_state_number:
amount_by_gst = taxable_value * tax_rate/100
invoice_value = amount_by_gst + taxable_value
invoice_value = round(invoice_value)
grand_total_taxable = grand_total_taxable + taxable_value
grand_total_invoice = grand_total_invoice + grand_total
self.data.append([amended_from,posting_date,str(gst_state_number)+"-"+str(gst_state),
invoice_id,modified,grand_total,"",tax_rate,taxable_value,cess_amount,ecommerce_gstin])
self.data.append(["","","","",""])
self.data.append(["Total","","","","",grand_total_invoice,
"","",grand_total_taxable,grand_total_cess,""])
elif self.filters.get("type_of_business") == "B2CS":
invoice_map = {}
grand_total_taxable = 0.0
grand_total_invoice = 0.0
grand_total_cess = 0.0
cess_amount = 0.0
columns = self.get_columns_b2bcs()
b2cs_details = sales_invoice_b2bl(from_date,to_date)
unique_state = get_unique_state_list(b2cs_details)
for b2cs_data in unique_state:
b2cs_detail = unique_state[b2cs_data]
for b2cs_d in range(0,len(b2cs_detail["mapped_items"])):
tax_rate = b2cs_detail["mapped_items"][b2cs_d]["tax_rate"]
taxable_value = b2cs_detail["mapped_items"][b2cs_d]["taxable_value"]
place_of_supply = b2cs_detail["mapped_items"][b2cs_d]["place_of_supply"]
customer_type = b2cs_detail["mapped_items"][b2cs_d]["customer_type"]
ecommerce_gstin = b2cs_detail["mapped_items"][b2cs_d]["ecommerce_gstin"]
grand_total = b2cs_detail["mapped_items"][b2cs_d]["grand_total"]
amount_by_gst = taxable_value * tax_rate/100
invoice_value = amount_by_gst + taxable_value
invoice_value = round(invoice_value,2)
grand_total_taxable = grand_total_taxable + taxable_value
grand_total_invoice = grand_total_invoice + invoice_value
self.data.append([customer_type,place_of_supply,invoice_value,"",tax_rate,taxable_value,
cess_amount,ecommerce_gstin])
self.data.append(["","","","",""])
self.data.append(["Total","",grand_total_invoice,
"","",grand_total_taxable,grand_total_cess,""])
elif self.filters.get("type_of_business") == "B2CSA":
columns = self.get_columns_b2bcsa()
cess_amount = 0.0
grand_total_invoice = 0.0
grand_total_taxable = 0.0
grand_total_cess = 0.0
now = datetime.datetime.now()
current_year = now.year
b2cs_details = sales_invoice_b2bl(from_date,to_date)
unique_state = get_unique_state_list_amended(b2cs_details)
for b2cs_data in unique_state:
b2cs_detail = unique_state[b2cs_data]
for b2cs_d in range(0,len(b2cs_detail["mapped_items"])):
tax_rate = b2cs_detail["mapped_items"][b2cs_d]["tax_rate"]
taxable_value = b2cs_detail["mapped_items"][b2cs_d]["taxable_value"]
place_of_supply = b2cs_detail["mapped_items"][b2cs_d]["place_of_supply"]
customer_type = b2cs_detail["mapped_items"][b2cs_d]["customer_type"]
ecommerce_gstin = b2cs_detail["mapped_items"][b2cs_d]["ecommerce_gstin"]
posting_date = b2cs_detail["mapped_items"][b2cs_d]["posting_date"]
fiscal_year = frappe.defaults.get_user_default("fiscal_year")
amount_by_gst = taxable_value * tax_rate/100
invoice_value = amount_by_gst + taxable_value
grand_total_taxable = grand_total_taxable + taxable_value
grand_total_invoice = grand_total_invoice + invoice_value
self.data.append([str(fiscal_year),posting_date,place_of_supply,
customer_type,invoice_value,"",tax_rate,taxable_value,cess_amount,ecommerce_gstin])
self.data.append(["","","","",""])
self.data.append(["Total","","","",grand_total_invoice,
"","",grand_total_taxable,grand_total_cess,""])
elif self.filters.get("type_of_business") == "CDNR":
invoice_map = {}
grand_total_invoice = 0.0
grand_total_taxable = 0.0
grand_total_cess = 0.0
columns = self.get_columns_cdnr()
cdnr_sales = sales_invoice_cdrn(from_date,to_date)
for sales in cdnr_sales:
amended_from = sales.amended_from
if amended_from is None:
billing_address_gstin = sales.billing_address_gstin
invoice_id = sales.name
manual_serial_number = sales.manual_serial_number
customer_address = sales.customer_address
place_of_supply = ""
billing_address_gstin = ""
gstin_and_place_of_supply = sales.gstin_and_place_of_supply
customer_address = sales.customer_address
shipping_address_name = sales.shipping_address_name
gst_state_number = ""
gst_state = ""
party_gsstin = ""
if shipping_address_name:
if gstin_and_place_of_supply == 1:
billing_address = get_address_details(customer_address)
for bill in billing_address:
gst_state_number = bill.gst_state_number
gst_state = bill.gst_state
party_gsstin = bill.gstin
elif gstin_and_place_of_supply == 0:
shipping_address = get_address_details(shipping_address_name)
for bill in shipping_address:
gst_state_number = bill.gst_state_number
gst_state = bill.gst_state
party_gsstin = bill.gstin
else:
billing_address = get_address_details(customer_address)
for bill in billing_address:
gst_state_number = bill.gst_state_number
gst_state = bill.gst_state
party_gsstin = bill.gstin
reverse_charge = sales.reverse_charge
invoice_type = sales.invoice_type
customer_name = sales.customer_name
ecommerce_gstin = sales.ecommerce_gstin
posting_date = sales.posting_date
posting_date = posting_date.strftime('%d-%m-%Y')
grand_total = sales.grand_total
company_address = sales.company_address
customer_type = sales.customer_type
port_code = sales.port_code
shipping_bill_number = sales.shipping_bill_number
shipping_bill_date = sales.shipping_bill_date
if shipping_bill_date is not None:
shipping_bill_date = shipping_bill_date.strftime('%d-%m-%Y')
export_type = sales.export_type
is_return = sales.is_return
return_against = sales.return_against
account_head = ""
modified = sales.modified
modified = modified.date()
modified = modified.strftime('%d-%m-%Y')
amended_from = sales.amended_from
net_total = sales.net_total
return_against = sales.return_against
selas_taxes = sales_taxes_charges(invoice_id)
taxable_value = 0.0
tax_rate = 0.0
cess_amount = 0.0
for taxes in selas_taxes:
charge_type = taxes.charge_type
if "On Net Total" in charge_type:
taxable_value = net_total
elif "On Previous Row Total" in charge_type:
row_id = taxes.row_id
get_amount_tax = sales_tax_amount(row_id,invoice_id)
for amount in get_amount_tax:
taxable_value = amount.total
account_head = taxes.account_head
if "SGST" in account_head:
tax_rate = tax_rate + taxes.rate
elif "CGST" in account_head:
tax_rate = tax_rate + taxes.rate
elif "IGST" in account_head:
tax_rate = taxes.rate
amount_by_gst = taxable_value * tax_rate/100
invoice_value = amount_by_gst + taxable_value
grand_total_taxable = grand_total_taxable + taxable_value
grand_total_invoice = grand_total_invoice + grand_total
credit_invoice_id = ""
credit_invoice_id = ""
payment_date = ""
creadit_return_date = ""
document_type = ""
payment_entry = get_Advance_Payment_details(invoice_id)
if len(payment_entry) != 0:
for payment in payment_entry:
payment_number = payment.name
payment_date = payment.posting_date
payment_date = payment_date.strftime('%d-%m-%Y')
else:
payment_number = invoice_id
payment_date = posting_date
return_sales_details = sale_invoice_again_return(return_against)
for return_sale in return_sales_details:
credit_invoice_id = return_sale.name
creadit_return_date = return_sale.posting_date
creadit_return_date = creadit_return_date.strftime('%d-%m-%Y')
document_type = "C"
pre_gst = ""
if str(posting_date) < "01-07-2017":
pre_gst = "Y"
else:
pre_gst = "N"
self.data.append([billing_address_gstin,customer_address,payment_number,
payment_date,credit_invoice_id,creadit_return_date,
document_type,str(gst_state_number)+"-"+str(gst_state),grand_total,""
,tax_rate,taxable_value,cess_amount,pre_gst])
self.data.append(["","","","",""])
self.data.append(["Total","","","","","","","",grand_total_invoice,
"","",grand_total_taxable,grand_total_cess,""])
elif self.filters.get("type_of_business") == "CDNR-A":
invoice_map = {}
grand_total_invoice = 0.0
grand_total_taxable = 0.0
grand_total_cess = 0.0
columns = self.get_columns_cdnra()
cdnr_sales = sales_invoice_cdrn(from_date,to_date)
for sales in cdnr_sales:
amended_from = sales.amended_from
if amended_from is not None:
billing_address_gstin = ""
invoice_id = sales.name
manual_serial_number = sales.manual_serial_number
customer_address = sales.customer_address
place_of_supply = ""
billing_address_gstin = ""
gstin_and_place_of_supply = sales.gstin_and_place_of_supply
customer_address = sales.customer_address
shipping_address_name = sales.shipping_address_name
gst_state_number = ""
gst_state = ""
party_gsstin = ""
if shipping_address_name:
if gstin_and_place_of_supply == 1:
billing_address = get_address_details(customer_address)
for bill in billing_address:
gst_state_number = bill.gst_state_number
gst_state = bill.gst_state
party_gsstin = bill.gstin
elif gstin_and_place_of_supply == 0:
shipping_address = get_address_details(shipping_address_name)
for bill in shipping_address:
gst_state_number = bill.gst_state_number
gst_state = bill.gst_state
party_gsstin = bill.gstin
else:
billing_address = get_address_details(customer_address)
for bill in billing_address:
gst_state_number = bill.gst_state_number
gst_state = bill.gst_state
party_gsstin = bill.gstin
reverse_charge = sales.reverse_charge
invoice_type = sales.invoice_type
customer_name = sales.customer_name
ecommerce_gstin = sales.ecommerce_gstin
posting_date = sales.posting_date
posting_date = posting_date.strftime('%d-%m-%Y')
grand_total = sales.grand_total
company_address = sales.company_address
customer_type = sales.customer_type
port_code = sales.port_code
shipping_bill_number = sales.shipping_bill_number
shipping_bill_date = sales.shipping_bill_date
if shipping_bill_date is not None:
shipping_bill_date = shipping_bill_date.strftime('%d-%m-%Y')
export_type = sales.export_type
is_return = sales.is_return
return_against = sales.return_against
account_head = ""
modified = sales.modified
modified = modified.date()
modified = modified.strftime('%d-%m-%Y')
amended_from = sales.amended_from
net_total = sales.net_total
return_against = sales.return_against
selas_taxes = sales_taxes_charges(invoice_id)
taxable_value = 0.0
tax_rate = 0.0
cess_amount = 0.0
for taxes in selas_taxes:
charge_type = taxes.charge_type
if "On Net Total" in charge_type:
taxable_value = net_total
elif "On Previous Row Total" in charge_type:
row_id = taxes.row_id
get_amount_tax = sales_tax_amount(row_id,invoice_id)
for amount in get_amount_tax:
taxable_value = amount.total
account_head = taxes.account_head
if "SGST" in account_head:
tax_rate = tax_rate + taxes.rate
elif "CGST" in account_head:
tax_rate = tax_rate + taxes.rate
elif "IGST" in account_head:
tax_rate = taxes.rate
amount_by_gst = taxable_value * tax_rate/100
invoice_value = amount_by_gst + taxable_value
grand_total_taxable = grand_total_taxable + taxable_value
grand_total_invoice = grand_total_invoice + grand_total
credit_invoice_id = ""
credit_invoice_id = ""
payment_date = ""
creadit_return_date = ""
document_type = ""
payment_entry = get_Advance_Payment_details(invoice_id)
if len(payment_entry) != 0:
for payment in payment_entry:
payment_number = payment.name
payment_date = payment.posting_date
payment_date = payment_date.strftime('%d-%m-%Y')
else:
payment_number = invoice_id
payment_date = posting_date
return_sales_details = sale_invoice_again_return(return_against)
for return_sale in return_sales_details:
credit_invoice_id = return_sale.name
creadit_return_date = return_sale.posting_date
creadit_return_date = creadit_return_date.strftime('%d-%m-%Y')
document_type = "C"
pre_gst = ""
if str(posting_date) < "01-07-2017":
pre_gst = "Y"
else:
pre_gst = "N"
self.data.append([billing_address_gstin,customer_address,amended_from,
modified,payment_number,
payment_date,credit_invoice_id,creadit_return_date,
document_type,str(gst_state_number)+"-"+str(gst_state),grand_total,""
,tax_rate,taxable_value,cess_amount,pre_gst])
self.data.append(["","","","",""])
self.data.append(["Total","","","","","","","","","",grand_total_invoice,
"","",grand_total_taxable,grand_total_cess,""])
elif self.filters.get("type_of_business") == "EXPORT":
invoice_map = {}
grand_total_invoice = 0.0
grand_total_taxable = 0.0
grand_total_cess = 0.0
columns = self.get_columns_exp()
export_sales = sales_invoice_exp(from_date,to_date)
for sales in export_sales:
amended_from = sales.amended_from
billing_address_gstin = ""
invoice_id = sales.name
manual_serial_number = sales.manual_serial_number
customer_address = sales.customer_address
place_of_supply = ""
billing_address_gstin = ""
gstin_and_place_of_supply = sales.gstin_and_place_of_supply
customer_address = sales.customer_address
shipping_address_name = sales.shipping_address_name
gst_state_number = ""
gst_state = ""
party_gsstin = ""
if shipping_address_name:
if gstin_and_place_of_supply == 1:
billing_address = get_address_details(customer_address)
for bill in billing_address:
gst_state_number = bill.gst_state_number
gst_state = bill.gst_state
party_gsstin = bill.gstin
elif gstin_and_place_of_supply == 0:
shipping_address = get_address_details(shipping_address_name)
for bill in shipping_address:
gst_state_number = bill.gst_state_number
gst_state = bill.gst_state
party_gsstin = bill.gstin
else:
billing_address = get_address_details(customer_address)
for bill in billing_address:
gst_state_number = bill.gst_state_number
gst_state = bill.gst_state
party_gsstin = bill.gstin
reverse_charge = sales.reverse_charge
invoice_type = sales.invoice_type
customer_name = sales.customer_name
ecommerce_gstin = sales.ecommerce_gstin
posting_date = sales.posting_date
posting_date = posting_date.strftime('%d-%m-%Y')
grand_total = sales.grand_total
company_address = sales.company_address
customer_type = sales.customer_type
port_code = sales.port_code
shipping_bill_number = sales.shipping_bill_number
shipping_bill_date = sales.shipping_bill_date
if shipping_bill_date is not None:
shipping_bill_date = shipping_bill_date.strftime('%d-%m-%Y')
export_type = sales.export_type
is_return = sales.is_return
return_against = sales.return_against
account_head = ""
modified = sales.modified
modified = modified.date()
modified = modified.strftime('%d-%m-%Y')
amended_from = sales.amended_from
net_total = sales.net_total
return_against = sales.return_against
selas_taxes = sales_taxes_charges(invoice_id)
taxable_value = 0.0
tax_rate = 0.0
cess_amount = 0.0
for taxes in selas_taxes:
charge_type = taxes.charge_type
if "On Net Total" in charge_type:
taxable_value = net_total
elif "On Previous Row Total" in charge_type:
row_id = taxes.row_id
get_amount_tax = sales_tax_amount(row_id,invoice_id)
for amount in get_amount_tax:
taxable_value = amount.total
account_head = taxes.account_head
if "SGST" in account_head:
tax_rate = tax_rate + taxes.rate
elif "CGST" in account_head:
tax_rate = tax_rate + taxes.rate
elif "IGST" in account_head:
tax_rate = taxes.rate
amount_by_gst = taxable_value * tax_rate/100
invoice_value = amount_by_gst + taxable_value
invoice_value = round(invoice_value)
grand_total_taxable = grand_total_taxable + taxable_value
grand_total_invoice = grand_total_invoice + grand_total
self.data.append([export_type,invoice_id,posting_date,grand_total,
port_code,shipping_bill_number,shipping_bill_date,""
,tax_rate,taxable_value,cess_amount])
self.data.append(["","","","",""])
self.data.append(["Total","","",grand_total_invoice,"","","","","",grand_total_taxable,grand_total_cess])
elif self.filters.get("type_of_business") == "EXEMP":
invoice_map = {}
grand_total_nill = 0.0
grand_total_non = 0.0
grand_total_exmp = 0.0
columns = self.get_columns_exemp()
exempt_items = sales_invoice_item_expem(from_date,to_date)
exempt_item_data = sales_exepted_nill(exempt_items)
for exem in exempt_item_data:
exempt_details = exempt_item_data[exem]
item_name = exempt_details.item_name
non_net_amount = exempt_details.non_net_amount
non_net_amount = round(non_net_amount)
exempt_net_amount = exempt_details.exempt_net_amount
exempt_net_amount = round(exempt_net_amount)
nill_net_amount = exempt_details.nill_net_amount
nill_net_amount = round(nill_net_amount)
india_gst_item_status = exempt_details.india_gst_item_status
grand_total_nill = grand_total_nill + nill_net_amount
grand_total_non = grand_total_non + non_net_amount
grand_total_exmp = grand_total_exmp + exempt_net_amount
self.data.append([item_name,nill_net_amount,exempt_net_amount,non_net_amount])
self.data.append(["","","","",""])
self.data.append(["Total",grand_total_nill,grand_total_exmp,grand_total_non])
elif self.filters.get("type_of_business") == "HSN":
grand_total_value = 0.0
grand_total_net_amount = 0.0
grand_total_central = 0.0
grand_total_integrated = 0.0
grand_total_state = 0.0
grand_total_cess = 0.0
columns = self.get_columns_hsn()
hsn_code_uqc_details = hsn_code_uqc_code(from_date,to_date)
hsn_uqc_unique = get_hsn_uqc_list(hsn_code_uqc_details)
description = ""
for unique_hsn in hsn_uqc_unique:
hsn_detials = hsn_uqc_unique[unique_hsn]
gst_hsn_code = hsn_detials.gst_hsn_code
description_of_hsn = gst_hsn_doc(gst_hsn_code)
for desc in description_of_hsn:
if gst_hsn_code == desc.name:
description = desc.description
uom = hsn_detials.uom
uqc_details = gst_uqc_doc(uom)
if uqc_details is not None:
for uqc in uqc_details:
uqc_code = uqc.uqc_code
quantity = uqc.quantity
uqc_name = uqc_code+"-"+quantity
else:
uqc_name = "OTH-OTHER"
net_amount = hsn_detials.net_amount
net_amount = round(net_amount)
state_tax_amount = hsn_detials.state_tax_amount
state_tax_amount = round(state_tax_amount)
integrated_tax_amount = hsn_detials.integrated_tax_amount
integrated_tax_amount = round(integrated_tax_amount)
total_value_tax = net_amount*hsn_detials.tax_rate/100
total_value = total_value_tax+net_amount
total_value = round(total_value)
grand_total_value = grand_total_value + total_value
grand_total_net_amount = grand_total_net_amount + net_amount
qty = hsn_detials.qty
central_tax_amount = hsn_detials.central_tax_amount
central_tax_amount = round(central_tax_amount)
grand_total_central = grand_total_central + central_tax_amount
grand_total_integrated = grand_total_integrated + integrated_tax_amount
grand_total_state = grand_total_state + state_tax_amount
self.data.append([gst_hsn_code,description,uqc_name,qty,total_value,
net_amount,integrated_tax_amount,central_tax_amount,state_tax_amount])
self.data.append(["","","","",""])
self.data.append(["Total","","","",grand_total_value,grand_total_net_amount,grand_total_integrated,grand_total_central,
grand_total_state,grand_total_cess])
elif self.filters.get("type_of_business") == "AT":
columns = self.get_columns_at()
at_sales = payment_and_sales(from_date,to_date)
total_ad_recieve = 0.0
total_ad_adjusted = 0.0
totla_pending = 0.0
total_taxable = 0.0
total_isgt = 0.0
total_ssgt = 0.0
total_csgt = 0.0
for seles_data in at_sales:
invoice_id = seles_data.name
allocated_amount = seles_data.allocated_amount
advance_paid = seles_data.advance_paid
grand_total = seles_data.grand_total
place_of_supply = seles_data.place_of_supply
net_total = seles_data.net_total
additional_discount_percentage = seles_data.additional_discount_percentage
selas_taxes = sales_taxes_charges(invoice_id)
payment_entry_id = seles_data.entry_id
creation = seles_data.creation
creation = creation.date()
creation = creation.strftime('%d-%m-%Y')
gstin = seles_data.gstin
customer_address = seles_data.customer_address
shipping_address_name = seles_data.shipping_address_name
gstin_and_place_of_supply = seles_data.gstin_and_place_of_supply
gst_state_number = ""
gst_state = ""
party_gsstin = ""
if shipping_address_name:
if gstin_and_place_of_supply == 1:
billing_address = get_address_details(customer_address)
for bill in billing_address:
gst_state_number = bill.gst_state_number
gst_state = bill.gst_state
party_gsstin = bill.gstin
elif gstin_and_place_of_supply == 0:
shipping_address = get_address_details(shipping_address_name)
for bill in shipping_address:
gst_state_number = bill.gst_state_number
gst_state = bill.gst_state
party_gsstin = bill.gstin
else:
billing_address = get_address_details(customer_address)
for bill in billing_address:
gst_state_number = bill.gst_state_number
gst_state = bill.gst_state
party_gsstin = bill.gstin
taxable_value = 0.0
tax_rate = 0.0
tax_rate_sgst = 0.0
tax_rate_cgst = 0.0
tax_rate_igst = 0.0
cess_amount = 0.0
advance_adjust = 0.0
total_ad_recieve = total_ad_recieve + allocated_amount
total_ad_adjusted = total_ad_adjusted + advance_adjust
advance_pending = allocated_amount - advance_adjust
totla_pending = totla_pending + advance_pending
for taxes in selas_taxes:
account_head = taxes.account_head
if "SGST" in account_head:
tax_rate = tax_rate + taxes.rate
tax_rate_sgst = taxes.rate
elif "CGST" in account_head:
tax_rate = tax_rate + taxes.rate
tax_rate_cgst = taxes.rate
elif "IGST" in account_head:
tax_rate = taxes.rate
tax_rate_igst = taxes.rate
taxable_value = advance_pending/(1 + tax_rate/100)
taxable_value = round(taxable_value)
total_taxable = total_taxable + taxable_value
igst_amount = (taxable_value * tax_rate_igst)/100
igst_amount = round(igst_amount)
sgst_amount = (taxable_value * tax_rate_sgst)/100
sgst_amount = round(sgst_amount)
cgst_amount = (taxable_value * tax_rate_cgst)/100
cgst_amount = round(cgst_amount)
total_isgt = total_isgt + igst_amount
total_ssgt = total_ssgt + sgst_amount
total_csgt = total_csgt + cgst_amount
self.data.append([creation,payment_entry_id,party_gsstin,customer_address,
str(gst_state_number)+"-"+str(gst_state),invoice_id,
tax_rate,allocated_amount,advance_adjust,advance_pending,taxable_value,igst_amount,
cgst_amount,sgst_amount])
self.data.append(["","","","","","","",""])
self.data.append(["","","","","","","Total",total_ad_recieve,total_ad_adjusted,
totla_pending,total_taxable,total_isgt,total_csgt,total_ssgt])
elif self.filters.get("type_of_business") == "ATA":
columns = self.get_columns_ata()
ata_sales = payment_and_sales_amended(from_date,to_date)
total_ad_recieve = 0.0
total_ad_adjusted = 0.0
totla_pending = 0.0
total_taxable = 0.0
total_isgt = 0.0
total_ssgt = 0.0
total_csgt = 0.0
for seles_data in ata_sales:
sales_doc = seles_data.sales_doc
payment_doc = seles_data.payment_doc
payment_amended_from = seles_data.payment_amended
if payment_amended_from is not None:
payment_entry_details = payment_entry_amended(payment_amended_from)
original_voucher_no = ""
original_date = ""
original_state = ""
for pay in payment_entry_details:
original_voucher_no = pay.name
original_date = pay.creation
original_date = original_date.date()
financial_year = original_date.year
finalcial_month = original_date.strftime("%b")
original_date = original_date.strftime('%d-%m-%Y')
invoice_id = seles_data.sales_id
sales_amended_from = seles_data.sales_amended
sales_id = seles_data.sales_id
customer_address = seles_data.customer_address
gstin_and_place_of_supply = seles_data.gstin_and_place_of_supply
shipping_address_name = seles_data.shipping_address_name
gst_state_number = ""
gst_state = ""
party_gsstin = ""
if shipping_address_name:
if gstin_and_place_of_supply == 1:
billing_address = get_address_details(customer_address)
for bill in billing_address:
gst_state_number = bill.gst_state_number
gst_state = bill.gst_state
party_gsstin = bill.gstin
elif gstin_and_place_of_supply == 0:
shipping_address = get_address_details(shipping_address_name)
for bill in shipping_address:
gst_state_number = bill.gst_state_number
gst_state = bill.gst_state
party_gsstin = bill.gstin
else:
billing_address = get_address_details(customer_address)
for bill in billing_address:
gst_state_number = bill.gst_state_number
gst_state = bill.gst_state
party_gsstin = bill.gstin
original_gst_state_number = ""
original_gst_state = ""
original_party_gsstin = ""
if sales_amended_from is not None:
gstin_and_place_of_supply,shipping_address_name,customer_address = frappe.db.get_value('Sales Order',sales_amended_from,['gstin_and_place_of_supply','shipping_address_name','customer_address'])
if shipping_address_name:
if gstin_and_place_of_supply == 1:
billing_address = get_address_details(customer_address)
for bill in billing_address:
original_gst_state_number = bill.gst_state_number
original_gst_state = bill.gst_state
original_party_gsstin = bill.gstin
elif gstin_and_place_of_supply == 0:
shipping_address = get_address_details(shipping_address_name)
for bill in shipping_address:
original_gst_state_number = bill.gst_state_number
original_gst_state = bill.gst_state
original_party_gsstin = bill.gstin
else:
billing_address = get_address_details(customer_address)
for bill in billing_address:
original_gst_state_number = bill.gst_state_number
original_gst_state = bill.gst_state
original_party_gsstin = bill.gstin
else:
original_gst_state_number = gst_state_number
original_gst_state = gst_state
original_party_gsstin = party_gsstin
allocated_amount = seles_data.allocated_amount
advance_paid = seles_data.advance_paid
grand_total = seles_data.grand_total
place_of_supply = seles_data.state
net_total = seles_data.net_total
additional_discount_percentage = seles_data.additional_discount_percentage
selas_taxes = sales_taxes_charges(invoice_id)
payment_entry_id = seles_data.entry_id
creation = seles_data.creation
creation = creation.date()
fiscal_year = frappe.defaults.get_user_default("fiscal_year")
creation = creation.strftime('%d-%m-%Y')
modified = seles_data.modified
modified = modified.date()
modified = modified.strftime('%d-%m-%Y')
gstin = seles_data.gstin
taxable_value = 0.0
tax_rate = 0.0
tax_rate_sgst = 0.0
tax_rate_cgst = 0.0
tax_rate_igst = 0.0
cess_amount = 0.0
advance_adjust = 0.0
total_ad_recieve = total_ad_recieve + allocated_amount
total_ad_adjusted = total_ad_adjusted + advance_adjust
advance_pending = allocated_amount - advance_adjust
totla_pending = totla_pending + advance_pending
for taxes in selas_taxes:
account_head = taxes.account_head
if "SGST" in account_head:
tax_rate = tax_rate + taxes.rate
tax_rate_sgst = taxes.rate
elif "CGST" in account_head:
tax_rate = tax_rate + taxes.rate
tax_rate_cgst = taxes.rate
elif "IGST" in account_head:
tax_rate = taxes.rate
tax_rate_igst = taxes.rate
taxable_value = advance_pending/(1 + tax_rate/100)
total_taxable = total_taxable + taxable_value
igst_amount = (taxable_value * tax_rate_igst)/100
sgst_amount = (taxable_value * tax_rate_sgst)/100
cgst_amount = (taxable_value * tax_rate_cgst)/100
total_isgt = total_isgt + igst_amount
total_ssgt = total_ssgt + sgst_amount
total_csgt = total_csgt + cgst_amount
self.data.append([str(fiscal_year),str(finalcial_month)+"-"+str(financial_year),
str(original_gst_state_number)+"-"+str(original_gst_state),str(original_date)
,str(original_voucher_no),str(creation),str(payment_entry_id),str(party_gsstin),
str(customer_address),str(gst_state_number)+"-"+str(gst_state),str(invoice_id),
str(tax_rate),str(allocated_amount),str(advance_adjust),
str(advance_pending),str(taxable_value),str(igst_amount),
str(sgst_amount),str(cgst_amount)])
self.data.append(["","","","","","","",""])
self.data.append(["","","","","","","","","","","","Total",total_ad_recieve,total_ad_adjusted,
totla_pending,total_taxable,total_isgt,total_ssgt,total_csgt])
elif self.filters.get("type_of_business") == "ATADJ":
cess_amount = 0.0
total_ad_recieve = 0.0
total_ad_adjusted = 0.0
totla_pending = 0.0
total_taxable = 0.0
total_isgt = 0.0
total_ssgt = 0.0
total_csgt = 0.0
pending_amount = 0.0
columns = self.get_columns_atadj()
atadj_sales = order_invoice_sales(from_date,to_date)
for atadj in atadj_sales:
order_total = atadj.order_total
invoice_total = atadj.invoice_total
if order_total > invoice_total:
order_id = atadj.order_id
invoice_id = atadj.invoice_id
grand_total = atadj.grand_total
allocated_amount = atadj.allocated_amount
payment_entry = atadj.parent
customer_address = atadj.customer_address
shipping_address_name = atadj.shipping_address_name
gstin_and_place_of_supply = atadj.gstin_and_place_of_supply
gst_state_number = ""
gst_state = ""
party_gsstin = ""
if shipping_address_name:
if gstin_and_place_of_supply == 1:
billing_address = get_address_details(customer_address)
for bill in billing_address:
gst_state_number = bill.gst_state_number
gst_statse = bill.gst_state
party_gsstin = bill.gstin
elif gstin_and_place_of_supply == 0:
shipping_address = get_address_details(shipping_address_name)
for bill in shipping_address:
gst_state_number = bill.gst_state_number
gst_state = bill.gst_state
party_gsstin = bill.gstin
else:
billing_address = get_address_details(customer_address)
for bill in billing_address:
gst_state_number = bill.gst_state_number
gst_state = bill.gst_state
party_gsstin = bill.gstin
selas_taxes = sales_taxes_charges(invoice_id)
tax_rate = 0.0
tax_rate_sgst = 0.0
tax_rate_cgst = 0.0
tax_rate_igst = 0.0
for taxes in selas_taxes:
account_head = taxes.account_head
if "SGST" in account_head:
tax_rate = tax_rate + taxes.rate
tax_rate_sgst = taxes.rate
elif "CGST" in account_head:
tax_rate = tax_rate + taxes.rate
tax_rate_cgst = taxes.rate
elif "IGST" in account_head:
tax_rate = taxes.rate
tax_rate_igst = taxes.rate
state = atadj.state
gstin = atadj.gstin
creation = atadj.creation
creation = creation.date()
creation = creation.strftime('%d-%m-%Y')
igst_amount = (grand_total * tax_rate_igst)/100
igst_amount = round(igst_amount)
sgst_amount = (grand_total * tax_rate_sgst)/100
sgst_amount = round(sgst_amount)
cgst_amount = (grand_total * tax_rate_cgst)/100
cgst_amount = round(cgst_amount)
total_ad_adjusted = total_ad_adjusted + grand_total
total_ad_recieve = total_ad_recieve + allocated_amount
total_isgt = total_isgt + igst_amount
total_ssgt = total_ssgt + sgst_amount
total_csgt = total_csgt + cgst_amount
self.data.append([creation,payment_entry,party_gsstin,customer_address,
str(gst_state_number)+"-"+str(gst_state),order_id,tax_rate,
allocated_amount,pending_amount,grand_total,igst_amount,cgst_amount,sgst_amount])
self.data.append(["","","","","","","",""])
self.data.append(["","","","","","","Total",total_ad_recieve,
totla_pending,total_ad_adjusted,total_isgt,total_ssgt,total_csgt])
return columns, self.data
def get_columns_b2b(self):
return [
_("GSTIN/UIN of Recipient") + "::150",
_("Receiver Name") + "::150",
_("Invoice Number") + ":Link/Sales Invoice:150",
_("Manual Serial Number") + "::150",
_("Invoice date") + "::150",
_("Invoice Value") + ":Currency:180",
_("Place Of Supply") + "::150",
_("Reverse Charge") + "::150",
_("Applicable % of Tax Rate") + "::150",
_("Invoice Type") + "::150",
_("E-Commerce GSTIN") + "::150",
_("Rate") + ":Currency:150",
_("Taxable Value") + ":Currency:160",
_("Cess Amount") + "::120"
]
def get_columns_b2ba(self):
return [
_("GSTIN/UIN of Recipient") + "::150",
_("Receiver Name") + "::150",
_("Original Invoice Number") + ":Link/Sales Invoice:150",
_("Manual Serial Number") + "::150",
_("Original Invoice date") + "::150",
_("Revised Invoice Number") + ":Link/Sales Invoice:150",
_("Revised Invoice date") + "::150",
_("Invoice Value") + ":Currency:180",
_("Place Of Supply") + "::150",
_("Reverse Charge") + "::150",
_("Applicable % of Tax Rate") + "::150",
_("Invoice Type") + "::150",
_("E-Commerce GSTIN") + "::150",
_("Rate") + ":Currency:150",
_("Taxable Value") + ":Currency:160",
_("Cess Amount") + "::120"
]
def get_columns_b2bl(self):
return [
_("Invoice Number") + ":Link/Sales Invoice:150",
_("Invoice date") + "::150",
_("Invoice Value") + ":Currency:150",
_("Place Of Supply") + "::150",
_("Applicable % of Tax Rate") + "::150",
_("Rate") + ":Currency:150",
_("Taxable Value") + ":Currency:180",
_("Cess Amount") + "::150",
_("E-Commerce GSTIN") + "::150"
]
def get_columns_b2bla(self):
return [
_("Original Invoice Number") + ":Link/Sales Invoice:150",
_("Original Invoice date") + "::150",
_("Original Place Of Supply") + "::150",
_("Revised Invoice Number") + ":Link/Sales Invoice:150",
_("Revised Invoice date") + "::150",
_("Invoice Value") + ":Currency:150",
_("Applicable % of Tax Rate") + "::150",
_("Rate") + ":Currency:150",
_("Taxable Value") + ":Currency:180",
_("Cess Amount") + "::150",
_("E-Commerce GSTIN") + "::150"
]
def get_columns_b2bcs(self):
return [
_("Type") + "::150",
_("Place Of Supply") + "::150",
_("Invoice Value") + ":Currency:150",
_("Applicable % of Tax Rate") + "::150",
_("Rate") + ":Currency:150",
_("Taxable Value") + ":Currency:150",
_("Cess Amount") + "::150",
_("E-Commerce GSTIN") + "::150"
]
def get_columns_b2bcsa(self):
return [
_("Financial Year") + "::150",
_("Original Month") + "::150",
_("Type ") + "::150",
_("Place Of Supply") + "::150",
_("Invoice Value") + ":Currency:150",
_("Applicable % of Tax Rate") + "::150",
_("Rate") + ":Currency:150",
_("Taxable Value") + ":Currency:150",
_("Cess Amount") + "::150",
_("E-Commerce GSTIN") + "::150"
]
def get_columns_exp(self):
return [
_(" Export Type") + "::150",
_("Invoice Number") + ":Link/Sales Invoice:150",
_("Invoice date ") + "::150",
_("Invoice Value ") + ":Currency:150",
_("Port Code") + "::150",
_("Shipping Bill Number") + "::150",
_("Shipping Bill Date") + "::150",
_("Applicable % of Tax Rate") + "::150",
_("Rate") + ":Currency:150",
_("Taxable Value") + ":Currency:150",
_("Cess Amount") + "::150"
]
def get_columns_cdnr(self):
return [
_(" GSTIN/UIN of Recipient") + "::150",
_("Receiver Name") + "::150",
_("Invoice/Advance Receipt Number") + "::150",
_("Invoice/Advance Receipt date") + "::150",
_("Note/Refund Voucher Number ") + ":Link/Sales Invoice:150",
_("Note/Refund Voucher date") + "::150",
_("Document Type") + "::150",
_("Place Of Supply") + "::150",
_("Note/Refund Voucher Value") + ":Currency:150",
_("Applicable % of Tax Rate") + "::150",
_("Rate") + ":Currency:150",
_("Taxable Value") + ":Currency:150",
_("Cess Amount") + "::150",
_("Pre GST") + "::150"
]
def get_columns_cdnra(self):
return [
_(" GSTIN/UIN of Recipient") + "::150",
_("Receiver Name") + "::150",
_("Original Note/Refund Voucher Number ") + ":Link/Sales Invoice:150",
_("Original Note/Refund Voucher date") + "::150",
_("Original Invoice/Advance Receipt Number") + "::150",
_("Original Invoice/Advance Receipt date") + "::150",
_("Revised Note/Refund Voucher Number ") + ":Link/Sales Invoice:150",
_("Revised Note/Refund Voucher date") + "::150",
_("Document Type") + "::150",
_("Place Of Supply") + "::150",
_("Note/Refund Voucher Value") + ":Currency:150",
_("Applicable % of Tax Rate") + "::150",
_("Rate") + ":Currency:150",
_("Taxable Value") + ":Currency:150",
_("Cess Amount") + "::150",
_("Pre GST") + "::150"
]
def get_columns_exemp(self):
return [
_("Description") + ":Link/Item:250",
_("Nil Rated Supplies") + ":Currency:150",
_("Exempted(other than nil rated/non GST supply)") + ":Currency:250",
_("Non-GST Supplies") + ":Currency:150"
]
def get_columns_hsn(self):
return [
_("HSN") + "::150",
_("Description") + "::250",
_("UQC ") + "::150",
_("Total Quantity") + "::150",
_("Total Value") + "::150",
_("Taxable Value") + ":Currency:150",
_("Integrated Tax Amount") + ":Currency:150",
_("Central Tax Amount") + ":Currency:150",
_("State/UT Tax Amount") + ":Currency:150",
_("Cess Amount") + "::150"
]
def get_columns_at(self):
return [
_("Date") + "::150",
_("Voucher No.") + ":Link/Payment Entry:150",
_("GSTIN No.") + "::250",
_("Party ") + "::150",
_("Place of Supply") + "::150",
_("Reference No.") + ":Link/Sales Order:150",
_("Rate") + ":Currency:150",
_("Advance Received") + ":Currency:150",
_("Advance Adjusted") + ":Currency:250",
_("Advance Pending ") + ":Currency:150",
_("Taxable Amount") + ":Currency:150",
_("IGST Amt") + ":Currency:150",
_("CGST Amt") + ":Currency:150",
_("SGST Amt") + ":Currency:150"
]
def get_columns_ata(self):
return [
_("financial Year") + "::150",
_("Original Month") + "::150",
_("Original Place Of Supply") + "::150",
_("Original Date") + "::150",
_("Original Voucher Number") +":Link/Payment Entry:150",
_("Date")+"::150",
_("Voucherch No")+":Link/Payment Entry:150",
_("GSTIN No.") + "::250",
_("Party ") + "::150",
_("Place of Supply") + "::150",
_("Reference No.") + "::150",
_("Rate") + ":Currency:150",
_("Advance Received") + ":Currency:150",
_("Advance Adjusted") + ":Currency:250",
_("Advance Pending ") + ":Currency:150",
_("Taxable Amount") + ":Currency:150",
_("IGST Amt") + ":Currency:150",
_("CGST Amt") + ":Currency:150",
_("SGST Amt") + ":Currency:150"
]
def get_columns_atadj(self):
return [
_("Date") + "::150",
_("Voucher No.") + ":Link/Payment Entry:150",
_("GSTIN No.") + "::250",
_("Party ") + "::150",
_("Place of Supply") + "::150",
_("Reference No.") + ":Link/Sales Order:150",
_("Rate") + ":Currency:150",
_("Advance Received") + ":Currency:150",
_("Advance Pending ") + ":Currency:150",
_("Advance Adjusted") + ":Currency:150",
_("IGST Amt") + ":Currency:150",
_("CGST Amt") + ":Currency:150",
_("SGST Amt") + ":Currency:150"
]
def sales_invoice_details(from_date,to_date):
sales_invoice = frappe.db.sql("""select si.billing_address_gstin,si.customer_address,si.name,si.customer_name,
si.posting_date,si.place_of_supply,si.is_return,si.return_against,si.shipping_address_name
,si.manual_serial_number,si.reverse_charge,si.invoice_type,si.ecommerce_gstin,
si.posting_date,si.amended_from,si.modified,si.grand_total,si.company_address,
c.customer_type,si.net_total,si.gstin_and_place_of_supply,si.customer_gstin
from `tabSales Invoice` si, `tabCustomer` c
where si.posting_date >= %s AND si.posting_date <= %s AND si.invoice_type = "Regular"
AND c.customer_type = "Company" AND si.customer_name = c.customer_name
AND si.docstatus = 1""",(from_date,to_date), as_dict = 1)
return sales_invoice
def sales_taxes_charges(invoice_id):
taxes_and_charges = frappe.db.sql(""" select charge_type,account_head,row_id,total,rate
from `tabSales Taxes and Charges` where parent = %s
""",(invoice_id) , as_dict = 1)
return taxes_and_charges
def sales_tax_amount(row_id,invoice_id):
tax_amount = frappe.db.sql("""select total
from `tabSales Taxes and Charges`
where parent = %s AND idx = %s
""",(invoice_id,row_id), as_dict =1)
return tax_amount
def sales_invoice_b2bl(from_date,to_date):
sales_invoice_b = frappe.db.sql("""select si.billing_address_gstin,si.customer_address,si.name,si.customer_name,si.net_total,
si.posting_date,si.place_of_supply,si.is_return,si.return_against,si.manual_serial_number,
si.reverse_charge,si.invoice_type,si.ecommerce_gstin,si.posting_date,si.amended_from,
si.modified,si.grand_total,si.company_address,c.customer_type,si.shipping_address_name
,si.gstin_and_place_of_supply,si.customer_gstin
from `tabSales Invoice` si, `tabCustomer` c
where si.posting_date >= %s AND si.posting_date <= %s AND si.invoice_type = "Regular"
AND c.customer_type = "Individual" AND si.customer_name = c.customer_name AND si.is_return = 0
AND si.docstatus = 1""",(from_date,to_date), as_dict = 1)
return sales_invoice_b
def get_contact_details(customer_address):
gst_state_number =""
if customer_address:
gst_state_number = frappe.db.get_value('Address',customer_address,
['gst_state_number'])
return gst_state_number
def get_address_details(address_name):
address_details = frappe.db.sql("""select gst_state_number,gst_state,gstin
from `tabAddress`
where name = %s""",(address_name), as_dict=1)
return address_details
def address_gst_number(company_address):
company_gst_state_number = ""
address_detail = frappe.get_list("Address",["address_type","gst_state_number","name"])
for itrate_address in address_detail:
name = itrate_address.name
if name == company_address:
company_gst_state_number = itrate_address.gst_state_number
return company_gst_state_number
def sales_invoice_cdrn(from_date,to_date):
sales_invoice_cd = frappe.db.sql("""select billing_address_gstin,customer_address,name,customer_name,net_total,
posting_date,place_of_supply,port_code,shipping_bill_number,shipping_bill_date,
export_type,reverse_charge,invoice_type,ecommerce_gstin,posting_date,amended_from,
modified,grand_total,company_address,is_return,return_against,gstin_and_place_of_supply,customer_gstin
from `tabSales Invoice`
where posting_date >= %s AND posting_date <= %s AND is_return = 1
AND docstatus = 1""",(from_date,to_date), as_dict = 1)
return sales_invoice_cd
def sale_invoice_again_return(return_against):
return_sales = frappe.db.sql("""select name,posting_date from `tabSales Invoice` where name = %s""",(return_against), as_dict = 1)
return return_sales
def get_Advance_Payment_details(invoice_id):
payment_data = frappe.db.sql("""select pe.paid_amount,pe.name,pe.creation,pe.party_name,pe.posting_date
from `tabPayment Entry` pe , `tabPayment Entry Reference` per
where pe.name = per.parent AND per.reference_name = %s""",(invoice_id),as_dict = 1)
return payment_data
def sales_invoice_exp(from_date,to_date):
sales_invoice_ex = frappe.db.sql("""select billing_address_gstin,customer_address,name,customer_name,net_total,
posting_date,place_of_supply,port_code,shipping_bill_number,shipping_bill_date,
export_type,reverse_charge,invoice_type,ecommerce_gstin,posting_date,amended_from,
modified,grand_total,company_address,is_return,return_against
,gstin_and_place_of_supply,customer_gstin
from `tabSales Invoice`
where posting_date >= %s AND posting_date <= %s AND invoice_type = "Export"
AND docstatus = 1""",(from_date,to_date), as_dict = 1)
return sales_invoice_ex
def sales_invoice_item_expem(from_date,to_date):
exempt_item = frappe.db.sql(""" select sii.name,si.parent,si.item_name,si.item_code,si.net_amount,i.india_gst_item_status
from `tabSales Invoice` sii, `tabSales Invoice Item` si , `tabItem` i
where sii.name = si.parent AND si.item_code = i.name
AND i.india_gst_item_status IN ("Nil Rated Item","Exempt Item","Non-GST Item")
AND sii.posting_date >= %s AND sii.posting_date <=%s
AND sii.docstatus = 1""",(from_date,to_date), as_dict = 1)
return exempt_item
def hsn_code_uqc_code(from_date,to_date):
hsn_uqc = frappe.db.sql(""" select s.name,si.item_name,si.item_code,si.net_amount,si.uom,si.qty,si.gst_hsn_code
from `tabSales Invoice` s, `tabSales Invoice Item` si
where s.name = si.parent AND s.posting_date >= %s AND s.posting_date <= %s""",
(from_date,to_date), as_dict = 1)
return hsn_uqc
def sales_tax_hsn(item_code,invoice_id):
if item_code:
items_hsn = frappe.db.sql("""select si.parent,si.item_code,si.item_name,si.net_amount,it.tax_rate,it.tax_type
from `tabSales Invoice Item` si, `tabItem Tax` it
where si.item_code = %s AND si.parent = %s AND it.parent = si.item_code
""",(item_code,invoice_id), as_dict = 1)
return items_hsn
def sales_account_tax(invoice_id):
if invoice_id:
account_tax = frappe.db.sql("""select account_head,rate,item_wise_tax_detail
from `tabSales Taxes and Charges` where parent = %s """,(invoice_id),as_dict =1)
return account_tax
def gst_hsn_doc(gst_hsn_code):
hsn_doc = frappe.db.sql("""select name,description from `tabGST HSN Code` where name = %s""",(gst_hsn_code), as_dict = 1)
return hsn_doc
def gst_uqc_doc(uom):
uqc_doc = frappe.db.sql("""select uqc_code,quantity from `tabUQC Item` where erpnext_uom_link = %s""",(uom), as_dict = 1)
return uqc_doc
def payment_and_sales(from_date,to_date):
temp_from_time = " 00:00:00"
temp_to_time = " 23:59:59"
tmp_from_date = str(from_date)+ (temp_from_time)
tmp_to_date = str(to_date)+(temp_to_time)
payment_sale = frappe.db.sql(""" select so.name,so.advance_paid,pr.parent,pr.allocated_amount,ad.state,so.amended_from,so.net_total
,so.additional_discount_percentage,so.grand_total,so.creation,
pe.name as entry_id,ad.gstin,so.customer_address,so.gstin_and_place_of_supply,so.shipping_address_name
from `tabSales Order` so, `tabPayment Entry Reference` pr, `tabAddress` ad,
`tabPayment Entry` pe
where so.name = pr.reference_name AND so.customer_address = ad.name AND
pe.name = pr.parent AND pe.amended_from is NULL
AND so.creation >= %s AND so.creation <= %s AND so.amended_from is NULL AND so.docstatus = 1 AND pe.docstatus = 1
""",(tmp_from_date,tmp_to_date), as_dict = 1)
return payment_sale
def payment_and_sales_amended(from_date,to_date):
temp_from_time = " 00:00:00"
temp_to_time = " 23:59:59"
tmp_from_date = str(from_date)+ (temp_from_time)
tmp_to_date = str(to_date)+(temp_to_time)
payment_sale_amend = frappe.db.sql(""" select pe.name,per.parent,per.allocated_amount,so.name as sales_id,so.amended_from
as sales_amended,pe.amended_from as payment_amended,so.advance_paid,pe.creation,pe.modified,
so.docstatus as sales_doc,pe.docstatus as payment_doc,pe.creation,ad.gstin,so.customer_address,
so.additional_discount_percentage,so.grand_total,ad.state,pe.name as entry_id,
so.gstin_and_place_of_supply,so.shipping_address_name
from `tabPayment Entry` pe , `tabPayment Entry Reference` per, `tabSales Order` so
, `tabAddress` ad
where pe.name = per.parent AND so.name = per.reference_name AND
so.customer_address = ad.name AND pe.amended_from is not NULL AND
so.docstatus IN (1) AND pe.docstatus IN (1) AND so.creation >= %s AND so.creation <= %s
""",(tmp_from_date,tmp_to_date), as_dict = 1)
return payment_sale_amend
def payment_entry_amended(payment_amended_from):
payment = frappe.db.sql("""select name,creation from `tabPayment Entry` where name = %s""",(payment_amended_from), as_dict =1)
return payment
def amended_sales_order(customer_address):
original_state = frappe.db.get_value('Address',customer_address,['state'])
return original_state
def order_invoice_sales(from_date,to_date):
temp_from_time = " 00:00:00"
temp_to_time = " 23:59:59"
tmp_from_date = str(from_date)+ (temp_from_time)
tmp_to_date = str(to_date)+(temp_to_time)
partially = frappe.db.sql("""select so.name as order_id,si.name as invoice_id,so.net_total as order_total,
si.net_total as invoice_total,pr.allocated_amount,ad.state,ad.gstin,
pr.parent,si.grand_total,so.creation,so.customer_address,so.gstin_and_place_of_supply,so.shipping_address_name
from `tabSales Order` so, `tabSales Invoice` si, `tabPayment Entry Reference` pr,`tabAddress` ad
where so.name = si.sales_order AND si.name = pr.reference_name AND so.customer_address = ad.name AND
so.creation >= %s AND so.creation <= %s AND so.docstatus = 1 AND si.docstatus = 1""",
(tmp_from_date,tmp_to_date), as_dict=1)
return partially
def get_unique_state_list(sales):
invoice_map = {}
invoice_no = ""
for seles_data in sales:
amended_from = seles_data.amended_from
if amended_from is None:
billing_address_gstin = seles_data.billing_address_gstin
invoice_id = seles_data.name
if invoice_id != invoice_no:
invoice_no = invoice_id
manual_serial_number = seles_data.manual_serial_number
customer_address = seles_data.customer_address
billing_address_gstin = ""
gstin_and_place_of_supply = seles_data.gstin_and_place_of_supply
customer_address = seles_data.customer_address
shipping_address_name = seles_data.shipping_address_name
gst_state_number = ""
gst_state = ""
party_gsstin = ""
if shipping_address_name:
if gstin_and_place_of_supply == 1:
billing_address = get_address_details(customer_address)
for bill in billing_address:
gst_state_number = bill.gst_state_number
gst_state = bill.gst_state
party_gsstin = bill.gstin
elif gstin_and_place_of_supply == 0:
shipping_address = get_address_details(shipping_address_name)
for bill in shipping_address:
gst_state_number = bill.gst_state_number
gst_state = bill.gst_state
party_gsstin = bill.gstin
else:
billing_address = get_address_details(customer_address)
for bill in billing_address:
gst_state_number = bill.gst_state_number
gst_state = bill.gst_state
party_gsstin = bill.gstin
place_of_supply = str(gst_state_number)+"-"+str(gst_state)
reverse_charge = seles_data.reverse_charge
invoice_type = seles_data.invoice_type
customer_name = seles_data.customer_name
ecommerce_gstin = seles_data.ecommerce_gstin
posting_date = seles_data.posting_date
posting_date = posting_date.strftime('%d-%m-%Y')
grand_total = seles_data.grand_total
company_address = seles_data.company_address
customer_type = seles_data.customer_type
port_code = seles_data.port_code
shipping_bill_number = seles_data.shipping_bill_number
shipping_bill_date = seles_data.shipping_bill_date
if shipping_bill_date is not None:
shipping_bill_date = shipping_bill_date.strftime('%d-%m-%Y')
export_type = seles_data.export_type
is_return = seles_data.is_return
return_against = seles_data.return_against
account_head = ""
modified = seles_data.modified
modified = modified.date()
modified = modified.strftime('%d-%m-%Y')
amended_from = seles_data.amended_from
net_total = seles_data.net_total
cess_amount = 0.0
b2c_limit = frappe.db.get_value('GST Settings',customer_address,'b2c_limit')
gst_state_number = get_contact_details(customer_address)
address_details = address_gst_number(company_address)
if (grand_total <= float(b2c_limit) and address_details != gst_state_number)\
or (grand_total <= float(b2c_limit) and address_details == gst_state_number)\
or (grand_total >= float(b2c_limit) and address_details == gst_state_number):
selas_taxes = sales_taxes_charges(invoice_id)
if len(selas_taxes) != 0:
taxable_value = 0.0
tax_rate = 0.0
for taxes in selas_taxes:
charge_type = taxes.charge_type
if "On Net Total" in charge_type:
taxable_value = net_total
elif "On Previous Row Total" in charge_type:
row_id = taxes.row_id
get_amount_tax = sales_tax_amount(row_id,invoice_id)
for amount in get_amount_tax:
taxable_value = amount.total
account_head = taxes.account_head
if "SGST" in account_head:
tax_rate = tax_rate + taxes.rate
elif "CGST" in account_head:
tax_rate = tax_rate + taxes.rate
elif "IGST" in account_head:
tax_rate = taxes.rate
tax_rate_list = []
key = place_of_supply
if key in invoice_map:
item_entry = invoice_map[key]
mapped_items_list = item_entry["mapped_items"]
new_list = []
for mapped_items in mapped_items_list:
tax_rate_list.append(mapped_items["tax_rate"])
data_rate = list(set(tax_rate_list))
if tax_rate in data_rate:
for items in mapped_items_list:
if float(tax_rate) == float(items["tax_rate"]):
amount_temp = items["taxable_value"]
items["taxable_value"] = (amount_temp) + (taxable_value)
else :
new_list.append({
"tax_rate": tax_rate,
"taxable_value": taxable_value,
"billing_address_gstin": billing_address_gstin,
"customer_address": customer_address,
"place_of_supply": key,
"reverse_charge": reverse_charge,
"invoice_type": invoice_type,
"posting_date": posting_date,
"ecommerce_gstin": ecommerce_gstin,
"modified":modified,
"amended_from":amended_from,
"grand_total":grand_total,
"company_address":company_address,
"customer_type":customer_type,
"port_code":port_code,
"shipping_bill_number":shipping_bill_number,
"shipping_bill_date":shipping_bill_date,
"export_type":export_type,
"customer_name":customer_name,
"is_return":is_return,
"return_against":return_against
})
item_entry["mapped_items"] = mapped_items_list + new_list
else :
item_list = []
item_list.append({
"tax_rate": tax_rate,
"taxable_value": taxable_value,
"billing_address_gstin": billing_address_gstin,
"customer_address": customer_address,
"place_of_supply": key,
"reverse_charge": reverse_charge,
"invoice_type": invoice_type,
"posting_date": posting_date,
"ecommerce_gstin": ecommerce_gstin,
"modified":modified,
"amended_from":amended_from,
"grand_total":grand_total,
"company_address":company_address,
"customer_type":customer_type,
"port_code":port_code,
"shipping_bill_number":shipping_bill_number,
"shipping_bill_date":shipping_bill_date,
"export_type":export_type,
"customer_name":customer_name,
"is_return":is_return,
"return_against":return_against
})
invoice_map[key] = frappe._dict({
"mapped_items": item_list
})
return invoice_map
def get_unique_state_list_amended(sales):
invoice_map = {}
invoice_no = ""
for seles_data in sales:
amended_from = seles_data.amended_from
if amended_from is not None:
invoice_id = seles_data.name
if invoice_id != invoice_no:
invoice_no = invoice_id
billing_address_gstin = seles_data.billing_address_gstin
manual_serial_number = seles_data.manual_serial_number
customer_address = seles_data.customer_address
billing_address_gstin = ""
gstin_and_place_of_supply = seles_data.gstin_and_place_of_supply
customer_address = seles_data.customer_address
shipping_address_name = seles_data.shipping_address_name
gst_state_number = ""
gst_state = ""
party_gsstin = ""
if shipping_address_name:
if gstin_and_place_of_supply == 1:
billing_address = get_address_details(customer_address)
for bill in billing_address:
gst_state_number = bill.gst_state_number
gst_state = bill.gst_state
party_gsstin = bill.gstin
elif gstin_and_place_of_supply == 0:
shipping_address = get_address_details(shipping_address_name)
for bill in shipping_address:
gst_state_number = bill.gst_state_number
gst_state = bill.gst_state
party_gsstin = bill.gstin
else:
billing_address = get_address_details(customer_address)
for bill in billing_address:
gst_state_number = bill.gst_state_number
gst_state = bill.gst_state
party_gsstin = bill.gstin
place_of_supply = str(gst_state_number)+"-"+str(gst_state)
reverse_charge = seles_data.reverse_charge
invoice_type = seles_data.invoice_type
customer_name = seles_data.customer_name
ecommerce_gstin = seles_data.ecommerce_gstin
posting_date = seles_data.posting_date
posting_date = posting_date.strftime('%d-%m-%Y')
grand_total = seles_data.grand_total
company_address = seles_data.company_address
customer_type = seles_data.customer_type
port_code = seles_data.port_code
shipping_bill_number = seles_data.shipping_bill_number
shipping_bill_date = seles_data.shipping_bill_date
if shipping_bill_date is not None:
shipping_bill_date = shipping_bill_date.strftime('%d-%m-%Y')
export_type = seles_data.export_type
is_return = seles_data.is_return
return_against = seles_data.return_against
account_head = ""
modified = seles_data.modified
modified = modified.date()
modified = modified.strftime('%d-%m-%Y')
amended_from = seles_data.amended_from
net_total = seles_data.net_total
cess_amount = 0.0
b2c_limit = frappe.db.get_value('GST Settings',customer_address,'b2c_limit')
gst_state_number = get_contact_details(customer_address)
address_details = address_gst_number(company_address)
if (grand_total <= float(b2c_limit) and address_details != gst_state_number)\
or (grand_total <= float(b2c_limit) and address_details == gst_state_number) \
or (grand_total >= float(b2c_limit) and address_details == gst_state_number):
selas_taxes = sales_taxes_charges(invoice_id)
if len(selas_taxes) != 0:
taxable_value = 0.0
tax_rate = 0.0
for taxes in selas_taxes:
charge_type = taxes.charge_type
if "On Net Total" in charge_type:
taxable_value = net_total
elif "On Previous Row Total" in charge_type:
row_id = taxes.row_id
get_amount_tax = sales_tax_amount(row_id,invoice_id)
for amount in get_amount_tax:
taxable_value = amount.total
account_head = taxes.account_head
if "SGST" in account_head:
tax_rate = tax_rate + taxes.rate
elif "CGST" in account_head:
tax_rate = tax_rate + taxes.rate
elif "IGST" in account_head:
tax_rate = taxes.rate
tax_rate_list = []
key = place_of_supply
if key in invoice_map:
item_entry = invoice_map[key]
mapped_items_list = item_entry["mapped_items"]
new_list = []
for mapped_items in mapped_items_list:
tax_rate_list.append(mapped_items["tax_rate"])
data_rate = list(set(tax_rate_list))
if tax_rate in data_rate:
for items in mapped_items_list:
if float(tax_rate) == float(items["tax_rate"]):
amount_temp = items["taxable_value"]
items["taxable_value"] = (amount_temp) + (taxable_value)
else :
new_list.append({
"tax_rate": tax_rate,
"taxable_value": taxable_value,
"billing_address_gstin": billing_address_gstin,
"customer_address": customer_address,
"place_of_supply": key,
"reverse_charge": reverse_charge,
"invoice_type": invoice_type,
"posting_date": posting_date,
"ecommerce_gstin": ecommerce_gstin,
"modified":modified,
"amended_from":amended_from,
"grand_total":grand_total,
"company_address":company_address,
"customer_type":customer_type,
"port_code":port_code,
"shipping_bill_number":shipping_bill_number,
"shipping_bill_date":shipping_bill_date,
"export_type":export_type,
"customer_name":customer_name,
"is_return":is_return,
"return_against":return_against
})
item_entry["mapped_items"] = mapped_items_list + new_list
else :
item_list = []
item_list.append({
"tax_rate": tax_rate,
"taxable_value": taxable_value,
"billing_address_gstin": billing_address_gstin,
"customer_address": customer_address,
"place_of_supply": key,
"reverse_charge": reverse_charge,
"invoice_type": invoice_type,
"posting_date": posting_date,
"ecommerce_gstin": ecommerce_gstin,
"modified":modified,
"amended_from":amended_from,
"grand_total":grand_total,
"company_address":company_address,
"customer_type":customer_type,
"port_code":port_code,
"shipping_bill_number":shipping_bill_number,
"shipping_bill_date":shipping_bill_date,
"export_type":export_type,
"customer_name":customer_name,
"is_return":is_return,
"return_against":return_against
})
invoice_map[key] = frappe._dict({
"mapped_items": item_list
})
return invoice_map
def sales_exepted_nill(exempted_items):
payment_tax = {}
item_unieq_name1 = []
item_unieq_name2 = []
item_unieq_name3 = []
for exempt in exempted_items:
india_gst_item_status = exempt.india_gst_item_status
if str(india_gst_item_status) == "Nil Rated Item":
item_name = exempt.item_name
net_amount = exempt.net_amount
exempt_net_amount = 0.0
non_net_amount = 0.0
key = item_name
if key in payment_tax:
item_entry = payment_tax[key]
item_unieq_name1.append(item_entry["item_name"])
uniue_name = list(set(item_unieq_name1))
if item_name in uniue_name:
if item_name == item_entry["item_name"]:
qty_temp = item_entry["nill_net_amount"]
item_entry["nill_net_amount"] = (qty_temp) + (net_amount)
else:
payment_tax[key] = frappe._dict({
"item_name": key,
"nill_net_amount": net_amount,
"india_gst_item_status":india_gst_item_status,
"non_net_amount":non_net_amount,
"exempt_net_amount":exempt_net_amount
})
else:
payment_tax[key] = frappe._dict({
"item_name": key,
"nill_net_amount": net_amount,
"india_gst_item_status":india_gst_item_status,
"non_net_amount":non_net_amount,
"exempt_net_amount":exempt_net_amount
})
elif str(india_gst_item_status) == "Exempt Item":
item_name = exempt.item_name
net_amount = exempt.net_amount
non_net_amount = 0.0
nill_net_amount = 0.0
key = item_name
if key in payment_tax:
item_entry = payment_tax[key]
item_unieq_name2.append(item_entry["item_name"])
uniue_name = list(set(item_unieq_name2))
if item_name in uniue_name:
if item_name == item_entry["item_name"]:
qty_temp = item_entry["exempt_net_amount"]
item_entry["exempt_net_amount"] = (qty_temp) + (net_amount)
else:
payment_tax[key] = frappe._dict({
"item_name": key,
"exempt_net_amount": net_amount,
"india_gst_item_status":india_gst_item_status,
"non_net_amount":non_net_amount,
"nill_net_amount":nill_net_amount
})
else:
payment_tax[key] = frappe._dict({
"item_name": key,
"exempt_net_amount": net_amount,
"india_gst_item_status":india_gst_item_status,
"non_net_amount":non_net_amount,
"nill_net_amount":nill_net_amount
})
elif str(india_gst_item_status) == "Non-GST Item":
item_name = exempt.item_name
net_amount = exempt.net_amount
exempt_net_amount = 0.0
nill_net_amount = 0.0
key = item_name
if key in payment_tax:
item_entry = payment_tax[key]
item_unieq_name3.append(item_entry["item_name"])
uniue_name = list(set(item_unieq_name3))
if item_name in uniue_name:
if item_name == item_entry["item_name"]:
qty_temp = item_entry["non_net_amount"]
item_entry["non_net_amount"] = (qty_temp) + (net_amount)
else:
payment_tax[key] = frappe._dict({
"item_name": key,
"non_net_amount": net_amount,
"india_gst_item_status":india_gst_item_status,
"exempt_net_amount":exempt_net_amount,
"non_net_amount":non_net_amount
})
else:
payment_tax[key] = frappe._dict({
"item_name": key,
"non_net_amount": net_amount,
"india_gst_item_status":india_gst_item_status,
"exempt_net_amount":exempt_net_amount,
"nill_net_amount":nill_net_amount
})
return payment_tax
def get_hsn_uqc_list(sales):
invoice_map = {}
item_tax_rate = 0.0
integrated_tax_amount = 0.0
central_tax_amount = 0.0
state_tax_amount = 0.0
total_value = 0.0
for seles_data in sales:
invoice_id = seles_data.name
item_name = seles_data.itme_name
item_code = seles_data.item_code
net_amount = seles_data.net_amount
gst_hsn_code = seles_data.gst_hsn_code
uom = seles_data.uom
qty = seles_data.qty
tax_data = sales_tax_hsn(item_code,invoice_id)
sales_invoice_tax_data = sales_account_tax(invoice_id)
tax_rate_list = []
if gst_hsn_code is not None:
if len(tax_data) != 0:
for data in tax_data:
tax_rate = data.tax_rate
tax_type = data.tax_type
key = gst_hsn_code
if "SGST" in tax_type or "CGST" in tax_type:
if "SGST" in tax_type:
state_tax_amount = net_amount * data.tax_rate/100
elif "CGST" in tax_type:
central_tax_amount = net_amount * data.tax_rate/100
elif "IGST" in tax_type:
item_tax_rate = data.tax_rate
integrated_tax_amount = net_amount * data.tax_rate/100
if key in invoice_map:
item_entry = invoice_map[key]
qty_temp = item_entry["net_amount"]
qty_count = item_entry["qty"]
item_entry["net_amount"] = (qty_temp) + (net_amount)
item_entry["qty"] = (qty_count) + (qty)
else :
invoice_map[key] = frappe._dict({
"tax_rate": item_tax_rate,
"net_amount": net_amount,
"gst_hsn_code": key,
"state_tax_amount":state_tax_amount,
"central_tax_amount":central_tax_amount,
"integrated_tax_amount":integrated_tax_amount,
"uom":uom,
"qty":qty,
"item_code":item_code
})
else:
sales_tax_rate = 0
total_amount = 0.0
if len(sales_invoice_tax_data) != 0:
for invoice_tax_data in sales_invoice_tax_data:
account_head = invoice_tax_data.account_head
item_wise_tax_detail = invoice_tax_data.item_wise_tax_detail
converted = ast.literal_eval(item_wise_tax_detail)
if item_code in converted:
details = converted[item_code]
if "SGST" in account_head or "CGST" in account_head:
if "SGST" in account_head:
sales_tax_rate = sales_tax_rate + details[0]
state_tax_amount = state_tax_amount * details[0]/100
elif "CGST" in account_head:
sales_tax_rate = sales_tax_rate + details[0]
central_tax_amount = central_tax_amount * details[0]/100
elif "IGST" in account_head:
sales_tax_rate = details[0]
integrated_tax_amount = net_amount * details[0]/100
if gst_hsn_code in invoice_map:
item_entry = invoice_map[gst_hsn_code]
qty_temp = item_entry["net_amount"]
qty_count = item_entry["qty"]
item_entry["net_amount"] = (qty_temp) + (net_amount)
item_entry["qty"] = (qty_count) + (qty)
else:
invoice_map[gst_hsn_code] = frappe._dict({
"tax_rate": sales_tax_rate,
"net_amount": net_amount,
"gst_hsn_code": gst_hsn_code,
"state_tax_amount":state_tax_amount,
"central_tax_amount":central_tax_amount,
"integrated_tax_amount":integrated_tax_amount,
"uom":uom,
"qty":qty,
"item_code":item_code
})
return invoice_map
| 40.691524
| 199
| 0.697893
| 12,015
| 87,853
| 4.698127
| 0.025884
| 0.03288
| 0.031498
| 0.01621
| 0.875461
| 0.835193
| 0.807115
| 0.791578
| 0.772321
| 0.765288
| 0
| 0.014992
| 0.199743
| 87,853
| 2,158
| 200
| 40.71038
| 0.78791
| 0.001298
| 0
| 0.751916
| 0
| 0.009579
| 0.16267
| 0.035459
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0.006705
| null | null | 0.002395
| 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
|
57bc2f4fd8d9476b029e6e9217aa982dc56ffbda
| 47,956
|
py
|
Python
|
sdk/python/pulumi_newrelic/alert_condition.py
|
bob-bins/pulumi-newrelic
|
f8a121fb7d6e6ad979d3ccf72467b9e89769e305
|
[
"ECL-2.0",
"Apache-2.0"
] | 6
|
2019-09-17T20:41:26.000Z
|
2022-01-13T23:54:14.000Z
|
sdk/python/pulumi_newrelic/alert_condition.py
|
bob-bins/pulumi-newrelic
|
f8a121fb7d6e6ad979d3ccf72467b9e89769e305
|
[
"ECL-2.0",
"Apache-2.0"
] | 136
|
2019-04-29T21:34:57.000Z
|
2022-03-30T17:07:03.000Z
|
sdk/python/pulumi_newrelic/alert_condition.py
|
bob-bins/pulumi-newrelic
|
f8a121fb7d6e6ad979d3ccf72467b9e89769e305
|
[
"ECL-2.0",
"Apache-2.0"
] | 3
|
2019-10-05T10:33:59.000Z
|
2021-06-15T16:37:49.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
from . import outputs
from ._inputs import *
__all__ = ['AlertConditionArgs', 'AlertCondition']
@pulumi.input_type
class AlertConditionArgs:
def __init__(__self__, *,
entities: pulumi.Input[Sequence[pulumi.Input[int]]],
metric: pulumi.Input[str],
policy_id: pulumi.Input[int],
terms: pulumi.Input[Sequence[pulumi.Input['AlertConditionTermArgs']]],
type: pulumi.Input[str],
condition_scope: Optional[pulumi.Input[str]] = None,
enabled: Optional[pulumi.Input[bool]] = None,
gc_metric: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
runbook_url: Optional[pulumi.Input[str]] = None,
user_defined_metric: Optional[pulumi.Input[str]] = None,
user_defined_value_function: Optional[pulumi.Input[str]] = None,
violation_close_timer: Optional[pulumi.Input[int]] = None):
"""
The set of arguments for constructing a AlertCondition resource.
:param pulumi.Input[Sequence[pulumi.Input[int]]] entities: The instance IDs associated with this condition.
:param pulumi.Input[str] metric: The metric field accepts parameters based on the `type` set. One of these metrics based on `type`:
* `apm_app_metric`
* `apdex`
* `error_percentage`
* `response_time_background`
* `response_time_web`
* `throughput_background`
* `throughput_web`
* `user_defined`
* `apm_jvm_metric`
* `cpu_utilization_time`
* `deadlocked_threads`
* `gc_cpu_time`
* `heap_memory_usage`
* `apm_kt_metric`
* `apdex`
* `error_count`
* `error_percentage`
* `response_time`
* `throughput`
* `browser_metric`
* `ajax_response_time`
* `ajax_throughput`
* `dom_processing`
* `end_user_apdex`
* `network`
* `page_rendering`
* `page_view_throughput`
* `page_views_with_js_errors`
* `request_queuing`
* `total_page_load`
* `user_defined`
* `web_application`
* `mobile_metric`
* `database`
* `images`
* `json`
* `mobile_crash_rate`
* `network_error_percentage`
* `network`
* `status_error_percentage`
* `user_defined`
* `view_loading`
:param pulumi.Input[int] policy_id: The ID of the policy where this condition should be used.
:param pulumi.Input[Sequence[pulumi.Input['AlertConditionTermArgs']]] terms: A list of terms for this condition. See Terms below for details.
:param pulumi.Input[str] type: The type of condition. One of: `apm_app_metric`, `apm_jvm_metric`, `apm_kt_metric`, `browser_metric`, `mobile_metric`
:param pulumi.Input[str] condition_scope: `application` or `instance`. Choose `application` for most scenarios. If you are using the JVM plugin in New Relic, the `instance` setting allows your condition to trigger [for specific app instances](https://docs.newrelic.com/docs/alerts/new-relic-alerts/defining-conditions/scope-alert-thresholds-specific-instances).
:param pulumi.Input[bool] enabled: Whether the condition is enabled or not. Defaults to true.
:param pulumi.Input[str] gc_metric: A valid Garbage Collection metric e.g. `GC/G1 Young Generation`.
:param pulumi.Input[str] name: The title of the condition. Must be between 1 and 64 characters, inclusive.
:param pulumi.Input[str] runbook_url: Runbook URL to display in notifications.
:param pulumi.Input[str] user_defined_metric: A custom metric to be evaluated.
:param pulumi.Input[str] user_defined_value_function: One of: `average`, `min`, `max`, `total`, or `sample_size`.
:param pulumi.Input[int] violation_close_timer: Automatically close instance-based violations, including JVM health metric violations, after the number of hours specified. Must be: `1`, `2`, `4`, `8`, `12` or `24`.
"""
pulumi.set(__self__, "entities", entities)
pulumi.set(__self__, "metric", metric)
pulumi.set(__self__, "policy_id", policy_id)
pulumi.set(__self__, "terms", terms)
pulumi.set(__self__, "type", type)
if condition_scope is not None:
pulumi.set(__self__, "condition_scope", condition_scope)
if enabled is not None:
pulumi.set(__self__, "enabled", enabled)
if gc_metric is not None:
pulumi.set(__self__, "gc_metric", gc_metric)
if name is not None:
pulumi.set(__self__, "name", name)
if runbook_url is not None:
pulumi.set(__self__, "runbook_url", runbook_url)
if user_defined_metric is not None:
pulumi.set(__self__, "user_defined_metric", user_defined_metric)
if user_defined_value_function is not None:
pulumi.set(__self__, "user_defined_value_function", user_defined_value_function)
if violation_close_timer is not None:
pulumi.set(__self__, "violation_close_timer", violation_close_timer)
@property
@pulumi.getter
def entities(self) -> pulumi.Input[Sequence[pulumi.Input[int]]]:
"""
The instance IDs associated with this condition.
"""
return pulumi.get(self, "entities")
@entities.setter
def entities(self, value: pulumi.Input[Sequence[pulumi.Input[int]]]):
pulumi.set(self, "entities", value)
@property
@pulumi.getter
def metric(self) -> pulumi.Input[str]:
"""
The metric field accepts parameters based on the `type` set. One of these metrics based on `type`:
* `apm_app_metric`
* `apdex`
* `error_percentage`
* `response_time_background`
* `response_time_web`
* `throughput_background`
* `throughput_web`
* `user_defined`
* `apm_jvm_metric`
* `cpu_utilization_time`
* `deadlocked_threads`
* `gc_cpu_time`
* `heap_memory_usage`
* `apm_kt_metric`
* `apdex`
* `error_count`
* `error_percentage`
* `response_time`
* `throughput`
* `browser_metric`
* `ajax_response_time`
* `ajax_throughput`
* `dom_processing`
* `end_user_apdex`
* `network`
* `page_rendering`
* `page_view_throughput`
* `page_views_with_js_errors`
* `request_queuing`
* `total_page_load`
* `user_defined`
* `web_application`
* `mobile_metric`
* `database`
* `images`
* `json`
* `mobile_crash_rate`
* `network_error_percentage`
* `network`
* `status_error_percentage`
* `user_defined`
* `view_loading`
"""
return pulumi.get(self, "metric")
@metric.setter
def metric(self, value: pulumi.Input[str]):
pulumi.set(self, "metric", value)
@property
@pulumi.getter(name="policyId")
def policy_id(self) -> pulumi.Input[int]:
"""
The ID of the policy where this condition should be used.
"""
return pulumi.get(self, "policy_id")
@policy_id.setter
def policy_id(self, value: pulumi.Input[int]):
pulumi.set(self, "policy_id", value)
@property
@pulumi.getter
def terms(self) -> pulumi.Input[Sequence[pulumi.Input['AlertConditionTermArgs']]]:
"""
A list of terms for this condition. See Terms below for details.
"""
return pulumi.get(self, "terms")
@terms.setter
def terms(self, value: pulumi.Input[Sequence[pulumi.Input['AlertConditionTermArgs']]]):
pulumi.set(self, "terms", value)
@property
@pulumi.getter
def type(self) -> pulumi.Input[str]:
"""
The type of condition. One of: `apm_app_metric`, `apm_jvm_metric`, `apm_kt_metric`, `browser_metric`, `mobile_metric`
"""
return pulumi.get(self, "type")
@type.setter
def type(self, value: pulumi.Input[str]):
pulumi.set(self, "type", value)
@property
@pulumi.getter(name="conditionScope")
def condition_scope(self) -> Optional[pulumi.Input[str]]:
"""
`application` or `instance`. Choose `application` for most scenarios. If you are using the JVM plugin in New Relic, the `instance` setting allows your condition to trigger [for specific app instances](https://docs.newrelic.com/docs/alerts/new-relic-alerts/defining-conditions/scope-alert-thresholds-specific-instances).
"""
return pulumi.get(self, "condition_scope")
@condition_scope.setter
def condition_scope(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "condition_scope", value)
@property
@pulumi.getter
def enabled(self) -> Optional[pulumi.Input[bool]]:
"""
Whether the condition is enabled or not. Defaults to true.
"""
return pulumi.get(self, "enabled")
@enabled.setter
def enabled(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "enabled", value)
@property
@pulumi.getter(name="gcMetric")
def gc_metric(self) -> Optional[pulumi.Input[str]]:
"""
A valid Garbage Collection metric e.g. `GC/G1 Young Generation`.
"""
return pulumi.get(self, "gc_metric")
@gc_metric.setter
def gc_metric(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "gc_metric", value)
@property
@pulumi.getter
def name(self) -> Optional[pulumi.Input[str]]:
"""
The title of the condition. Must be between 1 and 64 characters, inclusive.
"""
return pulumi.get(self, "name")
@name.setter
def name(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "name", value)
@property
@pulumi.getter(name="runbookUrl")
def runbook_url(self) -> Optional[pulumi.Input[str]]:
"""
Runbook URL to display in notifications.
"""
return pulumi.get(self, "runbook_url")
@runbook_url.setter
def runbook_url(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "runbook_url", value)
@property
@pulumi.getter(name="userDefinedMetric")
def user_defined_metric(self) -> Optional[pulumi.Input[str]]:
"""
A custom metric to be evaluated.
"""
return pulumi.get(self, "user_defined_metric")
@user_defined_metric.setter
def user_defined_metric(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "user_defined_metric", value)
@property
@pulumi.getter(name="userDefinedValueFunction")
def user_defined_value_function(self) -> Optional[pulumi.Input[str]]:
"""
One of: `average`, `min`, `max`, `total`, or `sample_size`.
"""
return pulumi.get(self, "user_defined_value_function")
@user_defined_value_function.setter
def user_defined_value_function(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "user_defined_value_function", value)
@property
@pulumi.getter(name="violationCloseTimer")
def violation_close_timer(self) -> Optional[pulumi.Input[int]]:
"""
Automatically close instance-based violations, including JVM health metric violations, after the number of hours specified. Must be: `1`, `2`, `4`, `8`, `12` or `24`.
"""
return pulumi.get(self, "violation_close_timer")
@violation_close_timer.setter
def violation_close_timer(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "violation_close_timer", value)
@pulumi.input_type
class _AlertConditionState:
def __init__(__self__, *,
condition_scope: Optional[pulumi.Input[str]] = None,
enabled: Optional[pulumi.Input[bool]] = None,
entities: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]] = None,
gc_metric: Optional[pulumi.Input[str]] = None,
metric: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
policy_id: Optional[pulumi.Input[int]] = None,
runbook_url: Optional[pulumi.Input[str]] = None,
terms: Optional[pulumi.Input[Sequence[pulumi.Input['AlertConditionTermArgs']]]] = None,
type: Optional[pulumi.Input[str]] = None,
user_defined_metric: Optional[pulumi.Input[str]] = None,
user_defined_value_function: Optional[pulumi.Input[str]] = None,
violation_close_timer: Optional[pulumi.Input[int]] = None):
"""
Input properties used for looking up and filtering AlertCondition resources.
:param pulumi.Input[str] condition_scope: `application` or `instance`. Choose `application` for most scenarios. If you are using the JVM plugin in New Relic, the `instance` setting allows your condition to trigger [for specific app instances](https://docs.newrelic.com/docs/alerts/new-relic-alerts/defining-conditions/scope-alert-thresholds-specific-instances).
:param pulumi.Input[bool] enabled: Whether the condition is enabled or not. Defaults to true.
:param pulumi.Input[Sequence[pulumi.Input[int]]] entities: The instance IDs associated with this condition.
:param pulumi.Input[str] gc_metric: A valid Garbage Collection metric e.g. `GC/G1 Young Generation`.
:param pulumi.Input[str] metric: The metric field accepts parameters based on the `type` set. One of these metrics based on `type`:
* `apm_app_metric`
* `apdex`
* `error_percentage`
* `response_time_background`
* `response_time_web`
* `throughput_background`
* `throughput_web`
* `user_defined`
* `apm_jvm_metric`
* `cpu_utilization_time`
* `deadlocked_threads`
* `gc_cpu_time`
* `heap_memory_usage`
* `apm_kt_metric`
* `apdex`
* `error_count`
* `error_percentage`
* `response_time`
* `throughput`
* `browser_metric`
* `ajax_response_time`
* `ajax_throughput`
* `dom_processing`
* `end_user_apdex`
* `network`
* `page_rendering`
* `page_view_throughput`
* `page_views_with_js_errors`
* `request_queuing`
* `total_page_load`
* `user_defined`
* `web_application`
* `mobile_metric`
* `database`
* `images`
* `json`
* `mobile_crash_rate`
* `network_error_percentage`
* `network`
* `status_error_percentage`
* `user_defined`
* `view_loading`
:param pulumi.Input[str] name: The title of the condition. Must be between 1 and 64 characters, inclusive.
:param pulumi.Input[int] policy_id: The ID of the policy where this condition should be used.
:param pulumi.Input[str] runbook_url: Runbook URL to display in notifications.
:param pulumi.Input[Sequence[pulumi.Input['AlertConditionTermArgs']]] terms: A list of terms for this condition. See Terms below for details.
:param pulumi.Input[str] type: The type of condition. One of: `apm_app_metric`, `apm_jvm_metric`, `apm_kt_metric`, `browser_metric`, `mobile_metric`
:param pulumi.Input[str] user_defined_metric: A custom metric to be evaluated.
:param pulumi.Input[str] user_defined_value_function: One of: `average`, `min`, `max`, `total`, or `sample_size`.
:param pulumi.Input[int] violation_close_timer: Automatically close instance-based violations, including JVM health metric violations, after the number of hours specified. Must be: `1`, `2`, `4`, `8`, `12` or `24`.
"""
if condition_scope is not None:
pulumi.set(__self__, "condition_scope", condition_scope)
if enabled is not None:
pulumi.set(__self__, "enabled", enabled)
if entities is not None:
pulumi.set(__self__, "entities", entities)
if gc_metric is not None:
pulumi.set(__self__, "gc_metric", gc_metric)
if metric is not None:
pulumi.set(__self__, "metric", metric)
if name is not None:
pulumi.set(__self__, "name", name)
if policy_id is not None:
pulumi.set(__self__, "policy_id", policy_id)
if runbook_url is not None:
pulumi.set(__self__, "runbook_url", runbook_url)
if terms is not None:
pulumi.set(__self__, "terms", terms)
if type is not None:
pulumi.set(__self__, "type", type)
if user_defined_metric is not None:
pulumi.set(__self__, "user_defined_metric", user_defined_metric)
if user_defined_value_function is not None:
pulumi.set(__self__, "user_defined_value_function", user_defined_value_function)
if violation_close_timer is not None:
pulumi.set(__self__, "violation_close_timer", violation_close_timer)
@property
@pulumi.getter(name="conditionScope")
def condition_scope(self) -> Optional[pulumi.Input[str]]:
"""
`application` or `instance`. Choose `application` for most scenarios. If you are using the JVM plugin in New Relic, the `instance` setting allows your condition to trigger [for specific app instances](https://docs.newrelic.com/docs/alerts/new-relic-alerts/defining-conditions/scope-alert-thresholds-specific-instances).
"""
return pulumi.get(self, "condition_scope")
@condition_scope.setter
def condition_scope(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "condition_scope", value)
@property
@pulumi.getter
def enabled(self) -> Optional[pulumi.Input[bool]]:
"""
Whether the condition is enabled or not. Defaults to true.
"""
return pulumi.get(self, "enabled")
@enabled.setter
def enabled(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "enabled", value)
@property
@pulumi.getter
def entities(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[int]]]]:
"""
The instance IDs associated with this condition.
"""
return pulumi.get(self, "entities")
@entities.setter
def entities(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]]):
pulumi.set(self, "entities", value)
@property
@pulumi.getter(name="gcMetric")
def gc_metric(self) -> Optional[pulumi.Input[str]]:
"""
A valid Garbage Collection metric e.g. `GC/G1 Young Generation`.
"""
return pulumi.get(self, "gc_metric")
@gc_metric.setter
def gc_metric(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "gc_metric", value)
@property
@pulumi.getter
def metric(self) -> Optional[pulumi.Input[str]]:
"""
The metric field accepts parameters based on the `type` set. One of these metrics based on `type`:
* `apm_app_metric`
* `apdex`
* `error_percentage`
* `response_time_background`
* `response_time_web`
* `throughput_background`
* `throughput_web`
* `user_defined`
* `apm_jvm_metric`
* `cpu_utilization_time`
* `deadlocked_threads`
* `gc_cpu_time`
* `heap_memory_usage`
* `apm_kt_metric`
* `apdex`
* `error_count`
* `error_percentage`
* `response_time`
* `throughput`
* `browser_metric`
* `ajax_response_time`
* `ajax_throughput`
* `dom_processing`
* `end_user_apdex`
* `network`
* `page_rendering`
* `page_view_throughput`
* `page_views_with_js_errors`
* `request_queuing`
* `total_page_load`
* `user_defined`
* `web_application`
* `mobile_metric`
* `database`
* `images`
* `json`
* `mobile_crash_rate`
* `network_error_percentage`
* `network`
* `status_error_percentage`
* `user_defined`
* `view_loading`
"""
return pulumi.get(self, "metric")
@metric.setter
def metric(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "metric", value)
@property
@pulumi.getter
def name(self) -> Optional[pulumi.Input[str]]:
"""
The title of the condition. Must be between 1 and 64 characters, inclusive.
"""
return pulumi.get(self, "name")
@name.setter
def name(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "name", value)
@property
@pulumi.getter(name="policyId")
def policy_id(self) -> Optional[pulumi.Input[int]]:
"""
The ID of the policy where this condition should be used.
"""
return pulumi.get(self, "policy_id")
@policy_id.setter
def policy_id(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "policy_id", value)
@property
@pulumi.getter(name="runbookUrl")
def runbook_url(self) -> Optional[pulumi.Input[str]]:
"""
Runbook URL to display in notifications.
"""
return pulumi.get(self, "runbook_url")
@runbook_url.setter
def runbook_url(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "runbook_url", value)
@property
@pulumi.getter
def terms(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['AlertConditionTermArgs']]]]:
"""
A list of terms for this condition. See Terms below for details.
"""
return pulumi.get(self, "terms")
@terms.setter
def terms(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['AlertConditionTermArgs']]]]):
pulumi.set(self, "terms", value)
@property
@pulumi.getter
def type(self) -> Optional[pulumi.Input[str]]:
"""
The type of condition. One of: `apm_app_metric`, `apm_jvm_metric`, `apm_kt_metric`, `browser_metric`, `mobile_metric`
"""
return pulumi.get(self, "type")
@type.setter
def type(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "type", value)
@property
@pulumi.getter(name="userDefinedMetric")
def user_defined_metric(self) -> Optional[pulumi.Input[str]]:
"""
A custom metric to be evaluated.
"""
return pulumi.get(self, "user_defined_metric")
@user_defined_metric.setter
def user_defined_metric(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "user_defined_metric", value)
@property
@pulumi.getter(name="userDefinedValueFunction")
def user_defined_value_function(self) -> Optional[pulumi.Input[str]]:
"""
One of: `average`, `min`, `max`, `total`, or `sample_size`.
"""
return pulumi.get(self, "user_defined_value_function")
@user_defined_value_function.setter
def user_defined_value_function(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "user_defined_value_function", value)
@property
@pulumi.getter(name="violationCloseTimer")
def violation_close_timer(self) -> Optional[pulumi.Input[int]]:
"""
Automatically close instance-based violations, including JVM health metric violations, after the number of hours specified. Must be: `1`, `2`, `4`, `8`, `12` or `24`.
"""
return pulumi.get(self, "violation_close_timer")
@violation_close_timer.setter
def violation_close_timer(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "violation_close_timer", value)
class AlertCondition(pulumi.CustomResource):
@overload
def __init__(__self__,
resource_name: str,
opts: Optional[pulumi.ResourceOptions] = None,
condition_scope: Optional[pulumi.Input[str]] = None,
enabled: Optional[pulumi.Input[bool]] = None,
entities: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]] = None,
gc_metric: Optional[pulumi.Input[str]] = None,
metric: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
policy_id: Optional[pulumi.Input[int]] = None,
runbook_url: Optional[pulumi.Input[str]] = None,
terms: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['AlertConditionTermArgs']]]]] = None,
type: Optional[pulumi.Input[str]] = None,
user_defined_metric: Optional[pulumi.Input[str]] = None,
user_defined_value_function: Optional[pulumi.Input[str]] = None,
violation_close_timer: Optional[pulumi.Input[int]] = None,
__props__=None):
"""
Use this resource to create and manage alert conditions for APM, Browser, and Mobile in New Relic.
> **NOTE:** The NrqlAlertCondition resource is preferred for configuring alerts conditions. In most cases feature parity can be achieved with a NRQL query. Other condition types may be deprecated in the future and receive fewer product updates.
## Example Usage
```python
import pulumi
import pulumi_newrelic as newrelic
app = newrelic.get_entity(name="my-app",
type="APPLICATION",
domain="APM")
foo_alert_policy = newrelic.AlertPolicy("fooAlertPolicy")
foo_alert_condition = newrelic.AlertCondition("fooAlertCondition",
policy_id=foo_alert_policy.id,
type="apm_app_metric",
entities=[app.application_id],
metric="apdex",
runbook_url="https://www.example.com",
condition_scope="application",
terms=[newrelic.AlertConditionTermArgs(
duration=5,
operator="below",
priority="critical",
threshold=0.75,
time_function="all",
)])
```
## Terms
The `term` mapping supports the following arguments:
* `duration` - (Required) In minutes, must be in the range of `5` to `120`, inclusive.
* `operator` - (Optional) `above`, `below`, or `equal`. Defaults to `equal`.
* `priority` - (Optional) `critical` or `warning`. Defaults to `critical`. Terms must include at least one `critical` priority term
* `threshold` - (Required) Must be 0 or greater.
* `time_function` - (Required) `all` or `any`.
## Import
Alert conditions can be imported using notation `alert_policy_id:alert_condition_id`, e.g.
```sh
$ pulumi import newrelic:index/alertCondition:AlertCondition main 123456:6789012345
```
:param str resource_name: The name of the resource.
:param pulumi.ResourceOptions opts: Options for the resource.
:param pulumi.Input[str] condition_scope: `application` or `instance`. Choose `application` for most scenarios. If you are using the JVM plugin in New Relic, the `instance` setting allows your condition to trigger [for specific app instances](https://docs.newrelic.com/docs/alerts/new-relic-alerts/defining-conditions/scope-alert-thresholds-specific-instances).
:param pulumi.Input[bool] enabled: Whether the condition is enabled or not. Defaults to true.
:param pulumi.Input[Sequence[pulumi.Input[int]]] entities: The instance IDs associated with this condition.
:param pulumi.Input[str] gc_metric: A valid Garbage Collection metric e.g. `GC/G1 Young Generation`.
:param pulumi.Input[str] metric: The metric field accepts parameters based on the `type` set. One of these metrics based on `type`:
* `apm_app_metric`
* `apdex`
* `error_percentage`
* `response_time_background`
* `response_time_web`
* `throughput_background`
* `throughput_web`
* `user_defined`
* `apm_jvm_metric`
* `cpu_utilization_time`
* `deadlocked_threads`
* `gc_cpu_time`
* `heap_memory_usage`
* `apm_kt_metric`
* `apdex`
* `error_count`
* `error_percentage`
* `response_time`
* `throughput`
* `browser_metric`
* `ajax_response_time`
* `ajax_throughput`
* `dom_processing`
* `end_user_apdex`
* `network`
* `page_rendering`
* `page_view_throughput`
* `page_views_with_js_errors`
* `request_queuing`
* `total_page_load`
* `user_defined`
* `web_application`
* `mobile_metric`
* `database`
* `images`
* `json`
* `mobile_crash_rate`
* `network_error_percentage`
* `network`
* `status_error_percentage`
* `user_defined`
* `view_loading`
:param pulumi.Input[str] name: The title of the condition. Must be between 1 and 64 characters, inclusive.
:param pulumi.Input[int] policy_id: The ID of the policy where this condition should be used.
:param pulumi.Input[str] runbook_url: Runbook URL to display in notifications.
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['AlertConditionTermArgs']]]] terms: A list of terms for this condition. See Terms below for details.
:param pulumi.Input[str] type: The type of condition. One of: `apm_app_metric`, `apm_jvm_metric`, `apm_kt_metric`, `browser_metric`, `mobile_metric`
:param pulumi.Input[str] user_defined_metric: A custom metric to be evaluated.
:param pulumi.Input[str] user_defined_value_function: One of: `average`, `min`, `max`, `total`, or `sample_size`.
:param pulumi.Input[int] violation_close_timer: Automatically close instance-based violations, including JVM health metric violations, after the number of hours specified. Must be: `1`, `2`, `4`, `8`, `12` or `24`.
"""
...
@overload
def __init__(__self__,
resource_name: str,
args: AlertConditionArgs,
opts: Optional[pulumi.ResourceOptions] = None):
"""
Use this resource to create and manage alert conditions for APM, Browser, and Mobile in New Relic.
> **NOTE:** The NrqlAlertCondition resource is preferred for configuring alerts conditions. In most cases feature parity can be achieved with a NRQL query. Other condition types may be deprecated in the future and receive fewer product updates.
## Example Usage
```python
import pulumi
import pulumi_newrelic as newrelic
app = newrelic.get_entity(name="my-app",
type="APPLICATION",
domain="APM")
foo_alert_policy = newrelic.AlertPolicy("fooAlertPolicy")
foo_alert_condition = newrelic.AlertCondition("fooAlertCondition",
policy_id=foo_alert_policy.id,
type="apm_app_metric",
entities=[app.application_id],
metric="apdex",
runbook_url="https://www.example.com",
condition_scope="application",
terms=[newrelic.AlertConditionTermArgs(
duration=5,
operator="below",
priority="critical",
threshold=0.75,
time_function="all",
)])
```
## Terms
The `term` mapping supports the following arguments:
* `duration` - (Required) In minutes, must be in the range of `5` to `120`, inclusive.
* `operator` - (Optional) `above`, `below`, or `equal`. Defaults to `equal`.
* `priority` - (Optional) `critical` or `warning`. Defaults to `critical`. Terms must include at least one `critical` priority term
* `threshold` - (Required) Must be 0 or greater.
* `time_function` - (Required) `all` or `any`.
## Import
Alert conditions can be imported using notation `alert_policy_id:alert_condition_id`, e.g.
```sh
$ pulumi import newrelic:index/alertCondition:AlertCondition main 123456:6789012345
```
:param str resource_name: The name of the resource.
:param AlertConditionArgs 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(AlertConditionArgs, 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,
condition_scope: Optional[pulumi.Input[str]] = None,
enabled: Optional[pulumi.Input[bool]] = None,
entities: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]] = None,
gc_metric: Optional[pulumi.Input[str]] = None,
metric: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
policy_id: Optional[pulumi.Input[int]] = None,
runbook_url: Optional[pulumi.Input[str]] = None,
terms: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['AlertConditionTermArgs']]]]] = None,
type: Optional[pulumi.Input[str]] = None,
user_defined_metric: Optional[pulumi.Input[str]] = None,
user_defined_value_function: Optional[pulumi.Input[str]] = None,
violation_close_timer: Optional[pulumi.Input[int]] = 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__ = AlertConditionArgs.__new__(AlertConditionArgs)
__props__.__dict__["condition_scope"] = condition_scope
__props__.__dict__["enabled"] = enabled
if entities is None and not opts.urn:
raise TypeError("Missing required property 'entities'")
__props__.__dict__["entities"] = entities
__props__.__dict__["gc_metric"] = gc_metric
if metric is None and not opts.urn:
raise TypeError("Missing required property 'metric'")
__props__.__dict__["metric"] = metric
__props__.__dict__["name"] = name
if policy_id is None and not opts.urn:
raise TypeError("Missing required property 'policy_id'")
__props__.__dict__["policy_id"] = policy_id
__props__.__dict__["runbook_url"] = runbook_url
if terms is None and not opts.urn:
raise TypeError("Missing required property 'terms'")
__props__.__dict__["terms"] = terms
if type is None and not opts.urn:
raise TypeError("Missing required property 'type'")
__props__.__dict__["type"] = type
__props__.__dict__["user_defined_metric"] = user_defined_metric
__props__.__dict__["user_defined_value_function"] = user_defined_value_function
__props__.__dict__["violation_close_timer"] = violation_close_timer
super(AlertCondition, __self__).__init__(
'newrelic:index/alertCondition:AlertCondition',
resource_name,
__props__,
opts)
@staticmethod
def get(resource_name: str,
id: pulumi.Input[str],
opts: Optional[pulumi.ResourceOptions] = None,
condition_scope: Optional[pulumi.Input[str]] = None,
enabled: Optional[pulumi.Input[bool]] = None,
entities: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]] = None,
gc_metric: Optional[pulumi.Input[str]] = None,
metric: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
policy_id: Optional[pulumi.Input[int]] = None,
runbook_url: Optional[pulumi.Input[str]] = None,
terms: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['AlertConditionTermArgs']]]]] = None,
type: Optional[pulumi.Input[str]] = None,
user_defined_metric: Optional[pulumi.Input[str]] = None,
user_defined_value_function: Optional[pulumi.Input[str]] = None,
violation_close_timer: Optional[pulumi.Input[int]] = None) -> 'AlertCondition':
"""
Get an existing AlertCondition 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] condition_scope: `application` or `instance`. Choose `application` for most scenarios. If you are using the JVM plugin in New Relic, the `instance` setting allows your condition to trigger [for specific app instances](https://docs.newrelic.com/docs/alerts/new-relic-alerts/defining-conditions/scope-alert-thresholds-specific-instances).
:param pulumi.Input[bool] enabled: Whether the condition is enabled or not. Defaults to true.
:param pulumi.Input[Sequence[pulumi.Input[int]]] entities: The instance IDs associated with this condition.
:param pulumi.Input[str] gc_metric: A valid Garbage Collection metric e.g. `GC/G1 Young Generation`.
:param pulumi.Input[str] metric: The metric field accepts parameters based on the `type` set. One of these metrics based on `type`:
* `apm_app_metric`
* `apdex`
* `error_percentage`
* `response_time_background`
* `response_time_web`
* `throughput_background`
* `throughput_web`
* `user_defined`
* `apm_jvm_metric`
* `cpu_utilization_time`
* `deadlocked_threads`
* `gc_cpu_time`
* `heap_memory_usage`
* `apm_kt_metric`
* `apdex`
* `error_count`
* `error_percentage`
* `response_time`
* `throughput`
* `browser_metric`
* `ajax_response_time`
* `ajax_throughput`
* `dom_processing`
* `end_user_apdex`
* `network`
* `page_rendering`
* `page_view_throughput`
* `page_views_with_js_errors`
* `request_queuing`
* `total_page_load`
* `user_defined`
* `web_application`
* `mobile_metric`
* `database`
* `images`
* `json`
* `mobile_crash_rate`
* `network_error_percentage`
* `network`
* `status_error_percentage`
* `user_defined`
* `view_loading`
:param pulumi.Input[str] name: The title of the condition. Must be between 1 and 64 characters, inclusive.
:param pulumi.Input[int] policy_id: The ID of the policy where this condition should be used.
:param pulumi.Input[str] runbook_url: Runbook URL to display in notifications.
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['AlertConditionTermArgs']]]] terms: A list of terms for this condition. See Terms below for details.
:param pulumi.Input[str] type: The type of condition. One of: `apm_app_metric`, `apm_jvm_metric`, `apm_kt_metric`, `browser_metric`, `mobile_metric`
:param pulumi.Input[str] user_defined_metric: A custom metric to be evaluated.
:param pulumi.Input[str] user_defined_value_function: One of: `average`, `min`, `max`, `total`, or `sample_size`.
:param pulumi.Input[int] violation_close_timer: Automatically close instance-based violations, including JVM health metric violations, after the number of hours specified. Must be: `1`, `2`, `4`, `8`, `12` or `24`.
"""
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
__props__ = _AlertConditionState.__new__(_AlertConditionState)
__props__.__dict__["condition_scope"] = condition_scope
__props__.__dict__["enabled"] = enabled
__props__.__dict__["entities"] = entities
__props__.__dict__["gc_metric"] = gc_metric
__props__.__dict__["metric"] = metric
__props__.__dict__["name"] = name
__props__.__dict__["policy_id"] = policy_id
__props__.__dict__["runbook_url"] = runbook_url
__props__.__dict__["terms"] = terms
__props__.__dict__["type"] = type
__props__.__dict__["user_defined_metric"] = user_defined_metric
__props__.__dict__["user_defined_value_function"] = user_defined_value_function
__props__.__dict__["violation_close_timer"] = violation_close_timer
return AlertCondition(resource_name, opts=opts, __props__=__props__)
@property
@pulumi.getter(name="conditionScope")
def condition_scope(self) -> pulumi.Output[Optional[str]]:
"""
`application` or `instance`. Choose `application` for most scenarios. If you are using the JVM plugin in New Relic, the `instance` setting allows your condition to trigger [for specific app instances](https://docs.newrelic.com/docs/alerts/new-relic-alerts/defining-conditions/scope-alert-thresholds-specific-instances).
"""
return pulumi.get(self, "condition_scope")
@property
@pulumi.getter
def enabled(self) -> pulumi.Output[Optional[bool]]:
"""
Whether the condition is enabled or not. Defaults to true.
"""
return pulumi.get(self, "enabled")
@property
@pulumi.getter
def entities(self) -> pulumi.Output[Sequence[int]]:
"""
The instance IDs associated with this condition.
"""
return pulumi.get(self, "entities")
@property
@pulumi.getter(name="gcMetric")
def gc_metric(self) -> pulumi.Output[Optional[str]]:
"""
A valid Garbage Collection metric e.g. `GC/G1 Young Generation`.
"""
return pulumi.get(self, "gc_metric")
@property
@pulumi.getter
def metric(self) -> pulumi.Output[str]:
"""
The metric field accepts parameters based on the `type` set. One of these metrics based on `type`:
* `apm_app_metric`
* `apdex`
* `error_percentage`
* `response_time_background`
* `response_time_web`
* `throughput_background`
* `throughput_web`
* `user_defined`
* `apm_jvm_metric`
* `cpu_utilization_time`
* `deadlocked_threads`
* `gc_cpu_time`
* `heap_memory_usage`
* `apm_kt_metric`
* `apdex`
* `error_count`
* `error_percentage`
* `response_time`
* `throughput`
* `browser_metric`
* `ajax_response_time`
* `ajax_throughput`
* `dom_processing`
* `end_user_apdex`
* `network`
* `page_rendering`
* `page_view_throughput`
* `page_views_with_js_errors`
* `request_queuing`
* `total_page_load`
* `user_defined`
* `web_application`
* `mobile_metric`
* `database`
* `images`
* `json`
* `mobile_crash_rate`
* `network_error_percentage`
* `network`
* `status_error_percentage`
* `user_defined`
* `view_loading`
"""
return pulumi.get(self, "metric")
@property
@pulumi.getter
def name(self) -> pulumi.Output[str]:
"""
The title of the condition. Must be between 1 and 64 characters, inclusive.
"""
return pulumi.get(self, "name")
@property
@pulumi.getter(name="policyId")
def policy_id(self) -> pulumi.Output[int]:
"""
The ID of the policy where this condition should be used.
"""
return pulumi.get(self, "policy_id")
@property
@pulumi.getter(name="runbookUrl")
def runbook_url(self) -> pulumi.Output[Optional[str]]:
"""
Runbook URL to display in notifications.
"""
return pulumi.get(self, "runbook_url")
@property
@pulumi.getter
def terms(self) -> pulumi.Output[Sequence['outputs.AlertConditionTerm']]:
"""
A list of terms for this condition. See Terms below for details.
"""
return pulumi.get(self, "terms")
@property
@pulumi.getter
def type(self) -> pulumi.Output[str]:
"""
The type of condition. One of: `apm_app_metric`, `apm_jvm_metric`, `apm_kt_metric`, `browser_metric`, `mobile_metric`
"""
return pulumi.get(self, "type")
@property
@pulumi.getter(name="userDefinedMetric")
def user_defined_metric(self) -> pulumi.Output[Optional[str]]:
"""
A custom metric to be evaluated.
"""
return pulumi.get(self, "user_defined_metric")
@property
@pulumi.getter(name="userDefinedValueFunction")
def user_defined_value_function(self) -> pulumi.Output[Optional[str]]:
"""
One of: `average`, `min`, `max`, `total`, or `sample_size`.
"""
return pulumi.get(self, "user_defined_value_function")
@property
@pulumi.getter(name="violationCloseTimer")
def violation_close_timer(self) -> pulumi.Output[Optional[int]]:
"""
Automatically close instance-based violations, including JVM health metric violations, after the number of hours specified. Must be: `1`, `2`, `4`, `8`, `12` or `24`.
"""
return pulumi.get(self, "violation_close_timer")
| 43.477788
| 371
| 0.613604
| 5,311
| 47,956
| 5.302015
| 0.0627
| 0.077737
| 0.052701
| 0.051564
| 0.933414
| 0.919422
| 0.908875
| 0.892397
| 0.889591
| 0.880536
| 0
| 0.003897
| 0.277588
| 47,956
| 1,102
| 372
| 43.517241
| 0.808914
| 0.457419
| 0
| 0.782313
| 1
| 0
| 0.104132
| 0.035761
| 0
| 0
| 0
| 0
| 0
| 1
| 0.163265
| false
| 0.002268
| 0.015873
| 0
| 0.276644
| 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
|
aa340a95f4493cb9d90f6ef2d9841f0cec58d215
| 122
|
py
|
Python
|
src/handwriting_sample/reader/__init__.py
|
BDALab/handwriting-sample
|
a95913ade64b1854369db69ca77181cc33601225
|
[
"MIT"
] | 2
|
2021-11-23T10:40:37.000Z
|
2022-02-13T08:13:24.000Z
|
src/handwriting_sample/reader/__init__.py
|
BDALab/handwriting-sample
|
a95913ade64b1854369db69ca77181cc33601225
|
[
"MIT"
] | null | null | null |
src/handwriting_sample/reader/__init__.py
|
BDALab/handwriting-sample
|
a95913ade64b1854369db69ca77181cc33601225
|
[
"MIT"
] | null | null | null |
from handwriting_sample.reader.interface import HandwritingSampleReader
from handwriting_sample.reader.exceptions import *
| 61
| 71
| 0.901639
| 13
| 122
| 8.307692
| 0.615385
| 0.277778
| 0.388889
| 0.5
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.057377
| 122
| 2
| 72
| 61
| 0.93913
| 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
|
a4ade91d8c7b92743edbd31e66481d3bd5ac55b0
| 158
|
py
|
Python
|
make_colors/test.py
|
cumulus13/make_colors
|
772e77aeaaa329dc2b34085423046957449f9773
|
[
"BSD-3-Clause"
] | null | null | null |
make_colors/test.py
|
cumulus13/make_colors
|
772e77aeaaa329dc2b34085423046957449f9773
|
[
"BSD-3-Clause"
] | null | null | null |
make_colors/test.py
|
cumulus13/make_colors
|
772e77aeaaa329dc2b34085423046957449f9773
|
[
"BSD-3-Clause"
] | null | null | null |
from make_colors import make_colors
print make_colors("TEST", 'lw', 'lr') + " --> " + make_colors("TEST 2", 'lw', 'm')
print make_colors("TEST1", 'lw', 'bl')
| 39.5
| 82
| 0.632911
| 24
| 158
| 3.958333
| 0.5
| 0.526316
| 0.315789
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.014599
| 0.132911
| 158
| 4
| 83
| 39.5
| 0.678832
| 0
| 0
| 0
| 0
| 0
| 0.194969
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0.333333
| null | null | 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
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 1
|
0
| 7
|
a4d112c03d271b700cb473e1fdd8434c16121aec
| 205
|
py
|
Python
|
src/administration/admin.py
|
danpercic86/e-notary
|
ba15a9a80e2091593fb088feacfaf9574c816d6e
|
[
"Apache-2.0"
] | 6
|
2020-12-25T20:46:51.000Z
|
2022-01-27T20:52:13.000Z
|
src/administration/admin.py
|
danpercic86/e-notary
|
ba15a9a80e2091593fb088feacfaf9574c816d6e
|
[
"Apache-2.0"
] | 59
|
2021-03-01T03:49:56.000Z
|
2022-03-15T07:30:26.000Z
|
src/administration/admin.py
|
danpercic86/e-notary
|
ba15a9a80e2091593fb088feacfaf9574c816d6e
|
[
"Apache-2.0"
] | null | null | null |
from django.contrib.admin import register
from django.contrib.auth.admin import UserAdmin as BaseUserAdmin
from administration.models import User
@register(User)
class UserAdmin(BaseUserAdmin):
pass
| 22.777778
| 64
| 0.82439
| 26
| 205
| 6.5
| 0.576923
| 0.118343
| 0.201183
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.117073
| 205
| 8
| 65
| 25.625
| 0.933702
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.166667
| 0.5
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 1
| 0
|
0
| 7
|
a4d72e17ab6a90d02870bc1274fdecc02b4ec251
| 46,262
|
py
|
Python
|
tests/test_quotequail.py
|
sergio-hurtado-forcemanager/quotequail
|
40b8522df0c5de8868b62950e26b928380c04453
|
[
"MIT"
] | null | null | null |
tests/test_quotequail.py
|
sergio-hurtado-forcemanager/quotequail
|
40b8522df0c5de8868b62950e26b928380c04453
|
[
"MIT"
] | null | null | null |
tests/test_quotequail.py
|
sergio-hurtado-forcemanager/quotequail
|
40b8522df0c5de8868b62950e26b928380c04453
|
[
"MIT"
] | null | null | null |
# -*- coding: utf-8 -*-
import os
import unittest
from quotequail import *
class FileMixin(object):
def read_file(self, name):
with open(os.path.join(os.path.dirname(__file__), 'files', name), 'rb') as f:
return f.read().decode('utf8')
def assert_equal_to_file(self, string, name):
expected = self.read_file(name)
self.assertEqual(string, expected)
class QuoteTestCase(unittest.TestCase):
def test_quote_reply_1(self):
self.assertEqual(
quote(
"""Hello world.
On 2012-10-16 at 17:02 , Someone <someone@example.com> wrote:
> Some quoted text
"""),
[(True, 'Hello world.\n\nOn 2012-10-16 at 17:02 , Someone <someone@example.com> wrote:'),
(False, '\n> Some quoted text\n')]
)
def test_quote_reply_2(self):
self.assertEqual(
quote(
"""Hello world.
On 2012-10-16 at 17:02 , Someone <
someone@example.com> wrote:
> Some quoted text
"""),
[(True, 'Hello world.\n\nOn 2012-10-16 at 17:02 , Someone <\nsomeone@example.com> wrote:'),
(False, '\n> Some quoted text\n')]
)
def test_quote_reply_3(self):
self.assertEqual(
quote(
"""Hello world.
On 2012-10-16 at 17:02 , Someone <someone@example.com>
wrote:
> Some quoted text
"""),
[(True, 'Hello world.\n\nOn 2012-10-16 at 17:02 , Someone <someone@example.com>\nwrote:'),
(False, '\n> Some quoted text\n')]
)
def test_quote_forward_1(self):
self.assertEqual(
quote(
"""Hello world.
Begin forwarded message:
> From: Someone <someone@example.com>
> Subject: The email
>
> Some quoted text.
"""),
[(True, 'Hello world.\n\nBegin forwarded message:'),
(False, '\n> From: Someone <someone@example.com>\n> Subject: The email\n>\n> Some quoted text.\n')]
)
def test_quote_forward_2(self):
self.assertEqual(
quote(
"""Hello world.
---------- Forwarded message ----------
From: Someone <someone@example.com>
Subject: The email
Some quoted text.
"""),
[(True, 'Hello world.\n\n---------- Forwarded message ----------'),
(False, 'From: Someone <someone@example.com>\nSubject: The email\n\nSome quoted text.\n')]
)
def test_quote_forward_3(self):
self.assertEqual(
quote(
"""Hello world.
> Begin forwarded message:
>
> From: Someone <someone@example.com>
> Subject: The email
>
> Some quoted text.
"""),
[(True, 'Hello world.\n\n> Begin forwarded message:'),
(False, '>\n> From: Someone <someone@example.com>\n> Subject: The email\n>\n> Some quoted text.\n')]
)
def test_limit(self):
self.assertEqual(
quote("Lorem\nIpsum\nDolor\nSit\nAmet", limit=2),
[(True, 'Lorem\nIpsum'), (False, 'Dolor\nSit\nAmet')]
)
class HTMLQuoteTestCase(unittest.TestCase):
def test_apple(self):
self.assertEqual(
quote_html('''<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Some text<div class=""><br class=""></div><div class="">some more text</div><div class=""><br class=""></div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Nov 12, 2014, at 11:07 PM, Some One <<a href="mailto:someone@example.com" class="">someone@example.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html charset=us-ascii" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Lorem ipsum dolor sit amet.<div class=""><br class=""></div></div></div></blockquote></div><br class=""></div></body></html>'''),
[
# Note that lxml removes Content-Type meta tags (see
# lxml.html.tostring include_meta_content_type flag)
(True, '''<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Some text<div class=""><br class=""></div><div class="">some more text</div><div class=""><br class=""></div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Nov 12, 2014, at 11:07 PM, Some One <<a href="mailto:someone@example.com" class="">someone@example.com</a>> wrote:</div></blockquote></div></div></body></html>'''),
# Note we have an empty div stripped out here.
(False, '''<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><div><blockquote type="cite" class=""><br class="Apple-interchange-newline"><div class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Lorem ipsum dolor sit amet.<div class=""><br class=""></div></div></div></blockquote></div><br class=""></div></body></html>'''),
]
)
def test_gmail(self):
self.assertEqual(
quote_html('''<div dir="ltr"><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Some One</b> <span dir="ltr"><<a href="mailto:someone@example.com">someone@example.com</a>></span>
</div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div>Some One</div></div>
</div>'''),
[
(True, '''<div dir="ltr"><br><div class="gmail_quote">---------- Forwarded message ----------</div></div>'''),
(False, '''<div dir="ltr"><div class="gmail_quote">From: <b class="gmail_sendername">Some One</b> <span dir="ltr"><<a href="mailto:someone@example.com">someone@example.com</a>></span>
</div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div>Some One</div></div>
</div>'''),
]
)
def test_gmail_2(self):
self.assertEqual(
quote_html(u'''<div dir="ltr">looks good\xa0</div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Dec 18, 2014 at 10:02 AM, foo <span dir="ltr"><<a href="mailto:foo@example.com" target="_blank">foo@example.com</a>></span> wrote:<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hey Phil,\xa0<div><br><div>Sending you the report:\xa0</div></div><div><span class="HOEnZb"><font color="#888888"><br></font></span></div><span class="HOEnZb"><font color="#888888"><div><br></div><div class="gmail_extra">-- <br><div><div dir="ltr"><div>Cheers,</div><div>foo & example Team</div><div><a href="http://www.example.com" target="_blank">www.example.com</a> ; - <a href="mailto:help@example.com" target="_blank">help@example.com</a>\xa0</div></div></div>\r\n</div></font></span></div>\r\n</blockquote></div></div>\r\n'''),
[
(True, u'''<div dir="ltr">looks good\xa0</div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Dec 18, 2014 at 10:02 AM, foo <span dir="ltr"><<a href="mailto:foo@example.com" target="_blank">foo@example.com</a>></span> wrote:</div></div>'''),
(False, u'''<div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hey Phil,\xa0<div><br><div>Sending you the report:\xa0</div></div><div><span class="HOEnZb"><font color="#888888"><br></font></span></div><span class="HOEnZb"><font color="#888888"><div><br></div><div class="gmail_extra">-- <br><div><div dir="ltr"><div>Cheers,</div><div>foo & example Team</div><div><a href="http://www.example.com" target="_blank">www.example.com</a> ; - <a href="mailto:help@example.com" target="_blank">help@example.com</a>\xa0</div></div></div>\r\n</div></font></span></div>\r\n</blockquote></div></div>'''),
]
)
def test_outlook(self):
self.assertEqual(
quote_html(u'''<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Thanks,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> John Doe [mailto:john@example.com] <br><b>Sent:</b> Tuesday, December 30, 2014 5:31 PM<br><b>To:</b> recipient@example.com<br><b>Subject:</b> Excited to have you on board!<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p>Hey,<o:p></o:p></p></div></body></html>'''),
[
(True, u'<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head></head><body lang="EN-US" link="blue" vlink="purple"><div class="WordSection1"><p class="MsoNormal"><span style=\'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D\'>Thanks,<o:p></o:p></span></p><p class="MsoNormal"><span style=\'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D\'><o:p>\xa0</o:p></span></p><p class="MsoNormal"><span style=\'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D\'><o:p>\xa0</o:p></span></p><div></div></div></body></html>'),
(False, u'<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head></head><body lang="EN-US" link="blue" vlink="purple"><div class="WordSection1"><div><div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in"><p class="MsoNormal"><b><span style=\'font-size:10.0pt;font-family:"Tahoma","sans-serif"\'>From:</span></b><span style=\'font-size:10.0pt;font-family:"Tahoma","sans-serif"\'> John Doe [mailto:john@example.com] <br><b>Sent:</b> Tuesday, December 30, 2014 5:31 PM<br><b>To:</b> recipient@example.com<br><b>Subject:</b> Excited to have you on board!<o:p></o:p></span></p></div></div><p class="MsoNormal"><o:p>\xa0</o:p></p><p>Hey,<o:p></o:p></p></div></body></html>')
]
)
def test_no_wrap_tag(self):
self.assertEqual(
quote_html(u'''On Thu, Dec 18, 2014 at 10:02 AM, foo <foo@example.com> wrote:<blockquote>some stuff</blockquote>'''),
[
(True, 'On Thu, Dec 18, 2014 at 10:02 AM, foo <foo@example.com> wrote:'),
(False, '<blockquote>some stuff</blockquote>'),
]
)
def test_images(self):
self.assertEqual(
quote_html('''<div>Well hello there Sir!!!<br><br><br>On Dec 23, 2014, at 04:35 PM, Steve Wiseman <wiseman.steve@ymail.com> wrote:<br><blockquote type=\"cite\"><div style=\"color:#000;\"><div dir=\"ltr\">Hi there <img src=\"https://s.yimg.com/ok/u/assets/img/emoticons/emo14.gif\" alt=\"*B-) cool\" title=\"*B-) cool\" class=\"fr-fin\"><img src=\"https://s.yimg.com/ok/u/assets/img/emoticons/emo7.gif\" alt=\"*:P tongue\" title=\"*:P tongue\" class=\"fr-fin\"><img src=\"https://s.yimg.com/ok/u/assets/img/emoticons/emo72.gif\" alt=\"*:->~~ spooky\" title=\"*:->~~ spooky\" class=\"fr-fin\"></div></div></blockquote></div>'''),
[
(True, u'''<div>Well hello there Sir!!!<br><br><br>On Dec 23, 2014, at 04:35 PM, Steve Wiseman <wiseman.steve@ymail.com> wrote:</div>'''),
(False, u'''<div><blockquote type="cite"><div style="color:#000;"><div dir="ltr">Hi there\xa0<img src=\"https://s.yimg.com/ok/u/assets/img/emoticons/emo14.gif\" alt=\"*B-) cool\" title=\"*B-) cool\" class=\"fr-fin\"><img src=\"https://s.yimg.com/ok/u/assets/img/emoticons/emo7.gif\" alt=\"*:P tongue\" title=\"*:P tongue\" class=\"fr-fin\"><img src=\"https://s.yimg.com/ok/u/assets/img/emoticons/emo72.gif\" alt=\"*:->~~ spooky\" title=\"*:->~~ spooky\" class=\"fr-fin\"></div></div></blockquote></div>''')
]
)
def test_no_quote(self):
self.assertEqual(
quote_html(u'''<p>One</p><p>Two</p><p>Three</p>'''),
[
(True, '<p>One</p><p>Two</p><p>Three</p>'),
]
)
def test_limit(self):
self.assertEqual(
quote_html(u'''<p>One</p><p>Two</p><p>Three</p><p>Four</p>''', limit=3),
[
(True, '<p>One</p><p>Two</p><p>Three</p>'),
(False, '<p>Four</p>'),
]
)
def test_empty(self):
self.assertEqual(
quote_html(u''),
[
(True, ''),
]
)
def test_comment(self):
self.assertEqual(
quote_html(u'''<!-- test -->'''),
[
(True, '<!-- test -->'),
]
)
def test_comment_2(self):
self.assertEqual(
quote_html(u'''A<!-- test -->B'''),
[
(True, 'A<!-- test -->B'),
]
)
def test_comment_3(self):
self.assertEqual(
quote_html(u'''<!-- test --><br><br>Begin forwarded message:<br><br><!-- test -->'''),
[
(True, '<!-- test --><br><br>Begin forwarded message:'),
(False, '<br><!-- test -->'),
]
)
def test_prefix_tag(self):
self.assertEqual(
quote_html(u'''A<br>Begin forwarded message:<o:p></o:p>B'''),
[
(True, 'A<br>Begin forwarded message:<o:p></o:p>B'),
]
)
def test_prefix_tag_2(self):
# We can't preserve the exact markup due to lxml's parsing here.
self.assertEqual(
quote_html(u'''A<br>Begin forwarded message:<http://test>B'''),
[
(True, 'A<br>Begin forwarded message:<http:>B</http:>'),
]
)
def test_encoding(self):
# We assume everything is UTF-8
self.assertEqual(
quote_html(u'''<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title></title>
</head>
<body>
test ä
</body>
</html>'''), [
(True, u'''<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>
<body>
test ä
</body>
</html>'''),
])
def test_newline(self):
# Newline in "Am\r\n26. Mai" should not change the way we match.
self.assertEqual(
quote_html(u'''<html>\r\n<head>\r\n\r\n</head>\r\n<body>\r\n<div style="color: black;">\r\n<div style="color: black;">\r\n<p style="margin: 0 0 1em 0; color: black;">Here is spam.<br>\r\nHam</p>\r\n</div>\r\n<div style="color: black;">\r\n<p\r\nstyle="color: black; font-size: 10pt; font-family: Arial, sans-serif; margin: 10pt 0;">Am\r\n26. Mai 2015 19:20:17 schrieb Spam Foo <spam@example.com>:</p>\r\n<blockquote type="cite" class="gmail_quote"\r\nstyle="margin: 0 0 0 0.75ex; border-left: 1px solid #808080; padding-left: 0.75ex;">Hey\r\nHam,<br><br>I like spam.<br></blockquote>\r\n</div>\r\n</div>\r\n</body>\r\n</html>\r\n'''), [
(True, '<html>\r\n<head>\r\n\r\n</head>\r\n<body>\r\n<div style="color: black;">\r\n<div style="color: black;">\r\n<p style="margin: 0 0 1em 0; color: black;">Here is spam.<br>\r\nHam</p>\r\n</div>\r\n<div style="color: black;">\r\n<p style="color: black; font-size: 10pt; font-family: Arial, sans-serif; margin: 10pt 0;">Am\r\n26. Mai 2015 19:20:17 schrieb Spam Foo <spam@example.com>:</p></div></div></body></html>'),
(False, '<html><head>\r\n\r\n</head>\r\n<body><div style="color: black;"><div style="color: black;"><blockquote type="cite" class="gmail_quote" style="margin: 0 0 0 0.75ex; border-left: 1px solid #808080; padding-left: 0.75ex;">Hey\r\nHam,<br><br>I like spam.<br></blockquote>\r\n</div>\r\n</div>\r\n</body>\r\n</html>')
])
class UnwrapTestCase(unittest.TestCase):
def test_gmail_forward(self):
# Gmail forward
self.assertEqual(unwrap("""Hello
---------- Forwarded message ----------
From: Someone <noreply@example.com>
Date: Fri, Apr 26, 2013 at 8:13 PM
Subject: Weekend Spanish classes
To: recipient@example.com
Spanish Classes
Learn Spanish
"""), {
'text_top': 'Hello',
'type': 'forward',
'from': 'Someone <noreply@example.com>',
'date': 'Fri, Apr 26, 2013 at 8:13 PM',
'subject': 'Weekend Spanish classes',
'to': 'recipient@example.com',
'text': 'Spanish Classes\nLearn Spanish',
})
def test_apple_forward(self):
# Apple Mail (10.9 and earlier) forward
self.assertEqual(unwrap("""Hello
Begin forwarded message:
> From: "Some One" <some.one@example.com>
> Date: 1. August 2011 23:28:15 GMT-07:00
> To: "Other Person" <other@example.com>
> Subject: AW: AW: Some subject
>
> Original text
Text bottom
"""), {
'text_top': 'Hello',
'type': 'forward',
'from': '"Some One" <some.one@example.com>',
'date': '1. August 2011 23:28:15 GMT-07:00',
'subject': 'AW: AW: Some subject',
'to': '"Other Person" <other@example.com>',
'text': 'Original text',
'text_bottom': 'Text bottom',
})
def test_apple_forward_2(self):
# Apple Mail (10.10) forward
self.assertEqual(unwrap("""Hello
> Begin forwarded message:
>
> From: "Some One" <some.one@example.com>
> Date: 1. August 2011 23:28:15 GMT-07:00
> To: "Other Person" <other@example.com>
> Subject: AW: AW: Some subject
>
> Original text
Text bottom
"""), {
'text_top': 'Hello',
'type': 'forward',
'from': '"Some One" <some.one@example.com>',
'date': '1. August 2011 23:28:15 GMT-07:00',
'subject': 'AW: AW: Some subject',
'to': '"Other Person" <other@example.com>',
'text': 'Original text',
'text_bottom': 'Text bottom',
})
def test_sparrow_forward(self):
# Sparrow forward
self.assertEqual(unwrap("""Hello
Forwarded message:
> From: Some One <some.one@example.com>
> To: Other person <other@example.com>
> Date: Thursday, March 7, 2013 7:09:41 PM
> Subject: Re: Syncing Up
>
> OHAI
>
> Great news!
Text bottom
"""), {
'text_top': 'Hello',
'type': 'forward',
'from': 'Some One <some.one@example.com>',
'date': 'Thursday, March 7, 2013 7:09:41 PM',
'subject': 'Re: Syncing Up',
'to': 'Other person <other@example.com>',
'text': 'OHAI\n\nGreat news!',
'text_bottom': 'Text bottom',
})
def test_bold_headers(self):
# Forwrad with *bold* text
self.assertEqual(unwrap("""Hello
Forwarded message:
*From:* Some One <some@example.com>
*To:* Other Person <other@example.com>
*Date:* Wednesday, February 6, 2013 7:46:53 AM
*Subject:* Fwd: Hottest Startups
This is interesting."""), {
'text_top': 'Hello',
'type': 'forward',
'from': 'Some One <some@example.com>',
'date': 'Wednesday, February 6, 2013 7:46:53 AM',
'subject': 'Fwd: Hottest Startups',
'to': 'Other Person <other@example.com>',
'text': 'This is interesting.',
})
def test_no_forward_text(self):
# No forwarding message text
self.assertEqual(unwrap("""Hello
From: "Some One" <some.one@example.com>
Date: 1. August 2011 23:28:15 GMT-07:00
To: "Other Person" <other@example.com>
Subject: AW: AW: Some subject
Original text
"""), {
'text_top': 'Hello',
'type': 'forward',
'from': '"Some One" <some.one@example.com>',
'date': '1. August 2011 23:28:15 GMT-07:00',
'subject': 'AW: AW: Some subject',
'to': '"Other Person" <other@example.com>',
'text': 'Original text',
})
def test_no_forward_text_quoted(self):
# No forwarding message text
self.assertEqual(unwrap("""Hello
> From: "Some One" <some.one@example.com>
> Date: 1. August 2011 23:28:15 GMT-07:00
> To: "Other Person" <other@example.com>
> Subject: AW: AW: Some subject
>
> Original text
"""), {
'text_top': 'Hello',
'type': 'forward',
'from': '"Some One" <some.one@example.com>',
'date': '1. August 2011 23:28:15 GMT-07:00',
'subject': 'AW: AW: Some subject',
'to': '"Other Person" <other@example.com>',
'text': 'Original text',
})
def test_outlook_forward(self):
# Outlook?
self.assertEqual(unwrap("""-------- Original Message --------
Subject: \tSome Newsletter
Date: \tFri, 19 Jun 2009 19:16:04 +0200
From: \tfrom <from@example.com>
Reply-To: \treply <reply@example.com>
To: \tto@example.com
OHAI"""), {
'type': 'forward',
'from': 'from <from@example.com>',
'reply-to': 'reply <reply@example.com>',
'date': 'Fri, 19 Jun 2009 19:16:04 +0200',
'subject': 'Some Newsletter',
'to': 'to@example.com',
'reply-to': 'reply <reply@example.com>',
'text': 'OHAI',
})
def test_spacing(self):
# Some clients (Blackberry?) have weird whitespace rules
self.assertEqual(unwrap("""hello world
-----Original Message-----
From: "Some One" <some.one@example.com>
Date: Sat, 22 Mar 2008 12:16:06
To:<to@example.com>
Subject: Antw: FW: html
OHAI...
"""), {
'text_top': 'hello world',
'type': 'forward',
'from': '"Some One" <some.one@example.com>',
'date': 'Sat, 22 Mar 2008 12:16:06',
'subject': 'Antw: FW: html',
'to': '<to@example.com>',
'text': 'OHAI...',
})
def test_quote(self):
# Just a quote
self.assertEqual(unwrap("""hello world
Hey: This is very important
> Lorem ipsum
> dolor sit amet
> adipiscing elit.
--
kthxbye
"""), {
'type': 'quote',
'text_top': 'hello world\n\nHey: This is very important',
'text': 'Lorem ipsum\ndolor sit amet\nadipiscing elit.',
'text_bottom': '--\nkthxbye',
})
def test_no_message(self):
# No message
self.assertEqual(unwrap("""hello world
Hey: This is very important
> No quoted message (just one line).
"""), None)
def test_forward_no_headers(self):
# No quote / headers in forwarded message
self.assertEqual(unwrap("""Begin forwarded message:
Hello
"""), {
'type': 'forward',
'text': 'Hello',
})
def test_confusing_email_signature(self):
self.assertEqual(unwrap("""Phone: 12345
Fax: 67890
Skype: foobar
---------- Forwarded message ----------
From: Someone <someone@example.com>
Subject: The email
Email text.
"""), {
'text_top': 'Phone: 12345\nFax: 67890\nSkype: foobar',
'type': 'forward',
'from': 'Someone <someone@example.com>',
'subject': 'The email',
'text': 'Email text.',
})
def test_long_subject(self):
self.assertEqual(unwrap("""---------- Forwarded message ----------
From: Someone <someone@example.com>
Subject: The email has a very long and confusing subject with spans over
multiple lines.
To: Destination <to@example.com>
Email text.
"""), {
'type': 'forward',
'from': 'Someone <someone@example.com>',
'to': 'Destination <to@example.com>',
'subject': 'The email has a very long and confusing subject with spans over multiple lines.',
'text': 'Email text.',
})
def test_reply_1(self):
data = unwrap("""Hello world.
On 2012-10-16 at 17:02 , Someone <someone@example.com> wrote:
> Some quoted text
""")
self.assertEqual(data, {
'type': 'reply',
'date': '2012-10-16 at 17:02',
'from': 'Someone <someone@example.com>',
'text_top': 'Hello world.',
'text': 'Some quoted text',
})
def test_reply_2(self):
data = unwrap("""Hello world.
On 2012-10-16 at 17:02 , Someone <
someone@example.com> wrote:
> Some quoted text
""")
self.assertEqual(data, {
'type': 'reply',
'date': '2012-10-16 at 17:02',
'from': 'Someone <someone@example.com>',
'text_top': 'Hello world.',
'text': 'Some quoted text',
})
def test_french(self):
self.assertEqual(unwrap(u"""
De : Someone <someone@example.com>
Répondre à : Reply <reply@example.com>
Date : Wednesday, 17 September 2014 4:24 pm
À : "Someone Else" <else@example.com>
Objet : Re: test subject
Hello, thanks for your reply
"""), {
'type': 'forward',
'date': u'Wednesday, 17 September 2014 4:24 pm',
'from': u'Someone <someone@example.com>',
'reply-to': 'Reply <reply@example.com>',
'to': u'"Someone Else" <else@example.com>',
'subject': u'Re: test subject',
'text': u'Hello, thanks for your reply',
})
def test_forward_french_apple_mail(self):
self.assertEqual(unwrap(u'''
Text before
Début du message réexpédié :
De: "Foo Bar" <from@example.com>
Date: 14 novembre 2015 15:14:53 UTC+1
À: "'Ham Spam'" <to@example.com>
Objet: RE: The subject
Text after
'''), {
'date': u'14 novembre 2015 15:14:53 UTC+1',
'from': u'"Foo Bar" <from@example.com>',
'subject': 'RE: The subject',
'text': u'Text after',
'text_top': u'Text before',
'to': u'"\'Ham Spam\'" <to@example.com>',
'type': 'forward'
})
def test_forward_french_thunderbird(self):
self.assertEqual(unwrap(u'''
Text before
-------- Message transféré --------
Sujet : Re: Some subject
Date : Wed, 11 Nov 2015 12:31:25 +0100
De : Foo Bar <from@example.com>
Pour : Ham Spam <to@example.com>
Text after
'''), {
'date': u'Wed, 11 Nov 2015 12:31:25 +0100',
'from': u'Foo Bar <from@example.com>',
'subject': 'Re: Some subject',
'text': u'Text after',
'text_top': u'Text before',
'to': u'Ham Spam <to@example.com>',
'type': 'forward'
})
def test_gmail_forward_swedish(self):
# Gmail forward
self.assertEqual(unwrap(u"""Hello
---------- Vidarebefordrat meddelande ----------
Från: Someone <noreply@example.com>
Datum: 26 april 2013 20:13
Ämne: Weekend Spanish classes
Till: recipient@example.com
Spanish Classes
Learn Spanish
"""), {
'text_top': u'Hello',
'type': u'forward',
'from': u'Someone <noreply@example.com>',
'date': u'26 april 2013 20:13',
'subject': u'Weekend Spanish classes',
'to': u'recipient@example.com',
'text': u'Spanish Classes\nLearn Spanish',
})
class HTMLUnwrapTestCase(FileMixin, unittest.TestCase):
def test_simple_forward(self):
html = u'Begin forwarded message:<br>\n<br>\nFrom: someone@example.com<br>\nTo: anyone@example.com<br>\nSubject: You won<br>\n'
self.assertEqual(unwrap_html(html), {
'type': 'forward',
'from': 'someone@example.com',
'to': 'anyone@example.com',
'subject': 'You won',
})
def test_apple_forward(self):
html = '<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">test<div class=""><br class=""></div><div class="">blah<br class=""><div><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">Begin forwarded message:</div><br class="Apple-interchange-newline"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class=""><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(0, 0, 0, 1.0);" class=""><b class="">From: </b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class="">Foo Bar <<a href="mailto:foo@bar.example" class="">foo@bar.example</a>><br class=""></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class=""><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(0, 0, 0, 1.0);" class=""><b class="">Subject: </b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class=""><b class="">The Subject</b><br class=""></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class=""><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(0, 0, 0, 1.0);" class=""><b class="">Date: </b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class="">March 24, 2016 at 20:16:25 GMT+1<br class=""></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class=""><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(0, 0, 0, 1.0);" class=""><b class="">To: </b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class="">John Doe <<a href="mailto:john@doe.example" class="">john@doe.example</a>><br class=""></span></div><br class=""><div class=""><div dir="ltr" class="">Text of the original email</div>'
self.assertEqual(unwrap_html(html), {
'type': 'forward',
'subject': 'The Subject',
'date': 'March 24, 2016 at 20:16:25 GMT+1',
'from': 'Foo Bar <foo@bar.example>',
'to': 'John Doe <john@doe.example>',
'html_top': '<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">test<div class=""><br class=""></div><div class="">blah</div></body></html>',
'html': '<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><div><div><div><div class=""><div dir="ltr" class="">Text of the original email</div></div></div></div></div></div></body></html>',
})
def test_gmail_forward(self):
html = '<html><head></head><body><div dir="ltr">test<div><br></div><div>blah</div><div><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Foo Bar</b> <span dir="ltr"><<a href="mailto:foo@bar.example">foo@bar.example</a>></span><br>Date: Thu, Mar 24, 2016 at 5:17 PM<br>Subject: The Subject<br>To: John Doe <<a href="mailto:john@doe.example">john@doe.example</a>><br><br><br><div dir="ltr">Some text<div><br></div><div><br></div></div></div><br></div></div></body></html>'
self.assertEqual(unwrap_html(html), {
'type': 'forward',
'subject': 'The Subject',
'date': 'Thu, Mar 24, 2016 at 5:17 PM',
'from': 'Foo Bar <foo@bar.example>',
'to': 'John Doe <john@doe.example>',
'html_top': '<html><head></head><body><div dir="ltr">test<div><br></div><div>blah</div></div></body></html>',
'html': '<html><head></head><body><div dir="ltr"><div><div class="gmail_quote"><div dir="ltr">Some text</div></div></div></div></body></html>',
})
def test_apple_reply(self):
html = '<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Foo<div class=""><br class=""></div><div class="">Bar</div><div class=""><br class=""></div><div class=""><div><blockquote type="cite" class=""><div class="">On 2016-03-25, at 23:01, John Doe <<a href="mailto:john@doe.example" class="">john@doe.example</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html charset=us-ascii" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Some <b class="">important</b> email<br class=""></div></div></blockquote></div><br class=""></div></body></html>'
self.assertEqual(unwrap_html(html), {
'type': 'reply',
'from': 'John Doe <john@doe.example>',
'date': '2016-03-25, at 23:01',
'html': '<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><div><div><div class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Some <b class="">important</b> email</div></div></div></div></div></body></html>',
'html_top': '<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Foo<div class=""><br class=""></div><div class="">Bar</div></body></html>',
})
def test_gmail_reply(self):
html = '''<html><head></head><body><div dir="ltr">foo<div><br></div><div>bar</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Mar 16, 2016 at 12:49 AM, Foo Bar <span dir="ltr"><<a href="mailto:foo@bar.example" target="_blank">foo@bar.example</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>This is the reply<br>
<br>
Thanks a lot!<br>
<span class="HOEnZb"><font color="#888888">Foo<br>
<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><b>John Doe</b></div><div dir="ltr"><b>Senior Director</b><div>Some Company</div></div></div></div></div>
</div>
</body></html>'''
self.assertEqual(unwrap_html(html), {
'type': 'reply',
'from': 'Foo Bar <foo@bar.example>',
'date': 'Wed, Mar 16, 2016 at 12:49 AM',
'html_top': '<html><head></head><body><div dir="ltr">foo<div><br></div><div>bar</div></div></body></html>',
'html': '<html><head></head><body><div class="gmail_extra"><div class="gmail_quote"><div>Hi,<br>\n<br>This is the reply<br>\n<br>\nThanks a lot!<br>\n<span class="HOEnZb"><font color="#888888">Foo</font></span></div></div></div></body></html>',
'html_bottom': '<html><head></head><body><div class="gmail_extra">-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><b>John Doe</b></div><div dir="ltr"><b>Senior Director</b><div>Some Company</div></div></div></div></div>\n</div>\n</body></html>',
})
def test_outlook_forward(self):
data = self.read_file('outlook_forward.html')
result = unwrap_html(data)
self.assertEqual(result['type'], 'forward')
self.assertEqual(result['from'], 'John Doe')
self.assertEqual(result['to'], 'Foo Bar (foo@bar.example)')
self.assertEqual(result['date'], 'Wednesday, July 09, 2014 10:27 AM')
self.assertEqual(result['subject'], 'The subject!')
self.assert_equal_to_file(result['html'],
'outlook_forward_unwrapped.html')
self.assert_equal_to_file(result['html_top'],
'outlook_forward_unwrapped_top.html')
self.assertNotIn('html_bottom', result)
def test_thunderbird_forward(self):
data = self.read_file('thunderbird_forward.html')
result = unwrap_html(data)
self.assertEqual(result['type'], 'forward')
self.assertEqual(result['from'], 'John Doe <johndoe@example.com>')
self.assertEqual(result['to'], 'Foo Bar <foobar@example.com>')
self.assertEqual(result['date'], 'Tue, 3 May 2016 14:54:27 +0200 (CEST)')
self.assertEqual(result['subject'], 'Re: Example subject')
self.assertNotIn('html_top', result)
self.assert_equal_to_file(result['html'],
'thunderbird_forward_unwrapped.html')
self.assertNotIn('html_bottom', result)
def test_mailru_forward(self):
data = self.read_file('mailru_forward.html')
result = unwrap_html(data)
self.assertEqual(result['type'], 'forward')
self.assertEqual(result['from'], u'Иван Иванов <ivanivanov@example.com>')
self.assertEqual(result['to'], u'Петр Петров <petrpetrov@example.com>')
self.assertEqual(result['date'], u'Среда, 14 июня 2017, 15:19 +03:00')
self.assertEqual(result['subject'], u'Тестовая тема')
self.assertNotIn('html_top', result)
self.assert_equal_to_file(result['html'],
'mailru_forward_unwrapped.html')
self.assertNotIn('html_bottom', result)
class InternalTestCase(unittest.TestCase):
def test_parse_reply(self):
from quotequail._internal import parse_reply
data = parse_reply(u'Am 24.02.2015 um 22:48 schrieb John Doe <john@doe.example>:')
self.assertEqual(data, {
'date': u'24.02.2015 um 22:48',
'from': u'John Doe <john@doe.example>'
})
data = parse_reply(u'On Monday, March 7, 2016 10:19 AM, John Doe <john@doe.example> wrote:')
self.assertEqual(data, {
'date': u'Monday, March 7, 2016 10:19 AM',
'from': u'John Doe <john@doe.example>'
})
data = parse_reply(u'On Feb 22, 2015, at 9:19 PM, John Doe <john@doe.example> wrote:')
self.assertEqual(data, {
'date': u'Feb 22, 2015, at 9:19 PM',
'from': u'John Doe <john@doe.example>'
})
data = parse_reply(u'On 2016-03-14, at 20:26, John Doe <john@doe.example> wrote:')
self.assertEqual(data, {
'date': u'2016-03-14, at 20:26',
'from': u'John Doe <john@doe.example>'
})
data = parse_reply(u'Le 6 janv. 2014 à 19:50, John Doe <john@doe.example> a écrit :')
self.assertEqual(data, {
'date': u'6 janv. 2014 \xe0 19:50',
'from': u'John Doe <john@doe.example>'
})
data = parse_reply(u'Le 02.10.2013 à 11:13, John Doe <john@doe.example> a écrit :')
self.assertEqual(data, {
'date': u'02.10.2013 \xe0 11:13',
'from': u'John Doe <john@doe.example>'
})
data = parse_reply(u'El 11/07/2012 06:13 p.m., John Doe escribió:')
self.assertEqual(data, {
'date': u'11/07/2012 06:13 p.m.',
'from': u'John Doe'
})
data = parse_reply(u'El 06/04/2010, a las 13:13, John Doe escribió:')
self.assertEqual(data, {
'date': u'06/04/2010, a las 13:13',
'from': u'John Doe'
})
data = parse_reply(u'2009/5/12 John Doe <john@doe.example>')
self.assertEqual(data, {
'date': u'2009/5/12',
'from': u'John Doe <john@doe.example>'
})
data = parse_reply(u"On 8 o'clock, John Doe wrote:")
self.assertEqual(data, {
'date': u"8 o'clock",
'from': u'John Doe'
})
# Swedish
data = parse_reply(u'Den 24 februari 2015 22:48 skrev John Doe <john@doe.example>:')
self.assertEqual(data, {
'date': u'24 februari 2015 22:48',
'from': u'John Doe <john@doe.example>'
})
class InternalHTMLTestCase(unittest.TestCase):
def test_extract_headers(self):
from quotequail._internal import extract_headers
self.assertEqual(
extract_headers([], 2),
({}, 0)
)
self.assertEqual(
extract_headers(['test'], 2),
({}, 0)
)
self.assertEqual(
extract_headers(['From: b', 'To: c'], 2),
({'from': 'b', 'to': 'c'}, 2)
)
self.assertEqual(
extract_headers(['From: b', 'foo'], 2),
({'from': 'b foo'}, 2)
)
self.assertEqual(
extract_headers(['From: b', 'foo'], 1),
({'from': 'b'}, 1)
)
self.assertEqual(
extract_headers(['From: b', 'To: c', '', 'other line'], 2),
({'from': 'b', 'to': 'c'}, 2)
)
self.assertEqual(
extract_headers(['From: some very very very long name <',
'verylong@example.com>',
'Subject: this is a very very very very long',
'subject',
'',
'other line'], 2),
({'from': 'some very very very long name <verylong@example.com>',
'subject': 'this is a very very very very long subject'}, 4)
)
self.assertEqual(
extract_headers(['From: some very very very long name <',
'verylong@example.com>'], 1),
({'from': 'some very very very long name <',}, 1)
)
def test_tree_line_generator(self):
from quotequail import _html
tree = _html.get_html_tree('<div>foo <span>bar</span><br>baz</div>')
data = [result for result in _html.tree_line_generator(tree)]
div = tree.xpath('div')[0]
br = tree.xpath('div/br')[0]
span = tree.xpath('div/span')[0]
self.assertEqual(data, [
((div, 'begin'), (br, 'begin'), 0, 'foo bar'),
((br, 'end'), (div, 'end'), 0, 'baz'),
])
data = [result for result in _html.tree_line_generator(tree, max_lines=1)]
div = tree.xpath('div')[0]
br = tree.xpath('div/br')[0]
self.assertEqual(data, [
((div, 'begin'), (br, 'begin'), 0, 'foo bar'),
])
tree = _html.get_html_tree('<div><h1>foo</h1>bar</div>')
data = [result for result in _html.tree_line_generator(tree)]
div = tree.xpath('div')[0]
h1 = tree.xpath('div/h1')[0]
self.assertEqual(data, [
((h1, 'begin'), (h1, 'end'), 0, 'foo'),
((h1, 'end'), (div, 'end'), 0, 'bar'),
])
tree = _html.get_html_tree(
'<div><blockquote>hi</blockquote>world</div>')
data = [result for result in _html.tree_line_generator(tree)]
div = tree.xpath('div')[0]
blockquote = tree.xpath('div/blockquote')[0]
self.assertEqual(data, [
((blockquote, 'begin'), (blockquote, 'end'), 1, 'hi'),
((blockquote, 'end'), (div, 'end'), 0, 'world'),
])
tree = _html.get_html_tree('''
<table>
<tr><td>Subject: </td><td>the subject</td></tr>
<tr><td>From: </td><td>from line</td></tr>
</table>''')
data = [result for result in _html.tree_line_generator(tree)]
tr1, tr2 = tree.xpath('table/tr')
self.assertEqual(data, [
((tr1, 'begin'), (tr1, 'end'), 0, 'Subject: the subject'),
((tr2, 'begin'), (tr2, 'end'), 0, 'From: from line'),
])
def test_trim_after(self):
from quotequail import _html
html = '<div>A<span>B</span>C<span>D</span>E</div>'
tree = _html.get_html_tree(html)
_html.trim_tree_after(tree.find('div/span'))
self.assertEqual(_html.render_html_tree(tree), '<div>A<span>B</span></div>')
tree = _html.get_html_tree(html)
_html.trim_tree_after(tree.find('div/span[2]'))
self.assertEqual(_html.render_html_tree(tree), '<div>A<span>B</span>C<span>D</span></div>')
tree = _html.get_html_tree(html)
_html.trim_tree_after(tree.find('div/span'), include_element=False)
self.assertEqual(_html.render_html_tree(tree), '<div>A</div>')
tree = _html.get_html_tree(html)
_html.trim_tree_after(tree.find('div/span[2]'), include_element=False)
self.assertEqual(_html.render_html_tree(tree), '<div>A<span>B</span>C</div>')
def test_trim_before(self):
from quotequail import _html
html = '<div>A<span>B</span>C<span>D</span>E</div>'
tree = _html.get_html_tree(html)
_html.trim_tree_before(tree.find('div/span'))
self.assertEqual(_html.render_html_tree(tree), '<div><span>B</span>C<span>D</span>E</div>')
tree = _html.get_html_tree(html)
_html.trim_tree_before(tree.find('div/span[2]'))
self.assertEqual(_html.render_html_tree(tree), '<div><span>D</span>E</div>')
tree = _html.get_html_tree(html)
_html.trim_tree_before(tree.find('div/span'), include_element=False)
self.assertEqual(_html.render_html_tree(tree), '<div>C<span>D</span>E</div>')
tree = _html.get_html_tree(html)
_html.trim_tree_before(tree.find('div/span[2]'), include_element=False)
self.assertEqual(_html.render_html_tree(tree), '<div>E</div>')
if __name__ == '__main__':
unittest.main()
| 46.871327
| 2,208
| 0.581752
| 6,465
| 46,262
| 4.103171
| 0.085538
| 0.044483
| 0.019867
| 0.019
| 0.823915
| 0.788668
| 0.747465
| 0.704904
| 0.663739
| 0.639537
| 0
| 0.035878
| 0.213156
| 46,262
| 986
| 2,209
| 46.918864
| 0.692866
| 0.014007
| 0
| 0.438217
| 0
| 0.073885
| 0.615508
| 0.200276
| 0
| 0
| 0
| 0
| 0.135032
| 1
| 0.073885
| false
| 0
| 0.016561
| 0
| 0.100637
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
a4dc23f57bc84ae983c51b650a891789cb032610
| 3,600
|
py
|
Python
|
tests/state/test_DownCounterMod16.py
|
jamesjiang52/Bitwise
|
c71f151d23034b3f9e2a939f637be0eaa16c45c3
|
[
"MIT"
] | null | null | null |
tests/state/test_DownCounterMod16.py
|
jamesjiang52/Bitwise
|
c71f151d23034b3f9e2a939f637be0eaa16c45c3
|
[
"MIT"
] | null | null | null |
tests/state/test_DownCounterMod16.py
|
jamesjiang52/Bitwise
|
c71f151d23034b3f9e2a939f637be0eaa16c45c3
|
[
"MIT"
] | null | null | null |
import bitwise as bw
class TestDownCounterMod16:
def test_DownCounterMod16(self):
enable = bw.wire.Wire()
load_n = bw.wire.Wire()
clock = bw.wire.Wire()
load_1 = bw.wire.Wire()
load_2 = bw.wire.Wire()
load_3 = bw.wire.Wire()
load_4 = bw.wire.Wire()
output_1 = bw.wire.Wire()
output_2 = bw.wire.Wire()
output_3 = bw.wire.Wire()
output_4 = bw.wire.Wire()
load_bus = bw.wire.Bus4(load_1, load_2, load_3, load_4)
output_bus = bw.wire.Bus4(output_1, output_2, output_3, output_4)
a = bw.state.DownCounterMod16(
enable,
load_n,
load_bus,
clock,
output_bus
)
enable.value = 1
load_n.value = 0
load_1.value = 1
load_2.value = 1
load_3.value = 1
load_4.value = 1
clock.value = 0
clock.value = 1
load_n.value = 1
assert output_bus.wire_values == (1, 1, 1, 1)
clock.value = 0
clock.value = 1
assert output_bus.wire_values == (1, 1, 1, 0)
clock.value = 0
clock.value = 1
assert output_bus.wire_values == (1, 1, 0, 1)
clock.value = 0
clock.value = 1
assert output_bus.wire_values == (1, 1, 0, 0)
clock.value = 0
clock.value = 1
assert output_bus.wire_values == (1, 0, 1, 1)
clock.value = 0
clock.value = 1
assert output_bus.wire_values == (1, 0, 1, 0)
clock.value = 0
clock.value = 1
assert output_bus.wire_values == (1, 0, 0, 1)
clock.value = 0
clock.value = 1
assert output_bus.wire_values == (1, 0, 0, 0)
clock.value = 0
clock.value = 1
assert output_bus.wire_values == (0, 1, 1, 1)
clock.value = 0
clock.value = 1
assert output_bus.wire_values == (0, 1, 1, 0)
clock.value = 0
clock.value = 1
assert output_bus.wire_values == (0, 1, 0, 1)
clock.value = 0
clock.value = 1
assert output_bus.wire_values == (0, 1, 0, 0)
clock.value = 0
clock.value = 1
assert output_bus.wire_values == (0, 0, 1, 1)
clock.value = 0
clock.value = 1
assert output_bus.wire_values == (0, 0, 1, 0)
clock.value = 0
clock.value = 1
assert output_bus.wire_values == (0, 0, 0, 1)
clock.value = 0
clock.value = 1
assert output_bus.wire_values == (0, 0, 0, 0)
clock.value = 0
clock.value = 1
assert output_bus.wire_values == (1, 1, 1, 1)
clock.value = 0
clock.value = 1
assert output_bus.wire_values == (1, 1, 1, 0)
enable.value = 0
clock.value = 0
clock.value = 1
assert output_bus.wire_values == (1, 1, 1, 0)
enable.value = 1
clock.value = 0
clock.value = 1
assert output_bus.wire_values == (1, 1, 0, 1)
load_n.value = 0
load_1.value = 0
load_2.value = 0
load_3.value = 1
load_4.value = 0
clock.value = 0
clock.value = 1
load_n.value = 1
assert output_bus.wire_values == (0, 0, 1, 0)
print(a.__doc__)
print(a)
a(
enable=1,
load_n=1,
load_bus=(0, 0, 0, 0),
clock=0,
output_bus=None
)
assert output_bus.wire_values == (0, 0, 1, 0)
a(clock=1)
assert output_bus.wire_values == (0, 0, 0, 1)
| 25.174825
| 73
| 0.509444
| 516
| 3,600
| 3.383721
| 0.060078
| 0.24055
| 0.195304
| 0.210767
| 0.731386
| 0.723368
| 0.723368
| 0.70504
| 0.67354
| 0.65693
| 0
| 0.084375
| 0.377778
| 3,600
| 142
| 74
| 25.352113
| 0.695089
| 0
| 0
| 0.548673
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.20354
| 1
| 0.00885
| false
| 0
| 0.00885
| 0
| 0.026549
| 0.017699
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
3517f33d9a86aebebf0ff510b37856d2bea5bb81
| 1,990
|
py
|
Python
|
tests/v2/test_1298-allow-nan_to_num-arguments-to-be-arrays.py
|
jpivarski/awkward-1.0
|
49a3ff13ef90b8778a80573211d58c544729eaa5
|
[
"BSD-3-Clause"
] | 2
|
2019-09-12T03:07:23.000Z
|
2019-09-27T05:32:07.000Z
|
tests/v2/test_1298-allow-nan_to_num-arguments-to-be-arrays.py
|
jpivarski/awkward-1.0
|
49a3ff13ef90b8778a80573211d58c544729eaa5
|
[
"BSD-3-Clause"
] | 1
|
2019-09-26T17:57:45.000Z
|
2019-09-26T17:57:45.000Z
|
tests/v2/test_1298-allow-nan_to_num-arguments-to-be-arrays.py
|
jpivarski/awkward-1.0
|
49a3ff13ef90b8778a80573211d58c544729eaa5
|
[
"BSD-3-Clause"
] | null | null | null |
# BSD 3-Clause License; see https://github.com/scikit-hep/awkward-1.0/blob/main/LICENSE
import pytest # noqa: F401
import awkward as ak # noqa: F401
to_list = ak._v2.operations.to_list
def test():
array = ak._v2.Array(
[[1.1, 2.2], [], [3.3, float("nan")], [float("-inf"), float("inf"), 7.7]]
)
assert to_list(
ak._v2.operations.nan_to_num(
array, nan=999, posinf=float("-inf"), neginf=float("inf")
)
) == [[1.1, 2.2], [], [3.3, 999.0], [float("inf"), float("-inf"), 7.7]]
assert to_list(
ak._v2.operations.nan_to_num(
array,
nan=[[-1, -2], [], [-3, -4], [-5, -6, -7]],
posinf=float("-inf"),
neginf=float("inf"),
)
) == [[1.1, 2.2], [], [3.3, -4], [float("inf"), float("-inf"), 7.7]]
assert to_list(
ak._v2.operations.nan_to_num(
array,
nan=[[-1, -2], [], [-3, -4], [-5, -6, -7]],
posinf=[[1, 2], [], [3, 4], [5, 6, 7]],
neginf=float("inf"),
)
) == [[1.1, 2.2], [], [3.3, -4], [float("inf"), 6.0, 7.7]]
assert to_list(
ak._v2.operations.nan_to_num(
array,
nan=[[-1, -2], [], [-3, -4], [-5, -6, -7]],
posinf=[[1, 2], [], [3, 4], [5, 6, 7]],
neginf=[[10, 20], [], [30, 40], [50, 60, 70]],
)
) == [[1.1, 2.2], [], [3.3, -4], [50.0, 6.0, 7.7]]
assert to_list(
ak._v2.operations.nan_to_num(
array,
nan=[[-1, -2], [], [-3, -4], [-5, -6, -7]],
posinf=float("-inf"),
neginf=[[10, 20], [], [30, 40], [50, 60, 70]],
)
) == [[1.1, 2.2], [], [3.3, -4], [50.0, float("-inf"), 7.7]]
assert to_list(
ak._v2.operations.nan_to_num(
array,
nan=999,
posinf=float("-inf"),
neginf=[[10, 20], [], [30, 40], [50, 60, 70]],
)
) == [[1.1, 2.2], [], [3.3, 999.0], [50.0, float("-inf"), 7.7]]
| 31.09375
| 87
| 0.411055
| 290
| 1,990
| 2.724138
| 0.165517
| 0.162025
| 0.070886
| 0.088608
| 0.813924
| 0.788608
| 0.764557
| 0.764557
| 0.75443
| 0.75443
| 0
| 0.138235
| 0.316583
| 1,990
| 63
| 88
| 31.587302
| 0.442647
| 0.053769
| 0
| 0.596154
| 0
| 0
| 0.031932
| 0
| 0
| 0
| 0
| 0
| 0.115385
| 1
| 0.019231
| false
| 0
| 0.038462
| 0
| 0.057692
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 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
|
353ddb5cb0992b553d2706a167d1337118555dc5
| 12,454
|
py
|
Python
|
OpenNRE/opennre/model/bag_average.py
|
NanoGDA/gda-extraction
|
9dfedc54dab10ee4e90d8af622bcaf97e6dc2422
|
[
"MIT"
] | 4
|
2021-09-07T00:36:29.000Z
|
2021-12-09T21:30:01.000Z
|
OpenNRE/opennre/model/bag_average.py
|
GDAMining/gda-extraction
|
67878b5bf8127413a204b12f019d776ab65aaac4
|
[
"MIT"
] | 1
|
2021-09-07T13:54:54.000Z
|
2021-09-07T16:09:34.000Z
|
OpenNRE/opennre/model/bag_average.py
|
NanoGDA/gda-extraction
|
9dfedc54dab10ee4e90d8af622bcaf97e6dc2422
|
[
"MIT"
] | null | null | null |
import torch
from torch import nn, optim
from .base_model import BagRE
class BagCNNAverage(BagRE):
"""
Average policy for bag-level relation extraction.
"""
def __init__(self, sentence_encoder, num_class, rel2id):
"""
Args:
sentence_encoder: encoder for sentences
num_class: number of classes
id2rel: dictionary of id -> relation name mapping
"""
super().__init__()
self.sentence_encoder = sentence_encoder
self.num_class = num_class
self.fc = nn.Linear(self.sentence_encoder.hidden_size, num_class)
self.softmax = nn.Softmax(-1)
self.rel2id = rel2id
self.id2rel = {}
self.drop = nn.Dropout()
for rel, id in rel2id.items():
self.id2rel[id] = rel
def infer(self, bag):
"""
Args:
bag: bag of sentences with the same entity pair
[{
'text' or 'token': ...,
'h': {'pos': [start, end], ...},
't': {'pos': [start, end], ...}
}]
Return:
(relation, score)
"""
# pass
self.eval()
tokens = []
pos1s = []
pos2s = []
masks = []
for item in bag:
token, pos1, pos2, mask = self.sentence_encoder.tokenize(item)
tokens.append(token)
pos1s.append(pos1)
pos2s.append(pos2)
masks.append(mask)
tokens = torch.cat(tokens, 0) # (n, L)
pos1s = torch.cat(pos1s, 0)
pos2s = torch.cat(pos2s, 0)
masks = torch.cat(masks, 0)
scope = torch.tensor([[0, len(bag)]]).long() # (1, 2)
bag_logits = self.forward(None, scope, tokens, pos1s, pos2s, masks, train=False).squeeze(0) # (N) after softmax
score, pred = bag_logits.max()
score = score.item()
pred = pred.item()
rel = self.id2rel[pred]
return (rel, score)
def forward(self, label, scope, token, pos1, pos2, mask=None, train=True, bag_size=None):
"""
Args:
label: (B), label of the bag
scope: (B), scope for each bag
token: (nsum, L), index of tokens
pos1: (nsum, L), relative position to head entity
pos2: (nsum, L), relative position to tail entity
mask: (nsum, L), used for piece-wise CNN
Return:
logits, (B, N)
"""
if bag_size > 0:
token = token.view(-1, token.size(-1))
pos1 = pos1.view(-1, pos1.size(-1))
pos2 = pos2.view(-1, pos2.size(-1))
if mask is not None:
mask = mask.view(-1, mask.size(-1))
else:
begin, end = scope[0][0], scope[-1][1]
token = token[:, begin:end, :].view(-1, token.size(-1))
pos1 = pos1[:, begin:end, :].view(-1, pos1.size(-1))
pos2 = pos2[:, begin:end, :].view(-1, pos2.size(-1))
if mask is not None:
mask = mask[:, begin:end, :].view(-1, mask.size(-1))
scope = torch.sub(scope, torch.zeros_like(scope).fill_(begin))
if mask is not None:
rep = self.sentence_encoder(token, pos1, pos2, mask) # (nsum, H)
else:
rep = self.sentence_encoder(token, pos1, pos2) # (nsum, H)
# Average
if train:
if bag_size == 0:
bag_rep = []
for i in range(len(scope)):
bag_rep.append(rep[scope[i][0]:scope[i][1]].mean(0))
bag_rep = torch.stack(bag_rep, 0) # (B, H)
else:
batch_size = label.size(0)
rep = rep.view(batch_size, bag_size, -1) # (B, bag, H)
bag_rep = rep.mean(1) # (B, H)
bag_rep = self.drop(bag_rep)
bag_logits = self.fc(bag_rep) # (B, N)
else:
if bag_size == 0:
bag_rep = []
for i in range(len(scope)):
bag_rep.append(rep[scope[i][0]:scope[i][1]].mean(0))
bag_rep = torch.stack(bag_rep, 0) # (B, H)
else:
batch_size = rep.size(0) // bag_size
rep = rep.view(batch_size, bag_size, -1) # (B, bag, H)
bag_rep = rep.mean(1) # (B, H)
bag_logits = self.softmax(self.fc(bag_rep)) # (B, N)
return bag_logits
class BagGRUAverage(BagRE):
"""
Average policy for bag-level relation extraction.
"""
def __init__(self, sentence_encoder, num_class, rel2id):
"""
Args:
sentence_encoder: encoder for sentences
num_class: number of classes
id2rel: dictionary of id -> relation name mapping
"""
super().__init__()
self.sentence_encoder = sentence_encoder
self.num_class = num_class
self.fc = nn.Linear(self.sentence_encoder.hidden_size, num_class)
self.softmax = nn.Softmax(-1)
self.rel2id = rel2id
self.id2rel = {}
self.drop = nn.Dropout()
for rel, id in rel2id.items():
self.id2rel[id] = rel
def infer(self, bag):
"""
Args:
bag: bag of sentences with the same entity pair
[{
'text' or 'token': ...,
'h': {'pos': [start, end], ...},
't': {'pos': [start, end], ...}
}]
Return:
(relation, score)
"""
# pass
self.eval()
tokens = []
masks = []
for item in bag:
token, mask = self.sentence_encoder.tokenize(item)
tokens.append(token)
masks.append(mask)
tokens = torch.cat(tokens, 0) # (n, L)
masks = torch.cat(masks, 0)
scope = torch.tensor([[0, len(bag)]]).long() # (1, 2)
bag_logits = self.forward(None, scope, tokens, masks, train=False).squeeze(0) # (N) after softmax
score, pred = bag_logits.max()
score = score.item()
pred = pred.item()
rel = self.id2rel[pred]
return (rel, score)
def forward(self, label, scope, token, mask=None, train=True, bag_size=None):
"""
Args:
label: (B), label of the bag
scope: (B), scope for each bag
token: (nsum, L), index of tokens
mask: (nsum, L), used for piece-wise CNN
Return:
logits, (B, N)
"""
if bag_size > 0:
token = token.view(-1, token.size(-1))
if mask is not None:
mask = mask.view(-1, mask.size(-1))
else:
begin, end = scope[0][0], scope[-1][1]
token = token[:, begin:end, :].view(-1, token.size(-1))
if mask is not None:
mask = mask[:, begin:end, :].view(-1, mask.size(-1))
scope = torch.sub(scope, torch.zeros_like(scope).fill_(begin))
if mask is not None:
rep = self.sentence_encoder(token, mask) # (nsum, H)
else:
rep = self.sentence_encoder(token) # (nsum, H)
# Average
if train:
if bag_size == 0:
bag_rep = []
for i in range(len(scope)):
bag_rep.append(rep[scope[i][0]:scope[i][1]].mean(0))
bag_rep = torch.stack(bag_rep, 0) # (B, H)
else:
batch_size = label.size(0)
rep = rep.view(batch_size, bag_size, -1) # (B, bag, H)
bag_rep = rep.mean(1) # (B, H)
bag_rep = self.drop(bag_rep)
bag_logits = self.fc(bag_rep) # (B, N)
else:
if bag_size == 0:
bag_rep = []
for i in range(len(scope)):
bag_rep.append(rep[scope[i][0]:scope[i][1]].mean(0))
bag_rep = torch.stack(bag_rep, 0) # (B, H)
else:
batch_size = rep.size(0) // bag_size
rep = rep.view(batch_size, bag_size, -1) # (B, bag, H)
bag_rep = rep.mean(1) # (B, H)
bag_logits = self.softmax(self.fc(bag_rep)) # (B, N)
return bag_logits
class BagBEREAverage(BagRE):
"""
Average policy for bag-level relation extraction.
"""
def __init__(self, sentence_encoder, num_class, rel2id):
"""
Args:
sentence_encoder: encoder for sentences
num_class: number of classes
id2rel: dictionary of id -> relation name mapping
"""
super().__init__()
self.sentence_encoder = sentence_encoder
self.num_class = num_class
self.fc = nn.Sequential(nn.Linear(self.sentence_encoder.hidden_size, self.sentence_encoder.hidden_size // 10),
nn.ReLU(),
nn.Linear(self.sentence_encoder.hidden_size // 10, num_class))
self.softmax = nn.Softmax(-1)
self.rel2id = rel2id
self.id2rel = {}
self.drop = nn.Dropout()
for rel, id in rel2id.items():
self.id2rel[id] = rel
def infer(self, bag):
"""
Args:
bag: bag of sentences with the same entity pair
[{
'text' or 'token': ...,
'h': {'pos': [start, end], ...},
't': {'pos': [start, end], ...}
}]
Return:
(relation, score)
"""
# pass
self.eval()
tokens = []
tags = []
masks = []
for item in bag:
token, tag, mask = self.sentence_encoder.tokenize(item)
tokens.append(token)
tags.append(tag)
masks.append(mask)
tokens = torch.cat(tokens, 0) # (n, L)
tags = torch.cat(tags, 0)
masks = torch.cat(masks, 0)
scope = torch.tensor([[0, len(bag)]]).long() # (1, 2)
bag_logits = self.forward(None, scope, tokens, tags, masks, train=False).squeeze(0) # (N) after softmax
score, pred = bag_logits.max()
score = score.item()
pred = pred.item()
rel = self.id2rel[pred]
return (rel, score)
def forward(self, label, scope, token, tag, mask=None, train=True, bag_size=None):
"""
Args:
label: (B), label of the bag
scope: (B), scope for each bag
token: (nsum, L), index of tokens
tag: (nsum, L), index of tags
mask: (nsum, L), used for piece-wise CNN
Return:
logits, (B, N)
"""
if bag_size > 0:
token = token.view(-1, token.size(-1))
tag = tag.view(-1, tag.size(-1))
if mask is not None:
mask = mask.view(-1, mask.size(-1))
else:
begin, end = scope[0][0], scope[-1][1]
token = token[:, begin:end, :].view(-1, token.size(-1))
tag = tag[:, begin:end, :].view(-1, tag.size(-1))
if mask is not None:
mask = mask[:, begin:end, :].view(-1, mask.size(-1))
scope = torch.sub(scope, torch.zeros_like(scope).fill_(begin))
if mask is not None:
rep = self.sentence_encoder(token, tag, mask) # (nsum, H)
else:
rep = self.sentence_encoder(token, tag) # (nsum, H)
# Average
if train:
if bag_size == 0:
bag_rep = []
for i in range(len(scope)):
bag_rep.append(rep[scope[i][0]:scope[i][1]].mean(0))
bag_rep = torch.stack(bag_rep, 0) # (B, H)
else:
batch_size = label.size(0)
rep = rep.view(batch_size, bag_size, -1) # (B, bag, H)
bag_rep = rep.mean(1) # (B, H)
bag_rep = self.drop(bag_rep)
bag_logits = self.fc(bag_rep) # (B, N)
else:
if bag_size == 0:
bag_rep = []
for i in range(len(scope)):
bag_rep.append(rep[scope[i][0]:scope[i][1]].mean(0))
bag_rep = torch.stack(bag_rep, 0) # (B, H)
else:
batch_size = rep.size(0) // bag_size
rep = rep.view(batch_size, bag_size, -1) # (B, bag, H)
bag_rep = rep.mean(1) # (B, H)
bag_logits = self.softmax(self.fc(bag_rep)) # (B, N)
return bag_logits
| 36.098551
| 119
| 0.48635
| 1,534
| 12,454
| 3.839635
| 0.084746
| 0.042784
| 0.064516
| 0.01528
| 0.943124
| 0.935314
| 0.917487
| 0.889983
| 0.889983
| 0.843124
| 0
| 0.023788
| 0.375542
| 12,454
| 344
| 120
| 36.203488
| 0.733573
| 0.187731
| 0
| 0.825893
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.040179
| false
| 0
| 0.013393
| 0
| 0.09375
| 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
|
353f5c683ee23b1d2e1b6f079716351bff2d16e2
| 178
|
py
|
Python
|
constance/__init__.py
|
trbs/django-constance-trbs
|
60ca8139491d3c13efaf9bcd99ff41ecf8c315e3
|
[
"BSD-3-Clause"
] | null | null | null |
constance/__init__.py
|
trbs/django-constance-trbs
|
60ca8139491d3c13efaf9bcd99ff41ecf8c315e3
|
[
"BSD-3-Clause"
] | 1
|
2018-03-05T20:18:19.000Z
|
2018-03-05T20:18:19.000Z
|
constance/__init__.py
|
trbs/django-constance-trbs
|
60ca8139491d3c13efaf9bcd99ff41ecf8c315e3
|
[
"BSD-3-Clause"
] | 2
|
2015-09-15T15:58:58.000Z
|
2018-03-05T18:14:22.000Z
|
from constance import utils
from constance import settings
def load_config_class():
return utils.import_module_attr(settings.CONFIG_CLASS)
config = load_config_class()()
| 17.8
| 58
| 0.803371
| 24
| 178
| 5.666667
| 0.5
| 0.242647
| 0.279412
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.129213
| 178
| 9
| 59
| 19.777778
| 0.877419
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.2
| false
| 0
| 0.6
| 0.2
| 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
| 0
| 0
| 1
| 1
| 1
| 0
|
0
| 7
|
10af1876354ddc579f960fca09e67aabf73c07fe
| 2,062
|
py
|
Python
|
capstone/capdb/migrations/0093_auto_20200226_1948.py
|
rachelaus/capstone
|
2affa02706f9b1a99d032c66f258a7421c40a35e
|
[
"MIT"
] | 134
|
2017-07-12T17:03:06.000Z
|
2022-03-27T06:38:29.000Z
|
capstone/capdb/migrations/0093_auto_20200226_1948.py
|
rachelaus/capstone
|
2affa02706f9b1a99d032c66f258a7421c40a35e
|
[
"MIT"
] | 1,362
|
2017-06-22T17:42:49.000Z
|
2022-03-31T15:28:00.000Z
|
capstone/capdb/migrations/0093_auto_20200226_1948.py
|
rachelaus/capstone
|
2affa02706f9b1a99d032c66f258a7421c40a35e
|
[
"MIT"
] | 38
|
2017-06-22T14:46:23.000Z
|
2022-03-16T05:32:54.000Z
|
# Generated by Django 2.2.10 on 2020-02-26 19:48
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('capdb', '0092_auto_20200225_1511'),
]
operations = [
migrations.AddField(
model_name='casemetadata',
name='first_page_order',
field=models.SmallIntegerField(blank=True, help_text='1-based page order of first page', null=True),
),
migrations.AddField(
model_name='casemetadata',
name='last_page_order',
field=models.SmallIntegerField(blank=True, help_text='1-based page order of last page', null=True),
),
migrations.AddField(
model_name='historicalcasemetadata',
name='first_page_order',
field=models.SmallIntegerField(blank=True, help_text='1-based page order of first page', null=True),
),
migrations.AddField(
model_name='historicalcasemetadata',
name='last_page_order',
field=models.SmallIntegerField(blank=True, help_text='1-based page order of last page', null=True),
),
migrations.AlterField(
model_name='casemetadata',
name='first_page',
field=models.CharField(blank=True, help_text='Label of first page', max_length=255, null=True),
),
migrations.AlterField(
model_name='casemetadata',
name='last_page',
field=models.CharField(blank=True, help_text='Label of first page', max_length=255, null=True),
),
migrations.AlterField(
model_name='historicalcasemetadata',
name='first_page',
field=models.CharField(blank=True, help_text='Label of first page', max_length=255, null=True),
),
migrations.AlterField(
model_name='historicalcasemetadata',
name='last_page',
field=models.CharField(blank=True, help_text='Label of first page', max_length=255, null=True),
),
]
| 38.185185
| 112
| 0.615907
| 225
| 2,062
| 5.488889
| 0.222222
| 0.072874
| 0.084211
| 0.110121
| 0.879352
| 0.879352
| 0.838057
| 0.838057
| 0.803239
| 0.753846
| 0
| 0.032
| 0.272551
| 2,062
| 53
| 113
| 38.90566
| 0.791333
| 0.022308
| 0
| 0.851064
| 1
| 0
| 0.23138
| 0.055114
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.021277
| 0
| 0.085106
| 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
|
529fa070f28eb9cc6ac3a2ee2e9e0b63832f5795
| 4,732
|
py
|
Python
|
tests/flytekit/unit/use_scenarios/unit_testing/test_blobs.py
|
flytehub/flytekit
|
f8f53567594069b29fcd3f99abd1da71a5ef0e22
|
[
"Apache-2.0"
] | 1
|
2019-10-22T05:22:16.000Z
|
2019-10-22T05:22:16.000Z
|
tests/flytekit/unit/use_scenarios/unit_testing/test_blobs.py
|
chixcode/flytekit
|
f901aee721847c6264d44079d4fa31a75b8876e1
|
[
"Apache-2.0"
] | null | null | null |
tests/flytekit/unit/use_scenarios/unit_testing/test_blobs.py
|
chixcode/flytekit
|
f901aee721847c6264d44079d4fa31a75b8876e1
|
[
"Apache-2.0"
] | 1
|
2019-08-28T22:27:07.000Z
|
2019-08-28T22:27:07.000Z
|
from __future__ import absolute_import
from flytekit.sdk.types import Types
from flytekit.sdk.tasks import inputs, outputs, python_task
from flytekit.sdk.test_utils import flyte_test
from flytekit.common.utils import AutoDeletingTempDir
@flyte_test
def test_create_blob_from_local_path():
@outputs(a=Types.Blob)
@python_task
def test_create_from_local_path(wf_params, a):
with AutoDeletingTempDir("t") as tmp:
tmp_name = tmp.get_named_tempfile("abc.blob")
with open(tmp_name, 'wb') as w:
w.write("Hello world".encode("utf-8"))
a.set(tmp_name)
out = test_create_from_local_path.unit_test()
assert len(out) == 1
with out['a'] as r:
assert r.read().decode('utf-8') == "Hello world"
@flyte_test
def test_write_blob():
@outputs(a=Types.Blob)
@python_task
def test_write(wf_params, a):
b = Types.Blob()
with b as w:
w.write("Hello world".encode("utf-8"))
a.set(b)
out = test_write.unit_test()
assert len(out) == 1
with out['a'] as r:
assert r.read().decode('utf-8') == "Hello world"
@flyte_test
def test_blob_passing():
@inputs(a=Types.Blob)
@outputs(b=Types.Blob)
@python_task
def test_pass(wf_params, a, b):
b.set(a)
b = Types.Blob()
with b as w:
w.write("Hello world".encode("utf-8"))
out = test_pass.unit_test(a=b)
assert len(out) == 1
with out['b'] as r:
assert r.read().decode('utf-8') == "Hello world"
out = test_pass.unit_test(a=out['b'])
assert len(out) == 1
with out['b'] as r:
assert r.read().decode('utf-8') == "Hello world"
@flyte_test
def test_create_multipartblob_from_local_path():
@outputs(a=Types.MultiPartBlob)
@python_task
def test_create_from_local_path(wf_params, a):
with AutoDeletingTempDir("t") as tmp:
with open(tmp.get_named_tempfile("0"), 'wb') as w:
w.write("Hello world".encode("utf-8"))
with open(tmp.get_named_tempfile("1"), 'wb') as w:
w.write("Hello world2".encode("utf-8"))
a.set(tmp.name)
out = test_create_from_local_path.unit_test()
assert len(out) == 1
with out['a'] as r:
assert len(r) == 2
assert r[0].read().decode('utf-8') == "Hello world"
assert r[1].read().decode('utf-8') == "Hello world2"
@flyte_test
def test_write_multipartblob():
@outputs(a=Types.MultiPartBlob)
@python_task
def test_write(wf_params, a):
b = Types.MultiPartBlob()
with b.create_part("0") as w:
w.write("Hello world".encode("utf-8"))
with b.create_part("1") as w:
w.write("Hello world2".encode("utf-8"))
a.set(b)
out = test_write.unit_test()
assert len(out) == 1
with out['a'] as r:
assert len(r) == 2
assert r[0].read().decode('utf-8') == "Hello world"
assert r[1].read().decode('utf-8') == "Hello world2"
@flyte_test
def test_multipartblob_passing():
@inputs(a=Types.MultiPartBlob)
@outputs(b=Types.MultiPartBlob)
@python_task
def test_pass(wf_params, a, b):
b.set(a)
b = Types.MultiPartBlob()
with b.create_part("0") as w:
w.write("Hello world".encode("utf-8"))
with b.create_part("1") as w:
w.write("Hello world2".encode("utf-8"))
out = test_pass.unit_test(a=b)
assert len(out) == 1
with out['b'] as r:
assert len(r) == 2
assert r[0].read().decode('utf-8') == "Hello world"
assert r[1].read().decode('utf-8') == "Hello world2"
out = test_pass.unit_test(a=out['b'])
assert len(out) == 1
with out['b'] as r:
assert len(r) == 2
assert r[0].read().decode('utf-8') == "Hello world"
assert r[1].read().decode('utf-8') == "Hello world2"
@flyte_test
def test_write_csv():
@outputs(a=Types.CSV)
@python_task
def test_write(wf_params, a):
b = Types.CSV()
with b as w:
w.write("Hello,world,hi")
a.set(b)
out = test_write.unit_test()
assert len(out) == 1
with out['a'] as r:
assert r.read() == "Hello,world,hi"
@flyte_test
def test_write_multipartcsv():
@outputs(a=Types.MultiPartCSV)
@python_task
def test_write(wf_params, a):
b = Types.MultiPartCSV()
with b.create_part("0") as w:
w.write("Hello,world,1")
with b.create_part("1") as w:
w.write("Hello,world,2")
a.set(b)
out = test_write.unit_test()
assert len(out) == 1
with out['a'] as r:
assert len(r) == 2
assert r[0].read() == "Hello,world,1"
assert r[1].read() == "Hello,world,2"
| 28.166667
| 62
| 0.588757
| 721
| 4,732
| 3.712899
| 0.087379
| 0.031378
| 0.017931
| 0.040344
| 0.816959
| 0.796787
| 0.755697
| 0.755697
| 0.714606
| 0.714606
| 0
| 0.018372
| 0.252325
| 4,732
| 167
| 63
| 28.335329
| 0.73827
| 0
| 0
| 0.76087
| 0
| 0
| 0.096999
| 0
| 0
| 0
| 0
| 0
| 0.217391
| 1
| 0.115942
| false
| 0.057971
| 0.036232
| 0
| 0.152174
| 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
| 1
| 0
| 0
| 0
| 0
|
0
| 8
|
d81eaf90e7526515f33f59525f595129582dcf86
| 12,959
|
py
|
Python
|
bureau/spiders/truckpaper_trucks.py
|
rusrom/scrapy_5_spiders_for_client
|
b831e36017a8c66a75cbce6f65a31cdcb35752f3
|
[
"BSD-Source-Code"
] | null | null | null |
bureau/spiders/truckpaper_trucks.py
|
rusrom/scrapy_5_spiders_for_client
|
b831e36017a8c66a75cbce6f65a31cdcb35752f3
|
[
"BSD-Source-Code"
] | null | null | null |
bureau/spiders/truckpaper_trucks.py
|
rusrom/scrapy_5_spiders_for_client
|
b831e36017a8c66a75cbce6f65a31cdcb35752f3
|
[
"BSD-Source-Code"
] | null | null | null |
# -*- coding: utf-8 -*-
import scrapy
import re
import csv
from selenium import webdriver
from scrapy.selector import Selector
from time import sleep
from random import randint
class TruckpaperTrucksSpider(scrapy.Spider):
name = 'truckpaper-trucks'
# allowed_domains = ['truckpaper.com']
allowed_domains = ['machinerytrader.com']
# start_urls = ['https://www.truckpaper.com/listings/trucks/for-sale/category/27/trucks']
def start_requests(self):
# self.driver = webdriver.Chrome('/home/rusrom/webdrivers/chromedriver')
# # self.driver.get('https://www.truckpaper.com/listings/trucks/for-sale/category/27/trucks')
# self.driver.get('https://www.machinerytrader.com/listings/construction-equipment/for-sale/category/4/construction-equipment')
# sleep(8)
# sel = Selector(text=self.driver.page_source)
# self.driver.close()
# with open('machinerytrader.csv', 'a', encoding='utf-8') as f_csv:
# fieldnames = ['make', 'model']
# csv_writer = csv.DictWriter(f_csv, fieldnames=fieldnames)
# csv_writer.writeheader()
# makers = sel.xpath('//div[@class="column12 fluid-mobile columns large-12 medium-12 small-12"]/div[@class="p-bottom-30 p-top-5 listings-drilldown cf row"]//li/a[contains(@href, "for-sale/category")]/@href').extract()
makers = [
'https://www.machinerytrader.com/listings/construction-equipment/for-sale/category/4/construction-equipment/manufacturer/still',
'https://www.machinerytrader.com/listings/construction-equipment/for-sale/category/4/construction-equipment/manufacturer/stone',
'https://www.machinerytrader.com/listings/construction-equipment/for-sale/category/4/construction-equipment/manufacturer/sullair',
'https://www.machinerytrader.com/listings/construction-equipment/for-sale/category/4/construction-equipment/manufacturer/sullivan',
'https://www.machinerytrader.com/listings/construction-equipment/for-sale/category/4/construction-equipment/manufacturer/sullivan-palatek',
'https://www.machinerytrader.com/listings/construction-equipment/for-sale/category/4/construction-equipment/manufacturer/sumitomo',
'https://www.machinerytrader.com/listings/construction-equipment/for-sale/category/4/construction-equipment/manufacturer/sunward',
'https://www.machinerytrader.com/listings/construction-equipment/for-sale/category/4/construction-equipment/manufacturer/superior',
'https://www.machinerytrader.com/listings/construction-equipment/for-sale/category/4/construction-equipment/manufacturer/superior-broom',
'https://www.machinerytrader.com/listings/construction-equipment/for-sale/category/4/construction-equipment/manufacturer/symons',
'https://www.machinerytrader.com/listings/construction-equipment/for-sale/category/4/construction-equipment/manufacturer/tadano',
'https://www.machinerytrader.com/listings/construction-equipment/for-sale/category/4/construction-equipment/manufacturer/takeuchi',
'https://www.machinerytrader.com/listings/construction-equipment/for-sale/category/4/construction-equipment/manufacturer/tamrock',
'https://www.machinerytrader.com/listings/construction-equipment/for-sale/category/4/construction-equipment/manufacturer/taylor',
'https://www.machinerytrader.com/listings/construction-equipment/for-sale/category/4/construction-equipment/manufacturer/taylor-dunn',
'https://www.machinerytrader.com/listings/construction-equipment/for-sale/category/4/construction-equipment/manufacturer/tcm',
'https://www.machinerytrader.com/listings/construction-equipment/for-sale/category/4/construction-equipment/manufacturer/telelect',
'https://www.machinerytrader.com/listings/construction-equipment/for-sale/category/4/construction-equipment/manufacturer/telestack',
'https://www.machinerytrader.com/listings/construction-equipment/for-sale/category/4/construction-equipment/manufacturer/telsmith',
'https://www.machinerytrader.com/listings/construction-equipment/for-sale/category/4/construction-equipment/manufacturer/tennant',
'https://www.machinerytrader.com/listings/construction-equipment/for-sale/category/4/construction-equipment/manufacturer/terex',
'https://www.machinerytrader.com/listings/construction-equipment/for-sale/category/4/construction-equipment/manufacturer/terex-finlay',
'https://www.machinerytrader.com/listings/construction-equipment/for-sale/category/4/construction-equipment/manufacturer/terex-pegson',
'https://www.machinerytrader.com/listings/construction-equipment/for-sale/category/4/construction-equipment/manufacturer/terramite',
'https://www.machinerytrader.com/listings/construction-equipment/for-sale/category/4/construction-equipment/manufacturer/tesab',
'https://www.machinerytrader.com/listings/construction-equipment/for-sale/category/4/construction-equipment/manufacturer/tesmec',
'https://www.machinerytrader.com/listings/construction-equipment/for-sale/category/4/construction-equipment/manufacturer/texoma',
'https://www.machinerytrader.com/listings/construction-equipment/for-sale/category/4/construction-equipment/manufacturer/thomas',
'https://www.machinerytrader.com/listings/construction-equipment/for-sale/category/4/construction-equipment/manufacturer/thompson',
'https://www.machinerytrader.com/listings/construction-equipment/for-sale/category/4/construction-equipment/manufacturer/thwaites',
'https://www.machinerytrader.com/listings/construction-equipment/for-sale/category/4/construction-equipment/manufacturer/tigercat',
'https://www.machinerytrader.com/listings/construction-equipment/for-sale/category/4/construction-equipment/manufacturer/timbco',
'https://www.machinerytrader.com/listings/construction-equipment/for-sale/category/4/construction-equipment/manufacturer/timberjack',
'https://www.machinerytrader.com/listings/construction-equipment/for-sale/category/4/construction-equipment/manufacturer/timberpro',
'https://www.machinerytrader.com/listings/construction-equipment/for-sale/category/4/construction-equipment/manufacturer/toro',
'https://www.machinerytrader.com/listings/construction-equipment/for-sale/category/4/construction-equipment/manufacturer/tower-light',
'https://www.machinerytrader.com/listings/construction-equipment/for-sale/category/4/construction-equipment/manufacturer/toyota',
'https://www.machinerytrader.com/listings/construction-equipment/for-sale/category/4/construction-equipment/manufacturer/trackmobile',
'https://www.machinerytrader.com/listings/construction-equipment/for-sale/category/4/construction-equipment/manufacturer/trio',
'https://www.machinerytrader.com/listings/construction-equipment/for-sale/category/4/construction-equipment/manufacturer/tymco',
'https://www.machinerytrader.com/listings/construction-equipment/for-sale/category/4/construction-equipment/manufacturer/unic',
'https://www.machinerytrader.com/listings/construction-equipment/for-sale/category/4/construction-equipment/manufacturer/unicarriers',
'https://www.machinerytrader.com/listings/construction-equipment/for-sale/category/4/construction-equipment/manufacturer/unitedbuilt',
'https://www.machinerytrader.com/listings/construction-equipment/for-sale/category/4/construction-equipment/manufacturer/universal',
'https://www.machinerytrader.com/listings/construction-equipment/for-sale/category/4/construction-equipment/manufacturer/up-right',
'https://www.machinerytrader.com/listings/construction-equipment/for-sale/category/4/construction-equipment/manufacturer/utilev',
'https://www.machinerytrader.com/listings/construction-equipment/for-sale/category/4/construction-equipment/manufacturer/valmet',
'https://www.machinerytrader.com/listings/construction-equipment/for-sale/category/4/construction-equipment/manufacturer/venieri',
'https://www.machinerytrader.com/listings/construction-equipment/for-sale/category/4/construction-equipment/manufacturer/vermeer',
'https://www.machinerytrader.com/listings/construction-equipment/for-sale/category/4/construction-equipment/manufacturer/versalift',
'https://www.machinerytrader.com/listings/construction-equipment/for-sale/category/4/construction-equipment/manufacturer/vibromax',
'https://www.machinerytrader.com/listings/construction-equipment/for-sale/category/4/construction-equipment/manufacturer/viper',
'https://www.machinerytrader.com/listings/construction-equipment/for-sale/category/4/construction-equipment/manufacturer/vogele',
'https://www.machinerytrader.com/listings/construction-equipment/for-sale/category/4/construction-equipment/manufacturer/volvo',
'https://www.machinerytrader.com/listings/construction-equipment/for-sale/category/4/construction-equipment/manufacturer/wabco',
'https://www.machinerytrader.com/listings/construction-equipment/for-sale/category/4/construction-equipment/manufacturer/wacker',
'https://www.machinerytrader.com/listings/construction-equipment/for-sale/category/4/construction-equipment/manufacturer/wacker-neuson',
'https://www.machinerytrader.com/listings/construction-equipment/for-sale/category/4/construction-equipment/manufacturer/wagner',
'https://www.machinerytrader.com/listings/construction-equipment/for-sale/category/4/construction-equipment/manufacturer/waukesha',
'https://www.machinerytrader.com/listings/construction-equipment/for-sale/category/4/construction-equipment/manufacturer/weber',
'https://www.machinerytrader.com/listings/construction-equipment/for-sale/category/4/construction-equipment/manufacturer/weiler',
'https://www.machinerytrader.com/listings/construction-equipment/for-sale/category/4/construction-equipment/manufacturer/white-lai',
'https://www.machinerytrader.com/listings/construction-equipment/for-sale/category/4/construction-equipment/manufacturer/wirtgen',
'https://www.machinerytrader.com/listings/construction-equipment/for-sale/category/4/construction-equipment/manufacturer/woods',
'https://www.machinerytrader.com/listings/construction-equipment/for-sale/category/4/construction-equipment/manufacturer/xcmg',
'https://www.machinerytrader.com/listings/construction-equipment/for-sale/category/4/construction-equipment/manufacturer/xtreme-mfg',
'https://www.machinerytrader.com/listings/construction-equipment/for-sale/category/4/construction-equipment/manufacturer/yale',
'https://www.machinerytrader.com/listings/construction-equipment/for-sale/category/4/construction-equipment/manufacturer/yamaha',
'https://www.machinerytrader.com/listings/construction-equipment/for-sale/category/4/construction-equipment/manufacturer/yanmar',
]
# (2) -> Open 1 instanse and just go through pages
# self.driver = webdriver.Chrome('/home/rusrom/webdrivers/chromedriver')
for make in makers:
with open('machinerytrader.csv', 'a', encoding='utf-8') as f_csv:
fieldnames = ['make', 'model']
csv_writer = csv.DictWriter(f_csv, fieldnames=fieldnames)
vendor = make.split('/')[-1].title()
# (1) -> Always open new browser instance on maker
self.driver = webdriver.Chrome('/home/rusrom/webdrivers/chromedriver')
# self.driver.get('https://www.truckpaper.com' + make)
self.driver.get(make)
sleep(randint(10, 30))
sel = Selector(text=self.driver.page_source)
# (1) -> Always close instance for each page
self.driver.close()
models = sel.xpath('(//div[@class="column12 fluid-mobile columns large-12 medium-12 small-12"]/div[@class="p-bottom-30 p-top-5 listings-drilldown cf row"]/div/ul/li[not(@class)] | //div[@class="column12 fluid-mobile columns large-12 medium-12 small-12"]/div[@class="p-bottom-30 p-top-5 listings-drilldown cf row"]/div/ul/li[@class="with-children"]/ul[@class="closed"]/li)/a/text()').extract()
for model in models:
data = {}
data['make'] = vendor
data['model'] = re.sub(r'\s+\(\d+\)', '', model).strip()
print(data)
csv_writer.writerow(data)
# (2) -> Close instance after complete through all makers
# self.driver.close()
| 97.43609
| 408
| 0.735165
| 1,415
| 12,959
| 6.722968
| 0.139223
| 0.309051
| 0.115106
| 0.191317
| 0.873121
| 0.871754
| 0.871754
| 0.864396
| 0.858404
| 0.858404
| 0
| 0.010702
| 0.127556
| 12,959
| 132
| 409
| 98.174242
| 0.830709
| 0.096998
| 0
| 0
| 0
| 0.707071
| 0.794246
| 0.02132
| 0
| 0
| 0
| 0
| 0
| 1
| 0.010101
| false
| 0
| 0.070707
| 0
| 0.111111
| 0.010101
| 0
| 0
| 0
| null | 1
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 10
|
dc2b95b4fe62aab611b4512f18af3fa38734f07e
| 7,968
|
py
|
Python
|
tests/test_model/test_bottom_up_head.py
|
chaowentao/mmpose
|
b528c60ef4fab56d35d1ed7e187023794639be26
|
[
"Apache-2.0"
] | 15
|
2020-12-10T07:43:34.000Z
|
2022-03-21T08:38:36.000Z
|
tests/test_model/test_bottom_up_head.py
|
chaowentao/mmpose
|
b528c60ef4fab56d35d1ed7e187023794639be26
|
[
"Apache-2.0"
] | null | null | null |
tests/test_model/test_bottom_up_head.py
|
chaowentao/mmpose
|
b528c60ef4fab56d35d1ed7e187023794639be26
|
[
"Apache-2.0"
] | 10
|
2020-12-17T07:57:10.000Z
|
2022-03-08T07:17:12.000Z
|
import numpy as np
import pytest
import torch
from mmpose.models import BottomUpHigherResolutionHead, BottomUpSimpleHead
def test_bottom_up_simple_head():
"""test bottom up simple head."""
with pytest.raises(TypeError):
# extra
_ = BottomUpSimpleHead(
in_channels=512, num_joints=17, with_ae_loss=[True], extra=[])
# test final_conv_kernel
with pytest.raises(AssertionError):
_ = BottomUpSimpleHead(
in_channels=512,
num_joints=17,
with_ae_loss=[True],
extra={'final_conv_kernel': 0})
head = BottomUpSimpleHead(
in_channels=512,
num_joints=17,
with_ae_loss=[True],
extra={'final_conv_kernel': 3})
head.init_weights()
assert head.final_layer.padding == (1, 1)
head = BottomUpSimpleHead(
in_channels=512,
num_joints=17,
with_ae_loss=[True],
extra={'final_conv_kernel': 1})
head.init_weights()
assert head.final_layer.padding == (0, 0)
head = BottomUpSimpleHead(
in_channels=512, num_joints=17, with_ae_loss=[True])
head.init_weights()
assert head.final_layer.padding == (0, 0)
# test with_ae_loss
head = BottomUpSimpleHead(
in_channels=512,
num_joints=17,
num_deconv_layers=0,
with_ae_loss=[True],
extra={'final_conv_kernel': 3})
head.init_weights()
input_shape = (1, 512, 32, 32)
inputs = _demo_inputs(input_shape)
out = head(inputs)
assert out[0].shape == torch.Size([1, 34, 32, 32])
head = BottomUpSimpleHead(
in_channels=512,
num_joints=17,
num_deconv_layers=0,
with_ae_loss=[False],
extra={'final_conv_kernel': 3})
head.init_weights()
input_shape = (1, 512, 32, 32)
inputs = _demo_inputs(input_shape)
out = head(inputs)
assert out[0].shape == torch.Size([1, 17, 32, 32])
# test tag_per_joint
head = BottomUpSimpleHead(
in_channels=512,
num_joints=17,
num_deconv_layers=0,
tag_per_joint=False,
with_ae_loss=[False],
extra={'final_conv_kernel': 3})
head.init_weights()
input_shape = (1, 512, 32, 32)
inputs = _demo_inputs(input_shape)
out = head(inputs)
assert out[0].shape == torch.Size([1, 17, 32, 32])
head = BottomUpSimpleHead(
in_channels=512,
num_joints=17,
num_deconv_layers=0,
tag_per_joint=False,
with_ae_loss=[True],
extra={'final_conv_kernel': 3})
head.init_weights()
input_shape = (1, 512, 32, 32)
inputs = _demo_inputs(input_shape)
out = head(inputs)
assert out[0].shape == torch.Size([1, 18, 32, 32])
head = BottomUpSimpleHead(
in_channels=512,
num_joints=17,
num_deconv_layers=0,
tag_per_joint=False,
with_ae_loss=[True],
extra={'final_conv_kernel': 3})
head.init_weights()
input_shape = (1, 512, 32, 32)
inputs = _demo_inputs(input_shape)
out = head([inputs])
assert out[0].shape == torch.Size([1, 18, 32, 32])
def test_bottom_up_higherresolution_head():
"""test bottom up higherresolution head."""
# test final_conv_kernel
with pytest.raises(AssertionError):
_ = BottomUpHigherResolutionHead(
in_channels=512,
num_joints=17,
with_ae_loss=[True, False],
extra={'final_conv_kernel': 0})
head = BottomUpHigherResolutionHead(
in_channels=512,
num_joints=17,
with_ae_loss=[True, False],
extra={'final_conv_kernel': 3},
cat_output=[True])
head.init_weights()
assert head.final_layers[0].padding == (1, 1)
head = BottomUpHigherResolutionHead(
in_channels=512,
num_joints=17,
with_ae_loss=[True, False],
extra={'final_conv_kernel': 1},
cat_output=[True])
head.init_weights()
assert head.final_layers[0].padding == (0, 0)
head = BottomUpHigherResolutionHead(
in_channels=512,
num_joints=17,
with_ae_loss=[True, False],
cat_output=[True])
head.init_weights()
assert head.final_layers[0].padding == (0, 0)
# test deconv layers
with pytest.raises(ValueError):
_ = BottomUpHigherResolutionHead(
in_channels=512,
num_joints=17,
with_ae_loss=[True, False],
num_deconv_kernels=[1],
cat_output=[True])
head = BottomUpHigherResolutionHead(
in_channels=512,
num_joints=17,
with_ae_loss=[True, False],
num_deconv_kernels=[4],
cat_output=[True])
head.init_weights()
assert head.deconv_layers[0][0][0].output_padding == (0, 0)
head = BottomUpHigherResolutionHead(
in_channels=512,
num_joints=17,
with_ae_loss=[True, False],
num_deconv_kernels=[3],
cat_output=[True])
head.init_weights()
assert head.deconv_layers[0][0][0].output_padding == (1, 1)
head = BottomUpHigherResolutionHead(
in_channels=512,
num_joints=17,
with_ae_loss=[True, False],
num_deconv_kernels=[2],
cat_output=[True])
head.init_weights()
assert head.deconv_layers[0][0][0].output_padding == (0, 0)
# test tag_per_joint & ae loss
head = BottomUpHigherResolutionHead(
in_channels=512,
num_joints=17,
tag_per_joint=False,
with_ae_loss=[False, False],
extra={'final_conv_kernel': 3},
cat_output=[True])
head.init_weights()
input_shape = (1, 512, 32, 32)
inputs = _demo_inputs(input_shape)
out = head(inputs)
assert out[0].shape == torch.Size([1, 17, 32, 32])
assert out[1].shape == torch.Size([1, 17, 64, 64])
head = BottomUpHigherResolutionHead(
in_channels=512,
num_joints=17,
tag_per_joint=False,
with_ae_loss=[True, False],
extra={'final_conv_kernel': 3},
cat_output=[True])
head.init_weights()
input_shape = (1, 512, 32, 32)
inputs = _demo_inputs(input_shape)
out = head(inputs)
assert out[0].shape == torch.Size([1, 18, 32, 32])
assert out[1].shape == torch.Size([1, 17, 64, 64])
head = BottomUpHigherResolutionHead(
in_channels=512,
num_joints=17,
tag_per_joint=True,
with_ae_loss=[True, True],
extra={'final_conv_kernel': 3},
cat_output=[True])
head.init_weights()
input_shape = (1, 512, 32, 32)
inputs = _demo_inputs(input_shape)
out = head(inputs)
assert out[0].shape == torch.Size([1, 34, 32, 32])
assert out[1].shape == torch.Size([1, 34, 64, 64])
# cat_output
head = BottomUpHigherResolutionHead(
in_channels=512,
num_joints=17,
tag_per_joint=True,
with_ae_loss=[True, True],
extra={'final_conv_kernel': 3},
cat_output=[False])
head.init_weights()
input_shape = (1, 512, 32, 32)
inputs = _demo_inputs(input_shape)
out = head(inputs)
assert out[0].shape == torch.Size([1, 34, 32, 32])
assert out[1].shape == torch.Size([1, 34, 64, 64])
head = BottomUpHigherResolutionHead(
in_channels=512,
num_joints=17,
tag_per_joint=True,
with_ae_loss=[True, True],
extra={'final_conv_kernel': 3},
cat_output=[False])
head.init_weights()
input_shape = (1, 512, 32, 32)
inputs = _demo_inputs(input_shape)
out = head([inputs])
assert out[0].shape == torch.Size([1, 34, 32, 32])
assert out[1].shape == torch.Size([1, 34, 64, 64])
def _demo_inputs(input_shape=(1, 3, 64, 64)):
"""Create a superset of inputs needed to run backbone.
Args:
input_shape (tuple): input batch dimensions.
Default: (1, 3, 64, 64).
Returns:
Random input tensor with the size of input_shape.
"""
inps = np.random.random(input_shape)
inps = torch.FloatTensor(inps)
return inps
| 32.129032
| 74
| 0.615211
| 1,027
| 7,968
| 4.510224
| 0.082765
| 0.032383
| 0.051813
| 0.079447
| 0.896589
| 0.883636
| 0.869819
| 0.869819
| 0.841753
| 0.841537
| 0
| 0.064746
| 0.259538
| 7,968
| 247
| 75
| 32.259109
| 0.720339
| 0.05246
| 0
| 0.890909
| 0
| 0
| 0.036257
| 0
| 0
| 0
| 0
| 0
| 0.118182
| 1
| 0.013636
| false
| 0
| 0.018182
| 0
| 0.036364
| 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
|
dc48e3e7df4bad22d36538a50f7563284d5b289e
| 103
|
py
|
Python
|
csdl/utils/get_array_indices.py
|
LSDOlab/csdl
|
04c2c5764f6ca9b865ec87ecfeaf6f22ecacc5a3
|
[
"MIT"
] | null | null | null |
csdl/utils/get_array_indices.py
|
LSDOlab/csdl
|
04c2c5764f6ca9b865ec87ecfeaf6f22ecacc5a3
|
[
"MIT"
] | null | null | null |
csdl/utils/get_array_indices.py
|
LSDOlab/csdl
|
04c2c5764f6ca9b865ec87ecfeaf6f22ecacc5a3
|
[
"MIT"
] | 1
|
2021-10-04T19:40:32.000Z
|
2021-10-04T19:40:32.000Z
|
import numpy as np
def get_array_indices(*shape):
return np.arange(np.prod(shape)).reshape(shape)
| 20.6
| 51
| 0.747573
| 17
| 103
| 4.411765
| 0.764706
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.126214
| 103
| 5
| 51
| 20.6
| 0.833333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| true
| 0
| 0.333333
| 0.333333
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 1
| 1
| 1
| 0
|
0
| 7
|
dc5c0386cd784e34ed1cffd4986544d375b515cf
| 2,733
|
py
|
Python
|
wikidata_research/dictionary_evaluation_handler.py
|
sjuenger/WikiMETA
|
13ed293b4bda8ff0fc10b532907ca35c24a12616
|
[
"MIT"
] | null | null | null |
wikidata_research/dictionary_evaluation_handler.py
|
sjuenger/WikiMETA
|
13ed293b4bda8ff0fc10b532907ca35c24a12616
|
[
"MIT"
] | null | null | null |
wikidata_research/dictionary_evaluation_handler.py
|
sjuenger/WikiMETA
|
13ed293b4bda8ff0fc10b532907ca35c24a12616
|
[
"MIT"
] | null | null | null |
import wikidata_research.dictionary.dictionary_evaluation as dictionary_evaluation
# mode must either be "reference" or "qualifier"
# the x must by at least 1 or grater
def generate_information_of_property_dictionary(x, mode):
if mode not in ["qualifier", "reference"]:
error_message = "Not supported mode."
raise Exception(error_message)
if (type(x) != int or x < 1):
error_message = "The number of requested top x items must be at least 1 or greater."
raise Exception(error_message)
dictionary_evaluation.get_top_x_metadata(x, mode)
dictionary_evaluation.get_top_x_metadata(x, mode)
dictionary_evaluation.get_top_x_metadata(x, mode, True)
dictionary_evaluation.get_top_x_metadata(x, mode, True)
dictionary_evaluation.get_top_x_metadata(x, mode, False)
dictionary_evaluation.get_top_x_metadata(x, mode, False)
dictionary_evaluation.get_top_x_facets_by_metadata(x, mode, True)
dictionary_evaluation.get_top_x_facets_by_metadata(x, mode, False)
dictionary_evaluation.get_top_x_facets_by_metadata(x, mode, True)
dictionary_evaluation.get_top_x_facets_by_metadata(x, mode, False)
dictionary_evaluation.get_top_x_facets_by_metadata(x, mode)
dictionary_evaluation.get_top_x_facets_by_metadata(x, mode)
# there are only 19 available datatypes for properties in Wikidata
# -> no need for a top x functionality
dictionary_evaluation.get_datatypes_by_metadata(mode, True)
dictionary_evaluation.get_datatypes_by_metadata(mode, False)
dictionary_evaluation.get_datatypes_by_metadata(mode, True)
dictionary_evaluation.get_datatypes_by_metadata(mode, False)
dictionary_evaluation.get_datatypes_by_metadata(mode)
dictionary_evaluation.get_datatypes_by_metadata(mode)
dictionary_evaluation.get_top_x_facets_by_accumulated_properties(x, mode, True)
dictionary_evaluation.get_top_x_facets_by_accumulated_properties(x, mode, False)
dictionary_evaluation.get_top_x_facets_by_accumulated_properties(x, mode, True)
dictionary_evaluation.get_top_x_facets_by_accumulated_properties(x, mode, False)
dictionary_evaluation.get_top_x_facets_by_accumulated_properties(x, mode)
dictionary_evaluation.get_top_x_facets_by_accumulated_properties(x, mode)
dictionary_evaluation.get_datatypes_by_accumulated_properties(mode, True)
dictionary_evaluation.get_datatypes_by_accumulated_properties(mode, False)
dictionary_evaluation.get_datatypes_by_accumulated_properties(mode, True)
dictionary_evaluation.get_datatypes_by_accumulated_properties(mode, False)
dictionary_evaluation.get_datatypes_by_accumulated_properties(mode)
dictionary_evaluation.get_datatypes_by_accumulated_properties(mode)
| 53.588235
| 92
| 0.817051
| 376
| 2,733
| 5.494681
| 0.154255
| 0.309777
| 0.333979
| 0.226525
| 0.78122
| 0.78122
| 0.78122
| 0.78122
| 0.78122
| 0.752662
| 0
| 0.002079
| 0.120015
| 2,733
| 50
| 93
| 54.66
| 0.856965
| 0.066959
| 0
| 0.842105
| 1
| 0
| 0.040487
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.026316
| false
| 0
| 0.026316
| 0
| 0.052632
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 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
|
dc6929b8d65865c9aa2f2eb4875895919dc25243
| 6,261
|
py
|
Python
|
tests/e2e/test_comparatori.py
|
mario33881/blifparser
|
403076573be4a50dc606bda92bf2b9464773d5ca
|
[
"MIT"
] | null | null | null |
tests/e2e/test_comparatori.py
|
mario33881/blifparser
|
403076573be4a50dc606bda92bf2b9464773d5ca
|
[
"MIT"
] | null | null | null |
tests/e2e/test_comparatori.py
|
mario33881/blifparser
|
403076573be4a50dc606bda92bf2b9464773d5ca
|
[
"MIT"
] | null | null | null |
import os
import sys
import unittest
import urllib.request as urllib
import tempfile
try:
import httplib
except ImportError:
import http.client as httplib
# import fsm.py from the ../../blifparser/keywords folder
curr_dir = os.path.realpath(os.path.dirname(__file__))
blifparser_path = os.path.join(curr_dir, "..", "..", "blifparser")
sys.path.insert(1, os.path.realpath(blifparser_path))
import blifparser # noqa: E402
baseurl = "https://raw.githubusercontent.com/arc6-202021/lib_componenti_sis/1041cc3fb4998fa1a509b3381a136ad626330cb4/"
def have_internet():
"""
Returns True if the Internet connection is present.
"""
conn = httplib.HTTPConnection("www.google.com", timeout=5)
try:
conn.request("HEAD", "/")
conn.close()
return True
except Exception:
conn.close()
return False
class TestComparatori(unittest.TestCase):
def test_comparatore2(self):
fileurl = baseurl + "comparatori/comparatore2.blif"
# request the file
blif_file = urllib.urlopen(fileurl)
# create a temporary folder to download the file
with tempfile.TemporaryDirectory() as td:
f_name = os.path.join(td, 'tmp_file')
# write the BLIF file to a local file
with open(f_name, 'wb') as fh:
line = blif_file.readline()
while line.decode() != "":
fh.write(line)
line = blif_file.readline()
# parse the downloaded file
blif = blifparser.BlifParser(f_name).blif
# check .model, .inputs, .outputs
self.assertEqual(blif.model.name, "comparatore2")
self.assertEqual(blif.inputs.inputs, ["A1", "A0", "B1", "B0"])
self.assertEqual(blif.outputs.outputs, ["O"])
# check .search
self.assertEqual(len(blif.imports), 1)
self.assertEqual(blif.imports[0].filepath, "xnor.blif")
# check .subckt
self.assertEqual(len(blif.subcircuits), 2)
self.assertEqual(blif.subcircuits[0].modelname, "xnor")
self.assertEqual(blif.subcircuits[0].params, ["A=A1", "B=B1", "O=X1"])
self.assertEqual(blif.subcircuits[1].modelname, "xnor")
self.assertEqual(blif.subcircuits[1].params, ["A=A0", "B=B0", "O=X0"])
# check .names
self.assertEqual(len(blif.booleanfunctions), 1)
self.assertEqual(blif.booleanfunctions[0].inputs, ["X1", "X0"])
self.assertEqual(blif.booleanfunctions[0].output, "O")
self.assertEqual(blif.booleanfunctions[0].truthtable, [['1', '1', '1']])
# check number of occurrencies of keywords
self.assertEqual(blif.nkeywords[".model"], 1)
self.assertEqual(blif.nkeywords[".inputs"], 1)
self.assertEqual(blif.nkeywords[".outputs"], 1)
self.assertEqual(blif.nkeywords[".search"], 1)
self.assertEqual(blif.nkeywords[".subckt"], 2)
self.assertEqual(blif.nkeywords[".names"], 1)
self.assertEqual(blif.nkeywords[".end"], 1)
# there shouldn't be any problem in the file
self.assertEqual(len(blif.problems), 0)
def test_comparatore4(self):
fileurl = baseurl + "comparatori/comparatore4.blif"
# request the file
blif_file = urllib.urlopen(fileurl)
# create a temporary folder to download the file
with tempfile.TemporaryDirectory() as td:
f_name = os.path.join(td, 'tmp_file')
# write the BLIF file to a local file
with open(f_name, 'wb') as fh:
line = blif_file.readline()
while line.decode() != "":
fh.write(line)
line = blif_file.readline()
# parse the downloaded file
blif = blifparser.BlifParser(f_name).blif
# check .model, .inputs, .outputs
self.assertEqual(blif.model.name, "comparatore4")
self.assertEqual(blif.inputs.inputs, ["A3", "A2", "A1", "A0", "B3", "B2", "B1", "B0"])
self.assertEqual(blif.outputs.outputs, ["O"])
# check .search
self.assertEqual(len(blif.imports), 1)
self.assertEqual(blif.imports[0].filepath, "xnor.blif")
# check .subckt
self.assertEqual(len(blif.subcircuits), 4)
self.assertEqual(blif.subcircuits[0].modelname, "xnor")
self.assertEqual(blif.subcircuits[0].params, ["A=A3", "B=B3", "O=X3"])
self.assertEqual(blif.subcircuits[1].modelname, "xnor")
self.assertEqual(blif.subcircuits[1].params, ["A=A2", "B=B2", "O=X2"])
self.assertEqual(blif.subcircuits[2].modelname, "xnor")
self.assertEqual(blif.subcircuits[2].params, ["A=A1", "B=B1", "O=X1"])
self.assertEqual(blif.subcircuits[3].modelname, "xnor")
self.assertEqual(blif.subcircuits[3].params, ["A=A0", "B=B0", "O=X0"])
# check .names
self.assertEqual(len(blif.booleanfunctions), 1)
self.assertEqual(blif.booleanfunctions[0].inputs, ["X3", "X2", "X1", "X0"])
self.assertEqual(blif.booleanfunctions[0].output, "O")
self.assertEqual(blif.booleanfunctions[0].truthtable, [['1', '1', '1', '1', '1']])
# check number of occurrencies of keywords
self.assertEqual(blif.nkeywords[".model"], 1)
self.assertEqual(blif.nkeywords[".inputs"], 1)
self.assertEqual(blif.nkeywords[".outputs"], 1)
self.assertEqual(blif.nkeywords[".search"], 1)
self.assertEqual(blif.nkeywords[".subckt"], 4)
self.assertEqual(blif.nkeywords[".names"], 1)
self.assertEqual(blif.nkeywords[".end"], 1)
# there shouldn't be any problem in the file
self.assertEqual(len(blif.problems), 0)
if __name__ == "__main__":
if have_internet():
unittest.main()
else:
print("Can't test BlifParser(): there is no Internet")
| 39.377358
| 119
| 0.5793
| 691
| 6,261
| 5.196816
| 0.217077
| 0.200501
| 0.21164
| 0.077973
| 0.751323
| 0.724589
| 0.70064
| 0.70064
| 0.70064
| 0.70064
| 0
| 0.029163
| 0.282543
| 6,261
| 158
| 120
| 39.626582
| 0.770258
| 0.109407
| 0
| 0.505051
| 0
| 0
| 0.101468
| 0.010779
| 0
| 0
| 0
| 0
| 0.484848
| 1
| 0.030303
| false
| 0
| 0.131313
| 0
| 0.191919
| 0.010101
| 0
| 0
| 0
| null | 1
| 1
| 0
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
dc8b06e07dfd551ce467986db544bcec9887e9e4
| 210
|
py
|
Python
|
spymock/utils.py
|
lambdalisue/python-spymock
|
e2095b52bf7ca6252a2666500b1a522d3c6ed4a6
|
[
"MIT"
] | 3
|
2020-12-18T07:33:37.000Z
|
2020-12-19T21:47:42.000Z
|
spymock/utils.py
|
lambdalisue/python-spymock
|
e2095b52bf7ca6252a2666500b1a522d3c6ed4a6
|
[
"MIT"
] | 1
|
2020-12-21T03:22:09.000Z
|
2020-12-21T03:22:09.000Z
|
spymock/utils.py
|
lambdalisue/python-spymock
|
e2095b52bf7ca6252a2666500b1a522d3c6ed4a6
|
[
"MIT"
] | null | null | null |
from unittest.mock import patch
from .spymock import SpyMock
def spy(target, attribute, **kwargs):
return patch.object(
target, attribute, new=SpyMock(getattr(target, attribute)), **kwargs
)
| 21
| 76
| 0.704762
| 25
| 210
| 5.92
| 0.6
| 0.304054
| 0.283784
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.185714
| 210
| 9
| 77
| 23.333333
| 0.865497
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.166667
| false
| 0
| 0.333333
| 0.166667
| 0.666667
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
|
0
| 7
|
dc93ef6b1972ec8d4e613bd350a9e2a97bf36898
| 4,055
|
py
|
Python
|
tests/test_urls_collection_icon.py
|
CubieDev/TheNounProjectAPI
|
6db6031800047421146bc72e74060b8af9a7b3be
|
[
"MIT"
] | 8
|
2019-10-18T21:07:33.000Z
|
2021-01-10T01:36:23.000Z
|
tests/test_urls_collection_icon.py
|
CubieDev/TheNounProjectAPI
|
6db6031800047421146bc72e74060b8af9a7b3be
|
[
"MIT"
] | 1
|
2020-07-20T14:00:21.000Z
|
2020-08-24T10:13:04.000Z
|
tests/test_urls_collection_icon.py
|
CubieDev/TheNounProjectAPI
|
6db6031800047421146bc72e74060b8af9a7b3be
|
[
"MIT"
] | 1
|
2021-07-22T01:52:04.000Z
|
2021-07-22T01:52:04.000Z
|
import unittest
import context
from TheNounProjectAPI.api import API
from TheNounProjectAPI.exceptions import IncorrectType
class CollectionIconsURLs(unittest.TestCase):
def setUp(self):
key = "mock api key to satisfy type check in api._get_oauth()"
secret = "mock secret key to satisfy type check in api._get_oauth()"
self.api = API(key, secret, testing=True)
def _test_get_collection_icons_by_id(self, _id, limit=None, offset=None, page=None):
"""
Helper function to call api's get_collection_icons_by_id in such a way that we only get the URL
and don't actually make the request.
"""
return self.api.get_collection_icons_by_id(_id, limit=limit, offset=offset, page=page).url
def test_get_collection_icons_by_id_legal(self):
"""
Test URL for get_collection_icons with id 12
"""
_id = 12
expected = "http://api.thenounproject.com/collection/12/icons"
result = self._test_get_collection_icons_by_id(_id)
self.assertEqual(expected, result)
def test_get_collection_icons_by_id_limit_page(self):
"""
Test URL for get_collection_icons with id 12, with limit 12 and page 3
"""
_id = 12
expected = "http://api.thenounproject.com/collection/12/icons?limit=12&page=3"
limit = 12
page = 3
result = self._test_get_collection_icons_by_id(_id, limit=limit, page=page)
self.assertEqual(expected, result)
def test_get_collection_icons_by_id_offset(self):
"""
Test URL for get_collection_icons with id 12, with offset 12
"""
_id = 12
expected = "http://api.thenounproject.com/collection/12/icons?offset=12"
offset = 12
result = self._test_get_collection_icons_by_id(_id, offset=offset)
self.assertEqual(expected, result)
def test_get_collection_icons_by_id_illegal_identifier(self):
"""
Test URL for get_collection_icons with illegal id 12.0
"""
_id = 12.0
with self.assertRaises(IncorrectType):
self._test_get_collection_icons_by_id(_id)
def _test_get_collection_icons_by_slug(self, slug, limit=None, offset=None, page=None):
"""
Helper function to call api's get_collection_icons_by_slug in such a way that we only get the URL
and don't actually make the request.
"""
return self.api.get_collection_icons_by_slug(slug, limit=limit, offset=offset, page=page).url
def test_get_collection_icons_by_slug_legal(self):
"""
Test URL for get_collection_icons with slug "goat"
"""
slug = "goat"
expected = "http://api.thenounproject.com/collection/goat/icons"
result = self._test_get_collection_icons_by_slug(slug)
self.assertEqual(expected, result)
def test_get_collection_icons_by_slug_limit_page(self):
"""
Test URL for get_collection_icons with slug "goat", with limit 12 and page 3
"""
slug = "goat"
expected = "http://api.thenounproject.com/collection/goat/icons?limit=12&page=3"
limit = 12
page = 3
result = self._test_get_collection_icons_by_slug(slug, limit=limit, page=page)
self.assertEqual(expected, result)
def test_get_collection_icons_by_slug_offset(self):
"""
Test URL for get_collection_icons with slug "goat", with offset 12
"""
slug = "goat"
expected = "http://api.thenounproject.com/collection/goat/icons?offset=12"
offset = 12
result = self._test_get_collection_icons_by_slug(slug, offset=offset)
self.assertEqual(expected, result)
def test_get_collection_icons_by_slug_illegal_identifier(self):
"""
Test URL for get_collection_icons with illegal slug 12
"""
slug = 12
with self.assertRaises(IncorrectType):
self._test_get_collection_icons_by_slug(slug)
if __name__ == "__main__":
unittest.main()
| 36.863636
| 105
| 0.66979
| 547
| 4,055
| 4.661792
| 0.135283
| 0.152941
| 0.211765
| 0.172549
| 0.886275
| 0.883922
| 0.872157
| 0.846275
| 0.836863
| 0.760784
| 0
| 0.018905
| 0.243403
| 4,055
| 110
| 106
| 36.863636
| 0.812256
| 0.18471
| 0
| 0.338983
| 0
| 0.033898
| 0.157843
| 0
| 0
| 0
| 0
| 0
| 0.135593
| 1
| 0.186441
| false
| 0
| 0.067797
| 0
| 0.305085
| 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
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
dca51d971ad57d32bd92ca3a4aef034b2da93c25
| 230
|
py
|
Python
|
Chapter 10/03 - Pytests fixtures/test_fixtures.py
|
bernoli/Expert-Python-Programming-Fourth-Edition
|
05b4bd64c66bea3252f06afee7a7a1e2bd93d171
|
[
"MIT"
] | 56
|
2021-05-24T15:24:51.000Z
|
2022-03-21T19:38:27.000Z
|
Chapter 10/03 - Pytests fixtures/test_fixtures.py
|
saibaldas/Expert-Python-Programming-Fourth-Edition
|
572d47a802e7b1fe429f782d9aeb62f411cb5307
|
[
"MIT"
] | 2
|
2020-11-03T12:53:26.000Z
|
2021-05-11T23:47:39.000Z
|
Chapter 10/03 - Pytests fixtures/test_fixtures.py
|
saibaldas/Expert-Python-Programming-Fourth-Edition
|
572d47a802e7b1fe429f782d9aeb62f411cb5307
|
[
"MIT"
] | 37
|
2021-05-27T12:32:21.000Z
|
2022-03-10T23:05:54.000Z
|
import pytest
@pytest.fixture
def dependency():
return "fixture value"
@pytest.fixture
def dependency_as_generator():
# setup code
yield "fixture value"
# teardown code
def test_fixture(dependency):
pass
| 12.777778
| 30
| 0.704348
| 27
| 230
| 5.888889
| 0.555556
| 0.163522
| 0.201258
| 0.327044
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.213043
| 230
| 17
| 31
| 13.529412
| 0.878453
| 0.104348
| 0
| 0.222222
| 0
| 0
| 0.128079
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0.111111
| 0.111111
| 0.111111
| 0.555556
| 0
| 1
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 1
| 0
|
0
| 7
|
f4c4b0395b9b3432442a13c1b8608f2fccf4287f
| 197
|
py
|
Python
|
dags/config/__init__.py
|
geosolutions-it/getit-airflow
|
f302d964f42cc20ed3d0d5df892b4b7e78db25e1
|
[
"MIT"
] | 1
|
2020-04-19T08:33:43.000Z
|
2020-04-19T08:33:43.000Z
|
dags/config/__init__.py
|
alegent/ibf-airflow
|
1139616e64a9beebe29b7d416cdc1e999d588a13
|
[
"MIT"
] | 3
|
2020-04-17T10:17:22.000Z
|
2020-05-27T07:55:28.000Z
|
dags/config/__init__.py
|
alegent/ibf-airflow
|
1139616e64a9beebe29b7d416cdc1e999d588a13
|
[
"MIT"
] | 2
|
2020-05-07T07:03:17.000Z
|
2020-05-20T08:15:41.000Z
|
try:
from settings import *
from override.settings import *
from override.secrets import *
# legacy
from xcom_keys import *
from workflow_settings import *
except:
pass
| 19.7
| 35
| 0.680203
| 23
| 197
| 5.73913
| 0.521739
| 0.318182
| 0.272727
| 0.393939
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.269036
| 197
| 9
| 36
| 21.888889
| 0.916667
| 0.030457
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.125
| 0.625
| 0
| 0.625
| 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
| 1
| 1
| 0
| 1
| 0
|
0
| 9
|
7626518a79f4f6b7106e7b88f738eb7059924d87
| 592
|
py
|
Python
|
test/debug_sample.py
|
trungtv/imgann
|
130b2968dc5d1d8ecd513900291169e688869438
|
[
"MIT"
] | null | null | null |
test/debug_sample.py
|
trungtv/imgann
|
130b2968dc5d1d8ecd513900291169e688869438
|
[
"MIT"
] | null | null | null |
test/debug_sample.py
|
trungtv/imgann
|
130b2968dc5d1d8ecd513900291169e688869438
|
[
"MIT"
] | null | null | null |
from imgann import Sample
Sample.show_samples('F:\JetBrain Project Files\Pycharm\security-point-object-detecton-Torch\data\data',
'F:\JetBrain Project Files\Pycharm\security-point-object-detecton-Torch\data\COCO\dataset.json',6,'coc')
# Sample.describe_ann('F:\JetBrain Project Files\Pycharm\security-point-object-detecton-Torch\data\data',
# 'F:\JetBrain Project Files\Pycharm\security-point-object-detecton-Torch\data\COCO\dataset.json')
# Sample.describe_data('F:\JetBrain Project Files\Pycharm\security-point-object-detecton-Torch\data\data')
| 53.818182
| 125
| 0.748311
| 79
| 592
| 5.56962
| 0.303797
| 0.102273
| 0.181818
| 0.238636
| 0.831818
| 0.831818
| 0.831818
| 0.831818
| 0.831818
| 0.831818
| 0
| 0.001905
| 0.113176
| 592
| 10
| 126
| 59.2
| 0.83619
| 0.548986
| 0
| 0
| 0
| 0.666667
| 0.671756
| 0.507634
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.333333
| 0
| 0.333333
| 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
| 1
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 13
|
5239c024899b5e655a7ed966be086719e414fea8
| 23,413
|
py
|
Python
|
tests/test_rwlock_async.py
|
kdeyev/pyReaderWriterLock
|
7836c7d724b839a974089773c2f6449c39e9c8d2
|
[
"MIT"
] | 62
|
2016-06-27T13:19:31.000Z
|
2022-03-02T10:51:32.000Z
|
tests/test_rwlock_async.py
|
kdeyev/pyReaderWriterLock
|
7836c7d724b839a974089773c2f6449c39e9c8d2
|
[
"MIT"
] | 12
|
2018-09-26T08:17:55.000Z
|
2021-09-21T04:51:53.000Z
|
tests/test_rwlock_async.py
|
kdeyev/pyReaderWriterLock
|
7836c7d724b839a974089773c2f6449c39e9c8d2
|
[
"MIT"
] | 12
|
2018-05-02T04:10:47.000Z
|
2021-08-10T12:05:33.000Z
|
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Unit tests for rwlock_async."""
import unittest
import sys
import time
import asyncio
from typing import Union
from readerwriterlock import rwlock_async
class TestRWLock_Async(unittest.TestCase):
"""Test RWLock different strategies."""
def setUp(self) -> None:
"""Test setup."""
self.c_rwlock_type_downgradable = (rwlock_async.RWLockReadD, rwlock_async.RWLockWriteD, rwlock_async.RWLockFairD)
self.c_rwlock_type = (rwlock_async.RWLockRead, rwlock_async.RWLockWrite, rwlock_async.RWLockFair) + self.c_rwlock_type_downgradable
def test_multi_async(self) -> None:
"""
# Given: Bunch of reader & writer lock generated from a RW lock.
# When: Locking/unlocking in a multi thread setup.
# Then: the locks shall not deadlock.
"""
s_period_sec: int = 30
print(f"\ntest_MultiThread {s_period_sec * len(self.c_rwlock_type)} sec…", flush=True)
exception_occured: bool = False
async def test_it():
for c_curr_lock_type in self.c_rwlock_type:
with self.subTest(c_curr_lock_type):
print(f" {c_curr_lock_type} …", end="", flush=True)
c_curr_rw_lock: Union[rwlock_async.RWLockable, rwlock_async.RWLockableD] = c_curr_lock_type()
v_value: int = 0
async def downgrader1() -> None:
"""Downgrader using a blocking acquire strategy."""
if c_curr_lock_type not in self.c_rwlock_type_downgradable: return
try:
nonlocal v_value
c_enter_time: float = time.time()
while time.time() - c_enter_time <= s_period_sec:
c_lock_w1: Union[rwlock_async.Lockable, rwlock_async.LockableD] = await c_curr_rw_lock.gen_wlock()
self.assertIsInstance(obj=c_lock_w1, cls=rwlock_async.LockableD, msg=type(c_lock_w1))
await asyncio.sleep(sys.float_info.min)
locked: bool = await c_lock_w1.acquire()
if locked:
try:
# Assert like a writer
v_temp = v_value
v_value += 1
self.assertEqual(v_value, (v_temp + 1))
self.assertIsInstance(obj=c_lock_w1, cls=rwlock_async.LockableD, msg=type(c_lock_w1))
assert isinstance(c_lock_w1, rwlock_async.LockableD) # This is redundant, but it makes mypy happy
c_lock_w1 = await c_lock_w1.downgrade()
self.assertIsInstance(obj=c_lock_w1, cls=rwlock_async.Lockable, msg=type(c_lock_w1))
# Assert like a reader
vv_value: int = v_value
await asyncio.sleep(sys.float_info.min)
self.assertEqual(vv_value, v_value)
await asyncio.sleep(sys.float_info.min)
finally:
await c_lock_w1.release()
except BaseException: # pragma: no cover
nonlocal exception_occured
exception_occured = True
raise
async def writer1() -> None:
"""Writer using a blocking acquire strategy."""
try:
nonlocal v_value
c_enter_time: float = time.time()
c_lock_w1 = await c_curr_rw_lock.gen_wlock()
while time.time() - c_enter_time <= s_period_sec:
await asyncio.sleep(sys.float_info.min)
async with c_lock_w1:
v_temp = v_value
v_value += 1
self.assertEqual(v_value, v_temp + 1)
await asyncio.sleep(sys.float_info.min)
except BaseException: # pragma: no cover
nonlocal exception_occured
exception_occured = True
raise
async def writer2() -> None:
"""Writer using a timeout blocking acquire strategy."""
try:
nonlocal v_value
c_enter_time: float = time.time()
c_lock_w1 = await c_curr_rw_lock.gen_wlock()
while time.time() - c_enter_time <= s_period_sec:
await asyncio.sleep(sys.float_info.min)
locked: bool
try:
locked = await c_lock_w1.acquire(blocking=True, timeout=0.1)
if locked:
v_temp = v_value
v_value += 1
self.assertEqual(v_value, (v_temp + 1))
await asyncio.sleep(sys.float_info.min)
finally:
if locked:
await c_lock_w1.release()
except BaseException: # pragma: no cover
nonlocal exception_occured
exception_occured = True
raise
async def reader1() -> None:
"""Reader using a no timeout blocking acquire strategy."""
try:
nonlocal v_value
c_enter_time: float = time.time()
c_lock_r1 = await c_curr_rw_lock.gen_rlock()
while time.time() - c_enter_time <= s_period_sec:
await asyncio.sleep(sys.float_info.min)
async with c_lock_r1:
vv_value: int = v_value
await asyncio.sleep(sys.float_info.min)
self.assertEqual(vv_value, v_value)
except BaseException: # pragma: no cover
nonlocal exception_occured
exception_occured = True
raise
async def reader2() -> None:
"""Reader using a timeout blocking acquire strategy."""
try:
nonlocal v_value
c_enter_time: float = time.time()
c_lock_r2 = await c_curr_rw_lock.gen_rlock()
while time.time() - c_enter_time <= s_period_sec:
await asyncio.sleep(sys.float_info.min)
locked: bool = False
try:
locked = await c_lock_r2.acquire(blocking=True, timeout=0.1)
if locked:
vv_value: int = v_value
await asyncio.sleep(sys.float_info.min)
self.assertEqual(vv_value, v_value)
finally:
if locked:
await c_lock_r2.release()
except BaseException: # pragma: no cover
nonlocal exception_occured
exception_occured = True
raise
tasks = []
for _ in range(50):
tasks.extend([writer1(), writer2(), reader1(), reader2(), downgrader1()])
await asyncio.gather(*tasks)
self.assertGreater(v_value, 0)
self.assertFalse(exception_occured)
print("\x1b[1;32m✓\x1b[0m", flush=True)
eloop = asyncio.get_event_loop()
eloop.run_until_complete(test_it())
self.assertEqual(len(asyncio.all_tasks(eloop)), 0)
class TestRWLockSpecificCase(unittest.TestCase):
"""Test RW Locks in specific requirements."""
def setUp(self) -> None:
"""Test setup."""
self.c_rwlock_type_downgradable = (rwlock_async.RWLockWriteD, rwlock_async.RWLockFairD, rwlock_async.RWLockReadD)
self.c_rwlock_type = (rwlock_async.RWLockRead, rwlock_async.RWLockWrite, rwlock_async.RWLockFair) + self.c_rwlock_type_downgradable
def test_write_req00(self) -> None:
"""
# Given: a RW lock type.
# When: requesting a new instance without parameters.
# Then: a new RW lock is provided.
"""
# ## Arrange
for current_rw_lock_type in self.c_rwlock_type:
with self.subTest(current_rw_lock_type):
# ## Act
result = current_rw_lock_type()
# ## Assert
self.assertIsInstance(obj=result, cls=current_rw_lock_type, msg=type(result))
def test_write_req01(self) -> None:
"""
# Given: a RW lock type.
# When: requesting a new instance with all possible parameters.
# Then: a new RW lock is provided.
"""
# ## Arrange
for current_rw_lock_type in self.c_rwlock_type:
with self.subTest(current_rw_lock_type):
# ## Act
result = current_rw_lock_type(lock_factory=asyncio.Lock, time_source=time.perf_counter)
# ## Assert
self.assertIsInstance(obj=result, cls=current_rw_lock_type, msg=type(result))
def test_write_req02(self) -> None:
"""
# Given: a RW lock type to instantiate a RW lock.
# When: generating reader lock using the instance.
# Then: an unlocked reader lock is provided.
"""
# ## Arrange
eloop = asyncio.get_event_loop()
async def test_it():
for current_rw_lock_type in self.c_rwlock_type:
with self.subTest(current_rw_lock_type):
# ## Act
result = await current_rw_lock_type().gen_rlock()
# ## Assert
self.assertIsInstance(result, rwlock_async.Lockable)
self.assertFalse(result.locked())
eloop.run_until_complete(test_it())
def test_write_req03(self) -> None:
"""
# Given: a RW lock type to instantiate a RW lock.
# When: generating writer lock using the instance.
# Then: an unlocked writer lock is provided.
"""
# ## Arrange
eloop = asyncio.get_event_loop()
async def test_it():
for current_rw_lock_type in self.c_rwlock_type:
with self.subTest(current_rw_lock_type):
# ## Act
result = await current_rw_lock_type().gen_wlock()
# ## Assert
self.assertIsInstance(obj=result, cls=rwlock_async.Lockable, msg=type(result))
self.assertFalse(result.locked())
eloop.run_until_complete(test_it())
def test_write_req04(self) -> None:
"""
# Given: a RW lock type to instantiate a RW lock.
# When: generating reader/writer lock using the instance.
# Then: the generated locks support context manager.
"""
# ## Arrange
eloop = asyncio.get_event_loop()
async def test_it():
for current_rw_lock_type in self.c_rwlock_type:
with self.subTest(current_rw_lock_type):
for current_lock in (await current_rw_lock_type().gen_rlock(), await current_rw_lock_type().gen_wlock()):
with self.subTest(current_lock):
# ## Assume
self.assertFalse(current_lock.locked())
# ## Act
async with current_lock:
# ## Assert
self.assertTrue(current_lock.locked())
self.assertFalse(current_lock.locked())
eloop.run_until_complete(test_it())
def test_write_req05(self) -> None:
"""
# Given: a RW lock type to instantiate a RW lock.
# When: generating reader/writer lock using the instance.
# Then: the generated locks raise an exception if released while being unlocked.
"""
# ## Arrange
eloop = asyncio.get_event_loop()
async def test_it():
try:
await asyncio.Lock().release()
except RuntimeError as exc:
for current_rw_lock_type in self.c_rwlock_type:
with self.subTest(current_rw_lock_type):
for current_lock in (await current_rw_lock_type().gen_rlock(), await current_rw_lock_type().gen_wlock()):
with self.subTest(current_lock):
with self.assertRaises(exc.__class__) as err:
# ## Act
await current_lock.release()
self.assertEqual(str(err.exception), str(exc))
else:
self.fail()
eloop.run_until_complete(test_it())
def test_write_req06(self) -> None:
"""
# Given: a RW lock type to instantiate a RW lock.
# When: generating reader/writer lock using the instance and a writer successfully acquire its lock.
# Then: No other writer can successfully acquire a lock in a non blocking way.
"""
# ## Arrange
eloop = asyncio.get_event_loop()
for current_rw_lock_type in self.c_rwlock_type:
with self.subTest(current_rw_lock_type):
async def test_it():
current_lock = current_rw_lock_type()
async with await current_lock.gen_wlock():
# ## Act
result: bool = await (await current_lock.gen_wlock()).acquire(blocking=False)
# ## Assert
self.assertFalse(result)
eloop.run_until_complete(test_it())
def test_write_req07(self) -> None:
"""
# Given: a RW lock type to instantiate a RW lock.
# When: generating reader/writer lock using the instance and a writer successfully acquire its lock.
# Then: No reader can successfully acquire a lock in a non blocking way.
"""
# ## Arrange
eloop = asyncio.get_event_loop()
for current_rw_lock_type in self.c_rwlock_type:
with self.subTest(current_rw_lock_type):
async def test_it():
current_lock = current_rw_lock_type()
async with await current_lock.gen_wlock():
# ## Act
result: bool = await (await current_lock.gen_rlock()).acquire(blocking=False)
# ## Assert
self.assertFalse(result)
eloop.run_until_complete(test_it())
def test_write_req08(self) -> None:
"""
# Given: a RW lock type to instantiate a RW lock.
# When: generating reader/writer lock using the instance and a writer successfully acquire its lock.
# Then: No other writer can successfully acquire a lock in a blocking way.
"""
# ## Arrange
eloop = asyncio.get_event_loop()
for current_rw_lock_type in self.c_rwlock_type:
with self.subTest(current_rw_lock_type):
async def test_it():
current_lock = current_rw_lock_type()
async with await current_lock.gen_wlock():
# ## Act
result: bool = await (await current_lock.gen_wlock()).acquire(blocking=True, timeout=0.75)
# ## Assert
self.assertFalse(result)
eloop.run_until_complete(test_it())
def test_write_req09(self) -> None:
"""
# Given: a RW lock type to instantiate a RW lock.
# When: generating reader/writer lock using the instance and a writer successfully acquire its lock.
# Then: No reader can successfully acquire a lock in a blocking way.
"""
# ## Arrange
eloop = asyncio.get_event_loop()
for current_rw_lock_type in self.c_rwlock_type:
with self.subTest(current_rw_lock_type):
async def test_it():
current_lock = current_rw_lock_type()
async with await current_lock.gen_wlock():
# ## Act
result = await (await current_lock.gen_rlock()).acquire(blocking=True, timeout=0.75)
# ## Assert
self.assertFalse(result)
eloop.run_until_complete(test_it())
def test_write_req10(self) -> None:
"""
# Given: a RW lock type to instantiate a RW lock.
# When: generating reader/writer lock using the instance and a reader successfully acquire its lock.
# Then: No other writer can successfully acquire a lock in a non blocking way.
"""
# ## Arrange
eloop = asyncio.get_event_loop()
for current_rw_lock_type in self.c_rwlock_type:
with self.subTest(current_rw_lock_type):
async def test_it():
current_lock = current_rw_lock_type()
async with await current_lock.gen_rlock():
# ## Act
result: bool = await (await current_lock.gen_wlock()).acquire(blocking=False)
# ## Assert
self.assertFalse(result)
eloop.run_until_complete(test_it())
def test_write_req11(self) -> None:
"""
# Given: a RW lock type to instantiate a RW lock.
# When: generating reader/writer lock using the instance and a reader successfully acquire its lock.
# Then: No other writer can successfully acquire a lock in a blocking way.
"""
# ## Arrange
eloop = asyncio.get_event_loop()
for current_rw_lock_type in self.c_rwlock_type:
with self.subTest(current_rw_lock_type):
async def test_it():
current_lock = current_rw_lock_type()
async with await current_lock.gen_rlock():
# ## Act
result: bool = await (await current_lock.gen_wlock()).acquire(blocking=True, timeout=0.75)
# ## Assert
self.assertFalse(result)
eloop.run_until_complete(test_it())
def test_write_req12(self) -> None:
"""
# Given: a RW lock type to instantiate a RW lock.
# When: generating reader/writer lock using the instance and a reader successfully acquire its lock.
# Then: other reader can also successfully acquire a lock in a non-blocking way.
"""
# ## Arrange
eloop = asyncio.get_event_loop()
for current_rw_lock_type in self.c_rwlock_type:
with self.subTest(current_rw_lock_type):
async def test_it():
current_lock = current_rw_lock_type()
async with await current_lock.gen_rlock():
other_lock = await current_lock.gen_rlock()
# ## Act
result: bool = await other_lock.acquire(blocking=False)
# ## Assert
self.assertTrue(result)
eloop.run_until_complete(test_it())
def test_write_req13(self) -> None:
"""
# Given: a RW lock type to instantiate a RW lock.
# When: generating reader/writer lock using the instance and a reader successfully acquire its lock.
# Then: other reader can also successfully acquire a lock in a blocking way.
"""
# ## Arrange
eloop = asyncio.get_event_loop()
for current_rw_lock_type in self.c_rwlock_type:
with self.subTest(current_rw_lock_type):
async def test_it():
current_lock = current_rw_lock_type()
async with await current_lock.gen_rlock():
# ## Act
other_lock = await current_lock.gen_rlock()
try:
result: bool = await other_lock.acquire(blocking=True, timeout=0.75)
# ## Assert
self.assertTrue(result)
# ## Clean
finally:
await other_lock.release()
eloop.run_until_complete(test_it())
def test_write_req14(self) -> None:
"""
# Given: a Downgradable RW lock type to instantiate a RW lock.
# When: A a generated writer lock successfully acquire its lock.
# Then: It is possible to downgrade Locked Write to Locked Read.
"""
# ## Arrange
eloop = asyncio.get_event_loop()
for current_rw_lock_type in self.c_rwlock_type_downgradable:
with self.subTest(current_rw_lock_type):
async def test_it():
current_rw_lock = current_rw_lock_type()
self.assertIsInstance(obj=current_rw_lock, cls=rwlock_async.RWLockableD, msg=type(current_rw_lock))
current_lock: Union[rwlock_async.LockableD, rwlock_async.Lockable] = await current_rw_lock.gen_wlock()
other_lock = await current_rw_lock.gen_rlock()
self.assertFalse(current_lock.locked())
self.assertTrue(await current_lock.acquire())
self.assertTrue(current_lock.locked())
self.assertFalse(other_lock.locked())
try:
# ## Act
self.assertFalse(await other_lock.acquire(blocking=False))
self.assertIsInstance(obj=current_lock, cls=rwlock_async.LockableD, msg=type(current_lock))
current_lock = await current_lock.downgrade()
self.assertTrue(await other_lock.acquire())
self.assertTrue(other_lock.locked())
finally:
await current_lock.release()
try:
result: bool = await other_lock.acquire(blocking=True, timeout=0.75)
# ## Assert
self.assertTrue(result)
finally:
# ## Clean
await other_lock.release()
eloop.run_until_complete(test_it())
def test_write_req15(self) -> None:
"""
# Given: a Downgradable RW lock type to instantiate a RW lock.
# When: A a generated writer lock is downgrade but it wasn't in a locked state.
# Then: the generated locks raise an exception if released while being unlocked.
"""
# ## Arrange
eloop = asyncio.get_event_loop()
for current_rw_lock_type in self.c_rwlock_type_downgradable:
with self.subTest(current_rw_lock_type):
async def test_it():
current_rw_lock = current_rw_lock_type()
self.assertIsInstance(obj=current_rw_lock, cls=rwlock_async.RWLockableD, msg=type(current_rw_lock))
current_lock: Union[rwlock_async.LockableD] = await current_rw_lock.gen_wlock()
with self.assertRaises(rwlock_async.RELEASE_ERR_CLS) as err:
await current_lock.release()
self.assertEqual(str(err.exception), str(rwlock_async.RELEASE_ERR_MSG))
with self.assertRaises(rwlock_async.RELEASE_ERR_CLS):
# ## Assume
self.assertFalse(current_lock.locked())
# ## Act
await current_lock.downgrade()
self.assertFalse(current_lock.locked())
eloop.run_until_complete(test_it())
class TestWhiteBoxRWLockReadD(unittest.TestCase):
"""Test RWLockReadD internal specifity."""
def test_read_vs_downgrade_read(self) -> None:
"""
# Given: Instance of RWLockReadD.
# When: A reader lock is acquired OR A writer lock is downgraded.
# Then: The internal state should be the same.
"""
# ## Arrange
c_rwlock_1 = rwlock_async.RWLockReadD()
c_rwlock_2 = rwlock_async.RWLockReadD()
eloop = asyncio.get_event_loop()
async def test_it():
def assert_internal_state():
self.assertEqual(int(c_rwlock_1.v_read_count), int(c_rwlock_2.v_read_count))
self.assertEqual(c_rwlock_1.c_resource.locked(), c_rwlock_2.c_resource.locked())
self.assertEqual(c_rwlock_1.c_lock_read_count.locked(), c_rwlock_2.c_lock_read_count.locked())
# ## Assume
assert_internal_state()
# ## Act
a_read_lock = await c_rwlock_1.gen_rlock()
await a_read_lock.acquire()
a_downgrade_lock: Union[rwlock_async.Lockable, rwlock_async.LockableD] = await c_rwlock_2.gen_wlock()
await a_downgrade_lock.acquire()
self.assertIsInstance(a_downgrade_lock, rwlock_async.LockableD)
a_downgrade_lock = await a_downgrade_lock.downgrade()
# ## Assert
assert_internal_state()
await a_read_lock.release()
await a_downgrade_lock.release()
assert_internal_state()
eloop.run_until_complete(test_it())
def test_read_vs_downgrade_write(self) -> None:
"""
# Given: Instance of RWLockWriteD.
# When: A reader lock is acquired OR A writer lock is downgraded.
# Then: The internal state should be the same.
"""
# ## Arrange
c_rwlock_1 = rwlock_async.RWLockWriteD()
c_rwlock_2 = rwlock_async.RWLockWriteD()
eloop = asyncio.get_event_loop()
def assert_internal_state():
self.assertEqual(int(c_rwlock_1.v_read_count), int(c_rwlock_2.v_read_count))
self.assertEqual(int(c_rwlock_1.v_write_count), int(c_rwlock_2.v_write_count))
self.assertEqual(c_rwlock_1.c_lock_read_count.locked(), c_rwlock_2.c_lock_read_count.locked())
self.assertEqual(c_rwlock_1.c_lock_write_count.locked(), c_rwlock_2.c_lock_write_count.locked())
self.assertEqual(c_rwlock_1.c_lock_read_entry.locked(), c_rwlock_2.c_lock_read_entry.locked())
self.assertEqual(c_rwlock_1.c_lock_read_try.locked(), c_rwlock_2.c_lock_read_try.locked())
self.assertEqual(c_rwlock_1.c_resource.locked(), c_rwlock_2.c_resource.locked())
async def test_it():
# ## Assume
assert_internal_state()
# ## Act
a_read_lock = await c_rwlock_1.gen_rlock()
await a_read_lock.acquire()
a_downgrade_lock: Union[rwlock_async.LockableD, rwlock_async.Lockable] = await c_rwlock_2.gen_wlock()
await a_downgrade_lock.acquire()
self.assertIsInstance(obj=a_downgrade_lock, cls=rwlock_async.LockableD, msg=type(a_downgrade_lock))
a_downgrade_lock = await a_downgrade_lock.downgrade()
# ## Assert
assert_internal_state()
await a_read_lock.release()
await a_downgrade_lock.release()
assert_internal_state()
eloop.run_until_complete(test_it())
def test_read_vs_downgrade_fair(self) -> None:
"""
# Given: Instance of RWLockFairD.
# When: A reader lock is acquired OR A writer lock is downgraded.
# Then: The internal state should be the same.
"""
# ## Arrange
c_rwlock_1 = rwlock_async.RWLockFairD()
c_rwlock_2 = rwlock_async.RWLockFairD()
eloop = asyncio.get_event_loop()
def assert_internal_state():
"""Assert internal."""
self.assertEqual(int(c_rwlock_1.v_read_count), int(c_rwlock_2.v_read_count))
self.assertEqual(c_rwlock_1.c_lock_read_count.locked(), c_rwlock_2.c_lock_read_count.locked())
self.assertEqual(c_rwlock_1.c_lock_read.locked(), c_rwlock_2.c_lock_read.locked())
self.assertEqual(c_rwlock_1.c_lock_write.locked(), c_rwlock_2.c_lock_write.locked())
async def test_it():
# ## Assume
assert_internal_state()
# ## Act
a_read_lock = await c_rwlock_1.gen_rlock()
await a_read_lock.acquire()
a_downgrade_lock: Union[rwlock_async.LockableD, rwlock_async.Lockable] = await c_rwlock_2.gen_wlock()
await a_downgrade_lock.acquire()
self.assertIsInstance(obj=a_downgrade_lock, cls=rwlock_async.LockableD, msg=type(a_downgrade_lock))
a_downgrade_lock = await a_downgrade_lock.downgrade()
# ## Assert
assert_internal_state()
await a_read_lock.release()
await a_downgrade_lock.release()
assert_internal_state()
eloop.run_until_complete(test_it())
if "__main__" == __name__:
unittest.main(failfast=False) # pragma: no cover
| 34.430882
| 133
| 0.703925
| 3,324
| 23,413
| 4.675391
| 0.075812
| 0.038608
| 0.043755
| 0.056882
| 0.856637
| 0.826845
| 0.802715
| 0.770864
| 0.75748
| 0.723763
| 0
| 0.007647
| 0.195661
| 23,413
| 679
| 134
| 34.481591
| 0.817226
| 0.197155
| 0
| 0.709184
| 0
| 0
| 0.006334
| 0.001333
| 0
| 0
| 0
| 0
| 0.196429
| 1
| 0.063776
| false
| 0
| 0.015306
| 0
| 0.086735
| 0.007653
| 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
|
52728b59c019551fa10b53007e4a9e6a8af7538a
| 1,408
|
py
|
Python
|
utils/listFileSummaries.py
|
Neilstid/DBSClient-1
|
27894eedee2036564ae054231675dcb951395fb9
|
[
"Apache-2.0"
] | 1
|
2021-07-02T14:51:49.000Z
|
2021-07-02T14:51:49.000Z
|
utils/listFileSummaries.py
|
Neilstid/DBSClient-1
|
27894eedee2036564ae054231675dcb951395fb9
|
[
"Apache-2.0"
] | 35
|
2021-07-30T14:47:52.000Z
|
2022-03-19T12:45:44.000Z
|
utils/listFileSummaries.py
|
Neilstid/DBSClient-1
|
27894eedee2036564ae054231675dcb951395fb9
|
[
"Apache-2.0"
] | 6
|
2021-07-02T14:34:41.000Z
|
2022-01-25T22:57:04.000Z
|
from dbs.apis.dbsClient import *
url="https://cmsweb.cern.ch/dbs/prod/global/DBSReader/"
#url="https://dbs3-test2.cern.ch/dbs/dev/global/DBSReader/"
dbs3api = DbsApi(url=url)
dataset = '/JetHT/Run2018A-v1/RAW'
print(dbs3api.listFileSummaries(dataset=dataset, validFileOnly=1))
print("\n")
print(dbs3api.listFileSummaries(dataset=dataset))
print("\n")
block='/JetHT/Run2018A-v1/RAW#e347a08b-e10d-49a5-b704-f4a2bdae190a'
print(dbs3api.listFileSummaries(block_name=block, validFileOnly=1))
print("\n")
block='/JetHT/Run2018A-v1/RAW#e347a08b-e10d-49a5-b704-f4a2bdae190a'
print(dbs3api.listFileSummaries(block_name=block))
print("\n")
dataset = '/DoubleEG/CMSSW_9_2_3_patch2-2017_07_11_19_22_PRref_92X_dataRun2_Prompt_RefGT_week28_2017-v1/RECO'
print(dbs3api.listFileSummaries(dataset=dataset))
print("\n")
dataset = '/DoubleEG/CMSSW_9_2_3_patch2-2017_07_11_19_22_PRref_92X_dataRun2_Prompt_RefGT_week28_2017-v1/RECO'
print(dbs3api.listFileSummaries(dataset=dataset, sumOverLumi=1))
print("\n")
dataset = '/DoubleEG/CMSSW_9_2_3_patch2-2017_07_11_19_22_PRref_92X_dataRun2_Prompt_RefGT_week28_2017-v1/RECO'
print(dbs3api.listFileSummaries(dataset=dataset, run_num=297723))
print("\n")
dataset = '/DoubleEG/CMSSW_9_2_3_patch2-2017_07_11_19_22_PRref_92X_dataRun2_Prompt_RefGT_week28_2017-v1/RECO'
print(dbs3api.listFileSummaries(dataset=dataset, sumOverLumi=1, run_num=297723))
print("\n")
print("All Done")
| 36.102564
| 109
| 0.81392
| 212
| 1,408
| 5.103774
| 0.278302
| 0.088725
| 0.214418
| 0.19963
| 0.813309
| 0.745841
| 0.745841
| 0.7061
| 0.7061
| 0.7061
| 0
| 0.135015
| 0.042614
| 1,408
| 38
| 110
| 37.052632
| 0.667656
| 0.041193
| 0
| 0.592593
| 0
| 0
| 0.445846
| 0.391691
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.037037
| 0
| 0.037037
| 0.62963
| 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
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 9
|
528fc881aefed349a9e1dc27640d07c8a8ee6c20
| 8,258
|
py
|
Python
|
src/larksuiteoapi/service/doc/v2/api.py
|
keeperlibofan/oapi-sdk-python
|
5743dd34eb0bfc30693e9b6e6f5cf35ac82edb26
|
[
"Apache-2.0"
] | null | null | null |
src/larksuiteoapi/service/doc/v2/api.py
|
keeperlibofan/oapi-sdk-python
|
5743dd34eb0bfc30693e9b6e6f5cf35ac82edb26
|
[
"Apache-2.0"
] | null | null | null |
src/larksuiteoapi/service/doc/v2/api.py
|
keeperlibofan/oapi-sdk-python
|
5743dd34eb0bfc30693e9b6e6f5cf35ac82edb26
|
[
"Apache-2.0"
] | null | null | null |
# -*- coding: UTF-8 -*-
# Code generated by lark suite oapi sdk gen
from typing import *
from ....api import Request, Response, set_timeout, set_tenant_key, set_user_access_token, set_path_params, \
set_query_params, set_response_stream, set_is_response_stream, FormData, FormDataFile
from ....config import Config
from ....consts import ACCESS_TOKEN_TYPE_TENANT, ACCESS_TOKEN_TYPE_USER, ACCESS_TOKEN_TYPE_APP
from .model import *
class Service(object):
def __init__(self, conf):
# type: (Config) -> None
self.conf = conf
self.docs = DocService(self)
class DocService(object):
def __init__(self, service):
# type: (Service) -> None
self.service = service
def batch_update(self, body, tenant_key=None, user_access_token=None, timeout=None):
# type: (DocBatchUpdateReqBody, str, str, int) -> DocBatchUpdateReqCall
request_opts = [] # type: List[Callable[[Any], Any]]
if timeout is not None:
request_opts += [set_timeout(timeout)]
if tenant_key is not None:
request_opts += [set_tenant_key(tenant_key)]
if user_access_token is not None:
request_opts += [set_user_access_token(user_access_token)]
return DocBatchUpdateReqCall(self, body, request_opts=request_opts)
def content(self, tenant_key=None, user_access_token=None, timeout=None):
# type: (str, str, int) -> DocContentReqCall
request_opts = [] # type: List[Callable[[Any], Any]]
if timeout is not None:
request_opts += [set_timeout(timeout)]
if tenant_key is not None:
request_opts += [set_tenant_key(tenant_key)]
if user_access_token is not None:
request_opts += [set_user_access_token(user_access_token)]
return DocContentReqCall(self, request_opts=request_opts)
def create(self, body, tenant_key=None, user_access_token=None, timeout=None):
# type: (DocCreateReqBody, str, str, int) -> DocCreateReqCall
request_opts = [] # type: List[Callable[[Any], Any]]
if timeout is not None:
request_opts += [set_timeout(timeout)]
if tenant_key is not None:
request_opts += [set_tenant_key(tenant_key)]
if user_access_token is not None:
request_opts += [set_user_access_token(user_access_token)]
return DocCreateReqCall(self, body, request_opts=request_opts)
def meta(self, tenant_key=None, user_access_token=None, timeout=None):
# type: (str, str, int) -> DocMetaReqCall
request_opts = [] # type: List[Callable[[Any], Any]]
if timeout is not None:
request_opts += [set_timeout(timeout)]
if tenant_key is not None:
request_opts += [set_tenant_key(tenant_key)]
if user_access_token is not None:
request_opts += [set_user_access_token(user_access_token)]
return DocMetaReqCall(self, request_opts=request_opts)
def raw_content(self, tenant_key=None, user_access_token=None, timeout=None):
# type: (str, str, int) -> DocRawContentReqCall
request_opts = [] # type: List[Callable[[Any], Any]]
if timeout is not None:
request_opts += [set_timeout(timeout)]
if tenant_key is not None:
request_opts += [set_tenant_key(tenant_key)]
if user_access_token is not None:
request_opts += [set_user_access_token(user_access_token)]
return DocRawContentReqCall(self, request_opts=request_opts)
class DocBatchUpdateReqCall(object):
def __init__(self, service, body, request_opts=None):
# type: (DocService, DocBatchUpdateReqBody, List[Any]) -> None
self.service = service
self.body = body
self.path_params = {} # type: Dict[str, Any]
if request_opts:
self.request_opts = request_opts
else:
self.request_opts = [] # type: List[Any]
def set_docToken(self, doc_token):
# type: (str) -> DocBatchUpdateReqCall
self.path_params['docToken'] = doc_token
return self
def do(self):
# type: () -> Response[None]
root_service = self.service.service
conf = root_service.conf
self.request_opts += [set_path_params(self.path_params)]
req = Request('doc/v2/:docToken/batch_update', 'POST', [ACCESS_TOKEN_TYPE_USER, ACCESS_TOKEN_TYPE_TENANT],
self.body, request_opts=self.request_opts)
resp = req.do(conf)
return resp
class DocContentReqCall(object):
def __init__(self, service, request_opts=None):
# type: (DocService, List[Any]) -> None
self.service = service
self.path_params = {} # type: Dict[str, Any]
if request_opts:
self.request_opts = request_opts
else:
self.request_opts = [] # type: List[Any]
def set_docToken(self, doc_token):
# type: (str) -> DocContentReqCall
self.path_params['docToken'] = doc_token
return self
def do(self):
# type: () -> Response[DocContentResult]
root_service = self.service.service
conf = root_service.conf
self.request_opts += [set_path_params(self.path_params)]
req = Request('doc/v2/:docToken/content', 'GET', [ACCESS_TOKEN_TYPE_USER, ACCESS_TOKEN_TYPE_TENANT],
None, output_class=DocContentResult, request_opts=self.request_opts)
resp = req.do(conf)
return resp
class DocCreateReqCall(object):
def __init__(self, service, body, request_opts=None):
# type: (DocService, DocCreateReqBody, List[Any]) -> None
self.service = service
self.body = body
if request_opts:
self.request_opts = request_opts
else:
self.request_opts = [] # type: List[Any]
def do(self):
# type: () -> Response[DocCreateResult]
root_service = self.service.service
conf = root_service.conf
req = Request('doc/v2/create', 'POST', [ACCESS_TOKEN_TYPE_USER, ACCESS_TOKEN_TYPE_TENANT],
self.body, output_class=DocCreateResult, request_opts=self.request_opts)
resp = req.do(conf)
return resp
class DocMetaReqCall(object):
def __init__(self, service, request_opts=None):
# type: (DocService, List[Any]) -> None
self.service = service
self.path_params = {} # type: Dict[str, Any]
if request_opts:
self.request_opts = request_opts
else:
self.request_opts = [] # type: List[Any]
def set_docToken(self, doc_token):
# type: (str) -> DocMetaReqCall
self.path_params['docToken'] = doc_token
return self
def do(self):
# type: () -> Response[DocMetaResult]
root_service = self.service.service
conf = root_service.conf
self.request_opts += [set_path_params(self.path_params)]
req = Request('doc/v2/meta/:docToken', 'GET', [ACCESS_TOKEN_TYPE_USER, ACCESS_TOKEN_TYPE_TENANT],
None, output_class=DocMetaResult, request_opts=self.request_opts)
resp = req.do(conf)
return resp
class DocRawContentReqCall(object):
def __init__(self, service, request_opts=None):
# type: (DocService, List[Any]) -> None
self.service = service
self.path_params = {} # type: Dict[str, Any]
if request_opts:
self.request_opts = request_opts
else:
self.request_opts = [] # type: List[Any]
def set_docToken(self, doc_token):
# type: (str) -> DocRawContentReqCall
self.path_params['docToken'] = doc_token
return self
def do(self):
# type: () -> Response[DocRawContentResult]
root_service = self.service.service
conf = root_service.conf
self.request_opts += [set_path_params(self.path_params)]
req = Request('doc/v2/:docToken/raw_content', 'GET', [ACCESS_TOKEN_TYPE_USER, ACCESS_TOKEN_TYPE_TENANT],
None, output_class=DocRawContentResult, request_opts=self.request_opts)
resp = req.do(conf)
return resp
| 32.900398
| 114
| 0.633689
| 985
| 8,258
| 5.032487
| 0.086294
| 0.153117
| 0.081703
| 0.048416
| 0.785152
| 0.771434
| 0.759734
| 0.73956
| 0.73956
| 0.713335
| 0
| 0.000985
| 0.262654
| 8,258
| 250
| 115
| 33.032
| 0.813106
| 0.151005
| 0
| 0.753333
| 1
| 0
| 0.023523
| 0.01463
| 0
| 0
| 0
| 0
| 0
| 1
| 0.14
| false
| 0
| 0.033333
| 0
| 0.313333
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 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
| 7
|
5e7250ad2a2183e2bbffafb040f764a271b93b65
| 1,056
|
py
|
Python
|
test/test_Fixes_point_iteration.py
|
Magho/Determine-roots-of-equations-project
|
81f451dc8999ccf46183575adc160e8eff69e581
|
[
"MIT"
] | null | null | null |
test/test_Fixes_point_iteration.py
|
Magho/Determine-roots-of-equations-project
|
81f451dc8999ccf46183575adc160e8eff69e581
|
[
"MIT"
] | null | null | null |
test/test_Fixes_point_iteration.py
|
Magho/Determine-roots-of-equations-project
|
81f451dc8999ccf46183575adc160e8eff69e581
|
[
"MIT"
] | 1
|
2019-04-12T22:42:40.000Z
|
2019-04-12T22:42:40.000Z
|
# # ---------------------------------------------------test 1 -------------------------------------------------------
#
# x = Symbol('x')
# function_formula = exp(-x)
#
# call_func = Fixed_point_iteration_method.FixedPointIteration(function_formula, 0.1, 0, 0)
#
# # bool1 = call_func.verify_there_is_a_root()
# # print(bool(bool1))
#
# root = call_func.compute_root()
# print(root)
#
# call_func.plot_function()
# print("*************************************************************************************************")
# ---------------------------------------------------test 2 -------------------------------------------------------
#
# x = Symbol('x')
# function_formula = (2 * x + 3) ** 0.5
#
# call_func = Fixed_point_iteration_method.FixedPointIteration(function_formula, 4.0, 0, 0)
#
# # bool1 = call_func.verify_there_is_a_root()
# # print(bool(bool1))
#
# root = call_func.compute_root()
# print(root)
#
# #call_func.plot_function()
# print("*************************************************************************************************")
| 32
| 117
| 0.417614
| 93
| 1,056
| 4.419355
| 0.311828
| 0.155718
| 0.116788
| 0.077859
| 0.944039
| 0.832117
| 0.832117
| 0.832117
| 0.832117
| 0.506083
| 0
| 0.018692
| 0.088068
| 1,056
| 32
| 118
| 33
| 0.4081
| 0.933712
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
5e7f474645a27eb4ed313349083bd9c8fb9fc871
| 5,149
|
py
|
Python
|
tests/test_command_arf_to_graph.py
|
TomasTomecek/oval-graph
|
7c7e7930028f88ec60bfc410b082324e492e340f
|
[
"Apache-2.0"
] | null | null | null |
tests/test_command_arf_to_graph.py
|
TomasTomecek/oval-graph
|
7c7e7930028f88ec60bfc410b082324e492e340f
|
[
"Apache-2.0"
] | 1
|
2021-03-23T10:55:54.000Z
|
2021-03-23T10:55:54.000Z
|
tests/test_command_arf_to_graph.py
|
TomasTomecek/oval-graph
|
7c7e7930028f88ec60bfc410b082324e492e340f
|
[
"Apache-2.0"
] | null | null | null |
import os
import subprocess
import pexpect
import pytest
from readchar import key
import tests.any_test_help
@pytest.mark.usefixtures("remove_generated_reports_in_root")
def test_command_arf_to_graph():
subprocess.check_call(['python3',
'-m',
'oval_graph.command_line',
'arf-to-graph',
'-o', '.',
'tests/test_data/ssg-fedora-ds-arf.xml',
'xccdf_org.ssgproject.content_rule_package_abrt_removed'
],
cwd='./')
file_src = tests.any_test_help.find_files(
"graph-of-xccdf_org.ssgproject.content_rule_package_abrt_removed",
'../')
tests.any_test_help.compare_results_html(file_src[0])
@pytest.mark.usefixtures("remove_generated_reports_in_root")
def test_command_arf_to_graph_with_verbose():
out = subprocess.check_output(['python3',
'-m',
'oval_graph.command_line',
'arf-to-graph',
'-o', '.',
'--verbose',
'tests/test_data/ssg-fedora-ds-arf.xml',
'xccdf_org.ssgproject.content_rule_package_abrt_removed'
],
cwd='./',
stderr=subprocess.STDOUT)
src = out.decode('utf-8').split('\n')[-2]
tests.any_test_help.compare_results_html('.' + src)
def test_command_arf_to_graph_with_out_parameter():
src = tests.any_test_help.get_random_dir_in_tmp()
subprocess.check_call(['python3',
'-m',
'oval_graph.command_line',
'arf-to-graph',
'-o',
src,
'tests/test_data/ssg-fedora-ds-arf.xml',
'xccdf_org.ssgproject.content_rule_package_abrt_removed'
])
tests.any_test_help.compare_results_html(
os.path.join(src, os.listdir(src)[0]))
def test_inquirer_choice_rule():
src = tests.any_test_help.get_random_dir_in_tmp()
sut = pexpect.spawn('python3',
['-m',
'oval_graph.command_line',
'arf-to-graph',
'-o',
src,
'tests/test_data/ssg-fedora-ds-arf.xml',
r'_package_\w+_removed'
])
sut.expect(r'\w+')
sut.send(key.DOWN)
sut.send(key.SPACE)
sut.send(key.ENTER)
sut.wait()
assert len(os.listdir(src)) == 1
assert ("xccdf_org.ssgproject.content_rule_package_sendmail_removed"
in os.listdir(src)[0])
def test_command_parameter_all():
src = tests.any_test_help.get_random_dir_in_tmp()
subprocess.check_call(['python3',
'-m',
'oval_graph.command_line',
'arf-to-graph',
'--all',
'-o',
src,
'tests/test_data/ssg-fedora-ds-arf.xml',
'.'
])
assert len(os.listdir(src)) == 184
def test_command_parameter_all_and_show_failed_rules():
src = tests.any_test_help.get_random_dir_in_tmp()
subprocess.check_call(['python3',
'-m',
'oval_graph.command_line',
'arf-to-graph',
'--all',
'--show-failed-rules',
'-o',
src,
'tests/test_data/ssg-fedora-ds-arf.xml',
r'_package_\w+_removed'
])
assert len(os.listdir(src)) == 1
def test_bad_command_arf_to_graph_with_verbose():
out = subprocess.check_output(
[
'python3',
'-m',
'oval_graph.command_line',
'arf-to-graph',
'-v',
'tests/test_data/xccdf_org.ssgproject.content_profile_ospp-results-initial.xml',
'.'],
stderr=subprocess.STDOUT)
out_string = out.decode('utf-8')
assert out_string.find("Traceback") > -1
assert out_string.find("Warning:") > -1
assert out_string.find("Error:") > -1
def test_bad_command_arf_to_graph():
out = subprocess.check_output(
[
'python3',
'-m',
'oval_graph.command_line',
'arf-to-graph',
'tests/test_data/xccdf_org.ssgproject.content_profile_ospp-results-initial.xml',
'.'],
stderr=subprocess.STDOUT)
out_string = out.decode('utf-8')
assert out_string.find("Traceback") == -1
assert out_string.find("Warning:") > -1
assert out_string.find("Error:") > -1
| 36.006993
| 92
| 0.483395
| 519
| 5,149
| 4.470135
| 0.202312
| 0.028017
| 0.056034
| 0.062069
| 0.846983
| 0.810345
| 0.759052
| 0.732328
| 0.715948
| 0.715948
| 0
| 0.008436
| 0.401437
| 5,149
| 142
| 93
| 36.260563
| 0.744322
| 0
| 0
| 0.653226
| 1
| 0
| 0.241989
| 0.176151
| 0
| 0
| 0
| 0
| 0.080645
| 1
| 0.064516
| false
| 0
| 0.048387
| 0
| 0.112903
| 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
|
5ec46587991f50bbd8de642138046d738aa5e059
| 545,830
|
py
|
Python
|
cisco-ios-xr/ydk/models/cisco_ios_xr/Cisco_IOS_XR_infra_xtc_agent_oper.py
|
CiscoDevNet/ydk-py
|
073731fea50694d0bc6cd8ebf10fec308dcc0aa9
|
[
"ECL-2.0",
"Apache-2.0"
] | 177
|
2016-03-15T17:03:51.000Z
|
2022-03-18T16:48:44.000Z
|
cisco-ios-xr/ydk/models/cisco_ios_xr/Cisco_IOS_XR_infra_xtc_agent_oper.py
|
CiscoDevNet/ydk-py
|
073731fea50694d0bc6cd8ebf10fec308dcc0aa9
|
[
"ECL-2.0",
"Apache-2.0"
] | 18
|
2016-03-30T10:45:22.000Z
|
2020-07-14T16:28:13.000Z
|
cisco-ios-xr/ydk/models/cisco_ios_xr/Cisco_IOS_XR_infra_xtc_agent_oper.py
|
CiscoDevNet/ydk-py
|
073731fea50694d0bc6cd8ebf10fec308dcc0aa9
|
[
"ECL-2.0",
"Apache-2.0"
] | 85
|
2016-03-16T20:38:57.000Z
|
2022-02-22T04:26:02.000Z
|
""" Cisco_IOS_XR_infra_xtc_agent_oper
This module contains a collection of YANG definitions
for Cisco IOS\-XR infra\-xtc\-agent package operational data.
This module contains definitions
for the following management objects\:
pcc\: Path\-computation client in XTC
xtc\: xtc
Copyright (c) 2013\-2018 by Cisco Systems, Inc.
All rights reserved.
"""
import sys
from collections import OrderedDict
from ydk.types import Entity as _Entity_
from ydk.types import EntityPath, Identity, Enum, YType, YLeaf, YLeafList, YList, LeafDataList, Bits, Empty, Decimal64
from ydk.types import Entity, EntityPath, Identity, Enum, YType, YLeaf, YLeafList, YList, LeafDataList, Bits, Empty, Decimal64
from ydk.filters import YFilter
from ydk.errors import YError, YModelError
from ydk.errors.error_handler import handle_type_error as _handle_type_error
class CmnHaCase(Enum):
"""
CmnHaCase (Enum Class)
Various HA cases
.. data:: ha_case_migration = 0
HA Case Migration
.. data:: ha_case_restart = 1
HA Case Restart
.. data:: ha_case_switchover = 2
HA Case Switchover
.. data:: ha_case_startup = 3
HA Case Startup
.. data:: ha_case_invalid = 4
HA Case Invalid
"""
ha_case_migration = Enum.YLeaf(0, "ha-case-migration")
ha_case_restart = Enum.YLeaf(1, "ha-case-restart")
ha_case_switchover = Enum.YLeaf(2, "ha-case-switchover")
ha_case_startup = Enum.YLeaf(3, "ha-case-startup")
ha_case_invalid = Enum.YLeaf(4, "ha-case-invalid")
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['CmnHaCase']
class XtcAddressFamily(Enum):
"""
XtcAddressFamily (Enum Class)
Xtc address family
.. data:: ipv4 = 1
IPv4 address family
.. data:: ipv6 = 2
IPv6 address family
"""
ipv4 = Enum.YLeaf(1, "ipv4")
ipv6 = Enum.YLeaf(2, "ipv6")
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['XtcAddressFamily']
class XtcAfId(Enum):
"""
XtcAfId (Enum Class)
Xtc af id
.. data:: none = 0
None
.. data:: ipv4 = 1
IPv4
.. data:: ipv6 = 2
IPv6
"""
none = Enum.YLeaf(0, "none")
ipv4 = Enum.YLeaf(1, "ipv4")
ipv6 = Enum.YLeaf(2, "ipv6")
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['XtcAfId']
class XtcDisjointness(Enum):
"""
XtcDisjointness (Enum Class)
XTC policy path type
.. data:: no_disjointness = 0
No Disjointness
.. data:: link_disjointness = 1
Link disjointness
.. data:: node_disjointness = 2
Node disjointness
.. data:: srlg_disjointness = 3
SRLG disjointness
.. data:: srlg_node_disjointness = 4
SRLG-Node disjointness
"""
no_disjointness = Enum.YLeaf(0, "no-disjointness")
link_disjointness = Enum.YLeaf(1, "link-disjointness")
node_disjointness = Enum.YLeaf(2, "node-disjointness")
srlg_disjointness = Enum.YLeaf(3, "srlg-disjointness")
srlg_node_disjointness = Enum.YLeaf(4, "srlg-node-disjointness")
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['XtcDisjointness']
class XtcIgpInfoId(Enum):
"""
XtcIgpInfoId (Enum Class)
IGP IDs
.. data:: isis = 1
ISIS
.. data:: ospf = 2
OSPF
.. data:: bgp = 3
BGP
"""
isis = Enum.YLeaf(1, "isis")
ospf = Enum.YLeaf(2, "ospf")
bgp = Enum.YLeaf(3, "bgp")
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['XtcIgpInfoId']
class XtcPolicyCpathProtoOrigin(Enum):
"""
XtcPolicyCpathProtoOrigin (Enum Class)
Policy candidate path protocol origin
.. data:: unknown = 0
unknown
.. data:: pcep = 10
pcep
.. data:: bgp = 20
bgp
.. data:: configuration = 30
configuration
"""
unknown = Enum.YLeaf(0, "unknown")
pcep = Enum.YLeaf(10, "pcep")
bgp = Enum.YLeaf(20, "bgp")
configuration = Enum.YLeaf(30, "configuration")
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['XtcPolicyCpathProtoOrigin']
class XtcPolicyLspSmState(Enum):
"""
XtcPolicyLspSmState (Enum Class)
XTC policy LSP FSM states
.. data:: unknown = 0
Unknown
.. data:: initialized = 1
Initialized
.. data:: deleted = 2
Deleted
.. data:: programmed = 3
Programmed; all forwarding rewrites created
.. data:: egress_paths_pending = 4
Waiting for egress paths
.. data:: out_of_resources_pending = 5
Waiting for resources to become available
.. data:: label_allocation_pending = 6
Waiting for label allocation result
.. data:: label_allocation_cleanup_pending = 7
Waiting for label free result
.. data:: label_rewrite_pending = 8
Waiting for label rewrite create result
.. data:: label_rewrite_cleanup_pending = 9
Waiting for label rewrite delete result
.. data:: bsid_allocation_pending = 10
Waiting for BSID label allocation result
.. data:: bsid_allocation_cleanup_pending = 11
Waiting for BSID label free result
.. data:: bsid_rewrite_pending = 12
Waiting for BSID rewrite create result
.. data:: bsid_rewrite_cleanup_pending = 13
Waiting for BSID rewrite delete result
.. data:: tunnel_rewrite_pending = 14
Waiting for tunnel rewrite create result
.. data:: tunnel_rewrite_cleanup_pending = 15
Waiting for tunnel rewrite delete result
.. data:: install_timer_pending = 16
Waiting for install timer to expire
.. data:: cleanup_timer_pending = 17
Waiting for cleanup timer to expire
"""
unknown = Enum.YLeaf(0, "unknown")
initialized = Enum.YLeaf(1, "initialized")
deleted = Enum.YLeaf(2, "deleted")
programmed = Enum.YLeaf(3, "programmed")
egress_paths_pending = Enum.YLeaf(4, "egress-paths-pending")
out_of_resources_pending = Enum.YLeaf(5, "out-of-resources-pending")
label_allocation_pending = Enum.YLeaf(6, "label-allocation-pending")
label_allocation_cleanup_pending = Enum.YLeaf(7, "label-allocation-cleanup-pending")
label_rewrite_pending = Enum.YLeaf(8, "label-rewrite-pending")
label_rewrite_cleanup_pending = Enum.YLeaf(9, "label-rewrite-cleanup-pending")
bsid_allocation_pending = Enum.YLeaf(10, "bsid-allocation-pending")
bsid_allocation_cleanup_pending = Enum.YLeaf(11, "bsid-allocation-cleanup-pending")
bsid_rewrite_pending = Enum.YLeaf(12, "bsid-rewrite-pending")
bsid_rewrite_cleanup_pending = Enum.YLeaf(13, "bsid-rewrite-cleanup-pending")
tunnel_rewrite_pending = Enum.YLeaf(14, "tunnel-rewrite-pending")
tunnel_rewrite_cleanup_pending = Enum.YLeaf(15, "tunnel-rewrite-cleanup-pending")
install_timer_pending = Enum.YLeaf(16, "install-timer-pending")
cleanup_timer_pending = Enum.YLeaf(17, "cleanup-timer-pending")
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['XtcPolicyLspSmState']
class XtcPolicyPath(Enum):
"""
XtcPolicyPath (Enum Class)
XTC policy path type
.. data:: explicit = 0
Explicit path
.. data:: dynamic = 1
Dynamic path
.. data:: dynamic_pce = 2
Dynamic PCE-based path
"""
explicit = Enum.YLeaf(0, "explicit")
dynamic = Enum.YLeaf(1, "dynamic")
dynamic_pce = Enum.YLeaf(2, "dynamic-pce")
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['XtcPolicyPath']
class XtcSid(Enum):
"""
XtcSid (Enum Class)
Xtc sid
.. data:: none = 0
None
.. data:: mpls = 1
MPLS
.. data:: ipv6 = 2
IPv6
"""
none = Enum.YLeaf(0, "none")
mpls = Enum.YLeaf(1, "mpls")
ipv6 = Enum.YLeaf(2, "ipv6")
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['XtcSid']
class XtcSid1(Enum):
"""
XtcSid1 (Enum Class)
XTC SID Types
.. data:: sr_protected_adj_sid = 1
Protected Adjacency SID
.. data:: sr_unprotected_adj_sid = 2
Unprotected Adjacency SID
.. data:: sr_bgp_egress_peer_engineering_sid = 3
BGP egress peer engineering SID
.. data:: sr_reqular_prefix_sid = 4
Regular prefix SID
.. data:: sr_strict_prefix_sid = 5
Strict prefix SID
"""
sr_protected_adj_sid = Enum.YLeaf(1, "sr-protected-adj-sid")
sr_unprotected_adj_sid = Enum.YLeaf(2, "sr-unprotected-adj-sid")
sr_bgp_egress_peer_engineering_sid = Enum.YLeaf(3, "sr-bgp-egress-peer-engineering-sid")
sr_reqular_prefix_sid = Enum.YLeaf(4, "sr-reqular-prefix-sid")
sr_strict_prefix_sid = Enum.YLeaf(5, "sr-strict-prefix-sid")
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['XtcSid1']
class XtcSrSid(Enum):
"""
XtcSrSid (Enum Class)
XTC SR SID type
.. data:: ipv4_node_sid = 0
IPv4 Node SID
.. data:: ipv4_adjacency_sid = 1
IPv4 Adjacency SID
.. data:: unknown_sid = 2
Unknown SID
"""
ipv4_node_sid = Enum.YLeaf(0, "ipv4-node-sid")
ipv4_adjacency_sid = Enum.YLeaf(1, "ipv4-adjacency-sid")
unknown_sid = Enum.YLeaf(2, "unknown-sid")
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['XtcSrSid']
class XtcigpProtocol(Enum):
"""
XtcigpProtocol (Enum Class)
Xtcigp protocol
.. data:: unknown = 0
Unknown protocol
.. data:: isis = 1
ISIS protocol
.. data:: ospf = 2
OSPF protocol
.. data:: bgp = 4
BGP protocol
.. data:: te = 8
TE protocol
"""
unknown = Enum.YLeaf(0, "unknown")
isis = Enum.YLeaf(1, "isis")
ospf = Enum.YLeaf(2, "ospf")
bgp = Enum.YLeaf(4, "bgp")
te = Enum.YLeaf(8, "te")
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['XtcigpProtocol']
class Pcc(_Entity_):
"""
Path\-computation client in XTC
.. attribute:: plsps
PCC PLSP database in XTC
**type**\: :py:class:`Plsps <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Pcc.Plsps>`
**config**\: False
.. attribute:: peers
PCC peer database in XTC
**type**\: :py:class:`Peers <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Pcc.Peers>`
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Pcc, self).__init__()
self._top_entity = None
self.yang_name = "pcc"
self.yang_parent_name = "Cisco-IOS-XR-infra-xtc-agent-oper"
self.is_top_level_class = True
self.has_list_ancestor = False
self.ylist_key_names = []
self._child_classes = OrderedDict([("plsps", ("plsps", Pcc.Plsps)), ("peers", ("peers", Pcc.Peers))])
self._leafs = OrderedDict()
self.plsps = Pcc.Plsps()
self.plsps.parent = self
self._children_name_map["plsps"] = "plsps"
self.peers = Pcc.Peers()
self.peers.parent = self
self._children_name_map["peers"] = "peers"
self._segment_path = lambda: "Cisco-IOS-XR-infra-xtc-agent-oper:pcc"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Pcc, [], name, value)
class Plsps(_Entity_):
"""
PCC PLSP database in XTC
.. attribute:: plsp
PCC PLSP information
**type**\: list of :py:class:`Plsp <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Pcc.Plsps.Plsp>`
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Pcc.Plsps, self).__init__()
self.yang_name = "plsps"
self.yang_parent_name = "pcc"
self.is_top_level_class = False
self.has_list_ancestor = False
self.ylist_key_names = []
self._child_classes = OrderedDict([("plsp", ("plsp", Pcc.Plsps.Plsp))])
self._leafs = OrderedDict()
self.plsp = YList(self)
self._segment_path = lambda: "plsps"
self._absolute_path = lambda: "Cisco-IOS-XR-infra-xtc-agent-oper:pcc/%s" % self._segment_path()
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Pcc.Plsps, [], name, value)
class Plsp(_Entity_):
"""
PCC PLSP information
.. attribute:: plsp_id (key)
PLSP ID
**type**\: int
**range:** 0..4294967295
**config**\: False
.. attribute:: stats
Stats
**type**\: :py:class:`Stats <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Pcc.Plsps.Plsp.Stats>`
**config**\: False
.. attribute:: plsp_id_xr
PLSP ID
**type**\: int
**range:** 0..4294967295
**config**\: False
.. attribute:: sym_path_name
Symbolic Path Name
**type**\: str
**config**\: False
.. attribute:: refcnt
Refcnt
**type**\: int
**range:** \-9223372036854775808..9223372036854775807
**config**\: False
.. attribute:: conn_delegated_to
CONN delegated to
**type**\: int
**range:** 0..4294967295
**config**\: False
.. attribute:: event_history
event history
**type**\: list of :py:class:`EventHistory <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Pcc.Plsps.Plsp.EventHistory>`
**config**\: False
.. attribute:: path
path
**type**\: list of :py:class:`Path <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Pcc.Plsps.Plsp.Path>`
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Pcc.Plsps.Plsp, self).__init__()
self.yang_name = "plsp"
self.yang_parent_name = "plsps"
self.is_top_level_class = False
self.has_list_ancestor = False
self.ylist_key_names = ['plsp_id']
self._child_classes = OrderedDict([("stats", ("stats", Pcc.Plsps.Plsp.Stats)), ("event-history", ("event_history", Pcc.Plsps.Plsp.EventHistory)), ("path", ("path", Pcc.Plsps.Plsp.Path))])
self._leafs = OrderedDict([
('plsp_id', (YLeaf(YType.uint32, 'plsp-id'), ['int'])),
('plsp_id_xr', (YLeaf(YType.uint32, 'plsp-id-xr'), ['int'])),
('sym_path_name', (YLeaf(YType.str, 'sym-path-name'), ['str'])),
('refcnt', (YLeaf(YType.int64, 'refcnt'), ['int'])),
('conn_delegated_to', (YLeaf(YType.uint32, 'conn-delegated-to'), ['int'])),
])
self.plsp_id = None
self.plsp_id_xr = None
self.sym_path_name = None
self.refcnt = None
self.conn_delegated_to = None
self.stats = Pcc.Plsps.Plsp.Stats()
self.stats.parent = self
self._children_name_map["stats"] = "stats"
self.event_history = YList(self)
self.path = YList(self)
self._segment_path = lambda: "plsp" + "[plsp-id='" + str(self.plsp_id) + "']"
self._absolute_path = lambda: "Cisco-IOS-XR-infra-xtc-agent-oper:pcc/plsps/%s" % self._segment_path()
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Pcc.Plsps.Plsp, ['plsp_id', 'plsp_id_xr', 'sym_path_name', 'refcnt', 'conn_delegated_to'], name, value)
class Stats(_Entity_):
"""
Stats
.. attribute:: paths_created
Paths Created
**type**\: int
**range:** 0..18446744073709551615
**config**\: False
.. attribute:: paths_destroyed
Paths Destroyed
**type**\: int
**range:** 0..18446744073709551615
**config**\: False
.. attribute:: path_create_errors
Path create errors
**type**\: int
**range:** 0..18446744073709551615
**config**\: False
.. attribute:: path_destroy_errors
Path destroy errors
**type**\: int
**range:** 0..18446744073709551615
**config**\: False
.. attribute:: requests_created
Requests created
**type**\: int
**range:** 0..18446744073709551615
**config**\: False
.. attribute:: requests_destroyed
Requests destroyed
**type**\: int
**range:** 0..18446744073709551615
**config**\: False
.. attribute:: requests_failed
Requests failed
**type**\: int
**range:** 0..18446744073709551615
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Pcc.Plsps.Plsp.Stats, self).__init__()
self.yang_name = "stats"
self.yang_parent_name = "plsp"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('paths_created', (YLeaf(YType.uint64, 'paths-created'), ['int'])),
('paths_destroyed', (YLeaf(YType.uint64, 'paths-destroyed'), ['int'])),
('path_create_errors', (YLeaf(YType.uint64, 'path-create-errors'), ['int'])),
('path_destroy_errors', (YLeaf(YType.uint64, 'path-destroy-errors'), ['int'])),
('requests_created', (YLeaf(YType.uint64, 'requests-created'), ['int'])),
('requests_destroyed', (YLeaf(YType.uint64, 'requests-destroyed'), ['int'])),
('requests_failed', (YLeaf(YType.uint64, 'requests-failed'), ['int'])),
])
self.paths_created = None
self.paths_destroyed = None
self.path_create_errors = None
self.path_destroy_errors = None
self.requests_created = None
self.requests_destroyed = None
self.requests_failed = None
self._segment_path = lambda: "stats"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Pcc.Plsps.Plsp.Stats, ['paths_created', 'paths_destroyed', 'path_create_errors', 'path_destroy_errors', 'requests_created', 'requests_destroyed', 'requests_failed'], name, value)
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Pcc.Plsps.Plsp.Stats']['meta_info']
class EventHistory(_Entity_):
"""
event history
.. attribute:: ts
Timestamp
**type**\: int
**range:** 0..18446744073709551615
**config**\: False
.. attribute:: desc
Description
**type**\: str
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Pcc.Plsps.Plsp.EventHistory, self).__init__()
self.yang_name = "event-history"
self.yang_parent_name = "plsp"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('ts', (YLeaf(YType.uint64, 'ts'), ['int'])),
('desc', (YLeaf(YType.str, 'desc'), ['str'])),
])
self.ts = None
self.desc = None
self._segment_path = lambda: "event-history"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Pcc.Plsps.Plsp.EventHistory, ['ts', 'desc'], name, value)
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Pcc.Plsps.Plsp.EventHistory']['meta_info']
class Path(_Entity_):
"""
path
.. attribute:: stats
stats
**type**\: :py:class:`Stats <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Pcc.Plsps.Plsp.Path.Stats>`
**config**\: False
.. attribute:: used_bw
used bw
**type**\: int
**range:** \-9223372036854775808..9223372036854775807
**config**\: False
.. attribute:: requested_bw
requested bw
**type**\: int
**range:** \-9223372036854775808..9223372036854775807
**config**\: False
.. attribute:: metric_value
metric value
**type**\: int
**range:** \-9223372036854775808..9223372036854775807
**config**\: False
.. attribute:: refcnt
refcnt
**type**\: int
**range:** \-9223372036854775808..9223372036854775807
**config**\: False
.. attribute:: lsp_plsp_id
LSP PLSP ID
**type**\: int
**range:** 0..4294967295
**config**\: False
.. attribute:: binding_sid_value
Binding SID
**type**\: int
**range:** 0..4294967295
**config**\: False
.. attribute:: lsp_id_tlv_ext_tunnel_id
Ext Tun ID
**type**\: int
**range:** 0..4294967295
**config**\: False
.. attribute:: lsp_id_tlv_tunnel_endpoint_address
Tun endpoint address
**type**\: int
**range:** 0..4294967295
**config**\: False
.. attribute:: lsp_id_tlv_tunnel_sender_address
Tun sender address
**type**\: int
**range:** 0..4294967295
**config**\: False
.. attribute:: srp_id
SRP ID
**type**\: int
**range:** 0..4294967295
**config**\: False
.. attribute:: lsp_id_tlv_lsp_id
LSP ID
**type**\: int
**range:** 0..65535
**config**\: False
.. attribute:: lsp_id_tlv_tunnel_id
Tunnel ID
**type**\: int
**range:** 0..65535
**config**\: False
.. attribute:: lsp_id
Application LSP ID
**type**\: int
**range:** 0..65535
**config**\: False
.. attribute:: binding_sid_type
Binding SID type
**type**\: int
**range:** 0..65535
**config**\: False
.. attribute:: lsp_oper
LSP oper flags
**type**\: int
**range:** 0..255
**config**\: False
.. attribute:: path_setup_type
Path setup type
**type**\: int
**range:** 0..255
**config**\: False
.. attribute:: metric_type
Metric type
**type**\: int
**range:** 0..255
**config**\: False
.. attribute:: is_reported
is reported
**type**\: bool
**config**\: False
.. attribute:: lsp_a_flag
LSP A Flag
**type**\: bool
**config**\: False
.. attribute:: lsp_r_flag
LSP R Flag
**type**\: bool
**config**\: False
.. attribute:: lsp_s_flag
LSP S Flag
**type**\: bool
**config**\: False
.. attribute:: lsp_d_flag
LSP D Flag
**type**\: bool
**config**\: False
.. attribute:: lsp_c_flag
LSP C Flag
**type**\: bool
**config**\: False
.. attribute:: ero_hop
ero hop
**type**\: list of :py:class:`EroHop <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Pcc.Plsps.Plsp.Path.EroHop>`
**config**\: False
.. attribute:: rro_hop
rro hop
**type**\: list of :py:class:`RroHop <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Pcc.Plsps.Plsp.Path.RroHop>`
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Pcc.Plsps.Plsp.Path, self).__init__()
self.yang_name = "path"
self.yang_parent_name = "plsp"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([("stats", ("stats", Pcc.Plsps.Plsp.Path.Stats)), ("ero-hop", ("ero_hop", Pcc.Plsps.Plsp.Path.EroHop)), ("rro-hop", ("rro_hop", Pcc.Plsps.Plsp.Path.RroHop))])
self._leafs = OrderedDict([
('used_bw', (YLeaf(YType.int64, 'used-bw'), ['int'])),
('requested_bw', (YLeaf(YType.int64, 'requested-bw'), ['int'])),
('metric_value', (YLeaf(YType.int64, 'metric-value'), ['int'])),
('refcnt', (YLeaf(YType.int64, 'refcnt'), ['int'])),
('lsp_plsp_id', (YLeaf(YType.uint32, 'lsp-plsp-id'), ['int'])),
('binding_sid_value', (YLeaf(YType.uint32, 'binding-sid-value'), ['int'])),
('lsp_id_tlv_ext_tunnel_id', (YLeaf(YType.uint32, 'lsp-id-tlv-ext-tunnel-id'), ['int'])),
('lsp_id_tlv_tunnel_endpoint_address', (YLeaf(YType.uint32, 'lsp-id-tlv-tunnel-endpoint-address'), ['int'])),
('lsp_id_tlv_tunnel_sender_address', (YLeaf(YType.uint32, 'lsp-id-tlv-tunnel-sender-address'), ['int'])),
('srp_id', (YLeaf(YType.uint32, 'srp-id'), ['int'])),
('lsp_id_tlv_lsp_id', (YLeaf(YType.uint16, 'lsp-id-tlv-lsp-id'), ['int'])),
('lsp_id_tlv_tunnel_id', (YLeaf(YType.uint16, 'lsp-id-tlv-tunnel-id'), ['int'])),
('lsp_id', (YLeaf(YType.uint16, 'lsp-id'), ['int'])),
('binding_sid_type', (YLeaf(YType.uint16, 'binding-sid-type'), ['int'])),
('lsp_oper', (YLeaf(YType.uint8, 'lsp-oper'), ['int'])),
('path_setup_type', (YLeaf(YType.uint8, 'path-setup-type'), ['int'])),
('metric_type', (YLeaf(YType.uint8, 'metric-type'), ['int'])),
('is_reported', (YLeaf(YType.boolean, 'is-reported'), ['bool'])),
('lsp_a_flag', (YLeaf(YType.boolean, 'lsp-a-flag'), ['bool'])),
('lsp_r_flag', (YLeaf(YType.boolean, 'lsp-r-flag'), ['bool'])),
('lsp_s_flag', (YLeaf(YType.boolean, 'lsp-s-flag'), ['bool'])),
('lsp_d_flag', (YLeaf(YType.boolean, 'lsp-d-flag'), ['bool'])),
('lsp_c_flag', (YLeaf(YType.boolean, 'lsp-c-flag'), ['bool'])),
])
self.used_bw = None
self.requested_bw = None
self.metric_value = None
self.refcnt = None
self.lsp_plsp_id = None
self.binding_sid_value = None
self.lsp_id_tlv_ext_tunnel_id = None
self.lsp_id_tlv_tunnel_endpoint_address = None
self.lsp_id_tlv_tunnel_sender_address = None
self.srp_id = None
self.lsp_id_tlv_lsp_id = None
self.lsp_id_tlv_tunnel_id = None
self.lsp_id = None
self.binding_sid_type = None
self.lsp_oper = None
self.path_setup_type = None
self.metric_type = None
self.is_reported = None
self.lsp_a_flag = None
self.lsp_r_flag = None
self.lsp_s_flag = None
self.lsp_d_flag = None
self.lsp_c_flag = None
self.stats = Pcc.Plsps.Plsp.Path.Stats()
self.stats.parent = self
self._children_name_map["stats"] = "stats"
self.ero_hop = YList(self)
self.rro_hop = YList(self)
self._segment_path = lambda: "path"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Pcc.Plsps.Plsp.Path, ['used_bw', 'requested_bw', 'metric_value', 'refcnt', 'lsp_plsp_id', 'binding_sid_value', 'lsp_id_tlv_ext_tunnel_id', 'lsp_id_tlv_tunnel_endpoint_address', 'lsp_id_tlv_tunnel_sender_address', 'srp_id', 'lsp_id_tlv_lsp_id', 'lsp_id_tlv_tunnel_id', 'lsp_id', 'binding_sid_type', 'lsp_oper', 'path_setup_type', 'metric_type', 'is_reported', 'lsp_a_flag', 'lsp_r_flag', 'lsp_s_flag', 'lsp_d_flag', 'lsp_c_flag'], name, value)
class Stats(_Entity_):
"""
stats
.. attribute:: reports_requested
Reports requested
**type**\: int
**range:** 0..18446744073709551615
**config**\: False
.. attribute:: reports_sent
Reports sent
**type**\: int
**range:** 0..18446744073709551615
**config**\: False
.. attribute:: reports_failed_to_send
Reports failed
**type**\: int
**range:** 0..18446744073709551615
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Pcc.Plsps.Plsp.Path.Stats, self).__init__()
self.yang_name = "stats"
self.yang_parent_name = "path"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('reports_requested', (YLeaf(YType.uint64, 'reports-requested'), ['int'])),
('reports_sent', (YLeaf(YType.uint64, 'reports-sent'), ['int'])),
('reports_failed_to_send', (YLeaf(YType.uint64, 'reports-failed-to-send'), ['int'])),
])
self.reports_requested = None
self.reports_sent = None
self.reports_failed_to_send = None
self._segment_path = lambda: "stats"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Pcc.Plsps.Plsp.Path.Stats, ['reports_requested', 'reports_sent', 'reports_failed_to_send'], name, value)
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Pcc.Plsps.Plsp.Path.Stats']['meta_info']
class EroHop(_Entity_):
"""
ero hop
.. attribute:: data
data
**type**\: :py:class:`Data <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Pcc.Plsps.Plsp.Path.EroHop.Data>`
**config**\: False
.. attribute:: loose
is loose hop
**type**\: bool
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Pcc.Plsps.Plsp.Path.EroHop, self).__init__()
self.yang_name = "ero-hop"
self.yang_parent_name = "path"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([("data", ("data", Pcc.Plsps.Plsp.Path.EroHop.Data))])
self._leafs = OrderedDict([
('loose', (YLeaf(YType.boolean, 'loose'), ['bool'])),
])
self.loose = None
self.data = Pcc.Plsps.Plsp.Path.EroHop.Data()
self.data.parent = self
self._children_name_map["data"] = "data"
self._segment_path = lambda: "ero-hop"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Pcc.Plsps.Plsp.Path.EroHop, ['loose'], name, value)
class Data(_Entity_):
"""
data
.. attribute:: ipv4
IPv4 hop info
**type**\: :py:class:`Ipv4 <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Pcc.Plsps.Plsp.Path.EroHop.Data.Ipv4>`
**config**\: False
.. attribute:: sr_v4
SR IPv4 hop info
**type**\: :py:class:`SrV4 <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Pcc.Plsps.Plsp.Path.EroHop.Data.SrV4>`
**config**\: False
.. attribute:: hop_type
HopType
**type**\: int
**range:** 0..255
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Pcc.Plsps.Plsp.Path.EroHop.Data, self).__init__()
self.yang_name = "data"
self.yang_parent_name = "ero-hop"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([("ipv4", ("ipv4", Pcc.Plsps.Plsp.Path.EroHop.Data.Ipv4)), ("sr-v4", ("sr_v4", Pcc.Plsps.Plsp.Path.EroHop.Data.SrV4))])
self._leafs = OrderedDict([
('hop_type', (YLeaf(YType.uint8, 'hop-type'), ['int'])),
])
self.hop_type = None
self.ipv4 = Pcc.Plsps.Plsp.Path.EroHop.Data.Ipv4()
self.ipv4.parent = self
self._children_name_map["ipv4"] = "ipv4"
self.sr_v4 = Pcc.Plsps.Plsp.Path.EroHop.Data.SrV4()
self.sr_v4.parent = self
self._children_name_map["sr_v4"] = "sr-v4"
self._segment_path = lambda: "data"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Pcc.Plsps.Plsp.Path.EroHop.Data, ['hop_type'], name, value)
class Ipv4(_Entity_):
"""
IPv4 hop info
.. attribute:: v4_addr
IPv4 prefix
**type**\: int
**range:** 0..4294967295
**config**\: False
.. attribute:: prefix_len
Prefix length
**type**\: int
**range:** 0..255
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Pcc.Plsps.Plsp.Path.EroHop.Data.Ipv4, self).__init__()
self.yang_name = "ipv4"
self.yang_parent_name = "data"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('v4_addr', (YLeaf(YType.uint32, 'v4-addr'), ['int'])),
('prefix_len', (YLeaf(YType.uint8, 'prefix-len'), ['int'])),
])
self.v4_addr = None
self.prefix_len = None
self._segment_path = lambda: "ipv4"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Pcc.Plsps.Plsp.Path.EroHop.Data.Ipv4, ['v4_addr', 'prefix_len'], name, value)
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Pcc.Plsps.Plsp.Path.EroHop.Data.Ipv4']['meta_info']
class SrV4(_Entity_):
"""
SR IPv4 hop info
.. attribute:: type
SID type
**type**\: int
**range:** 0..255
**config**\: False
.. attribute:: cflag
C flag
**type**\: bool
**config**\: False
.. attribute:: sid
SID
**type**\: int
**range:** 0..4294967295
**config**\: False
.. attribute:: remote_addr
Remote address
**type**\: int
**range:** 0..4294967295
**config**\: False
.. attribute:: local_addr
Local address
**type**\: int
**range:** 0..4294967295
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Pcc.Plsps.Plsp.Path.EroHop.Data.SrV4, self).__init__()
self.yang_name = "sr-v4"
self.yang_parent_name = "data"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('type', (YLeaf(YType.uint8, 'type'), ['int'])),
('cflag', (YLeaf(YType.boolean, 'cflag'), ['bool'])),
('sid', (YLeaf(YType.uint32, 'sid'), ['int'])),
('remote_addr', (YLeaf(YType.uint32, 'remote-addr'), ['int'])),
('local_addr', (YLeaf(YType.uint32, 'local-addr'), ['int'])),
])
self.type = None
self.cflag = None
self.sid = None
self.remote_addr = None
self.local_addr = None
self._segment_path = lambda: "sr-v4"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Pcc.Plsps.Plsp.Path.EroHop.Data.SrV4, ['type', 'cflag', 'sid', 'remote_addr', 'local_addr'], name, value)
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Pcc.Plsps.Plsp.Path.EroHop.Data.SrV4']['meta_info']
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Pcc.Plsps.Plsp.Path.EroHop.Data']['meta_info']
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Pcc.Plsps.Plsp.Path.EroHop']['meta_info']
class RroHop(_Entity_):
"""
rro hop
.. attribute:: data
data
**type**\: :py:class:`Data <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Pcc.Plsps.Plsp.Path.RroHop.Data>`
**config**\: False
.. attribute:: loose
is loose hop
**type**\: bool
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Pcc.Plsps.Plsp.Path.RroHop, self).__init__()
self.yang_name = "rro-hop"
self.yang_parent_name = "path"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([("data", ("data", Pcc.Plsps.Plsp.Path.RroHop.Data))])
self._leafs = OrderedDict([
('loose', (YLeaf(YType.boolean, 'loose'), ['bool'])),
])
self.loose = None
self.data = Pcc.Plsps.Plsp.Path.RroHop.Data()
self.data.parent = self
self._children_name_map["data"] = "data"
self._segment_path = lambda: "rro-hop"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Pcc.Plsps.Plsp.Path.RroHop, ['loose'], name, value)
class Data(_Entity_):
"""
data
.. attribute:: ipv4
IPv4 hop info
**type**\: :py:class:`Ipv4 <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Pcc.Plsps.Plsp.Path.RroHop.Data.Ipv4>`
**config**\: False
.. attribute:: sr_v4
SR IPv4 hop info
**type**\: :py:class:`SrV4 <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Pcc.Plsps.Plsp.Path.RroHop.Data.SrV4>`
**config**\: False
.. attribute:: hop_type
HopType
**type**\: int
**range:** 0..255
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Pcc.Plsps.Plsp.Path.RroHop.Data, self).__init__()
self.yang_name = "data"
self.yang_parent_name = "rro-hop"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([("ipv4", ("ipv4", Pcc.Plsps.Plsp.Path.RroHop.Data.Ipv4)), ("sr-v4", ("sr_v4", Pcc.Plsps.Plsp.Path.RroHop.Data.SrV4))])
self._leafs = OrderedDict([
('hop_type', (YLeaf(YType.uint8, 'hop-type'), ['int'])),
])
self.hop_type = None
self.ipv4 = Pcc.Plsps.Plsp.Path.RroHop.Data.Ipv4()
self.ipv4.parent = self
self._children_name_map["ipv4"] = "ipv4"
self.sr_v4 = Pcc.Plsps.Plsp.Path.RroHop.Data.SrV4()
self.sr_v4.parent = self
self._children_name_map["sr_v4"] = "sr-v4"
self._segment_path = lambda: "data"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Pcc.Plsps.Plsp.Path.RroHop.Data, ['hop_type'], name, value)
class Ipv4(_Entity_):
"""
IPv4 hop info
.. attribute:: v4_addr
IPv4 prefix
**type**\: int
**range:** 0..4294967295
**config**\: False
.. attribute:: prefix_len
Prefix length
**type**\: int
**range:** 0..255
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Pcc.Plsps.Plsp.Path.RroHop.Data.Ipv4, self).__init__()
self.yang_name = "ipv4"
self.yang_parent_name = "data"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('v4_addr', (YLeaf(YType.uint32, 'v4-addr'), ['int'])),
('prefix_len', (YLeaf(YType.uint8, 'prefix-len'), ['int'])),
])
self.v4_addr = None
self.prefix_len = None
self._segment_path = lambda: "ipv4"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Pcc.Plsps.Plsp.Path.RroHop.Data.Ipv4, ['v4_addr', 'prefix_len'], name, value)
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Pcc.Plsps.Plsp.Path.RroHop.Data.Ipv4']['meta_info']
class SrV4(_Entity_):
"""
SR IPv4 hop info
.. attribute:: type
SID type
**type**\: int
**range:** 0..255
**config**\: False
.. attribute:: cflag
C flag
**type**\: bool
**config**\: False
.. attribute:: sid
SID
**type**\: int
**range:** 0..4294967295
**config**\: False
.. attribute:: remote_addr
Remote address
**type**\: int
**range:** 0..4294967295
**config**\: False
.. attribute:: local_addr
Local address
**type**\: int
**range:** 0..4294967295
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Pcc.Plsps.Plsp.Path.RroHop.Data.SrV4, self).__init__()
self.yang_name = "sr-v4"
self.yang_parent_name = "data"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('type', (YLeaf(YType.uint8, 'type'), ['int'])),
('cflag', (YLeaf(YType.boolean, 'cflag'), ['bool'])),
('sid', (YLeaf(YType.uint32, 'sid'), ['int'])),
('remote_addr', (YLeaf(YType.uint32, 'remote-addr'), ['int'])),
('local_addr', (YLeaf(YType.uint32, 'local-addr'), ['int'])),
])
self.type = None
self.cflag = None
self.sid = None
self.remote_addr = None
self.local_addr = None
self._segment_path = lambda: "sr-v4"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Pcc.Plsps.Plsp.Path.RroHop.Data.SrV4, ['type', 'cflag', 'sid', 'remote_addr', 'local_addr'], name, value)
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Pcc.Plsps.Plsp.Path.RroHop.Data.SrV4']['meta_info']
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Pcc.Plsps.Plsp.Path.RroHop.Data']['meta_info']
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Pcc.Plsps.Plsp.Path.RroHop']['meta_info']
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Pcc.Plsps.Plsp.Path']['meta_info']
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Pcc.Plsps.Plsp']['meta_info']
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Pcc.Plsps']['meta_info']
class Peers(_Entity_):
"""
PCC peer database in XTC
.. attribute:: peer
PCC peer information
**type**\: list of :py:class:`Peer <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Pcc.Peers.Peer>`
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Pcc.Peers, self).__init__()
self.yang_name = "peers"
self.yang_parent_name = "pcc"
self.is_top_level_class = False
self.has_list_ancestor = False
self.ylist_key_names = []
self._child_classes = OrderedDict([("peer", ("peer", Pcc.Peers.Peer))])
self._leafs = OrderedDict()
self.peer = YList(self)
self._segment_path = lambda: "peers"
self._absolute_path = lambda: "Cisco-IOS-XR-infra-xtc-agent-oper:pcc/%s" % self._segment_path()
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Pcc.Peers, [], name, value)
class Peer(_Entity_):
"""
PCC peer information
.. attribute:: peer_addr (key)
Peer Address
**type**\: union of the below types:
**type**\: str
**pattern:** (([0\-9]\|[1\-9][0\-9]\|1[0\-9][0\-9]\|2[0\-4][0\-9]\|25[0\-5])\\.){3}([0\-9]\|[1\-9][0\-9]\|1[0\-9][0\-9]\|2[0\-4][0\-9]\|25[0\-5])(%[\\p{N}\\p{L}]+)?
**type**\: str
**pattern:** ((\:\|[0\-9a\-fA\-F]{0,4})\:)([0\-9a\-fA\-F]{0,4}\:){0,5}((([0\-9a\-fA\-F]{0,4}\:)?(\:\|[0\-9a\-fA\-F]{0,4}))\|(((25[0\-5]\|2[0\-4][0\-9]\|[01]?[0\-9]?[0\-9])\\.){3}(25[0\-5]\|2[0\-4][0\-9]\|[01]?[0\-9]?[0\-9])))(%[\\p{N}\\p{L}]+)?
**config**\: False
.. attribute:: socket_info
socket info
**type**\: :py:class:`SocketInfo <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Pcc.Peers.Peer.SocketInfo>`
**config**\: False
.. attribute:: stats
stats
**type**\: :py:class:`Stats <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Pcc.Peers.Peer.Stats>`
**config**\: False
.. attribute:: handle
internal handle
**type**\: int
**range:** 0..4294967295
**config**\: False
.. attribute:: state_str
connection state
**type**\: str
**config**\: False
.. attribute:: local_ok
local accepted
**type**\: bool
**config**\: False
.. attribute:: remote_ok
remote accepted
**type**\: bool
**config**\: False
.. attribute:: open_retry
open retry count
**type**\: int
**range:** 0..4294967295
**config**\: False
.. attribute:: ref_cnt
ref count
**type**\: int
**range:** 0..4294967295
**config**\: False
.. attribute:: rx_state_str
socket state
**type**\: str
**config**\: False
.. attribute:: holddown_counter
holddown counter
**type**\: int
**range:** 0..65535
**config**\: False
.. attribute:: pcep_up_ts
PCEP up timestamp
**type**\: int
**range:** 0..18446744073709551615
**config**\: False
.. attribute:: precedence
Precedence
**type**\: int
**range:** 0..255
**config**\: False
.. attribute:: ka_interval_local
KA interval local
**type**\: int
**range:** 0..4294967295
**config**\: False
.. attribute:: ka_interval_remote
KA interval remote
**type**\: int
**range:** 0..4294967295
**config**\: False
.. attribute:: dead_interval_local
Dead interval local
**type**\: int
**range:** 0..4294967295
**config**\: False
.. attribute:: dead_interval_remote
Dead interval remote
**type**\: int
**range:** 0..4294967295
**config**\: False
.. attribute:: pcep_session_id_local
PCEP session ID local
**type**\: int
**range:** 0..4294967295
**config**\: False
.. attribute:: pcep_session_id_remote
PCEP session ID remote
**type**\: int
**range:** 0..4294967295
**config**\: False
.. attribute:: pcep_server_ipv4_addr
PCEP server Ipv4 address
**type**\: str
**pattern:** (([0\-9]\|[1\-9][0\-9]\|1[0\-9][0\-9]\|2[0\-4][0\-9]\|25[0\-5])\\.){3}([0\-9]\|[1\-9][0\-9]\|1[0\-9][0\-9]\|2[0\-4][0\-9]\|25[0\-5])(%[\\p{N}\\p{L}]+)?
**config**\: False
.. attribute:: pcep_client_ipv4_addr
PCEP client Ipv4 address
**type**\: str
**pattern:** (([0\-9]\|[1\-9][0\-9]\|1[0\-9][0\-9]\|2[0\-4][0\-9]\|25[0\-5])\\.){3}([0\-9]\|[1\-9][0\-9]\|1[0\-9][0\-9]\|2[0\-4][0\-9]\|25[0\-5])(%[\\p{N}\\p{L}]+)?
**config**\: False
.. attribute:: is_stateful_local
is stateful local
**type**\: bool
**config**\: False
.. attribute:: is_stateful_remote
is stateful remote
**type**\: bool
**config**\: False
.. attribute:: is_stateful_u_flag_local
is stateful with U flag local
**type**\: bool
**config**\: False
.. attribute:: is_stateful_u_flag_remote
is stateful with U flag remote
**type**\: bool
**config**\: False
.. attribute:: is_segment_routing_local
is segment routing local
**type**\: bool
**config**\: False
.. attribute:: is_segment_routing_remote
is segment routing remote
**type**\: bool
**config**\: False
.. attribute:: is_initiate_local
local initiate capability
**type**\: bool
**config**\: False
.. attribute:: is_initiate_remote
remote initiate capability
**type**\: bool
**config**\: False
.. attribute:: is_best_pce
is this the best PCE to delegate to
**type**\: bool
**config**\: False
.. attribute:: sr_msd_local
SR MSD local
**type**\: int
**range:** 0..255
**config**\: False
.. attribute:: sr_msd_remote
SR MSD remote
**type**\: int
**range:** 0..255
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Pcc.Peers.Peer, self).__init__()
self.yang_name = "peer"
self.yang_parent_name = "peers"
self.is_top_level_class = False
self.has_list_ancestor = False
self.ylist_key_names = ['peer_addr']
self._child_classes = OrderedDict([("socket-info", ("socket_info", Pcc.Peers.Peer.SocketInfo)), ("stats", ("stats", Pcc.Peers.Peer.Stats))])
self._leafs = OrderedDict([
('peer_addr', (YLeaf(YType.str, 'peer-addr'), ['str','str'])),
('handle', (YLeaf(YType.uint32, 'handle'), ['int'])),
('state_str', (YLeaf(YType.str, 'state-str'), ['str'])),
('local_ok', (YLeaf(YType.boolean, 'local-ok'), ['bool'])),
('remote_ok', (YLeaf(YType.boolean, 'remote-ok'), ['bool'])),
('open_retry', (YLeaf(YType.uint32, 'open-retry'), ['int'])),
('ref_cnt', (YLeaf(YType.uint32, 'ref-cnt'), ['int'])),
('rx_state_str', (YLeaf(YType.str, 'rx-state-str'), ['str'])),
('holddown_counter', (YLeaf(YType.uint16, 'holddown-counter'), ['int'])),
('pcep_up_ts', (YLeaf(YType.uint64, 'pcep-up-ts'), ['int'])),
('precedence', (YLeaf(YType.uint8, 'precedence'), ['int'])),
('ka_interval_local', (YLeaf(YType.uint32, 'ka-interval-local'), ['int'])),
('ka_interval_remote', (YLeaf(YType.uint32, 'ka-interval-remote'), ['int'])),
('dead_interval_local', (YLeaf(YType.uint32, 'dead-interval-local'), ['int'])),
('dead_interval_remote', (YLeaf(YType.uint32, 'dead-interval-remote'), ['int'])),
('pcep_session_id_local', (YLeaf(YType.uint32, 'pcep-session-id-local'), ['int'])),
('pcep_session_id_remote', (YLeaf(YType.uint32, 'pcep-session-id-remote'), ['int'])),
('pcep_server_ipv4_addr', (YLeaf(YType.str, 'pcep-server-ipv4-addr'), ['str'])),
('pcep_client_ipv4_addr', (YLeaf(YType.str, 'pcep-client-ipv4-addr'), ['str'])),
('is_stateful_local', (YLeaf(YType.boolean, 'is-stateful-local'), ['bool'])),
('is_stateful_remote', (YLeaf(YType.boolean, 'is-stateful-remote'), ['bool'])),
('is_stateful_u_flag_local', (YLeaf(YType.boolean, 'is-stateful-u-flag-local'), ['bool'])),
('is_stateful_u_flag_remote', (YLeaf(YType.boolean, 'is-stateful-u-flag-remote'), ['bool'])),
('is_segment_routing_local', (YLeaf(YType.boolean, 'is-segment-routing-local'), ['bool'])),
('is_segment_routing_remote', (YLeaf(YType.boolean, 'is-segment-routing-remote'), ['bool'])),
('is_initiate_local', (YLeaf(YType.boolean, 'is-initiate-local'), ['bool'])),
('is_initiate_remote', (YLeaf(YType.boolean, 'is-initiate-remote'), ['bool'])),
('is_best_pce', (YLeaf(YType.boolean, 'is-best-pce'), ['bool'])),
('sr_msd_local', (YLeaf(YType.uint8, 'sr-msd-local'), ['int'])),
('sr_msd_remote', (YLeaf(YType.uint8, 'sr-msd-remote'), ['int'])),
])
self.peer_addr = None
self.handle = None
self.state_str = None
self.local_ok = None
self.remote_ok = None
self.open_retry = None
self.ref_cnt = None
self.rx_state_str = None
self.holddown_counter = None
self.pcep_up_ts = None
self.precedence = None
self.ka_interval_local = None
self.ka_interval_remote = None
self.dead_interval_local = None
self.dead_interval_remote = None
self.pcep_session_id_local = None
self.pcep_session_id_remote = None
self.pcep_server_ipv4_addr = None
self.pcep_client_ipv4_addr = None
self.is_stateful_local = None
self.is_stateful_remote = None
self.is_stateful_u_flag_local = None
self.is_stateful_u_flag_remote = None
self.is_segment_routing_local = None
self.is_segment_routing_remote = None
self.is_initiate_local = None
self.is_initiate_remote = None
self.is_best_pce = None
self.sr_msd_local = None
self.sr_msd_remote = None
self.socket_info = Pcc.Peers.Peer.SocketInfo()
self.socket_info.parent = self
self._children_name_map["socket_info"] = "socket-info"
self.stats = Pcc.Peers.Peer.Stats()
self.stats.parent = self
self._children_name_map["stats"] = "stats"
self._segment_path = lambda: "peer" + "[peer-addr='" + str(self.peer_addr) + "']"
self._absolute_path = lambda: "Cisco-IOS-XR-infra-xtc-agent-oper:pcc/peers/%s" % self._segment_path()
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Pcc.Peers.Peer, ['peer_addr', 'handle', 'state_str', 'local_ok', 'remote_ok', 'open_retry', 'ref_cnt', 'rx_state_str', 'holddown_counter', 'pcep_up_ts', 'precedence', 'ka_interval_local', 'ka_interval_remote', 'dead_interval_local', 'dead_interval_remote', 'pcep_session_id_local', 'pcep_session_id_remote', 'pcep_server_ipv4_addr', 'pcep_client_ipv4_addr', 'is_stateful_local', 'is_stateful_remote', 'is_stateful_u_flag_local', 'is_stateful_u_flag_remote', 'is_segment_routing_local', 'is_segment_routing_remote', 'is_initiate_local', 'is_initiate_remote', 'is_best_pce', 'sr_msd_local', 'sr_msd_remote'], name, value)
class SocketInfo(_Entity_):
"""
socket info
.. attribute:: fd
file descriptor
**type**\: int
**range:** \-9223372036854775808..9223372036854775807
**config**\: False
.. attribute:: wnotify
write notify
**type**\: bool
**config**\: False
.. attribute:: rnotify
read notify
**type**\: bool
**config**\: False
.. attribute:: refcnt
ref count
**type**\: int
**range:** 0..4294967295
**config**\: False
.. attribute:: selected
selected
**type**\: bool
**config**\: False
.. attribute:: owner
owner
**type**\: int
**range:** 0..4294967295
**config**\: False
.. attribute:: csockaddr_str
client address
**type**\: str
**config**\: False
.. attribute:: ssockaddr_str
server address
**type**\: str
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Pcc.Peers.Peer.SocketInfo, self).__init__()
self.yang_name = "socket-info"
self.yang_parent_name = "peer"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('fd', (YLeaf(YType.int64, 'fd'), ['int'])),
('wnotify', (YLeaf(YType.boolean, 'wnotify'), ['bool'])),
('rnotify', (YLeaf(YType.boolean, 'rnotify'), ['bool'])),
('refcnt', (YLeaf(YType.uint32, 'refcnt'), ['int'])),
('selected', (YLeaf(YType.boolean, 'selected'), ['bool'])),
('owner', (YLeaf(YType.uint32, 'owner'), ['int'])),
('csockaddr_str', (YLeaf(YType.str, 'csockaddr-str'), ['str'])),
('ssockaddr_str', (YLeaf(YType.str, 'ssockaddr-str'), ['str'])),
])
self.fd = None
self.wnotify = None
self.rnotify = None
self.refcnt = None
self.selected = None
self.owner = None
self.csockaddr_str = None
self.ssockaddr_str = None
self._segment_path = lambda: "socket-info"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Pcc.Peers.Peer.SocketInfo, ['fd', 'wnotify', 'rnotify', 'refcnt', 'selected', 'owner', 'csockaddr_str', 'ssockaddr_str'], name, value)
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Pcc.Peers.Peer.SocketInfo']['meta_info']
class Stats(_Entity_):
"""
stats
.. attribute:: ka_msg_rx
KA messages rxed
**type**\: int
**range:** 0..18446744073709551615
**config**\: False
.. attribute:: ka_msg_fail_rx
KA messages fail rxed
**type**\: int
**range:** 0..18446744073709551615
**config**\: False
.. attribute:: ka_msg_tx
KA messages txed
**type**\: int
**range:** 0..18446744073709551615
**config**\: False
.. attribute:: ka_msg_fail_tx
KA messages fail txed
**type**\: int
**range:** 0..18446744073709551615
**config**\: False
.. attribute:: pcreq_msg_rx
PCREQ messages rxed
**type**\: int
**range:** 0..18446744073709551615
**config**\: False
.. attribute:: pcreq_msg_fail_rx
PCREQ messages fail rxed
**type**\: int
**range:** 0..18446744073709551615
**config**\: False
.. attribute:: pcreq_msg_tx
PCREQ messages txed
**type**\: int
**range:** 0..18446744073709551615
**config**\: False
.. attribute:: pcreq_msg_fail_tx
PCREQ messages fail txed
**type**\: int
**range:** 0..18446744073709551615
**config**\: False
.. attribute:: pcrep_msg_rx
PCREP messages rxed
**type**\: int
**range:** 0..18446744073709551615
**config**\: False
.. attribute:: pcrep_msg_fail_rx
PCREP messages fail rxed
**type**\: int
**range:** 0..18446744073709551615
**config**\: False
.. attribute:: pcrep_msg_tx
PCREP messages txed
**type**\: int
**range:** 0..18446744073709551615
**config**\: False
.. attribute:: pcrep_msg_fail_tx
PCREP messages fail txed
**type**\: int
**range:** 0..18446744073709551615
**config**\: False
.. attribute:: pcrpt_msg_rx
PCRPT messages rxed
**type**\: int
**range:** 0..18446744073709551615
**config**\: False
.. attribute:: pcrpt_msg_fail_rx
PCRPT messages fail rxed
**type**\: int
**range:** 0..18446744073709551615
**config**\: False
.. attribute:: pcrpt_msg_tx
PCRPT messages txed
**type**\: int
**range:** 0..18446744073709551615
**config**\: False
.. attribute:: pcrpt_msg_fail_tx
PCRPT messages fail txed
**type**\: int
**range:** 0..18446744073709551615
**config**\: False
.. attribute:: pcupd_msg_rx
PCUPD messages rxed
**type**\: int
**range:** 0..18446744073709551615
**config**\: False
.. attribute:: pcupd_msg_fail_rx
PCUPD messages fail rxed
**type**\: int
**range:** 0..18446744073709551615
**config**\: False
.. attribute:: pcupd_msg_tx
PCUPD messages txed
**type**\: int
**range:** 0..18446744073709551615
**config**\: False
.. attribute:: pcupd_msg_fail_tx
PCUPD messages fail txed
**type**\: int
**range:** 0..18446744073709551615
**config**\: False
.. attribute:: open_msg_rx
OPEN messages rxed
**type**\: int
**range:** 0..18446744073709551615
**config**\: False
.. attribute:: open_msg_fail_rx
OPEN messages fail rxed
**type**\: int
**range:** 0..18446744073709551615
**config**\: False
.. attribute:: open_msg_tx
OPEN messages txed
**type**\: int
**range:** 0..18446744073709551615
**config**\: False
.. attribute:: open_msg_fail_tx
OPEN messages fail txed
**type**\: int
**range:** 0..18446744073709551615
**config**\: False
.. attribute:: pcerr_msg_rx
PCERR messages rxed
**type**\: int
**range:** 0..18446744073709551615
**config**\: False
.. attribute:: pcerr_msg_fail_rx
PCERR messages fail rxed
**type**\: int
**range:** 0..18446744073709551615
**config**\: False
.. attribute:: pcerr_msg_tx
PCERR messages txed
**type**\: int
**range:** 0..18446744073709551615
**config**\: False
.. attribute:: pcerr_msg_fail_tx
PCERR messages fail txed
**type**\: int
**range:** 0..18446744073709551615
**config**\: False
.. attribute:: pcntf_msg_rx
PCNTF messages rxed
**type**\: int
**range:** 0..18446744073709551615
**config**\: False
.. attribute:: pcntf_msg_fail_rx
PCNTF messages fail rxed
**type**\: int
**range:** 0..18446744073709551615
**config**\: False
.. attribute:: pcntf_msg_tx
PCNTF messages txed
**type**\: int
**range:** 0..18446744073709551615
**config**\: False
.. attribute:: pcntf_msg_fail_tx
PCNTF messages fail txed
**type**\: int
**range:** 0..18446744073709551615
**config**\: False
.. attribute:: pce_eos_msg_tx
PCE EOS messages txed
**type**\: int
**range:** 0..18446744073709551615
**config**\: False
.. attribute:: pce_eos_msg_fail_tx
PCE EOS messages fail txed
**type**\: int
**range:** 0..18446744073709551615
**config**\: False
.. attribute:: close_msg_rx
CLOSE messages rxed
**type**\: int
**range:** 0..18446744073709551615
**config**\: False
.. attribute:: close_msg_fail_rx
CLOSE messages fail rxed
**type**\: int
**range:** 0..18446744073709551615
**config**\: False
.. attribute:: close_msg_tx
CLOSE messages txed
**type**\: int
**range:** 0..18446744073709551615
**config**\: False
.. attribute:: close_msg_fail_tx
CLOSE messages fail txed
**type**\: int
**range:** 0..18446744073709551615
**config**\: False
.. attribute:: unexpected_msg_rx
Unexpected messages rxed
**type**\: int
**range:** 0..18446744073709551615
**config**\: False
.. attribute:: corrupted_msg_rx
Corrupted messages rxed
**type**\: int
**range:** 0..18446744073709551615
**config**\: False
.. attribute:: reply_time_index
index into recorded reply time
**type**\: int
**range:** 0..4294967295
**config**\: False
.. attribute:: minimum_reply_time
min reply time
**type**\: int
**range:** 0..18446744073709551615
**config**\: False
.. attribute:: maximum_reply_time
max reply time
**type**\: int
**range:** 0..18446744073709551615
**config**\: False
.. attribute:: requests_timed_out
requests timed out
**type**\: int
**range:** 0..18446744073709551615
**config**\: False
.. attribute:: last_pcerr_type_rx
last PCERR type received
**type**\: int
**range:** 0..255
**config**\: False
.. attribute:: last_pcerr_val_rx
last PCERR value received
**type**\: int
**range:** 0..255
**config**\: False
.. attribute:: last_pcerr_rx_ts
last time when PCERR was received
**type**\: int
**range:** 0..18446744073709551615
**config**\: False
.. attribute:: last_pcerr_type_tx
last PCERR type transmitted
**type**\: int
**range:** 0..255
**config**\: False
.. attribute:: last_pcerr_val_tx
last PCERR value transmitted
**type**\: int
**range:** 0..255
**config**\: False
.. attribute:: last_pcerr_tx_ts
last time when PCERR was transmitted
**type**\: int
**range:** 0..18446744073709551615
**config**\: False
.. attribute:: pcinitiate_msg_rx
PCINITIATE messages rxed
**type**\: int
**range:** 0..18446744073709551615
**config**\: False
.. attribute:: pcinitiate_msg_fail_rx
PCINITIATE messages fail rxed
**type**\: int
**range:** 0..18446744073709551615
**config**\: False
.. attribute:: recorded_reply_time
Recorded reply time
**type**\: list of int
**range:** 0..18446744073709551615
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Pcc.Peers.Peer.Stats, self).__init__()
self.yang_name = "stats"
self.yang_parent_name = "peer"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('ka_msg_rx', (YLeaf(YType.uint64, 'ka-msg-rx'), ['int'])),
('ka_msg_fail_rx', (YLeaf(YType.uint64, 'ka-msg-fail-rx'), ['int'])),
('ka_msg_tx', (YLeaf(YType.uint64, 'ka-msg-tx'), ['int'])),
('ka_msg_fail_tx', (YLeaf(YType.uint64, 'ka-msg-fail-tx'), ['int'])),
('pcreq_msg_rx', (YLeaf(YType.uint64, 'pcreq-msg-rx'), ['int'])),
('pcreq_msg_fail_rx', (YLeaf(YType.uint64, 'pcreq-msg-fail-rx'), ['int'])),
('pcreq_msg_tx', (YLeaf(YType.uint64, 'pcreq-msg-tx'), ['int'])),
('pcreq_msg_fail_tx', (YLeaf(YType.uint64, 'pcreq-msg-fail-tx'), ['int'])),
('pcrep_msg_rx', (YLeaf(YType.uint64, 'pcrep-msg-rx'), ['int'])),
('pcrep_msg_fail_rx', (YLeaf(YType.uint64, 'pcrep-msg-fail-rx'), ['int'])),
('pcrep_msg_tx', (YLeaf(YType.uint64, 'pcrep-msg-tx'), ['int'])),
('pcrep_msg_fail_tx', (YLeaf(YType.uint64, 'pcrep-msg-fail-tx'), ['int'])),
('pcrpt_msg_rx', (YLeaf(YType.uint64, 'pcrpt-msg-rx'), ['int'])),
('pcrpt_msg_fail_rx', (YLeaf(YType.uint64, 'pcrpt-msg-fail-rx'), ['int'])),
('pcrpt_msg_tx', (YLeaf(YType.uint64, 'pcrpt-msg-tx'), ['int'])),
('pcrpt_msg_fail_tx', (YLeaf(YType.uint64, 'pcrpt-msg-fail-tx'), ['int'])),
('pcupd_msg_rx', (YLeaf(YType.uint64, 'pcupd-msg-rx'), ['int'])),
('pcupd_msg_fail_rx', (YLeaf(YType.uint64, 'pcupd-msg-fail-rx'), ['int'])),
('pcupd_msg_tx', (YLeaf(YType.uint64, 'pcupd-msg-tx'), ['int'])),
('pcupd_msg_fail_tx', (YLeaf(YType.uint64, 'pcupd-msg-fail-tx'), ['int'])),
('open_msg_rx', (YLeaf(YType.uint64, 'open-msg-rx'), ['int'])),
('open_msg_fail_rx', (YLeaf(YType.uint64, 'open-msg-fail-rx'), ['int'])),
('open_msg_tx', (YLeaf(YType.uint64, 'open-msg-tx'), ['int'])),
('open_msg_fail_tx', (YLeaf(YType.uint64, 'open-msg-fail-tx'), ['int'])),
('pcerr_msg_rx', (YLeaf(YType.uint64, 'pcerr-msg-rx'), ['int'])),
('pcerr_msg_fail_rx', (YLeaf(YType.uint64, 'pcerr-msg-fail-rx'), ['int'])),
('pcerr_msg_tx', (YLeaf(YType.uint64, 'pcerr-msg-tx'), ['int'])),
('pcerr_msg_fail_tx', (YLeaf(YType.uint64, 'pcerr-msg-fail-tx'), ['int'])),
('pcntf_msg_rx', (YLeaf(YType.uint64, 'pcntf-msg-rx'), ['int'])),
('pcntf_msg_fail_rx', (YLeaf(YType.uint64, 'pcntf-msg-fail-rx'), ['int'])),
('pcntf_msg_tx', (YLeaf(YType.uint64, 'pcntf-msg-tx'), ['int'])),
('pcntf_msg_fail_tx', (YLeaf(YType.uint64, 'pcntf-msg-fail-tx'), ['int'])),
('pce_eos_msg_tx', (YLeaf(YType.uint64, 'pce-eos-msg-tx'), ['int'])),
('pce_eos_msg_fail_tx', (YLeaf(YType.uint64, 'pce-eos-msg-fail-tx'), ['int'])),
('close_msg_rx', (YLeaf(YType.uint64, 'close-msg-rx'), ['int'])),
('close_msg_fail_rx', (YLeaf(YType.uint64, 'close-msg-fail-rx'), ['int'])),
('close_msg_tx', (YLeaf(YType.uint64, 'close-msg-tx'), ['int'])),
('close_msg_fail_tx', (YLeaf(YType.uint64, 'close-msg-fail-tx'), ['int'])),
('unexpected_msg_rx', (YLeaf(YType.uint64, 'unexpected-msg-rx'), ['int'])),
('corrupted_msg_rx', (YLeaf(YType.uint64, 'corrupted-msg-rx'), ['int'])),
('reply_time_index', (YLeaf(YType.uint32, 'reply-time-index'), ['int'])),
('minimum_reply_time', (YLeaf(YType.uint64, 'minimum-reply-time'), ['int'])),
('maximum_reply_time', (YLeaf(YType.uint64, 'maximum-reply-time'), ['int'])),
('requests_timed_out', (YLeaf(YType.uint64, 'requests-timed-out'), ['int'])),
('last_pcerr_type_rx', (YLeaf(YType.uint8, 'last-pcerr-type-rx'), ['int'])),
('last_pcerr_val_rx', (YLeaf(YType.uint8, 'last-pcerr-val-rx'), ['int'])),
('last_pcerr_rx_ts', (YLeaf(YType.uint64, 'last-pcerr-rx-ts'), ['int'])),
('last_pcerr_type_tx', (YLeaf(YType.uint8, 'last-pcerr-type-tx'), ['int'])),
('last_pcerr_val_tx', (YLeaf(YType.uint8, 'last-pcerr-val-tx'), ['int'])),
('last_pcerr_tx_ts', (YLeaf(YType.uint64, 'last-pcerr-tx-ts'), ['int'])),
('pcinitiate_msg_rx', (YLeaf(YType.uint64, 'pcinitiate-msg-rx'), ['int'])),
('pcinitiate_msg_fail_rx', (YLeaf(YType.uint64, 'pcinitiate-msg-fail-rx'), ['int'])),
('recorded_reply_time', (YLeafList(YType.uint64, 'recorded-reply-time'), ['int'])),
])
self.ka_msg_rx = None
self.ka_msg_fail_rx = None
self.ka_msg_tx = None
self.ka_msg_fail_tx = None
self.pcreq_msg_rx = None
self.pcreq_msg_fail_rx = None
self.pcreq_msg_tx = None
self.pcreq_msg_fail_tx = None
self.pcrep_msg_rx = None
self.pcrep_msg_fail_rx = None
self.pcrep_msg_tx = None
self.pcrep_msg_fail_tx = None
self.pcrpt_msg_rx = None
self.pcrpt_msg_fail_rx = None
self.pcrpt_msg_tx = None
self.pcrpt_msg_fail_tx = None
self.pcupd_msg_rx = None
self.pcupd_msg_fail_rx = None
self.pcupd_msg_tx = None
self.pcupd_msg_fail_tx = None
self.open_msg_rx = None
self.open_msg_fail_rx = None
self.open_msg_tx = None
self.open_msg_fail_tx = None
self.pcerr_msg_rx = None
self.pcerr_msg_fail_rx = None
self.pcerr_msg_tx = None
self.pcerr_msg_fail_tx = None
self.pcntf_msg_rx = None
self.pcntf_msg_fail_rx = None
self.pcntf_msg_tx = None
self.pcntf_msg_fail_tx = None
self.pce_eos_msg_tx = None
self.pce_eos_msg_fail_tx = None
self.close_msg_rx = None
self.close_msg_fail_rx = None
self.close_msg_tx = None
self.close_msg_fail_tx = None
self.unexpected_msg_rx = None
self.corrupted_msg_rx = None
self.reply_time_index = None
self.minimum_reply_time = None
self.maximum_reply_time = None
self.requests_timed_out = None
self.last_pcerr_type_rx = None
self.last_pcerr_val_rx = None
self.last_pcerr_rx_ts = None
self.last_pcerr_type_tx = None
self.last_pcerr_val_tx = None
self.last_pcerr_tx_ts = None
self.pcinitiate_msg_rx = None
self.pcinitiate_msg_fail_rx = None
self.recorded_reply_time = []
self._segment_path = lambda: "stats"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Pcc.Peers.Peer.Stats, ['ka_msg_rx', 'ka_msg_fail_rx', 'ka_msg_tx', 'ka_msg_fail_tx', 'pcreq_msg_rx', 'pcreq_msg_fail_rx', 'pcreq_msg_tx', 'pcreq_msg_fail_tx', 'pcrep_msg_rx', 'pcrep_msg_fail_rx', 'pcrep_msg_tx', 'pcrep_msg_fail_tx', 'pcrpt_msg_rx', 'pcrpt_msg_fail_rx', 'pcrpt_msg_tx', 'pcrpt_msg_fail_tx', 'pcupd_msg_rx', 'pcupd_msg_fail_rx', 'pcupd_msg_tx', 'pcupd_msg_fail_tx', 'open_msg_rx', 'open_msg_fail_rx', 'open_msg_tx', 'open_msg_fail_tx', 'pcerr_msg_rx', 'pcerr_msg_fail_rx', 'pcerr_msg_tx', 'pcerr_msg_fail_tx', 'pcntf_msg_rx', 'pcntf_msg_fail_rx', 'pcntf_msg_tx', 'pcntf_msg_fail_tx', 'pce_eos_msg_tx', 'pce_eos_msg_fail_tx', 'close_msg_rx', 'close_msg_fail_rx', 'close_msg_tx', 'close_msg_fail_tx', 'unexpected_msg_rx', 'corrupted_msg_rx', 'reply_time_index', 'minimum_reply_time', 'maximum_reply_time', 'requests_timed_out', 'last_pcerr_type_rx', 'last_pcerr_val_rx', 'last_pcerr_rx_ts', 'last_pcerr_type_tx', 'last_pcerr_val_tx', 'last_pcerr_tx_ts', 'pcinitiate_msg_rx', 'pcinitiate_msg_fail_rx', 'recorded_reply_time'], name, value)
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Pcc.Peers.Peer.Stats']['meta_info']
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Pcc.Peers.Peer']['meta_info']
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Pcc.Peers']['meta_info']
def clone_ptr(self):
self._top_entity = Pcc()
return self._top_entity
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Pcc']['meta_info']
class Xtc(_Entity_):
"""
xtc
.. attribute:: policies
Policy database in XTC Agent
**type**\: :py:class:`Policies <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Xtc.Policies>`
**config**\: False
.. attribute:: interfaces
Interface database in XTC Agent
**type**\: :py:class:`Interfaces <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Xtc.Interfaces>`
**config**\: False
.. attribute:: policy_forwardings
Forwarding information for policies
**type**\: :py:class:`PolicyForwardings <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Xtc.PolicyForwardings>`
**config**\: False
.. attribute:: policy_summary
Summary of all policies
**type**\: :py:class:`PolicySummary <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Xtc.PolicySummary>`
**config**\: False
.. attribute:: on_demand_colors
On\-Demand Color database in XTC Agent
**type**\: :py:class:`OnDemandColors <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Xtc.OnDemandColors>`
**config**\: False
.. attribute:: controller
Controller information
**type**\: :py:class:`Controller <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Xtc.Controller>`
**config**\: False
.. attribute:: topology_nodes
Node database in XTC Agent
**type**\: :py:class:`TopologyNodes <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Xtc.TopologyNodes>`
**config**\: False
.. attribute:: topology_summaries
Node summary table
**type**\: :py:class:`TopologySummaries <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Xtc.TopologySummaries>`
**config**\: False
.. attribute:: prefix_infos
Prefixes database in XTC Agent
**type**\: :py:class:`PrefixInfos <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Xtc.PrefixInfos>`
**config**\: False
.. attribute:: interface_summary
Summary of all interfaces
**type**\: :py:class:`InterfaceSummary <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Xtc.InterfaceSummary>`
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc, self).__init__()
self._top_entity = None
self.yang_name = "xtc"
self.yang_parent_name = "Cisco-IOS-XR-infra-xtc-agent-oper"
self.is_top_level_class = True
self.has_list_ancestor = False
self.ylist_key_names = []
self._child_classes = OrderedDict([("policies", ("policies", Xtc.Policies)), ("interfaces", ("interfaces", Xtc.Interfaces)), ("policy-forwardings", ("policy_forwardings", Xtc.PolicyForwardings)), ("policy-summary", ("policy_summary", Xtc.PolicySummary)), ("on-demand-colors", ("on_demand_colors", Xtc.OnDemandColors)), ("controller", ("controller", Xtc.Controller)), ("topology-nodes", ("topology_nodes", Xtc.TopologyNodes)), ("topology-summaries", ("topology_summaries", Xtc.TopologySummaries)), ("prefix-infos", ("prefix_infos", Xtc.PrefixInfos)), ("interface-summary", ("interface_summary", Xtc.InterfaceSummary))])
self._leafs = OrderedDict()
self.policies = Xtc.Policies()
self.policies.parent = self
self._children_name_map["policies"] = "policies"
self.interfaces = Xtc.Interfaces()
self.interfaces.parent = self
self._children_name_map["interfaces"] = "interfaces"
self.policy_forwardings = Xtc.PolicyForwardings()
self.policy_forwardings.parent = self
self._children_name_map["policy_forwardings"] = "policy-forwardings"
self.policy_summary = Xtc.PolicySummary()
self.policy_summary.parent = self
self._children_name_map["policy_summary"] = "policy-summary"
self.on_demand_colors = Xtc.OnDemandColors()
self.on_demand_colors.parent = self
self._children_name_map["on_demand_colors"] = "on-demand-colors"
self.controller = Xtc.Controller()
self.controller.parent = self
self._children_name_map["controller"] = "controller"
self.topology_nodes = Xtc.TopologyNodes()
self.topology_nodes.parent = self
self._children_name_map["topology_nodes"] = "topology-nodes"
self.topology_summaries = Xtc.TopologySummaries()
self.topology_summaries.parent = self
self._children_name_map["topology_summaries"] = "topology-summaries"
self.prefix_infos = Xtc.PrefixInfos()
self.prefix_infos.parent = self
self._children_name_map["prefix_infos"] = "prefix-infos"
self.interface_summary = Xtc.InterfaceSummary()
self.interface_summary.parent = self
self._children_name_map["interface_summary"] = "interface-summary"
self._segment_path = lambda: "Cisco-IOS-XR-infra-xtc-agent-oper:xtc"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc, [], name, value)
class Policies(_Entity_):
"""
Policy database in XTC Agent
.. attribute:: policy
Policy information
**type**\: list of :py:class:`Policy <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Xtc.Policies.Policy>`
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc.Policies, self).__init__()
self.yang_name = "policies"
self.yang_parent_name = "xtc"
self.is_top_level_class = False
self.has_list_ancestor = False
self.ylist_key_names = []
self._child_classes = OrderedDict([("policy", ("policy", Xtc.Policies.Policy))])
self._leafs = OrderedDict()
self.policy = YList(self)
self._segment_path = lambda: "policies"
self._absolute_path = lambda: "Cisco-IOS-XR-infra-xtc-agent-oper:xtc/%s" % self._segment_path()
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc.Policies, [], name, value)
class Policy(_Entity_):
"""
Policy information
.. attribute:: id (key)
Policy ID
**type**\: int
**range:** 0..4294967295
**config**\: False
.. attribute:: destination_address
Destination address
**type**\: :py:class:`DestinationAddress <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Xtc.Policies.Policy.DestinationAddress>`
**config**\: False
.. attribute:: binding_sid
Binding SID information
**type**\: :py:class:`BindingSid <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Xtc.Policies.Policy.BindingSid>`
**config**\: False
.. attribute:: policy_name
Policy name
**type**\: str
**config**\: False
.. attribute:: administrative_up
Admin up
**type**\: int
**range:** 0..4294967295
**config**\: False
.. attribute:: operational_up
Operational up
**type**\: int
**range:** 0..4294967295
**config**\: False
.. attribute:: color
Color
**type**\: int
**range:** 0..4294967295
**config**\: False
.. attribute:: transition_count
Indicates number of up/down transitions
**type**\: int
**range:** 0..4294967295
**config**\: False
.. attribute:: forward_class
Forward class of the policy
**type**\: int
**range:** 0..4294967295
**config**\: False
.. attribute:: up_time
Policy up time in nano seconds
**type**\: int
**range:** 0..18446744073709551615
**config**\: False
**units**\: nanosecond
.. attribute:: up_age
Policy up age (since) in nano seconds
**type**\: int
**range:** 0..18446744073709551615
**config**\: False
**units**\: nanosecond
.. attribute:: down_time
Policy down time in nano seconds
**type**\: int
**range:** 0..18446744073709551615
**config**\: False
**units**\: nanosecond
.. attribute:: down_age
Policy down age (since) in nano seconds
**type**\: int
**range:** 0..18446744073709551615
**config**\: False
**units**\: nanosecond
.. attribute:: steering_bgp_disabled
Whether steering to BGP client is disabled
**type**\: bool
**config**\: False
.. attribute:: interface_handle
Interface handle
**type**\: int
**range:** 0..4294967295
**config**\: False
.. attribute:: profile_id
deprecated \- replaced by key list in xtc\_pcc\_info\_bag
**type**\: int
**range:** 0..65535
**config**\: False
.. attribute:: ipv6_caps_enabled
IPv6 caps enabled
**type**\: bool
**config**\: False
.. attribute:: candidate_path
Candidate paths
**type**\: list of :py:class:`CandidatePath <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Xtc.Policies.Policy.CandidatePath>`
**config**\: False
.. attribute:: ls_ps
LSPs
**type**\: list of :py:class:`LsPs <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Xtc.Policies.Policy.LsPs>`
**config**\: False
.. attribute:: event_buffer
Policy Event buffer
**type**\: list of :py:class:`EventBuffer <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Xtc.Policies.Policy.EventBuffer>`
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc.Policies.Policy, self).__init__()
self.yang_name = "policy"
self.yang_parent_name = "policies"
self.is_top_level_class = False
self.has_list_ancestor = False
self.ylist_key_names = ['id']
self._child_classes = OrderedDict([("destination-address", ("destination_address", Xtc.Policies.Policy.DestinationAddress)), ("binding-sid", ("binding_sid", Xtc.Policies.Policy.BindingSid)), ("candidate-path", ("candidate_path", Xtc.Policies.Policy.CandidatePath)), ("ls-ps", ("ls_ps", Xtc.Policies.Policy.LsPs)), ("event-buffer", ("event_buffer", Xtc.Policies.Policy.EventBuffer))])
self._leafs = OrderedDict([
('id', (YLeaf(YType.uint32, 'id'), ['int'])),
('policy_name', (YLeaf(YType.str, 'policy-name'), ['str'])),
('administrative_up', (YLeaf(YType.uint32, 'administrative-up'), ['int'])),
('operational_up', (YLeaf(YType.uint32, 'operational-up'), ['int'])),
('color', (YLeaf(YType.uint32, 'color'), ['int'])),
('transition_count', (YLeaf(YType.uint32, 'transition-count'), ['int'])),
('forward_class', (YLeaf(YType.uint32, 'forward-class'), ['int'])),
('up_time', (YLeaf(YType.uint64, 'up-time'), ['int'])),
('up_age', (YLeaf(YType.uint64, 'up-age'), ['int'])),
('down_time', (YLeaf(YType.uint64, 'down-time'), ['int'])),
('down_age', (YLeaf(YType.uint64, 'down-age'), ['int'])),
('steering_bgp_disabled', (YLeaf(YType.boolean, 'steering-bgp-disabled'), ['bool'])),
('interface_handle', (YLeaf(YType.uint32, 'interface-handle'), ['int'])),
('profile_id', (YLeaf(YType.uint16, 'profile-id'), ['int'])),
('ipv6_caps_enabled', (YLeaf(YType.boolean, 'ipv6-caps-enabled'), ['bool'])),
])
self.id = None
self.policy_name = None
self.administrative_up = None
self.operational_up = None
self.color = None
self.transition_count = None
self.forward_class = None
self.up_time = None
self.up_age = None
self.down_time = None
self.down_age = None
self.steering_bgp_disabled = None
self.interface_handle = None
self.profile_id = None
self.ipv6_caps_enabled = None
self.destination_address = Xtc.Policies.Policy.DestinationAddress()
self.destination_address.parent = self
self._children_name_map["destination_address"] = "destination-address"
self.binding_sid = Xtc.Policies.Policy.BindingSid()
self.binding_sid.parent = self
self._children_name_map["binding_sid"] = "binding-sid"
self.candidate_path = YList(self)
self.ls_ps = YList(self)
self.event_buffer = YList(self)
self._segment_path = lambda: "policy" + "[id='" + str(self.id) + "']"
self._absolute_path = lambda: "Cisco-IOS-XR-infra-xtc-agent-oper:xtc/policies/%s" % self._segment_path()
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc.Policies.Policy, ['id', 'policy_name', 'administrative_up', 'operational_up', 'color', 'transition_count', 'forward_class', 'up_time', 'up_age', 'down_time', 'down_age', 'steering_bgp_disabled', 'interface_handle', 'profile_id', 'ipv6_caps_enabled'], name, value)
class DestinationAddress(_Entity_):
"""
Destination address
.. attribute:: af_name
AFName
**type**\: :py:class:`XtcAfId <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.XtcAfId>`
**config**\: False
.. attribute:: ipv4
IPv4 address type
**type**\: str
**pattern:** (([0\-9]\|[1\-9][0\-9]\|1[0\-9][0\-9]\|2[0\-4][0\-9]\|25[0\-5])\\.){3}([0\-9]\|[1\-9][0\-9]\|1[0\-9][0\-9]\|2[0\-4][0\-9]\|25[0\-5])(%[\\p{N}\\p{L}]+)?
**config**\: False
.. attribute:: ipv6
IPv6 address type
**type**\: str
**pattern:** ((\:\|[0\-9a\-fA\-F]{0,4})\:)([0\-9a\-fA\-F]{0,4}\:){0,5}((([0\-9a\-fA\-F]{0,4}\:)?(\:\|[0\-9a\-fA\-F]{0,4}))\|(((25[0\-5]\|2[0\-4][0\-9]\|[01]?[0\-9]?[0\-9])\\.){3}(25[0\-5]\|2[0\-4][0\-9]\|[01]?[0\-9]?[0\-9])))(%[\\p{N}\\p{L}]+)?
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc.Policies.Policy.DestinationAddress, self).__init__()
self.yang_name = "destination-address"
self.yang_parent_name = "policy"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('af_name', (YLeaf(YType.enumeration, 'af-name'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper', 'XtcAfId', '')])),
('ipv4', (YLeaf(YType.str, 'ipv4'), ['str'])),
('ipv6', (YLeaf(YType.str, 'ipv6'), ['str'])),
])
self.af_name = None
self.ipv4 = None
self.ipv6 = None
self._segment_path = lambda: "destination-address"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc.Policies.Policy.DestinationAddress, ['af_name', 'ipv4', 'ipv6'], name, value)
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc.Policies.Policy.DestinationAddress']['meta_info']
class BindingSid(_Entity_):
"""
Binding SID information
.. attribute:: value
Binding SID value
**type**\: :py:class:`Value <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Xtc.Policies.Policy.BindingSid.Value>`
**config**\: False
.. attribute:: is_fallback_dynamic
Whether the BSID is in fallback dynamic mode
**type**\: bool
**config**\: False
.. attribute:: is_within_srlb_range
Whether the BSID is within SRLB range
**type**\: bool
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc.Policies.Policy.BindingSid, self).__init__()
self.yang_name = "binding-sid"
self.yang_parent_name = "policy"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([("value", ("value", Xtc.Policies.Policy.BindingSid.Value))])
self._leafs = OrderedDict([
('is_fallback_dynamic', (YLeaf(YType.boolean, 'is-fallback-dynamic'), ['bool'])),
('is_within_srlb_range', (YLeaf(YType.boolean, 'is-within-srlb-range'), ['bool'])),
])
self.is_fallback_dynamic = None
self.is_within_srlb_range = None
self.value = Xtc.Policies.Policy.BindingSid.Value()
self.value.parent = self
self._children_name_map["value"] = "value"
self._segment_path = lambda: "binding-sid"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc.Policies.Policy.BindingSid, ['is_fallback_dynamic', 'is_within_srlb_range'], name, value)
class Value(_Entity_):
"""
Binding SID value
.. attribute:: sid_type
SIDType
**type**\: :py:class:`XtcSid <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.XtcSid>`
**config**\: False
.. attribute:: label
MPLS label
**type**\: int
**range:** 0..4294967295
**config**\: False
.. attribute:: ipv6
IPv6 address
**type**\: str
**pattern:** ((\:\|[0\-9a\-fA\-F]{0,4})\:)([0\-9a\-fA\-F]{0,4}\:){0,5}((([0\-9a\-fA\-F]{0,4}\:)?(\:\|[0\-9a\-fA\-F]{0,4}))\|(((25[0\-5]\|2[0\-4][0\-9]\|[01]?[0\-9]?[0\-9])\\.){3}(25[0\-5]\|2[0\-4][0\-9]\|[01]?[0\-9]?[0\-9])))(%[\\p{N}\\p{L}]+)?
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc.Policies.Policy.BindingSid.Value, self).__init__()
self.yang_name = "value"
self.yang_parent_name = "binding-sid"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('sid_type', (YLeaf(YType.enumeration, 'sid-type'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper', 'XtcSid', '')])),
('label', (YLeaf(YType.uint32, 'label'), ['int'])),
('ipv6', (YLeaf(YType.str, 'ipv6'), ['str'])),
])
self.sid_type = None
self.label = None
self.ipv6 = None
self._segment_path = lambda: "value"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc.Policies.Policy.BindingSid.Value, ['sid_type', 'label', 'ipv6'], name, value)
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc.Policies.Policy.BindingSid.Value']['meta_info']
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc.Policies.Policy.BindingSid']['meta_info']
class CandidatePath(_Entity_):
"""
Candidate paths
.. attribute:: originator
Candidate path originator
**type**\: :py:class:`Originator <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Xtc.Policies.Policy.CandidatePath.Originator>`
**config**\: False
.. attribute:: sr_path_constraints
SR candidate path constraints
**type**\: :py:class:`SrPathConstraints <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Xtc.Policies.Policy.CandidatePath.SrPathConstraints>`
**config**\: False
.. attribute:: requested_bsid
Requested binding SID
**type**\: :py:class:`RequestedBsid <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Xtc.Policies.Policy.CandidatePath.RequestedBsid>`
**config**\: False
.. attribute:: cleanup_timer
Cleanup timer if the candidate path is in the process of being cleaned up
**type**\: :py:class:`CleanupTimer <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Xtc.Policies.Policy.CandidatePath.CleanupTimer>`
**config**\: False
.. attribute:: pcc_information
PCC PCEP\-related information
**type**\: :py:class:`PccInformation <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Xtc.Policies.Policy.CandidatePath.PccInformation>`
**config**\: False
.. attribute:: name
Candidate path name
**type**\: str
**config**\: False
.. attribute:: preference
Candidate path preference
**type**\: int
**range:** 0..4294967295
**config**\: False
.. attribute:: protocol_originator
Candidate path protocol origin
**type**\: :py:class:`XtcPolicyCpathProtoOrigin <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.XtcPolicyCpathProtoOrigin>`
**config**\: False
.. attribute:: discriminator
Candidate path discriminator
**type**\: int
**range:** 0..4294967295
**config**\: False
.. attribute:: is_active
Whether this is the currently active candidate path
**type**\: bool
**config**\: False
.. attribute:: is_reoptimizing
Whether this is the candidate path that the policy is reoptimizing to
**type**\: bool
**config**\: False
.. attribute:: shutdown
If set, the candidate path is administratively shutdown
**type**\: bool
**config**\: False
.. attribute:: error
Candidate path error (for display only)
**type**\: str
**config**\: False
.. attribute:: segment_list
Segment lists of the candidate path
**type**\: list of :py:class:`SegmentList <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Xtc.Policies.Policy.CandidatePath.SegmentList>`
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc.Policies.Policy.CandidatePath, self).__init__()
self.yang_name = "candidate-path"
self.yang_parent_name = "policy"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([("originator", ("originator", Xtc.Policies.Policy.CandidatePath.Originator)), ("sr-path-constraints", ("sr_path_constraints", Xtc.Policies.Policy.CandidatePath.SrPathConstraints)), ("requested-bsid", ("requested_bsid", Xtc.Policies.Policy.CandidatePath.RequestedBsid)), ("cleanup-timer", ("cleanup_timer", Xtc.Policies.Policy.CandidatePath.CleanupTimer)), ("pcc-information", ("pcc_information", Xtc.Policies.Policy.CandidatePath.PccInformation)), ("segment-list", ("segment_list", Xtc.Policies.Policy.CandidatePath.SegmentList))])
self._leafs = OrderedDict([
('name', (YLeaf(YType.str, 'name'), ['str'])),
('preference', (YLeaf(YType.uint32, 'preference'), ['int'])),
('protocol_originator', (YLeaf(YType.enumeration, 'protocol-originator'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper', 'XtcPolicyCpathProtoOrigin', '')])),
('discriminator', (YLeaf(YType.uint32, 'discriminator'), ['int'])),
('is_active', (YLeaf(YType.boolean, 'is-active'), ['bool'])),
('is_reoptimizing', (YLeaf(YType.boolean, 'is-reoptimizing'), ['bool'])),
('shutdown', (YLeaf(YType.boolean, 'shutdown'), ['bool'])),
('error', (YLeaf(YType.str, 'error'), ['str'])),
])
self.name = None
self.preference = None
self.protocol_originator = None
self.discriminator = None
self.is_active = None
self.is_reoptimizing = None
self.shutdown = None
self.error = None
self.originator = Xtc.Policies.Policy.CandidatePath.Originator()
self.originator.parent = self
self._children_name_map["originator"] = "originator"
self.sr_path_constraints = Xtc.Policies.Policy.CandidatePath.SrPathConstraints()
self.sr_path_constraints.parent = self
self._children_name_map["sr_path_constraints"] = "sr-path-constraints"
self.requested_bsid = Xtc.Policies.Policy.CandidatePath.RequestedBsid()
self.requested_bsid.parent = self
self._children_name_map["requested_bsid"] = "requested-bsid"
self.cleanup_timer = Xtc.Policies.Policy.CandidatePath.CleanupTimer()
self.cleanup_timer.parent = self
self._children_name_map["cleanup_timer"] = "cleanup-timer"
self.pcc_information = Xtc.Policies.Policy.CandidatePath.PccInformation()
self.pcc_information.parent = self
self._children_name_map["pcc_information"] = "pcc-information"
self.segment_list = YList(self)
self._segment_path = lambda: "candidate-path"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc.Policies.Policy.CandidatePath, ['name', 'preference', 'protocol_originator', 'discriminator', 'is_active', 'is_reoptimizing', 'shutdown', 'error'], name, value)
class Originator(_Entity_):
"""
Candidate path originator
.. attribute:: node_address
Originator node address
**type**\: :py:class:`NodeAddress <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Xtc.Policies.Policy.CandidatePath.Originator.NodeAddress>`
**config**\: False
.. attribute:: autonomous_system_number
Originator Autonomous System Number
**type**\: int
**range:** 0..4294967295
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc.Policies.Policy.CandidatePath.Originator, self).__init__()
self.yang_name = "originator"
self.yang_parent_name = "candidate-path"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([("node-address", ("node_address", Xtc.Policies.Policy.CandidatePath.Originator.NodeAddress))])
self._leafs = OrderedDict([
('autonomous_system_number', (YLeaf(YType.uint32, 'autonomous-system-number'), ['int'])),
])
self.autonomous_system_number = None
self.node_address = Xtc.Policies.Policy.CandidatePath.Originator.NodeAddress()
self.node_address.parent = self
self._children_name_map["node_address"] = "node-address"
self._segment_path = lambda: "originator"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc.Policies.Policy.CandidatePath.Originator, ['autonomous_system_number'], name, value)
class NodeAddress(_Entity_):
"""
Originator node address
.. attribute:: af_name
AFName
**type**\: :py:class:`XtcAfId <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.XtcAfId>`
**config**\: False
.. attribute:: ipv4
IPv4 address type
**type**\: str
**pattern:** (([0\-9]\|[1\-9][0\-9]\|1[0\-9][0\-9]\|2[0\-4][0\-9]\|25[0\-5])\\.){3}([0\-9]\|[1\-9][0\-9]\|1[0\-9][0\-9]\|2[0\-4][0\-9]\|25[0\-5])(%[\\p{N}\\p{L}]+)?
**config**\: False
.. attribute:: ipv6
IPv6 address type
**type**\: str
**pattern:** ((\:\|[0\-9a\-fA\-F]{0,4})\:)([0\-9a\-fA\-F]{0,4}\:){0,5}((([0\-9a\-fA\-F]{0,4}\:)?(\:\|[0\-9a\-fA\-F]{0,4}))\|(((25[0\-5]\|2[0\-4][0\-9]\|[01]?[0\-9]?[0\-9])\\.){3}(25[0\-5]\|2[0\-4][0\-9]\|[01]?[0\-9]?[0\-9])))(%[\\p{N}\\p{L}]+)?
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc.Policies.Policy.CandidatePath.Originator.NodeAddress, self).__init__()
self.yang_name = "node-address"
self.yang_parent_name = "originator"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('af_name', (YLeaf(YType.enumeration, 'af-name'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper', 'XtcAfId', '')])),
('ipv4', (YLeaf(YType.str, 'ipv4'), ['str'])),
('ipv6', (YLeaf(YType.str, 'ipv6'), ['str'])),
])
self.af_name = None
self.ipv4 = None
self.ipv6 = None
self._segment_path = lambda: "node-address"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc.Policies.Policy.CandidatePath.Originator.NodeAddress, ['af_name', 'ipv4', 'ipv6'], name, value)
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc.Policies.Policy.CandidatePath.Originator.NodeAddress']['meta_info']
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc.Policies.Policy.CandidatePath.Originator']['meta_info']
class SrPathConstraints(_Entity_):
"""
SR candidate path constraints
.. attribute:: path_metrics
Path metrics
**type**\: :py:class:`PathMetrics <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Xtc.Policies.Policy.CandidatePath.SrPathConstraints.PathMetrics>`
**config**\: False
.. attribute:: segments
Segments constraints
**type**\: :py:class:`Segments <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Xtc.Policies.Policy.CandidatePath.SrPathConstraints.Segments>`
**config**\: False
.. attribute:: affinity_constraint
Affinity constraints list
**type**\: list of :py:class:`AffinityConstraint <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Xtc.Policies.Policy.CandidatePath.SrPathConstraints.AffinityConstraint>`
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc.Policies.Policy.CandidatePath.SrPathConstraints, self).__init__()
self.yang_name = "sr-path-constraints"
self.yang_parent_name = "candidate-path"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([("path-metrics", ("path_metrics", Xtc.Policies.Policy.CandidatePath.SrPathConstraints.PathMetrics)), ("segments", ("segments", Xtc.Policies.Policy.CandidatePath.SrPathConstraints.Segments)), ("affinity-constraint", ("affinity_constraint", Xtc.Policies.Policy.CandidatePath.SrPathConstraints.AffinityConstraint))])
self._leafs = OrderedDict()
self.path_metrics = Xtc.Policies.Policy.CandidatePath.SrPathConstraints.PathMetrics()
self.path_metrics.parent = self
self._children_name_map["path_metrics"] = "path-metrics"
self.segments = Xtc.Policies.Policy.CandidatePath.SrPathConstraints.Segments()
self.segments.parent = self
self._children_name_map["segments"] = "segments"
self.affinity_constraint = YList(self)
self._segment_path = lambda: "sr-path-constraints"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc.Policies.Policy.CandidatePath.SrPathConstraints, [], name, value)
class PathMetrics(_Entity_):
"""
Path metrics
.. attribute:: margin_relative
Margin Relative
**type**\: int
**range:** 0..4294967295
**config**\: False
.. attribute:: margin_absolute
Margin Absolute
**type**\: int
**range:** 0..4294967295
**config**\: False
.. attribute:: maximum_segments
Maximum number of segments
**type**\: int
**range:** 0..65535
**config**\: False
.. attribute:: accumulative_te_metric
Accumulative TE metric
**type**\: int
**range:** 0..4294967295
**config**\: False
.. attribute:: accumulative_igp_metric
Accumulative IGP metric
**type**\: int
**range:** 0..4294967295
**config**\: False
.. attribute:: accumulative_delay
Accumulative delay
**type**\: int
**range:** 0..4294967295
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc.Policies.Policy.CandidatePath.SrPathConstraints.PathMetrics, self).__init__()
self.yang_name = "path-metrics"
self.yang_parent_name = "sr-path-constraints"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('margin_relative', (YLeaf(YType.uint32, 'margin-relative'), ['int'])),
('margin_absolute', (YLeaf(YType.uint32, 'margin-absolute'), ['int'])),
('maximum_segments', (YLeaf(YType.uint16, 'maximum-segments'), ['int'])),
('accumulative_te_metric', (YLeaf(YType.uint32, 'accumulative-te-metric'), ['int'])),
('accumulative_igp_metric', (YLeaf(YType.uint32, 'accumulative-igp-metric'), ['int'])),
('accumulative_delay', (YLeaf(YType.uint32, 'accumulative-delay'), ['int'])),
])
self.margin_relative = None
self.margin_absolute = None
self.maximum_segments = None
self.accumulative_te_metric = None
self.accumulative_igp_metric = None
self.accumulative_delay = None
self._segment_path = lambda: "path-metrics"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc.Policies.Policy.CandidatePath.SrPathConstraints.PathMetrics, ['margin_relative', 'margin_absolute', 'maximum_segments', 'accumulative_te_metric', 'accumulative_igp_metric', 'accumulative_delay'], name, value)
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc.Policies.Policy.CandidatePath.SrPathConstraints.PathMetrics']['meta_info']
class Segments(_Entity_):
"""
Segments constraints
.. attribute:: segment_algorithm
Segment Algorithm
**type**\: int
**range:** 0..255
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc.Policies.Policy.CandidatePath.SrPathConstraints.Segments, self).__init__()
self.yang_name = "segments"
self.yang_parent_name = "sr-path-constraints"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('segment_algorithm', (YLeaf(YType.uint8, 'segment-algorithm'), ['int'])),
])
self.segment_algorithm = None
self._segment_path = lambda: "segments"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc.Policies.Policy.CandidatePath.SrPathConstraints.Segments, ['segment_algorithm'], name, value)
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc.Policies.Policy.CandidatePath.SrPathConstraints.Segments']['meta_info']
class AffinityConstraint(_Entity_):
"""
Affinity constraints list
.. attribute:: type
Affinity type
**type**\: int
**range:** 0..255
**config**\: False
.. attribute:: value
Affinity value
**type**\: int
**range:** 0..4294967295
**config**\: False
.. attribute:: extended_value
Extended Affinity values
**type**\: list of int
**range:** 0..4294967295
**config**\: False
.. attribute:: color
Colors
**type**\: list of :py:class:`Color <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Xtc.Policies.Policy.CandidatePath.SrPathConstraints.AffinityConstraint.Color>`
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc.Policies.Policy.CandidatePath.SrPathConstraints.AffinityConstraint, self).__init__()
self.yang_name = "affinity-constraint"
self.yang_parent_name = "sr-path-constraints"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([("color", ("color", Xtc.Policies.Policy.CandidatePath.SrPathConstraints.AffinityConstraint.Color))])
self._leafs = OrderedDict([
('type', (YLeaf(YType.uint8, 'type'), ['int'])),
('value', (YLeaf(YType.uint32, 'value'), ['int'])),
('extended_value', (YLeafList(YType.uint32, 'extended-value'), ['int'])),
])
self.type = None
self.value = None
self.extended_value = []
self.color = YList(self)
self._segment_path = lambda: "affinity-constraint"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc.Policies.Policy.CandidatePath.SrPathConstraints.AffinityConstraint, ['type', 'value', 'extended_value'], name, value)
class Color(_Entity_):
"""
Colors
.. attribute:: color
An affinity color
**type**\: str
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc.Policies.Policy.CandidatePath.SrPathConstraints.AffinityConstraint.Color, self).__init__()
self.yang_name = "color"
self.yang_parent_name = "affinity-constraint"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('color', (YLeaf(YType.str, 'color'), ['str'])),
])
self.color = None
self._segment_path = lambda: "color"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc.Policies.Policy.CandidatePath.SrPathConstraints.AffinityConstraint.Color, ['color'], name, value)
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc.Policies.Policy.CandidatePath.SrPathConstraints.AffinityConstraint.Color']['meta_info']
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc.Policies.Policy.CandidatePath.SrPathConstraints.AffinityConstraint']['meta_info']
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc.Policies.Policy.CandidatePath.SrPathConstraints']['meta_info']
class RequestedBsid(_Entity_):
"""
Requested binding SID
.. attribute:: sid_type
SIDType
**type**\: :py:class:`XtcSid <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.XtcSid>`
**config**\: False
.. attribute:: label
MPLS label
**type**\: int
**range:** 0..4294967295
**config**\: False
.. attribute:: ipv6
IPv6 address
**type**\: str
**pattern:** ((\:\|[0\-9a\-fA\-F]{0,4})\:)([0\-9a\-fA\-F]{0,4}\:){0,5}((([0\-9a\-fA\-F]{0,4}\:)?(\:\|[0\-9a\-fA\-F]{0,4}))\|(((25[0\-5]\|2[0\-4][0\-9]\|[01]?[0\-9]?[0\-9])\\.){3}(25[0\-5]\|2[0\-4][0\-9]\|[01]?[0\-9]?[0\-9])))(%[\\p{N}\\p{L}]+)?
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc.Policies.Policy.CandidatePath.RequestedBsid, self).__init__()
self.yang_name = "requested-bsid"
self.yang_parent_name = "candidate-path"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('sid_type', (YLeaf(YType.enumeration, 'sid-type'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper', 'XtcSid', '')])),
('label', (YLeaf(YType.uint32, 'label'), ['int'])),
('ipv6', (YLeaf(YType.str, 'ipv6'), ['str'])),
])
self.sid_type = None
self.label = None
self.ipv6 = None
self._segment_path = lambda: "requested-bsid"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc.Policies.Policy.CandidatePath.RequestedBsid, ['sid_type', 'label', 'ipv6'], name, value)
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc.Policies.Policy.CandidatePath.RequestedBsid']['meta_info']
class CleanupTimer(_Entity_):
"""
Cleanup timer if the candidate path is in the
process of being cleaned up
.. attribute:: running
Whether the timer is running
**type**\: bool
**config**\: False
.. attribute:: remaining_seconds
Number of remaining seconds
**type**\: int
**range:** \-9223372036854775808..9223372036854775807
**config**\: False
**units**\: second
.. attribute:: remaining_nano_seconds
Number of remaining nanoseconds
**type**\: int
**range:** \-9223372036854775808..9223372036854775807
**config**\: False
**units**\: nanosecond
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc.Policies.Policy.CandidatePath.CleanupTimer, self).__init__()
self.yang_name = "cleanup-timer"
self.yang_parent_name = "candidate-path"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('running', (YLeaf(YType.boolean, 'running'), ['bool'])),
('remaining_seconds', (YLeaf(YType.int64, 'remaining-seconds'), ['int'])),
('remaining_nano_seconds', (YLeaf(YType.int64, 'remaining-nano-seconds'), ['int'])),
])
self.running = None
self.remaining_seconds = None
self.remaining_nano_seconds = None
self._segment_path = lambda: "cleanup-timer"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc.Policies.Policy.CandidatePath.CleanupTimer, ['running', 'remaining_seconds', 'remaining_nano_seconds'], name, value)
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc.Policies.Policy.CandidatePath.CleanupTimer']['meta_info']
class PccInformation(_Entity_):
"""
PCC PCEP\-related information
.. attribute:: orphan_timer
Orphan timer for PCE\-initiated candidate paths in orphan state
**type**\: :py:class:`OrphanTimer <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Xtc.Policies.Policy.CandidatePath.PccInformation.OrphanTimer>`
**config**\: False
.. attribute:: fallback_timer
Timer for delaying delegation revoke back to LSP originator
**type**\: :py:class:`FallbackTimer <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Xtc.Policies.Policy.CandidatePath.PccInformation.FallbackTimer>`
**config**\: False
.. attribute:: symbolic_name
Symbolic name of the PLSP
**type**\: str
**config**\: False
.. attribute:: plsp_id
PLSP\-ID associated with the PCC info
**type**\: int
**range:** 0..4294967295
**config**\: False
.. attribute:: is_orphan
Whether the candidate path is in orphan state
**type**\: bool
**config**\: False
.. attribute:: profile_key
List of profile keys
**type**\: list of :py:class:`ProfileKey <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Xtc.Policies.Policy.CandidatePath.PccInformation.ProfileKey>`
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc.Policies.Policy.CandidatePath.PccInformation, self).__init__()
self.yang_name = "pcc-information"
self.yang_parent_name = "candidate-path"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([("orphan-timer", ("orphan_timer", Xtc.Policies.Policy.CandidatePath.PccInformation.OrphanTimer)), ("fallback-timer", ("fallback_timer", Xtc.Policies.Policy.CandidatePath.PccInformation.FallbackTimer)), ("profile-key", ("profile_key", Xtc.Policies.Policy.CandidatePath.PccInformation.ProfileKey))])
self._leafs = OrderedDict([
('symbolic_name', (YLeaf(YType.str, 'symbolic-name'), ['str'])),
('plsp_id', (YLeaf(YType.uint32, 'plsp-id'), ['int'])),
('is_orphan', (YLeaf(YType.boolean, 'is-orphan'), ['bool'])),
])
self.symbolic_name = None
self.plsp_id = None
self.is_orphan = None
self.orphan_timer = Xtc.Policies.Policy.CandidatePath.PccInformation.OrphanTimer()
self.orphan_timer.parent = self
self._children_name_map["orphan_timer"] = "orphan-timer"
self.fallback_timer = Xtc.Policies.Policy.CandidatePath.PccInformation.FallbackTimer()
self.fallback_timer.parent = self
self._children_name_map["fallback_timer"] = "fallback-timer"
self.profile_key = YList(self)
self._segment_path = lambda: "pcc-information"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc.Policies.Policy.CandidatePath.PccInformation, ['symbolic_name', 'plsp_id', 'is_orphan'], name, value)
class OrphanTimer(_Entity_):
"""
Orphan timer for PCE\-initiated candidate paths
in orphan state
.. attribute:: running
Whether the timer is running
**type**\: bool
**config**\: False
.. attribute:: remaining_seconds
Number of remaining seconds
**type**\: int
**range:** \-9223372036854775808..9223372036854775807
**config**\: False
**units**\: second
.. attribute:: remaining_nano_seconds
Number of remaining nanoseconds
**type**\: int
**range:** \-9223372036854775808..9223372036854775807
**config**\: False
**units**\: nanosecond
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc.Policies.Policy.CandidatePath.PccInformation.OrphanTimer, self).__init__()
self.yang_name = "orphan-timer"
self.yang_parent_name = "pcc-information"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('running', (YLeaf(YType.boolean, 'running'), ['bool'])),
('remaining_seconds', (YLeaf(YType.int64, 'remaining-seconds'), ['int'])),
('remaining_nano_seconds', (YLeaf(YType.int64, 'remaining-nano-seconds'), ['int'])),
])
self.running = None
self.remaining_seconds = None
self.remaining_nano_seconds = None
self._segment_path = lambda: "orphan-timer"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc.Policies.Policy.CandidatePath.PccInformation.OrphanTimer, ['running', 'remaining_seconds', 'remaining_nano_seconds'], name, value)
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc.Policies.Policy.CandidatePath.PccInformation.OrphanTimer']['meta_info']
class FallbackTimer(_Entity_):
"""
Timer for delaying delegation revoke back to LSP
originator
.. attribute:: running
Whether the timer is running
**type**\: bool
**config**\: False
.. attribute:: remaining_seconds
Number of remaining seconds
**type**\: int
**range:** \-9223372036854775808..9223372036854775807
**config**\: False
**units**\: second
.. attribute:: remaining_nano_seconds
Number of remaining nanoseconds
**type**\: int
**range:** \-9223372036854775808..9223372036854775807
**config**\: False
**units**\: nanosecond
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc.Policies.Policy.CandidatePath.PccInformation.FallbackTimer, self).__init__()
self.yang_name = "fallback-timer"
self.yang_parent_name = "pcc-information"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('running', (YLeaf(YType.boolean, 'running'), ['bool'])),
('remaining_seconds', (YLeaf(YType.int64, 'remaining-seconds'), ['int'])),
('remaining_nano_seconds', (YLeaf(YType.int64, 'remaining-nano-seconds'), ['int'])),
])
self.running = None
self.remaining_seconds = None
self.remaining_nano_seconds = None
self._segment_path = lambda: "fallback-timer"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc.Policies.Policy.CandidatePath.PccInformation.FallbackTimer, ['running', 'remaining_seconds', 'remaining_nano_seconds'], name, value)
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc.Policies.Policy.CandidatePath.PccInformation.FallbackTimer']['meta_info']
class ProfileKey(_Entity_):
"""
List of profile keys
.. attribute:: id
Numeric part of profile key
**type**\: int
**range:** 0..65535
**config**\: False
.. attribute:: source_address
Source IPv4 address
**type**\: str
**pattern:** (([0\-9]\|[1\-9][0\-9]\|1[0\-9][0\-9]\|2[0\-4][0\-9]\|25[0\-5])\\.){3}([0\-9]\|[1\-9][0\-9]\|1[0\-9][0\-9]\|2[0\-4][0\-9]\|25[0\-5])(%[\\p{N}\\p{L}]+)?
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc.Policies.Policy.CandidatePath.PccInformation.ProfileKey, self).__init__()
self.yang_name = "profile-key"
self.yang_parent_name = "pcc-information"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('id', (YLeaf(YType.uint16, 'id'), ['int'])),
('source_address', (YLeaf(YType.str, 'source-address'), ['str'])),
])
self.id = None
self.source_address = None
self._segment_path = lambda: "profile-key"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc.Policies.Policy.CandidatePath.PccInformation.ProfileKey, ['id', 'source_address'], name, value)
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc.Policies.Policy.CandidatePath.PccInformation.ProfileKey']['meta_info']
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc.Policies.Policy.CandidatePath.PccInformation']['meta_info']
class SegmentList(_Entity_):
"""
Segment lists of the candidate path
.. attribute:: name
Explicit segment list name
**type**\: str
**config**\: False
.. attribute:: type
Segment list type
**type**\: :py:class:`XtcPolicyPath <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.XtcPolicyPath>`
**config**\: False
.. attribute:: active
Whether the segment list is active (used)
**type**\: bool
**config**\: False
.. attribute:: weight
Weight of the segment list
**type**\: int
**range:** 0..4294967295
**config**\: False
.. attribute:: metric_type
Metric type of the segment list
**type**\: int
**range:** 0..255
**config**\: False
.. attribute:: metric_value
Accumulated metric of the segment list
**type**\: int
**range:** 0..18446744073709551615
**config**\: False
.. attribute:: is_valid
True if path is valid
**type**\: bool
**config**\: False
.. attribute:: pce_based_path
True if the path is to be computed by PCE
**type**\: bool
**config**\: False
.. attribute:: pce_address
Address of the PCE computed the path
**type**\: str
**pattern:** (([0\-9]\|[1\-9][0\-9]\|1[0\-9][0\-9]\|2[0\-4][0\-9]\|25[0\-5])\\.){3}([0\-9]\|[1\-9][0\-9]\|1[0\-9][0\-9]\|2[0\-4][0\-9]\|25[0\-5])(%[\\p{N}\\p{L}]+)?
**config**\: False
.. attribute:: error
Error (for display only)
**type**\: str
**config**\: False
.. attribute:: hops
SR hop list
**type**\: list of :py:class:`Hops <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Xtc.Policies.Policy.CandidatePath.SegmentList.Hops>`
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc.Policies.Policy.CandidatePath.SegmentList, self).__init__()
self.yang_name = "segment-list"
self.yang_parent_name = "candidate-path"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([("hops", ("hops", Xtc.Policies.Policy.CandidatePath.SegmentList.Hops))])
self._leafs = OrderedDict([
('name', (YLeaf(YType.str, 'name'), ['str'])),
('type', (YLeaf(YType.enumeration, 'type'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper', 'XtcPolicyPath', '')])),
('active', (YLeaf(YType.boolean, 'active'), ['bool'])),
('weight', (YLeaf(YType.uint32, 'weight'), ['int'])),
('metric_type', (YLeaf(YType.uint8, 'metric-type'), ['int'])),
('metric_value', (YLeaf(YType.uint64, 'metric-value'), ['int'])),
('is_valid', (YLeaf(YType.boolean, 'is-valid'), ['bool'])),
('pce_based_path', (YLeaf(YType.boolean, 'pce-based-path'), ['bool'])),
('pce_address', (YLeaf(YType.str, 'pce-address'), ['str'])),
('error', (YLeaf(YType.str, 'error'), ['str'])),
])
self.name = None
self.type = None
self.active = None
self.weight = None
self.metric_type = None
self.metric_value = None
self.is_valid = None
self.pce_based_path = None
self.pce_address = None
self.error = None
self.hops = YList(self)
self._segment_path = lambda: "segment-list"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc.Policies.Policy.CandidatePath.SegmentList, ['name', 'type', 'active', 'weight', 'metric_type', 'metric_value', 'is_valid', 'pce_based_path', 'pce_address', 'error'], name, value)
class Hops(_Entity_):
"""
SR hop list
.. attribute:: sid
SID value
**type**\: :py:class:`Sid <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Xtc.Policies.Policy.CandidatePath.SegmentList.Hops.Sid>`
**config**\: False
.. attribute:: local_address
Local address
**type**\: :py:class:`LocalAddress <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Xtc.Policies.Policy.CandidatePath.SegmentList.Hops.LocalAddress>`
**config**\: False
.. attribute:: remote_address
Remote address
**type**\: :py:class:`RemoteAddress <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Xtc.Policies.Policy.CandidatePath.SegmentList.Hops.RemoteAddress>`
**config**\: False
.. attribute:: sid_type
SID type
**type**\: :py:class:`XtcSrSid <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.XtcSrSid>`
**config**\: False
.. attribute:: algorithm
Algorithim
**type**\: int
**range:** 0..255
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc.Policies.Policy.CandidatePath.SegmentList.Hops, self).__init__()
self.yang_name = "hops"
self.yang_parent_name = "segment-list"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([("sid", ("sid", Xtc.Policies.Policy.CandidatePath.SegmentList.Hops.Sid)), ("local-address", ("local_address", Xtc.Policies.Policy.CandidatePath.SegmentList.Hops.LocalAddress)), ("remote-address", ("remote_address", Xtc.Policies.Policy.CandidatePath.SegmentList.Hops.RemoteAddress))])
self._leafs = OrderedDict([
('sid_type', (YLeaf(YType.enumeration, 'sid-type'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper', 'XtcSrSid', '')])),
('algorithm', (YLeaf(YType.uint8, 'algorithm'), ['int'])),
])
self.sid_type = None
self.algorithm = None
self.sid = Xtc.Policies.Policy.CandidatePath.SegmentList.Hops.Sid()
self.sid.parent = self
self._children_name_map["sid"] = "sid"
self.local_address = Xtc.Policies.Policy.CandidatePath.SegmentList.Hops.LocalAddress()
self.local_address.parent = self
self._children_name_map["local_address"] = "local-address"
self.remote_address = Xtc.Policies.Policy.CandidatePath.SegmentList.Hops.RemoteAddress()
self.remote_address.parent = self
self._children_name_map["remote_address"] = "remote-address"
self._segment_path = lambda: "hops"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc.Policies.Policy.CandidatePath.SegmentList.Hops, ['sid_type', 'algorithm'], name, value)
class Sid(_Entity_):
"""
SID value
.. attribute:: sid_type
SIDType
**type**\: :py:class:`XtcSid <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.XtcSid>`
**config**\: False
.. attribute:: label
MPLS label
**type**\: int
**range:** 0..4294967295
**config**\: False
.. attribute:: ipv6
IPv6 address
**type**\: str
**pattern:** ((\:\|[0\-9a\-fA\-F]{0,4})\:)([0\-9a\-fA\-F]{0,4}\:){0,5}((([0\-9a\-fA\-F]{0,4}\:)?(\:\|[0\-9a\-fA\-F]{0,4}))\|(((25[0\-5]\|2[0\-4][0\-9]\|[01]?[0\-9]?[0\-9])\\.){3}(25[0\-5]\|2[0\-4][0\-9]\|[01]?[0\-9]?[0\-9])))(%[\\p{N}\\p{L}]+)?
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc.Policies.Policy.CandidatePath.SegmentList.Hops.Sid, self).__init__()
self.yang_name = "sid"
self.yang_parent_name = "hops"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('sid_type', (YLeaf(YType.enumeration, 'sid-type'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper', 'XtcSid', '')])),
('label', (YLeaf(YType.uint32, 'label'), ['int'])),
('ipv6', (YLeaf(YType.str, 'ipv6'), ['str'])),
])
self.sid_type = None
self.label = None
self.ipv6 = None
self._segment_path = lambda: "sid"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc.Policies.Policy.CandidatePath.SegmentList.Hops.Sid, ['sid_type', 'label', 'ipv6'], name, value)
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc.Policies.Policy.CandidatePath.SegmentList.Hops.Sid']['meta_info']
class LocalAddress(_Entity_):
"""
Local address
.. attribute:: af_name
AFName
**type**\: :py:class:`XtcAfId <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.XtcAfId>`
**config**\: False
.. attribute:: ipv4
IPv4 address type
**type**\: str
**pattern:** (([0\-9]\|[1\-9][0\-9]\|1[0\-9][0\-9]\|2[0\-4][0\-9]\|25[0\-5])\\.){3}([0\-9]\|[1\-9][0\-9]\|1[0\-9][0\-9]\|2[0\-4][0\-9]\|25[0\-5])(%[\\p{N}\\p{L}]+)?
**config**\: False
.. attribute:: ipv6
IPv6 address type
**type**\: str
**pattern:** ((\:\|[0\-9a\-fA\-F]{0,4})\:)([0\-9a\-fA\-F]{0,4}\:){0,5}((([0\-9a\-fA\-F]{0,4}\:)?(\:\|[0\-9a\-fA\-F]{0,4}))\|(((25[0\-5]\|2[0\-4][0\-9]\|[01]?[0\-9]?[0\-9])\\.){3}(25[0\-5]\|2[0\-4][0\-9]\|[01]?[0\-9]?[0\-9])))(%[\\p{N}\\p{L}]+)?
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc.Policies.Policy.CandidatePath.SegmentList.Hops.LocalAddress, self).__init__()
self.yang_name = "local-address"
self.yang_parent_name = "hops"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('af_name', (YLeaf(YType.enumeration, 'af-name'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper', 'XtcAfId', '')])),
('ipv4', (YLeaf(YType.str, 'ipv4'), ['str'])),
('ipv6', (YLeaf(YType.str, 'ipv6'), ['str'])),
])
self.af_name = None
self.ipv4 = None
self.ipv6 = None
self._segment_path = lambda: "local-address"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc.Policies.Policy.CandidatePath.SegmentList.Hops.LocalAddress, ['af_name', 'ipv4', 'ipv6'], name, value)
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc.Policies.Policy.CandidatePath.SegmentList.Hops.LocalAddress']['meta_info']
class RemoteAddress(_Entity_):
"""
Remote address
.. attribute:: af_name
AFName
**type**\: :py:class:`XtcAfId <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.XtcAfId>`
**config**\: False
.. attribute:: ipv4
IPv4 address type
**type**\: str
**pattern:** (([0\-9]\|[1\-9][0\-9]\|1[0\-9][0\-9]\|2[0\-4][0\-9]\|25[0\-5])\\.){3}([0\-9]\|[1\-9][0\-9]\|1[0\-9][0\-9]\|2[0\-4][0\-9]\|25[0\-5])(%[\\p{N}\\p{L}]+)?
**config**\: False
.. attribute:: ipv6
IPv6 address type
**type**\: str
**pattern:** ((\:\|[0\-9a\-fA\-F]{0,4})\:)([0\-9a\-fA\-F]{0,4}\:){0,5}((([0\-9a\-fA\-F]{0,4}\:)?(\:\|[0\-9a\-fA\-F]{0,4}))\|(((25[0\-5]\|2[0\-4][0\-9]\|[01]?[0\-9]?[0\-9])\\.){3}(25[0\-5]\|2[0\-4][0\-9]\|[01]?[0\-9]?[0\-9])))(%[\\p{N}\\p{L}]+)?
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc.Policies.Policy.CandidatePath.SegmentList.Hops.RemoteAddress, self).__init__()
self.yang_name = "remote-address"
self.yang_parent_name = "hops"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('af_name', (YLeaf(YType.enumeration, 'af-name'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper', 'XtcAfId', '')])),
('ipv4', (YLeaf(YType.str, 'ipv4'), ['str'])),
('ipv6', (YLeaf(YType.str, 'ipv6'), ['str'])),
])
self.af_name = None
self.ipv4 = None
self.ipv6 = None
self._segment_path = lambda: "remote-address"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc.Policies.Policy.CandidatePath.SegmentList.Hops.RemoteAddress, ['af_name', 'ipv4', 'ipv6'], name, value)
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc.Policies.Policy.CandidatePath.SegmentList.Hops.RemoteAddress']['meta_info']
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc.Policies.Policy.CandidatePath.SegmentList.Hops']['meta_info']
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc.Policies.Policy.CandidatePath.SegmentList']['meta_info']
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc.Policies.Policy.CandidatePath']['meta_info']
class LsPs(_Entity_):
"""
LSPs
.. attribute:: binding_sid
Binding SID information
**type**\: :py:class:`BindingSid <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Xtc.Policies.Policy.LsPs.BindingSid>`
**config**\: False
.. attribute:: install_timer
Install timer information
**type**\: :py:class:`InstallTimer <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Xtc.Policies.Policy.LsPs.InstallTimer>`
**config**\: False
.. attribute:: cleanup_timer
Cleanup timer information
**type**\: :py:class:`CleanupTimer <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Xtc.Policies.Policy.LsPs.CleanupTimer>`
**config**\: False
.. attribute:: lsp_id
LSP ID
**type**\: int
**range:** 0..65535
**config**\: False
.. attribute:: policy_id
Policy ID
**type**\: int
**range:** 0..65535
**config**\: False
.. attribute:: local_label
Local label of the LSP
**type**\: int
**range:** 0..4294967295
**config**\: False
.. attribute:: state
Current LSP state
**type**\: :py:class:`XtcPolicyLspSmState <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.XtcPolicyLspSmState>`
**config**\: False
.. attribute:: is_active_lsp
Whether this is the active LSP
**type**\: bool
**config**\: False
.. attribute:: is_reoptimized_lsp
Whether this is the reoptimized LSP
**type**\: bool
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc.Policies.Policy.LsPs, self).__init__()
self.yang_name = "ls-ps"
self.yang_parent_name = "policy"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([("binding-sid", ("binding_sid", Xtc.Policies.Policy.LsPs.BindingSid)), ("install-timer", ("install_timer", Xtc.Policies.Policy.LsPs.InstallTimer)), ("cleanup-timer", ("cleanup_timer", Xtc.Policies.Policy.LsPs.CleanupTimer))])
self._leafs = OrderedDict([
('lsp_id', (YLeaf(YType.uint16, 'lsp-id'), ['int'])),
('policy_id', (YLeaf(YType.uint16, 'policy-id'), ['int'])),
('local_label', (YLeaf(YType.uint32, 'local-label'), ['int'])),
('state', (YLeaf(YType.enumeration, 'state'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper', 'XtcPolicyLspSmState', '')])),
('is_active_lsp', (YLeaf(YType.boolean, 'is-active-lsp'), ['bool'])),
('is_reoptimized_lsp', (YLeaf(YType.boolean, 'is-reoptimized-lsp'), ['bool'])),
])
self.lsp_id = None
self.policy_id = None
self.local_label = None
self.state = None
self.is_active_lsp = None
self.is_reoptimized_lsp = None
self.binding_sid = Xtc.Policies.Policy.LsPs.BindingSid()
self.binding_sid.parent = self
self._children_name_map["binding_sid"] = "binding-sid"
self.install_timer = Xtc.Policies.Policy.LsPs.InstallTimer()
self.install_timer.parent = self
self._children_name_map["install_timer"] = "install-timer"
self.cleanup_timer = Xtc.Policies.Policy.LsPs.CleanupTimer()
self.cleanup_timer.parent = self
self._children_name_map["cleanup_timer"] = "cleanup-timer"
self._segment_path = lambda: "ls-ps"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc.Policies.Policy.LsPs, ['lsp_id', 'policy_id', 'local_label', 'state', 'is_active_lsp', 'is_reoptimized_lsp'], name, value)
class BindingSid(_Entity_):
"""
Binding SID information
.. attribute:: value
Binding SID value
**type**\: :py:class:`Value <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Xtc.Policies.Policy.LsPs.BindingSid.Value>`
**config**\: False
.. attribute:: is_fallback_dynamic
Whether the BSID is in fallback dynamic mode
**type**\: bool
**config**\: False
.. attribute:: is_within_srlb_range
Whether the BSID is within SRLB range
**type**\: bool
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc.Policies.Policy.LsPs.BindingSid, self).__init__()
self.yang_name = "binding-sid"
self.yang_parent_name = "ls-ps"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([("value", ("value", Xtc.Policies.Policy.LsPs.BindingSid.Value))])
self._leafs = OrderedDict([
('is_fallback_dynamic', (YLeaf(YType.boolean, 'is-fallback-dynamic'), ['bool'])),
('is_within_srlb_range', (YLeaf(YType.boolean, 'is-within-srlb-range'), ['bool'])),
])
self.is_fallback_dynamic = None
self.is_within_srlb_range = None
self.value = Xtc.Policies.Policy.LsPs.BindingSid.Value()
self.value.parent = self
self._children_name_map["value"] = "value"
self._segment_path = lambda: "binding-sid"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc.Policies.Policy.LsPs.BindingSid, ['is_fallback_dynamic', 'is_within_srlb_range'], name, value)
class Value(_Entity_):
"""
Binding SID value
.. attribute:: sid_type
SIDType
**type**\: :py:class:`XtcSid <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.XtcSid>`
**config**\: False
.. attribute:: label
MPLS label
**type**\: int
**range:** 0..4294967295
**config**\: False
.. attribute:: ipv6
IPv6 address
**type**\: str
**pattern:** ((\:\|[0\-9a\-fA\-F]{0,4})\:)([0\-9a\-fA\-F]{0,4}\:){0,5}((([0\-9a\-fA\-F]{0,4}\:)?(\:\|[0\-9a\-fA\-F]{0,4}))\|(((25[0\-5]\|2[0\-4][0\-9]\|[01]?[0\-9]?[0\-9])\\.){3}(25[0\-5]\|2[0\-4][0\-9]\|[01]?[0\-9]?[0\-9])))(%[\\p{N}\\p{L}]+)?
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc.Policies.Policy.LsPs.BindingSid.Value, self).__init__()
self.yang_name = "value"
self.yang_parent_name = "binding-sid"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('sid_type', (YLeaf(YType.enumeration, 'sid-type'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper', 'XtcSid', '')])),
('label', (YLeaf(YType.uint32, 'label'), ['int'])),
('ipv6', (YLeaf(YType.str, 'ipv6'), ['str'])),
])
self.sid_type = None
self.label = None
self.ipv6 = None
self._segment_path = lambda: "value"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc.Policies.Policy.LsPs.BindingSid.Value, ['sid_type', 'label', 'ipv6'], name, value)
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc.Policies.Policy.LsPs.BindingSid.Value']['meta_info']
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc.Policies.Policy.LsPs.BindingSid']['meta_info']
class InstallTimer(_Entity_):
"""
Install timer information
.. attribute:: running
Whether the timer is running
**type**\: bool
**config**\: False
.. attribute:: remaining_seconds
Number of remaining seconds
**type**\: int
**range:** \-9223372036854775808..9223372036854775807
**config**\: False
**units**\: second
.. attribute:: remaining_nano_seconds
Number of remaining nanoseconds
**type**\: int
**range:** \-9223372036854775808..9223372036854775807
**config**\: False
**units**\: nanosecond
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc.Policies.Policy.LsPs.InstallTimer, self).__init__()
self.yang_name = "install-timer"
self.yang_parent_name = "ls-ps"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('running', (YLeaf(YType.boolean, 'running'), ['bool'])),
('remaining_seconds', (YLeaf(YType.int64, 'remaining-seconds'), ['int'])),
('remaining_nano_seconds', (YLeaf(YType.int64, 'remaining-nano-seconds'), ['int'])),
])
self.running = None
self.remaining_seconds = None
self.remaining_nano_seconds = None
self._segment_path = lambda: "install-timer"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc.Policies.Policy.LsPs.InstallTimer, ['running', 'remaining_seconds', 'remaining_nano_seconds'], name, value)
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc.Policies.Policy.LsPs.InstallTimer']['meta_info']
class CleanupTimer(_Entity_):
"""
Cleanup timer information
.. attribute:: running
Whether the timer is running
**type**\: bool
**config**\: False
.. attribute:: remaining_seconds
Number of remaining seconds
**type**\: int
**range:** \-9223372036854775808..9223372036854775807
**config**\: False
**units**\: second
.. attribute:: remaining_nano_seconds
Number of remaining nanoseconds
**type**\: int
**range:** \-9223372036854775808..9223372036854775807
**config**\: False
**units**\: nanosecond
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc.Policies.Policy.LsPs.CleanupTimer, self).__init__()
self.yang_name = "cleanup-timer"
self.yang_parent_name = "ls-ps"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('running', (YLeaf(YType.boolean, 'running'), ['bool'])),
('remaining_seconds', (YLeaf(YType.int64, 'remaining-seconds'), ['int'])),
('remaining_nano_seconds', (YLeaf(YType.int64, 'remaining-nano-seconds'), ['int'])),
])
self.running = None
self.remaining_seconds = None
self.remaining_nano_seconds = None
self._segment_path = lambda: "cleanup-timer"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc.Policies.Policy.LsPs.CleanupTimer, ['running', 'remaining_seconds', 'remaining_nano_seconds'], name, value)
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc.Policies.Policy.LsPs.CleanupTimer']['meta_info']
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc.Policies.Policy.LsPs']['meta_info']
class EventBuffer(_Entity_):
"""
Policy Event buffer
.. attribute:: event_message
Event message
**type**\: str
**config**\: False
.. attribute:: time_stamp
Event time, relative to Jan 1, 1970
**type**\: int
**range:** 0..18446744073709551615
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc.Policies.Policy.EventBuffer, self).__init__()
self.yang_name = "event-buffer"
self.yang_parent_name = "policy"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('event_message', (YLeaf(YType.str, 'event-message'), ['str'])),
('time_stamp', (YLeaf(YType.uint64, 'time-stamp'), ['int'])),
])
self.event_message = None
self.time_stamp = None
self._segment_path = lambda: "event-buffer"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc.Policies.Policy.EventBuffer, ['event_message', 'time_stamp'], name, value)
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc.Policies.Policy.EventBuffer']['meta_info']
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc.Policies.Policy']['meta_info']
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc.Policies']['meta_info']
class Interfaces(_Entity_):
"""
Interface database in XTC Agent
.. attribute:: interface
Interface information
**type**\: list of :py:class:`Interface <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Xtc.Interfaces.Interface>`
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc.Interfaces, self).__init__()
self.yang_name = "interfaces"
self.yang_parent_name = "xtc"
self.is_top_level_class = False
self.has_list_ancestor = False
self.ylist_key_names = []
self._child_classes = OrderedDict([("interface", ("interface", Xtc.Interfaces.Interface))])
self._leafs = OrderedDict()
self.interface = YList(self)
self._segment_path = lambda: "interfaces"
self._absolute_path = lambda: "Cisco-IOS-XR-infra-xtc-agent-oper:xtc/%s" % self._segment_path()
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc.Interfaces, [], name, value)
class Interface(_Entity_):
"""
Interface information
.. attribute:: interface_name (key)
Interface name
**type**\: str
**pattern:** [a\-zA\-Z0\-9.\_/\-]+
**config**\: False
.. attribute:: interface_handle
Interface handle
**type**\: str
**pattern:** [a\-zA\-Z0\-9.\_/\-]+
**config**\: False
.. attribute:: name
Name of the interface
**type**\: str
**config**\: False
.. attribute:: operational_up
Operational up
**type**\: bool
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc.Interfaces.Interface, self).__init__()
self.yang_name = "interface"
self.yang_parent_name = "interfaces"
self.is_top_level_class = False
self.has_list_ancestor = False
self.ylist_key_names = ['interface_name']
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('interface_name', (YLeaf(YType.str, 'interface-name'), ['str'])),
('interface_handle', (YLeaf(YType.str, 'interface-handle'), ['str'])),
('name', (YLeaf(YType.str, 'name'), ['str'])),
('operational_up', (YLeaf(YType.boolean, 'operational-up'), ['bool'])),
])
self.interface_name = None
self.interface_handle = None
self.name = None
self.operational_up = None
self._segment_path = lambda: "interface" + "[interface-name='" + str(self.interface_name) + "']"
self._absolute_path = lambda: "Cisco-IOS-XR-infra-xtc-agent-oper:xtc/interfaces/%s" % self._segment_path()
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc.Interfaces.Interface, ['interface_name', 'interface_handle', 'name', 'operational_up'], name, value)
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc.Interfaces.Interface']['meta_info']
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc.Interfaces']['meta_info']
class PolicyForwardings(_Entity_):
"""
Forwarding information for policies
.. attribute:: policy_forwarding
Forwarding information for the policy
**type**\: list of :py:class:`PolicyForwarding <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Xtc.PolicyForwardings.PolicyForwarding>`
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc.PolicyForwardings, self).__init__()
self.yang_name = "policy-forwardings"
self.yang_parent_name = "xtc"
self.is_top_level_class = False
self.has_list_ancestor = False
self.ylist_key_names = []
self._child_classes = OrderedDict([("policy-forwarding", ("policy_forwarding", Xtc.PolicyForwardings.PolicyForwarding))])
self._leafs = OrderedDict()
self.policy_forwarding = YList(self)
self._segment_path = lambda: "policy-forwardings"
self._absolute_path = lambda: "Cisco-IOS-XR-infra-xtc-agent-oper:xtc/%s" % self._segment_path()
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc.PolicyForwardings, [], name, value)
class PolicyForwarding(_Entity_):
"""
Forwarding information for the policy
.. attribute:: name (key)
Policy Name
**type**\: str
**pattern:** [\\w\\\-\\.\:,\_@#%$\\+=\\\|;]+
**config**\: False
.. attribute:: endpoint_address
Endpoint address
**type**\: :py:class:`EndpointAddress <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Xtc.PolicyForwardings.PolicyForwarding.EndpointAddress>`
**config**\: False
.. attribute:: binding_sid
Programmed Binding SID
**type**\: :py:class:`BindingSid <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Xtc.PolicyForwardings.PolicyForwarding.BindingSid>`
**config**\: False
.. attribute:: stats
Overall forwarding stats of the policy
**type**\: :py:class:`Stats <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Xtc.PolicyForwardings.PolicyForwarding.Stats>`
**config**\: False
.. attribute:: active_lsp
Active LSP information
**type**\: :py:class:`ActiveLsp <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Xtc.PolicyForwardings.PolicyForwarding.ActiveLsp>`
**config**\: False
.. attribute:: reoptimized_lsp
Reoptimized LSP information
**type**\: :py:class:`ReoptimizedLsp <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Xtc.PolicyForwardings.PolicyForwarding.ReoptimizedLsp>`
**config**\: False
.. attribute:: policy_name
Policy name
**type**\: str
**config**\: False
.. attribute:: color
Color
**type**\: int
**range:** 0..4294967295
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc.PolicyForwardings.PolicyForwarding, self).__init__()
self.yang_name = "policy-forwarding"
self.yang_parent_name = "policy-forwardings"
self.is_top_level_class = False
self.has_list_ancestor = False
self.ylist_key_names = ['name']
self._child_classes = OrderedDict([("endpoint-address", ("endpoint_address", Xtc.PolicyForwardings.PolicyForwarding.EndpointAddress)), ("binding-sid", ("binding_sid", Xtc.PolicyForwardings.PolicyForwarding.BindingSid)), ("stats", ("stats", Xtc.PolicyForwardings.PolicyForwarding.Stats)), ("active-lsp", ("active_lsp", Xtc.PolicyForwardings.PolicyForwarding.ActiveLsp)), ("reoptimized-lsp", ("reoptimized_lsp", Xtc.PolicyForwardings.PolicyForwarding.ReoptimizedLsp))])
self._leafs = OrderedDict([
('name', (YLeaf(YType.str, 'name'), ['str'])),
('policy_name', (YLeaf(YType.str, 'policy-name'), ['str'])),
('color', (YLeaf(YType.uint32, 'color'), ['int'])),
])
self.name = None
self.policy_name = None
self.color = None
self.endpoint_address = Xtc.PolicyForwardings.PolicyForwarding.EndpointAddress()
self.endpoint_address.parent = self
self._children_name_map["endpoint_address"] = "endpoint-address"
self.binding_sid = Xtc.PolicyForwardings.PolicyForwarding.BindingSid()
self.binding_sid.parent = self
self._children_name_map["binding_sid"] = "binding-sid"
self.stats = Xtc.PolicyForwardings.PolicyForwarding.Stats()
self.stats.parent = self
self._children_name_map["stats"] = "stats"
self.active_lsp = Xtc.PolicyForwardings.PolicyForwarding.ActiveLsp()
self.active_lsp.parent = self
self._children_name_map["active_lsp"] = "active-lsp"
self.reoptimized_lsp = Xtc.PolicyForwardings.PolicyForwarding.ReoptimizedLsp()
self.reoptimized_lsp.parent = self
self._children_name_map["reoptimized_lsp"] = "reoptimized-lsp"
self._segment_path = lambda: "policy-forwarding" + "[name='" + str(self.name) + "']"
self._absolute_path = lambda: "Cisco-IOS-XR-infra-xtc-agent-oper:xtc/policy-forwardings/%s" % self._segment_path()
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc.PolicyForwardings.PolicyForwarding, ['name', 'policy_name', 'color'], name, value)
class EndpointAddress(_Entity_):
"""
Endpoint address
.. attribute:: af_name
AFName
**type**\: :py:class:`XtcAfId <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.XtcAfId>`
**config**\: False
.. attribute:: ipv4
IPv4 address type
**type**\: str
**pattern:** (([0\-9]\|[1\-9][0\-9]\|1[0\-9][0\-9]\|2[0\-4][0\-9]\|25[0\-5])\\.){3}([0\-9]\|[1\-9][0\-9]\|1[0\-9][0\-9]\|2[0\-4][0\-9]\|25[0\-5])(%[\\p{N}\\p{L}]+)?
**config**\: False
.. attribute:: ipv6
IPv6 address type
**type**\: str
**pattern:** ((\:\|[0\-9a\-fA\-F]{0,4})\:)([0\-9a\-fA\-F]{0,4}\:){0,5}((([0\-9a\-fA\-F]{0,4}\:)?(\:\|[0\-9a\-fA\-F]{0,4}))\|(((25[0\-5]\|2[0\-4][0\-9]\|[01]?[0\-9]?[0\-9])\\.){3}(25[0\-5]\|2[0\-4][0\-9]\|[01]?[0\-9]?[0\-9])))(%[\\p{N}\\p{L}]+)?
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc.PolicyForwardings.PolicyForwarding.EndpointAddress, self).__init__()
self.yang_name = "endpoint-address"
self.yang_parent_name = "policy-forwarding"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('af_name', (YLeaf(YType.enumeration, 'af-name'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper', 'XtcAfId', '')])),
('ipv4', (YLeaf(YType.str, 'ipv4'), ['str'])),
('ipv6', (YLeaf(YType.str, 'ipv6'), ['str'])),
])
self.af_name = None
self.ipv4 = None
self.ipv6 = None
self._segment_path = lambda: "endpoint-address"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc.PolicyForwardings.PolicyForwarding.EndpointAddress, ['af_name', 'ipv4', 'ipv6'], name, value)
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc.PolicyForwardings.PolicyForwarding.EndpointAddress']['meta_info']
class BindingSid(_Entity_):
"""
Programmed Binding SID
.. attribute:: sid_type
SIDType
**type**\: :py:class:`XtcSid <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.XtcSid>`
**config**\: False
.. attribute:: label
MPLS label
**type**\: int
**range:** 0..4294967295
**config**\: False
.. attribute:: ipv6
IPv6 address
**type**\: str
**pattern:** ((\:\|[0\-9a\-fA\-F]{0,4})\:)([0\-9a\-fA\-F]{0,4}\:){0,5}((([0\-9a\-fA\-F]{0,4}\:)?(\:\|[0\-9a\-fA\-F]{0,4}))\|(((25[0\-5]\|2[0\-4][0\-9]\|[01]?[0\-9]?[0\-9])\\.){3}(25[0\-5]\|2[0\-4][0\-9]\|[01]?[0\-9]?[0\-9])))(%[\\p{N}\\p{L}]+)?
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc.PolicyForwardings.PolicyForwarding.BindingSid, self).__init__()
self.yang_name = "binding-sid"
self.yang_parent_name = "policy-forwarding"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('sid_type', (YLeaf(YType.enumeration, 'sid-type'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper', 'XtcSid', '')])),
('label', (YLeaf(YType.uint32, 'label'), ['int'])),
('ipv6', (YLeaf(YType.str, 'ipv6'), ['str'])),
])
self.sid_type = None
self.label = None
self.ipv6 = None
self._segment_path = lambda: "binding-sid"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc.PolicyForwardings.PolicyForwarding.BindingSid, ['sid_type', 'label', 'ipv6'], name, value)
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc.PolicyForwardings.PolicyForwarding.BindingSid']['meta_info']
class Stats(_Entity_):
"""
Overall forwarding stats of the policy
.. attribute:: packets
Number of packets forwarded
**type**\: int
**range:** 0..18446744073709551615
**config**\: False
.. attribute:: bytes
Number of bytes forwarded
**type**\: int
**range:** 0..18446744073709551615
**config**\: False
**units**\: byte
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc.PolicyForwardings.PolicyForwarding.Stats, self).__init__()
self.yang_name = "stats"
self.yang_parent_name = "policy-forwarding"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('packets', (YLeaf(YType.uint64, 'packets'), ['int'])),
('bytes', (YLeaf(YType.uint64, 'bytes'), ['int'])),
])
self.packets = None
self.bytes = None
self._segment_path = lambda: "stats"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc.PolicyForwardings.PolicyForwarding.Stats, ['packets', 'bytes'], name, value)
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc.PolicyForwardings.PolicyForwarding.Stats']['meta_info']
class ActiveLsp(_Entity_):
"""
Active LSP information
.. attribute:: candidate_path
Candidate path associated with this LSP
**type**\: :py:class:`CandidatePath <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Xtc.PolicyForwardings.PolicyForwarding.ActiveLsp.CandidatePath>`
**config**\: False
.. attribute:: local_label
Local label of the LSP
**type**\: int
**range:** 0..4294967295
**config**\: False
.. attribute:: segment_list
Segment lists
**type**\: list of :py:class:`SegmentList <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Xtc.PolicyForwardings.PolicyForwarding.ActiveLsp.SegmentList>`
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc.PolicyForwardings.PolicyForwarding.ActiveLsp, self).__init__()
self.yang_name = "active-lsp"
self.yang_parent_name = "policy-forwarding"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([("candidate-path", ("candidate_path", Xtc.PolicyForwardings.PolicyForwarding.ActiveLsp.CandidatePath)), ("segment-list", ("segment_list", Xtc.PolicyForwardings.PolicyForwarding.ActiveLsp.SegmentList))])
self._leafs = OrderedDict([
('local_label', (YLeaf(YType.uint32, 'local-label'), ['int'])),
])
self.local_label = None
self.candidate_path = Xtc.PolicyForwardings.PolicyForwarding.ActiveLsp.CandidatePath()
self.candidate_path.parent = self
self._children_name_map["candidate_path"] = "candidate-path"
self.segment_list = YList(self)
self._segment_path = lambda: "active-lsp"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc.PolicyForwardings.PolicyForwarding.ActiveLsp, ['local_label'], name, value)
class CandidatePath(_Entity_):
"""
Candidate path associated with this LSP
.. attribute:: originator
Candidate path originator
**type**\: :py:class:`Originator <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Xtc.PolicyForwardings.PolicyForwarding.ActiveLsp.CandidatePath.Originator>`
**config**\: False
.. attribute:: name
Name of the candidate path, if any
**type**\: str
**config**\: False
.. attribute:: preference
Candidate path preference
**type**\: int
**range:** 0..4294967295
**config**\: False
.. attribute:: protocol_originator
Candidate path protocol origin
**type**\: :py:class:`XtcPolicyCpathProtoOrigin <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.XtcPolicyCpathProtoOrigin>`
**config**\: False
.. attribute:: discriminator
Candidate path discriminator
**type**\: int
**range:** 0..4294967295
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc.PolicyForwardings.PolicyForwarding.ActiveLsp.CandidatePath, self).__init__()
self.yang_name = "candidate-path"
self.yang_parent_name = "active-lsp"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([("originator", ("originator", Xtc.PolicyForwardings.PolicyForwarding.ActiveLsp.CandidatePath.Originator))])
self._leafs = OrderedDict([
('name', (YLeaf(YType.str, 'name'), ['str'])),
('preference', (YLeaf(YType.uint32, 'preference'), ['int'])),
('protocol_originator', (YLeaf(YType.enumeration, 'protocol-originator'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper', 'XtcPolicyCpathProtoOrigin', '')])),
('discriminator', (YLeaf(YType.uint32, 'discriminator'), ['int'])),
])
self.name = None
self.preference = None
self.protocol_originator = None
self.discriminator = None
self.originator = Xtc.PolicyForwardings.PolicyForwarding.ActiveLsp.CandidatePath.Originator()
self.originator.parent = self
self._children_name_map["originator"] = "originator"
self._segment_path = lambda: "candidate-path"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc.PolicyForwardings.PolicyForwarding.ActiveLsp.CandidatePath, ['name', 'preference', 'protocol_originator', 'discriminator'], name, value)
class Originator(_Entity_):
"""
Candidate path originator
.. attribute:: node_address
Originator node address
**type**\: :py:class:`NodeAddress <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Xtc.PolicyForwardings.PolicyForwarding.ActiveLsp.CandidatePath.Originator.NodeAddress>`
**config**\: False
.. attribute:: autonomous_system_number
Originator Autonomous System Number
**type**\: int
**range:** 0..4294967295
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc.PolicyForwardings.PolicyForwarding.ActiveLsp.CandidatePath.Originator, self).__init__()
self.yang_name = "originator"
self.yang_parent_name = "candidate-path"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([("node-address", ("node_address", Xtc.PolicyForwardings.PolicyForwarding.ActiveLsp.CandidatePath.Originator.NodeAddress))])
self._leafs = OrderedDict([
('autonomous_system_number', (YLeaf(YType.uint32, 'autonomous-system-number'), ['int'])),
])
self.autonomous_system_number = None
self.node_address = Xtc.PolicyForwardings.PolicyForwarding.ActiveLsp.CandidatePath.Originator.NodeAddress()
self.node_address.parent = self
self._children_name_map["node_address"] = "node-address"
self._segment_path = lambda: "originator"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc.PolicyForwardings.PolicyForwarding.ActiveLsp.CandidatePath.Originator, ['autonomous_system_number'], name, value)
class NodeAddress(_Entity_):
"""
Originator node address
.. attribute:: af_name
AFName
**type**\: :py:class:`XtcAfId <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.XtcAfId>`
**config**\: False
.. attribute:: ipv4
IPv4 address type
**type**\: str
**pattern:** (([0\-9]\|[1\-9][0\-9]\|1[0\-9][0\-9]\|2[0\-4][0\-9]\|25[0\-5])\\.){3}([0\-9]\|[1\-9][0\-9]\|1[0\-9][0\-9]\|2[0\-4][0\-9]\|25[0\-5])(%[\\p{N}\\p{L}]+)?
**config**\: False
.. attribute:: ipv6
IPv6 address type
**type**\: str
**pattern:** ((\:\|[0\-9a\-fA\-F]{0,4})\:)([0\-9a\-fA\-F]{0,4}\:){0,5}((([0\-9a\-fA\-F]{0,4}\:)?(\:\|[0\-9a\-fA\-F]{0,4}))\|(((25[0\-5]\|2[0\-4][0\-9]\|[01]?[0\-9]?[0\-9])\\.){3}(25[0\-5]\|2[0\-4][0\-9]\|[01]?[0\-9]?[0\-9])))(%[\\p{N}\\p{L}]+)?
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc.PolicyForwardings.PolicyForwarding.ActiveLsp.CandidatePath.Originator.NodeAddress, self).__init__()
self.yang_name = "node-address"
self.yang_parent_name = "originator"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('af_name', (YLeaf(YType.enumeration, 'af-name'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper', 'XtcAfId', '')])),
('ipv4', (YLeaf(YType.str, 'ipv4'), ['str'])),
('ipv6', (YLeaf(YType.str, 'ipv6'), ['str'])),
])
self.af_name = None
self.ipv4 = None
self.ipv6 = None
self._segment_path = lambda: "node-address"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc.PolicyForwardings.PolicyForwarding.ActiveLsp.CandidatePath.Originator.NodeAddress, ['af_name', 'ipv4', 'ipv6'], name, value)
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc.PolicyForwardings.PolicyForwarding.ActiveLsp.CandidatePath.Originator.NodeAddress']['meta_info']
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc.PolicyForwardings.PolicyForwarding.ActiveLsp.CandidatePath.Originator']['meta_info']
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc.PolicyForwardings.PolicyForwarding.ActiveLsp.CandidatePath']['meta_info']
class SegmentList(_Entity_):
"""
Segment lists
.. attribute:: stats
Forwarding stats of the segment list
**type**\: :py:class:`Stats <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Xtc.PolicyForwardings.PolicyForwarding.ActiveLsp.SegmentList.Stats>`
**config**\: False
.. attribute:: name
Name of the segment list, if any
**type**\: str
**config**\: False
.. attribute:: paths
Segment list paths
**type**\: list of :py:class:`Paths <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Xtc.PolicyForwardings.PolicyForwarding.ActiveLsp.SegmentList.Paths>`
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc.PolicyForwardings.PolicyForwarding.ActiveLsp.SegmentList, self).__init__()
self.yang_name = "segment-list"
self.yang_parent_name = "active-lsp"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([("stats", ("stats", Xtc.PolicyForwardings.PolicyForwarding.ActiveLsp.SegmentList.Stats)), ("paths", ("paths", Xtc.PolicyForwardings.PolicyForwarding.ActiveLsp.SegmentList.Paths))])
self._leafs = OrderedDict([
('name', (YLeaf(YType.str, 'name'), ['str'])),
])
self.name = None
self.stats = Xtc.PolicyForwardings.PolicyForwarding.ActiveLsp.SegmentList.Stats()
self.stats.parent = self
self._children_name_map["stats"] = "stats"
self.paths = YList(self)
self._segment_path = lambda: "segment-list"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc.PolicyForwardings.PolicyForwarding.ActiveLsp.SegmentList, ['name'], name, value)
class Stats(_Entity_):
"""
Forwarding stats of the segment list
.. attribute:: packets
Number of packets forwarded
**type**\: int
**range:** 0..18446744073709551615
**config**\: False
.. attribute:: bytes
Number of bytes forwarded
**type**\: int
**range:** 0..18446744073709551615
**config**\: False
**units**\: byte
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc.PolicyForwardings.PolicyForwarding.ActiveLsp.SegmentList.Stats, self).__init__()
self.yang_name = "stats"
self.yang_parent_name = "segment-list"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('packets', (YLeaf(YType.uint64, 'packets'), ['int'])),
('bytes', (YLeaf(YType.uint64, 'bytes'), ['int'])),
])
self.packets = None
self.bytes = None
self._segment_path = lambda: "stats"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc.PolicyForwardings.PolicyForwarding.ActiveLsp.SegmentList.Stats, ['packets', 'bytes'], name, value)
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc.PolicyForwardings.PolicyForwarding.ActiveLsp.SegmentList.Stats']['meta_info']
class Paths(_Entity_):
"""
Segment list paths
.. attribute:: stats
Forwarding stats of the path
**type**\: :py:class:`Stats <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Xtc.PolicyForwardings.PolicyForwarding.ActiveLsp.SegmentList.Paths.Stats>`
**config**\: False
.. attribute:: outgoing_interface
Outgoing interface handle
**type**\: str
**pattern:** [a\-zA\-Z0\-9.\_/\-]+
**config**\: False
.. attribute:: next_hop_ipv4
IPv4 Next Hop
**type**\: str
**pattern:** (([0\-9]\|[1\-9][0\-9]\|1[0\-9][0\-9]\|2[0\-4][0\-9]\|25[0\-5])\\.){3}([0\-9]\|[1\-9][0\-9]\|1[0\-9][0\-9]\|2[0\-4][0\-9]\|25[0\-5])(%[\\p{N}\\p{L}]+)?
**config**\: False
.. attribute:: next_hop_table_id
Table ID for nexthop address
**type**\: int
**range:** 0..4294967295
**config**\: False
.. attribute:: is_protected
Is this path protected ?
**type**\: bool
**config**\: False
.. attribute:: is_pure_bkup
Is this path a pure backup ?
**type**\: bool
**config**\: False
.. attribute:: is_lfa_or_ecmp_backup
Whether the path is LFA or ECMP backup
**type**\: bool
**config**\: False
.. attribute:: load_metric
Path's load metric for load balancing
**type**\: int
**range:** 0..4294967295
**config**\: False
.. attribute:: path_id
path Id
**type**\: int
**range:** 0..255
**config**\: False
.. attribute:: bkup_path_id
Backup path Id
**type**\: int
**range:** 0..255
**config**\: False
.. attribute:: label_stack
Path outgoing labels
**type**\: list of int
**range:** 0..4294967295
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc.PolicyForwardings.PolicyForwarding.ActiveLsp.SegmentList.Paths, self).__init__()
self.yang_name = "paths"
self.yang_parent_name = "segment-list"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([("stats", ("stats", Xtc.PolicyForwardings.PolicyForwarding.ActiveLsp.SegmentList.Paths.Stats))])
self._leafs = OrderedDict([
('outgoing_interface', (YLeaf(YType.str, 'outgoing-interface'), ['str'])),
('next_hop_ipv4', (YLeaf(YType.str, 'next-hop-ipv4'), ['str'])),
('next_hop_table_id', (YLeaf(YType.uint32, 'next-hop-table-id'), ['int'])),
('is_protected', (YLeaf(YType.boolean, 'is-protected'), ['bool'])),
('is_pure_bkup', (YLeaf(YType.boolean, 'is-pure-bkup'), ['bool'])),
('is_lfa_or_ecmp_backup', (YLeaf(YType.boolean, 'is-lfa-or-ecmp-backup'), ['bool'])),
('load_metric', (YLeaf(YType.uint32, 'load-metric'), ['int'])),
('path_id', (YLeaf(YType.uint8, 'path-id'), ['int'])),
('bkup_path_id', (YLeaf(YType.uint8, 'bkup-path-id'), ['int'])),
('label_stack', (YLeafList(YType.uint32, 'label-stack'), ['int'])),
])
self.outgoing_interface = None
self.next_hop_ipv4 = None
self.next_hop_table_id = None
self.is_protected = None
self.is_pure_bkup = None
self.is_lfa_or_ecmp_backup = None
self.load_metric = None
self.path_id = None
self.bkup_path_id = None
self.label_stack = []
self.stats = Xtc.PolicyForwardings.PolicyForwarding.ActiveLsp.SegmentList.Paths.Stats()
self.stats.parent = self
self._children_name_map["stats"] = "stats"
self._segment_path = lambda: "paths"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc.PolicyForwardings.PolicyForwarding.ActiveLsp.SegmentList.Paths, ['outgoing_interface', 'next_hop_ipv4', 'next_hop_table_id', 'is_protected', 'is_pure_bkup', 'is_lfa_or_ecmp_backup', 'load_metric', 'path_id', 'bkup_path_id', 'label_stack'], name, value)
class Stats(_Entity_):
"""
Forwarding stats of the path
.. attribute:: packets
Number of packets forwarded
**type**\: int
**range:** 0..18446744073709551615
**config**\: False
.. attribute:: bytes
Number of bytes forwarded
**type**\: int
**range:** 0..18446744073709551615
**config**\: False
**units**\: byte
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc.PolicyForwardings.PolicyForwarding.ActiveLsp.SegmentList.Paths.Stats, self).__init__()
self.yang_name = "stats"
self.yang_parent_name = "paths"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('packets', (YLeaf(YType.uint64, 'packets'), ['int'])),
('bytes', (YLeaf(YType.uint64, 'bytes'), ['int'])),
])
self.packets = None
self.bytes = None
self._segment_path = lambda: "stats"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc.PolicyForwardings.PolicyForwarding.ActiveLsp.SegmentList.Paths.Stats, ['packets', 'bytes'], name, value)
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc.PolicyForwardings.PolicyForwarding.ActiveLsp.SegmentList.Paths.Stats']['meta_info']
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc.PolicyForwardings.PolicyForwarding.ActiveLsp.SegmentList.Paths']['meta_info']
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc.PolicyForwardings.PolicyForwarding.ActiveLsp.SegmentList']['meta_info']
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc.PolicyForwardings.PolicyForwarding.ActiveLsp']['meta_info']
class ReoptimizedLsp(_Entity_):
"""
Reoptimized LSP information
.. attribute:: candidate_path
Candidate path associated with this LSP
**type**\: :py:class:`CandidatePath <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Xtc.PolicyForwardings.PolicyForwarding.ReoptimizedLsp.CandidatePath>`
**config**\: False
.. attribute:: local_label
Local label of the LSP
**type**\: int
**range:** 0..4294967295
**config**\: False
.. attribute:: segment_list
Segment lists
**type**\: list of :py:class:`SegmentList <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Xtc.PolicyForwardings.PolicyForwarding.ReoptimizedLsp.SegmentList>`
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc.PolicyForwardings.PolicyForwarding.ReoptimizedLsp, self).__init__()
self.yang_name = "reoptimized-lsp"
self.yang_parent_name = "policy-forwarding"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([("candidate-path", ("candidate_path", Xtc.PolicyForwardings.PolicyForwarding.ReoptimizedLsp.CandidatePath)), ("segment-list", ("segment_list", Xtc.PolicyForwardings.PolicyForwarding.ReoptimizedLsp.SegmentList))])
self._leafs = OrderedDict([
('local_label', (YLeaf(YType.uint32, 'local-label'), ['int'])),
])
self.local_label = None
self.candidate_path = Xtc.PolicyForwardings.PolicyForwarding.ReoptimizedLsp.CandidatePath()
self.candidate_path.parent = self
self._children_name_map["candidate_path"] = "candidate-path"
self.segment_list = YList(self)
self._segment_path = lambda: "reoptimized-lsp"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc.PolicyForwardings.PolicyForwarding.ReoptimizedLsp, ['local_label'], name, value)
class CandidatePath(_Entity_):
"""
Candidate path associated with this LSP
.. attribute:: originator
Candidate path originator
**type**\: :py:class:`Originator <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Xtc.PolicyForwardings.PolicyForwarding.ReoptimizedLsp.CandidatePath.Originator>`
**config**\: False
.. attribute:: name
Name of the candidate path, if any
**type**\: str
**config**\: False
.. attribute:: preference
Candidate path preference
**type**\: int
**range:** 0..4294967295
**config**\: False
.. attribute:: protocol_originator
Candidate path protocol origin
**type**\: :py:class:`XtcPolicyCpathProtoOrigin <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.XtcPolicyCpathProtoOrigin>`
**config**\: False
.. attribute:: discriminator
Candidate path discriminator
**type**\: int
**range:** 0..4294967295
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc.PolicyForwardings.PolicyForwarding.ReoptimizedLsp.CandidatePath, self).__init__()
self.yang_name = "candidate-path"
self.yang_parent_name = "reoptimized-lsp"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([("originator", ("originator", Xtc.PolicyForwardings.PolicyForwarding.ReoptimizedLsp.CandidatePath.Originator))])
self._leafs = OrderedDict([
('name', (YLeaf(YType.str, 'name'), ['str'])),
('preference', (YLeaf(YType.uint32, 'preference'), ['int'])),
('protocol_originator', (YLeaf(YType.enumeration, 'protocol-originator'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper', 'XtcPolicyCpathProtoOrigin', '')])),
('discriminator', (YLeaf(YType.uint32, 'discriminator'), ['int'])),
])
self.name = None
self.preference = None
self.protocol_originator = None
self.discriminator = None
self.originator = Xtc.PolicyForwardings.PolicyForwarding.ReoptimizedLsp.CandidatePath.Originator()
self.originator.parent = self
self._children_name_map["originator"] = "originator"
self._segment_path = lambda: "candidate-path"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc.PolicyForwardings.PolicyForwarding.ReoptimizedLsp.CandidatePath, ['name', 'preference', 'protocol_originator', 'discriminator'], name, value)
class Originator(_Entity_):
"""
Candidate path originator
.. attribute:: node_address
Originator node address
**type**\: :py:class:`NodeAddress <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Xtc.PolicyForwardings.PolicyForwarding.ReoptimizedLsp.CandidatePath.Originator.NodeAddress>`
**config**\: False
.. attribute:: autonomous_system_number
Originator Autonomous System Number
**type**\: int
**range:** 0..4294967295
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc.PolicyForwardings.PolicyForwarding.ReoptimizedLsp.CandidatePath.Originator, self).__init__()
self.yang_name = "originator"
self.yang_parent_name = "candidate-path"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([("node-address", ("node_address", Xtc.PolicyForwardings.PolicyForwarding.ReoptimizedLsp.CandidatePath.Originator.NodeAddress))])
self._leafs = OrderedDict([
('autonomous_system_number', (YLeaf(YType.uint32, 'autonomous-system-number'), ['int'])),
])
self.autonomous_system_number = None
self.node_address = Xtc.PolicyForwardings.PolicyForwarding.ReoptimizedLsp.CandidatePath.Originator.NodeAddress()
self.node_address.parent = self
self._children_name_map["node_address"] = "node-address"
self._segment_path = lambda: "originator"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc.PolicyForwardings.PolicyForwarding.ReoptimizedLsp.CandidatePath.Originator, ['autonomous_system_number'], name, value)
class NodeAddress(_Entity_):
"""
Originator node address
.. attribute:: af_name
AFName
**type**\: :py:class:`XtcAfId <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.XtcAfId>`
**config**\: False
.. attribute:: ipv4
IPv4 address type
**type**\: str
**pattern:** (([0\-9]\|[1\-9][0\-9]\|1[0\-9][0\-9]\|2[0\-4][0\-9]\|25[0\-5])\\.){3}([0\-9]\|[1\-9][0\-9]\|1[0\-9][0\-9]\|2[0\-4][0\-9]\|25[0\-5])(%[\\p{N}\\p{L}]+)?
**config**\: False
.. attribute:: ipv6
IPv6 address type
**type**\: str
**pattern:** ((\:\|[0\-9a\-fA\-F]{0,4})\:)([0\-9a\-fA\-F]{0,4}\:){0,5}((([0\-9a\-fA\-F]{0,4}\:)?(\:\|[0\-9a\-fA\-F]{0,4}))\|(((25[0\-5]\|2[0\-4][0\-9]\|[01]?[0\-9]?[0\-9])\\.){3}(25[0\-5]\|2[0\-4][0\-9]\|[01]?[0\-9]?[0\-9])))(%[\\p{N}\\p{L}]+)?
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc.PolicyForwardings.PolicyForwarding.ReoptimizedLsp.CandidatePath.Originator.NodeAddress, self).__init__()
self.yang_name = "node-address"
self.yang_parent_name = "originator"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('af_name', (YLeaf(YType.enumeration, 'af-name'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper', 'XtcAfId', '')])),
('ipv4', (YLeaf(YType.str, 'ipv4'), ['str'])),
('ipv6', (YLeaf(YType.str, 'ipv6'), ['str'])),
])
self.af_name = None
self.ipv4 = None
self.ipv6 = None
self._segment_path = lambda: "node-address"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc.PolicyForwardings.PolicyForwarding.ReoptimizedLsp.CandidatePath.Originator.NodeAddress, ['af_name', 'ipv4', 'ipv6'], name, value)
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc.PolicyForwardings.PolicyForwarding.ReoptimizedLsp.CandidatePath.Originator.NodeAddress']['meta_info']
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc.PolicyForwardings.PolicyForwarding.ReoptimizedLsp.CandidatePath.Originator']['meta_info']
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc.PolicyForwardings.PolicyForwarding.ReoptimizedLsp.CandidatePath']['meta_info']
class SegmentList(_Entity_):
"""
Segment lists
.. attribute:: stats
Forwarding stats of the segment list
**type**\: :py:class:`Stats <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Xtc.PolicyForwardings.PolicyForwarding.ReoptimizedLsp.SegmentList.Stats>`
**config**\: False
.. attribute:: name
Name of the segment list, if any
**type**\: str
**config**\: False
.. attribute:: paths
Segment list paths
**type**\: list of :py:class:`Paths <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Xtc.PolicyForwardings.PolicyForwarding.ReoptimizedLsp.SegmentList.Paths>`
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc.PolicyForwardings.PolicyForwarding.ReoptimizedLsp.SegmentList, self).__init__()
self.yang_name = "segment-list"
self.yang_parent_name = "reoptimized-lsp"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([("stats", ("stats", Xtc.PolicyForwardings.PolicyForwarding.ReoptimizedLsp.SegmentList.Stats)), ("paths", ("paths", Xtc.PolicyForwardings.PolicyForwarding.ReoptimizedLsp.SegmentList.Paths))])
self._leafs = OrderedDict([
('name', (YLeaf(YType.str, 'name'), ['str'])),
])
self.name = None
self.stats = Xtc.PolicyForwardings.PolicyForwarding.ReoptimizedLsp.SegmentList.Stats()
self.stats.parent = self
self._children_name_map["stats"] = "stats"
self.paths = YList(self)
self._segment_path = lambda: "segment-list"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc.PolicyForwardings.PolicyForwarding.ReoptimizedLsp.SegmentList, ['name'], name, value)
class Stats(_Entity_):
"""
Forwarding stats of the segment list
.. attribute:: packets
Number of packets forwarded
**type**\: int
**range:** 0..18446744073709551615
**config**\: False
.. attribute:: bytes
Number of bytes forwarded
**type**\: int
**range:** 0..18446744073709551615
**config**\: False
**units**\: byte
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc.PolicyForwardings.PolicyForwarding.ReoptimizedLsp.SegmentList.Stats, self).__init__()
self.yang_name = "stats"
self.yang_parent_name = "segment-list"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('packets', (YLeaf(YType.uint64, 'packets'), ['int'])),
('bytes', (YLeaf(YType.uint64, 'bytes'), ['int'])),
])
self.packets = None
self.bytes = None
self._segment_path = lambda: "stats"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc.PolicyForwardings.PolicyForwarding.ReoptimizedLsp.SegmentList.Stats, ['packets', 'bytes'], name, value)
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc.PolicyForwardings.PolicyForwarding.ReoptimizedLsp.SegmentList.Stats']['meta_info']
class Paths(_Entity_):
"""
Segment list paths
.. attribute:: stats
Forwarding stats of the path
**type**\: :py:class:`Stats <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Xtc.PolicyForwardings.PolicyForwarding.ReoptimizedLsp.SegmentList.Paths.Stats>`
**config**\: False
.. attribute:: outgoing_interface
Outgoing interface handle
**type**\: str
**pattern:** [a\-zA\-Z0\-9.\_/\-]+
**config**\: False
.. attribute:: next_hop_ipv4
IPv4 Next Hop
**type**\: str
**pattern:** (([0\-9]\|[1\-9][0\-9]\|1[0\-9][0\-9]\|2[0\-4][0\-9]\|25[0\-5])\\.){3}([0\-9]\|[1\-9][0\-9]\|1[0\-9][0\-9]\|2[0\-4][0\-9]\|25[0\-5])(%[\\p{N}\\p{L}]+)?
**config**\: False
.. attribute:: next_hop_table_id
Table ID for nexthop address
**type**\: int
**range:** 0..4294967295
**config**\: False
.. attribute:: is_protected
Is this path protected ?
**type**\: bool
**config**\: False
.. attribute:: is_pure_bkup
Is this path a pure backup ?
**type**\: bool
**config**\: False
.. attribute:: is_lfa_or_ecmp_backup
Whether the path is LFA or ECMP backup
**type**\: bool
**config**\: False
.. attribute:: load_metric
Path's load metric for load balancing
**type**\: int
**range:** 0..4294967295
**config**\: False
.. attribute:: path_id
path Id
**type**\: int
**range:** 0..255
**config**\: False
.. attribute:: bkup_path_id
Backup path Id
**type**\: int
**range:** 0..255
**config**\: False
.. attribute:: label_stack
Path outgoing labels
**type**\: list of int
**range:** 0..4294967295
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc.PolicyForwardings.PolicyForwarding.ReoptimizedLsp.SegmentList.Paths, self).__init__()
self.yang_name = "paths"
self.yang_parent_name = "segment-list"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([("stats", ("stats", Xtc.PolicyForwardings.PolicyForwarding.ReoptimizedLsp.SegmentList.Paths.Stats))])
self._leafs = OrderedDict([
('outgoing_interface', (YLeaf(YType.str, 'outgoing-interface'), ['str'])),
('next_hop_ipv4', (YLeaf(YType.str, 'next-hop-ipv4'), ['str'])),
('next_hop_table_id', (YLeaf(YType.uint32, 'next-hop-table-id'), ['int'])),
('is_protected', (YLeaf(YType.boolean, 'is-protected'), ['bool'])),
('is_pure_bkup', (YLeaf(YType.boolean, 'is-pure-bkup'), ['bool'])),
('is_lfa_or_ecmp_backup', (YLeaf(YType.boolean, 'is-lfa-or-ecmp-backup'), ['bool'])),
('load_metric', (YLeaf(YType.uint32, 'load-metric'), ['int'])),
('path_id', (YLeaf(YType.uint8, 'path-id'), ['int'])),
('bkup_path_id', (YLeaf(YType.uint8, 'bkup-path-id'), ['int'])),
('label_stack', (YLeafList(YType.uint32, 'label-stack'), ['int'])),
])
self.outgoing_interface = None
self.next_hop_ipv4 = None
self.next_hop_table_id = None
self.is_protected = None
self.is_pure_bkup = None
self.is_lfa_or_ecmp_backup = None
self.load_metric = None
self.path_id = None
self.bkup_path_id = None
self.label_stack = []
self.stats = Xtc.PolicyForwardings.PolicyForwarding.ReoptimizedLsp.SegmentList.Paths.Stats()
self.stats.parent = self
self._children_name_map["stats"] = "stats"
self._segment_path = lambda: "paths"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc.PolicyForwardings.PolicyForwarding.ReoptimizedLsp.SegmentList.Paths, ['outgoing_interface', 'next_hop_ipv4', 'next_hop_table_id', 'is_protected', 'is_pure_bkup', 'is_lfa_or_ecmp_backup', 'load_metric', 'path_id', 'bkup_path_id', 'label_stack'], name, value)
class Stats(_Entity_):
"""
Forwarding stats of the path
.. attribute:: packets
Number of packets forwarded
**type**\: int
**range:** 0..18446744073709551615
**config**\: False
.. attribute:: bytes
Number of bytes forwarded
**type**\: int
**range:** 0..18446744073709551615
**config**\: False
**units**\: byte
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc.PolicyForwardings.PolicyForwarding.ReoptimizedLsp.SegmentList.Paths.Stats, self).__init__()
self.yang_name = "stats"
self.yang_parent_name = "paths"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('packets', (YLeaf(YType.uint64, 'packets'), ['int'])),
('bytes', (YLeaf(YType.uint64, 'bytes'), ['int'])),
])
self.packets = None
self.bytes = None
self._segment_path = lambda: "stats"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc.PolicyForwardings.PolicyForwarding.ReoptimizedLsp.SegmentList.Paths.Stats, ['packets', 'bytes'], name, value)
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc.PolicyForwardings.PolicyForwarding.ReoptimizedLsp.SegmentList.Paths.Stats']['meta_info']
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc.PolicyForwardings.PolicyForwarding.ReoptimizedLsp.SegmentList.Paths']['meta_info']
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc.PolicyForwardings.PolicyForwarding.ReoptimizedLsp.SegmentList']['meta_info']
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc.PolicyForwardings.PolicyForwarding.ReoptimizedLsp']['meta_info']
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc.PolicyForwardings.PolicyForwarding']['meta_info']
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc.PolicyForwardings']['meta_info']
class PolicySummary(_Entity_):
"""
Summary of all policies
.. attribute:: total_policy_count
Total number of policies
**type**\: int
**range:** 0..4294967295
**config**\: False
.. attribute:: up_policy_count
Total number of policies that are operationally up
**type**\: int
**range:** 0..4294967295
**config**\: False
.. attribute:: down_policy_count
Total number of policies that are operationally down
**type**\: int
**range:** 0..4294967295
**config**\: False
.. attribute:: total_candidate_path_count
Total number of candidate paths
**type**\: int
**range:** 0..4294967295
**config**\: False
.. attribute:: active_candidate_path_count
Total number of candidate paths that are active
**type**\: int
**range:** 0..4294967295
**config**\: False
.. attribute:: inactive_candidate_path_count
Total number of candidate paths that are inactive
**type**\: int
**range:** 0..4294967295
**config**\: False
.. attribute:: total_lsp_count
Total number of LSPs
**type**\: int
**range:** 0..4294967295
**config**\: False
.. attribute:: active_lsp_count
Total number of active LSPs
**type**\: int
**range:** 0..4294967295
**config**\: False
.. attribute:: reoptimized_lsp_count
Total number of reoptimized LSPs
**type**\: int
**range:** 0..4294967295
**config**\: False
.. attribute:: cleanup_lsp_count
Total number of cleanup LSPs
**type**\: int
**range:** 0..4294967295
**config**\: False
.. attribute:: oor_lsp_count
Total number of LSPs in OOR state
**type**\: int
**range:** 0..4294967295
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc.PolicySummary, self).__init__()
self.yang_name = "policy-summary"
self.yang_parent_name = "xtc"
self.is_top_level_class = False
self.has_list_ancestor = False
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('total_policy_count', (YLeaf(YType.uint32, 'total-policy-count'), ['int'])),
('up_policy_count', (YLeaf(YType.uint32, 'up-policy-count'), ['int'])),
('down_policy_count', (YLeaf(YType.uint32, 'down-policy-count'), ['int'])),
('total_candidate_path_count', (YLeaf(YType.uint32, 'total-candidate-path-count'), ['int'])),
('active_candidate_path_count', (YLeaf(YType.uint32, 'active-candidate-path-count'), ['int'])),
('inactive_candidate_path_count', (YLeaf(YType.uint32, 'inactive-candidate-path-count'), ['int'])),
('total_lsp_count', (YLeaf(YType.uint32, 'total-lsp-count'), ['int'])),
('active_lsp_count', (YLeaf(YType.uint32, 'active-lsp-count'), ['int'])),
('reoptimized_lsp_count', (YLeaf(YType.uint32, 'reoptimized-lsp-count'), ['int'])),
('cleanup_lsp_count', (YLeaf(YType.uint32, 'cleanup-lsp-count'), ['int'])),
('oor_lsp_count', (YLeaf(YType.uint32, 'oor-lsp-count'), ['int'])),
])
self.total_policy_count = None
self.up_policy_count = None
self.down_policy_count = None
self.total_candidate_path_count = None
self.active_candidate_path_count = None
self.inactive_candidate_path_count = None
self.total_lsp_count = None
self.active_lsp_count = None
self.reoptimized_lsp_count = None
self.cleanup_lsp_count = None
self.oor_lsp_count = None
self._segment_path = lambda: "policy-summary"
self._absolute_path = lambda: "Cisco-IOS-XR-infra-xtc-agent-oper:xtc/%s" % self._segment_path()
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc.PolicySummary, ['total_policy_count', 'up_policy_count', 'down_policy_count', 'total_candidate_path_count', 'active_candidate_path_count', 'inactive_candidate_path_count', 'total_lsp_count', 'active_lsp_count', 'reoptimized_lsp_count', 'cleanup_lsp_count', 'oor_lsp_count'], name, value)
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc.PolicySummary']['meta_info']
class OnDemandColors(_Entity_):
"""
On\-Demand Color database in XTC Agent
.. attribute:: on_demand_color
On Demand Color information
**type**\: list of :py:class:`OnDemandColor <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Xtc.OnDemandColors.OnDemandColor>`
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc.OnDemandColors, self).__init__()
self.yang_name = "on-demand-colors"
self.yang_parent_name = "xtc"
self.is_top_level_class = False
self.has_list_ancestor = False
self.ylist_key_names = []
self._child_classes = OrderedDict([("on-demand-color", ("on_demand_color", Xtc.OnDemandColors.OnDemandColor))])
self._leafs = OrderedDict()
self.on_demand_color = YList(self)
self._segment_path = lambda: "on-demand-colors"
self._absolute_path = lambda: "Cisco-IOS-XR-infra-xtc-agent-oper:xtc/%s" % self._segment_path()
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc.OnDemandColors, [], name, value)
class OnDemandColor(_Entity_):
"""
On Demand Color information
.. attribute:: color (key)
Color
**type**\: int
**range:** 0..4294967295
**config**\: False
.. attribute:: disjoint_path_info
Disjoint path information
**type**\: :py:class:`DisjointPathInfo <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Xtc.OnDemandColors.OnDemandColor.DisjointPathInfo>`
**config**\: False
.. attribute:: color_xr
Color
**type**\: int
**range:** 0..4294967295
**config**\: False
.. attribute:: absolute_margin
Absolute Metric Margin
**type**\: int
**range:** 0..4294967295
**config**\: False
.. attribute:: relative_margin
Relative Metric Margin
**type**\: int
**range:** 0..4294967295
**config**\: False
.. attribute:: maximum_sid_depth
Maximum SID Depth
**type**\: int
**range:** 0..4294967295
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc.OnDemandColors.OnDemandColor, self).__init__()
self.yang_name = "on-demand-color"
self.yang_parent_name = "on-demand-colors"
self.is_top_level_class = False
self.has_list_ancestor = False
self.ylist_key_names = ['color']
self._child_classes = OrderedDict([("disjoint-path-info", ("disjoint_path_info", Xtc.OnDemandColors.OnDemandColor.DisjointPathInfo))])
self._leafs = OrderedDict([
('color', (YLeaf(YType.uint32, 'color'), ['int'])),
('color_xr', (YLeaf(YType.uint32, 'color-xr'), ['int'])),
('absolute_margin', (YLeaf(YType.uint32, 'absolute-margin'), ['int'])),
('relative_margin', (YLeaf(YType.uint32, 'relative-margin'), ['int'])),
('maximum_sid_depth', (YLeaf(YType.uint32, 'maximum-sid-depth'), ['int'])),
])
self.color = None
self.color_xr = None
self.absolute_margin = None
self.relative_margin = None
self.maximum_sid_depth = None
self.disjoint_path_info = Xtc.OnDemandColors.OnDemandColor.DisjointPathInfo()
self.disjoint_path_info.parent = self
self._children_name_map["disjoint_path_info"] = "disjoint-path-info"
self._segment_path = lambda: "on-demand-color" + "[color='" + str(self.color) + "']"
self._absolute_path = lambda: "Cisco-IOS-XR-infra-xtc-agent-oper:xtc/on-demand-colors/%s" % self._segment_path()
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc.OnDemandColors.OnDemandColor, ['color', 'color_xr', 'absolute_margin', 'relative_margin', 'maximum_sid_depth'], name, value)
class DisjointPathInfo(_Entity_):
"""
Disjoint path information
.. attribute:: disjointness_type
Disjointness type
**type**\: :py:class:`XtcDisjointness <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.XtcDisjointness>`
**config**\: False
.. attribute:: group_id
Group ID
**type**\: int
**range:** 0..4294967295
**config**\: False
.. attribute:: sub_id
Sub ID
**type**\: int
**range:** 0..4294967295
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc.OnDemandColors.OnDemandColor.DisjointPathInfo, self).__init__()
self.yang_name = "disjoint-path-info"
self.yang_parent_name = "on-demand-color"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('disjointness_type', (YLeaf(YType.enumeration, 'disjointness-type'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper', 'XtcDisjointness', '')])),
('group_id', (YLeaf(YType.uint32, 'group-id'), ['int'])),
('sub_id', (YLeaf(YType.uint32, 'sub-id'), ['int'])),
])
self.disjointness_type = None
self.group_id = None
self.sub_id = None
self._segment_path = lambda: "disjoint-path-info"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc.OnDemandColors.OnDemandColor.DisjointPathInfo, ['disjointness_type', 'group_id', 'sub_id'], name, value)
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc.OnDemandColors.OnDemandColor.DisjointPathInfo']['meta_info']
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc.OnDemandColors.OnDemandColor']['meta_info']
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc.OnDemandColors']['meta_info']
class Controller(_Entity_):
"""
Controller information
.. attribute:: policy_requests
Table containing policy requests
**type**\: :py:class:`PolicyRequests <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Xtc.Controller.PolicyRequests>`
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc.Controller, self).__init__()
self.yang_name = "controller"
self.yang_parent_name = "xtc"
self.is_top_level_class = False
self.has_list_ancestor = False
self.ylist_key_names = []
self._child_classes = OrderedDict([("policy-requests", ("policy_requests", Xtc.Controller.PolicyRequests))])
self._leafs = OrderedDict()
self.policy_requests = Xtc.Controller.PolicyRequests()
self.policy_requests.parent = self
self._children_name_map["policy_requests"] = "policy-requests"
self._segment_path = lambda: "controller"
self._absolute_path = lambda: "Cisco-IOS-XR-infra-xtc-agent-oper:xtc/%s" % self._segment_path()
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc.Controller, [], name, value)
class PolicyRequests(_Entity_):
"""
Table containing policy requests
.. attribute:: policy_request
Policy request information
**type**\: list of :py:class:`PolicyRequest <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Xtc.Controller.PolicyRequests.PolicyRequest>`
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc.Controller.PolicyRequests, self).__init__()
self.yang_name = "policy-requests"
self.yang_parent_name = "controller"
self.is_top_level_class = False
self.has_list_ancestor = False
self.ylist_key_names = []
self._child_classes = OrderedDict([("policy-request", ("policy_request", Xtc.Controller.PolicyRequests.PolicyRequest))])
self._leafs = OrderedDict()
self.policy_request = YList(self)
self._segment_path = lambda: "policy-requests"
self._absolute_path = lambda: "Cisco-IOS-XR-infra-xtc-agent-oper:xtc/controller/%s" % self._segment_path()
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc.Controller.PolicyRequests, [], name, value)
class PolicyRequest(_Entity_):
"""
Policy request information
.. attribute:: source_address (key)
Source Address
**type**\: union of the below types:
**type**\: str
**pattern:** (([0\-9]\|[1\-9][0\-9]\|1[0\-9][0\-9]\|2[0\-4][0\-9]\|25[0\-5])\\.){3}([0\-9]\|[1\-9][0\-9]\|1[0\-9][0\-9]\|2[0\-4][0\-9]\|25[0\-5])(%[\\p{N}\\p{L}]+)?
**type**\: str
**pattern:** ((\:\|[0\-9a\-fA\-F]{0,4})\:)([0\-9a\-fA\-F]{0,4}\:){0,5}((([0\-9a\-fA\-F]{0,4}\:)?(\:\|[0\-9a\-fA\-F]{0,4}))\|(((25[0\-5]\|2[0\-4][0\-9]\|[01]?[0\-9]?[0\-9])\\.){3}(25[0\-5]\|2[0\-4][0\-9]\|[01]?[0\-9]?[0\-9])))(%[\\p{N}\\p{L}]+)?
**config**\: False
.. attribute:: end_point_type (key)
Endpoint Address Type
**type**\: :py:class:`XtcAddressFamily <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.XtcAddressFamily>`
**config**\: False
.. attribute:: end_point_address (key)
Endpoint Address
**type**\: union of the below types:
**type**\: str
**pattern:** (([0\-9]\|[1\-9][0\-9]\|1[0\-9][0\-9]\|2[0\-4][0\-9]\|25[0\-5])\\.){3}([0\-9]\|[1\-9][0\-9]\|1[0\-9][0\-9]\|2[0\-4][0\-9]\|25[0\-5])(%[\\p{N}\\p{L}]+)?
**type**\: str
**pattern:** ((\:\|[0\-9a\-fA\-F]{0,4})\:)([0\-9a\-fA\-F]{0,4}\:){0,5}((([0\-9a\-fA\-F]{0,4}\:)?(\:\|[0\-9a\-fA\-F]{0,4}))\|(((25[0\-5]\|2[0\-4][0\-9]\|[01]?[0\-9]?[0\-9])\\.){3}(25[0\-5]\|2[0\-4][0\-9]\|[01]?[0\-9]?[0\-9])))(%[\\p{N}\\p{L}]+)?
**config**\: False
.. attribute:: color (key)
Color
**type**\: int
**range:** 1..4294967295
**config**\: False
.. attribute:: route_distinguisher (key)
Route Distinguisher
**type**\: int
**range:** 0..4294967295
**config**\: False
.. attribute:: end_point
End point
**type**\: :py:class:`EndPoint <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Xtc.Controller.PolicyRequests.PolicyRequest.EndPoint>`
**config**\: False
.. attribute:: source_address_xr
Source address
**type**\: str
**pattern:** (([0\-9]\|[1\-9][0\-9]\|1[0\-9][0\-9]\|2[0\-4][0\-9]\|25[0\-5])\\.){3}([0\-9]\|[1\-9][0\-9]\|1[0\-9][0\-9]\|2[0\-4][0\-9]\|25[0\-5])(%[\\p{N}\\p{L}]+)?
**config**\: False
.. attribute:: binding_sid
Binding SID
**type**\: int
**range:** 0..4294967295
**config**\: False
.. attribute:: preference
Preference
**type**\: int
**range:** 0..4294967295
**config**\: False
.. attribute:: color_xr
Color
**type**\: int
**range:** 0..4294967295
**config**\: False
.. attribute:: route_distinguisher_xr
Route distinguisher
**type**\: int
**range:** 0..4294967295
**config**\: False
.. attribute:: creation_time
Creation time of the request in seconds
**type**\: int
**range:** 0..4294967295
**config**\: False
**units**\: second
.. attribute:: last_updated_time
Last updated time of the request in seconds
**type**\: int
**range:** 0..4294967295
**config**\: False
**units**\: second
.. attribute:: segment_list
Segment lists
**type**\: list of :py:class:`SegmentList <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Xtc.Controller.PolicyRequests.PolicyRequest.SegmentList>`
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc.Controller.PolicyRequests.PolicyRequest, self).__init__()
self.yang_name = "policy-request"
self.yang_parent_name = "policy-requests"
self.is_top_level_class = False
self.has_list_ancestor = False
self.ylist_key_names = ['source_address','end_point_type','end_point_address','color','route_distinguisher']
self._child_classes = OrderedDict([("end-point", ("end_point", Xtc.Controller.PolicyRequests.PolicyRequest.EndPoint)), ("segment-list", ("segment_list", Xtc.Controller.PolicyRequests.PolicyRequest.SegmentList))])
self._leafs = OrderedDict([
('source_address', (YLeaf(YType.str, 'source-address'), ['str','str'])),
('end_point_type', (YLeaf(YType.enumeration, 'end-point-type'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper', 'XtcAddressFamily', '')])),
('end_point_address', (YLeaf(YType.str, 'end-point-address'), ['str','str'])),
('color', (YLeaf(YType.uint32, 'color'), ['int'])),
('route_distinguisher', (YLeaf(YType.uint32, 'route-distinguisher'), ['int'])),
('source_address_xr', (YLeaf(YType.str, 'source-address-xr'), ['str'])),
('binding_sid', (YLeaf(YType.uint32, 'binding-sid'), ['int'])),
('preference', (YLeaf(YType.uint32, 'preference'), ['int'])),
('color_xr', (YLeaf(YType.uint32, 'color-xr'), ['int'])),
('route_distinguisher_xr', (YLeaf(YType.uint32, 'route-distinguisher-xr'), ['int'])),
('creation_time', (YLeaf(YType.uint32, 'creation-time'), ['int'])),
('last_updated_time', (YLeaf(YType.uint32, 'last-updated-time'), ['int'])),
])
self.source_address = None
self.end_point_type = None
self.end_point_address = None
self.color = None
self.route_distinguisher = None
self.source_address_xr = None
self.binding_sid = None
self.preference = None
self.color_xr = None
self.route_distinguisher_xr = None
self.creation_time = None
self.last_updated_time = None
self.end_point = Xtc.Controller.PolicyRequests.PolicyRequest.EndPoint()
self.end_point.parent = self
self._children_name_map["end_point"] = "end-point"
self.segment_list = YList(self)
self._segment_path = lambda: "policy-request" + "[source-address='" + str(self.source_address) + "']" + "[end-point-type='" + str(self.end_point_type) + "']" + "[end-point-address='" + str(self.end_point_address) + "']" + "[color='" + str(self.color) + "']" + "[route-distinguisher='" + str(self.route_distinguisher) + "']"
self._absolute_path = lambda: "Cisco-IOS-XR-infra-xtc-agent-oper:xtc/controller/policy-requests/%s" % self._segment_path()
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc.Controller.PolicyRequests.PolicyRequest, ['source_address', 'end_point_type', 'end_point_address', 'color', 'route_distinguisher', 'source_address_xr', 'binding_sid', 'preference', 'color_xr', 'route_distinguisher_xr', 'creation_time', 'last_updated_time'], name, value)
class EndPoint(_Entity_):
"""
End point
.. attribute:: af_name
AFName
**type**\: :py:class:`XtcAfId <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.XtcAfId>`
**config**\: False
.. attribute:: ipv4
IPv4 address type
**type**\: str
**pattern:** (([0\-9]\|[1\-9][0\-9]\|1[0\-9][0\-9]\|2[0\-4][0\-9]\|25[0\-5])\\.){3}([0\-9]\|[1\-9][0\-9]\|1[0\-9][0\-9]\|2[0\-4][0\-9]\|25[0\-5])(%[\\p{N}\\p{L}]+)?
**config**\: False
.. attribute:: ipv6
IPv6 address type
**type**\: str
**pattern:** ((\:\|[0\-9a\-fA\-F]{0,4})\:)([0\-9a\-fA\-F]{0,4}\:){0,5}((([0\-9a\-fA\-F]{0,4}\:)?(\:\|[0\-9a\-fA\-F]{0,4}))\|(((25[0\-5]\|2[0\-4][0\-9]\|[01]?[0\-9]?[0\-9])\\.){3}(25[0\-5]\|2[0\-4][0\-9]\|[01]?[0\-9]?[0\-9])))(%[\\p{N}\\p{L}]+)?
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc.Controller.PolicyRequests.PolicyRequest.EndPoint, self).__init__()
self.yang_name = "end-point"
self.yang_parent_name = "policy-request"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('af_name', (YLeaf(YType.enumeration, 'af-name'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper', 'XtcAfId', '')])),
('ipv4', (YLeaf(YType.str, 'ipv4'), ['str'])),
('ipv6', (YLeaf(YType.str, 'ipv6'), ['str'])),
])
self.af_name = None
self.ipv4 = None
self.ipv6 = None
self._segment_path = lambda: "end-point"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc.Controller.PolicyRequests.PolicyRequest.EndPoint, ['af_name', 'ipv4', 'ipv6'], name, value)
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc.Controller.PolicyRequests.PolicyRequest.EndPoint']['meta_info']
class SegmentList(_Entity_):
"""
Segment lists
.. attribute:: name
Explicit segment list name
**type**\: str
**config**\: False
.. attribute:: type
Segment list type
**type**\: :py:class:`XtcPolicyPath <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.XtcPolicyPath>`
**config**\: False
.. attribute:: active
Whether the segment list is active (used)
**type**\: bool
**config**\: False
.. attribute:: weight
Weight of the segment list
**type**\: int
**range:** 0..4294967295
**config**\: False
.. attribute:: metric_type
Metric type of the segment list
**type**\: int
**range:** 0..255
**config**\: False
.. attribute:: metric_value
Accumulated metric of the segment list
**type**\: int
**range:** 0..18446744073709551615
**config**\: False
.. attribute:: is_valid
True if path is valid
**type**\: bool
**config**\: False
.. attribute:: pce_based_path
True if the path is to be computed by PCE
**type**\: bool
**config**\: False
.. attribute:: pce_address
Address of the PCE computed the path
**type**\: str
**pattern:** (([0\-9]\|[1\-9][0\-9]\|1[0\-9][0\-9]\|2[0\-4][0\-9]\|25[0\-5])\\.){3}([0\-9]\|[1\-9][0\-9]\|1[0\-9][0\-9]\|2[0\-4][0\-9]\|25[0\-5])(%[\\p{N}\\p{L}]+)?
**config**\: False
.. attribute:: error
Error (for display only)
**type**\: str
**config**\: False
.. attribute:: hops
SR hop list
**type**\: list of :py:class:`Hops <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Xtc.Controller.PolicyRequests.PolicyRequest.SegmentList.Hops>`
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc.Controller.PolicyRequests.PolicyRequest.SegmentList, self).__init__()
self.yang_name = "segment-list"
self.yang_parent_name = "policy-request"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([("hops", ("hops", Xtc.Controller.PolicyRequests.PolicyRequest.SegmentList.Hops))])
self._leafs = OrderedDict([
('name', (YLeaf(YType.str, 'name'), ['str'])),
('type', (YLeaf(YType.enumeration, 'type'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper', 'XtcPolicyPath', '')])),
('active', (YLeaf(YType.boolean, 'active'), ['bool'])),
('weight', (YLeaf(YType.uint32, 'weight'), ['int'])),
('metric_type', (YLeaf(YType.uint8, 'metric-type'), ['int'])),
('metric_value', (YLeaf(YType.uint64, 'metric-value'), ['int'])),
('is_valid', (YLeaf(YType.boolean, 'is-valid'), ['bool'])),
('pce_based_path', (YLeaf(YType.boolean, 'pce-based-path'), ['bool'])),
('pce_address', (YLeaf(YType.str, 'pce-address'), ['str'])),
('error', (YLeaf(YType.str, 'error'), ['str'])),
])
self.name = None
self.type = None
self.active = None
self.weight = None
self.metric_type = None
self.metric_value = None
self.is_valid = None
self.pce_based_path = None
self.pce_address = None
self.error = None
self.hops = YList(self)
self._segment_path = lambda: "segment-list"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc.Controller.PolicyRequests.PolicyRequest.SegmentList, ['name', 'type', 'active', 'weight', 'metric_type', 'metric_value', 'is_valid', 'pce_based_path', 'pce_address', 'error'], name, value)
class Hops(_Entity_):
"""
SR hop list
.. attribute:: sid
SID value
**type**\: :py:class:`Sid <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Xtc.Controller.PolicyRequests.PolicyRequest.SegmentList.Hops.Sid>`
**config**\: False
.. attribute:: local_address
Local address
**type**\: :py:class:`LocalAddress <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Xtc.Controller.PolicyRequests.PolicyRequest.SegmentList.Hops.LocalAddress>`
**config**\: False
.. attribute:: remote_address
Remote address
**type**\: :py:class:`RemoteAddress <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Xtc.Controller.PolicyRequests.PolicyRequest.SegmentList.Hops.RemoteAddress>`
**config**\: False
.. attribute:: sid_type
SID type
**type**\: :py:class:`XtcSrSid <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.XtcSrSid>`
**config**\: False
.. attribute:: algorithm
Algorithim
**type**\: int
**range:** 0..255
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc.Controller.PolicyRequests.PolicyRequest.SegmentList.Hops, self).__init__()
self.yang_name = "hops"
self.yang_parent_name = "segment-list"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([("sid", ("sid", Xtc.Controller.PolicyRequests.PolicyRequest.SegmentList.Hops.Sid)), ("local-address", ("local_address", Xtc.Controller.PolicyRequests.PolicyRequest.SegmentList.Hops.LocalAddress)), ("remote-address", ("remote_address", Xtc.Controller.PolicyRequests.PolicyRequest.SegmentList.Hops.RemoteAddress))])
self._leafs = OrderedDict([
('sid_type', (YLeaf(YType.enumeration, 'sid-type'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper', 'XtcSrSid', '')])),
('algorithm', (YLeaf(YType.uint8, 'algorithm'), ['int'])),
])
self.sid_type = None
self.algorithm = None
self.sid = Xtc.Controller.PolicyRequests.PolicyRequest.SegmentList.Hops.Sid()
self.sid.parent = self
self._children_name_map["sid"] = "sid"
self.local_address = Xtc.Controller.PolicyRequests.PolicyRequest.SegmentList.Hops.LocalAddress()
self.local_address.parent = self
self._children_name_map["local_address"] = "local-address"
self.remote_address = Xtc.Controller.PolicyRequests.PolicyRequest.SegmentList.Hops.RemoteAddress()
self.remote_address.parent = self
self._children_name_map["remote_address"] = "remote-address"
self._segment_path = lambda: "hops"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc.Controller.PolicyRequests.PolicyRequest.SegmentList.Hops, ['sid_type', 'algorithm'], name, value)
class Sid(_Entity_):
"""
SID value
.. attribute:: sid_type
SIDType
**type**\: :py:class:`XtcSid <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.XtcSid>`
**config**\: False
.. attribute:: label
MPLS label
**type**\: int
**range:** 0..4294967295
**config**\: False
.. attribute:: ipv6
IPv6 address
**type**\: str
**pattern:** ((\:\|[0\-9a\-fA\-F]{0,4})\:)([0\-9a\-fA\-F]{0,4}\:){0,5}((([0\-9a\-fA\-F]{0,4}\:)?(\:\|[0\-9a\-fA\-F]{0,4}))\|(((25[0\-5]\|2[0\-4][0\-9]\|[01]?[0\-9]?[0\-9])\\.){3}(25[0\-5]\|2[0\-4][0\-9]\|[01]?[0\-9]?[0\-9])))(%[\\p{N}\\p{L}]+)?
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc.Controller.PolicyRequests.PolicyRequest.SegmentList.Hops.Sid, self).__init__()
self.yang_name = "sid"
self.yang_parent_name = "hops"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('sid_type', (YLeaf(YType.enumeration, 'sid-type'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper', 'XtcSid', '')])),
('label', (YLeaf(YType.uint32, 'label'), ['int'])),
('ipv6', (YLeaf(YType.str, 'ipv6'), ['str'])),
])
self.sid_type = None
self.label = None
self.ipv6 = None
self._segment_path = lambda: "sid"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc.Controller.PolicyRequests.PolicyRequest.SegmentList.Hops.Sid, ['sid_type', 'label', 'ipv6'], name, value)
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc.Controller.PolicyRequests.PolicyRequest.SegmentList.Hops.Sid']['meta_info']
class LocalAddress(_Entity_):
"""
Local address
.. attribute:: af_name
AFName
**type**\: :py:class:`XtcAfId <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.XtcAfId>`
**config**\: False
.. attribute:: ipv4
IPv4 address type
**type**\: str
**pattern:** (([0\-9]\|[1\-9][0\-9]\|1[0\-9][0\-9]\|2[0\-4][0\-9]\|25[0\-5])\\.){3}([0\-9]\|[1\-9][0\-9]\|1[0\-9][0\-9]\|2[0\-4][0\-9]\|25[0\-5])(%[\\p{N}\\p{L}]+)?
**config**\: False
.. attribute:: ipv6
IPv6 address type
**type**\: str
**pattern:** ((\:\|[0\-9a\-fA\-F]{0,4})\:)([0\-9a\-fA\-F]{0,4}\:){0,5}((([0\-9a\-fA\-F]{0,4}\:)?(\:\|[0\-9a\-fA\-F]{0,4}))\|(((25[0\-5]\|2[0\-4][0\-9]\|[01]?[0\-9]?[0\-9])\\.){3}(25[0\-5]\|2[0\-4][0\-9]\|[01]?[0\-9]?[0\-9])))(%[\\p{N}\\p{L}]+)?
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc.Controller.PolicyRequests.PolicyRequest.SegmentList.Hops.LocalAddress, self).__init__()
self.yang_name = "local-address"
self.yang_parent_name = "hops"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('af_name', (YLeaf(YType.enumeration, 'af-name'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper', 'XtcAfId', '')])),
('ipv4', (YLeaf(YType.str, 'ipv4'), ['str'])),
('ipv6', (YLeaf(YType.str, 'ipv6'), ['str'])),
])
self.af_name = None
self.ipv4 = None
self.ipv6 = None
self._segment_path = lambda: "local-address"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc.Controller.PolicyRequests.PolicyRequest.SegmentList.Hops.LocalAddress, ['af_name', 'ipv4', 'ipv6'], name, value)
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc.Controller.PolicyRequests.PolicyRequest.SegmentList.Hops.LocalAddress']['meta_info']
class RemoteAddress(_Entity_):
"""
Remote address
.. attribute:: af_name
AFName
**type**\: :py:class:`XtcAfId <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.XtcAfId>`
**config**\: False
.. attribute:: ipv4
IPv4 address type
**type**\: str
**pattern:** (([0\-9]\|[1\-9][0\-9]\|1[0\-9][0\-9]\|2[0\-4][0\-9]\|25[0\-5])\\.){3}([0\-9]\|[1\-9][0\-9]\|1[0\-9][0\-9]\|2[0\-4][0\-9]\|25[0\-5])(%[\\p{N}\\p{L}]+)?
**config**\: False
.. attribute:: ipv6
IPv6 address type
**type**\: str
**pattern:** ((\:\|[0\-9a\-fA\-F]{0,4})\:)([0\-9a\-fA\-F]{0,4}\:){0,5}((([0\-9a\-fA\-F]{0,4}\:)?(\:\|[0\-9a\-fA\-F]{0,4}))\|(((25[0\-5]\|2[0\-4][0\-9]\|[01]?[0\-9]?[0\-9])\\.){3}(25[0\-5]\|2[0\-4][0\-9]\|[01]?[0\-9]?[0\-9])))(%[\\p{N}\\p{L}]+)?
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc.Controller.PolicyRequests.PolicyRequest.SegmentList.Hops.RemoteAddress, self).__init__()
self.yang_name = "remote-address"
self.yang_parent_name = "hops"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('af_name', (YLeaf(YType.enumeration, 'af-name'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper', 'XtcAfId', '')])),
('ipv4', (YLeaf(YType.str, 'ipv4'), ['str'])),
('ipv6', (YLeaf(YType.str, 'ipv6'), ['str'])),
])
self.af_name = None
self.ipv4 = None
self.ipv6 = None
self._segment_path = lambda: "remote-address"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc.Controller.PolicyRequests.PolicyRequest.SegmentList.Hops.RemoteAddress, ['af_name', 'ipv4', 'ipv6'], name, value)
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc.Controller.PolicyRequests.PolicyRequest.SegmentList.Hops.RemoteAddress']['meta_info']
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc.Controller.PolicyRequests.PolicyRequest.SegmentList.Hops']['meta_info']
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc.Controller.PolicyRequests.PolicyRequest.SegmentList']['meta_info']
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc.Controller.PolicyRequests.PolicyRequest']['meta_info']
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc.Controller.PolicyRequests']['meta_info']
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc.Controller']['meta_info']
class TopologyNodes(_Entity_):
"""
Node database in XTC Agent
.. attribute:: topology_node
Node information
**type**\: list of :py:class:`TopologyNode <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Xtc.TopologyNodes.TopologyNode>`
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc.TopologyNodes, self).__init__()
self.yang_name = "topology-nodes"
self.yang_parent_name = "xtc"
self.is_top_level_class = False
self.has_list_ancestor = False
self.ylist_key_names = []
self._child_classes = OrderedDict([("topology-node", ("topology_node", Xtc.TopologyNodes.TopologyNode))])
self._leafs = OrderedDict()
self.topology_node = YList(self)
self._segment_path = lambda: "topology-nodes"
self._absolute_path = lambda: "Cisco-IOS-XR-infra-xtc-agent-oper:xtc/%s" % self._segment_path()
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc.TopologyNodes, [], name, value)
class TopologyNode(_Entity_):
"""
Node information
.. attribute:: node_identifier (key)
Node Identifier
**type**\: int
**range:** 0..4294967295
**config**\: False
.. attribute:: node_protocol_identifier
Node protocol identifier
**type**\: :py:class:`NodeProtocolIdentifier <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Xtc.TopologyNodes.TopologyNode.NodeProtocolIdentifier>`
**config**\: False
.. attribute:: node_identifier_xr
Node identifier
**type**\: int
**range:** 0..4294967295
**config**\: False
.. attribute:: overload
Node Overload Bit
**type**\: bool
**config**\: False
.. attribute:: prefix_sid
Prefix SIDs
**type**\: list of :py:class:`PrefixSid <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Xtc.TopologyNodes.TopologyNode.PrefixSid>`
**config**\: False
.. attribute:: ipv4_link
IPv4 Link information
**type**\: list of :py:class:`Ipv4Link <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Xtc.TopologyNodes.TopologyNode.Ipv4Link>`
**config**\: False
.. attribute:: ipv6_link
IPv6 Link information
**type**\: list of :py:class:`Ipv6Link <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Xtc.TopologyNodes.TopologyNode.Ipv6Link>`
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc.TopologyNodes.TopologyNode, self).__init__()
self.yang_name = "topology-node"
self.yang_parent_name = "topology-nodes"
self.is_top_level_class = False
self.has_list_ancestor = False
self.ylist_key_names = ['node_identifier']
self._child_classes = OrderedDict([("node-protocol-identifier", ("node_protocol_identifier", Xtc.TopologyNodes.TopologyNode.NodeProtocolIdentifier)), ("prefix-sid", ("prefix_sid", Xtc.TopologyNodes.TopologyNode.PrefixSid)), ("ipv4-link", ("ipv4_link", Xtc.TopologyNodes.TopologyNode.Ipv4Link)), ("ipv6-link", ("ipv6_link", Xtc.TopologyNodes.TopologyNode.Ipv6Link))])
self._leafs = OrderedDict([
('node_identifier', (YLeaf(YType.uint32, 'node-identifier'), ['int'])),
('node_identifier_xr', (YLeaf(YType.uint32, 'node-identifier-xr'), ['int'])),
('overload', (YLeaf(YType.boolean, 'overload'), ['bool'])),
])
self.node_identifier = None
self.node_identifier_xr = None
self.overload = None
self.node_protocol_identifier = Xtc.TopologyNodes.TopologyNode.NodeProtocolIdentifier()
self.node_protocol_identifier.parent = self
self._children_name_map["node_protocol_identifier"] = "node-protocol-identifier"
self.prefix_sid = YList(self)
self.ipv4_link = YList(self)
self.ipv6_link = YList(self)
self._segment_path = lambda: "topology-node" + "[node-identifier='" + str(self.node_identifier) + "']"
self._absolute_path = lambda: "Cisco-IOS-XR-infra-xtc-agent-oper:xtc/topology-nodes/%s" % self._segment_path()
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc.TopologyNodes.TopologyNode, ['node_identifier', 'node_identifier_xr', 'overload'], name, value)
class NodeProtocolIdentifier(_Entity_):
"""
Node protocol identifier
.. attribute:: node_name
Node Name
**type**\: str
**config**\: False
.. attribute:: ipv4_bgp_router_id_set
True if IPv4 BGP router ID is set
**type**\: bool
**config**\: False
.. attribute:: ipv4_bgp_router_id
IPv4 TE router ID
**type**\: str
**pattern:** (([0\-9]\|[1\-9][0\-9]\|1[0\-9][0\-9]\|2[0\-4][0\-9]\|25[0\-5])\\.){3}([0\-9]\|[1\-9][0\-9]\|1[0\-9][0\-9]\|2[0\-4][0\-9]\|25[0\-5])(%[\\p{N}\\p{L}]+)?
**config**\: False
.. attribute:: ipv4te_router_id_set
True if IPv4 TE router ID is set
**type**\: bool
**config**\: False
.. attribute:: ipv4te_router_id
IPv4 BGP router ID
**type**\: str
**pattern:** (([0\-9]\|[1\-9][0\-9]\|1[0\-9][0\-9]\|2[0\-4][0\-9]\|25[0\-5])\\.){3}([0\-9]\|[1\-9][0\-9]\|1[0\-9][0\-9]\|2[0\-4][0\-9]\|25[0\-5])(%[\\p{N}\\p{L}]+)?
**config**\: False
.. attribute:: igp_information
IGP information
**type**\: list of :py:class:`IgpInformation <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Xtc.TopologyNodes.TopologyNode.NodeProtocolIdentifier.IgpInformation>`
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc.TopologyNodes.TopologyNode.NodeProtocolIdentifier, self).__init__()
self.yang_name = "node-protocol-identifier"
self.yang_parent_name = "topology-node"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([("igp-information", ("igp_information", Xtc.TopologyNodes.TopologyNode.NodeProtocolIdentifier.IgpInformation))])
self._leafs = OrderedDict([
('node_name', (YLeaf(YType.str, 'node-name'), ['str'])),
('ipv4_bgp_router_id_set', (YLeaf(YType.boolean, 'ipv4-bgp-router-id-set'), ['bool'])),
('ipv4_bgp_router_id', (YLeaf(YType.str, 'ipv4-bgp-router-id'), ['str'])),
('ipv4te_router_id_set', (YLeaf(YType.boolean, 'ipv4te-router-id-set'), ['bool'])),
('ipv4te_router_id', (YLeaf(YType.str, 'ipv4te-router-id'), ['str'])),
])
self.node_name = None
self.ipv4_bgp_router_id_set = None
self.ipv4_bgp_router_id = None
self.ipv4te_router_id_set = None
self.ipv4te_router_id = None
self.igp_information = YList(self)
self._segment_path = lambda: "node-protocol-identifier"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc.TopologyNodes.TopologyNode.NodeProtocolIdentifier, ['node_name', 'ipv4_bgp_router_id_set', 'ipv4_bgp_router_id', 'ipv4te_router_id_set', 'ipv4te_router_id'], name, value)
class IgpInformation(_Entity_):
"""
IGP information
.. attribute:: igp
IGP\-specific information
**type**\: :py:class:`Igp <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Xtc.TopologyNodes.TopologyNode.NodeProtocolIdentifier.IgpInformation.Igp>`
**config**\: False
.. attribute:: domain_identifier
Domain identifier
**type**\: int
**range:** 0..18446744073709551615
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc.TopologyNodes.TopologyNode.NodeProtocolIdentifier.IgpInformation, self).__init__()
self.yang_name = "igp-information"
self.yang_parent_name = "node-protocol-identifier"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([("igp", ("igp", Xtc.TopologyNodes.TopologyNode.NodeProtocolIdentifier.IgpInformation.Igp))])
self._leafs = OrderedDict([
('domain_identifier', (YLeaf(YType.uint64, 'domain-identifier'), ['int'])),
])
self.domain_identifier = None
self.igp = Xtc.TopologyNodes.TopologyNode.NodeProtocolIdentifier.IgpInformation.Igp()
self.igp.parent = self
self._children_name_map["igp"] = "igp"
self._segment_path = lambda: "igp-information"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc.TopologyNodes.TopologyNode.NodeProtocolIdentifier.IgpInformation, ['domain_identifier'], name, value)
class Igp(_Entity_):
"""
IGP\-specific information
.. attribute:: isis
ISIS information
**type**\: :py:class:`Isis <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Xtc.TopologyNodes.TopologyNode.NodeProtocolIdentifier.IgpInformation.Igp.Isis>`
**config**\: False
.. attribute:: ospf
OSPF information
**type**\: :py:class:`Ospf <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Xtc.TopologyNodes.TopologyNode.NodeProtocolIdentifier.IgpInformation.Igp.Ospf>`
**config**\: False
.. attribute:: bgp
BGP information
**type**\: :py:class:`Bgp <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Xtc.TopologyNodes.TopologyNode.NodeProtocolIdentifier.IgpInformation.Igp.Bgp>`
**config**\: False
.. attribute:: igp_id
IGP ID
**type**\: :py:class:`XtcIgpInfoId <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.XtcIgpInfoId>`
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc.TopologyNodes.TopologyNode.NodeProtocolIdentifier.IgpInformation.Igp, self).__init__()
self.yang_name = "igp"
self.yang_parent_name = "igp-information"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([("isis", ("isis", Xtc.TopologyNodes.TopologyNode.NodeProtocolIdentifier.IgpInformation.Igp.Isis)), ("ospf", ("ospf", Xtc.TopologyNodes.TopologyNode.NodeProtocolIdentifier.IgpInformation.Igp.Ospf)), ("bgp", ("bgp", Xtc.TopologyNodes.TopologyNode.NodeProtocolIdentifier.IgpInformation.Igp.Bgp))])
self._leafs = OrderedDict([
('igp_id', (YLeaf(YType.enumeration, 'igp-id'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper', 'XtcIgpInfoId', '')])),
])
self.igp_id = None
self.isis = Xtc.TopologyNodes.TopologyNode.NodeProtocolIdentifier.IgpInformation.Igp.Isis()
self.isis.parent = self
self._children_name_map["isis"] = "isis"
self.ospf = Xtc.TopologyNodes.TopologyNode.NodeProtocolIdentifier.IgpInformation.Igp.Ospf()
self.ospf.parent = self
self._children_name_map["ospf"] = "ospf"
self.bgp = Xtc.TopologyNodes.TopologyNode.NodeProtocolIdentifier.IgpInformation.Igp.Bgp()
self.bgp.parent = self
self._children_name_map["bgp"] = "bgp"
self._segment_path = lambda: "igp"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc.TopologyNodes.TopologyNode.NodeProtocolIdentifier.IgpInformation.Igp, ['igp_id'], name, value)
class Isis(_Entity_):
"""
ISIS information
.. attribute:: system_id
ISIS system ID
**type**\: str
**config**\: False
.. attribute:: level
ISIS level
**type**\: int
**range:** 0..4294967295
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc.TopologyNodes.TopologyNode.NodeProtocolIdentifier.IgpInformation.Igp.Isis, self).__init__()
self.yang_name = "isis"
self.yang_parent_name = "igp"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('system_id', (YLeaf(YType.str, 'system-id'), ['str'])),
('level', (YLeaf(YType.uint32, 'level'), ['int'])),
])
self.system_id = None
self.level = None
self._segment_path = lambda: "isis"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc.TopologyNodes.TopologyNode.NodeProtocolIdentifier.IgpInformation.Igp.Isis, ['system_id', 'level'], name, value)
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc.TopologyNodes.TopologyNode.NodeProtocolIdentifier.IgpInformation.Igp.Isis']['meta_info']
class Ospf(_Entity_):
"""
OSPF information
.. attribute:: router_id
OSPF router ID
**type**\: str
**pattern:** (([0\-9]\|[1\-9][0\-9]\|1[0\-9][0\-9]\|2[0\-4][0\-9]\|25[0\-5])\\.){3}([0\-9]\|[1\-9][0\-9]\|1[0\-9][0\-9]\|2[0\-4][0\-9]\|25[0\-5])(%[\\p{N}\\p{L}]+)?
**config**\: False
.. attribute:: area
OSPF area
**type**\: int
**range:** 0..4294967295
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc.TopologyNodes.TopologyNode.NodeProtocolIdentifier.IgpInformation.Igp.Ospf, self).__init__()
self.yang_name = "ospf"
self.yang_parent_name = "igp"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('router_id', (YLeaf(YType.str, 'router-id'), ['str'])),
('area', (YLeaf(YType.uint32, 'area'), ['int'])),
])
self.router_id = None
self.area = None
self._segment_path = lambda: "ospf"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc.TopologyNodes.TopologyNode.NodeProtocolIdentifier.IgpInformation.Igp.Ospf, ['router_id', 'area'], name, value)
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc.TopologyNodes.TopologyNode.NodeProtocolIdentifier.IgpInformation.Igp.Ospf']['meta_info']
class Bgp(_Entity_):
"""
BGP information
.. attribute:: router_id
BGP router ID
**type**\: str
**pattern:** (([0\-9]\|[1\-9][0\-9]\|1[0\-9][0\-9]\|2[0\-4][0\-9]\|25[0\-5])\\.){3}([0\-9]\|[1\-9][0\-9]\|1[0\-9][0\-9]\|2[0\-4][0\-9]\|25[0\-5])(%[\\p{N}\\p{L}]+)?
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc.TopologyNodes.TopologyNode.NodeProtocolIdentifier.IgpInformation.Igp.Bgp, self).__init__()
self.yang_name = "bgp"
self.yang_parent_name = "igp"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('router_id', (YLeaf(YType.str, 'router-id'), ['str'])),
])
self.router_id = None
self._segment_path = lambda: "bgp"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc.TopologyNodes.TopologyNode.NodeProtocolIdentifier.IgpInformation.Igp.Bgp, ['router_id'], name, value)
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc.TopologyNodes.TopologyNode.NodeProtocolIdentifier.IgpInformation.Igp.Bgp']['meta_info']
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc.TopologyNodes.TopologyNode.NodeProtocolIdentifier.IgpInformation.Igp']['meta_info']
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc.TopologyNodes.TopologyNode.NodeProtocolIdentifier.IgpInformation']['meta_info']
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc.TopologyNodes.TopologyNode.NodeProtocolIdentifier']['meta_info']
class PrefixSid(_Entity_):
"""
Prefix SIDs
.. attribute:: sid_prefix
Prefix
**type**\: :py:class:`SidPrefix <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Xtc.TopologyNodes.TopologyNode.PrefixSid.SidPrefix>`
**config**\: False
.. attribute:: sid_type
SID Type
**type**\: :py:class:`XtcSid1 <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.XtcSid1>`
**config**\: False
.. attribute:: algorithm
Prefix\-SID algorithm number
**type**\: int
**range:** 0..4294967295
**config**\: False
.. attribute:: mpls_label
MPLS Label
**type**\: int
**range:** 0..4294967295
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc.TopologyNodes.TopologyNode.PrefixSid, self).__init__()
self.yang_name = "prefix-sid"
self.yang_parent_name = "topology-node"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([("sid-prefix", ("sid_prefix", Xtc.TopologyNodes.TopologyNode.PrefixSid.SidPrefix))])
self._leafs = OrderedDict([
('sid_type', (YLeaf(YType.enumeration, 'sid-type'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper', 'XtcSid1', '')])),
('algorithm', (YLeaf(YType.uint32, 'algorithm'), ['int'])),
('mpls_label', (YLeaf(YType.uint32, 'mpls-label'), ['int'])),
])
self.sid_type = None
self.algorithm = None
self.mpls_label = None
self.sid_prefix = Xtc.TopologyNodes.TopologyNode.PrefixSid.SidPrefix()
self.sid_prefix.parent = self
self._children_name_map["sid_prefix"] = "sid-prefix"
self._segment_path = lambda: "prefix-sid"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc.TopologyNodes.TopologyNode.PrefixSid, ['sid_type', 'algorithm', 'mpls_label'], name, value)
class SidPrefix(_Entity_):
"""
Prefix
.. attribute:: af_name
AFName
**type**\: :py:class:`XtcAfId <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.XtcAfId>`
**config**\: False
.. attribute:: ipv4
IPv4 address type
**type**\: str
**pattern:** (([0\-9]\|[1\-9][0\-9]\|1[0\-9][0\-9]\|2[0\-4][0\-9]\|25[0\-5])\\.){3}([0\-9]\|[1\-9][0\-9]\|1[0\-9][0\-9]\|2[0\-4][0\-9]\|25[0\-5])(%[\\p{N}\\p{L}]+)?
**config**\: False
.. attribute:: ipv6
IPv6 address type
**type**\: str
**pattern:** ((\:\|[0\-9a\-fA\-F]{0,4})\:)([0\-9a\-fA\-F]{0,4}\:){0,5}((([0\-9a\-fA\-F]{0,4}\:)?(\:\|[0\-9a\-fA\-F]{0,4}))\|(((25[0\-5]\|2[0\-4][0\-9]\|[01]?[0\-9]?[0\-9])\\.){3}(25[0\-5]\|2[0\-4][0\-9]\|[01]?[0\-9]?[0\-9])))(%[\\p{N}\\p{L}]+)?
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc.TopologyNodes.TopologyNode.PrefixSid.SidPrefix, self).__init__()
self.yang_name = "sid-prefix"
self.yang_parent_name = "prefix-sid"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('af_name', (YLeaf(YType.enumeration, 'af-name'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper', 'XtcAfId', '')])),
('ipv4', (YLeaf(YType.str, 'ipv4'), ['str'])),
('ipv6', (YLeaf(YType.str, 'ipv6'), ['str'])),
])
self.af_name = None
self.ipv4 = None
self.ipv6 = None
self._segment_path = lambda: "sid-prefix"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc.TopologyNodes.TopologyNode.PrefixSid.SidPrefix, ['af_name', 'ipv4', 'ipv6'], name, value)
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc.TopologyNodes.TopologyNode.PrefixSid.SidPrefix']['meta_info']
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc.TopologyNodes.TopologyNode.PrefixSid']['meta_info']
class Ipv4Link(_Entity_):
"""
IPv4 Link information
.. attribute:: local_igp_information
Local node IGP information
**type**\: :py:class:`LocalIgpInformation <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Xtc.TopologyNodes.TopologyNode.Ipv4Link.LocalIgpInformation>`
**config**\: False
.. attribute:: remote_node_protocol_identifier
Remote node protocol identifier
**type**\: :py:class:`RemoteNodeProtocolIdentifier <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Xtc.TopologyNodes.TopologyNode.Ipv4Link.RemoteNodeProtocolIdentifier>`
**config**\: False
.. attribute:: performance_metrics
Performance metrics
**type**\: :py:class:`PerformanceMetrics <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Xtc.TopologyNodes.TopologyNode.Ipv4Link.PerformanceMetrics>`
**config**\: False
.. attribute:: local_ipv4_address
Local IPv4 address
**type**\: str
**pattern:** (([0\-9]\|[1\-9][0\-9]\|1[0\-9][0\-9]\|2[0\-4][0\-9]\|25[0\-5])\\.){3}([0\-9]\|[1\-9][0\-9]\|1[0\-9][0\-9]\|2[0\-4][0\-9]\|25[0\-5])(%[\\p{N}\\p{L}]+)?
**config**\: False
.. attribute:: remote_ipv4_address
Remote IPv4 address
**type**\: str
**pattern:** (([0\-9]\|[1\-9][0\-9]\|1[0\-9][0\-9]\|2[0\-4][0\-9]\|25[0\-5])\\.){3}([0\-9]\|[1\-9][0\-9]\|1[0\-9][0\-9]\|2[0\-4][0\-9]\|25[0\-5])(%[\\p{N}\\p{L}]+)?
**config**\: False
.. attribute:: igp_metric
IGP Metric
**type**\: int
**range:** 0..4294967295
**config**\: False
.. attribute:: te_metric
TE Metric
**type**\: int
**range:** 0..4294967295
**config**\: False
.. attribute:: maximum_link_bandwidth
Max link bandwidth
**type**\: int
**range:** 0..18446744073709551615
**config**\: False
.. attribute:: max_reservable_bandwidth
Max Reservable bandwidth
**type**\: int
**range:** 0..18446744073709551615
**config**\: False
.. attribute:: administrative_groups
Link admin\-groups
**type**\: int
**range:** 0..4294967295
**config**\: False
.. attribute:: extended_administrative_group
Link Extended admin\-groups
**type**\: list of int
**range:** 0..4294967295
**config**\: False
.. attribute:: srlgs
SRLG Values
**type**\: list of int
**range:** 0..4294967295
**config**\: False
.. attribute:: adjacency_sid
Adjacency SIDs
**type**\: list of :py:class:`AdjacencySid <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Xtc.TopologyNodes.TopologyNode.Ipv4Link.AdjacencySid>`
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc.TopologyNodes.TopologyNode.Ipv4Link, self).__init__()
self.yang_name = "ipv4-link"
self.yang_parent_name = "topology-node"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([("local-igp-information", ("local_igp_information", Xtc.TopologyNodes.TopologyNode.Ipv4Link.LocalIgpInformation)), ("remote-node-protocol-identifier", ("remote_node_protocol_identifier", Xtc.TopologyNodes.TopologyNode.Ipv4Link.RemoteNodeProtocolIdentifier)), ("performance-metrics", ("performance_metrics", Xtc.TopologyNodes.TopologyNode.Ipv4Link.PerformanceMetrics)), ("adjacency-sid", ("adjacency_sid", Xtc.TopologyNodes.TopologyNode.Ipv4Link.AdjacencySid))])
self._leafs = OrderedDict([
('local_ipv4_address', (YLeaf(YType.str, 'local-ipv4-address'), ['str'])),
('remote_ipv4_address', (YLeaf(YType.str, 'remote-ipv4-address'), ['str'])),
('igp_metric', (YLeaf(YType.uint32, 'igp-metric'), ['int'])),
('te_metric', (YLeaf(YType.uint32, 'te-metric'), ['int'])),
('maximum_link_bandwidth', (YLeaf(YType.uint64, 'maximum-link-bandwidth'), ['int'])),
('max_reservable_bandwidth', (YLeaf(YType.uint64, 'max-reservable-bandwidth'), ['int'])),
('administrative_groups', (YLeaf(YType.uint32, 'administrative-groups'), ['int'])),
('extended_administrative_group', (YLeafList(YType.uint32, 'extended-administrative-group'), ['int'])),
('srlgs', (YLeafList(YType.uint32, 'srlgs'), ['int'])),
])
self.local_ipv4_address = None
self.remote_ipv4_address = None
self.igp_metric = None
self.te_metric = None
self.maximum_link_bandwidth = None
self.max_reservable_bandwidth = None
self.administrative_groups = None
self.extended_administrative_group = []
self.srlgs = []
self.local_igp_information = Xtc.TopologyNodes.TopologyNode.Ipv4Link.LocalIgpInformation()
self.local_igp_information.parent = self
self._children_name_map["local_igp_information"] = "local-igp-information"
self.remote_node_protocol_identifier = Xtc.TopologyNodes.TopologyNode.Ipv4Link.RemoteNodeProtocolIdentifier()
self.remote_node_protocol_identifier.parent = self
self._children_name_map["remote_node_protocol_identifier"] = "remote-node-protocol-identifier"
self.performance_metrics = Xtc.TopologyNodes.TopologyNode.Ipv4Link.PerformanceMetrics()
self.performance_metrics.parent = self
self._children_name_map["performance_metrics"] = "performance-metrics"
self.adjacency_sid = YList(self)
self._segment_path = lambda: "ipv4-link"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc.TopologyNodes.TopologyNode.Ipv4Link, ['local_ipv4_address', 'remote_ipv4_address', 'igp_metric', 'te_metric', 'maximum_link_bandwidth', 'max_reservable_bandwidth', 'administrative_groups', 'extended_administrative_group', 'srlgs'], name, value)
class LocalIgpInformation(_Entity_):
"""
Local node IGP information
.. attribute:: igp
IGP\-specific information
**type**\: :py:class:`Igp <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Xtc.TopologyNodes.TopologyNode.Ipv4Link.LocalIgpInformation.Igp>`
**config**\: False
.. attribute:: domain_identifier
Domain identifier
**type**\: int
**range:** 0..18446744073709551615
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc.TopologyNodes.TopologyNode.Ipv4Link.LocalIgpInformation, self).__init__()
self.yang_name = "local-igp-information"
self.yang_parent_name = "ipv4-link"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([("igp", ("igp", Xtc.TopologyNodes.TopologyNode.Ipv4Link.LocalIgpInformation.Igp))])
self._leafs = OrderedDict([
('domain_identifier', (YLeaf(YType.uint64, 'domain-identifier'), ['int'])),
])
self.domain_identifier = None
self.igp = Xtc.TopologyNodes.TopologyNode.Ipv4Link.LocalIgpInformation.Igp()
self.igp.parent = self
self._children_name_map["igp"] = "igp"
self._segment_path = lambda: "local-igp-information"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc.TopologyNodes.TopologyNode.Ipv4Link.LocalIgpInformation, ['domain_identifier'], name, value)
class Igp(_Entity_):
"""
IGP\-specific information
.. attribute:: isis
ISIS information
**type**\: :py:class:`Isis <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Xtc.TopologyNodes.TopologyNode.Ipv4Link.LocalIgpInformation.Igp.Isis>`
**config**\: False
.. attribute:: ospf
OSPF information
**type**\: :py:class:`Ospf <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Xtc.TopologyNodes.TopologyNode.Ipv4Link.LocalIgpInformation.Igp.Ospf>`
**config**\: False
.. attribute:: bgp
BGP information
**type**\: :py:class:`Bgp <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Xtc.TopologyNodes.TopologyNode.Ipv4Link.LocalIgpInformation.Igp.Bgp>`
**config**\: False
.. attribute:: igp_id
IGP ID
**type**\: :py:class:`XtcIgpInfoId <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.XtcIgpInfoId>`
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc.TopologyNodes.TopologyNode.Ipv4Link.LocalIgpInformation.Igp, self).__init__()
self.yang_name = "igp"
self.yang_parent_name = "local-igp-information"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([("isis", ("isis", Xtc.TopologyNodes.TopologyNode.Ipv4Link.LocalIgpInformation.Igp.Isis)), ("ospf", ("ospf", Xtc.TopologyNodes.TopologyNode.Ipv4Link.LocalIgpInformation.Igp.Ospf)), ("bgp", ("bgp", Xtc.TopologyNodes.TopologyNode.Ipv4Link.LocalIgpInformation.Igp.Bgp))])
self._leafs = OrderedDict([
('igp_id', (YLeaf(YType.enumeration, 'igp-id'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper', 'XtcIgpInfoId', '')])),
])
self.igp_id = None
self.isis = Xtc.TopologyNodes.TopologyNode.Ipv4Link.LocalIgpInformation.Igp.Isis()
self.isis.parent = self
self._children_name_map["isis"] = "isis"
self.ospf = Xtc.TopologyNodes.TopologyNode.Ipv4Link.LocalIgpInformation.Igp.Ospf()
self.ospf.parent = self
self._children_name_map["ospf"] = "ospf"
self.bgp = Xtc.TopologyNodes.TopologyNode.Ipv4Link.LocalIgpInformation.Igp.Bgp()
self.bgp.parent = self
self._children_name_map["bgp"] = "bgp"
self._segment_path = lambda: "igp"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc.TopologyNodes.TopologyNode.Ipv4Link.LocalIgpInformation.Igp, ['igp_id'], name, value)
class Isis(_Entity_):
"""
ISIS information
.. attribute:: system_id
ISIS system ID
**type**\: str
**config**\: False
.. attribute:: level
ISIS level
**type**\: int
**range:** 0..4294967295
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc.TopologyNodes.TopologyNode.Ipv4Link.LocalIgpInformation.Igp.Isis, self).__init__()
self.yang_name = "isis"
self.yang_parent_name = "igp"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('system_id', (YLeaf(YType.str, 'system-id'), ['str'])),
('level', (YLeaf(YType.uint32, 'level'), ['int'])),
])
self.system_id = None
self.level = None
self._segment_path = lambda: "isis"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc.TopologyNodes.TopologyNode.Ipv4Link.LocalIgpInformation.Igp.Isis, ['system_id', 'level'], name, value)
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc.TopologyNodes.TopologyNode.Ipv4Link.LocalIgpInformation.Igp.Isis']['meta_info']
class Ospf(_Entity_):
"""
OSPF information
.. attribute:: router_id
OSPF router ID
**type**\: str
**pattern:** (([0\-9]\|[1\-9][0\-9]\|1[0\-9][0\-9]\|2[0\-4][0\-9]\|25[0\-5])\\.){3}([0\-9]\|[1\-9][0\-9]\|1[0\-9][0\-9]\|2[0\-4][0\-9]\|25[0\-5])(%[\\p{N}\\p{L}]+)?
**config**\: False
.. attribute:: area
OSPF area
**type**\: int
**range:** 0..4294967295
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc.TopologyNodes.TopologyNode.Ipv4Link.LocalIgpInformation.Igp.Ospf, self).__init__()
self.yang_name = "ospf"
self.yang_parent_name = "igp"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('router_id', (YLeaf(YType.str, 'router-id'), ['str'])),
('area', (YLeaf(YType.uint32, 'area'), ['int'])),
])
self.router_id = None
self.area = None
self._segment_path = lambda: "ospf"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc.TopologyNodes.TopologyNode.Ipv4Link.LocalIgpInformation.Igp.Ospf, ['router_id', 'area'], name, value)
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc.TopologyNodes.TopologyNode.Ipv4Link.LocalIgpInformation.Igp.Ospf']['meta_info']
class Bgp(_Entity_):
"""
BGP information
.. attribute:: router_id
BGP router ID
**type**\: str
**pattern:** (([0\-9]\|[1\-9][0\-9]\|1[0\-9][0\-9]\|2[0\-4][0\-9]\|25[0\-5])\\.){3}([0\-9]\|[1\-9][0\-9]\|1[0\-9][0\-9]\|2[0\-4][0\-9]\|25[0\-5])(%[\\p{N}\\p{L}]+)?
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc.TopologyNodes.TopologyNode.Ipv4Link.LocalIgpInformation.Igp.Bgp, self).__init__()
self.yang_name = "bgp"
self.yang_parent_name = "igp"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('router_id', (YLeaf(YType.str, 'router-id'), ['str'])),
])
self.router_id = None
self._segment_path = lambda: "bgp"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc.TopologyNodes.TopologyNode.Ipv4Link.LocalIgpInformation.Igp.Bgp, ['router_id'], name, value)
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc.TopologyNodes.TopologyNode.Ipv4Link.LocalIgpInformation.Igp.Bgp']['meta_info']
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc.TopologyNodes.TopologyNode.Ipv4Link.LocalIgpInformation.Igp']['meta_info']
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc.TopologyNodes.TopologyNode.Ipv4Link.LocalIgpInformation']['meta_info']
class RemoteNodeProtocolIdentifier(_Entity_):
"""
Remote node protocol identifier
.. attribute:: node_name
Node Name
**type**\: str
**config**\: False
.. attribute:: ipv4_bgp_router_id_set
True if IPv4 BGP router ID is set
**type**\: bool
**config**\: False
.. attribute:: ipv4_bgp_router_id
IPv4 TE router ID
**type**\: str
**pattern:** (([0\-9]\|[1\-9][0\-9]\|1[0\-9][0\-9]\|2[0\-4][0\-9]\|25[0\-5])\\.){3}([0\-9]\|[1\-9][0\-9]\|1[0\-9][0\-9]\|2[0\-4][0\-9]\|25[0\-5])(%[\\p{N}\\p{L}]+)?
**config**\: False
.. attribute:: ipv4te_router_id_set
True if IPv4 TE router ID is set
**type**\: bool
**config**\: False
.. attribute:: ipv4te_router_id
IPv4 BGP router ID
**type**\: str
**pattern:** (([0\-9]\|[1\-9][0\-9]\|1[0\-9][0\-9]\|2[0\-4][0\-9]\|25[0\-5])\\.){3}([0\-9]\|[1\-9][0\-9]\|1[0\-9][0\-9]\|2[0\-4][0\-9]\|25[0\-5])(%[\\p{N}\\p{L}]+)?
**config**\: False
.. attribute:: igp_information
IGP information
**type**\: list of :py:class:`IgpInformation <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Xtc.TopologyNodes.TopologyNode.Ipv4Link.RemoteNodeProtocolIdentifier.IgpInformation>`
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc.TopologyNodes.TopologyNode.Ipv4Link.RemoteNodeProtocolIdentifier, self).__init__()
self.yang_name = "remote-node-protocol-identifier"
self.yang_parent_name = "ipv4-link"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([("igp-information", ("igp_information", Xtc.TopologyNodes.TopologyNode.Ipv4Link.RemoteNodeProtocolIdentifier.IgpInformation))])
self._leafs = OrderedDict([
('node_name', (YLeaf(YType.str, 'node-name'), ['str'])),
('ipv4_bgp_router_id_set', (YLeaf(YType.boolean, 'ipv4-bgp-router-id-set'), ['bool'])),
('ipv4_bgp_router_id', (YLeaf(YType.str, 'ipv4-bgp-router-id'), ['str'])),
('ipv4te_router_id_set', (YLeaf(YType.boolean, 'ipv4te-router-id-set'), ['bool'])),
('ipv4te_router_id', (YLeaf(YType.str, 'ipv4te-router-id'), ['str'])),
])
self.node_name = None
self.ipv4_bgp_router_id_set = None
self.ipv4_bgp_router_id = None
self.ipv4te_router_id_set = None
self.ipv4te_router_id = None
self.igp_information = YList(self)
self._segment_path = lambda: "remote-node-protocol-identifier"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc.TopologyNodes.TopologyNode.Ipv4Link.RemoteNodeProtocolIdentifier, ['node_name', 'ipv4_bgp_router_id_set', 'ipv4_bgp_router_id', 'ipv4te_router_id_set', 'ipv4te_router_id'], name, value)
class IgpInformation(_Entity_):
"""
IGP information
.. attribute:: igp
IGP\-specific information
**type**\: :py:class:`Igp <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Xtc.TopologyNodes.TopologyNode.Ipv4Link.RemoteNodeProtocolIdentifier.IgpInformation.Igp>`
**config**\: False
.. attribute:: domain_identifier
Domain identifier
**type**\: int
**range:** 0..18446744073709551615
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc.TopologyNodes.TopologyNode.Ipv4Link.RemoteNodeProtocolIdentifier.IgpInformation, self).__init__()
self.yang_name = "igp-information"
self.yang_parent_name = "remote-node-protocol-identifier"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([("igp", ("igp", Xtc.TopologyNodes.TopologyNode.Ipv4Link.RemoteNodeProtocolIdentifier.IgpInformation.Igp))])
self._leafs = OrderedDict([
('domain_identifier', (YLeaf(YType.uint64, 'domain-identifier'), ['int'])),
])
self.domain_identifier = None
self.igp = Xtc.TopologyNodes.TopologyNode.Ipv4Link.RemoteNodeProtocolIdentifier.IgpInformation.Igp()
self.igp.parent = self
self._children_name_map["igp"] = "igp"
self._segment_path = lambda: "igp-information"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc.TopologyNodes.TopologyNode.Ipv4Link.RemoteNodeProtocolIdentifier.IgpInformation, ['domain_identifier'], name, value)
class Igp(_Entity_):
"""
IGP\-specific information
.. attribute:: isis
ISIS information
**type**\: :py:class:`Isis <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Xtc.TopologyNodes.TopologyNode.Ipv4Link.RemoteNodeProtocolIdentifier.IgpInformation.Igp.Isis>`
**config**\: False
.. attribute:: ospf
OSPF information
**type**\: :py:class:`Ospf <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Xtc.TopologyNodes.TopologyNode.Ipv4Link.RemoteNodeProtocolIdentifier.IgpInformation.Igp.Ospf>`
**config**\: False
.. attribute:: bgp
BGP information
**type**\: :py:class:`Bgp <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Xtc.TopologyNodes.TopologyNode.Ipv4Link.RemoteNodeProtocolIdentifier.IgpInformation.Igp.Bgp>`
**config**\: False
.. attribute:: igp_id
IGP ID
**type**\: :py:class:`XtcIgpInfoId <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.XtcIgpInfoId>`
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc.TopologyNodes.TopologyNode.Ipv4Link.RemoteNodeProtocolIdentifier.IgpInformation.Igp, self).__init__()
self.yang_name = "igp"
self.yang_parent_name = "igp-information"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([("isis", ("isis", Xtc.TopologyNodes.TopologyNode.Ipv4Link.RemoteNodeProtocolIdentifier.IgpInformation.Igp.Isis)), ("ospf", ("ospf", Xtc.TopologyNodes.TopologyNode.Ipv4Link.RemoteNodeProtocolIdentifier.IgpInformation.Igp.Ospf)), ("bgp", ("bgp", Xtc.TopologyNodes.TopologyNode.Ipv4Link.RemoteNodeProtocolIdentifier.IgpInformation.Igp.Bgp))])
self._leafs = OrderedDict([
('igp_id', (YLeaf(YType.enumeration, 'igp-id'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper', 'XtcIgpInfoId', '')])),
])
self.igp_id = None
self.isis = Xtc.TopologyNodes.TopologyNode.Ipv4Link.RemoteNodeProtocolIdentifier.IgpInformation.Igp.Isis()
self.isis.parent = self
self._children_name_map["isis"] = "isis"
self.ospf = Xtc.TopologyNodes.TopologyNode.Ipv4Link.RemoteNodeProtocolIdentifier.IgpInformation.Igp.Ospf()
self.ospf.parent = self
self._children_name_map["ospf"] = "ospf"
self.bgp = Xtc.TopologyNodes.TopologyNode.Ipv4Link.RemoteNodeProtocolIdentifier.IgpInformation.Igp.Bgp()
self.bgp.parent = self
self._children_name_map["bgp"] = "bgp"
self._segment_path = lambda: "igp"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc.TopologyNodes.TopologyNode.Ipv4Link.RemoteNodeProtocolIdentifier.IgpInformation.Igp, ['igp_id'], name, value)
class Isis(_Entity_):
"""
ISIS information
.. attribute:: system_id
ISIS system ID
**type**\: str
**config**\: False
.. attribute:: level
ISIS level
**type**\: int
**range:** 0..4294967295
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc.TopologyNodes.TopologyNode.Ipv4Link.RemoteNodeProtocolIdentifier.IgpInformation.Igp.Isis, self).__init__()
self.yang_name = "isis"
self.yang_parent_name = "igp"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('system_id', (YLeaf(YType.str, 'system-id'), ['str'])),
('level', (YLeaf(YType.uint32, 'level'), ['int'])),
])
self.system_id = None
self.level = None
self._segment_path = lambda: "isis"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc.TopologyNodes.TopologyNode.Ipv4Link.RemoteNodeProtocolIdentifier.IgpInformation.Igp.Isis, ['system_id', 'level'], name, value)
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc.TopologyNodes.TopologyNode.Ipv4Link.RemoteNodeProtocolIdentifier.IgpInformation.Igp.Isis']['meta_info']
class Ospf(_Entity_):
"""
OSPF information
.. attribute:: router_id
OSPF router ID
**type**\: str
**pattern:** (([0\-9]\|[1\-9][0\-9]\|1[0\-9][0\-9]\|2[0\-4][0\-9]\|25[0\-5])\\.){3}([0\-9]\|[1\-9][0\-9]\|1[0\-9][0\-9]\|2[0\-4][0\-9]\|25[0\-5])(%[\\p{N}\\p{L}]+)?
**config**\: False
.. attribute:: area
OSPF area
**type**\: int
**range:** 0..4294967295
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc.TopologyNodes.TopologyNode.Ipv4Link.RemoteNodeProtocolIdentifier.IgpInformation.Igp.Ospf, self).__init__()
self.yang_name = "ospf"
self.yang_parent_name = "igp"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('router_id', (YLeaf(YType.str, 'router-id'), ['str'])),
('area', (YLeaf(YType.uint32, 'area'), ['int'])),
])
self.router_id = None
self.area = None
self._segment_path = lambda: "ospf"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc.TopologyNodes.TopologyNode.Ipv4Link.RemoteNodeProtocolIdentifier.IgpInformation.Igp.Ospf, ['router_id', 'area'], name, value)
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc.TopologyNodes.TopologyNode.Ipv4Link.RemoteNodeProtocolIdentifier.IgpInformation.Igp.Ospf']['meta_info']
class Bgp(_Entity_):
"""
BGP information
.. attribute:: router_id
BGP router ID
**type**\: str
**pattern:** (([0\-9]\|[1\-9][0\-9]\|1[0\-9][0\-9]\|2[0\-4][0\-9]\|25[0\-5])\\.){3}([0\-9]\|[1\-9][0\-9]\|1[0\-9][0\-9]\|2[0\-4][0\-9]\|25[0\-5])(%[\\p{N}\\p{L}]+)?
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc.TopologyNodes.TopologyNode.Ipv4Link.RemoteNodeProtocolIdentifier.IgpInformation.Igp.Bgp, self).__init__()
self.yang_name = "bgp"
self.yang_parent_name = "igp"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('router_id', (YLeaf(YType.str, 'router-id'), ['str'])),
])
self.router_id = None
self._segment_path = lambda: "bgp"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc.TopologyNodes.TopologyNode.Ipv4Link.RemoteNodeProtocolIdentifier.IgpInformation.Igp.Bgp, ['router_id'], name, value)
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc.TopologyNodes.TopologyNode.Ipv4Link.RemoteNodeProtocolIdentifier.IgpInformation.Igp.Bgp']['meta_info']
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc.TopologyNodes.TopologyNode.Ipv4Link.RemoteNodeProtocolIdentifier.IgpInformation.Igp']['meta_info']
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc.TopologyNodes.TopologyNode.Ipv4Link.RemoteNodeProtocolIdentifier.IgpInformation']['meta_info']
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc.TopologyNodes.TopologyNode.Ipv4Link.RemoteNodeProtocolIdentifier']['meta_info']
class PerformanceMetrics(_Entity_):
"""
Performance metrics
.. attribute:: unidirectional_minimum_delay_microseconds
Min delay in microseconds
**type**\: int
**range:** 0..4294967295
**config**\: False
**units**\: microsecond
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc.TopologyNodes.TopologyNode.Ipv4Link.PerformanceMetrics, self).__init__()
self.yang_name = "performance-metrics"
self.yang_parent_name = "ipv4-link"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('unidirectional_minimum_delay_microseconds', (YLeaf(YType.uint32, 'unidirectional-minimum-delay-microseconds'), ['int'])),
])
self.unidirectional_minimum_delay_microseconds = None
self._segment_path = lambda: "performance-metrics"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc.TopologyNodes.TopologyNode.Ipv4Link.PerformanceMetrics, ['unidirectional_minimum_delay_microseconds'], name, value)
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc.TopologyNodes.TopologyNode.Ipv4Link.PerformanceMetrics']['meta_info']
class AdjacencySid(_Entity_):
"""
Adjacency SIDs
.. attribute:: sid_prefix
Prefix
**type**\: :py:class:`SidPrefix <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Xtc.TopologyNodes.TopologyNode.Ipv4Link.AdjacencySid.SidPrefix>`
**config**\: False
.. attribute:: sid_type
SID Type
**type**\: :py:class:`XtcSid1 <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.XtcSid1>`
**config**\: False
.. attribute:: algorithm
Prefix\-SID algorithm number
**type**\: int
**range:** 0..4294967295
**config**\: False
.. attribute:: mpls_label
MPLS Label
**type**\: int
**range:** 0..4294967295
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc.TopologyNodes.TopologyNode.Ipv4Link.AdjacencySid, self).__init__()
self.yang_name = "adjacency-sid"
self.yang_parent_name = "ipv4-link"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([("sid-prefix", ("sid_prefix", Xtc.TopologyNodes.TopologyNode.Ipv4Link.AdjacencySid.SidPrefix))])
self._leafs = OrderedDict([
('sid_type', (YLeaf(YType.enumeration, 'sid-type'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper', 'XtcSid1', '')])),
('algorithm', (YLeaf(YType.uint32, 'algorithm'), ['int'])),
('mpls_label', (YLeaf(YType.uint32, 'mpls-label'), ['int'])),
])
self.sid_type = None
self.algorithm = None
self.mpls_label = None
self.sid_prefix = Xtc.TopologyNodes.TopologyNode.Ipv4Link.AdjacencySid.SidPrefix()
self.sid_prefix.parent = self
self._children_name_map["sid_prefix"] = "sid-prefix"
self._segment_path = lambda: "adjacency-sid"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc.TopologyNodes.TopologyNode.Ipv4Link.AdjacencySid, ['sid_type', 'algorithm', 'mpls_label'], name, value)
class SidPrefix(_Entity_):
"""
Prefix
.. attribute:: af_name
AFName
**type**\: :py:class:`XtcAfId <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.XtcAfId>`
**config**\: False
.. attribute:: ipv4
IPv4 address type
**type**\: str
**pattern:** (([0\-9]\|[1\-9][0\-9]\|1[0\-9][0\-9]\|2[0\-4][0\-9]\|25[0\-5])\\.){3}([0\-9]\|[1\-9][0\-9]\|1[0\-9][0\-9]\|2[0\-4][0\-9]\|25[0\-5])(%[\\p{N}\\p{L}]+)?
**config**\: False
.. attribute:: ipv6
IPv6 address type
**type**\: str
**pattern:** ((\:\|[0\-9a\-fA\-F]{0,4})\:)([0\-9a\-fA\-F]{0,4}\:){0,5}((([0\-9a\-fA\-F]{0,4}\:)?(\:\|[0\-9a\-fA\-F]{0,4}))\|(((25[0\-5]\|2[0\-4][0\-9]\|[01]?[0\-9]?[0\-9])\\.){3}(25[0\-5]\|2[0\-4][0\-9]\|[01]?[0\-9]?[0\-9])))(%[\\p{N}\\p{L}]+)?
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc.TopologyNodes.TopologyNode.Ipv4Link.AdjacencySid.SidPrefix, self).__init__()
self.yang_name = "sid-prefix"
self.yang_parent_name = "adjacency-sid"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('af_name', (YLeaf(YType.enumeration, 'af-name'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper', 'XtcAfId', '')])),
('ipv4', (YLeaf(YType.str, 'ipv4'), ['str'])),
('ipv6', (YLeaf(YType.str, 'ipv6'), ['str'])),
])
self.af_name = None
self.ipv4 = None
self.ipv6 = None
self._segment_path = lambda: "sid-prefix"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc.TopologyNodes.TopologyNode.Ipv4Link.AdjacencySid.SidPrefix, ['af_name', 'ipv4', 'ipv6'], name, value)
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc.TopologyNodes.TopologyNode.Ipv4Link.AdjacencySid.SidPrefix']['meta_info']
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc.TopologyNodes.TopologyNode.Ipv4Link.AdjacencySid']['meta_info']
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc.TopologyNodes.TopologyNode.Ipv4Link']['meta_info']
class Ipv6Link(_Entity_):
"""
IPv6 Link information
.. attribute:: local_igp_information
Local node IGP information
**type**\: :py:class:`LocalIgpInformation <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Xtc.TopologyNodes.TopologyNode.Ipv6Link.LocalIgpInformation>`
**config**\: False
.. attribute:: remote_node_protocol_identifier
Remote node protocol identifier
**type**\: :py:class:`RemoteNodeProtocolIdentifier <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Xtc.TopologyNodes.TopologyNode.Ipv6Link.RemoteNodeProtocolIdentifier>`
**config**\: False
.. attribute:: local_ipv6_address
Local IPv6 address
**type**\: str
**pattern:** ((\:\|[0\-9a\-fA\-F]{0,4})\:)([0\-9a\-fA\-F]{0,4}\:){0,5}((([0\-9a\-fA\-F]{0,4}\:)?(\:\|[0\-9a\-fA\-F]{0,4}))\|(((25[0\-5]\|2[0\-4][0\-9]\|[01]?[0\-9]?[0\-9])\\.){3}(25[0\-5]\|2[0\-4][0\-9]\|[01]?[0\-9]?[0\-9])))(%[\\p{N}\\p{L}]+)?
**config**\: False
.. attribute:: remote_ipv6_address
Remote IPv6 address
**type**\: str
**pattern:** ((\:\|[0\-9a\-fA\-F]{0,4})\:)([0\-9a\-fA\-F]{0,4}\:){0,5}((([0\-9a\-fA\-F]{0,4}\:)?(\:\|[0\-9a\-fA\-F]{0,4}))\|(((25[0\-5]\|2[0\-4][0\-9]\|[01]?[0\-9]?[0\-9])\\.){3}(25[0\-5]\|2[0\-4][0\-9]\|[01]?[0\-9]?[0\-9])))(%[\\p{N}\\p{L}]+)?
**config**\: False
.. attribute:: igp_metric
IGP Metric
**type**\: int
**range:** 0..4294967295
**config**\: False
.. attribute:: te_metric
TE Metric
**type**\: int
**range:** 0..4294967295
**config**\: False
.. attribute:: maximum_link_bandwidth
Max link bandwidth
**type**\: int
**range:** 0..18446744073709551615
**config**\: False
.. attribute:: max_reservable_bandwidth
Max Reservable bandwidth
**type**\: int
**range:** 0..18446744073709551615
**config**\: False
.. attribute:: adjacency_sid
Adjacency SIDs
**type**\: list of :py:class:`AdjacencySid <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Xtc.TopologyNodes.TopologyNode.Ipv6Link.AdjacencySid>`
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc.TopologyNodes.TopologyNode.Ipv6Link, self).__init__()
self.yang_name = "ipv6-link"
self.yang_parent_name = "topology-node"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([("local-igp-information", ("local_igp_information", Xtc.TopologyNodes.TopologyNode.Ipv6Link.LocalIgpInformation)), ("remote-node-protocol-identifier", ("remote_node_protocol_identifier", Xtc.TopologyNodes.TopologyNode.Ipv6Link.RemoteNodeProtocolIdentifier)), ("adjacency-sid", ("adjacency_sid", Xtc.TopologyNodes.TopologyNode.Ipv6Link.AdjacencySid))])
self._leafs = OrderedDict([
('local_ipv6_address', (YLeaf(YType.str, 'local-ipv6-address'), ['str'])),
('remote_ipv6_address', (YLeaf(YType.str, 'remote-ipv6-address'), ['str'])),
('igp_metric', (YLeaf(YType.uint32, 'igp-metric'), ['int'])),
('te_metric', (YLeaf(YType.uint32, 'te-metric'), ['int'])),
('maximum_link_bandwidth', (YLeaf(YType.uint64, 'maximum-link-bandwidth'), ['int'])),
('max_reservable_bandwidth', (YLeaf(YType.uint64, 'max-reservable-bandwidth'), ['int'])),
])
self.local_ipv6_address = None
self.remote_ipv6_address = None
self.igp_metric = None
self.te_metric = None
self.maximum_link_bandwidth = None
self.max_reservable_bandwidth = None
self.local_igp_information = Xtc.TopologyNodes.TopologyNode.Ipv6Link.LocalIgpInformation()
self.local_igp_information.parent = self
self._children_name_map["local_igp_information"] = "local-igp-information"
self.remote_node_protocol_identifier = Xtc.TopologyNodes.TopologyNode.Ipv6Link.RemoteNodeProtocolIdentifier()
self.remote_node_protocol_identifier.parent = self
self._children_name_map["remote_node_protocol_identifier"] = "remote-node-protocol-identifier"
self.adjacency_sid = YList(self)
self._segment_path = lambda: "ipv6-link"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc.TopologyNodes.TopologyNode.Ipv6Link, ['local_ipv6_address', 'remote_ipv6_address', 'igp_metric', 'te_metric', 'maximum_link_bandwidth', 'max_reservable_bandwidth'], name, value)
class LocalIgpInformation(_Entity_):
"""
Local node IGP information
.. attribute:: igp
IGP\-specific information
**type**\: :py:class:`Igp <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Xtc.TopologyNodes.TopologyNode.Ipv6Link.LocalIgpInformation.Igp>`
**config**\: False
.. attribute:: domain_identifier
Domain identifier
**type**\: int
**range:** 0..18446744073709551615
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc.TopologyNodes.TopologyNode.Ipv6Link.LocalIgpInformation, self).__init__()
self.yang_name = "local-igp-information"
self.yang_parent_name = "ipv6-link"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([("igp", ("igp", Xtc.TopologyNodes.TopologyNode.Ipv6Link.LocalIgpInformation.Igp))])
self._leafs = OrderedDict([
('domain_identifier', (YLeaf(YType.uint64, 'domain-identifier'), ['int'])),
])
self.domain_identifier = None
self.igp = Xtc.TopologyNodes.TopologyNode.Ipv6Link.LocalIgpInformation.Igp()
self.igp.parent = self
self._children_name_map["igp"] = "igp"
self._segment_path = lambda: "local-igp-information"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc.TopologyNodes.TopologyNode.Ipv6Link.LocalIgpInformation, ['domain_identifier'], name, value)
class Igp(_Entity_):
"""
IGP\-specific information
.. attribute:: isis
ISIS information
**type**\: :py:class:`Isis <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Xtc.TopologyNodes.TopologyNode.Ipv6Link.LocalIgpInformation.Igp.Isis>`
**config**\: False
.. attribute:: ospf
OSPF information
**type**\: :py:class:`Ospf <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Xtc.TopologyNodes.TopologyNode.Ipv6Link.LocalIgpInformation.Igp.Ospf>`
**config**\: False
.. attribute:: bgp
BGP information
**type**\: :py:class:`Bgp <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Xtc.TopologyNodes.TopologyNode.Ipv6Link.LocalIgpInformation.Igp.Bgp>`
**config**\: False
.. attribute:: igp_id
IGP ID
**type**\: :py:class:`XtcIgpInfoId <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.XtcIgpInfoId>`
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc.TopologyNodes.TopologyNode.Ipv6Link.LocalIgpInformation.Igp, self).__init__()
self.yang_name = "igp"
self.yang_parent_name = "local-igp-information"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([("isis", ("isis", Xtc.TopologyNodes.TopologyNode.Ipv6Link.LocalIgpInformation.Igp.Isis)), ("ospf", ("ospf", Xtc.TopologyNodes.TopologyNode.Ipv6Link.LocalIgpInformation.Igp.Ospf)), ("bgp", ("bgp", Xtc.TopologyNodes.TopologyNode.Ipv6Link.LocalIgpInformation.Igp.Bgp))])
self._leafs = OrderedDict([
('igp_id', (YLeaf(YType.enumeration, 'igp-id'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper', 'XtcIgpInfoId', '')])),
])
self.igp_id = None
self.isis = Xtc.TopologyNodes.TopologyNode.Ipv6Link.LocalIgpInformation.Igp.Isis()
self.isis.parent = self
self._children_name_map["isis"] = "isis"
self.ospf = Xtc.TopologyNodes.TopologyNode.Ipv6Link.LocalIgpInformation.Igp.Ospf()
self.ospf.parent = self
self._children_name_map["ospf"] = "ospf"
self.bgp = Xtc.TopologyNodes.TopologyNode.Ipv6Link.LocalIgpInformation.Igp.Bgp()
self.bgp.parent = self
self._children_name_map["bgp"] = "bgp"
self._segment_path = lambda: "igp"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc.TopologyNodes.TopologyNode.Ipv6Link.LocalIgpInformation.Igp, ['igp_id'], name, value)
class Isis(_Entity_):
"""
ISIS information
.. attribute:: system_id
ISIS system ID
**type**\: str
**config**\: False
.. attribute:: level
ISIS level
**type**\: int
**range:** 0..4294967295
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc.TopologyNodes.TopologyNode.Ipv6Link.LocalIgpInformation.Igp.Isis, self).__init__()
self.yang_name = "isis"
self.yang_parent_name = "igp"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('system_id', (YLeaf(YType.str, 'system-id'), ['str'])),
('level', (YLeaf(YType.uint32, 'level'), ['int'])),
])
self.system_id = None
self.level = None
self._segment_path = lambda: "isis"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc.TopologyNodes.TopologyNode.Ipv6Link.LocalIgpInformation.Igp.Isis, ['system_id', 'level'], name, value)
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc.TopologyNodes.TopologyNode.Ipv6Link.LocalIgpInformation.Igp.Isis']['meta_info']
class Ospf(_Entity_):
"""
OSPF information
.. attribute:: router_id
OSPF router ID
**type**\: str
**pattern:** (([0\-9]\|[1\-9][0\-9]\|1[0\-9][0\-9]\|2[0\-4][0\-9]\|25[0\-5])\\.){3}([0\-9]\|[1\-9][0\-9]\|1[0\-9][0\-9]\|2[0\-4][0\-9]\|25[0\-5])(%[\\p{N}\\p{L}]+)?
**config**\: False
.. attribute:: area
OSPF area
**type**\: int
**range:** 0..4294967295
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc.TopologyNodes.TopologyNode.Ipv6Link.LocalIgpInformation.Igp.Ospf, self).__init__()
self.yang_name = "ospf"
self.yang_parent_name = "igp"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('router_id', (YLeaf(YType.str, 'router-id'), ['str'])),
('area', (YLeaf(YType.uint32, 'area'), ['int'])),
])
self.router_id = None
self.area = None
self._segment_path = lambda: "ospf"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc.TopologyNodes.TopologyNode.Ipv6Link.LocalIgpInformation.Igp.Ospf, ['router_id', 'area'], name, value)
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc.TopologyNodes.TopologyNode.Ipv6Link.LocalIgpInformation.Igp.Ospf']['meta_info']
class Bgp(_Entity_):
"""
BGP information
.. attribute:: router_id
BGP router ID
**type**\: str
**pattern:** (([0\-9]\|[1\-9][0\-9]\|1[0\-9][0\-9]\|2[0\-4][0\-9]\|25[0\-5])\\.){3}([0\-9]\|[1\-9][0\-9]\|1[0\-9][0\-9]\|2[0\-4][0\-9]\|25[0\-5])(%[\\p{N}\\p{L}]+)?
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc.TopologyNodes.TopologyNode.Ipv6Link.LocalIgpInformation.Igp.Bgp, self).__init__()
self.yang_name = "bgp"
self.yang_parent_name = "igp"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('router_id', (YLeaf(YType.str, 'router-id'), ['str'])),
])
self.router_id = None
self._segment_path = lambda: "bgp"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc.TopologyNodes.TopologyNode.Ipv6Link.LocalIgpInformation.Igp.Bgp, ['router_id'], name, value)
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc.TopologyNodes.TopologyNode.Ipv6Link.LocalIgpInformation.Igp.Bgp']['meta_info']
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc.TopologyNodes.TopologyNode.Ipv6Link.LocalIgpInformation.Igp']['meta_info']
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc.TopologyNodes.TopologyNode.Ipv6Link.LocalIgpInformation']['meta_info']
class RemoteNodeProtocolIdentifier(_Entity_):
"""
Remote node protocol identifier
.. attribute:: node_name
Node Name
**type**\: str
**config**\: False
.. attribute:: ipv4_bgp_router_id_set
True if IPv4 BGP router ID is set
**type**\: bool
**config**\: False
.. attribute:: ipv4_bgp_router_id
IPv4 TE router ID
**type**\: str
**pattern:** (([0\-9]\|[1\-9][0\-9]\|1[0\-9][0\-9]\|2[0\-4][0\-9]\|25[0\-5])\\.){3}([0\-9]\|[1\-9][0\-9]\|1[0\-9][0\-9]\|2[0\-4][0\-9]\|25[0\-5])(%[\\p{N}\\p{L}]+)?
**config**\: False
.. attribute:: ipv4te_router_id_set
True if IPv4 TE router ID is set
**type**\: bool
**config**\: False
.. attribute:: ipv4te_router_id
IPv4 BGP router ID
**type**\: str
**pattern:** (([0\-9]\|[1\-9][0\-9]\|1[0\-9][0\-9]\|2[0\-4][0\-9]\|25[0\-5])\\.){3}([0\-9]\|[1\-9][0\-9]\|1[0\-9][0\-9]\|2[0\-4][0\-9]\|25[0\-5])(%[\\p{N}\\p{L}]+)?
**config**\: False
.. attribute:: igp_information
IGP information
**type**\: list of :py:class:`IgpInformation <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Xtc.TopologyNodes.TopologyNode.Ipv6Link.RemoteNodeProtocolIdentifier.IgpInformation>`
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc.TopologyNodes.TopologyNode.Ipv6Link.RemoteNodeProtocolIdentifier, self).__init__()
self.yang_name = "remote-node-protocol-identifier"
self.yang_parent_name = "ipv6-link"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([("igp-information", ("igp_information", Xtc.TopologyNodes.TopologyNode.Ipv6Link.RemoteNodeProtocolIdentifier.IgpInformation))])
self._leafs = OrderedDict([
('node_name', (YLeaf(YType.str, 'node-name'), ['str'])),
('ipv4_bgp_router_id_set', (YLeaf(YType.boolean, 'ipv4-bgp-router-id-set'), ['bool'])),
('ipv4_bgp_router_id', (YLeaf(YType.str, 'ipv4-bgp-router-id'), ['str'])),
('ipv4te_router_id_set', (YLeaf(YType.boolean, 'ipv4te-router-id-set'), ['bool'])),
('ipv4te_router_id', (YLeaf(YType.str, 'ipv4te-router-id'), ['str'])),
])
self.node_name = None
self.ipv4_bgp_router_id_set = None
self.ipv4_bgp_router_id = None
self.ipv4te_router_id_set = None
self.ipv4te_router_id = None
self.igp_information = YList(self)
self._segment_path = lambda: "remote-node-protocol-identifier"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc.TopologyNodes.TopologyNode.Ipv6Link.RemoteNodeProtocolIdentifier, ['node_name', 'ipv4_bgp_router_id_set', 'ipv4_bgp_router_id', 'ipv4te_router_id_set', 'ipv4te_router_id'], name, value)
class IgpInformation(_Entity_):
"""
IGP information
.. attribute:: igp
IGP\-specific information
**type**\: :py:class:`Igp <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Xtc.TopologyNodes.TopologyNode.Ipv6Link.RemoteNodeProtocolIdentifier.IgpInformation.Igp>`
**config**\: False
.. attribute:: domain_identifier
Domain identifier
**type**\: int
**range:** 0..18446744073709551615
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc.TopologyNodes.TopologyNode.Ipv6Link.RemoteNodeProtocolIdentifier.IgpInformation, self).__init__()
self.yang_name = "igp-information"
self.yang_parent_name = "remote-node-protocol-identifier"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([("igp", ("igp", Xtc.TopologyNodes.TopologyNode.Ipv6Link.RemoteNodeProtocolIdentifier.IgpInformation.Igp))])
self._leafs = OrderedDict([
('domain_identifier', (YLeaf(YType.uint64, 'domain-identifier'), ['int'])),
])
self.domain_identifier = None
self.igp = Xtc.TopologyNodes.TopologyNode.Ipv6Link.RemoteNodeProtocolIdentifier.IgpInformation.Igp()
self.igp.parent = self
self._children_name_map["igp"] = "igp"
self._segment_path = lambda: "igp-information"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc.TopologyNodes.TopologyNode.Ipv6Link.RemoteNodeProtocolIdentifier.IgpInformation, ['domain_identifier'], name, value)
class Igp(_Entity_):
"""
IGP\-specific information
.. attribute:: isis
ISIS information
**type**\: :py:class:`Isis <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Xtc.TopologyNodes.TopologyNode.Ipv6Link.RemoteNodeProtocolIdentifier.IgpInformation.Igp.Isis>`
**config**\: False
.. attribute:: ospf
OSPF information
**type**\: :py:class:`Ospf <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Xtc.TopologyNodes.TopologyNode.Ipv6Link.RemoteNodeProtocolIdentifier.IgpInformation.Igp.Ospf>`
**config**\: False
.. attribute:: bgp
BGP information
**type**\: :py:class:`Bgp <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Xtc.TopologyNodes.TopologyNode.Ipv6Link.RemoteNodeProtocolIdentifier.IgpInformation.Igp.Bgp>`
**config**\: False
.. attribute:: igp_id
IGP ID
**type**\: :py:class:`XtcIgpInfoId <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.XtcIgpInfoId>`
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc.TopologyNodes.TopologyNode.Ipv6Link.RemoteNodeProtocolIdentifier.IgpInformation.Igp, self).__init__()
self.yang_name = "igp"
self.yang_parent_name = "igp-information"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([("isis", ("isis", Xtc.TopologyNodes.TopologyNode.Ipv6Link.RemoteNodeProtocolIdentifier.IgpInformation.Igp.Isis)), ("ospf", ("ospf", Xtc.TopologyNodes.TopologyNode.Ipv6Link.RemoteNodeProtocolIdentifier.IgpInformation.Igp.Ospf)), ("bgp", ("bgp", Xtc.TopologyNodes.TopologyNode.Ipv6Link.RemoteNodeProtocolIdentifier.IgpInformation.Igp.Bgp))])
self._leafs = OrderedDict([
('igp_id', (YLeaf(YType.enumeration, 'igp-id'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper', 'XtcIgpInfoId', '')])),
])
self.igp_id = None
self.isis = Xtc.TopologyNodes.TopologyNode.Ipv6Link.RemoteNodeProtocolIdentifier.IgpInformation.Igp.Isis()
self.isis.parent = self
self._children_name_map["isis"] = "isis"
self.ospf = Xtc.TopologyNodes.TopologyNode.Ipv6Link.RemoteNodeProtocolIdentifier.IgpInformation.Igp.Ospf()
self.ospf.parent = self
self._children_name_map["ospf"] = "ospf"
self.bgp = Xtc.TopologyNodes.TopologyNode.Ipv6Link.RemoteNodeProtocolIdentifier.IgpInformation.Igp.Bgp()
self.bgp.parent = self
self._children_name_map["bgp"] = "bgp"
self._segment_path = lambda: "igp"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc.TopologyNodes.TopologyNode.Ipv6Link.RemoteNodeProtocolIdentifier.IgpInformation.Igp, ['igp_id'], name, value)
class Isis(_Entity_):
"""
ISIS information
.. attribute:: system_id
ISIS system ID
**type**\: str
**config**\: False
.. attribute:: level
ISIS level
**type**\: int
**range:** 0..4294967295
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc.TopologyNodes.TopologyNode.Ipv6Link.RemoteNodeProtocolIdentifier.IgpInformation.Igp.Isis, self).__init__()
self.yang_name = "isis"
self.yang_parent_name = "igp"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('system_id', (YLeaf(YType.str, 'system-id'), ['str'])),
('level', (YLeaf(YType.uint32, 'level'), ['int'])),
])
self.system_id = None
self.level = None
self._segment_path = lambda: "isis"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc.TopologyNodes.TopologyNode.Ipv6Link.RemoteNodeProtocolIdentifier.IgpInformation.Igp.Isis, ['system_id', 'level'], name, value)
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc.TopologyNodes.TopologyNode.Ipv6Link.RemoteNodeProtocolIdentifier.IgpInformation.Igp.Isis']['meta_info']
class Ospf(_Entity_):
"""
OSPF information
.. attribute:: router_id
OSPF router ID
**type**\: str
**pattern:** (([0\-9]\|[1\-9][0\-9]\|1[0\-9][0\-9]\|2[0\-4][0\-9]\|25[0\-5])\\.){3}([0\-9]\|[1\-9][0\-9]\|1[0\-9][0\-9]\|2[0\-4][0\-9]\|25[0\-5])(%[\\p{N}\\p{L}]+)?
**config**\: False
.. attribute:: area
OSPF area
**type**\: int
**range:** 0..4294967295
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc.TopologyNodes.TopologyNode.Ipv6Link.RemoteNodeProtocolIdentifier.IgpInformation.Igp.Ospf, self).__init__()
self.yang_name = "ospf"
self.yang_parent_name = "igp"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('router_id', (YLeaf(YType.str, 'router-id'), ['str'])),
('area', (YLeaf(YType.uint32, 'area'), ['int'])),
])
self.router_id = None
self.area = None
self._segment_path = lambda: "ospf"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc.TopologyNodes.TopologyNode.Ipv6Link.RemoteNodeProtocolIdentifier.IgpInformation.Igp.Ospf, ['router_id', 'area'], name, value)
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc.TopologyNodes.TopologyNode.Ipv6Link.RemoteNodeProtocolIdentifier.IgpInformation.Igp.Ospf']['meta_info']
class Bgp(_Entity_):
"""
BGP information
.. attribute:: router_id
BGP router ID
**type**\: str
**pattern:** (([0\-9]\|[1\-9][0\-9]\|1[0\-9][0\-9]\|2[0\-4][0\-9]\|25[0\-5])\\.){3}([0\-9]\|[1\-9][0\-9]\|1[0\-9][0\-9]\|2[0\-4][0\-9]\|25[0\-5])(%[\\p{N}\\p{L}]+)?
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc.TopologyNodes.TopologyNode.Ipv6Link.RemoteNodeProtocolIdentifier.IgpInformation.Igp.Bgp, self).__init__()
self.yang_name = "bgp"
self.yang_parent_name = "igp"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('router_id', (YLeaf(YType.str, 'router-id'), ['str'])),
])
self.router_id = None
self._segment_path = lambda: "bgp"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc.TopologyNodes.TopologyNode.Ipv6Link.RemoteNodeProtocolIdentifier.IgpInformation.Igp.Bgp, ['router_id'], name, value)
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc.TopologyNodes.TopologyNode.Ipv6Link.RemoteNodeProtocolIdentifier.IgpInformation.Igp.Bgp']['meta_info']
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc.TopologyNodes.TopologyNode.Ipv6Link.RemoteNodeProtocolIdentifier.IgpInformation.Igp']['meta_info']
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc.TopologyNodes.TopologyNode.Ipv6Link.RemoteNodeProtocolIdentifier.IgpInformation']['meta_info']
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc.TopologyNodes.TopologyNode.Ipv6Link.RemoteNodeProtocolIdentifier']['meta_info']
class AdjacencySid(_Entity_):
"""
Adjacency SIDs
.. attribute:: sid_prefix
Prefix
**type**\: :py:class:`SidPrefix <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Xtc.TopologyNodes.TopologyNode.Ipv6Link.AdjacencySid.SidPrefix>`
**config**\: False
.. attribute:: sid_type
SID Type
**type**\: :py:class:`XtcSid1 <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.XtcSid1>`
**config**\: False
.. attribute:: algorithm
Prefix\-SID algorithm number
**type**\: int
**range:** 0..4294967295
**config**\: False
.. attribute:: mpls_label
MPLS Label
**type**\: int
**range:** 0..4294967295
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc.TopologyNodes.TopologyNode.Ipv6Link.AdjacencySid, self).__init__()
self.yang_name = "adjacency-sid"
self.yang_parent_name = "ipv6-link"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([("sid-prefix", ("sid_prefix", Xtc.TopologyNodes.TopologyNode.Ipv6Link.AdjacencySid.SidPrefix))])
self._leafs = OrderedDict([
('sid_type', (YLeaf(YType.enumeration, 'sid-type'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper', 'XtcSid1', '')])),
('algorithm', (YLeaf(YType.uint32, 'algorithm'), ['int'])),
('mpls_label', (YLeaf(YType.uint32, 'mpls-label'), ['int'])),
])
self.sid_type = None
self.algorithm = None
self.mpls_label = None
self.sid_prefix = Xtc.TopologyNodes.TopologyNode.Ipv6Link.AdjacencySid.SidPrefix()
self.sid_prefix.parent = self
self._children_name_map["sid_prefix"] = "sid-prefix"
self._segment_path = lambda: "adjacency-sid"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc.TopologyNodes.TopologyNode.Ipv6Link.AdjacencySid, ['sid_type', 'algorithm', 'mpls_label'], name, value)
class SidPrefix(_Entity_):
"""
Prefix
.. attribute:: af_name
AFName
**type**\: :py:class:`XtcAfId <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.XtcAfId>`
**config**\: False
.. attribute:: ipv4
IPv4 address type
**type**\: str
**pattern:** (([0\-9]\|[1\-9][0\-9]\|1[0\-9][0\-9]\|2[0\-4][0\-9]\|25[0\-5])\\.){3}([0\-9]\|[1\-9][0\-9]\|1[0\-9][0\-9]\|2[0\-4][0\-9]\|25[0\-5])(%[\\p{N}\\p{L}]+)?
**config**\: False
.. attribute:: ipv6
IPv6 address type
**type**\: str
**pattern:** ((\:\|[0\-9a\-fA\-F]{0,4})\:)([0\-9a\-fA\-F]{0,4}\:){0,5}((([0\-9a\-fA\-F]{0,4}\:)?(\:\|[0\-9a\-fA\-F]{0,4}))\|(((25[0\-5]\|2[0\-4][0\-9]\|[01]?[0\-9]?[0\-9])\\.){3}(25[0\-5]\|2[0\-4][0\-9]\|[01]?[0\-9]?[0\-9])))(%[\\p{N}\\p{L}]+)?
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc.TopologyNodes.TopologyNode.Ipv6Link.AdjacencySid.SidPrefix, self).__init__()
self.yang_name = "sid-prefix"
self.yang_parent_name = "adjacency-sid"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('af_name', (YLeaf(YType.enumeration, 'af-name'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper', 'XtcAfId', '')])),
('ipv4', (YLeaf(YType.str, 'ipv4'), ['str'])),
('ipv6', (YLeaf(YType.str, 'ipv6'), ['str'])),
])
self.af_name = None
self.ipv4 = None
self.ipv6 = None
self._segment_path = lambda: "sid-prefix"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc.TopologyNodes.TopologyNode.Ipv6Link.AdjacencySid.SidPrefix, ['af_name', 'ipv4', 'ipv6'], name, value)
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc.TopologyNodes.TopologyNode.Ipv6Link.AdjacencySid.SidPrefix']['meta_info']
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc.TopologyNodes.TopologyNode.Ipv6Link.AdjacencySid']['meta_info']
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc.TopologyNodes.TopologyNode.Ipv6Link']['meta_info']
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc.TopologyNodes.TopologyNode']['meta_info']
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc.TopologyNodes']['meta_info']
class TopologySummaries(_Entity_):
"""
Node summary table
.. attribute:: topology_summary
Node summary database
**type**\: list of :py:class:`TopologySummary <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Xtc.TopologySummaries.TopologySummary>`
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc.TopologySummaries, self).__init__()
self.yang_name = "topology-summaries"
self.yang_parent_name = "xtc"
self.is_top_level_class = False
self.has_list_ancestor = False
self.ylist_key_names = []
self._child_classes = OrderedDict([("topology-summary", ("topology_summary", Xtc.TopologySummaries.TopologySummary))])
self._leafs = OrderedDict()
self.topology_summary = YList(self)
self._segment_path = lambda: "topology-summaries"
self._absolute_path = lambda: "Cisco-IOS-XR-infra-xtc-agent-oper:xtc/%s" % self._segment_path()
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc.TopologySummaries, [], name, value)
class TopologySummary(_Entity_):
"""
Node summary database
.. attribute:: af
Only show data related to the specified address family
**type**\: :py:class:`XtcAddressFamily <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.XtcAddressFamily>`
**config**\: False
.. attribute:: protocol
Match nodes from the specified IGP protocol
**type**\: :py:class:`XtcigpProtocol <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.XtcigpProtocol>`
**config**\: False
.. attribute:: topology_ready_summary
Topology ready summary
**type**\: :py:class:`TopologyReadySummary <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Xtc.TopologySummaries.TopologySummary.TopologyReadySummary>`
**config**\: False
.. attribute:: nodes
Number of nodes
**type**\: int
**range:** 0..4294967295
**config**\: False
.. attribute:: prefixes
Number of prefixes
**type**\: int
**range:** 0..4294967295
**config**\: False
.. attribute:: prefix_sids
Number of prefix SIDs
**type**\: int
**range:** 0..4294967295
**config**\: False
.. attribute:: links
Number of links
**type**\: int
**range:** 0..4294967295
**config**\: False
.. attribute:: adjacency_sids
Number of adjacency SIDs
**type**\: int
**range:** 0..4294967295
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc.TopologySummaries.TopologySummary, self).__init__()
self.yang_name = "topology-summary"
self.yang_parent_name = "topology-summaries"
self.is_top_level_class = False
self.has_list_ancestor = False
self.ylist_key_names = []
self._child_classes = OrderedDict([("topology-ready-summary", ("topology_ready_summary", Xtc.TopologySummaries.TopologySummary.TopologyReadySummary))])
self._leafs = OrderedDict([
('af', (YLeaf(YType.enumeration, 'af'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper', 'XtcAddressFamily', '')])),
('protocol', (YLeaf(YType.enumeration, 'protocol'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper', 'XtcigpProtocol', '')])),
('nodes', (YLeaf(YType.uint32, 'nodes'), ['int'])),
('prefixes', (YLeaf(YType.uint32, 'prefixes'), ['int'])),
('prefix_sids', (YLeaf(YType.uint32, 'prefix-sids'), ['int'])),
('links', (YLeaf(YType.uint32, 'links'), ['int'])),
('adjacency_sids', (YLeaf(YType.uint32, 'adjacency-sids'), ['int'])),
])
self.af = None
self.protocol = None
self.nodes = None
self.prefixes = None
self.prefix_sids = None
self.links = None
self.adjacency_sids = None
self.topology_ready_summary = Xtc.TopologySummaries.TopologySummary.TopologyReadySummary()
self.topology_ready_summary.parent = self
self._children_name_map["topology_ready_summary"] = "topology-ready-summary"
self._segment_path = lambda: "topology-summary"
self._absolute_path = lambda: "Cisco-IOS-XR-infra-xtc-agent-oper:xtc/topology-summaries/%s" % self._segment_path()
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc.TopologySummaries.TopologySummary, ['af', 'protocol', 'nodes', 'prefixes', 'prefix_sids', 'links', 'adjacency_sids'], name, value)
class TopologyReadySummary(_Entity_):
"""
Topology ready summary
.. attribute:: timer
Topology readiness timer
**type**\: :py:class:`Timer <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Xtc.TopologySummaries.TopologySummary.TopologyReadySummary.Timer>`
**config**\: False
.. attribute:: ready
Topology readiness
**type**\: bool
**config**\: False
.. attribute:: ha_case
Last HA case
**type**\: :py:class:`CmnHaCase <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.CmnHaCase>`
**config**\: False
.. attribute:: timer_value
Topology ready timer value selected at start
**type**\: int
**range:** 0..4294967295
**config**\: False
.. attribute:: pcep_allowed
Whether PCEP is allowed
**type**\: bool
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc.TopologySummaries.TopologySummary.TopologyReadySummary, self).__init__()
self.yang_name = "topology-ready-summary"
self.yang_parent_name = "topology-summary"
self.is_top_level_class = False
self.has_list_ancestor = False
self.ylist_key_names = []
self._child_classes = OrderedDict([("timer", ("timer", Xtc.TopologySummaries.TopologySummary.TopologyReadySummary.Timer))])
self._leafs = OrderedDict([
('ready', (YLeaf(YType.boolean, 'ready'), ['bool'])),
('ha_case', (YLeaf(YType.enumeration, 'ha-case'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper', 'CmnHaCase', '')])),
('timer_value', (YLeaf(YType.uint32, 'timer-value'), ['int'])),
('pcep_allowed', (YLeaf(YType.boolean, 'pcep-allowed'), ['bool'])),
])
self.ready = None
self.ha_case = None
self.timer_value = None
self.pcep_allowed = None
self.timer = Xtc.TopologySummaries.TopologySummary.TopologyReadySummary.Timer()
self.timer.parent = self
self._children_name_map["timer"] = "timer"
self._segment_path = lambda: "topology-ready-summary"
self._absolute_path = lambda: "Cisco-IOS-XR-infra-xtc-agent-oper:xtc/topology-summaries/topology-summary/%s" % self._segment_path()
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc.TopologySummaries.TopologySummary.TopologyReadySummary, ['ready', 'ha_case', 'timer_value', 'pcep_allowed'], name, value)
class Timer(_Entity_):
"""
Topology readiness timer
.. attribute:: running
Whether the timer is running
**type**\: bool
**config**\: False
.. attribute:: remaining_seconds
Number of remaining seconds
**type**\: int
**range:** \-9223372036854775808..9223372036854775807
**config**\: False
**units**\: second
.. attribute:: remaining_nano_seconds
Number of remaining nanoseconds
**type**\: int
**range:** \-9223372036854775808..9223372036854775807
**config**\: False
**units**\: nanosecond
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc.TopologySummaries.TopologySummary.TopologyReadySummary.Timer, self).__init__()
self.yang_name = "timer"
self.yang_parent_name = "topology-ready-summary"
self.is_top_level_class = False
self.has_list_ancestor = False
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('running', (YLeaf(YType.boolean, 'running'), ['bool'])),
('remaining_seconds', (YLeaf(YType.int64, 'remaining-seconds'), ['int'])),
('remaining_nano_seconds', (YLeaf(YType.int64, 'remaining-nano-seconds'), ['int'])),
])
self.running = None
self.remaining_seconds = None
self.remaining_nano_seconds = None
self._segment_path = lambda: "timer"
self._absolute_path = lambda: "Cisco-IOS-XR-infra-xtc-agent-oper:xtc/topology-summaries/topology-summary/topology-ready-summary/%s" % self._segment_path()
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc.TopologySummaries.TopologySummary.TopologyReadySummary.Timer, ['running', 'remaining_seconds', 'remaining_nano_seconds'], name, value)
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc.TopologySummaries.TopologySummary.TopologyReadySummary.Timer']['meta_info']
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc.TopologySummaries.TopologySummary.TopologyReadySummary']['meta_info']
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc.TopologySummaries.TopologySummary']['meta_info']
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc.TopologySummaries']['meta_info']
class PrefixInfos(_Entity_):
"""
Prefixes database in XTC Agent
.. attribute:: prefix_info
Prefix information
**type**\: list of :py:class:`PrefixInfo <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Xtc.PrefixInfos.PrefixInfo>`
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc.PrefixInfos, self).__init__()
self.yang_name = "prefix-infos"
self.yang_parent_name = "xtc"
self.is_top_level_class = False
self.has_list_ancestor = False
self.ylist_key_names = []
self._child_classes = OrderedDict([("prefix-info", ("prefix_info", Xtc.PrefixInfos.PrefixInfo))])
self._leafs = OrderedDict()
self.prefix_info = YList(self)
self._segment_path = lambda: "prefix-infos"
self._absolute_path = lambda: "Cisco-IOS-XR-infra-xtc-agent-oper:xtc/%s" % self._segment_path()
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc.PrefixInfos, [], name, value)
class PrefixInfo(_Entity_):
"""
Prefix information
.. attribute:: node_identifier (key)
Node ID
**type**\: int
**range:** 0..4294967295
**config**\: False
.. attribute:: node_protocol_identifier
Node protocol identifier
**type**\: :py:class:`NodeProtocolIdentifier <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Xtc.PrefixInfos.PrefixInfo.NodeProtocolIdentifier>`
**config**\: False
.. attribute:: node_identifier_xr
Node identifier
**type**\: int
**range:** 0..4294967295
**config**\: False
.. attribute:: address
Prefix address
**type**\: list of :py:class:`Address <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Xtc.PrefixInfos.PrefixInfo.Address>`
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc.PrefixInfos.PrefixInfo, self).__init__()
self.yang_name = "prefix-info"
self.yang_parent_name = "prefix-infos"
self.is_top_level_class = False
self.has_list_ancestor = False
self.ylist_key_names = ['node_identifier']
self._child_classes = OrderedDict([("node-protocol-identifier", ("node_protocol_identifier", Xtc.PrefixInfos.PrefixInfo.NodeProtocolIdentifier)), ("address", ("address", Xtc.PrefixInfos.PrefixInfo.Address))])
self._leafs = OrderedDict([
('node_identifier', (YLeaf(YType.uint32, 'node-identifier'), ['int'])),
('node_identifier_xr', (YLeaf(YType.uint32, 'node-identifier-xr'), ['int'])),
])
self.node_identifier = None
self.node_identifier_xr = None
self.node_protocol_identifier = Xtc.PrefixInfos.PrefixInfo.NodeProtocolIdentifier()
self.node_protocol_identifier.parent = self
self._children_name_map["node_protocol_identifier"] = "node-protocol-identifier"
self.address = YList(self)
self._segment_path = lambda: "prefix-info" + "[node-identifier='" + str(self.node_identifier) + "']"
self._absolute_path = lambda: "Cisco-IOS-XR-infra-xtc-agent-oper:xtc/prefix-infos/%s" % self._segment_path()
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc.PrefixInfos.PrefixInfo, ['node_identifier', 'node_identifier_xr'], name, value)
class NodeProtocolIdentifier(_Entity_):
"""
Node protocol identifier
.. attribute:: node_name
Node Name
**type**\: str
**config**\: False
.. attribute:: ipv4_bgp_router_id_set
True if IPv4 BGP router ID is set
**type**\: bool
**config**\: False
.. attribute:: ipv4_bgp_router_id
IPv4 TE router ID
**type**\: str
**pattern:** (([0\-9]\|[1\-9][0\-9]\|1[0\-9][0\-9]\|2[0\-4][0\-9]\|25[0\-5])\\.){3}([0\-9]\|[1\-9][0\-9]\|1[0\-9][0\-9]\|2[0\-4][0\-9]\|25[0\-5])(%[\\p{N}\\p{L}]+)?
**config**\: False
.. attribute:: ipv4te_router_id_set
True if IPv4 TE router ID is set
**type**\: bool
**config**\: False
.. attribute:: ipv4te_router_id
IPv4 BGP router ID
**type**\: str
**pattern:** (([0\-9]\|[1\-9][0\-9]\|1[0\-9][0\-9]\|2[0\-4][0\-9]\|25[0\-5])\\.){3}([0\-9]\|[1\-9][0\-9]\|1[0\-9][0\-9]\|2[0\-4][0\-9]\|25[0\-5])(%[\\p{N}\\p{L}]+)?
**config**\: False
.. attribute:: igp_information
IGP information
**type**\: list of :py:class:`IgpInformation <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Xtc.PrefixInfos.PrefixInfo.NodeProtocolIdentifier.IgpInformation>`
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc.PrefixInfos.PrefixInfo.NodeProtocolIdentifier, self).__init__()
self.yang_name = "node-protocol-identifier"
self.yang_parent_name = "prefix-info"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([("igp-information", ("igp_information", Xtc.PrefixInfos.PrefixInfo.NodeProtocolIdentifier.IgpInformation))])
self._leafs = OrderedDict([
('node_name', (YLeaf(YType.str, 'node-name'), ['str'])),
('ipv4_bgp_router_id_set', (YLeaf(YType.boolean, 'ipv4-bgp-router-id-set'), ['bool'])),
('ipv4_bgp_router_id', (YLeaf(YType.str, 'ipv4-bgp-router-id'), ['str'])),
('ipv4te_router_id_set', (YLeaf(YType.boolean, 'ipv4te-router-id-set'), ['bool'])),
('ipv4te_router_id', (YLeaf(YType.str, 'ipv4te-router-id'), ['str'])),
])
self.node_name = None
self.ipv4_bgp_router_id_set = None
self.ipv4_bgp_router_id = None
self.ipv4te_router_id_set = None
self.ipv4te_router_id = None
self.igp_information = YList(self)
self._segment_path = lambda: "node-protocol-identifier"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc.PrefixInfos.PrefixInfo.NodeProtocolIdentifier, ['node_name', 'ipv4_bgp_router_id_set', 'ipv4_bgp_router_id', 'ipv4te_router_id_set', 'ipv4te_router_id'], name, value)
class IgpInformation(_Entity_):
"""
IGP information
.. attribute:: igp
IGP\-specific information
**type**\: :py:class:`Igp <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Xtc.PrefixInfos.PrefixInfo.NodeProtocolIdentifier.IgpInformation.Igp>`
**config**\: False
.. attribute:: domain_identifier
Domain identifier
**type**\: int
**range:** 0..18446744073709551615
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc.PrefixInfos.PrefixInfo.NodeProtocolIdentifier.IgpInformation, self).__init__()
self.yang_name = "igp-information"
self.yang_parent_name = "node-protocol-identifier"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([("igp", ("igp", Xtc.PrefixInfos.PrefixInfo.NodeProtocolIdentifier.IgpInformation.Igp))])
self._leafs = OrderedDict([
('domain_identifier', (YLeaf(YType.uint64, 'domain-identifier'), ['int'])),
])
self.domain_identifier = None
self.igp = Xtc.PrefixInfos.PrefixInfo.NodeProtocolIdentifier.IgpInformation.Igp()
self.igp.parent = self
self._children_name_map["igp"] = "igp"
self._segment_path = lambda: "igp-information"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc.PrefixInfos.PrefixInfo.NodeProtocolIdentifier.IgpInformation, ['domain_identifier'], name, value)
class Igp(_Entity_):
"""
IGP\-specific information
.. attribute:: isis
ISIS information
**type**\: :py:class:`Isis <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Xtc.PrefixInfos.PrefixInfo.NodeProtocolIdentifier.IgpInformation.Igp.Isis>`
**config**\: False
.. attribute:: ospf
OSPF information
**type**\: :py:class:`Ospf <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Xtc.PrefixInfos.PrefixInfo.NodeProtocolIdentifier.IgpInformation.Igp.Ospf>`
**config**\: False
.. attribute:: bgp
BGP information
**type**\: :py:class:`Bgp <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Xtc.PrefixInfos.PrefixInfo.NodeProtocolIdentifier.IgpInformation.Igp.Bgp>`
**config**\: False
.. attribute:: igp_id
IGP ID
**type**\: :py:class:`XtcIgpInfoId <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.XtcIgpInfoId>`
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc.PrefixInfos.PrefixInfo.NodeProtocolIdentifier.IgpInformation.Igp, self).__init__()
self.yang_name = "igp"
self.yang_parent_name = "igp-information"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([("isis", ("isis", Xtc.PrefixInfos.PrefixInfo.NodeProtocolIdentifier.IgpInformation.Igp.Isis)), ("ospf", ("ospf", Xtc.PrefixInfos.PrefixInfo.NodeProtocolIdentifier.IgpInformation.Igp.Ospf)), ("bgp", ("bgp", Xtc.PrefixInfos.PrefixInfo.NodeProtocolIdentifier.IgpInformation.Igp.Bgp))])
self._leafs = OrderedDict([
('igp_id', (YLeaf(YType.enumeration, 'igp-id'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper', 'XtcIgpInfoId', '')])),
])
self.igp_id = None
self.isis = Xtc.PrefixInfos.PrefixInfo.NodeProtocolIdentifier.IgpInformation.Igp.Isis()
self.isis.parent = self
self._children_name_map["isis"] = "isis"
self.ospf = Xtc.PrefixInfos.PrefixInfo.NodeProtocolIdentifier.IgpInformation.Igp.Ospf()
self.ospf.parent = self
self._children_name_map["ospf"] = "ospf"
self.bgp = Xtc.PrefixInfos.PrefixInfo.NodeProtocolIdentifier.IgpInformation.Igp.Bgp()
self.bgp.parent = self
self._children_name_map["bgp"] = "bgp"
self._segment_path = lambda: "igp"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc.PrefixInfos.PrefixInfo.NodeProtocolIdentifier.IgpInformation.Igp, ['igp_id'], name, value)
class Isis(_Entity_):
"""
ISIS information
.. attribute:: system_id
ISIS system ID
**type**\: str
**config**\: False
.. attribute:: level
ISIS level
**type**\: int
**range:** 0..4294967295
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc.PrefixInfos.PrefixInfo.NodeProtocolIdentifier.IgpInformation.Igp.Isis, self).__init__()
self.yang_name = "isis"
self.yang_parent_name = "igp"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('system_id', (YLeaf(YType.str, 'system-id'), ['str'])),
('level', (YLeaf(YType.uint32, 'level'), ['int'])),
])
self.system_id = None
self.level = None
self._segment_path = lambda: "isis"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc.PrefixInfos.PrefixInfo.NodeProtocolIdentifier.IgpInformation.Igp.Isis, ['system_id', 'level'], name, value)
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc.PrefixInfos.PrefixInfo.NodeProtocolIdentifier.IgpInformation.Igp.Isis']['meta_info']
class Ospf(_Entity_):
"""
OSPF information
.. attribute:: router_id
OSPF router ID
**type**\: str
**pattern:** (([0\-9]\|[1\-9][0\-9]\|1[0\-9][0\-9]\|2[0\-4][0\-9]\|25[0\-5])\\.){3}([0\-9]\|[1\-9][0\-9]\|1[0\-9][0\-9]\|2[0\-4][0\-9]\|25[0\-5])(%[\\p{N}\\p{L}]+)?
**config**\: False
.. attribute:: area
OSPF area
**type**\: int
**range:** 0..4294967295
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc.PrefixInfos.PrefixInfo.NodeProtocolIdentifier.IgpInformation.Igp.Ospf, self).__init__()
self.yang_name = "ospf"
self.yang_parent_name = "igp"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('router_id', (YLeaf(YType.str, 'router-id'), ['str'])),
('area', (YLeaf(YType.uint32, 'area'), ['int'])),
])
self.router_id = None
self.area = None
self._segment_path = lambda: "ospf"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc.PrefixInfos.PrefixInfo.NodeProtocolIdentifier.IgpInformation.Igp.Ospf, ['router_id', 'area'], name, value)
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc.PrefixInfos.PrefixInfo.NodeProtocolIdentifier.IgpInformation.Igp.Ospf']['meta_info']
class Bgp(_Entity_):
"""
BGP information
.. attribute:: router_id
BGP router ID
**type**\: str
**pattern:** (([0\-9]\|[1\-9][0\-9]\|1[0\-9][0\-9]\|2[0\-4][0\-9]\|25[0\-5])\\.){3}([0\-9]\|[1\-9][0\-9]\|1[0\-9][0\-9]\|2[0\-4][0\-9]\|25[0\-5])(%[\\p{N}\\p{L}]+)?
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc.PrefixInfos.PrefixInfo.NodeProtocolIdentifier.IgpInformation.Igp.Bgp, self).__init__()
self.yang_name = "bgp"
self.yang_parent_name = "igp"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('router_id', (YLeaf(YType.str, 'router-id'), ['str'])),
])
self.router_id = None
self._segment_path = lambda: "bgp"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc.PrefixInfos.PrefixInfo.NodeProtocolIdentifier.IgpInformation.Igp.Bgp, ['router_id'], name, value)
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc.PrefixInfos.PrefixInfo.NodeProtocolIdentifier.IgpInformation.Igp.Bgp']['meta_info']
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc.PrefixInfos.PrefixInfo.NodeProtocolIdentifier.IgpInformation.Igp']['meta_info']
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc.PrefixInfos.PrefixInfo.NodeProtocolIdentifier.IgpInformation']['meta_info']
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc.PrefixInfos.PrefixInfo.NodeProtocolIdentifier']['meta_info']
class Address(_Entity_):
"""
Prefix address
.. attribute:: ip_address
Prefix IP address
**type**\: :py:class:`IpAddress <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.Xtc.PrefixInfos.PrefixInfo.Address.IpAddress>`
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc.PrefixInfos.PrefixInfo.Address, self).__init__()
self.yang_name = "address"
self.yang_parent_name = "prefix-info"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([("ip-address", ("ip_address", Xtc.PrefixInfos.PrefixInfo.Address.IpAddress))])
self._leafs = OrderedDict()
self.ip_address = Xtc.PrefixInfos.PrefixInfo.Address.IpAddress()
self.ip_address.parent = self
self._children_name_map["ip_address"] = "ip-address"
self._segment_path = lambda: "address"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc.PrefixInfos.PrefixInfo.Address, [], name, value)
class IpAddress(_Entity_):
"""
Prefix IP address
.. attribute:: af_name
AFName
**type**\: :py:class:`XtcAfId <ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper.XtcAfId>`
**config**\: False
.. attribute:: ipv4
IPv4 address type
**type**\: str
**pattern:** (([0\-9]\|[1\-9][0\-9]\|1[0\-9][0\-9]\|2[0\-4][0\-9]\|25[0\-5])\\.){3}([0\-9]\|[1\-9][0\-9]\|1[0\-9][0\-9]\|2[0\-4][0\-9]\|25[0\-5])(%[\\p{N}\\p{L}]+)?
**config**\: False
.. attribute:: ipv6
IPv6 address type
**type**\: str
**pattern:** ((\:\|[0\-9a\-fA\-F]{0,4})\:)([0\-9a\-fA\-F]{0,4}\:){0,5}((([0\-9a\-fA\-F]{0,4}\:)?(\:\|[0\-9a\-fA\-F]{0,4}))\|(((25[0\-5]\|2[0\-4][0\-9]\|[01]?[0\-9]?[0\-9])\\.){3}(25[0\-5]\|2[0\-4][0\-9]\|[01]?[0\-9]?[0\-9])))(%[\\p{N}\\p{L}]+)?
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc.PrefixInfos.PrefixInfo.Address.IpAddress, self).__init__()
self.yang_name = "ip-address"
self.yang_parent_name = "address"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('af_name', (YLeaf(YType.enumeration, 'af-name'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_infra_xtc_agent_oper', 'XtcAfId', '')])),
('ipv4', (YLeaf(YType.str, 'ipv4'), ['str'])),
('ipv6', (YLeaf(YType.str, 'ipv6'), ['str'])),
])
self.af_name = None
self.ipv4 = None
self.ipv6 = None
self._segment_path = lambda: "ip-address"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc.PrefixInfos.PrefixInfo.Address.IpAddress, ['af_name', 'ipv4', 'ipv6'], name, value)
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc.PrefixInfos.PrefixInfo.Address.IpAddress']['meta_info']
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc.PrefixInfos.PrefixInfo.Address']['meta_info']
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc.PrefixInfos.PrefixInfo']['meta_info']
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc.PrefixInfos']['meta_info']
class InterfaceSummary(_Entity_):
"""
Summary of all interfaces
.. attribute:: interface_count
Number of interfaces
**type**\: int
**range:** 0..4294967295
**config**\: False
.. attribute:: interface_operational_up_count
Number of interfaces that are operationally up
**type**\: int
**range:** 0..4294967295
**config**\: False
.. attribute:: interface_operational_down_count
Number of interfaces that are operationally down
**type**\: int
**range:** 0..4294967295
**config**\: False
"""
_prefix = 'infra-xtc-agent-oper'
_revision = '2019-09-09'
def __init__(self):
if sys.version_info > (3,):
super().__init__()
else:
super(Xtc.InterfaceSummary, self).__init__()
self.yang_name = "interface-summary"
self.yang_parent_name = "xtc"
self.is_top_level_class = False
self.has_list_ancestor = False
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('interface_count', (YLeaf(YType.uint32, 'interface-count'), ['int'])),
('interface_operational_up_count', (YLeaf(YType.uint32, 'interface-operational-up-count'), ['int'])),
('interface_operational_down_count', (YLeaf(YType.uint32, 'interface-operational-down-count'), ['int'])),
])
self.interface_count = None
self.interface_operational_up_count = None
self.interface_operational_down_count = None
self._segment_path = lambda: "interface-summary"
self._absolute_path = lambda: "Cisco-IOS-XR-infra-xtc-agent-oper:xtc/%s" % self._segment_path()
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(Xtc.InterfaceSummary, ['interface_count', 'interface_operational_up_count', 'interface_operational_down_count'], name, value)
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc.InterfaceSummary']['meta_info']
def clone_ptr(self):
self._top_entity = Xtc()
return self._top_entity
@staticmethod
def _meta_info():
from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_infra_xtc_agent_oper as meta
return meta._meta_table['Xtc']['meta_info']
| 44.061188
| 1,092
| 0.428034
| 44,814
| 545,830
| 4.921676
| 0.013701
| 0.028255
| 0.035319
| 0.04193
| 0.870452
| 0.834494
| 0.801256
| 0.779883
| 0.761824
| 0.74397
| 0
| 0.033906
| 0.462151
| 545,830
| 12,387
| 1,093
| 44.064745
| 0.717386
| 0.221089
| 0
| 0.712746
| 0
| 0.001658
| 0.138929
| 0.047576
| 0.000207
| 0
| 0
| 0
| 0
| 1
| 0.089948
| false
| 0
| 0.033161
| 0
| 0.199585
| 0
| 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
|
0d66970434c38d37db95abdf957b12b3aed6e2b5
| 8,267
|
py
|
Python
|
tests/test_signer.py
|
erykpekala/python-cwt
|
44db646cc0720b41f23425e2bed03bd5d1a7b6c7
|
[
"MIT"
] | 1
|
2021-08-09T22:07:54.000Z
|
2021-08-09T22:07:54.000Z
|
tests/test_signer.py
|
erykpekala/python-cwt
|
44db646cc0720b41f23425e2bed03bd5d1a7b6c7
|
[
"MIT"
] | null | null | null |
tests/test_signer.py
|
erykpekala/python-cwt
|
44db646cc0720b41f23425e2bed03bd5d1a7b6c7
|
[
"MIT"
] | null | null | null |
"""
Tests for Signer.
"""
import cbor2
import pytest
from cwt import COSEKey, Signer
from .utils import key_path
class TestSigner:
"""
Tests for Signer.
"""
def test_signer_constructor(self):
signer = Signer(
cose_key=COSEKey.from_jwk(
{
"kty": "EC",
"kid": "01",
"crv": "P-256",
"x": "usWxHK2PmfnHKwXPS54m0kTcGJ90UiglWiGahtagnv8",
"y": "IBOL-C3BttVivg-lSreASjpkttcsz-1rb7btKLv8EX4",
"d": "V8kgd2ZBRuh2dgyVINBUqpPDr7BOMGcF22CQMIUHtNM",
}
),
protected={1: -7},
unprotected={4: b"01"},
)
assert signer.unprotected[4] == b"01"
assert cbor2.loads(signer.protected)[1] == -7
assert signer.cose_key.alg == -7
assert signer.cose_key.kid == b"01"
try:
signer.sign(b"Hello world!")
signer.verify(b"Hello world!")
except Exception:
pytest.fail("signer.sign and verify should not fail.")
def test_signer_constructor_with_protected_bytes(self):
signer = Signer(
cose_key=COSEKey.from_jwk(
{
"kty": "EC",
"kid": "01",
"crv": "P-256",
"x": "usWxHK2PmfnHKwXPS54m0kTcGJ90UiglWiGahtagnv8",
"y": "IBOL-C3BttVivg-lSreASjpkttcsz-1rb7btKLv8EX4",
"d": "V8kgd2ZBRuh2dgyVINBUqpPDr7BOMGcF22CQMIUHtNM",
}
),
protected=cbor2.dumps({1: -7}),
unprotected={4: b"01"},
)
assert signer.unprotected[4] == b"01"
assert cbor2.loads(signer.protected)[1] == -7
assert signer.cose_key.alg == -7
assert signer.cose_key.kid == b"01"
try:
signer.sign(b"Hello world!")
signer.verify(b"Hello world!")
except Exception:
pytest.fail("signer.sign and verify should not fail.")
def test_signer_new(self):
signer = Signer.new(
cose_key=COSEKey.from_jwk(
{
"kty": "EC",
"kid": "01",
"crv": "P-256",
"x": "usWxHK2PmfnHKwXPS54m0kTcGJ90UiglWiGahtagnv8",
"y": "IBOL-C3BttVivg-lSreASjpkttcsz-1rb7btKLv8EX4",
"d": "V8kgd2ZBRuh2dgyVINBUqpPDr7BOMGcF22CQMIUHtNM",
}
),
protected={"alg": "ES256"},
unprotected={"kid": "01"},
)
assert signer.unprotected[4] == b"01"
assert cbor2.loads(signer.protected)[1] == -7
assert signer.cose_key.alg == -7
assert signer.cose_key.kid == b"01"
try:
signer.sign(b"Hello world!")
signer.verify(b"Hello world!")
except Exception:
pytest.fail("signer.sign and verify should not fail.")
def test_signer_new_with_protected_bytes(self):
signer = Signer.new(
cose_key=COSEKey.from_jwk(
{
"kty": "EC",
"kid": "01",
"crv": "P-256",
"x": "usWxHK2PmfnHKwXPS54m0kTcGJ90UiglWiGahtagnv8",
"y": "IBOL-C3BttVivg-lSreASjpkttcsz-1rb7btKLv8EX4",
"d": "V8kgd2ZBRuh2dgyVINBUqpPDr7BOMGcF22CQMIUHtNM",
}
),
protected=cbor2.dumps({1: -7}),
unprotected={"kid": "01"},
)
assert signer.unprotected[4] == b"01"
assert cbor2.loads(signer.protected)[1] == -7
assert signer.cose_key.alg == -7
assert signer.cose_key.kid == b"01"
try:
signer.sign(b"Hello world!")
signer.verify(b"Hello world!")
except Exception:
pytest.fail("signer.sign and verify should not fail.")
def test_signer_from_jwt(self):
signer = Signer.from_jwk(
{
"kty": "EC",
"kid": "01",
"crv": "P-256",
"x": "usWxHK2PmfnHKwXPS54m0kTcGJ90UiglWiGahtagnv8",
"y": "IBOL-C3BttVivg-lSreASjpkttcsz-1rb7btKLv8EX4",
"d": "V8kgd2ZBRuh2dgyVINBUqpPDr7BOMGcF22CQMIUHtNM",
},
)
assert signer.unprotected[4] == b"01"
assert cbor2.loads(signer.protected)[1] == -7
assert signer.cose_key.alg == -7
assert signer.cose_key.kid == b"01"
try:
signer.sign(b"Hello world!")
signer.verify(b"Hello world!")
except Exception:
pytest.fail("signer.sign and verify should not fail.")
def test_signer_from_jwt_without_kid(self):
signer = Signer.from_jwk(
{
"kty": "EC",
"crv": "P-256",
"x": "usWxHK2PmfnHKwXPS54m0kTcGJ90UiglWiGahtagnv8",
"y": "IBOL-C3BttVivg-lSreASjpkttcsz-1rb7btKLv8EX4",
"d": "V8kgd2ZBRuh2dgyVINBUqpPDr7BOMGcF22CQMIUHtNM",
},
)
assert cbor2.loads(signer.protected)[1] == -7
assert signer.cose_key.alg == -7
assert signer.cose_key.kid is None
try:
signer.sign(b"Hello world!")
signer.verify(b"Hello world!")
except Exception:
pytest.fail("signer.sign and verify should not fail.")
def test_signer_from_jwt_with_key_ops(self):
signer = Signer.from_jwk(
{
"kty": "EC",
"kid": "01",
"crv": "P-256",
"x": "usWxHK2PmfnHKwXPS54m0kTcGJ90UiglWiGahtagnv8",
"y": "IBOL-C3BttVivg-lSreASjpkttcsz-1rb7btKLv8EX4",
"d": "V8kgd2ZBRuh2dgyVINBUqpPDr7BOMGcF22CQMIUHtNM",
"key_ops": ["sign", "verify"],
},
)
assert signer.unprotected[4] == b"01"
assert cbor2.loads(signer.protected)[1] == -7
assert signer.cose_key.alg == -7
assert signer.cose_key.kid == b"01"
try:
signer.sign(b"Hello world!")
signer.verify(b"Hello world!")
except Exception:
pytest.fail("signer.sign and verify should not fail.")
def test_signer_from_jwk_with_invalid_alg(self):
with pytest.raises(ValueError) as err:
Signer.from_jwk(
{"kty": "oct", "alg": "HS256", "kid": "01", "k": "xxxxxxxxxx"}
)
assert "Unsupported or unknown alg for signature: 5." in str(err.value)
def test_signer_from_jwt_with_invalid_key_ops(self):
with pytest.raises(ValueError) as err:
Signer.from_jwk(
{
"kty": "EC",
"kid": "01",
"crv": "P-256",
"x": "usWxHK2PmfnHKwXPS54m0kTcGJ90UiglWiGahtagnv8",
"y": "IBOL-C3BttVivg-lSreASjpkttcsz-1rb7btKLv8EX4",
"d": "V8kgd2ZBRuh2dgyVINBUqpPDr7BOMGcF22CQMIUHtNM",
"key_ops": ["encrypt", "decrypt"],
},
)
assert "Unknown or not permissible key_ops(4) for EC2." in str(err.value)
def test_signer_from_pem(self):
with open(key_path("private_key_ed25519.pem")) as key_file:
signer = Signer.from_pem(key_file.read(), kid="01")
assert signer.unprotected[4] == b"01"
assert cbor2.loads(signer.protected)[1] == -8
assert signer.cose_key.alg == -8
assert signer.cose_key.kid == b"01"
try:
signer.sign(b"Hello world!")
signer.verify(b"Hello world!")
except Exception:
pytest.fail("signer.sign and verify should not fail.")
def test_signer_from_pem_without_kid(self):
with open(key_path("private_key_ed25519.pem")) as key_file:
signer = Signer.from_pem(key_file.read())
assert cbor2.loads(signer.protected)[1] == -8
assert signer.cose_key.alg == -8
assert signer.cose_key.kid is None
try:
signer.sign(b"Hello world!")
signer.verify(b"Hello world!")
except Exception:
pytest.fail("signer.sign and verify should not fail.")
| 36.742222
| 81
| 0.524737
| 820
| 8,267
| 5.173171
| 0.114634
| 0.070721
| 0.061292
| 0.080622
| 0.917963
| 0.916549
| 0.905469
| 0.898868
| 0.884724
| 0.884724
| 0
| 0.055109
| 0.352486
| 8,267
| 224
| 82
| 36.90625
| 0.737344
| 0.004234
| 0
| 0.753695
| 0
| 0
| 0.245828
| 0.131319
| 0
| 0
| 0
| 0
| 0.17734
| 1
| 0.054187
| false
| 0
| 0.019704
| 0
| 0.078818
| 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
|
0dda443c8645006cdda65ccc211ad5c21d734448
| 8,420
|
py
|
Python
|
checkio/PyCon TW/The Einstein Problem-Lite/test_einstein_problem.py
|
KenMercusLai/checkio
|
c7702221e1bc0b0b30425859ffa6c09722949d65
|
[
"MIT"
] | 39
|
2015-02-09T13:24:12.000Z
|
2019-05-16T17:51:19.000Z
|
checkio/PyCon TW/The Einstein Problem-Lite/test_einstein_problem.py
|
KenMercusLai/checkio
|
c7702221e1bc0b0b30425859ffa6c09722949d65
|
[
"MIT"
] | 1
|
2019-10-21T16:18:14.000Z
|
2019-10-21T16:18:14.000Z
|
checkio/PyCon TW/The Einstein Problem-Lite/test_einstein_problem.py
|
KenMercusLai/checkio
|
c7702221e1bc0b0b30425859ffa6c09722949d65
|
[
"MIT"
] | 22
|
2015-01-30T18:00:05.000Z
|
2021-05-22T02:57:23.000Z
|
import unittest
from einstein_problem import answer
class Tests(unittest.TestCase):
TESTS = {
"Basic": [
{
"input": (
(
'Norwegian-Dunhill',
'Marlboro-blue',
'Brit-3',
'German-coffee',
'beer-white',
'cat-water',
'horse-2',
'milk-3',
'4-Rothmans',
'dog-Swede',
'Norwegian-1',
'horse-Marlboro',
'bird-Brit',
'4-green',
'Winfield-beer',
'Dane-blue',
'5-dog',
'blue-horse',
'yellow-cat',
'Winfield-Swede',
'tea-Marlboro',
),
'fish-color',
),
"answer": 'green',
},
{
"input": (
(
'Norwegian-Dunhill',
'Marlboro-blue',
'Brit-3',
'German-coffee',
'beer-white',
'cat-water',
'horse-2',
'milk-3',
'4-Rothmans',
'dog-Swede',
'Norwegian-1',
'horse-Marlboro',
'bird-Brit',
'4-green',
'Winfield-beer',
'Dane-blue',
'5-dog',
'blue-horse',
'yellow-cat',
'Winfield-Swede',
'tea-Marlboro',
),
'tea-number',
),
"answer": '2',
},
{
"input": (
(
'Norwegian-Dunhill',
'Marlboro-blue',
'Brit-3',
'German-coffee',
'beer-white',
'cat-water',
'horse-2',
'milk-3',
'4-Rothmans',
'dog-Swede',
'Norwegian-1',
'horse-Marlboro',
'bird-Brit',
'4-green',
'Winfield-beer',
'Dane-blue',
'5-dog',
'blue-horse',
'yellow-cat',
'Winfield-Swede',
'tea-Marlboro',
),
'Norwegian-beverage',
),
"answer": 'water',
},
],
"Extra": [
{
"input": (
[
'Norwegian-Dunhill',
'Marlboro-blue',
'Brit-3',
'German-coffee',
'beer-white',
'cat-water',
'horse-2',
'milk-3',
'4-Rothmans',
'dog-Swede',
'Norwegian-1',
'horse-Marlboro',
'bird-Brit',
'4-green',
'Winfield-beer',
'Dane-blue',
'5-dog',
'blue-horse',
'yellow-cat',
'Winfield-Swede',
'tea-Marlboro',
],
'horse-cigarettes',
),
"answer": 'Marlboro',
},
{
"input": (
[
'Norwegian-Dunhill',
'Marlboro-blue',
'Brit-3',
'German-coffee',
'beer-white',
'cat-water',
'horse-2',
'milk-3',
'4-Rothmans',
'dog-Swede',
'Norwegian-1',
'horse-Marlboro',
'bird-Brit',
'4-green',
'Winfield-beer',
'Dane-blue',
'5-dog',
'blue-horse',
'yellow-cat',
'Winfield-Swede',
'tea-Marlboro',
],
'green-number',
),
"answer": '4',
},
{
"input": (
[
'Norwegian-Dunhill',
'Marlboro-blue',
'Brit-3',
'German-coffee',
'beer-white',
'cat-water',
'horse-2',
'milk-3',
'4-Rothmans',
'dog-Swede',
'Norwegian-1',
'horse-Marlboro',
'bird-Brit',
'4-green',
'Winfield-beer',
'Dane-blue',
'5-dog',
'blue-horse',
'yellow-cat',
'Winfield-Swede',
'tea-Marlboro',
],
'milk-color',
),
"answer": 'red',
},
{
"input": (
[
'Norwegian-Dunhill',
'Marlboro-blue',
'Brit-3',
'German-coffee',
'beer-white',
'cat-water',
'horse-2',
'milk-3',
'4-Rothmans',
'dog-Swede',
'Norwegian-1',
'horse-Marlboro',
'bird-Brit',
'4-green',
'Winfield-beer',
'Dane-blue',
'5-dog',
'blue-horse',
'yellow-cat',
'Winfield-Swede',
'tea-Marlboro',
],
'Winfield-nationality',
),
"answer": 'Swede',
},
{
"input": (
[
'Norwegian-Dunhill',
'Marlboro-blue',
'Brit-3',
'German-coffee',
'beer-white',
'cat-water',
'horse-2',
'milk-3',
'4-Rothmans',
'dog-Swede',
'Norwegian-1',
'horse-Marlboro',
'bird-Brit',
'4-green',
'Winfield-beer',
'Dane-blue',
'5-dog',
'blue-horse',
'yellow-cat',
'Winfield-Swede',
'tea-Marlboro',
],
'yellow-pet',
),
"answer": 'cat',
},
],
}
def test_Basics(self):
for i in self.TESTS['Basic']:
assert answer(*i['input']) == i['answer']
def test_Extra(self):
for i in self.TESTS['Extra']:
assert answer(*i['input']) == i['answer']
if __name__ == "__main__": # pragma: no cover
unittest.main()
| 32.762646
| 53
| 0.23943
| 430
| 8,420
| 4.662791
| 0.14186
| 0.05586
| 0.083791
| 0.115711
| 0.833915
| 0.833915
| 0.790025
| 0.790025
| 0.790025
| 0.790025
| 0
| 0.019748
| 0.651188
| 8,420
| 256
| 54
| 32.890625
| 0.662921
| 0.0019
| 0
| 0.787149
| 0
| 0
| 0.236491
| 0
| 0
| 0
| 0
| 0
| 0.008032
| 1
| 0.008032
| false
| 0
| 0.008032
| 0
| 0.024096
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 1
| 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
|
21b80c27146304b1733d99363201f5be609e3df6
| 1,100
|
py
|
Python
|
J_Mathematical_Modeling/Section 1/solutionQuestion4explanation.py
|
sylvain2002/CBM101
|
4d9dc4264ce81cc2af58ceaff96fd0ed7a570af5
|
[
"MIT"
] | 7
|
2019-07-03T07:41:55.000Z
|
2022-02-06T20:25:37.000Z
|
J_Mathematical_Modeling/Section 1/solutionQuestion4explanation.py
|
sylvain2002/CBM101
|
4d9dc4264ce81cc2af58ceaff96fd0ed7a570af5
|
[
"MIT"
] | 9
|
2019-03-14T15:15:09.000Z
|
2019-08-01T14:18:21.000Z
|
J_Mathematical_Modeling/Section 1/solutionQuestion4explanation.py
|
sylvain2002/CBM101
|
4d9dc4264ce81cc2af58ceaff96fd0ed7a570af5
|
[
"MIT"
] | 11
|
2019-03-12T10:43:11.000Z
|
2021-10-05T12:15:00.000Z
|
print("Because we want to compute the ratio of internal to external glucose, both need to be part of the model. Glucose is imported with the help of Hxt proteins. Rgt2 and Snf3 are both redundantly inhibiting Mth1 and Std1, which are also redundant in activating Rgt1, resulting in HXT genes repression. Again, the linear pathway that connects the Rgt2/Snf3 pair to HXT genes expression can be condensed to 2 nodes connected with an activation edge: Snf3/Rgt2 overall activates the HXT genes. In this context, RGT2 deletion can be modeled by a decreased signaling of the Rgt2/Snf3 pair to the HXT genes, hence by a change in model parametrization, not structure. On the other side, similarly, internal glucose overall inhibits SNF3(and other genes, but which are not required for our question, so ignored). All in all we end up with the simplified model structure displayed above. Conceptually, this models preserves the possibility to explore the internal glucose -> SNF3 repression edge, which is currently not understood, by adding new putative model objects acting on this edge (question mark).")
| 1,100
| 1,100
| 0.807273
| 181
| 1,100
| 4.906077
| 0.558011
| 0.036036
| 0.024775
| 0.033784
| 0.038288
| 0
| 0
| 0
| 0
| 0
| 0
| 0.016234
| 0.16
| 1,100
| 1
| 1,100
| 1,100
| 0.944805
| 0
| 0
| 0
| 0
| 1
| 0.990917
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 1
|
0
| 9
|
1d041b445c9fbf0d8b139a64825e2a06a5f802fa
| 63,093
|
py
|
Python
|
test/user17_time.py
|
time-track-tool/time-track-tool
|
a1c280f32a7766e460c862633b748fa206256f24
|
[
"MIT"
] | null | null | null |
test/user17_time.py
|
time-track-tool/time-track-tool
|
a1c280f32a7766e460c862633b748fa206256f24
|
[
"MIT"
] | 1
|
2019-07-03T13:32:38.000Z
|
2019-07-03T13:32:38.000Z
|
test/user17_time.py
|
time-track-tool/time-track-tool
|
a1c280f32a7766e460c862633b748fa206256f24
|
[
"MIT"
] | 1
|
2019-05-15T16:01:31.000Z
|
2019-05-15T16:01:31.000Z
|
from roundup import date
def import_data_17 (db, user, dep, olo) :
sd = dict (months = 1.0, required_overtime = 1, weekly = 0)
otp = db.overtime_period.filter (None, sd)
assert len (otp) == 1
otp = otp [0]
db.user_dynamic.create \
( hours_fri = 7.5
, hours_sun = 0.0
, hours_wed = 7.75
, vacation_yearly = 25.0
, all_in = 0
, valid_from = date.Date ("2018-06-01.00:00:00")
, durations_allowed = 0
, hours_tue = 7.75
, supp_per_period = 7.0
, weekend_allowed = 0
, hours_mon = 7.75
, hours_thu = 7.75
, vacation_day = 1.0
, booking_allowed = 1
, valid_to = date.Date ("2018-12-17.00:00:00")
, weekly_hours = 38.5
, travel_full = 0
, vacation_month = 1.0
, hours_sat = 0.0
, department = dep
, org_location = olo
, overtime_period = otp
, user = user
, vac_aliq = '1'
)
sd = dict (months = 0.0, required_overtime = 0, weekly = 1)
otp = db.overtime_period.filter (None, sd)
assert len (otp) == 1
otp = otp [0]
db.user_dynamic.create \
( hours_fri = 1.0
, hours_sun = 0.0
, additional_hours = 5.0
, hours_wed = 1.0
, vacation_yearly = 25.0
, all_in = 0
, valid_from = date.Date ("2018-12-17.00:00:00")
, durations_allowed = 0
, hours_tue = 1.0
, weekend_allowed = 0
, hours_mon = 1.0
, hours_thu = 1.0
, vacation_day = 1.0
, booking_allowed = 1
, supp_weekly_hours = 5.0
, valid_to = date.Date ("2019-12-17.00:00:00")
, weekly_hours = 5.0
, travel_full = 0
, vacation_month = 1.0
, hours_sat = 0.0
, department = dep
, org_location = olo
, overtime_period = otp
, user = user
, vac_aliq = '1'
)
vcorr = db.vacation_correction.create \
( user = user
, date = date.Date ('2018-12-17.00:00:00')
, absolute = 1
, days = 0.0
)
ls = db.leave_submission.create \
( user = user
, first_day = date.Date ('2019-06-17.00:00:00')
, last_day = date.Date ('2019-06-17.00:00:00')
, status = '7'
, time_wp = '44'
)
ls = db.leave_submission.create \
( user = user
, first_day = date.Date ('2019-06-21.00:00:00')
, last_day = date.Date ('2019-06-21.00:00:00')
, status = '4'
, time_wp = '44'
)
ls = db.leave_submission.create \
( user = user
, first_day = date.Date ('2019-07-29.00:00:00')
, last_day = date.Date ('2019-07-29.00:00:00')
, status = '4'
, time_wp = '44'
)
ls = db.leave_submission.create \
( user = user
, first_day = date.Date ('2019-08-05.00:00:00')
, last_day = date.Date ('2019-08-05.00:00:00')
, status = '4'
, time_wp = '44'
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2018-12-17.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2018-12-18.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
db.time_record.create \
( daily_record = dr
, start = '12:30'
, end = '18:00'
, work_location = '1'
, wp = '4'
)
db.time_record.create \
( daily_record = dr
, start = '09:00'
, end = '12:00'
, work_location = '1'
, wp = '4'
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2018-12-19.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2018-12-20.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
db.time_record.create \
( daily_record = dr
, start = '16:00'
, end = '18:00'
, work_location = '1'
, wp = '4'
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2018-12-21.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2018-12-22.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2018-12-23.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2018-12-24.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
db.time_record.create \
( daily_record = dr
, duration = 1.0
, work_location = '5'
, wp = '1'
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2018-12-25.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
db.time_record.create \
( daily_record = dr
, duration = 1.0
, work_location = '5'
, wp = '1'
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2018-12-26.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
db.time_record.create \
( daily_record = dr
, duration = 1.0
, work_location = '5'
, wp = '1'
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2018-12-27.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
db.time_record.create \
( daily_record = dr
, start = '09:00'
, end = '13:00'
, work_location = '1'
, wp = '4'
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2018-12-28.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2018-12-29.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2018-12-30.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2018-12-31.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
db.time_record.create \
( daily_record = dr
, duration = 1.0
, work_location = '5'
, wp = '1'
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-01-01.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
db.time_record.create \
( daily_record = dr
, duration = 1.0
, work_location = '5'
, wp = '1'
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-01-02.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
db.time_record.create \
( daily_record = dr
, start = '09:00'
, end = '13:00'
, work_location = '2'
, wp = '4'
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-01-03.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-01-04.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-01-05.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-01-06.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-01-07.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-01-08.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-01-09.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
db.time_record.create \
( daily_record = dr
, start = '12:30'
, end = '17:00'
, work_location = '1'
, wp = '4'
)
db.time_record.create \
( daily_record = dr
, start = '10:00'
, end = '12:00'
, work_location = '1'
, wp = '4'
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-01-10.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-01-11.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-01-12.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-01-13.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-01-14.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
db.time_record.create \
( daily_record = dr
, start = '13:00'
, end = '18:00'
, work_location = '1'
, wp = '4'
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-01-15.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-01-16.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-01-17.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-01-18.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-01-19.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-01-20.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-01-21.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-01-22.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-01-23.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
db.time_record.create \
( daily_record = dr
, start = '12:30'
, end = '18:00'
, work_location = '1'
, wp = '4'
)
db.time_record.create \
( daily_record = dr
, start = '10:00'
, end = '12:00'
, work_location = '1'
, wp = '4'
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-01-24.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-01-25.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-01-26.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-01-27.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-01-28.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-01-29.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
db.time_record.create \
( daily_record = dr
, start = '13:00'
, end = '18:00'
, work_location = '1'
, wp = '4'
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-01-30.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-01-31.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-02-01.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-02-02.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-02-03.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-02-04.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-02-05.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-02-06.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-02-07.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-02-08.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
db.time_record.create \
( daily_record = dr
, start = '13:00'
, end = '19:00'
, work_location = '2'
, wp = '4'
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-02-09.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-02-10.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-02-11.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
db.time_record.create \
( daily_record = dr
, start = '13:00'
, end = '18:00'
, work_location = '1'
, wp = '4'
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-02-12.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-02-13.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-02-14.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-02-15.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-02-16.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-02-17.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-02-18.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-02-19.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-02-20.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-02-21.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-02-22.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
db.time_record.create \
( daily_record = dr
, start = '13:00'
, end = '18:00'
, work_location = '1'
, wp = '4'
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-02-23.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-02-24.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-02-25.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
db.time_record.create \
( daily_record = dr
, start = '09:00'
, end = '14:00'
, work_location = '1'
, wp = '4'
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-02-26.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-02-27.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-02-28.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-03-01.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-03-02.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-03-03.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-03-04.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
db.time_record.create \
( daily_record = dr
, start = '12:30'
, end = '16:00'
, work_location = '1'
, wp = '4'
)
db.time_record.create \
( daily_record = dr
, start = '09:00'
, end = '12:00'
, work_location = '1'
, wp = '4'
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-03-05.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-03-06.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-03-07.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-03-08.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-03-09.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-03-10.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-03-11.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-03-12.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
db.time_record.create \
( daily_record = dr
, start = '12:30'
, end = '16:45'
, work_location = '1'
, wp = '4'
)
db.time_record.create \
( daily_record = dr
, start = '08:45'
, end = '12:00'
, work_location = '1'
, wp = '4'
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-03-13.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
db.time_record.create \
( daily_record = dr
, start = '10:00'
, end = '11:00'
, work_location = '3'
, wp = '4'
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-03-14.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-03-15.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-03-16.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-03-17.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-03-18.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-03-19.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-03-20.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-03-21.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-03-22.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
db.time_record.create \
( daily_record = dr
, start = '12:30'
, end = '16:00'
, work_location = '1'
, wp = '4'
)
db.time_record.create \
( daily_record = dr
, start = '08:45'
, end = '12:00'
, work_location = '1'
, wp = '4'
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-03-23.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-03-24.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-03-25.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-03-26.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
db.time_record.create \
( daily_record = dr
, start = '09:00'
, end = '14:00'
, work_location = '2'
, wp = '4'
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-03-27.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-03-28.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-03-29.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-03-30.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-03-31.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-04-01.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-04-02.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-04-03.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-04-04.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
db.time_record.create \
( daily_record = dr
, start = '08:15'
, end = '12:15'
, work_location = '1'
, wp = '4'
)
db.time_record.create \
( daily_record = dr
, start = '14:00'
, end = '15:00'
, work_location = '3'
, wp = '4'
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-04-05.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-04-06.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-04-07.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-04-08.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-04-09.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-04-10.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-04-11.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-04-12.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
db.time_record.create \
( daily_record = dr
, start = '13:00'
, end = '17:00'
, work_location = '1'
, wp = '4'
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-04-13.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-04-14.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-04-15.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-04-16.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
db.time_record.create \
( daily_record = dr
, start = '09:00'
, end = '14:00'
, work_location = '2'
, wp = '4'
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-04-17.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-04-18.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-04-19.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
db.time_record.create \
( daily_record = dr
, duration = 1.0
, work_location = '5'
, wp = '1'
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-04-20.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-04-21.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-04-22.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
db.time_record.create \
( daily_record = dr
, duration = 1.0
, work_location = '5'
, wp = '1'
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-04-23.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
db.time_record.create \
( daily_record = dr
, start = '12:30'
, end = '17:00'
, work_location = '1'
, wp = '4'
)
db.time_record.create \
( daily_record = dr
, start = '09:45'
, end = '12:00'
, work_location = '1'
, wp = '4'
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-04-24.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-04-25.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-04-26.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-04-27.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-04-28.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-04-29.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
db.time_record.create \
( daily_record = dr
, start = '12:30'
, end = '18:00'
, work_location = '2'
, wp = '4'
)
db.time_record.create \
( daily_record = dr
, start = '09:00'
, end = '12:00'
, work_location = '2'
, wp = '4'
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-04-30.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-05-01.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
db.time_record.create \
( daily_record = dr
, duration = 1.0
, work_location = '5'
, wp = '1'
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-05-02.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-05-03.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-05-04.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-05-05.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-05-06.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-05-07.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
db.time_record.create \
( daily_record = dr
, start = '09:00'
, end = '14:00'
, work_location = '1'
, wp = '4'
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-05-08.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-05-09.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-05-10.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-05-11.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-05-12.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-05-13.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-05-14.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-05-15.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-05-16.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
db.time_record.create \
( daily_record = dr
, start = '13:00'
, end = '15:00'
, work_location = '1'
, wp = '4'
)
db.time_record.create \
( daily_record = dr
, start = '16:00'
, end = '19:00'
, work_location = '2'
, wp = '4'
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-05-17.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-05-18.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-05-19.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-05-20.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-05-21.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
db.time_record.create \
( daily_record = dr
, start = '12:30'
, end = '18:00'
, work_location = '1'
, wp = '4'
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-05-22.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-05-23.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-05-24.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-05-25.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-05-26.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-05-27.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
db.time_record.create \
( daily_record = dr
, start = '09:00'
, end = '12:00'
, work_location = '2'
, wp = '4'
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-05-28.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
db.time_record.create \
( daily_record = dr
, start = '15:00'
, end = '18:30'
, work_location = '1'
, wp = '4'
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-05-29.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-05-30.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
db.time_record.create \
( daily_record = dr
, duration = 1.0
, work_location = '5'
, wp = '1'
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-05-31.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-06-01.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-06-02.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-06-03.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-06-04.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
db.time_record.create \
( daily_record = dr
, start = '11:00'
, end = '15:00'
, work_location = '1'
, wp = '4'
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-06-05.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-06-06.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-06-07.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-06-08.00:00:00')
, weekend_allowed = 1
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-06-09.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-06-10.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
db.time_record.create \
( daily_record = dr
, duration = 1.0
, work_location = '5'
, wp = '1'
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-06-11.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
db.time_record.create \
( daily_record = dr
, start = '12:30'
, end = '17:00'
, work_location = '3'
, wp = '4'
)
db.time_record.create \
( daily_record = dr
, start = '09:00'
, end = '12:00'
, work_location = '3'
, wp = '4'
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-06-12.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
db.time_record.create \
( daily_record = dr
, start = '12:30'
, end = '17:00'
, work_location = '3'
, wp = '4'
)
db.time_record.create \
( daily_record = dr
, start = '09:00'
, end = '12:00'
, work_location = '3'
, wp = '4'
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-06-13.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-06-14.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-06-15.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-06-16.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-06-18.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-06-19.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
db.time_record.create \
( daily_record = dr
, start = '09:00'
, end = '11:00'
, work_location = '3'
, wp = '4'
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-06-20.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
db.time_record.create \
( daily_record = dr
, duration = 1.0
, work_location = '5'
, wp = '1'
)
db.time_record.create \
( daily_record = dr
, duration = 1.0
, work_location = '5'
, wp = '44'
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-06-22.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-06-23.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-06-24.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-06-25.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-06-26.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-06-27.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-06-28.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
db.time_record.create \
( daily_record = dr
, start = '09:00'
, end = '15:00'
, work_location = '1'
, wp = '4'
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-06-29.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-06-30.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-07-01.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-07-02.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-07-03.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-07-04.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-07-05.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
db.time_record.create \
( daily_record = dr
, start = '09:00'
, end = '15:00'
, work_location = '1'
, wp = '4'
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-07-06.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-07-07.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-07-08.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-07-09.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-07-10.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-07-11.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-07-12.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
db.time_record.create \
( daily_record = dr
, start = '15:00'
, end = '18:30'
, work_location = '1'
, wp = '4'
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-07-13.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-07-14.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-07-15.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-07-16.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-07-17.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
db.time_record.create \
( daily_record = dr
, start = '13:00'
, end = '18:00'
, work_location = '1'
, wp = '4'
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-07-18.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-07-19.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-07-20.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-07-21.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-07-22.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-07-23.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-07-24.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-07-25.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-07-26.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
db.time_record.create \
( daily_record = dr
, start = '09:00'
, end = '15:00'
, work_location = '2'
, wp = '4'
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-07-27.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-07-28.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
db.time_record.create \
( daily_record = dr
, duration = 1.0
, work_location = '5'
, wp = '44'
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-07-30.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-07-31.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-08-01.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-08-02.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-08-03.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-08-04.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
db.time_record.create \
( daily_record = dr
, duration = 1.0
, work_location = '5'
, wp = '44'
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-08-06.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-08-07.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-08-08.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
db.time_record.create \
( daily_record = dr
, start = '12:30'
, end = '16:30'
, work_location = '2'
, wp = '4'
)
db.time_record.create \
( daily_record = dr
, start = '10:00'
, end = '12:00'
, work_location = '2'
, wp = '4'
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-08-09.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
db.time_record.create \
( daily_record = dr
, start = '08:30'
, end = '10:00'
, work_location = '2'
, wp = '4'
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-08-10.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-08-11.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-08-12.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-08-13.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-08-14.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
db.time_record.create \
( daily_record = dr
, start = '14:00'
, end = '18:00'
, work_location = '1'
, wp = '4'
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-08-15.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
db.time_record.create \
( daily_record = dr
, duration = 1.0
, work_location = '5'
, wp = '1'
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-08-16.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-08-17.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-08-18.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-08-19.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-08-20.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-08-21.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-08-22.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-08-23.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
db.time_record.create \
( daily_record = dr
, start = '12:30'
, end = '16:00'
, work_location = '2'
, wp = '4'
)
db.time_record.create \
( daily_record = dr
, start = '08:00'
, end = '12:00'
, work_location = '2'
, wp = '4'
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-08-24.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-08-25.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-08-26.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
db.time_record.create \
( daily_record = dr
, start = '15:00'
, end = '17:00'
, work_location = '2'
, wp = '4'
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-08-27.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
db.time_record.create \
( daily_record = dr
, start = '08:00'
, end = '12:00'
, work_location = '1'
, wp = '4'
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-08-28.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
db.time_record.create \
( daily_record = dr
, start = '10:00'
, end = '12:00'
, work_location = '2'
, wp = '4'
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-08-29.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-08-30.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-08-31.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
dr = db.daily_record.create \
( user = user
, date = date.Date ('2019-09-01.00:00:00')
, weekend_allowed = 0
, required_overtime = 0
)
db.commit ()
# end def import_data_17
| 29.760849
| 64
| 0.462254
| 7,283
| 63,093
| 3.859673
| 0.016339
| 0.076272
| 0.057204
| 0.163927
| 0.986695
| 0.986553
| 0.98392
| 0.98079
| 0.976912
| 0.972145
| 0
| 0.134774
| 0.412581
| 63,093
| 2,119
| 65
| 29.774894
| 0.623685
| 0.000349
| 0
| 0.700992
| 0
| 0
| 0.092327
| 0
| 0
| 0
| 0
| 0
| 0.000945
| 1
| 0.000472
| false
| 0
| 0.000945
| 0
| 0.001417
| 0
| 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
|
df43ae108b046e57c43b529669a049ef02f99e5d
| 3,681
|
py
|
Python
|
pychoir/comparisons.py
|
jerry-git/pychoir
|
f3045bfe0a3586232bbfb5adfe425d9b947b4a9f
|
[
"MIT"
] | 12
|
2020-12-09T00:15:04.000Z
|
2022-02-27T16:39:15.000Z
|
pychoir/comparisons.py
|
jerry-git/pychoir
|
f3045bfe0a3586232bbfb5adfe425d9b947b4a9f
|
[
"MIT"
] | 1
|
2021-01-09T23:01:03.000Z
|
2021-01-15T00:39:48.000Z
|
pychoir/comparisons.py
|
jerry-git/pychoir
|
f3045bfe0a3586232bbfb5adfe425d9b947b4a9f
|
[
"MIT"
] | 2
|
2021-06-01T12:17:12.000Z
|
2021-06-22T00:55:12.000Z
|
from typing import Any
from pychoir.core import Matcher
class EqualTo(Matcher):
"""A somewhat redundant matcher checking for equality. Most Matchers can take
values and/or Matchers and **you should prefer bare values instead of wrapping them
in EqualTo**.
:param value: The value to compare against.
Usage:
>>> from pychoir import EqualTo
>>> 1 == EqualTo(1)
True
"""
def __init__(self, value: Any):
super().__init__()
self.value = value
def _matches(self, other: Any) -> bool:
return bool(other == self.value)
def _description(self) -> str:
return repr(self.value)
EQ = EqualTo
class NotEqualTo(Matcher):
"""A Matcher checking that compared value is not equal to the given value.
:param value: The value to compare against.
Usage:
>>> from pychoir import NotEqualTo
>>> 1 == NotEqualTo(2)
True
>>> 1 == NotEqualTo(1)
False
"""
def __init__(self, value: Any):
super().__init__()
self.value = value
def _matches(self, other: Any) -> bool:
return bool(other != self.value)
def _description(self) -> str:
return repr(self.value)
NE = NotEqualTo
class GreaterThan(Matcher):
"""A Matcher checking that compared value is greater than the given value.
:param threshold: The value to compare against.
Usage:
>>> from pychoir import GreaterThan
>>> [2] == [GreaterThan(2)]
False
>>> [3] == [GreaterThan(2)]
True
"""
def __init__(self, threshold: Any):
super().__init__()
self.threshold = threshold
def _matches(self, other: Any) -> bool:
return bool(other > self.threshold)
def _description(self) -> str:
return repr(self.threshold)
GT = GreaterThan
class GreaterThanOrEqualTo(Matcher):
"""A Matcher checking that compared value is greater than or equal to the given value.
:param threshold: The value to compare against.
Usage:
>>> from pychoir import GreaterThanOrEqualTo
>>> 2 == GreaterThanOrEqualTo(2)
True
>>> 1 == GreaterThanOrEqualTo(2)
False
"""
def __init__(self, threshold: Any):
super().__init__()
self.threshold = threshold
def _matches(self, other: Any) -> bool:
return bool(other >= self.threshold)
def _description(self) -> str:
return repr(self.threshold)
GTE = GreaterThanOrEqualTo
class LessThan(Matcher):
"""A Matcher checking that compared value is less than the given value.
:param threshold: The value to compare against.
Usage:
>>> from pychoir import LessThan
>>> 2 == LessThan(2)
False
>>> 1 == LessThan(2)
True
"""
def __init__(self, threshold: Any):
super().__init__()
self.threshold = threshold
def _matches(self, other: Any) -> bool:
return bool(other < self.threshold)
def _description(self) -> str:
return repr(self.threshold)
LT = LessThan
class LessThanOrEqualTo(Matcher):
"""A Matcher checking that compared value is less than or equal to the given value.
:param threshold: The value to compare against.
Usage:
>>> from pychoir import LessThanOrEqualTo
>>> 2 == LessThanOrEqualTo(2)
True
>>> 3 == LessThanOrEqualTo(2)
False
"""
def __init__(self, threshold: Any):
super().__init__()
self.threshold = threshold
def _matches(self, other: Any) -> bool:
return bool(other <= self.threshold)
def _description(self) -> str:
return repr(self.threshold)
LTE = LessThanOrEqualTo
| 23.00625
| 90
| 0.622657
| 423
| 3,681
| 5.276596
| 0.177305
| 0.09319
| 0.060932
| 0.045699
| 0.709677
| 0.709677
| 0.700717
| 0.700717
| 0.6819
| 0.6819
| 0
| 0.008203
| 0.271394
| 3,681
| 159
| 91
| 23.150943
| 0.824012
| 0.41103
| 0
| 0.642857
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.321429
| false
| 0
| 0.035714
| 0.214286
| 0.678571
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 7
|
df84a4259efd4416fb20bfde4eb889b7b4ce250d
| 317,815
|
py
|
Python
|
parser/team06/parsetab.py
|
18SebastianVC/tytus
|
2b22f4339356b6cf46e3235a5219f68e5ba5573b
|
[
"MIT"
] | null | null | null |
parser/team06/parsetab.py
|
18SebastianVC/tytus
|
2b22f4339356b6cf46e3235a5219f68e5ba5573b
|
[
"MIT"
] | null | null | null |
parser/team06/parsetab.py
|
18SebastianVC/tytus
|
2b22f4339356b6cf46e3235a5219f68e5ba5573b
|
[
"MIT"
] | null | null | null |
# parsetab.py
# This file is automatically generated. Do not edit.
# pylint: disable=W,C,R
_tabversion = '3.10'
_lr_method = 'LALR'
_lr_signature = 'leftTYPECASTrightUMINUSrightUNOTleftMASMENOSleftPOTENCIAleftPORDIVRESIDUOleftANDORSIMBOLOOR2SIMBOLOORSIMBOLOAND2leftDESPLAZAMIENTOIZQUIERDADESPLAZAMIENTODERECHAABS ACOS ACOSD ACOSH ADD ALL ALTER AND ANY AS ASC ASIN ASIND ASINH ATAN ATAN2 ATAN2D ATAND ATANH AUTO_INCREMENT AVG BEGIN BETWEEN BIGINT BOOLEAN BOTH BY CADENA CASE CBRT CEIL CEILING CHAR CHARACTER CHECK COLOCHO COLUMN COLUMNS COMA CONCAT CONSTRAINT CONT CONVERT CORCHETEDER CORCHETEIZQ COS COSD COSH COT COTD CREATE CURRENT_USER DATABASE DATABASES DATE DAY DECIMAL DECIMALTOKEN DECLARE DECODE DEFAULT DEGREES DELETE DESC DESPLAZAMIENTODERECHA DESPLAZAMIENTOIZQUIERDA DIFERENTE DISTINCT DIV DIV DOSPUNTOS DOUBLE DROP ELSE ENCODE END ENTERO ENUM ENUM ESCAPE ETIQUETA EXCEPT EXISTS EXP FACTORIAL FALSE FIRST FLOOR FOR FOREIGN FROM FULL FUNCTION GCD GET_BYTE GREATEST GROUP HAVING HOUR ID IF IGUAL IGUALIGUAL ILIKE IN INHERITS INNER INSERT INTEGER INTERSECT INTERVAL INTO IS ISNULL JOIN KEY LAST LCM LEADING LEAST LEFT LENGTH LIKE LIMIT LN LOG LOG10 MAS MAX MAYOR MAYORIGUAL MD5 MENOR MENORIGUAL MENOS MIN MINUTE MIN_SCALE MOD MODE MONEY MONTH NATURAL NOT NOTEQUAL NOTNULL NULL NULLS NUMERAL NUMERIC OF OFFSET ON ONLY OR ORDER OUTER OWNER PARENTESISDERECHA PARENTESISIZQUIERDA PI POR POTENCIA POWER PRECISION PRIMARY PUNTO PUNTOYCOMA RADIANS RANDOM REAL REFERENCES RENAME REPLACE RESIDUO RETURNING RETURNS RIGHT ROUND SCALE SECOND SELECT SESSION_USER SET SETSEED SET_BYTE SHA256 SHOW SIGN SIMBOLOAND SIMBOLOAND2 SIMBOLOOR SIMBOLOOR2 SIN SIND SINH SMALLINT SOME SQRT SUBSTR SUBSTRING SUM SYMMETRIC TABLE TABLES TAN TAND TANH TEXT THEN TIME TIMESTAMP TO TRAILING TRIM TRIM_SCALE TRUE TRUNC TYPE TYPECAST UNION UNIQUE UNKNOWN UPDATE UPPER USING VALUES VARCHAR VARYING VIEW WHEN WHERE WIDTH_BUCKET YEARinicio : queriesqueries : queries queryqueries : queryquery : mostrarBD\n | crearBD\n | alterBD\n | dropBD\n | operacion\n | insertinBD\n | updateinBD\n | deleteinBD\n | createTable\n | inheritsBD\n | dropTable\n | alterTable\n | variantesAt\n | contAdd\n | contDrop\n | contAlter\n | listaid\n | tipoAlter \n | selectData\n crearBD : CREATE DATABASE ID PUNTOYCOMAcrearBD : CREATE OR REPLACE DATABASE ID PUNTOYCOMAcrearBD : CREATE OR REPLACE DATABASE ID parametrosCrearBD PUNTOYCOMAcrearBD : CREATE DATABASE ID parametrosCrearBD PUNTOYCOMAparametrosCrearBD : parametrosCrearBD parametroCrearBDparametrosCrearBD : parametroCrearBDparametroCrearBD : OWNER IGUAL final\n | MODE IGUAL final\n mostrarBD : SHOW DATABASES PUNTOYCOMAalterBD : ALTER DATABASE ID RENAME TO ID PUNTOYCOMAalterBD : ALTER DATABASE ID OWNER TO parametroAlterUser PUNTOYCOMAparametroAlterUser : CURRENT_USER\n | SESSION_USER\n | final\n dropTable : DROP TABLE ID PUNTOYCOMA\n alterTable : ALTER TABLE ID variantesAt PUNTOYCOMA\n\n \n variantesAt : ADD contAdd\n | ALTER contAlter\n | DROP contDrop\n \n listaContAlter : listaContAlter COMA contAlter \n \n listaContAlter : contAlter\n \n contAlter : COLUMN ID SET NOT NULL \n | COLUMN ID TYPE tipo\n \n contAdd : COLUMN ID tipo \n | CHECK PARENTESISIZQUIERDA operacion PARENTESISDERECHA\n | FOREIGN KEY PARENTESISIZQUIERDA ID PARENTESISDERECHA REFERENCES ID\n | PRIMARY KEY PARENTESISIZQUIERDA ID PARENTESISDERECHA\n | CONSTRAINT ID PRIMARY KEY PARENTESISIZQUIERDA ID PARENTESISDERECHA\n | CONSTRAINT ID UNIQUE PARENTESISIZQUIERDA listaid PARENTESISDERECHA\n \n contDrop : COLUMN ID \n | CONSTRAINT ID\n \n listaid : listaid COMA ID\n \n listaid : ID\n \n tipoAlter : ADD \n | DROP\n dropBD : DROP DATABASE ID PUNTOYCOMAdropBD : DROP DATABASE IF EXISTS ID PUNTOYCOMAoperacion : operacion MAS operacion\n | operacion MENOS operacion\n | operacion POR operacion\n | operacion DIV operacion\n | operacion RESIDUO operacion\n | operacion POTENCIA operacion\n | operacion AND operacion\n | operacion OR operacion\n | operacion SIMBOLOOR2 operacion\n | operacion SIMBOLOOR operacion\n | operacion SIMBOLOAND2 operacion\n | operacion DESPLAZAMIENTOIZQUIERDA operacion\n | operacion DESPLAZAMIENTODERECHA operacion\n | operacion IGUAL operacion\n | operacion IGUALIGUAL operacion\n | operacion NOTEQUAL operacion\n | operacion MAYORIGUAL operacion\n | operacion MENORIGUAL operacion\n | operacion MAYOR operacion\n | operacion MENOR operacion\n | operacion DIFERENTE operacion\n | PARENTESISIZQUIERDA operacion PARENTESISDERECHA \n operacion : MENOS ENTERO %prec UMINUS\n | MENOS DECIMAL %prec UMINUS\n \n operacion : NOT operacion %prec UNOToperacion : funcionBasicaoperacion : finalfuncionBasica : ABS PARENTESISIZQUIERDA operacion PARENTESISDERECHA\n | CBRT PARENTESISIZQUIERDA operacion PARENTESISDERECHA\n | CEIL PARENTESISIZQUIERDA operacion PARENTESISDERECHA\n | CEILING PARENTESISIZQUIERDA operacion PARENTESISDERECHA\n | DEGREES PARENTESISIZQUIERDA operacion PARENTESISDERECHA\n | DIV PARENTESISIZQUIERDA operacion COMA operacion PARENTESISDERECHA\n | EXP PARENTESISIZQUIERDA operacion PARENTESISDERECHA\n | FACTORIAL PARENTESISIZQUIERDA operacion PARENTESISDERECHA\n | FLOOR PARENTESISIZQUIERDA operacion PARENTESISDERECHA\n | GCD PARENTESISIZQUIERDA operacion COMA operacion PARENTESISDERECHA\n | LCM PARENTESISIZQUIERDA operacion COMA operacion PARENTESISDERECHA\n | LN PARENTESISIZQUIERDA operacion PARENTESISDERECHA\n | LOG PARENTESISIZQUIERDA operacion PARENTESISDERECHA\n | MOD PARENTESISIZQUIERDA operacion COMA operacion PARENTESISDERECHA\n | PI PARENTESISIZQUIERDA PARENTESISDERECHA\n | POWER PARENTESISIZQUIERDA operacion COMA operacion PARENTESISDERECHA\n | RADIANS PARENTESISIZQUIERDA operacion PARENTESISDERECHA\n | ROUND PARENTESISIZQUIERDA operacion PARENTESISDERECHA \n | SIGN PARENTESISIZQUIERDA operacion PARENTESISDERECHA\n | SQRT PARENTESISIZQUIERDA operacion PARENTESISDERECHA\n | TRIM_SCALE PARENTESISIZQUIERDA operacion PARENTESISDERECHA\n | TRUNC PARENTESISIZQUIERDA operacion PARENTESISDERECHA\n | WIDTH_BUCKET PARENTESISIZQUIERDA operacion COMA operacion COMA operacion COMA operacion PARENTESISDERECHA\n | RANDOM PARENTESISIZQUIERDA PARENTESISDERECHA\n \n \n | ACOS PARENTESISIZQUIERDA operacion PARENTESISDERECHA\n | ACOSD PARENTESISIZQUIERDA operacion PARENTESISDERECHA\n | ASIN PARENTESISIZQUIERDA operacion PARENTESISDERECHA\n | ASIND PARENTESISIZQUIERDA operacion PARENTESISDERECHA \n | ATAN PARENTESISIZQUIERDA operacion PARENTESISDERECHA\n | ATAND PARENTESISIZQUIERDA operacion PARENTESISDERECHA\n | ATAN2 PARENTESISIZQUIERDA operacion COMA operacion PARENTESISDERECHA\n | ATAN2D PARENTESISIZQUIERDA operacion COMA operacion PARENTESISDERECHA\n \n\n | COS PARENTESISIZQUIERDA operacion PARENTESISDERECHA\n\t\t\t | COSD PARENTESISIZQUIERDA operacion PARENTESISDERECHA\n | COT PARENTESISIZQUIERDA operacion PARENTESISDERECHA\n | COTD PARENTESISIZQUIERDA operacion PARENTESISDERECHA\n | SIN PARENTESISIZQUIERDA operacion PARENTESISDERECHA\n | SIND PARENTESISIZQUIERDA operacion PARENTESISDERECHA\n | TAN PARENTESISIZQUIERDA operacion PARENTESISDERECHA\n | TAND PARENTESISIZQUIERDA operacion PARENTESISDERECHA\n | SINH PARENTESISIZQUIERDA operacion PARENTESISDERECHA\n\n\n\n | COSH PARENTESISIZQUIERDA operacion PARENTESISDERECHA\n | TANH PARENTESISIZQUIERDA operacion PARENTESISDERECHA\n | ASINH PARENTESISIZQUIERDA operacion PARENTESISDERECHA\n | ACOSH PARENTESISIZQUIERDA operacion PARENTESISDERECHA\n | ATANH PARENTESISIZQUIERDA operacion PARENTESISDERECHA\n | LENGTH PARENTESISIZQUIERDA operacion PARENTESISDERECHA\n | TRIM PARENTESISIZQUIERDA opcionTrim operacion FROM operacion PARENTESISDERECHA\n | GET_BYTE PARENTESISIZQUIERDA operacion COMA operacion PARENTESISDERECHA\n | MD5 PARENTESISIZQUIERDA operacion PARENTESISDERECHA\n | SET_BYTE PARENTESISIZQUIERDA operacion COMA operacion COMA operacion PARENTESISDERECHA\n | SHA256 PARENTESISIZQUIERDA operacion PARENTESISDERECHA \n | SUBSTR PARENTESISIZQUIERDA operacion COMA operacion COMA operacion PARENTESISDERECHA\n | CONVERT PARENTESISIZQUIERDA operacion COMA operacion COMA operacion PARENTESISDERECHA\n | ENCODE PARENTESISIZQUIERDA operacion COMA operacion PARENTESISDERECHA\n | DECODE PARENTESISIZQUIERDA operacion COMA operacion PARENTESISDERECHA\n | AVG PARENTESISIZQUIERDA operacion PARENTESISDERECHA\n | SUM PARENTESISIZQUIERDA operacion PARENTESISDERECHA\n funcionBasica : SUBSTRING PARENTESISIZQUIERDA operacion FROM operacion FOR operacion PARENTESISDERECHAfuncionBasica : SUBSTRING PARENTESISIZQUIERDA operacion FROM operacion PARENTESISDERECHAfuncionBasica : SUBSTRING PARENTESISIZQUIERDA operacion FOR operacion PARENTESISDERECHA opcionTrim : LEADING\n | TRAILING\n | BOTH\n final : DECIMAL\n | ENTEROfinal : IDfinal : ID PUNTO IDfinal : CADENAinsertinBD : INSERT INTO ID VALUES PARENTESISIZQUIERDA listaParam PARENTESISDERECHA PUNTOYCOMAinsertinBD : INSERT INTO ID PARENTESISIZQUIERDA listaParam PARENTESISDERECHA VALUES PARENTESISIZQUIERDA listaParam PARENTESISDERECHA PUNTOYCOMAlistaParam : listaParam COMA finallistaParam : finalupdateinBD : UPDATE ID SET asignaciones WHERE asignaciones PUNTOYCOMAasignaciones : asignaciones COMA asignaasignaciones : asignaasigna : ID IGUAL operaciondeleteinBD : DELETE FROM ID PUNTOYCOMAdeleteinBD : DELETE FROM ID WHERE operacion PUNTOYCOMAinheritsBD : CREATE TABLE ID PARENTESISIZQUIERDA creaColumnas PARENTESISDERECHA INHERITS PARENTESISIZQUIERDA ID PARENTESISDERECHA PUNTOYCOMAcreateTable : CREATE TABLE ID PARENTESISIZQUIERDA creaColumnas PARENTESISDERECHA PUNTOYCOMAcreaColumnas : creaColumnas COMA ColumnacreaColumnas : ColumnaColumna : ID tipoColumna : ID tipo paramOpcionalColumna : UNIQUE PARENTESISIZQUIERDA listaParam PARENTESISDERECHAColumna : constraintcheckColumna : checkinColumnColumna : primaryKeyColumna : foreignKeyparamOpcional : paramOpcional paramopcparamOpcional : paramopcparamopc : DEFAULT final\n | NULL\n | NOT NULL\n | UNIQUE\n | PRIMARY KEY\n paramopc : constraintcheckparamopc : checkinColumnparamopc : CONSTRAINT ID UNIQUEcheckinColumn : CHECK PARENTESISIZQUIERDA operacion PARENTESISDERECHAconstraintcheck : CONSTRAINT ID CHECK PARENTESISIZQUIERDA operacion PARENTESISDERECHAprimaryKey : PRIMARY KEY PARENTESISIZQUIERDA listaParam PARENTESISDERECHAforeignKey : FOREIGN KEY PARENTESISIZQUIERDA listaParam PARENTESISDERECHA REFERENCES ID PARENTESISIZQUIERDA listaParam PARENTESISDERECHAtipo : SMALLINT\n | INTEGER\n | BIGINT\n | DECIMAL\n | NUMERIC\n | REAL\n | DOUBLE PRECISION\n | MONEY\n | VARCHAR PARENTESISIZQUIERDA ENTERO PARENTESISDERECHA\n | CHARACTER VARYING PARENTESISIZQUIERDA ENTERO PARENTESISDERECHA\n | CHARACTER PARENTESISIZQUIERDA ENTERO PARENTESISDERECHA\n | CHAR PARENTESISIZQUIERDA ENTERO PARENTESISDERECHA\n | TEXT\n | BOOLEAN\n | TIMESTAMP\n | TIME\n | INTERVAL\n | DATE\n | YEAR\n | MONTH \n | DAY\n | HOUR \n | MINUTE\n | SECOND\n selectData : SELECT select_list FROM select_list WHERE search_condition opcionesSelect PUNTOYCOMA\n | SELECT POR FROM select_list WHERE search_condition opcionesSelect PUNTOYCOMA\n selectData : SELECT select_list FROM select_list WHERE search_condition PUNTOYCOMA\n | SELECT POR FROM select_list WHERE search_condition PUNTOYCOMA\n selectData : SELECT select_list FROM select_list PUNTOYCOMA\n | SELECT POR FROM select_list PUNTOYCOMA\n selectData : SELECT select_list PUNTOYCOMA\n opcionesSelect : opcionesSelect opcionSelect\n opcionesSelect : opcionSelect\n opcionSelect : LIMIT operacion\n | GROUP BY select_list\n | HAVING select_list\n | ORDER BY select_list \n opcionSelect : LIMIT operacion OFFSET operacion\n | ORDER BY select_list ordenamiento \n ordenamiento : ASC\n | DESC search_condition : search_condition AND search_condition\n | search_condition OR search_condition \n search_condition : NOT search_conditionsearch_condition : operacionsearch_condition : PARENTESISIZQUIERDA search_condition PARENTESISDERECHA select_list : select_list COMA operacion select_list : select_list COMA asignacion select_list : asignacionselect_list : operacion select_list : select_list condicion_select operacion COMA operacion select_list : condicion_select operacion asignacion : operacion AS operacioncondicion_select : DISTINCT FROM \n condicion_select : IS DISTINCT FROM \n condicion_select : IS NOT DISTINCT FROMcondicion_select : DISTINCT condicion_select : IS DISTINCT \n condicion_select : IS NOT DISTINCT \n funcionBasica : operacion BETWEEN operacion AND operacionfuncionBasica : operacion LIKE CADENAfuncionBasica : operacion IN PARENTESISIZQUIERDA select_list PARENTESISDERECHA funcionBasica : operacion NOT BETWEEN operacion AND operacion funcionBasica : operacion BETWEEN SYMMETRIC operacion AND operacionfuncionBasica : operacion NOT BETWEEN SYMMETRIC operacion AND operacionfuncionBasica : operacion condicion_select operacion'
_lr_action_items = {'SHOW':([0,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,25,27,31,32,34,35,39,104,105,142,146,149,150,153,154,158,161,165,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,252,255,259,260,264,271,272,274,280,283,284,285,286,287,288,290,294,295,296,297,298,299,300,301,302,303,304,305,312,331,340,386,399,401,408,411,412,417,428,429,430,431,432,433,434,435,438,439,442,443,444,445,446,447,449,450,451,452,453,454,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,474,476,481,482,485,487,491,510,520,526,531,534,551,552,556,571,572,579,580,582,583,586,593,594,595,596,598,599,601,605,606,608,609,610,611,622,630,631,635,636,637,638,640,653,655,671,673,682,684,685,686,687,706,707,709,],[23,23,-3,-4,-5,-6,-7,-8,-9,-10,-11,-12,-13,-14,-15,-16,-17,-18,-19,-20,-21,-22,-55,-57,-152,-151,-85,-86,-56,-155,-2,-40,-41,-82,-83,-153,-84,-39,-52,-53,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,-73,-74,-75,-76,-77,-78,-79,-80,-251,-256,-54,-31,-154,-52,-53,-81,-46,-191,-192,-193,-194,-195,-196,-198,-203,-204,-205,-206,-207,-208,-209,-210,-211,-212,-213,-214,-221,-101,-110,-23,-58,-37,-164,-45,-197,-47,-87,-88,-89,-90,-91,-93,-94,-95,-98,-99,-103,-104,-105,-106,-107,-108,-111,-112,-113,-114,-115,-116,-119,-120,-121,-122,-123,-124,-125,-126,-127,-128,-129,-130,-131,-132,-133,-136,-138,-143,-144,-250,-252,-26,-38,-44,-49,-219,-220,-254,-253,-24,-59,-92,-165,-199,-201,-202,-51,-96,-97,-100,-102,-117,-118,-135,-141,-142,-146,-147,-255,-25,-167,-32,-33,-160,-200,-48,-50,-217,-218,-134,-156,-215,-216,-137,-139,-140,-145,-109,-166,-157,]),'CREATE':([0,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,25,27,31,32,34,35,39,104,105,142,146,149,150,153,154,158,161,165,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,252,255,259,260,264,271,272,274,280,283,284,285,286,287,288,290,294,295,296,297,298,299,300,301,302,303,304,305,312,331,340,386,399,401,408,411,412,417,428,429,430,431,432,433,434,435,438,439,442,443,444,445,446,447,449,450,451,452,453,454,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,474,476,481,482,485,487,491,510,520,526,531,534,551,552,556,571,572,579,580,582,583,586,593,594,595,596,598,599,601,605,606,608,609,610,611,622,630,631,635,636,637,638,640,653,655,671,673,682,684,685,686,687,706,707,709,],[24,24,-3,-4,-5,-6,-7,-8,-9,-10,-11,-12,-13,-14,-15,-16,-17,-18,-19,-20,-21,-22,-55,-57,-152,-151,-85,-86,-56,-155,-2,-40,-41,-82,-83,-153,-84,-39,-52,-53,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,-73,-74,-75,-76,-77,-78,-79,-80,-251,-256,-54,-31,-154,-52,-53,-81,-46,-191,-192,-193,-194,-195,-196,-198,-203,-204,-205,-206,-207,-208,-209,-210,-211,-212,-213,-214,-221,-101,-110,-23,-58,-37,-164,-45,-197,-47,-87,-88,-89,-90,-91,-93,-94,-95,-98,-99,-103,-104,-105,-106,-107,-108,-111,-112,-113,-114,-115,-116,-119,-120,-121,-122,-123,-124,-125,-126,-127,-128,-129,-130,-131,-132,-133,-136,-138,-143,-144,-250,-252,-26,-38,-44,-49,-219,-220,-254,-253,-24,-59,-92,-165,-199,-201,-202,-51,-96,-97,-100,-102,-117,-118,-135,-141,-142,-146,-147,-255,-25,-167,-32,-33,-160,-200,-48,-50,-217,-218,-134,-156,-215,-216,-137,-139,-140,-145,-109,-166,-157,]),'ALTER':([0,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,25,27,31,32,34,35,39,104,105,142,146,149,150,153,154,158,161,165,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,252,255,259,260,264,266,271,272,274,280,283,284,285,286,287,288,290,294,295,296,297,298,299,300,301,302,303,304,305,312,331,340,386,399,401,408,411,412,417,428,429,430,431,432,433,434,435,438,439,442,443,444,445,446,447,449,450,451,452,453,454,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,474,476,481,482,485,487,491,510,520,526,531,534,551,552,556,571,572,579,580,582,583,586,593,594,595,596,598,599,601,605,606,608,609,610,611,622,630,631,635,636,637,638,640,653,655,671,673,682,684,685,686,687,706,707,709,],[26,26,-3,-4,-5,-6,-7,-8,-9,-10,-11,-12,-13,-14,-15,-16,-17,-18,-19,-20,-21,-22,-55,-57,-152,-151,-85,-86,-56,-155,-2,-40,-41,-82,-83,-153,-84,-39,-52,-53,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,-73,-74,-75,-76,-77,-78,-79,-80,-251,-256,-54,-31,-154,395,-52,-53,-81,-46,-191,-192,-193,-194,-195,-196,-198,-203,-204,-205,-206,-207,-208,-209,-210,-211,-212,-213,-214,-221,-101,-110,-23,-58,-37,-164,-45,-197,-47,-87,-88,-89,-90,-91,-93,-94,-95,-98,-99,-103,-104,-105,-106,-107,-108,-111,-112,-113,-114,-115,-116,-119,-120,-121,-122,-123,-124,-125,-126,-127,-128,-129,-130,-131,-132,-133,-136,-138,-143,-144,-250,-252,-26,-38,-44,-49,-219,-220,-254,-253,-24,-59,-92,-165,-199,-201,-202,-51,-96,-97,-100,-102,-117,-118,-135,-141,-142,-146,-147,-255,-25,-167,-32,-33,-160,-200,-48,-50,-217,-218,-134,-156,-215,-216,-137,-139,-140,-145,-109,-166,-157,]),'DROP':([0,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,25,27,31,32,34,35,39,104,105,142,146,149,150,153,154,158,161,165,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,252,255,259,260,264,266,271,272,274,280,283,284,285,286,287,288,290,294,295,296,297,298,299,300,301,302,303,304,305,312,331,340,386,399,401,408,411,412,417,428,429,430,431,432,433,434,435,438,439,442,443,444,445,446,447,449,450,451,452,453,454,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,474,476,481,482,485,487,491,510,520,526,531,534,551,552,556,571,572,579,580,582,583,586,593,594,595,596,598,599,601,605,606,608,609,610,611,622,630,631,635,636,637,638,640,653,655,671,673,682,684,685,686,687,706,707,709,],[27,27,-3,-4,-5,-6,-7,-8,-9,-10,-11,-12,-13,-14,-15,-16,-17,-18,-19,-20,-21,-22,-55,-57,-152,-151,-85,-86,-56,-155,-2,-40,-41,-82,-83,-153,-84,-39,-52,-53,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,-73,-74,-75,-76,-77,-78,-79,-80,-251,-256,-54,-31,-154,398,-52,-53,-81,-46,-191,-192,-193,-194,-195,-196,-198,-203,-204,-205,-206,-207,-208,-209,-210,-211,-212,-213,-214,-221,-101,-110,-23,-58,-37,-164,-45,-197,-47,-87,-88,-89,-90,-91,-93,-94,-95,-98,-99,-103,-104,-105,-106,-107,-108,-111,-112,-113,-114,-115,-116,-119,-120,-121,-122,-123,-124,-125,-126,-127,-128,-129,-130,-131,-132,-133,-136,-138,-143,-144,-250,-252,-26,-38,-44,-49,-219,-220,-254,-253,-24,-59,-92,-165,-199,-201,-202,-51,-96,-97,-100,-102,-117,-118,-135,-141,-142,-146,-147,-255,-25,-167,-32,-33,-160,-200,-48,-50,-217,-218,-134,-156,-215,-216,-137,-139,-140,-145,-109,-166,-157,]),'PARENTESISIZQUIERDA':([0,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,25,27,29,30,31,32,33,34,35,39,41,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,129,131,132,142,146,149,150,151,153,154,158,161,162,163,164,165,170,171,172,173,174,175,176,177,178,179,180,181,182,183,185,186,187,188,189,190,191,192,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,251,252,253,254,255,256,257,259,260,263,264,271,272,274,275,280,283,284,285,286,287,288,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,310,311,312,313,314,315,316,331,340,364,365,366,367,379,383,384,385,386,399,401,402,403,408,409,411,412,414,417,420,428,429,430,431,432,433,434,435,436,437,438,439,440,441,442,443,444,445,446,447,448,449,450,451,452,453,454,455,456,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,473,474,475,476,477,478,479,480,481,482,483,484,485,486,487,488,490,491,499,505,510,516,520,526,530,531,532,533,534,542,551,552,553,556,563,564,565,571,572,579,580,582,583,586,588,590,593,594,595,596,597,598,599,601,602,603,604,605,606,607,608,609,610,611,622,623,626,630,631,633,635,636,637,638,640,641,642,644,646,653,655,667,671,673,678,680,682,683,684,685,686,687,694,706,707,708,709,],[30,30,-3,-4,-5,-6,-7,-8,-9,-10,-11,-12,-13,-14,-15,-16,-17,-18,-19,-20,-21,-22,-55,-57,151,30,-152,-151,30,-85,-86,-56,162,30,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,-155,-2,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,253,30,-247,-40,-41,-82,-83,30,-153,-84,-39,-52,30,307,308,-53,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,-73,-74,-75,-76,-77,-78,-79,-80,30,-251,30,30,-256,-244,-248,-54,-31,392,-154,-52,-53,-81,404,-46,-191,-192,-193,-194,-195,-196,-198,413,415,416,-203,-204,-205,-206,-207,-208,-209,-210,-211,-212,-213,-214,421,30,-221,30,30,30,30,-101,-110,30,-148,-149,-150,30,30,-245,-249,-23,-58,-37,30,513,-164,30,-45,-197,522,-47,527,-87,-88,-89,-90,-91,-93,-94,-95,30,30,-98,-99,30,30,-103,-104,-105,-106,-107,-108,30,-111,-112,-113,-114,-115,-116,30,30,-119,-120,-121,-122,-123,-124,-125,-126,-127,-128,-129,-130,-131,-132,-133,30,-136,30,-138,30,30,30,30,-143,-144,30,30,-250,30,-252,30,-246,-26,561,563,-38,30,-44,-49,590,-219,30,590,-220,30,-254,-253,30,-24,30,628,629,-59,-92,-165,-199,-201,-202,-51,590,590,-96,-97,-100,-102,30,-117,-118,-135,30,30,30,-141,-142,30,-146,-147,-255,-25,-167,665,667,-32,-33,672,-160,-200,-48,-50,-217,590,590,30,30,-218,-134,30,-156,-215,30,30,-216,30,-137,-139,-140,-145,30,-109,-166,710,-157,]),'MENOS':([0,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,25,27,30,31,32,33,34,35,39,45,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,131,132,142,146,149,150,151,152,153,154,158,161,162,165,168,170,171,172,173,174,175,176,177,178,179,180,181,182,183,185,186,187,188,189,190,191,192,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,259,260,264,271,272,273,274,280,283,284,285,286,287,288,290,294,295,296,297,298,299,300,301,302,303,304,305,306,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,382,383,384,385,386,399,401,402,408,409,411,412,417,423,425,427,428,429,430,431,432,433,434,435,436,437,438,439,440,441,442,443,444,445,446,447,448,449,450,451,452,453,454,455,456,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,472,473,474,475,476,477,478,479,480,481,482,483,484,485,486,487,488,489,490,491,510,512,516,519,520,526,530,531,532,533,534,535,536,537,538,539,540,541,542,543,544,545,546,547,548,549,550,551,552,553,556,563,571,572,576,579,580,582,583,586,588,589,590,591,593,594,595,596,597,598,599,600,601,602,603,604,605,606,607,608,609,610,611,622,627,630,631,635,636,637,638,640,641,642,644,646,649,651,653,654,655,656,657,658,659,667,671,673,677,678,680,682,683,684,685,686,687,690,694,697,702,706,707,709,],[28,28,-3,-4,-5,-6,-7,107,-9,-10,-11,-12,-13,-14,-15,-16,-17,-18,-19,-20,-21,-22,-55,-57,28,-152,-151,28,-85,-86,-56,28,-155,-2,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,-247,-40,-41,-82,-83,28,107,-153,107,-39,-52,28,-53,107,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,107,107,107,107,107,107,107,107,107,28,-251,28,28,107,-244,-248,-54,-31,-154,-52,-53,107,-81,-46,-191,-192,-193,-194,-195,-196,-198,-203,-204,-205,-206,-207,-208,-209,-210,-211,-212,-213,-214,107,28,-221,28,28,28,28,107,107,107,107,107,107,107,107,107,107,107,107,107,107,-101,107,107,107,107,107,107,107,107,-110,107,107,107,107,107,107,107,107,107,107,107,107,107,107,107,107,107,107,107,107,107,107,107,28,-148,-149,-150,107,107,107,107,107,107,107,107,107,107,107,28,107,107,28,-245,-249,-23,-58,-37,28,-164,28,-45,-197,-47,107,107,107,-87,-88,-89,-90,-91,-93,-94,-95,28,28,-98,-99,28,28,-103,-104,-105,-106,-107,-108,28,-111,-112,-113,-114,-115,-116,28,28,-119,-120,-121,-122,-123,-124,-125,-126,-127,-128,-129,-130,-131,-132,-133,107,28,-136,28,-138,28,28,28,28,-143,-144,28,28,-66,28,-252,28,107,-246,-26,-38,107,28,107,-44,-49,28,-219,28,28,-220,107,107,107,107,107,107,107,28,107,107,107,107,107,107,107,107,-66,-66,28,-24,28,-59,-92,107,-165,-199,-201,-202,-51,28,107,28,107,-96,-97,-100,-102,28,-117,-118,107,-135,28,28,28,-141,-142,28,-146,-147,-66,-25,-167,107,-32,-33,-160,-200,-48,-50,-217,28,28,28,28,107,107,-218,107,-134,107,107,107,107,28,-156,-215,107,28,28,-216,28,-137,-139,-140,-145,107,28,107,107,-109,-166,-157,]),'NOT':([0,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,25,27,30,31,32,33,34,35,39,45,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,131,132,133,142,146,149,150,151,152,153,154,158,161,162,165,168,170,171,172,173,174,175,176,177,178,179,180,181,182,183,185,186,187,188,189,190,191,192,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,259,260,264,271,272,273,274,280,281,283,284,285,286,287,288,290,294,295,296,297,298,299,300,301,302,303,304,305,306,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,382,383,384,385,386,399,401,402,408,409,411,412,417,423,425,427,428,429,430,431,432,433,434,435,436,437,438,439,440,441,442,443,444,445,446,447,448,449,450,451,452,453,454,455,456,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,472,473,474,475,476,477,478,479,480,481,482,483,484,485,486,487,488,489,490,491,510,512,516,519,520,526,530,531,532,533,534,535,536,537,538,539,540,541,542,543,544,545,546,547,548,549,550,551,552,553,556,558,563,571,572,576,579,580,582,583,586,588,589,590,591,593,594,595,596,597,598,599,600,601,602,603,604,605,606,607,608,609,610,611,612,613,615,617,619,620,622,627,630,631,635,636,637,638,640,641,642,644,646,649,651,653,654,655,656,657,658,659,660,661,662,663,667,668,671,673,677,678,680,682,683,684,685,686,687,688,690,694,697,699,702,706,707,709,],[33,33,-3,-4,-5,-6,-7,130,-9,-10,-11,-12,-13,-14,-15,-16,-17,-18,-19,-20,-21,-22,-55,-57,33,-152,-151,33,-85,-86,-56,33,-155,-2,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,-247,258,-40,-41,-82,-83,33,130,-153,-84,-39,-52,33,-53,130,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,130,130,130,130,130,130,130,130,130,33,-251,33,33,130,-244,-248,-54,-31,-154,-52,-53,130,-81,-46,410,-191,-192,-193,-194,-195,-196,-198,-203,-204,-205,-206,-207,-208,-209,-210,-211,-212,-213,-214,130,33,-221,33,33,33,33,130,130,130,130,130,130,130,130,130,130,130,130,130,130,-101,130,130,130,130,130,130,130,130,-110,130,130,130,130,130,130,130,130,130,130,130,130,130,130,130,130,130,130,130,130,130,130,130,33,-148,-149,-150,130,130,130,130,130,130,130,130,130,130,130,33,130,130,33,-245,-249,-23,-58,-37,33,-164,33,-45,-197,-47,130,130,130,-87,-88,-89,-90,-91,-93,-94,-95,33,33,-98,-99,33,33,-103,-104,-105,-106,-107,-108,33,-111,-112,-113,-114,-115,-116,33,33,-119,-120,-121,-122,-123,-124,-125,-126,-127,-128,-129,-130,-131,-132,-133,130,33,-136,33,-138,33,33,33,33,-143,-144,33,33,-66,33,-252,33,130,-246,-26,-38,130,33,130,-44,-49,588,-219,33,588,-220,130,130,130,130,130,130,130,33,130,130,130,130,130,130,130,130,-66,-66,33,-24,616,33,-59,-92,130,-165,-199,-201,-202,-51,588,130,588,130,-96,-97,-100,-102,33,-117,-118,130,-135,33,33,33,-141,-142,33,-146,-147,-66,-25,616,-178,-180,-182,-184,-185,-167,130,-32,-33,-160,-200,-48,-50,-217,588,588,33,33,-84,130,-218,130,-134,130,130,130,130,-177,-179,-181,-183,33,-187,-156,-215,130,33,33,-216,33,-137,-139,-140,-145,-186,130,33,130,-188,130,-109,-166,-157,]),'INSERT':([0,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,25,27,31,32,34,35,39,104,105,142,146,149,150,153,154,158,161,165,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,252,255,259,260,264,271,272,274,280,283,284,285,286,287,288,290,294,295,296,297,298,299,300,301,302,303,304,305,312,331,340,386,399,401,408,411,412,417,428,429,430,431,432,433,434,435,438,439,442,443,444,445,446,447,449,450,451,452,453,454,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,474,476,481,482,485,487,491,510,520,526,531,534,551,552,556,571,572,579,580,582,583,586,593,594,595,596,598,599,601,605,606,608,609,610,611,622,630,631,635,636,637,638,640,653,655,671,673,682,684,685,686,687,706,707,709,],[36,36,-3,-4,-5,-6,-7,-8,-9,-10,-11,-12,-13,-14,-15,-16,-17,-18,-19,-20,-21,-22,-55,-57,-152,-151,-85,-86,-56,-155,-2,-40,-41,-82,-83,-153,-84,-39,-52,-53,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,-73,-74,-75,-76,-77,-78,-79,-80,-251,-256,-54,-31,-154,-52,-53,-81,-46,-191,-192,-193,-194,-195,-196,-198,-203,-204,-205,-206,-207,-208,-209,-210,-211,-212,-213,-214,-221,-101,-110,-23,-58,-37,-164,-45,-197,-47,-87,-88,-89,-90,-91,-93,-94,-95,-98,-99,-103,-104,-105,-106,-107,-108,-111,-112,-113,-114,-115,-116,-119,-120,-121,-122,-123,-124,-125,-126,-127,-128,-129,-130,-131,-132,-133,-136,-138,-143,-144,-250,-252,-26,-38,-44,-49,-219,-220,-254,-253,-24,-59,-92,-165,-199,-201,-202,-51,-96,-97,-100,-102,-117,-118,-135,-141,-142,-146,-147,-255,-25,-167,-32,-33,-160,-200,-48,-50,-217,-218,-134,-156,-215,-216,-137,-139,-140,-145,-109,-166,-157,]),'UPDATE':([0,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,25,27,31,32,34,35,39,104,105,142,146,149,150,153,154,158,161,165,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,252,255,259,260,264,271,272,274,280,283,284,285,286,287,288,290,294,295,296,297,298,299,300,301,302,303,304,305,312,331,340,386,399,401,408,411,412,417,428,429,430,431,432,433,434,435,438,439,442,443,444,445,446,447,449,450,451,452,453,454,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,474,476,481,482,485,487,491,510,520,526,531,534,551,552,556,571,572,579,580,582,583,586,593,594,595,596,598,599,601,605,606,608,609,610,611,622,630,631,635,636,637,638,640,653,655,671,673,682,684,685,686,687,706,707,709,],[37,37,-3,-4,-5,-6,-7,-8,-9,-10,-11,-12,-13,-14,-15,-16,-17,-18,-19,-20,-21,-22,-55,-57,-152,-151,-85,-86,-56,-155,-2,-40,-41,-82,-83,-153,-84,-39,-52,-53,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,-73,-74,-75,-76,-77,-78,-79,-80,-251,-256,-54,-31,-154,-52,-53,-81,-46,-191,-192,-193,-194,-195,-196,-198,-203,-204,-205,-206,-207,-208,-209,-210,-211,-212,-213,-214,-221,-101,-110,-23,-58,-37,-164,-45,-197,-47,-87,-88,-89,-90,-91,-93,-94,-95,-98,-99,-103,-104,-105,-106,-107,-108,-111,-112,-113,-114,-115,-116,-119,-120,-121,-122,-123,-124,-125,-126,-127,-128,-129,-130,-131,-132,-133,-136,-138,-143,-144,-250,-252,-26,-38,-44,-49,-219,-220,-254,-253,-24,-59,-92,-165,-199,-201,-202,-51,-96,-97,-100,-102,-117,-118,-135,-141,-142,-146,-147,-255,-25,-167,-32,-33,-160,-200,-48,-50,-217,-218,-134,-156,-215,-216,-137,-139,-140,-145,-109,-166,-157,]),'DELETE':([0,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,25,27,31,32,34,35,39,104,105,142,146,149,150,153,154,158,161,165,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,252,255,259,260,264,271,272,274,280,283,284,285,286,287,288,290,294,295,296,297,298,299,300,301,302,303,304,305,312,331,340,386,399,401,408,411,412,417,428,429,430,431,432,433,434,435,438,439,442,443,444,445,446,447,449,450,451,452,453,454,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,474,476,481,482,485,487,491,510,520,526,531,534,551,552,556,571,572,579,580,582,583,586,593,594,595,596,598,599,601,605,606,608,609,610,611,622,630,631,635,636,637,638,640,653,655,671,673,682,684,685,686,687,706,707,709,],[38,38,-3,-4,-5,-6,-7,-8,-9,-10,-11,-12,-13,-14,-15,-16,-17,-18,-19,-20,-21,-22,-55,-57,-152,-151,-85,-86,-56,-155,-2,-40,-41,-82,-83,-153,-84,-39,-52,-53,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,-73,-74,-75,-76,-77,-78,-79,-80,-251,-256,-54,-31,-154,-52,-53,-81,-46,-191,-192,-193,-194,-195,-196,-198,-203,-204,-205,-206,-207,-208,-209,-210,-211,-212,-213,-214,-221,-101,-110,-23,-58,-37,-164,-45,-197,-47,-87,-88,-89,-90,-91,-93,-94,-95,-98,-99,-103,-104,-105,-106,-107,-108,-111,-112,-113,-114,-115,-116,-119,-120,-121,-122,-123,-124,-125,-126,-127,-128,-129,-130,-131,-132,-133,-136,-138,-143,-144,-250,-252,-26,-38,-44,-49,-219,-220,-254,-253,-24,-59,-92,-165,-199,-201,-202,-51,-96,-97,-100,-102,-117,-118,-135,-141,-142,-146,-147,-255,-25,-167,-32,-33,-160,-200,-48,-50,-217,-218,-134,-156,-215,-216,-137,-139,-140,-145,-109,-166,-157,]),'ADD':([0,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,25,27,31,32,34,35,39,104,105,142,146,149,150,153,154,158,161,165,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,252,255,259,260,264,266,271,272,274,280,283,284,285,286,287,288,290,294,295,296,297,298,299,300,301,302,303,304,305,312,331,340,386,399,401,408,411,412,417,428,429,430,431,432,433,434,435,438,439,442,443,444,445,446,447,449,450,451,452,453,454,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,474,476,481,482,485,487,491,510,520,526,531,534,551,552,556,571,572,579,580,582,583,586,593,594,595,596,598,599,601,605,606,608,609,610,611,622,630,631,635,636,637,638,640,653,655,671,673,682,684,685,686,687,706,707,709,],[39,39,-3,-4,-5,-6,-7,-8,-9,-10,-11,-12,-13,-14,-15,-16,-17,-18,-19,-20,-21,-22,-55,-57,-152,-151,-85,-86,-56,-155,-2,-40,-41,-82,-83,-153,-84,-39,-52,-53,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,-73,-74,-75,-76,-77,-78,-79,-80,-251,-256,-54,-31,-154,397,-52,-53,-81,-46,-191,-192,-193,-194,-195,-196,-198,-203,-204,-205,-206,-207,-208,-209,-210,-211,-212,-213,-214,-221,-101,-110,-23,-58,-37,-164,-45,-197,-47,-87,-88,-89,-90,-91,-93,-94,-95,-98,-99,-103,-104,-105,-106,-107,-108,-111,-112,-113,-114,-115,-116,-119,-120,-121,-122,-123,-124,-125,-126,-127,-128,-129,-130,-131,-132,-133,-136,-138,-143,-144,-250,-252,-26,-38,-44,-49,-219,-220,-254,-253,-24,-59,-92,-165,-199,-201,-202,-51,-96,-97,-100,-102,-117,-118,-135,-141,-142,-146,-147,-255,-25,-167,-32,-33,-160,-200,-48,-50,-217,-218,-134,-156,-215,-216,-137,-139,-140,-145,-109,-166,-157,]),'COLUMN':([0,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,25,26,27,31,32,34,35,39,104,105,142,146,149,150,153,154,158,161,165,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,252,255,259,260,264,271,272,274,280,283,284,285,286,287,288,290,294,295,296,297,298,299,300,301,302,303,304,305,312,331,340,386,395,397,398,399,401,408,411,412,417,428,429,430,431,432,433,434,435,438,439,442,443,444,445,446,447,449,450,451,452,453,454,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,474,476,481,482,485,487,491,510,520,526,531,534,551,552,556,571,572,579,580,582,583,586,593,594,595,596,598,599,601,605,606,608,609,610,611,622,630,631,635,636,637,638,640,653,655,671,673,682,684,685,686,687,706,707,709,],[40,40,-3,-4,-5,-6,-7,-8,-9,-10,-11,-12,-13,-14,-15,-16,-17,-18,-19,-20,-21,-22,-55,143,147,-152,-151,-85,-86,159,-155,-2,-40,-41,-82,-83,-153,-84,-39,-52,-53,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,-73,-74,-75,-76,-77,-78,-79,-80,-251,-256,-54,-31,-154,-52,-53,-81,-46,-191,-192,-193,-194,-195,-196,-198,-203,-204,-205,-206,-207,-208,-209,-210,-211,-212,-213,-214,-221,-101,-110,-23,143,159,147,-58,-37,-164,-45,-197,-47,-87,-88,-89,-90,-91,-93,-94,-95,-98,-99,-103,-104,-105,-106,-107,-108,-111,-112,-113,-114,-115,-116,-119,-120,-121,-122,-123,-124,-125,-126,-127,-128,-129,-130,-131,-132,-133,-136,-138,-143,-144,-250,-252,-26,-38,-44,-49,-219,-220,-254,-253,-24,-59,-92,-165,-199,-201,-202,-51,-96,-97,-100,-102,-117,-118,-135,-141,-142,-146,-147,-255,-25,-167,-32,-33,-160,-200,-48,-50,-217,-218,-134,-156,-215,-216,-137,-139,-140,-145,-109,-166,-157,]),'CHECK':([0,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,25,27,31,32,34,35,39,104,105,142,146,149,150,153,154,158,161,165,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,252,255,259,260,264,271,272,274,280,283,284,285,286,287,288,290,294,295,296,297,298,299,300,301,302,303,304,305,312,331,340,386,392,397,399,401,408,411,412,417,428,429,430,431,432,433,434,435,438,439,442,443,444,445,446,447,449,450,451,452,453,454,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,474,476,481,482,485,487,491,510,520,526,531,534,551,552,556,558,560,562,571,572,579,580,582,583,586,593,594,595,596,598,599,601,605,606,608,609,610,611,612,613,615,617,619,620,622,630,631,635,636,637,638,640,653,655,660,661,662,663,664,668,671,673,682,684,685,686,687,688,699,706,707,709,],[41,41,-3,-4,-5,-6,-7,-8,-9,-10,-11,-12,-13,-14,-15,-16,-17,-18,-19,-20,-21,-22,-55,-57,-152,-151,-85,-86,41,-155,-2,-40,-41,-82,-83,-153,-84,-39,-52,-53,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,-73,-74,-75,-76,-77,-78,-79,-80,-251,-256,-54,-31,-154,-52,-53,-81,-46,-191,-192,-193,-194,-195,-196,-198,-203,-204,-205,-206,-207,-208,-209,-210,-211,-212,-213,-214,-221,-101,-110,-23,505,41,-58,-37,-164,-45,-197,-47,-87,-88,-89,-90,-91,-93,-94,-95,-98,-99,-103,-104,-105,-106,-107,-108,-111,-112,-113,-114,-115,-116,-119,-120,-121,-122,-123,-124,-125,-126,-127,-128,-129,-130,-131,-132,-133,-136,-138,-143,-144,-250,-252,-26,-38,-44,-49,-219,-220,-254,-253,-24,505,505,626,-59,-92,-165,-199,-201,-202,-51,-96,-97,-100,-102,-117,-118,-135,-141,-142,-146,-147,-255,-25,505,-178,-180,-182,-184,-185,-167,-32,-33,-160,-200,-48,-50,-217,-218,-134,-177,-179,-181,-183,626,-187,-156,-215,-216,-137,-139,-140,-145,-186,-188,-109,-166,-157,]),'FOREIGN':([0,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,25,27,31,32,34,35,39,104,105,142,146,149,150,153,154,158,161,165,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,252,255,259,260,264,271,272,274,280,283,284,285,286,287,288,290,294,295,296,297,298,299,300,301,302,303,304,305,312,331,340,386,392,397,399,401,408,411,412,417,428,429,430,431,432,433,434,435,438,439,442,443,444,445,446,447,449,450,451,452,453,454,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,474,476,481,482,485,487,491,510,520,526,531,534,551,552,556,560,571,572,579,580,582,583,586,593,594,595,596,598,599,601,605,606,608,609,610,611,622,630,631,635,636,637,638,640,653,655,671,673,682,684,685,686,687,706,707,709,],[42,42,-3,-4,-5,-6,-7,-8,-9,-10,-11,-12,-13,-14,-15,-16,-17,-18,-19,-20,-21,-22,-55,-57,-152,-151,-85,-86,42,-155,-2,-40,-41,-82,-83,-153,-84,-39,-52,-53,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,-73,-74,-75,-76,-77,-78,-79,-80,-251,-256,-54,-31,-154,-52,-53,-81,-46,-191,-192,-193,-194,-195,-196,-198,-203,-204,-205,-206,-207,-208,-209,-210,-211,-212,-213,-214,-221,-101,-110,-23,507,42,-58,-37,-164,-45,-197,-47,-87,-88,-89,-90,-91,-93,-94,-95,-98,-99,-103,-104,-105,-106,-107,-108,-111,-112,-113,-114,-115,-116,-119,-120,-121,-122,-123,-124,-125,-126,-127,-128,-129,-130,-131,-132,-133,-136,-138,-143,-144,-250,-252,-26,-38,-44,-49,-219,-220,-254,-253,-24,507,-59,-92,-165,-199,-201,-202,-51,-96,-97,-100,-102,-117,-118,-135,-141,-142,-146,-147,-255,-25,-167,-32,-33,-160,-200,-48,-50,-217,-218,-134,-156,-215,-216,-137,-139,-140,-145,-109,-166,-157,]),'PRIMARY':([0,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,25,27,31,32,34,35,39,104,105,142,146,149,150,153,154,158,161,165,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,252,255,259,260,264,271,272,274,279,280,283,284,285,286,287,288,290,294,295,296,297,298,299,300,301,302,303,304,305,312,331,340,386,392,397,399,401,408,411,412,417,428,429,430,431,432,433,434,435,438,439,442,443,444,445,446,447,449,450,451,452,453,454,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,474,476,481,482,485,487,491,510,520,526,531,534,551,552,556,558,560,571,572,579,580,582,583,586,593,594,595,596,598,599,601,605,606,608,609,610,611,612,613,615,617,619,620,622,630,631,635,636,637,638,640,653,655,660,661,662,663,668,671,673,682,684,685,686,687,688,699,706,707,709,],[43,43,-3,-4,-5,-6,-7,-8,-9,-10,-11,-12,-13,-14,-15,-16,-17,-18,-19,-20,-21,-22,-55,-57,-152,-151,-85,-86,43,-155,-2,-40,-41,-82,-83,-153,-84,-39,-52,309,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,-73,-74,-75,-76,-77,-78,-79,-80,-251,-256,-54,-31,-154,-52,-53,-81,309,-46,-191,-192,-193,-194,-195,-196,-198,-203,-204,-205,-206,-207,-208,-209,-210,-211,-212,-213,-214,-221,-101,-110,-23,506,43,-58,-37,-164,-45,-197,-47,-87,-88,-89,-90,-91,-93,-94,-95,-98,-99,-103,-104,-105,-106,-107,-108,-111,-112,-113,-114,-115,-116,-119,-120,-121,-122,-123,-124,-125,-126,-127,-128,-129,-130,-131,-132,-133,-136,-138,-143,-144,-250,-252,-26,-38,-44,-49,-219,-220,-254,-253,-24,618,506,-59,-92,-165,-199,-201,-202,-51,-96,-97,-100,-102,-117,-118,-135,-141,-142,-146,-147,-255,-25,618,-178,-180,-182,-184,-185,-167,-32,-33,-160,-200,-48,-50,-217,-218,-134,-177,-179,-181,-183,-187,-156,-215,-216,-137,-139,-140,-145,-186,-188,-109,-166,-157,]),'CONSTRAINT':([0,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,25,27,31,32,34,35,39,104,105,142,146,149,150,153,154,158,161,165,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,252,255,259,260,264,271,272,274,280,283,284,285,286,287,288,290,294,295,296,297,298,299,300,301,302,303,304,305,312,331,340,386,392,397,398,399,401,408,411,412,417,428,429,430,431,432,433,434,435,438,439,442,443,444,445,446,447,449,450,451,452,453,454,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,474,476,481,482,485,487,491,510,520,526,531,534,551,552,556,558,560,571,572,579,580,582,583,586,593,594,595,596,598,599,601,605,606,608,609,610,611,612,613,615,617,619,620,622,630,631,635,636,637,638,640,653,655,660,661,662,663,668,671,673,682,684,685,686,687,688,699,706,707,709,],[44,44,-3,-4,-5,-6,-7,-8,-9,-10,-11,-12,-13,-14,-15,-16,-17,-18,-19,-20,-21,-22,-55,148,-152,-151,-85,-86,160,-155,-2,-40,-41,-82,-83,-153,-84,-39,-52,-53,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,-73,-74,-75,-76,-77,-78,-79,-80,-251,-256,-54,-31,-154,-52,-53,-81,-46,-191,-192,-193,-194,-195,-196,-198,-203,-204,-205,-206,-207,-208,-209,-210,-211,-212,-213,-214,-221,-101,-110,-23,504,160,148,-58,-37,-164,-45,-197,-47,-87,-88,-89,-90,-91,-93,-94,-95,-98,-99,-103,-104,-105,-106,-107,-108,-111,-112,-113,-114,-115,-116,-119,-120,-121,-122,-123,-124,-125,-126,-127,-128,-129,-130,-131,-132,-133,-136,-138,-143,-144,-250,-252,-26,-38,-44,-49,-219,-220,-254,-253,-24,621,504,-59,-92,-165,-199,-201,-202,-51,-96,-97,-100,-102,-117,-118,-135,-141,-142,-146,-147,-255,-25,621,-178,-180,-182,-184,-185,-167,-32,-33,-160,-200,-48,-50,-217,-218,-134,-177,-179,-181,-183,-187,-156,-215,-216,-137,-139,-140,-145,-186,-188,-109,-166,-157,]),'ID':([0,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,25,27,30,31,32,33,34,35,37,39,40,44,45,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,131,132,134,136,138,139,140,141,142,143,144,145,146,147,148,149,150,151,153,154,155,157,158,159,160,161,162,165,170,171,172,173,174,175,176,177,178,179,180,181,182,183,185,186,187,188,189,190,191,192,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,251,252,253,254,255,256,257,259,260,264,271,272,274,276,280,283,284,285,286,287,288,290,294,295,296,297,298,299,300,301,302,303,304,305,307,308,311,312,313,314,315,316,331,340,364,365,366,367,379,383,384,385,386,391,392,399,400,401,402,404,408,409,411,412,417,421,428,429,430,431,432,433,434,435,436,437,438,439,440,441,442,443,444,445,446,447,448,449,450,451,452,453,454,455,456,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,473,474,475,476,477,478,479,480,481,482,483,484,485,486,487,488,490,491,493,494,504,508,509,510,513,516,517,518,520,526,527,530,531,532,533,534,542,551,552,553,556,560,561,563,571,572,575,579,580,582,583,584,586,588,590,593,594,595,596,597,598,599,601,602,603,604,605,606,607,608,609,610,611,614,621,622,628,629,630,631,635,636,637,638,640,641,642,644,646,653,655,665,667,671,672,673,678,680,682,683,684,685,686,687,694,700,706,707,709,710,],[25,25,-3,-4,-5,-6,-7,-8,-9,-10,-11,-12,-13,-14,-15,-16,-17,-18,-19,-20,-21,-22,-55,-57,153,-152,-151,153,-85,-86,156,-56,161,165,153,-155,-2,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,-247,259,261,263,264,265,266,-40,267,268,270,-41,271,272,-82,-83,153,-153,-84,275,277,-39,278,279,-52,153,-53,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,-73,-74,-75,-76,-77,-78,-79,-80,153,-251,153,153,-256,-244,-248,-54,-31,-154,-52,-53,-81,405,-46,-191,-192,-193,-194,-195,-196,-198,-203,-204,-205,-206,-207,-208,-209,-210,-211,-212,-213,-214,418,419,153,-221,153,153,153,153,-101,-110,153,-148,-149,-150,153,153,-245,-249,-23,495,496,-58,511,-37,153,153,-164,153,-45,-197,-47,528,-87,-88,-89,-90,-91,-93,-94,-95,153,153,-98,-99,153,153,-103,-104,-105,-106,-107,-108,153,-111,-112,-113,-114,-115,-116,153,153,-119,-120,-121,-122,-123,-124,-125,-126,-127,-128,-129,-130,-131,-132,-133,153,-136,153,-138,153,153,153,153,-143,-144,153,153,-250,153,-252,153,-246,-26,153,153,562,566,153,-38,153,153,405,405,-44,-49,585,153,-219,153,153,-220,153,-254,-253,153,-24,496,153,153,-59,-92,153,-165,-199,-201,-202,637,-51,153,153,-96,-97,-100,-102,153,-117,-118,-135,153,153,153,-141,-142,153,-146,-147,-255,-25,153,664,-167,153,153,-32,-33,-160,-200,-48,-50,-217,153,153,153,153,-218,-134,689,153,-156,153,-215,153,153,-216,153,-137,-139,-140,-145,153,708,-109,-166,-157,153,]),'SELECT':([0,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,25,27,31,32,34,35,39,104,105,142,146,149,150,153,154,158,161,165,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,252,255,259,260,264,271,272,274,280,283,284,285,286,287,288,290,294,295,296,297,298,299,300,301,302,303,304,305,312,331,340,386,399,401,408,411,412,417,428,429,430,431,432,433,434,435,438,439,442,443,444,445,446,447,449,450,451,452,453,454,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,474,476,481,482,485,487,491,510,520,526,531,534,551,552,556,571,572,579,580,582,583,586,593,594,595,596,598,599,601,605,606,608,609,610,611,622,630,631,635,636,637,638,640,653,655,671,673,682,684,685,686,687,706,707,709,],[45,45,-3,-4,-5,-6,-7,-8,-9,-10,-11,-12,-13,-14,-15,-16,-17,-18,-19,-20,-21,-22,-55,-57,-152,-151,-85,-86,-56,-155,-2,-40,-41,-82,-83,-153,-84,-39,-52,-53,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,-73,-74,-75,-76,-77,-78,-79,-80,-251,-256,-54,-31,-154,-52,-53,-81,-46,-191,-192,-193,-194,-195,-196,-198,-203,-204,-205,-206,-207,-208,-209,-210,-211,-212,-213,-214,-221,-101,-110,-23,-58,-37,-164,-45,-197,-47,-87,-88,-89,-90,-91,-93,-94,-95,-98,-99,-103,-104,-105,-106,-107,-108,-111,-112,-113,-114,-115,-116,-119,-120,-121,-122,-123,-124,-125,-126,-127,-128,-129,-130,-131,-132,-133,-136,-138,-143,-144,-250,-252,-26,-38,-44,-49,-219,-220,-254,-253,-24,-59,-92,-165,-199,-201,-202,-51,-96,-97,-100,-102,-117,-118,-135,-141,-142,-146,-147,-255,-25,-167,-32,-33,-160,-200,-48,-50,-217,-218,-134,-156,-215,-216,-137,-139,-140,-145,-109,-166,-157,]),'ABS':([0,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,25,27,30,31,32,33,34,35,39,45,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,131,132,142,146,149,150,151,153,154,158,161,162,165,170,171,172,173,174,175,176,177,178,179,180,181,182,183,185,186,187,188,189,190,191,192,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,251,252,253,254,255,256,257,259,260,264,271,272,274,280,283,284,285,286,287,288,290,294,295,296,297,298,299,300,301,302,303,304,305,311,312,313,314,315,316,331,340,364,365,366,367,379,383,384,385,386,399,401,402,408,409,411,412,417,428,429,430,431,432,433,434,435,436,437,438,439,440,441,442,443,444,445,446,447,448,449,450,451,452,453,454,455,456,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,473,474,475,476,477,478,479,480,481,482,483,484,485,486,487,488,490,491,510,516,520,526,530,531,532,533,534,542,551,552,553,556,563,571,572,579,580,582,583,586,588,590,593,594,595,596,597,598,599,601,602,603,604,605,606,607,608,609,610,611,622,630,631,635,636,637,638,640,641,642,644,646,653,655,667,671,673,678,680,682,683,684,685,686,687,694,706,707,709,],[46,46,-3,-4,-5,-6,-7,-8,-9,-10,-11,-12,-13,-14,-15,-16,-17,-18,-19,-20,-21,-22,-55,-57,46,-152,-151,46,-85,-86,-56,46,-155,-2,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,-247,-40,-41,-82,-83,46,-153,-84,-39,-52,46,-53,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,-73,-74,-75,-76,-77,-78,-79,-80,46,-251,46,46,-256,-244,-248,-54,-31,-154,-52,-53,-81,-46,-191,-192,-193,-194,-195,-196,-198,-203,-204,-205,-206,-207,-208,-209,-210,-211,-212,-213,-214,46,-221,46,46,46,46,-101,-110,46,-148,-149,-150,46,46,-245,-249,-23,-58,-37,46,-164,46,-45,-197,-47,-87,-88,-89,-90,-91,-93,-94,-95,46,46,-98,-99,46,46,-103,-104,-105,-106,-107,-108,46,-111,-112,-113,-114,-115,-116,46,46,-119,-120,-121,-122,-123,-124,-125,-126,-127,-128,-129,-130,-131,-132,-133,46,-136,46,-138,46,46,46,46,-143,-144,46,46,-250,46,-252,46,-246,-26,-38,46,-44,-49,46,-219,46,46,-220,46,-254,-253,46,-24,46,-59,-92,-165,-199,-201,-202,-51,46,46,-96,-97,-100,-102,46,-117,-118,-135,46,46,46,-141,-142,46,-146,-147,-255,-25,-167,-32,-33,-160,-200,-48,-50,-217,46,46,46,46,-218,-134,46,-156,-215,46,46,-216,46,-137,-139,-140,-145,46,-109,-166,-157,]),'CBRT':([0,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,25,27,30,31,32,33,34,35,39,45,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,131,132,142,146,149,150,151,153,154,158,161,162,165,170,171,172,173,174,175,176,177,178,179,180,181,182,183,185,186,187,188,189,190,191,192,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,251,252,253,254,255,256,257,259,260,264,271,272,274,280,283,284,285,286,287,288,290,294,295,296,297,298,299,300,301,302,303,304,305,311,312,313,314,315,316,331,340,364,365,366,367,379,383,384,385,386,399,401,402,408,409,411,412,417,428,429,430,431,432,433,434,435,436,437,438,439,440,441,442,443,444,445,446,447,448,449,450,451,452,453,454,455,456,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,473,474,475,476,477,478,479,480,481,482,483,484,485,486,487,488,490,491,510,516,520,526,530,531,532,533,534,542,551,552,553,556,563,571,572,579,580,582,583,586,588,590,593,594,595,596,597,598,599,601,602,603,604,605,606,607,608,609,610,611,622,630,631,635,636,637,638,640,641,642,644,646,653,655,667,671,673,678,680,682,683,684,685,686,687,694,706,707,709,],[47,47,-3,-4,-5,-6,-7,-8,-9,-10,-11,-12,-13,-14,-15,-16,-17,-18,-19,-20,-21,-22,-55,-57,47,-152,-151,47,-85,-86,-56,47,-155,-2,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,-247,-40,-41,-82,-83,47,-153,-84,-39,-52,47,-53,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,-73,-74,-75,-76,-77,-78,-79,-80,47,-251,47,47,-256,-244,-248,-54,-31,-154,-52,-53,-81,-46,-191,-192,-193,-194,-195,-196,-198,-203,-204,-205,-206,-207,-208,-209,-210,-211,-212,-213,-214,47,-221,47,47,47,47,-101,-110,47,-148,-149,-150,47,47,-245,-249,-23,-58,-37,47,-164,47,-45,-197,-47,-87,-88,-89,-90,-91,-93,-94,-95,47,47,-98,-99,47,47,-103,-104,-105,-106,-107,-108,47,-111,-112,-113,-114,-115,-116,47,47,-119,-120,-121,-122,-123,-124,-125,-126,-127,-128,-129,-130,-131,-132,-133,47,-136,47,-138,47,47,47,47,-143,-144,47,47,-250,47,-252,47,-246,-26,-38,47,-44,-49,47,-219,47,47,-220,47,-254,-253,47,-24,47,-59,-92,-165,-199,-201,-202,-51,47,47,-96,-97,-100,-102,47,-117,-118,-135,47,47,47,-141,-142,47,-146,-147,-255,-25,-167,-32,-33,-160,-200,-48,-50,-217,47,47,47,47,-218,-134,47,-156,-215,47,47,-216,47,-137,-139,-140,-145,47,-109,-166,-157,]),'CEIL':([0,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,25,27,30,31,32,33,34,35,39,45,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,131,132,142,146,149,150,151,153,154,158,161,162,165,170,171,172,173,174,175,176,177,178,179,180,181,182,183,185,186,187,188,189,190,191,192,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,251,252,253,254,255,256,257,259,260,264,271,272,274,280,283,284,285,286,287,288,290,294,295,296,297,298,299,300,301,302,303,304,305,311,312,313,314,315,316,331,340,364,365,366,367,379,383,384,385,386,399,401,402,408,409,411,412,417,428,429,430,431,432,433,434,435,436,437,438,439,440,441,442,443,444,445,446,447,448,449,450,451,452,453,454,455,456,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,473,474,475,476,477,478,479,480,481,482,483,484,485,486,487,488,490,491,510,516,520,526,530,531,532,533,534,542,551,552,553,556,563,571,572,579,580,582,583,586,588,590,593,594,595,596,597,598,599,601,602,603,604,605,606,607,608,609,610,611,622,630,631,635,636,637,638,640,641,642,644,646,653,655,667,671,673,678,680,682,683,684,685,686,687,694,706,707,709,],[48,48,-3,-4,-5,-6,-7,-8,-9,-10,-11,-12,-13,-14,-15,-16,-17,-18,-19,-20,-21,-22,-55,-57,48,-152,-151,48,-85,-86,-56,48,-155,-2,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,-247,-40,-41,-82,-83,48,-153,-84,-39,-52,48,-53,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,-73,-74,-75,-76,-77,-78,-79,-80,48,-251,48,48,-256,-244,-248,-54,-31,-154,-52,-53,-81,-46,-191,-192,-193,-194,-195,-196,-198,-203,-204,-205,-206,-207,-208,-209,-210,-211,-212,-213,-214,48,-221,48,48,48,48,-101,-110,48,-148,-149,-150,48,48,-245,-249,-23,-58,-37,48,-164,48,-45,-197,-47,-87,-88,-89,-90,-91,-93,-94,-95,48,48,-98,-99,48,48,-103,-104,-105,-106,-107,-108,48,-111,-112,-113,-114,-115,-116,48,48,-119,-120,-121,-122,-123,-124,-125,-126,-127,-128,-129,-130,-131,-132,-133,48,-136,48,-138,48,48,48,48,-143,-144,48,48,-250,48,-252,48,-246,-26,-38,48,-44,-49,48,-219,48,48,-220,48,-254,-253,48,-24,48,-59,-92,-165,-199,-201,-202,-51,48,48,-96,-97,-100,-102,48,-117,-118,-135,48,48,48,-141,-142,48,-146,-147,-255,-25,-167,-32,-33,-160,-200,-48,-50,-217,48,48,48,48,-218,-134,48,-156,-215,48,48,-216,48,-137,-139,-140,-145,48,-109,-166,-157,]),'CEILING':([0,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,25,27,30,31,32,33,34,35,39,45,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,131,132,142,146,149,150,151,153,154,158,161,162,165,170,171,172,173,174,175,176,177,178,179,180,181,182,183,185,186,187,188,189,190,191,192,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,251,252,253,254,255,256,257,259,260,264,271,272,274,280,283,284,285,286,287,288,290,294,295,296,297,298,299,300,301,302,303,304,305,311,312,313,314,315,316,331,340,364,365,366,367,379,383,384,385,386,399,401,402,408,409,411,412,417,428,429,430,431,432,433,434,435,436,437,438,439,440,441,442,443,444,445,446,447,448,449,450,451,452,453,454,455,456,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,473,474,475,476,477,478,479,480,481,482,483,484,485,486,487,488,490,491,510,516,520,526,530,531,532,533,534,542,551,552,553,556,563,571,572,579,580,582,583,586,588,590,593,594,595,596,597,598,599,601,602,603,604,605,606,607,608,609,610,611,622,630,631,635,636,637,638,640,641,642,644,646,653,655,667,671,673,678,680,682,683,684,685,686,687,694,706,707,709,],[49,49,-3,-4,-5,-6,-7,-8,-9,-10,-11,-12,-13,-14,-15,-16,-17,-18,-19,-20,-21,-22,-55,-57,49,-152,-151,49,-85,-86,-56,49,-155,-2,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,-247,-40,-41,-82,-83,49,-153,-84,-39,-52,49,-53,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,-73,-74,-75,-76,-77,-78,-79,-80,49,-251,49,49,-256,-244,-248,-54,-31,-154,-52,-53,-81,-46,-191,-192,-193,-194,-195,-196,-198,-203,-204,-205,-206,-207,-208,-209,-210,-211,-212,-213,-214,49,-221,49,49,49,49,-101,-110,49,-148,-149,-150,49,49,-245,-249,-23,-58,-37,49,-164,49,-45,-197,-47,-87,-88,-89,-90,-91,-93,-94,-95,49,49,-98,-99,49,49,-103,-104,-105,-106,-107,-108,49,-111,-112,-113,-114,-115,-116,49,49,-119,-120,-121,-122,-123,-124,-125,-126,-127,-128,-129,-130,-131,-132,-133,49,-136,49,-138,49,49,49,49,-143,-144,49,49,-250,49,-252,49,-246,-26,-38,49,-44,-49,49,-219,49,49,-220,49,-254,-253,49,-24,49,-59,-92,-165,-199,-201,-202,-51,49,49,-96,-97,-100,-102,49,-117,-118,-135,49,49,49,-141,-142,49,-146,-147,-255,-25,-167,-32,-33,-160,-200,-48,-50,-217,49,49,49,49,-218,-134,49,-156,-215,49,49,-216,49,-137,-139,-140,-145,49,-109,-166,-157,]),'DEGREES':([0,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,25,27,30,31,32,33,34,35,39,45,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,131,132,142,146,149,150,151,153,154,158,161,162,165,170,171,172,173,174,175,176,177,178,179,180,181,182,183,185,186,187,188,189,190,191,192,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,251,252,253,254,255,256,257,259,260,264,271,272,274,280,283,284,285,286,287,288,290,294,295,296,297,298,299,300,301,302,303,304,305,311,312,313,314,315,316,331,340,364,365,366,367,379,383,384,385,386,399,401,402,408,409,411,412,417,428,429,430,431,432,433,434,435,436,437,438,439,440,441,442,443,444,445,446,447,448,449,450,451,452,453,454,455,456,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,473,474,475,476,477,478,479,480,481,482,483,484,485,486,487,488,490,491,510,516,520,526,530,531,532,533,534,542,551,552,553,556,563,571,572,579,580,582,583,586,588,590,593,594,595,596,597,598,599,601,602,603,604,605,606,607,608,609,610,611,622,630,631,635,636,637,638,640,641,642,644,646,653,655,667,671,673,678,680,682,683,684,685,686,687,694,706,707,709,],[50,50,-3,-4,-5,-6,-7,-8,-9,-10,-11,-12,-13,-14,-15,-16,-17,-18,-19,-20,-21,-22,-55,-57,50,-152,-151,50,-85,-86,-56,50,-155,-2,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,-247,-40,-41,-82,-83,50,-153,-84,-39,-52,50,-53,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,-73,-74,-75,-76,-77,-78,-79,-80,50,-251,50,50,-256,-244,-248,-54,-31,-154,-52,-53,-81,-46,-191,-192,-193,-194,-195,-196,-198,-203,-204,-205,-206,-207,-208,-209,-210,-211,-212,-213,-214,50,-221,50,50,50,50,-101,-110,50,-148,-149,-150,50,50,-245,-249,-23,-58,-37,50,-164,50,-45,-197,-47,-87,-88,-89,-90,-91,-93,-94,-95,50,50,-98,-99,50,50,-103,-104,-105,-106,-107,-108,50,-111,-112,-113,-114,-115,-116,50,50,-119,-120,-121,-122,-123,-124,-125,-126,-127,-128,-129,-130,-131,-132,-133,50,-136,50,-138,50,50,50,50,-143,-144,50,50,-250,50,-252,50,-246,-26,-38,50,-44,-49,50,-219,50,50,-220,50,-254,-253,50,-24,50,-59,-92,-165,-199,-201,-202,-51,50,50,-96,-97,-100,-102,50,-117,-118,-135,50,50,50,-141,-142,50,-146,-147,-255,-25,-167,-32,-33,-160,-200,-48,-50,-217,50,50,50,50,-218,-134,50,-156,-215,50,50,-216,50,-137,-139,-140,-145,50,-109,-166,-157,]),'DIV':([0,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,25,27,30,31,32,33,34,35,39,45,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,131,132,142,146,149,150,151,152,153,154,158,161,162,165,168,170,171,172,173,174,175,176,177,178,179,180,181,182,183,185,186,187,188,189,190,191,192,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,259,260,264,271,272,273,274,280,283,284,285,286,287,288,290,294,295,296,297,298,299,300,301,302,303,304,305,306,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,382,383,384,385,386,399,401,402,408,409,411,412,417,423,425,427,428,429,430,431,432,433,434,435,436,437,438,439,440,441,442,443,444,445,446,447,448,449,450,451,452,453,454,455,456,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,472,473,474,475,476,477,478,479,480,481,482,483,484,485,486,487,488,489,490,491,510,512,516,519,520,526,530,531,532,533,534,535,536,537,538,539,540,541,542,543,544,545,546,547,548,549,550,551,552,553,556,563,571,572,576,579,580,582,583,586,588,589,590,591,593,594,595,596,597,598,599,600,601,602,603,604,605,606,607,608,609,610,611,622,627,630,631,635,636,637,638,640,641,642,644,646,649,651,653,654,655,656,657,658,659,667,671,673,677,678,680,682,683,684,685,686,687,690,694,697,702,706,707,709,],[29,29,-3,-4,-5,-6,-7,109,-9,-10,-11,-12,-13,-14,-15,-16,-17,-18,-19,-20,-21,-22,-55,-57,29,-152,-151,29,-85,-86,-56,29,-155,-2,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,-247,-40,-41,-82,-83,29,109,-153,109,-39,-52,29,-53,109,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,109,109,-62,-63,-64,109,-66,-67,-68,-69,-70,-71,-72,109,109,109,109,109,109,109,109,109,29,-251,29,29,109,-244,-248,-54,-31,-154,-52,-53,109,-81,-46,-191,-192,-193,-194,-195,-196,-198,-203,-204,-205,-206,-207,-208,-209,-210,-211,-212,-213,-214,109,29,-221,29,29,29,29,109,109,109,109,109,109,109,109,109,109,109,109,109,109,-101,109,109,109,109,109,109,109,109,-110,109,109,109,109,109,109,109,109,109,109,109,109,109,109,109,109,109,109,109,109,109,109,109,29,-148,-149,-150,109,109,109,109,109,109,109,109,109,109,109,29,109,109,29,-245,-249,-23,-58,-37,29,-164,29,-45,-197,-47,109,109,109,-87,-88,-89,-90,-91,-93,-94,-95,29,29,-98,-99,29,29,-103,-104,-105,-106,-107,-108,29,-111,-112,-113,-114,-115,-116,29,29,-119,-120,-121,-122,-123,-124,-125,-126,-127,-128,-129,-130,-131,-132,-133,109,29,-136,29,-138,29,29,29,29,-143,-144,29,29,-66,29,-252,29,109,-246,-26,-38,109,29,109,-44,-49,29,-219,29,29,-220,109,109,109,109,109,109,109,29,109,109,109,109,109,109,109,109,-66,-66,29,-24,29,-59,-92,109,-165,-199,-201,-202,-51,29,109,29,109,-96,-97,-100,-102,29,-117,-118,109,-135,29,29,29,-141,-142,29,-146,-147,-66,-25,-167,109,-32,-33,-160,-200,-48,-50,-217,29,29,29,29,109,109,-218,109,-134,109,109,109,109,29,-156,-215,109,29,29,-216,29,-137,-139,-140,-145,109,29,109,109,-109,-166,-157,]),'EXP':([0,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,25,27,30,31,32,33,34,35,39,45,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,131,132,142,146,149,150,151,153,154,158,161,162,165,170,171,172,173,174,175,176,177,178,179,180,181,182,183,185,186,187,188,189,190,191,192,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,251,252,253,254,255,256,257,259,260,264,271,272,274,280,283,284,285,286,287,288,290,294,295,296,297,298,299,300,301,302,303,304,305,311,312,313,314,315,316,331,340,364,365,366,367,379,383,384,385,386,399,401,402,408,409,411,412,417,428,429,430,431,432,433,434,435,436,437,438,439,440,441,442,443,444,445,446,447,448,449,450,451,452,453,454,455,456,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,473,474,475,476,477,478,479,480,481,482,483,484,485,486,487,488,490,491,510,516,520,526,530,531,532,533,534,542,551,552,553,556,563,571,572,579,580,582,583,586,588,590,593,594,595,596,597,598,599,601,602,603,604,605,606,607,608,609,610,611,622,630,631,635,636,637,638,640,641,642,644,646,653,655,667,671,673,678,680,682,683,684,685,686,687,694,706,707,709,],[51,51,-3,-4,-5,-6,-7,-8,-9,-10,-11,-12,-13,-14,-15,-16,-17,-18,-19,-20,-21,-22,-55,-57,51,-152,-151,51,-85,-86,-56,51,-155,-2,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,-247,-40,-41,-82,-83,51,-153,-84,-39,-52,51,-53,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,51,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,-73,-74,-75,-76,-77,-78,-79,-80,51,-251,51,51,-256,-244,-248,-54,-31,-154,-52,-53,-81,-46,-191,-192,-193,-194,-195,-196,-198,-203,-204,-205,-206,-207,-208,-209,-210,-211,-212,-213,-214,51,-221,51,51,51,51,-101,-110,51,-148,-149,-150,51,51,-245,-249,-23,-58,-37,51,-164,51,-45,-197,-47,-87,-88,-89,-90,-91,-93,-94,-95,51,51,-98,-99,51,51,-103,-104,-105,-106,-107,-108,51,-111,-112,-113,-114,-115,-116,51,51,-119,-120,-121,-122,-123,-124,-125,-126,-127,-128,-129,-130,-131,-132,-133,51,-136,51,-138,51,51,51,51,-143,-144,51,51,-250,51,-252,51,-246,-26,-38,51,-44,-49,51,-219,51,51,-220,51,-254,-253,51,-24,51,-59,-92,-165,-199,-201,-202,-51,51,51,-96,-97,-100,-102,51,-117,-118,-135,51,51,51,-141,-142,51,-146,-147,-255,-25,-167,-32,-33,-160,-200,-48,-50,-217,51,51,51,51,-218,-134,51,-156,-215,51,51,-216,51,-137,-139,-140,-145,51,-109,-166,-157,]),'FACTORIAL':([0,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,25,27,30,31,32,33,34,35,39,45,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,131,132,142,146,149,150,151,153,154,158,161,162,165,170,171,172,173,174,175,176,177,178,179,180,181,182,183,185,186,187,188,189,190,191,192,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,251,252,253,254,255,256,257,259,260,264,271,272,274,280,283,284,285,286,287,288,290,294,295,296,297,298,299,300,301,302,303,304,305,311,312,313,314,315,316,331,340,364,365,366,367,379,383,384,385,386,399,401,402,408,409,411,412,417,428,429,430,431,432,433,434,435,436,437,438,439,440,441,442,443,444,445,446,447,448,449,450,451,452,453,454,455,456,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,473,474,475,476,477,478,479,480,481,482,483,484,485,486,487,488,490,491,510,516,520,526,530,531,532,533,534,542,551,552,553,556,563,571,572,579,580,582,583,586,588,590,593,594,595,596,597,598,599,601,602,603,604,605,606,607,608,609,610,611,622,630,631,635,636,637,638,640,641,642,644,646,653,655,667,671,673,678,680,682,683,684,685,686,687,694,706,707,709,],[52,52,-3,-4,-5,-6,-7,-8,-9,-10,-11,-12,-13,-14,-15,-16,-17,-18,-19,-20,-21,-22,-55,-57,52,-152,-151,52,-85,-86,-56,52,-155,-2,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,-247,-40,-41,-82,-83,52,-153,-84,-39,-52,52,-53,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,-73,-74,-75,-76,-77,-78,-79,-80,52,-251,52,52,-256,-244,-248,-54,-31,-154,-52,-53,-81,-46,-191,-192,-193,-194,-195,-196,-198,-203,-204,-205,-206,-207,-208,-209,-210,-211,-212,-213,-214,52,-221,52,52,52,52,-101,-110,52,-148,-149,-150,52,52,-245,-249,-23,-58,-37,52,-164,52,-45,-197,-47,-87,-88,-89,-90,-91,-93,-94,-95,52,52,-98,-99,52,52,-103,-104,-105,-106,-107,-108,52,-111,-112,-113,-114,-115,-116,52,52,-119,-120,-121,-122,-123,-124,-125,-126,-127,-128,-129,-130,-131,-132,-133,52,-136,52,-138,52,52,52,52,-143,-144,52,52,-250,52,-252,52,-246,-26,-38,52,-44,-49,52,-219,52,52,-220,52,-254,-253,52,-24,52,-59,-92,-165,-199,-201,-202,-51,52,52,-96,-97,-100,-102,52,-117,-118,-135,52,52,52,-141,-142,52,-146,-147,-255,-25,-167,-32,-33,-160,-200,-48,-50,-217,52,52,52,52,-218,-134,52,-156,-215,52,52,-216,52,-137,-139,-140,-145,52,-109,-166,-157,]),'FLOOR':([0,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,25,27,30,31,32,33,34,35,39,45,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,131,132,142,146,149,150,151,153,154,158,161,162,165,170,171,172,173,174,175,176,177,178,179,180,181,182,183,185,186,187,188,189,190,191,192,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,251,252,253,254,255,256,257,259,260,264,271,272,274,280,283,284,285,286,287,288,290,294,295,296,297,298,299,300,301,302,303,304,305,311,312,313,314,315,316,331,340,364,365,366,367,379,383,384,385,386,399,401,402,408,409,411,412,417,428,429,430,431,432,433,434,435,436,437,438,439,440,441,442,443,444,445,446,447,448,449,450,451,452,453,454,455,456,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,473,474,475,476,477,478,479,480,481,482,483,484,485,486,487,488,490,491,510,516,520,526,530,531,532,533,534,542,551,552,553,556,563,571,572,579,580,582,583,586,588,590,593,594,595,596,597,598,599,601,602,603,604,605,606,607,608,609,610,611,622,630,631,635,636,637,638,640,641,642,644,646,653,655,667,671,673,678,680,682,683,684,685,686,687,694,706,707,709,],[53,53,-3,-4,-5,-6,-7,-8,-9,-10,-11,-12,-13,-14,-15,-16,-17,-18,-19,-20,-21,-22,-55,-57,53,-152,-151,53,-85,-86,-56,53,-155,-2,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,-247,-40,-41,-82,-83,53,-153,-84,-39,-52,53,-53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,-73,-74,-75,-76,-77,-78,-79,-80,53,-251,53,53,-256,-244,-248,-54,-31,-154,-52,-53,-81,-46,-191,-192,-193,-194,-195,-196,-198,-203,-204,-205,-206,-207,-208,-209,-210,-211,-212,-213,-214,53,-221,53,53,53,53,-101,-110,53,-148,-149,-150,53,53,-245,-249,-23,-58,-37,53,-164,53,-45,-197,-47,-87,-88,-89,-90,-91,-93,-94,-95,53,53,-98,-99,53,53,-103,-104,-105,-106,-107,-108,53,-111,-112,-113,-114,-115,-116,53,53,-119,-120,-121,-122,-123,-124,-125,-126,-127,-128,-129,-130,-131,-132,-133,53,-136,53,-138,53,53,53,53,-143,-144,53,53,-250,53,-252,53,-246,-26,-38,53,-44,-49,53,-219,53,53,-220,53,-254,-253,53,-24,53,-59,-92,-165,-199,-201,-202,-51,53,53,-96,-97,-100,-102,53,-117,-118,-135,53,53,53,-141,-142,53,-146,-147,-255,-25,-167,-32,-33,-160,-200,-48,-50,-217,53,53,53,53,-218,-134,53,-156,-215,53,53,-216,53,-137,-139,-140,-145,53,-109,-166,-157,]),'GCD':([0,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,25,27,30,31,32,33,34,35,39,45,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,131,132,142,146,149,150,151,153,154,158,161,162,165,170,171,172,173,174,175,176,177,178,179,180,181,182,183,185,186,187,188,189,190,191,192,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,251,252,253,254,255,256,257,259,260,264,271,272,274,280,283,284,285,286,287,288,290,294,295,296,297,298,299,300,301,302,303,304,305,311,312,313,314,315,316,331,340,364,365,366,367,379,383,384,385,386,399,401,402,408,409,411,412,417,428,429,430,431,432,433,434,435,436,437,438,439,440,441,442,443,444,445,446,447,448,449,450,451,452,453,454,455,456,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,473,474,475,476,477,478,479,480,481,482,483,484,485,486,487,488,490,491,510,516,520,526,530,531,532,533,534,542,551,552,553,556,563,571,572,579,580,582,583,586,588,590,593,594,595,596,597,598,599,601,602,603,604,605,606,607,608,609,610,611,622,630,631,635,636,637,638,640,641,642,644,646,653,655,667,671,673,678,680,682,683,684,685,686,687,694,706,707,709,],[54,54,-3,-4,-5,-6,-7,-8,-9,-10,-11,-12,-13,-14,-15,-16,-17,-18,-19,-20,-21,-22,-55,-57,54,-152,-151,54,-85,-86,-56,54,-155,-2,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,-247,-40,-41,-82,-83,54,-153,-84,-39,-52,54,-53,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,54,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,-73,-74,-75,-76,-77,-78,-79,-80,54,-251,54,54,-256,-244,-248,-54,-31,-154,-52,-53,-81,-46,-191,-192,-193,-194,-195,-196,-198,-203,-204,-205,-206,-207,-208,-209,-210,-211,-212,-213,-214,54,-221,54,54,54,54,-101,-110,54,-148,-149,-150,54,54,-245,-249,-23,-58,-37,54,-164,54,-45,-197,-47,-87,-88,-89,-90,-91,-93,-94,-95,54,54,-98,-99,54,54,-103,-104,-105,-106,-107,-108,54,-111,-112,-113,-114,-115,-116,54,54,-119,-120,-121,-122,-123,-124,-125,-126,-127,-128,-129,-130,-131,-132,-133,54,-136,54,-138,54,54,54,54,-143,-144,54,54,-250,54,-252,54,-246,-26,-38,54,-44,-49,54,-219,54,54,-220,54,-254,-253,54,-24,54,-59,-92,-165,-199,-201,-202,-51,54,54,-96,-97,-100,-102,54,-117,-118,-135,54,54,54,-141,-142,54,-146,-147,-255,-25,-167,-32,-33,-160,-200,-48,-50,-217,54,54,54,54,-218,-134,54,-156,-215,54,54,-216,54,-137,-139,-140,-145,54,-109,-166,-157,]),'LCM':([0,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,25,27,30,31,32,33,34,35,39,45,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,131,132,142,146,149,150,151,153,154,158,161,162,165,170,171,172,173,174,175,176,177,178,179,180,181,182,183,185,186,187,188,189,190,191,192,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,251,252,253,254,255,256,257,259,260,264,271,272,274,280,283,284,285,286,287,288,290,294,295,296,297,298,299,300,301,302,303,304,305,311,312,313,314,315,316,331,340,364,365,366,367,379,383,384,385,386,399,401,402,408,409,411,412,417,428,429,430,431,432,433,434,435,436,437,438,439,440,441,442,443,444,445,446,447,448,449,450,451,452,453,454,455,456,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,473,474,475,476,477,478,479,480,481,482,483,484,485,486,487,488,490,491,510,516,520,526,530,531,532,533,534,542,551,552,553,556,563,571,572,579,580,582,583,586,588,590,593,594,595,596,597,598,599,601,602,603,604,605,606,607,608,609,610,611,622,630,631,635,636,637,638,640,641,642,644,646,653,655,667,671,673,678,680,682,683,684,685,686,687,694,706,707,709,],[55,55,-3,-4,-5,-6,-7,-8,-9,-10,-11,-12,-13,-14,-15,-16,-17,-18,-19,-20,-21,-22,-55,-57,55,-152,-151,55,-85,-86,-56,55,-155,-2,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,-247,-40,-41,-82,-83,55,-153,-84,-39,-52,55,-53,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,55,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,-73,-74,-75,-76,-77,-78,-79,-80,55,-251,55,55,-256,-244,-248,-54,-31,-154,-52,-53,-81,-46,-191,-192,-193,-194,-195,-196,-198,-203,-204,-205,-206,-207,-208,-209,-210,-211,-212,-213,-214,55,-221,55,55,55,55,-101,-110,55,-148,-149,-150,55,55,-245,-249,-23,-58,-37,55,-164,55,-45,-197,-47,-87,-88,-89,-90,-91,-93,-94,-95,55,55,-98,-99,55,55,-103,-104,-105,-106,-107,-108,55,-111,-112,-113,-114,-115,-116,55,55,-119,-120,-121,-122,-123,-124,-125,-126,-127,-128,-129,-130,-131,-132,-133,55,-136,55,-138,55,55,55,55,-143,-144,55,55,-250,55,-252,55,-246,-26,-38,55,-44,-49,55,-219,55,55,-220,55,-254,-253,55,-24,55,-59,-92,-165,-199,-201,-202,-51,55,55,-96,-97,-100,-102,55,-117,-118,-135,55,55,55,-141,-142,55,-146,-147,-255,-25,-167,-32,-33,-160,-200,-48,-50,-217,55,55,55,55,-218,-134,55,-156,-215,55,55,-216,55,-137,-139,-140,-145,55,-109,-166,-157,]),'LN':([0,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,25,27,30,31,32,33,34,35,39,45,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,131,132,142,146,149,150,151,153,154,158,161,162,165,170,171,172,173,174,175,176,177,178,179,180,181,182,183,185,186,187,188,189,190,191,192,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,251,252,253,254,255,256,257,259,260,264,271,272,274,280,283,284,285,286,287,288,290,294,295,296,297,298,299,300,301,302,303,304,305,311,312,313,314,315,316,331,340,364,365,366,367,379,383,384,385,386,399,401,402,408,409,411,412,417,428,429,430,431,432,433,434,435,436,437,438,439,440,441,442,443,444,445,446,447,448,449,450,451,452,453,454,455,456,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,473,474,475,476,477,478,479,480,481,482,483,484,485,486,487,488,490,491,510,516,520,526,530,531,532,533,534,542,551,552,553,556,563,571,572,579,580,582,583,586,588,590,593,594,595,596,597,598,599,601,602,603,604,605,606,607,608,609,610,611,622,630,631,635,636,637,638,640,641,642,644,646,653,655,667,671,673,678,680,682,683,684,685,686,687,694,706,707,709,],[56,56,-3,-4,-5,-6,-7,-8,-9,-10,-11,-12,-13,-14,-15,-16,-17,-18,-19,-20,-21,-22,-55,-57,56,-152,-151,56,-85,-86,-56,56,-155,-2,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,-247,-40,-41,-82,-83,56,-153,-84,-39,-52,56,-53,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,-73,-74,-75,-76,-77,-78,-79,-80,56,-251,56,56,-256,-244,-248,-54,-31,-154,-52,-53,-81,-46,-191,-192,-193,-194,-195,-196,-198,-203,-204,-205,-206,-207,-208,-209,-210,-211,-212,-213,-214,56,-221,56,56,56,56,-101,-110,56,-148,-149,-150,56,56,-245,-249,-23,-58,-37,56,-164,56,-45,-197,-47,-87,-88,-89,-90,-91,-93,-94,-95,56,56,-98,-99,56,56,-103,-104,-105,-106,-107,-108,56,-111,-112,-113,-114,-115,-116,56,56,-119,-120,-121,-122,-123,-124,-125,-126,-127,-128,-129,-130,-131,-132,-133,56,-136,56,-138,56,56,56,56,-143,-144,56,56,-250,56,-252,56,-246,-26,-38,56,-44,-49,56,-219,56,56,-220,56,-254,-253,56,-24,56,-59,-92,-165,-199,-201,-202,-51,56,56,-96,-97,-100,-102,56,-117,-118,-135,56,56,56,-141,-142,56,-146,-147,-255,-25,-167,-32,-33,-160,-200,-48,-50,-217,56,56,56,56,-218,-134,56,-156,-215,56,56,-216,56,-137,-139,-140,-145,56,-109,-166,-157,]),'LOG':([0,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,25,27,30,31,32,33,34,35,39,45,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,131,132,142,146,149,150,151,153,154,158,161,162,165,170,171,172,173,174,175,176,177,178,179,180,181,182,183,185,186,187,188,189,190,191,192,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,251,252,253,254,255,256,257,259,260,264,271,272,274,280,283,284,285,286,287,288,290,294,295,296,297,298,299,300,301,302,303,304,305,311,312,313,314,315,316,331,340,364,365,366,367,379,383,384,385,386,399,401,402,408,409,411,412,417,428,429,430,431,432,433,434,435,436,437,438,439,440,441,442,443,444,445,446,447,448,449,450,451,452,453,454,455,456,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,473,474,475,476,477,478,479,480,481,482,483,484,485,486,487,488,490,491,510,516,520,526,530,531,532,533,534,542,551,552,553,556,563,571,572,579,580,582,583,586,588,590,593,594,595,596,597,598,599,601,602,603,604,605,606,607,608,609,610,611,622,630,631,635,636,637,638,640,641,642,644,646,653,655,667,671,673,678,680,682,683,684,685,686,687,694,706,707,709,],[57,57,-3,-4,-5,-6,-7,-8,-9,-10,-11,-12,-13,-14,-15,-16,-17,-18,-19,-20,-21,-22,-55,-57,57,-152,-151,57,-85,-86,-56,57,-155,-2,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,-247,-40,-41,-82,-83,57,-153,-84,-39,-52,57,-53,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,-73,-74,-75,-76,-77,-78,-79,-80,57,-251,57,57,-256,-244,-248,-54,-31,-154,-52,-53,-81,-46,-191,-192,-193,-194,-195,-196,-198,-203,-204,-205,-206,-207,-208,-209,-210,-211,-212,-213,-214,57,-221,57,57,57,57,-101,-110,57,-148,-149,-150,57,57,-245,-249,-23,-58,-37,57,-164,57,-45,-197,-47,-87,-88,-89,-90,-91,-93,-94,-95,57,57,-98,-99,57,57,-103,-104,-105,-106,-107,-108,57,-111,-112,-113,-114,-115,-116,57,57,-119,-120,-121,-122,-123,-124,-125,-126,-127,-128,-129,-130,-131,-132,-133,57,-136,57,-138,57,57,57,57,-143,-144,57,57,-250,57,-252,57,-246,-26,-38,57,-44,-49,57,-219,57,57,-220,57,-254,-253,57,-24,57,-59,-92,-165,-199,-201,-202,-51,57,57,-96,-97,-100,-102,57,-117,-118,-135,57,57,57,-141,-142,57,-146,-147,-255,-25,-167,-32,-33,-160,-200,-48,-50,-217,57,57,57,57,-218,-134,57,-156,-215,57,57,-216,57,-137,-139,-140,-145,57,-109,-166,-157,]),'MOD':([0,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,25,27,30,31,32,33,34,35,39,45,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,131,132,142,146,149,150,151,153,154,158,161,162,165,170,171,172,173,174,175,176,177,178,179,180,181,182,183,185,186,187,188,189,190,191,192,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,251,252,253,254,255,256,257,259,260,264,271,272,274,280,283,284,285,286,287,288,290,294,295,296,297,298,299,300,301,302,303,304,305,311,312,313,314,315,316,331,340,364,365,366,367,379,383,384,385,386,399,401,402,408,409,411,412,417,428,429,430,431,432,433,434,435,436,437,438,439,440,441,442,443,444,445,446,447,448,449,450,451,452,453,454,455,456,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,473,474,475,476,477,478,479,480,481,482,483,484,485,486,487,488,490,491,510,516,520,526,530,531,532,533,534,542,551,552,553,556,563,571,572,579,580,582,583,586,588,590,593,594,595,596,597,598,599,601,602,603,604,605,606,607,608,609,610,611,622,630,631,635,636,637,638,640,641,642,644,646,653,655,667,671,673,678,680,682,683,684,685,686,687,694,706,707,709,],[58,58,-3,-4,-5,-6,-7,-8,-9,-10,-11,-12,-13,-14,-15,-16,-17,-18,-19,-20,-21,-22,-55,-57,58,-152,-151,58,-85,-86,-56,58,-155,-2,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,-247,-40,-41,-82,-83,58,-153,-84,-39,-52,58,-53,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,-73,-74,-75,-76,-77,-78,-79,-80,58,-251,58,58,-256,-244,-248,-54,-31,-154,-52,-53,-81,-46,-191,-192,-193,-194,-195,-196,-198,-203,-204,-205,-206,-207,-208,-209,-210,-211,-212,-213,-214,58,-221,58,58,58,58,-101,-110,58,-148,-149,-150,58,58,-245,-249,-23,-58,-37,58,-164,58,-45,-197,-47,-87,-88,-89,-90,-91,-93,-94,-95,58,58,-98,-99,58,58,-103,-104,-105,-106,-107,-108,58,-111,-112,-113,-114,-115,-116,58,58,-119,-120,-121,-122,-123,-124,-125,-126,-127,-128,-129,-130,-131,-132,-133,58,-136,58,-138,58,58,58,58,-143,-144,58,58,-250,58,-252,58,-246,-26,-38,58,-44,-49,58,-219,58,58,-220,58,-254,-253,58,-24,58,-59,-92,-165,-199,-201,-202,-51,58,58,-96,-97,-100,-102,58,-117,-118,-135,58,58,58,-141,-142,58,-146,-147,-255,-25,-167,-32,-33,-160,-200,-48,-50,-217,58,58,58,58,-218,-134,58,-156,-215,58,58,-216,58,-137,-139,-140,-145,58,-109,-166,-157,]),'PI':([0,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,25,27,30,31,32,33,34,35,39,45,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,131,132,142,146,149,150,151,153,154,158,161,162,165,170,171,172,173,174,175,176,177,178,179,180,181,182,183,185,186,187,188,189,190,191,192,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,251,252,253,254,255,256,257,259,260,264,271,272,274,280,283,284,285,286,287,288,290,294,295,296,297,298,299,300,301,302,303,304,305,311,312,313,314,315,316,331,340,364,365,366,367,379,383,384,385,386,399,401,402,408,409,411,412,417,428,429,430,431,432,433,434,435,436,437,438,439,440,441,442,443,444,445,446,447,448,449,450,451,452,453,454,455,456,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,473,474,475,476,477,478,479,480,481,482,483,484,485,486,487,488,490,491,510,516,520,526,530,531,532,533,534,542,551,552,553,556,563,571,572,579,580,582,583,586,588,590,593,594,595,596,597,598,599,601,602,603,604,605,606,607,608,609,610,611,622,630,631,635,636,637,638,640,641,642,644,646,653,655,667,671,673,678,680,682,683,684,685,686,687,694,706,707,709,],[59,59,-3,-4,-5,-6,-7,-8,-9,-10,-11,-12,-13,-14,-15,-16,-17,-18,-19,-20,-21,-22,-55,-57,59,-152,-151,59,-85,-86,-56,59,-155,-2,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,-247,-40,-41,-82,-83,59,-153,-84,-39,-52,59,-53,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,-73,-74,-75,-76,-77,-78,-79,-80,59,-251,59,59,-256,-244,-248,-54,-31,-154,-52,-53,-81,-46,-191,-192,-193,-194,-195,-196,-198,-203,-204,-205,-206,-207,-208,-209,-210,-211,-212,-213,-214,59,-221,59,59,59,59,-101,-110,59,-148,-149,-150,59,59,-245,-249,-23,-58,-37,59,-164,59,-45,-197,-47,-87,-88,-89,-90,-91,-93,-94,-95,59,59,-98,-99,59,59,-103,-104,-105,-106,-107,-108,59,-111,-112,-113,-114,-115,-116,59,59,-119,-120,-121,-122,-123,-124,-125,-126,-127,-128,-129,-130,-131,-132,-133,59,-136,59,-138,59,59,59,59,-143,-144,59,59,-250,59,-252,59,-246,-26,-38,59,-44,-49,59,-219,59,59,-220,59,-254,-253,59,-24,59,-59,-92,-165,-199,-201,-202,-51,59,59,-96,-97,-100,-102,59,-117,-118,-135,59,59,59,-141,-142,59,-146,-147,-255,-25,-167,-32,-33,-160,-200,-48,-50,-217,59,59,59,59,-218,-134,59,-156,-215,59,59,-216,59,-137,-139,-140,-145,59,-109,-166,-157,]),'POWER':([0,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,25,27,30,31,32,33,34,35,39,45,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,131,132,142,146,149,150,151,153,154,158,161,162,165,170,171,172,173,174,175,176,177,178,179,180,181,182,183,185,186,187,188,189,190,191,192,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,251,252,253,254,255,256,257,259,260,264,271,272,274,280,283,284,285,286,287,288,290,294,295,296,297,298,299,300,301,302,303,304,305,311,312,313,314,315,316,331,340,364,365,366,367,379,383,384,385,386,399,401,402,408,409,411,412,417,428,429,430,431,432,433,434,435,436,437,438,439,440,441,442,443,444,445,446,447,448,449,450,451,452,453,454,455,456,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,473,474,475,476,477,478,479,480,481,482,483,484,485,486,487,488,490,491,510,516,520,526,530,531,532,533,534,542,551,552,553,556,563,571,572,579,580,582,583,586,588,590,593,594,595,596,597,598,599,601,602,603,604,605,606,607,608,609,610,611,622,630,631,635,636,637,638,640,641,642,644,646,653,655,667,671,673,678,680,682,683,684,685,686,687,694,706,707,709,],[60,60,-3,-4,-5,-6,-7,-8,-9,-10,-11,-12,-13,-14,-15,-16,-17,-18,-19,-20,-21,-22,-55,-57,60,-152,-151,60,-85,-86,-56,60,-155,-2,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,-247,-40,-41,-82,-83,60,-153,-84,-39,-52,60,-53,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,-73,-74,-75,-76,-77,-78,-79,-80,60,-251,60,60,-256,-244,-248,-54,-31,-154,-52,-53,-81,-46,-191,-192,-193,-194,-195,-196,-198,-203,-204,-205,-206,-207,-208,-209,-210,-211,-212,-213,-214,60,-221,60,60,60,60,-101,-110,60,-148,-149,-150,60,60,-245,-249,-23,-58,-37,60,-164,60,-45,-197,-47,-87,-88,-89,-90,-91,-93,-94,-95,60,60,-98,-99,60,60,-103,-104,-105,-106,-107,-108,60,-111,-112,-113,-114,-115,-116,60,60,-119,-120,-121,-122,-123,-124,-125,-126,-127,-128,-129,-130,-131,-132,-133,60,-136,60,-138,60,60,60,60,-143,-144,60,60,-250,60,-252,60,-246,-26,-38,60,-44,-49,60,-219,60,60,-220,60,-254,-253,60,-24,60,-59,-92,-165,-199,-201,-202,-51,60,60,-96,-97,-100,-102,60,-117,-118,-135,60,60,60,-141,-142,60,-146,-147,-255,-25,-167,-32,-33,-160,-200,-48,-50,-217,60,60,60,60,-218,-134,60,-156,-215,60,60,-216,60,-137,-139,-140,-145,60,-109,-166,-157,]),'RADIANS':([0,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,25,27,30,31,32,33,34,35,39,45,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,131,132,142,146,149,150,151,153,154,158,161,162,165,170,171,172,173,174,175,176,177,178,179,180,181,182,183,185,186,187,188,189,190,191,192,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,251,252,253,254,255,256,257,259,260,264,271,272,274,280,283,284,285,286,287,288,290,294,295,296,297,298,299,300,301,302,303,304,305,311,312,313,314,315,316,331,340,364,365,366,367,379,383,384,385,386,399,401,402,408,409,411,412,417,428,429,430,431,432,433,434,435,436,437,438,439,440,441,442,443,444,445,446,447,448,449,450,451,452,453,454,455,456,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,473,474,475,476,477,478,479,480,481,482,483,484,485,486,487,488,490,491,510,516,520,526,530,531,532,533,534,542,551,552,553,556,563,571,572,579,580,582,583,586,588,590,593,594,595,596,597,598,599,601,602,603,604,605,606,607,608,609,610,611,622,630,631,635,636,637,638,640,641,642,644,646,653,655,667,671,673,678,680,682,683,684,685,686,687,694,706,707,709,],[61,61,-3,-4,-5,-6,-7,-8,-9,-10,-11,-12,-13,-14,-15,-16,-17,-18,-19,-20,-21,-22,-55,-57,61,-152,-151,61,-85,-86,-56,61,-155,-2,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,-247,-40,-41,-82,-83,61,-153,-84,-39,-52,61,-53,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,-73,-74,-75,-76,-77,-78,-79,-80,61,-251,61,61,-256,-244,-248,-54,-31,-154,-52,-53,-81,-46,-191,-192,-193,-194,-195,-196,-198,-203,-204,-205,-206,-207,-208,-209,-210,-211,-212,-213,-214,61,-221,61,61,61,61,-101,-110,61,-148,-149,-150,61,61,-245,-249,-23,-58,-37,61,-164,61,-45,-197,-47,-87,-88,-89,-90,-91,-93,-94,-95,61,61,-98,-99,61,61,-103,-104,-105,-106,-107,-108,61,-111,-112,-113,-114,-115,-116,61,61,-119,-120,-121,-122,-123,-124,-125,-126,-127,-128,-129,-130,-131,-132,-133,61,-136,61,-138,61,61,61,61,-143,-144,61,61,-250,61,-252,61,-246,-26,-38,61,-44,-49,61,-219,61,61,-220,61,-254,-253,61,-24,61,-59,-92,-165,-199,-201,-202,-51,61,61,-96,-97,-100,-102,61,-117,-118,-135,61,61,61,-141,-142,61,-146,-147,-255,-25,-167,-32,-33,-160,-200,-48,-50,-217,61,61,61,61,-218,-134,61,-156,-215,61,61,-216,61,-137,-139,-140,-145,61,-109,-166,-157,]),'ROUND':([0,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,25,27,30,31,32,33,34,35,39,45,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,131,132,142,146,149,150,151,153,154,158,161,162,165,170,171,172,173,174,175,176,177,178,179,180,181,182,183,185,186,187,188,189,190,191,192,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,251,252,253,254,255,256,257,259,260,264,271,272,274,280,283,284,285,286,287,288,290,294,295,296,297,298,299,300,301,302,303,304,305,311,312,313,314,315,316,331,340,364,365,366,367,379,383,384,385,386,399,401,402,408,409,411,412,417,428,429,430,431,432,433,434,435,436,437,438,439,440,441,442,443,444,445,446,447,448,449,450,451,452,453,454,455,456,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,473,474,475,476,477,478,479,480,481,482,483,484,485,486,487,488,490,491,510,516,520,526,530,531,532,533,534,542,551,552,553,556,563,571,572,579,580,582,583,586,588,590,593,594,595,596,597,598,599,601,602,603,604,605,606,607,608,609,610,611,622,630,631,635,636,637,638,640,641,642,644,646,653,655,667,671,673,678,680,682,683,684,685,686,687,694,706,707,709,],[62,62,-3,-4,-5,-6,-7,-8,-9,-10,-11,-12,-13,-14,-15,-16,-17,-18,-19,-20,-21,-22,-55,-57,62,-152,-151,62,-85,-86,-56,62,-155,-2,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,-247,-40,-41,-82,-83,62,-153,-84,-39,-52,62,-53,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,-73,-74,-75,-76,-77,-78,-79,-80,62,-251,62,62,-256,-244,-248,-54,-31,-154,-52,-53,-81,-46,-191,-192,-193,-194,-195,-196,-198,-203,-204,-205,-206,-207,-208,-209,-210,-211,-212,-213,-214,62,-221,62,62,62,62,-101,-110,62,-148,-149,-150,62,62,-245,-249,-23,-58,-37,62,-164,62,-45,-197,-47,-87,-88,-89,-90,-91,-93,-94,-95,62,62,-98,-99,62,62,-103,-104,-105,-106,-107,-108,62,-111,-112,-113,-114,-115,-116,62,62,-119,-120,-121,-122,-123,-124,-125,-126,-127,-128,-129,-130,-131,-132,-133,62,-136,62,-138,62,62,62,62,-143,-144,62,62,-250,62,-252,62,-246,-26,-38,62,-44,-49,62,-219,62,62,-220,62,-254,-253,62,-24,62,-59,-92,-165,-199,-201,-202,-51,62,62,-96,-97,-100,-102,62,-117,-118,-135,62,62,62,-141,-142,62,-146,-147,-255,-25,-167,-32,-33,-160,-200,-48,-50,-217,62,62,62,62,-218,-134,62,-156,-215,62,62,-216,62,-137,-139,-140,-145,62,-109,-166,-157,]),'SIGN':([0,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,25,27,30,31,32,33,34,35,39,45,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,131,132,142,146,149,150,151,153,154,158,161,162,165,170,171,172,173,174,175,176,177,178,179,180,181,182,183,185,186,187,188,189,190,191,192,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,251,252,253,254,255,256,257,259,260,264,271,272,274,280,283,284,285,286,287,288,290,294,295,296,297,298,299,300,301,302,303,304,305,311,312,313,314,315,316,331,340,364,365,366,367,379,383,384,385,386,399,401,402,408,409,411,412,417,428,429,430,431,432,433,434,435,436,437,438,439,440,441,442,443,444,445,446,447,448,449,450,451,452,453,454,455,456,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,473,474,475,476,477,478,479,480,481,482,483,484,485,486,487,488,490,491,510,516,520,526,530,531,532,533,534,542,551,552,553,556,563,571,572,579,580,582,583,586,588,590,593,594,595,596,597,598,599,601,602,603,604,605,606,607,608,609,610,611,622,630,631,635,636,637,638,640,641,642,644,646,653,655,667,671,673,678,680,682,683,684,685,686,687,694,706,707,709,],[63,63,-3,-4,-5,-6,-7,-8,-9,-10,-11,-12,-13,-14,-15,-16,-17,-18,-19,-20,-21,-22,-55,-57,63,-152,-151,63,-85,-86,-56,63,-155,-2,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,-247,-40,-41,-82,-83,63,-153,-84,-39,-52,63,-53,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,-73,-74,-75,-76,-77,-78,-79,-80,63,-251,63,63,-256,-244,-248,-54,-31,-154,-52,-53,-81,-46,-191,-192,-193,-194,-195,-196,-198,-203,-204,-205,-206,-207,-208,-209,-210,-211,-212,-213,-214,63,-221,63,63,63,63,-101,-110,63,-148,-149,-150,63,63,-245,-249,-23,-58,-37,63,-164,63,-45,-197,-47,-87,-88,-89,-90,-91,-93,-94,-95,63,63,-98,-99,63,63,-103,-104,-105,-106,-107,-108,63,-111,-112,-113,-114,-115,-116,63,63,-119,-120,-121,-122,-123,-124,-125,-126,-127,-128,-129,-130,-131,-132,-133,63,-136,63,-138,63,63,63,63,-143,-144,63,63,-250,63,-252,63,-246,-26,-38,63,-44,-49,63,-219,63,63,-220,63,-254,-253,63,-24,63,-59,-92,-165,-199,-201,-202,-51,63,63,-96,-97,-100,-102,63,-117,-118,-135,63,63,63,-141,-142,63,-146,-147,-255,-25,-167,-32,-33,-160,-200,-48,-50,-217,63,63,63,63,-218,-134,63,-156,-215,63,63,-216,63,-137,-139,-140,-145,63,-109,-166,-157,]),'SQRT':([0,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,25,27,30,31,32,33,34,35,39,45,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,131,132,142,146,149,150,151,153,154,158,161,162,165,170,171,172,173,174,175,176,177,178,179,180,181,182,183,185,186,187,188,189,190,191,192,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,251,252,253,254,255,256,257,259,260,264,271,272,274,280,283,284,285,286,287,288,290,294,295,296,297,298,299,300,301,302,303,304,305,311,312,313,314,315,316,331,340,364,365,366,367,379,383,384,385,386,399,401,402,408,409,411,412,417,428,429,430,431,432,433,434,435,436,437,438,439,440,441,442,443,444,445,446,447,448,449,450,451,452,453,454,455,456,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,473,474,475,476,477,478,479,480,481,482,483,484,485,486,487,488,490,491,510,516,520,526,530,531,532,533,534,542,551,552,553,556,563,571,572,579,580,582,583,586,588,590,593,594,595,596,597,598,599,601,602,603,604,605,606,607,608,609,610,611,622,630,631,635,636,637,638,640,641,642,644,646,653,655,667,671,673,678,680,682,683,684,685,686,687,694,706,707,709,],[64,64,-3,-4,-5,-6,-7,-8,-9,-10,-11,-12,-13,-14,-15,-16,-17,-18,-19,-20,-21,-22,-55,-57,64,-152,-151,64,-85,-86,-56,64,-155,-2,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,-247,-40,-41,-82,-83,64,-153,-84,-39,-52,64,-53,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,-73,-74,-75,-76,-77,-78,-79,-80,64,-251,64,64,-256,-244,-248,-54,-31,-154,-52,-53,-81,-46,-191,-192,-193,-194,-195,-196,-198,-203,-204,-205,-206,-207,-208,-209,-210,-211,-212,-213,-214,64,-221,64,64,64,64,-101,-110,64,-148,-149,-150,64,64,-245,-249,-23,-58,-37,64,-164,64,-45,-197,-47,-87,-88,-89,-90,-91,-93,-94,-95,64,64,-98,-99,64,64,-103,-104,-105,-106,-107,-108,64,-111,-112,-113,-114,-115,-116,64,64,-119,-120,-121,-122,-123,-124,-125,-126,-127,-128,-129,-130,-131,-132,-133,64,-136,64,-138,64,64,64,64,-143,-144,64,64,-250,64,-252,64,-246,-26,-38,64,-44,-49,64,-219,64,64,-220,64,-254,-253,64,-24,64,-59,-92,-165,-199,-201,-202,-51,64,64,-96,-97,-100,-102,64,-117,-118,-135,64,64,64,-141,-142,64,-146,-147,-255,-25,-167,-32,-33,-160,-200,-48,-50,-217,64,64,64,64,-218,-134,64,-156,-215,64,64,-216,64,-137,-139,-140,-145,64,-109,-166,-157,]),'TRIM_SCALE':([0,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,25,27,30,31,32,33,34,35,39,45,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,131,132,142,146,149,150,151,153,154,158,161,162,165,170,171,172,173,174,175,176,177,178,179,180,181,182,183,185,186,187,188,189,190,191,192,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,251,252,253,254,255,256,257,259,260,264,271,272,274,280,283,284,285,286,287,288,290,294,295,296,297,298,299,300,301,302,303,304,305,311,312,313,314,315,316,331,340,364,365,366,367,379,383,384,385,386,399,401,402,408,409,411,412,417,428,429,430,431,432,433,434,435,436,437,438,439,440,441,442,443,444,445,446,447,448,449,450,451,452,453,454,455,456,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,473,474,475,476,477,478,479,480,481,482,483,484,485,486,487,488,490,491,510,516,520,526,530,531,532,533,534,542,551,552,553,556,563,571,572,579,580,582,583,586,588,590,593,594,595,596,597,598,599,601,602,603,604,605,606,607,608,609,610,611,622,630,631,635,636,637,638,640,641,642,644,646,653,655,667,671,673,678,680,682,683,684,685,686,687,694,706,707,709,],[65,65,-3,-4,-5,-6,-7,-8,-9,-10,-11,-12,-13,-14,-15,-16,-17,-18,-19,-20,-21,-22,-55,-57,65,-152,-151,65,-85,-86,-56,65,-155,-2,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,-247,-40,-41,-82,-83,65,-153,-84,-39,-52,65,-53,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,65,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,-73,-74,-75,-76,-77,-78,-79,-80,65,-251,65,65,-256,-244,-248,-54,-31,-154,-52,-53,-81,-46,-191,-192,-193,-194,-195,-196,-198,-203,-204,-205,-206,-207,-208,-209,-210,-211,-212,-213,-214,65,-221,65,65,65,65,-101,-110,65,-148,-149,-150,65,65,-245,-249,-23,-58,-37,65,-164,65,-45,-197,-47,-87,-88,-89,-90,-91,-93,-94,-95,65,65,-98,-99,65,65,-103,-104,-105,-106,-107,-108,65,-111,-112,-113,-114,-115,-116,65,65,-119,-120,-121,-122,-123,-124,-125,-126,-127,-128,-129,-130,-131,-132,-133,65,-136,65,-138,65,65,65,65,-143,-144,65,65,-250,65,-252,65,-246,-26,-38,65,-44,-49,65,-219,65,65,-220,65,-254,-253,65,-24,65,-59,-92,-165,-199,-201,-202,-51,65,65,-96,-97,-100,-102,65,-117,-118,-135,65,65,65,-141,-142,65,-146,-147,-255,-25,-167,-32,-33,-160,-200,-48,-50,-217,65,65,65,65,-218,-134,65,-156,-215,65,65,-216,65,-137,-139,-140,-145,65,-109,-166,-157,]),'TRUNC':([0,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,25,27,30,31,32,33,34,35,39,45,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,131,132,142,146,149,150,151,153,154,158,161,162,165,170,171,172,173,174,175,176,177,178,179,180,181,182,183,185,186,187,188,189,190,191,192,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,251,252,253,254,255,256,257,259,260,264,271,272,274,280,283,284,285,286,287,288,290,294,295,296,297,298,299,300,301,302,303,304,305,311,312,313,314,315,316,331,340,364,365,366,367,379,383,384,385,386,399,401,402,408,409,411,412,417,428,429,430,431,432,433,434,435,436,437,438,439,440,441,442,443,444,445,446,447,448,449,450,451,452,453,454,455,456,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,473,474,475,476,477,478,479,480,481,482,483,484,485,486,487,488,490,491,510,516,520,526,530,531,532,533,534,542,551,552,553,556,563,571,572,579,580,582,583,586,588,590,593,594,595,596,597,598,599,601,602,603,604,605,606,607,608,609,610,611,622,630,631,635,636,637,638,640,641,642,644,646,653,655,667,671,673,678,680,682,683,684,685,686,687,694,706,707,709,],[66,66,-3,-4,-5,-6,-7,-8,-9,-10,-11,-12,-13,-14,-15,-16,-17,-18,-19,-20,-21,-22,-55,-57,66,-152,-151,66,-85,-86,-56,66,-155,-2,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,-247,-40,-41,-82,-83,66,-153,-84,-39,-52,66,-53,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,-73,-74,-75,-76,-77,-78,-79,-80,66,-251,66,66,-256,-244,-248,-54,-31,-154,-52,-53,-81,-46,-191,-192,-193,-194,-195,-196,-198,-203,-204,-205,-206,-207,-208,-209,-210,-211,-212,-213,-214,66,-221,66,66,66,66,-101,-110,66,-148,-149,-150,66,66,-245,-249,-23,-58,-37,66,-164,66,-45,-197,-47,-87,-88,-89,-90,-91,-93,-94,-95,66,66,-98,-99,66,66,-103,-104,-105,-106,-107,-108,66,-111,-112,-113,-114,-115,-116,66,66,-119,-120,-121,-122,-123,-124,-125,-126,-127,-128,-129,-130,-131,-132,-133,66,-136,66,-138,66,66,66,66,-143,-144,66,66,-250,66,-252,66,-246,-26,-38,66,-44,-49,66,-219,66,66,-220,66,-254,-253,66,-24,66,-59,-92,-165,-199,-201,-202,-51,66,66,-96,-97,-100,-102,66,-117,-118,-135,66,66,66,-141,-142,66,-146,-147,-255,-25,-167,-32,-33,-160,-200,-48,-50,-217,66,66,66,66,-218,-134,66,-156,-215,66,66,-216,66,-137,-139,-140,-145,66,-109,-166,-157,]),'WIDTH_BUCKET':([0,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,25,27,30,31,32,33,34,35,39,45,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,131,132,142,146,149,150,151,153,154,158,161,162,165,170,171,172,173,174,175,176,177,178,179,180,181,182,183,185,186,187,188,189,190,191,192,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,251,252,253,254,255,256,257,259,260,264,271,272,274,280,283,284,285,286,287,288,290,294,295,296,297,298,299,300,301,302,303,304,305,311,312,313,314,315,316,331,340,364,365,366,367,379,383,384,385,386,399,401,402,408,409,411,412,417,428,429,430,431,432,433,434,435,436,437,438,439,440,441,442,443,444,445,446,447,448,449,450,451,452,453,454,455,456,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,473,474,475,476,477,478,479,480,481,482,483,484,485,486,487,488,490,491,510,516,520,526,530,531,532,533,534,542,551,552,553,556,563,571,572,579,580,582,583,586,588,590,593,594,595,596,597,598,599,601,602,603,604,605,606,607,608,609,610,611,622,630,631,635,636,637,638,640,641,642,644,646,653,655,667,671,673,678,680,682,683,684,685,686,687,694,706,707,709,],[67,67,-3,-4,-5,-6,-7,-8,-9,-10,-11,-12,-13,-14,-15,-16,-17,-18,-19,-20,-21,-22,-55,-57,67,-152,-151,67,-85,-86,-56,67,-155,-2,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,-247,-40,-41,-82,-83,67,-153,-84,-39,-52,67,-53,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,-73,-74,-75,-76,-77,-78,-79,-80,67,-251,67,67,-256,-244,-248,-54,-31,-154,-52,-53,-81,-46,-191,-192,-193,-194,-195,-196,-198,-203,-204,-205,-206,-207,-208,-209,-210,-211,-212,-213,-214,67,-221,67,67,67,67,-101,-110,67,-148,-149,-150,67,67,-245,-249,-23,-58,-37,67,-164,67,-45,-197,-47,-87,-88,-89,-90,-91,-93,-94,-95,67,67,-98,-99,67,67,-103,-104,-105,-106,-107,-108,67,-111,-112,-113,-114,-115,-116,67,67,-119,-120,-121,-122,-123,-124,-125,-126,-127,-128,-129,-130,-131,-132,-133,67,-136,67,-138,67,67,67,67,-143,-144,67,67,-250,67,-252,67,-246,-26,-38,67,-44,-49,67,-219,67,67,-220,67,-254,-253,67,-24,67,-59,-92,-165,-199,-201,-202,-51,67,67,-96,-97,-100,-102,67,-117,-118,-135,67,67,67,-141,-142,67,-146,-147,-255,-25,-167,-32,-33,-160,-200,-48,-50,-217,67,67,67,67,-218,-134,67,-156,-215,67,67,-216,67,-137,-139,-140,-145,67,-109,-166,-157,]),'RANDOM':([0,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,25,27,30,31,32,33,34,35,39,45,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,131,132,142,146,149,150,151,153,154,158,161,162,165,170,171,172,173,174,175,176,177,178,179,180,181,182,183,185,186,187,188,189,190,191,192,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,251,252,253,254,255,256,257,259,260,264,271,272,274,280,283,284,285,286,287,288,290,294,295,296,297,298,299,300,301,302,303,304,305,311,312,313,314,315,316,331,340,364,365,366,367,379,383,384,385,386,399,401,402,408,409,411,412,417,428,429,430,431,432,433,434,435,436,437,438,439,440,441,442,443,444,445,446,447,448,449,450,451,452,453,454,455,456,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,473,474,475,476,477,478,479,480,481,482,483,484,485,486,487,488,490,491,510,516,520,526,530,531,532,533,534,542,551,552,553,556,563,571,572,579,580,582,583,586,588,590,593,594,595,596,597,598,599,601,602,603,604,605,606,607,608,609,610,611,622,630,631,635,636,637,638,640,641,642,644,646,653,655,667,671,673,678,680,682,683,684,685,686,687,694,706,707,709,],[68,68,-3,-4,-5,-6,-7,-8,-9,-10,-11,-12,-13,-14,-15,-16,-17,-18,-19,-20,-21,-22,-55,-57,68,-152,-151,68,-85,-86,-56,68,-155,-2,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,-247,-40,-41,-82,-83,68,-153,-84,-39,-52,68,-53,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,-73,-74,-75,-76,-77,-78,-79,-80,68,-251,68,68,-256,-244,-248,-54,-31,-154,-52,-53,-81,-46,-191,-192,-193,-194,-195,-196,-198,-203,-204,-205,-206,-207,-208,-209,-210,-211,-212,-213,-214,68,-221,68,68,68,68,-101,-110,68,-148,-149,-150,68,68,-245,-249,-23,-58,-37,68,-164,68,-45,-197,-47,-87,-88,-89,-90,-91,-93,-94,-95,68,68,-98,-99,68,68,-103,-104,-105,-106,-107,-108,68,-111,-112,-113,-114,-115,-116,68,68,-119,-120,-121,-122,-123,-124,-125,-126,-127,-128,-129,-130,-131,-132,-133,68,-136,68,-138,68,68,68,68,-143,-144,68,68,-250,68,-252,68,-246,-26,-38,68,-44,-49,68,-219,68,68,-220,68,-254,-253,68,-24,68,-59,-92,-165,-199,-201,-202,-51,68,68,-96,-97,-100,-102,68,-117,-118,-135,68,68,68,-141,-142,68,-146,-147,-255,-25,-167,-32,-33,-160,-200,-48,-50,-217,68,68,68,68,-218,-134,68,-156,-215,68,68,-216,68,-137,-139,-140,-145,68,-109,-166,-157,]),'ACOS':([0,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,25,27,30,31,32,33,34,35,39,45,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,131,132,142,146,149,150,151,153,154,158,161,162,165,170,171,172,173,174,175,176,177,178,179,180,181,182,183,185,186,187,188,189,190,191,192,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,251,252,253,254,255,256,257,259,260,264,271,272,274,280,283,284,285,286,287,288,290,294,295,296,297,298,299,300,301,302,303,304,305,311,312,313,314,315,316,331,340,364,365,366,367,379,383,384,385,386,399,401,402,408,409,411,412,417,428,429,430,431,432,433,434,435,436,437,438,439,440,441,442,443,444,445,446,447,448,449,450,451,452,453,454,455,456,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,473,474,475,476,477,478,479,480,481,482,483,484,485,486,487,488,490,491,510,516,520,526,530,531,532,533,534,542,551,552,553,556,563,571,572,579,580,582,583,586,588,590,593,594,595,596,597,598,599,601,602,603,604,605,606,607,608,609,610,611,622,630,631,635,636,637,638,640,641,642,644,646,653,655,667,671,673,678,680,682,683,684,685,686,687,694,706,707,709,],[69,69,-3,-4,-5,-6,-7,-8,-9,-10,-11,-12,-13,-14,-15,-16,-17,-18,-19,-20,-21,-22,-55,-57,69,-152,-151,69,-85,-86,-56,69,-155,-2,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,-247,-40,-41,-82,-83,69,-153,-84,-39,-52,69,-53,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,-73,-74,-75,-76,-77,-78,-79,-80,69,-251,69,69,-256,-244,-248,-54,-31,-154,-52,-53,-81,-46,-191,-192,-193,-194,-195,-196,-198,-203,-204,-205,-206,-207,-208,-209,-210,-211,-212,-213,-214,69,-221,69,69,69,69,-101,-110,69,-148,-149,-150,69,69,-245,-249,-23,-58,-37,69,-164,69,-45,-197,-47,-87,-88,-89,-90,-91,-93,-94,-95,69,69,-98,-99,69,69,-103,-104,-105,-106,-107,-108,69,-111,-112,-113,-114,-115,-116,69,69,-119,-120,-121,-122,-123,-124,-125,-126,-127,-128,-129,-130,-131,-132,-133,69,-136,69,-138,69,69,69,69,-143,-144,69,69,-250,69,-252,69,-246,-26,-38,69,-44,-49,69,-219,69,69,-220,69,-254,-253,69,-24,69,-59,-92,-165,-199,-201,-202,-51,69,69,-96,-97,-100,-102,69,-117,-118,-135,69,69,69,-141,-142,69,-146,-147,-255,-25,-167,-32,-33,-160,-200,-48,-50,-217,69,69,69,69,-218,-134,69,-156,-215,69,69,-216,69,-137,-139,-140,-145,69,-109,-166,-157,]),'ACOSD':([0,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,25,27,30,31,32,33,34,35,39,45,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,131,132,142,146,149,150,151,153,154,158,161,162,165,170,171,172,173,174,175,176,177,178,179,180,181,182,183,185,186,187,188,189,190,191,192,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,251,252,253,254,255,256,257,259,260,264,271,272,274,280,283,284,285,286,287,288,290,294,295,296,297,298,299,300,301,302,303,304,305,311,312,313,314,315,316,331,340,364,365,366,367,379,383,384,385,386,399,401,402,408,409,411,412,417,428,429,430,431,432,433,434,435,436,437,438,439,440,441,442,443,444,445,446,447,448,449,450,451,452,453,454,455,456,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,473,474,475,476,477,478,479,480,481,482,483,484,485,486,487,488,490,491,510,516,520,526,530,531,532,533,534,542,551,552,553,556,563,571,572,579,580,582,583,586,588,590,593,594,595,596,597,598,599,601,602,603,604,605,606,607,608,609,610,611,622,630,631,635,636,637,638,640,641,642,644,646,653,655,667,671,673,678,680,682,683,684,685,686,687,694,706,707,709,],[70,70,-3,-4,-5,-6,-7,-8,-9,-10,-11,-12,-13,-14,-15,-16,-17,-18,-19,-20,-21,-22,-55,-57,70,-152,-151,70,-85,-86,-56,70,-155,-2,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,-247,-40,-41,-82,-83,70,-153,-84,-39,-52,70,-53,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,-73,-74,-75,-76,-77,-78,-79,-80,70,-251,70,70,-256,-244,-248,-54,-31,-154,-52,-53,-81,-46,-191,-192,-193,-194,-195,-196,-198,-203,-204,-205,-206,-207,-208,-209,-210,-211,-212,-213,-214,70,-221,70,70,70,70,-101,-110,70,-148,-149,-150,70,70,-245,-249,-23,-58,-37,70,-164,70,-45,-197,-47,-87,-88,-89,-90,-91,-93,-94,-95,70,70,-98,-99,70,70,-103,-104,-105,-106,-107,-108,70,-111,-112,-113,-114,-115,-116,70,70,-119,-120,-121,-122,-123,-124,-125,-126,-127,-128,-129,-130,-131,-132,-133,70,-136,70,-138,70,70,70,70,-143,-144,70,70,-250,70,-252,70,-246,-26,-38,70,-44,-49,70,-219,70,70,-220,70,-254,-253,70,-24,70,-59,-92,-165,-199,-201,-202,-51,70,70,-96,-97,-100,-102,70,-117,-118,-135,70,70,70,-141,-142,70,-146,-147,-255,-25,-167,-32,-33,-160,-200,-48,-50,-217,70,70,70,70,-218,-134,70,-156,-215,70,70,-216,70,-137,-139,-140,-145,70,-109,-166,-157,]),'ASIN':([0,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,25,27,30,31,32,33,34,35,39,45,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,131,132,142,146,149,150,151,153,154,158,161,162,165,170,171,172,173,174,175,176,177,178,179,180,181,182,183,185,186,187,188,189,190,191,192,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,251,252,253,254,255,256,257,259,260,264,271,272,274,280,283,284,285,286,287,288,290,294,295,296,297,298,299,300,301,302,303,304,305,311,312,313,314,315,316,331,340,364,365,366,367,379,383,384,385,386,399,401,402,408,409,411,412,417,428,429,430,431,432,433,434,435,436,437,438,439,440,441,442,443,444,445,446,447,448,449,450,451,452,453,454,455,456,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,473,474,475,476,477,478,479,480,481,482,483,484,485,486,487,488,490,491,510,516,520,526,530,531,532,533,534,542,551,552,553,556,563,571,572,579,580,582,583,586,588,590,593,594,595,596,597,598,599,601,602,603,604,605,606,607,608,609,610,611,622,630,631,635,636,637,638,640,641,642,644,646,653,655,667,671,673,678,680,682,683,684,685,686,687,694,706,707,709,],[71,71,-3,-4,-5,-6,-7,-8,-9,-10,-11,-12,-13,-14,-15,-16,-17,-18,-19,-20,-21,-22,-55,-57,71,-152,-151,71,-85,-86,-56,71,-155,-2,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,-247,-40,-41,-82,-83,71,-153,-84,-39,-52,71,-53,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,-73,-74,-75,-76,-77,-78,-79,-80,71,-251,71,71,-256,-244,-248,-54,-31,-154,-52,-53,-81,-46,-191,-192,-193,-194,-195,-196,-198,-203,-204,-205,-206,-207,-208,-209,-210,-211,-212,-213,-214,71,-221,71,71,71,71,-101,-110,71,-148,-149,-150,71,71,-245,-249,-23,-58,-37,71,-164,71,-45,-197,-47,-87,-88,-89,-90,-91,-93,-94,-95,71,71,-98,-99,71,71,-103,-104,-105,-106,-107,-108,71,-111,-112,-113,-114,-115,-116,71,71,-119,-120,-121,-122,-123,-124,-125,-126,-127,-128,-129,-130,-131,-132,-133,71,-136,71,-138,71,71,71,71,-143,-144,71,71,-250,71,-252,71,-246,-26,-38,71,-44,-49,71,-219,71,71,-220,71,-254,-253,71,-24,71,-59,-92,-165,-199,-201,-202,-51,71,71,-96,-97,-100,-102,71,-117,-118,-135,71,71,71,-141,-142,71,-146,-147,-255,-25,-167,-32,-33,-160,-200,-48,-50,-217,71,71,71,71,-218,-134,71,-156,-215,71,71,-216,71,-137,-139,-140,-145,71,-109,-166,-157,]),'ASIND':([0,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,25,27,30,31,32,33,34,35,39,45,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,131,132,142,146,149,150,151,153,154,158,161,162,165,170,171,172,173,174,175,176,177,178,179,180,181,182,183,185,186,187,188,189,190,191,192,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,251,252,253,254,255,256,257,259,260,264,271,272,274,280,283,284,285,286,287,288,290,294,295,296,297,298,299,300,301,302,303,304,305,311,312,313,314,315,316,331,340,364,365,366,367,379,383,384,385,386,399,401,402,408,409,411,412,417,428,429,430,431,432,433,434,435,436,437,438,439,440,441,442,443,444,445,446,447,448,449,450,451,452,453,454,455,456,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,473,474,475,476,477,478,479,480,481,482,483,484,485,486,487,488,490,491,510,516,520,526,530,531,532,533,534,542,551,552,553,556,563,571,572,579,580,582,583,586,588,590,593,594,595,596,597,598,599,601,602,603,604,605,606,607,608,609,610,611,622,630,631,635,636,637,638,640,641,642,644,646,653,655,667,671,673,678,680,682,683,684,685,686,687,694,706,707,709,],[72,72,-3,-4,-5,-6,-7,-8,-9,-10,-11,-12,-13,-14,-15,-16,-17,-18,-19,-20,-21,-22,-55,-57,72,-152,-151,72,-85,-86,-56,72,-155,-2,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,-247,-40,-41,-82,-83,72,-153,-84,-39,-52,72,-53,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,-73,-74,-75,-76,-77,-78,-79,-80,72,-251,72,72,-256,-244,-248,-54,-31,-154,-52,-53,-81,-46,-191,-192,-193,-194,-195,-196,-198,-203,-204,-205,-206,-207,-208,-209,-210,-211,-212,-213,-214,72,-221,72,72,72,72,-101,-110,72,-148,-149,-150,72,72,-245,-249,-23,-58,-37,72,-164,72,-45,-197,-47,-87,-88,-89,-90,-91,-93,-94,-95,72,72,-98,-99,72,72,-103,-104,-105,-106,-107,-108,72,-111,-112,-113,-114,-115,-116,72,72,-119,-120,-121,-122,-123,-124,-125,-126,-127,-128,-129,-130,-131,-132,-133,72,-136,72,-138,72,72,72,72,-143,-144,72,72,-250,72,-252,72,-246,-26,-38,72,-44,-49,72,-219,72,72,-220,72,-254,-253,72,-24,72,-59,-92,-165,-199,-201,-202,-51,72,72,-96,-97,-100,-102,72,-117,-118,-135,72,72,72,-141,-142,72,-146,-147,-255,-25,-167,-32,-33,-160,-200,-48,-50,-217,72,72,72,72,-218,-134,72,-156,-215,72,72,-216,72,-137,-139,-140,-145,72,-109,-166,-157,]),'ATAN':([0,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,25,27,30,31,32,33,34,35,39,45,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,131,132,142,146,149,150,151,153,154,158,161,162,165,170,171,172,173,174,175,176,177,178,179,180,181,182,183,185,186,187,188,189,190,191,192,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,251,252,253,254,255,256,257,259,260,264,271,272,274,280,283,284,285,286,287,288,290,294,295,296,297,298,299,300,301,302,303,304,305,311,312,313,314,315,316,331,340,364,365,366,367,379,383,384,385,386,399,401,402,408,409,411,412,417,428,429,430,431,432,433,434,435,436,437,438,439,440,441,442,443,444,445,446,447,448,449,450,451,452,453,454,455,456,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,473,474,475,476,477,478,479,480,481,482,483,484,485,486,487,488,490,491,510,516,520,526,530,531,532,533,534,542,551,552,553,556,563,571,572,579,580,582,583,586,588,590,593,594,595,596,597,598,599,601,602,603,604,605,606,607,608,609,610,611,622,630,631,635,636,637,638,640,641,642,644,646,653,655,667,671,673,678,680,682,683,684,685,686,687,694,706,707,709,],[73,73,-3,-4,-5,-6,-7,-8,-9,-10,-11,-12,-13,-14,-15,-16,-17,-18,-19,-20,-21,-22,-55,-57,73,-152,-151,73,-85,-86,-56,73,-155,-2,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,-247,-40,-41,-82,-83,73,-153,-84,-39,-52,73,-53,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,-73,-74,-75,-76,-77,-78,-79,-80,73,-251,73,73,-256,-244,-248,-54,-31,-154,-52,-53,-81,-46,-191,-192,-193,-194,-195,-196,-198,-203,-204,-205,-206,-207,-208,-209,-210,-211,-212,-213,-214,73,-221,73,73,73,73,-101,-110,73,-148,-149,-150,73,73,-245,-249,-23,-58,-37,73,-164,73,-45,-197,-47,-87,-88,-89,-90,-91,-93,-94,-95,73,73,-98,-99,73,73,-103,-104,-105,-106,-107,-108,73,-111,-112,-113,-114,-115,-116,73,73,-119,-120,-121,-122,-123,-124,-125,-126,-127,-128,-129,-130,-131,-132,-133,73,-136,73,-138,73,73,73,73,-143,-144,73,73,-250,73,-252,73,-246,-26,-38,73,-44,-49,73,-219,73,73,-220,73,-254,-253,73,-24,73,-59,-92,-165,-199,-201,-202,-51,73,73,-96,-97,-100,-102,73,-117,-118,-135,73,73,73,-141,-142,73,-146,-147,-255,-25,-167,-32,-33,-160,-200,-48,-50,-217,73,73,73,73,-218,-134,73,-156,-215,73,73,-216,73,-137,-139,-140,-145,73,-109,-166,-157,]),'ATAND':([0,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,25,27,30,31,32,33,34,35,39,45,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,131,132,142,146,149,150,151,153,154,158,161,162,165,170,171,172,173,174,175,176,177,178,179,180,181,182,183,185,186,187,188,189,190,191,192,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,251,252,253,254,255,256,257,259,260,264,271,272,274,280,283,284,285,286,287,288,290,294,295,296,297,298,299,300,301,302,303,304,305,311,312,313,314,315,316,331,340,364,365,366,367,379,383,384,385,386,399,401,402,408,409,411,412,417,428,429,430,431,432,433,434,435,436,437,438,439,440,441,442,443,444,445,446,447,448,449,450,451,452,453,454,455,456,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,473,474,475,476,477,478,479,480,481,482,483,484,485,486,487,488,490,491,510,516,520,526,530,531,532,533,534,542,551,552,553,556,563,571,572,579,580,582,583,586,588,590,593,594,595,596,597,598,599,601,602,603,604,605,606,607,608,609,610,611,622,630,631,635,636,637,638,640,641,642,644,646,653,655,667,671,673,678,680,682,683,684,685,686,687,694,706,707,709,],[74,74,-3,-4,-5,-6,-7,-8,-9,-10,-11,-12,-13,-14,-15,-16,-17,-18,-19,-20,-21,-22,-55,-57,74,-152,-151,74,-85,-86,-56,74,-155,-2,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,-247,-40,-41,-82,-83,74,-153,-84,-39,-52,74,-53,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,-73,-74,-75,-76,-77,-78,-79,-80,74,-251,74,74,-256,-244,-248,-54,-31,-154,-52,-53,-81,-46,-191,-192,-193,-194,-195,-196,-198,-203,-204,-205,-206,-207,-208,-209,-210,-211,-212,-213,-214,74,-221,74,74,74,74,-101,-110,74,-148,-149,-150,74,74,-245,-249,-23,-58,-37,74,-164,74,-45,-197,-47,-87,-88,-89,-90,-91,-93,-94,-95,74,74,-98,-99,74,74,-103,-104,-105,-106,-107,-108,74,-111,-112,-113,-114,-115,-116,74,74,-119,-120,-121,-122,-123,-124,-125,-126,-127,-128,-129,-130,-131,-132,-133,74,-136,74,-138,74,74,74,74,-143,-144,74,74,-250,74,-252,74,-246,-26,-38,74,-44,-49,74,-219,74,74,-220,74,-254,-253,74,-24,74,-59,-92,-165,-199,-201,-202,-51,74,74,-96,-97,-100,-102,74,-117,-118,-135,74,74,74,-141,-142,74,-146,-147,-255,-25,-167,-32,-33,-160,-200,-48,-50,-217,74,74,74,74,-218,-134,74,-156,-215,74,74,-216,74,-137,-139,-140,-145,74,-109,-166,-157,]),'ATAN2':([0,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,25,27,30,31,32,33,34,35,39,45,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,131,132,142,146,149,150,151,153,154,158,161,162,165,170,171,172,173,174,175,176,177,178,179,180,181,182,183,185,186,187,188,189,190,191,192,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,251,252,253,254,255,256,257,259,260,264,271,272,274,280,283,284,285,286,287,288,290,294,295,296,297,298,299,300,301,302,303,304,305,311,312,313,314,315,316,331,340,364,365,366,367,379,383,384,385,386,399,401,402,408,409,411,412,417,428,429,430,431,432,433,434,435,436,437,438,439,440,441,442,443,444,445,446,447,448,449,450,451,452,453,454,455,456,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,473,474,475,476,477,478,479,480,481,482,483,484,485,486,487,488,490,491,510,516,520,526,530,531,532,533,534,542,551,552,553,556,563,571,572,579,580,582,583,586,588,590,593,594,595,596,597,598,599,601,602,603,604,605,606,607,608,609,610,611,622,630,631,635,636,637,638,640,641,642,644,646,653,655,667,671,673,678,680,682,683,684,685,686,687,694,706,707,709,],[75,75,-3,-4,-5,-6,-7,-8,-9,-10,-11,-12,-13,-14,-15,-16,-17,-18,-19,-20,-21,-22,-55,-57,75,-152,-151,75,-85,-86,-56,75,-155,-2,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,-247,-40,-41,-82,-83,75,-153,-84,-39,-52,75,-53,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,-73,-74,-75,-76,-77,-78,-79,-80,75,-251,75,75,-256,-244,-248,-54,-31,-154,-52,-53,-81,-46,-191,-192,-193,-194,-195,-196,-198,-203,-204,-205,-206,-207,-208,-209,-210,-211,-212,-213,-214,75,-221,75,75,75,75,-101,-110,75,-148,-149,-150,75,75,-245,-249,-23,-58,-37,75,-164,75,-45,-197,-47,-87,-88,-89,-90,-91,-93,-94,-95,75,75,-98,-99,75,75,-103,-104,-105,-106,-107,-108,75,-111,-112,-113,-114,-115,-116,75,75,-119,-120,-121,-122,-123,-124,-125,-126,-127,-128,-129,-130,-131,-132,-133,75,-136,75,-138,75,75,75,75,-143,-144,75,75,-250,75,-252,75,-246,-26,-38,75,-44,-49,75,-219,75,75,-220,75,-254,-253,75,-24,75,-59,-92,-165,-199,-201,-202,-51,75,75,-96,-97,-100,-102,75,-117,-118,-135,75,75,75,-141,-142,75,-146,-147,-255,-25,-167,-32,-33,-160,-200,-48,-50,-217,75,75,75,75,-218,-134,75,-156,-215,75,75,-216,75,-137,-139,-140,-145,75,-109,-166,-157,]),'ATAN2D':([0,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,25,27,30,31,32,33,34,35,39,45,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,131,132,142,146,149,150,151,153,154,158,161,162,165,170,171,172,173,174,175,176,177,178,179,180,181,182,183,185,186,187,188,189,190,191,192,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,251,252,253,254,255,256,257,259,260,264,271,272,274,280,283,284,285,286,287,288,290,294,295,296,297,298,299,300,301,302,303,304,305,311,312,313,314,315,316,331,340,364,365,366,367,379,383,384,385,386,399,401,402,408,409,411,412,417,428,429,430,431,432,433,434,435,436,437,438,439,440,441,442,443,444,445,446,447,448,449,450,451,452,453,454,455,456,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,473,474,475,476,477,478,479,480,481,482,483,484,485,486,487,488,490,491,510,516,520,526,530,531,532,533,534,542,551,552,553,556,563,571,572,579,580,582,583,586,588,590,593,594,595,596,597,598,599,601,602,603,604,605,606,607,608,609,610,611,622,630,631,635,636,637,638,640,641,642,644,646,653,655,667,671,673,678,680,682,683,684,685,686,687,694,706,707,709,],[76,76,-3,-4,-5,-6,-7,-8,-9,-10,-11,-12,-13,-14,-15,-16,-17,-18,-19,-20,-21,-22,-55,-57,76,-152,-151,76,-85,-86,-56,76,-155,-2,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,-247,-40,-41,-82,-83,76,-153,-84,-39,-52,76,-53,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,-73,-74,-75,-76,-77,-78,-79,-80,76,-251,76,76,-256,-244,-248,-54,-31,-154,-52,-53,-81,-46,-191,-192,-193,-194,-195,-196,-198,-203,-204,-205,-206,-207,-208,-209,-210,-211,-212,-213,-214,76,-221,76,76,76,76,-101,-110,76,-148,-149,-150,76,76,-245,-249,-23,-58,-37,76,-164,76,-45,-197,-47,-87,-88,-89,-90,-91,-93,-94,-95,76,76,-98,-99,76,76,-103,-104,-105,-106,-107,-108,76,-111,-112,-113,-114,-115,-116,76,76,-119,-120,-121,-122,-123,-124,-125,-126,-127,-128,-129,-130,-131,-132,-133,76,-136,76,-138,76,76,76,76,-143,-144,76,76,-250,76,-252,76,-246,-26,-38,76,-44,-49,76,-219,76,76,-220,76,-254,-253,76,-24,76,-59,-92,-165,-199,-201,-202,-51,76,76,-96,-97,-100,-102,76,-117,-118,-135,76,76,76,-141,-142,76,-146,-147,-255,-25,-167,-32,-33,-160,-200,-48,-50,-217,76,76,76,76,-218,-134,76,-156,-215,76,76,-216,76,-137,-139,-140,-145,76,-109,-166,-157,]),'COS':([0,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,25,27,30,31,32,33,34,35,39,45,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,131,132,142,146,149,150,151,153,154,158,161,162,165,170,171,172,173,174,175,176,177,178,179,180,181,182,183,185,186,187,188,189,190,191,192,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,251,252,253,254,255,256,257,259,260,264,271,272,274,280,283,284,285,286,287,288,290,294,295,296,297,298,299,300,301,302,303,304,305,311,312,313,314,315,316,331,340,364,365,366,367,379,383,384,385,386,399,401,402,408,409,411,412,417,428,429,430,431,432,433,434,435,436,437,438,439,440,441,442,443,444,445,446,447,448,449,450,451,452,453,454,455,456,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,473,474,475,476,477,478,479,480,481,482,483,484,485,486,487,488,490,491,510,516,520,526,530,531,532,533,534,542,551,552,553,556,563,571,572,579,580,582,583,586,588,590,593,594,595,596,597,598,599,601,602,603,604,605,606,607,608,609,610,611,622,630,631,635,636,637,638,640,641,642,644,646,653,655,667,671,673,678,680,682,683,684,685,686,687,694,706,707,709,],[77,77,-3,-4,-5,-6,-7,-8,-9,-10,-11,-12,-13,-14,-15,-16,-17,-18,-19,-20,-21,-22,-55,-57,77,-152,-151,77,-85,-86,-56,77,-155,-2,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,-247,-40,-41,-82,-83,77,-153,-84,-39,-52,77,-53,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,77,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,-73,-74,-75,-76,-77,-78,-79,-80,77,-251,77,77,-256,-244,-248,-54,-31,-154,-52,-53,-81,-46,-191,-192,-193,-194,-195,-196,-198,-203,-204,-205,-206,-207,-208,-209,-210,-211,-212,-213,-214,77,-221,77,77,77,77,-101,-110,77,-148,-149,-150,77,77,-245,-249,-23,-58,-37,77,-164,77,-45,-197,-47,-87,-88,-89,-90,-91,-93,-94,-95,77,77,-98,-99,77,77,-103,-104,-105,-106,-107,-108,77,-111,-112,-113,-114,-115,-116,77,77,-119,-120,-121,-122,-123,-124,-125,-126,-127,-128,-129,-130,-131,-132,-133,77,-136,77,-138,77,77,77,77,-143,-144,77,77,-250,77,-252,77,-246,-26,-38,77,-44,-49,77,-219,77,77,-220,77,-254,-253,77,-24,77,-59,-92,-165,-199,-201,-202,-51,77,77,-96,-97,-100,-102,77,-117,-118,-135,77,77,77,-141,-142,77,-146,-147,-255,-25,-167,-32,-33,-160,-200,-48,-50,-217,77,77,77,77,-218,-134,77,-156,-215,77,77,-216,77,-137,-139,-140,-145,77,-109,-166,-157,]),'COSD':([0,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,25,27,30,31,32,33,34,35,39,45,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,131,132,142,146,149,150,151,153,154,158,161,162,165,170,171,172,173,174,175,176,177,178,179,180,181,182,183,185,186,187,188,189,190,191,192,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,251,252,253,254,255,256,257,259,260,264,271,272,274,280,283,284,285,286,287,288,290,294,295,296,297,298,299,300,301,302,303,304,305,311,312,313,314,315,316,331,340,364,365,366,367,379,383,384,385,386,399,401,402,408,409,411,412,417,428,429,430,431,432,433,434,435,436,437,438,439,440,441,442,443,444,445,446,447,448,449,450,451,452,453,454,455,456,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,473,474,475,476,477,478,479,480,481,482,483,484,485,486,487,488,490,491,510,516,520,526,530,531,532,533,534,542,551,552,553,556,563,571,572,579,580,582,583,586,588,590,593,594,595,596,597,598,599,601,602,603,604,605,606,607,608,609,610,611,622,630,631,635,636,637,638,640,641,642,644,646,653,655,667,671,673,678,680,682,683,684,685,686,687,694,706,707,709,],[78,78,-3,-4,-5,-6,-7,-8,-9,-10,-11,-12,-13,-14,-15,-16,-17,-18,-19,-20,-21,-22,-55,-57,78,-152,-151,78,-85,-86,-56,78,-155,-2,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,-247,-40,-41,-82,-83,78,-153,-84,-39,-52,78,-53,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,78,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,-73,-74,-75,-76,-77,-78,-79,-80,78,-251,78,78,-256,-244,-248,-54,-31,-154,-52,-53,-81,-46,-191,-192,-193,-194,-195,-196,-198,-203,-204,-205,-206,-207,-208,-209,-210,-211,-212,-213,-214,78,-221,78,78,78,78,-101,-110,78,-148,-149,-150,78,78,-245,-249,-23,-58,-37,78,-164,78,-45,-197,-47,-87,-88,-89,-90,-91,-93,-94,-95,78,78,-98,-99,78,78,-103,-104,-105,-106,-107,-108,78,-111,-112,-113,-114,-115,-116,78,78,-119,-120,-121,-122,-123,-124,-125,-126,-127,-128,-129,-130,-131,-132,-133,78,-136,78,-138,78,78,78,78,-143,-144,78,78,-250,78,-252,78,-246,-26,-38,78,-44,-49,78,-219,78,78,-220,78,-254,-253,78,-24,78,-59,-92,-165,-199,-201,-202,-51,78,78,-96,-97,-100,-102,78,-117,-118,-135,78,78,78,-141,-142,78,-146,-147,-255,-25,-167,-32,-33,-160,-200,-48,-50,-217,78,78,78,78,-218,-134,78,-156,-215,78,78,-216,78,-137,-139,-140,-145,78,-109,-166,-157,]),'COT':([0,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,25,27,30,31,32,33,34,35,39,45,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,131,132,142,146,149,150,151,153,154,158,161,162,165,170,171,172,173,174,175,176,177,178,179,180,181,182,183,185,186,187,188,189,190,191,192,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,251,252,253,254,255,256,257,259,260,264,271,272,274,280,283,284,285,286,287,288,290,294,295,296,297,298,299,300,301,302,303,304,305,311,312,313,314,315,316,331,340,364,365,366,367,379,383,384,385,386,399,401,402,408,409,411,412,417,428,429,430,431,432,433,434,435,436,437,438,439,440,441,442,443,444,445,446,447,448,449,450,451,452,453,454,455,456,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,473,474,475,476,477,478,479,480,481,482,483,484,485,486,487,488,490,491,510,516,520,526,530,531,532,533,534,542,551,552,553,556,563,571,572,579,580,582,583,586,588,590,593,594,595,596,597,598,599,601,602,603,604,605,606,607,608,609,610,611,622,630,631,635,636,637,638,640,641,642,644,646,653,655,667,671,673,678,680,682,683,684,685,686,687,694,706,707,709,],[79,79,-3,-4,-5,-6,-7,-8,-9,-10,-11,-12,-13,-14,-15,-16,-17,-18,-19,-20,-21,-22,-55,-57,79,-152,-151,79,-85,-86,-56,79,-155,-2,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,-247,-40,-41,-82,-83,79,-153,-84,-39,-52,79,-53,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,79,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,-73,-74,-75,-76,-77,-78,-79,-80,79,-251,79,79,-256,-244,-248,-54,-31,-154,-52,-53,-81,-46,-191,-192,-193,-194,-195,-196,-198,-203,-204,-205,-206,-207,-208,-209,-210,-211,-212,-213,-214,79,-221,79,79,79,79,-101,-110,79,-148,-149,-150,79,79,-245,-249,-23,-58,-37,79,-164,79,-45,-197,-47,-87,-88,-89,-90,-91,-93,-94,-95,79,79,-98,-99,79,79,-103,-104,-105,-106,-107,-108,79,-111,-112,-113,-114,-115,-116,79,79,-119,-120,-121,-122,-123,-124,-125,-126,-127,-128,-129,-130,-131,-132,-133,79,-136,79,-138,79,79,79,79,-143,-144,79,79,-250,79,-252,79,-246,-26,-38,79,-44,-49,79,-219,79,79,-220,79,-254,-253,79,-24,79,-59,-92,-165,-199,-201,-202,-51,79,79,-96,-97,-100,-102,79,-117,-118,-135,79,79,79,-141,-142,79,-146,-147,-255,-25,-167,-32,-33,-160,-200,-48,-50,-217,79,79,79,79,-218,-134,79,-156,-215,79,79,-216,79,-137,-139,-140,-145,79,-109,-166,-157,]),'COTD':([0,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,25,27,30,31,32,33,34,35,39,45,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,131,132,142,146,149,150,151,153,154,158,161,162,165,170,171,172,173,174,175,176,177,178,179,180,181,182,183,185,186,187,188,189,190,191,192,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,251,252,253,254,255,256,257,259,260,264,271,272,274,280,283,284,285,286,287,288,290,294,295,296,297,298,299,300,301,302,303,304,305,311,312,313,314,315,316,331,340,364,365,366,367,379,383,384,385,386,399,401,402,408,409,411,412,417,428,429,430,431,432,433,434,435,436,437,438,439,440,441,442,443,444,445,446,447,448,449,450,451,452,453,454,455,456,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,473,474,475,476,477,478,479,480,481,482,483,484,485,486,487,488,490,491,510,516,520,526,530,531,532,533,534,542,551,552,553,556,563,571,572,579,580,582,583,586,588,590,593,594,595,596,597,598,599,601,602,603,604,605,606,607,608,609,610,611,622,630,631,635,636,637,638,640,641,642,644,646,653,655,667,671,673,678,680,682,683,684,685,686,687,694,706,707,709,],[80,80,-3,-4,-5,-6,-7,-8,-9,-10,-11,-12,-13,-14,-15,-16,-17,-18,-19,-20,-21,-22,-55,-57,80,-152,-151,80,-85,-86,-56,80,-155,-2,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,-247,-40,-41,-82,-83,80,-153,-84,-39,-52,80,-53,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,80,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,-73,-74,-75,-76,-77,-78,-79,-80,80,-251,80,80,-256,-244,-248,-54,-31,-154,-52,-53,-81,-46,-191,-192,-193,-194,-195,-196,-198,-203,-204,-205,-206,-207,-208,-209,-210,-211,-212,-213,-214,80,-221,80,80,80,80,-101,-110,80,-148,-149,-150,80,80,-245,-249,-23,-58,-37,80,-164,80,-45,-197,-47,-87,-88,-89,-90,-91,-93,-94,-95,80,80,-98,-99,80,80,-103,-104,-105,-106,-107,-108,80,-111,-112,-113,-114,-115,-116,80,80,-119,-120,-121,-122,-123,-124,-125,-126,-127,-128,-129,-130,-131,-132,-133,80,-136,80,-138,80,80,80,80,-143,-144,80,80,-250,80,-252,80,-246,-26,-38,80,-44,-49,80,-219,80,80,-220,80,-254,-253,80,-24,80,-59,-92,-165,-199,-201,-202,-51,80,80,-96,-97,-100,-102,80,-117,-118,-135,80,80,80,-141,-142,80,-146,-147,-255,-25,-167,-32,-33,-160,-200,-48,-50,-217,80,80,80,80,-218,-134,80,-156,-215,80,80,-216,80,-137,-139,-140,-145,80,-109,-166,-157,]),'SIN':([0,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,25,27,30,31,32,33,34,35,39,45,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,131,132,142,146,149,150,151,153,154,158,161,162,165,170,171,172,173,174,175,176,177,178,179,180,181,182,183,185,186,187,188,189,190,191,192,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,251,252,253,254,255,256,257,259,260,264,271,272,274,280,283,284,285,286,287,288,290,294,295,296,297,298,299,300,301,302,303,304,305,311,312,313,314,315,316,331,340,364,365,366,367,379,383,384,385,386,399,401,402,408,409,411,412,417,428,429,430,431,432,433,434,435,436,437,438,439,440,441,442,443,444,445,446,447,448,449,450,451,452,453,454,455,456,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,473,474,475,476,477,478,479,480,481,482,483,484,485,486,487,488,490,491,510,516,520,526,530,531,532,533,534,542,551,552,553,556,563,571,572,579,580,582,583,586,588,590,593,594,595,596,597,598,599,601,602,603,604,605,606,607,608,609,610,611,622,630,631,635,636,637,638,640,641,642,644,646,653,655,667,671,673,678,680,682,683,684,685,686,687,694,706,707,709,],[81,81,-3,-4,-5,-6,-7,-8,-9,-10,-11,-12,-13,-14,-15,-16,-17,-18,-19,-20,-21,-22,-55,-57,81,-152,-151,81,-85,-86,-56,81,-155,-2,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,-247,-40,-41,-82,-83,81,-153,-84,-39,-52,81,-53,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,81,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,-73,-74,-75,-76,-77,-78,-79,-80,81,-251,81,81,-256,-244,-248,-54,-31,-154,-52,-53,-81,-46,-191,-192,-193,-194,-195,-196,-198,-203,-204,-205,-206,-207,-208,-209,-210,-211,-212,-213,-214,81,-221,81,81,81,81,-101,-110,81,-148,-149,-150,81,81,-245,-249,-23,-58,-37,81,-164,81,-45,-197,-47,-87,-88,-89,-90,-91,-93,-94,-95,81,81,-98,-99,81,81,-103,-104,-105,-106,-107,-108,81,-111,-112,-113,-114,-115,-116,81,81,-119,-120,-121,-122,-123,-124,-125,-126,-127,-128,-129,-130,-131,-132,-133,81,-136,81,-138,81,81,81,81,-143,-144,81,81,-250,81,-252,81,-246,-26,-38,81,-44,-49,81,-219,81,81,-220,81,-254,-253,81,-24,81,-59,-92,-165,-199,-201,-202,-51,81,81,-96,-97,-100,-102,81,-117,-118,-135,81,81,81,-141,-142,81,-146,-147,-255,-25,-167,-32,-33,-160,-200,-48,-50,-217,81,81,81,81,-218,-134,81,-156,-215,81,81,-216,81,-137,-139,-140,-145,81,-109,-166,-157,]),'SIND':([0,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,25,27,30,31,32,33,34,35,39,45,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,131,132,142,146,149,150,151,153,154,158,161,162,165,170,171,172,173,174,175,176,177,178,179,180,181,182,183,185,186,187,188,189,190,191,192,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,251,252,253,254,255,256,257,259,260,264,271,272,274,280,283,284,285,286,287,288,290,294,295,296,297,298,299,300,301,302,303,304,305,311,312,313,314,315,316,331,340,364,365,366,367,379,383,384,385,386,399,401,402,408,409,411,412,417,428,429,430,431,432,433,434,435,436,437,438,439,440,441,442,443,444,445,446,447,448,449,450,451,452,453,454,455,456,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,473,474,475,476,477,478,479,480,481,482,483,484,485,486,487,488,490,491,510,516,520,526,530,531,532,533,534,542,551,552,553,556,563,571,572,579,580,582,583,586,588,590,593,594,595,596,597,598,599,601,602,603,604,605,606,607,608,609,610,611,622,630,631,635,636,637,638,640,641,642,644,646,653,655,667,671,673,678,680,682,683,684,685,686,687,694,706,707,709,],[82,82,-3,-4,-5,-6,-7,-8,-9,-10,-11,-12,-13,-14,-15,-16,-17,-18,-19,-20,-21,-22,-55,-57,82,-152,-151,82,-85,-86,-56,82,-155,-2,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,-247,-40,-41,-82,-83,82,-153,-84,-39,-52,82,-53,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,-73,-74,-75,-76,-77,-78,-79,-80,82,-251,82,82,-256,-244,-248,-54,-31,-154,-52,-53,-81,-46,-191,-192,-193,-194,-195,-196,-198,-203,-204,-205,-206,-207,-208,-209,-210,-211,-212,-213,-214,82,-221,82,82,82,82,-101,-110,82,-148,-149,-150,82,82,-245,-249,-23,-58,-37,82,-164,82,-45,-197,-47,-87,-88,-89,-90,-91,-93,-94,-95,82,82,-98,-99,82,82,-103,-104,-105,-106,-107,-108,82,-111,-112,-113,-114,-115,-116,82,82,-119,-120,-121,-122,-123,-124,-125,-126,-127,-128,-129,-130,-131,-132,-133,82,-136,82,-138,82,82,82,82,-143,-144,82,82,-250,82,-252,82,-246,-26,-38,82,-44,-49,82,-219,82,82,-220,82,-254,-253,82,-24,82,-59,-92,-165,-199,-201,-202,-51,82,82,-96,-97,-100,-102,82,-117,-118,-135,82,82,82,-141,-142,82,-146,-147,-255,-25,-167,-32,-33,-160,-200,-48,-50,-217,82,82,82,82,-218,-134,82,-156,-215,82,82,-216,82,-137,-139,-140,-145,82,-109,-166,-157,]),'TAN':([0,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,25,27,30,31,32,33,34,35,39,45,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,131,132,142,146,149,150,151,153,154,158,161,162,165,170,171,172,173,174,175,176,177,178,179,180,181,182,183,185,186,187,188,189,190,191,192,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,251,252,253,254,255,256,257,259,260,264,271,272,274,280,283,284,285,286,287,288,290,294,295,296,297,298,299,300,301,302,303,304,305,311,312,313,314,315,316,331,340,364,365,366,367,379,383,384,385,386,399,401,402,408,409,411,412,417,428,429,430,431,432,433,434,435,436,437,438,439,440,441,442,443,444,445,446,447,448,449,450,451,452,453,454,455,456,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,473,474,475,476,477,478,479,480,481,482,483,484,485,486,487,488,490,491,510,516,520,526,530,531,532,533,534,542,551,552,553,556,563,571,572,579,580,582,583,586,588,590,593,594,595,596,597,598,599,601,602,603,604,605,606,607,608,609,610,611,622,630,631,635,636,637,638,640,641,642,644,646,653,655,667,671,673,678,680,682,683,684,685,686,687,694,706,707,709,],[83,83,-3,-4,-5,-6,-7,-8,-9,-10,-11,-12,-13,-14,-15,-16,-17,-18,-19,-20,-21,-22,-55,-57,83,-152,-151,83,-85,-86,-56,83,-155,-2,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,-247,-40,-41,-82,-83,83,-153,-84,-39,-52,83,-53,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,-73,-74,-75,-76,-77,-78,-79,-80,83,-251,83,83,-256,-244,-248,-54,-31,-154,-52,-53,-81,-46,-191,-192,-193,-194,-195,-196,-198,-203,-204,-205,-206,-207,-208,-209,-210,-211,-212,-213,-214,83,-221,83,83,83,83,-101,-110,83,-148,-149,-150,83,83,-245,-249,-23,-58,-37,83,-164,83,-45,-197,-47,-87,-88,-89,-90,-91,-93,-94,-95,83,83,-98,-99,83,83,-103,-104,-105,-106,-107,-108,83,-111,-112,-113,-114,-115,-116,83,83,-119,-120,-121,-122,-123,-124,-125,-126,-127,-128,-129,-130,-131,-132,-133,83,-136,83,-138,83,83,83,83,-143,-144,83,83,-250,83,-252,83,-246,-26,-38,83,-44,-49,83,-219,83,83,-220,83,-254,-253,83,-24,83,-59,-92,-165,-199,-201,-202,-51,83,83,-96,-97,-100,-102,83,-117,-118,-135,83,83,83,-141,-142,83,-146,-147,-255,-25,-167,-32,-33,-160,-200,-48,-50,-217,83,83,83,83,-218,-134,83,-156,-215,83,83,-216,83,-137,-139,-140,-145,83,-109,-166,-157,]),'TAND':([0,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,25,27,30,31,32,33,34,35,39,45,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,131,132,142,146,149,150,151,153,154,158,161,162,165,170,171,172,173,174,175,176,177,178,179,180,181,182,183,185,186,187,188,189,190,191,192,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,251,252,253,254,255,256,257,259,260,264,271,272,274,280,283,284,285,286,287,288,290,294,295,296,297,298,299,300,301,302,303,304,305,311,312,313,314,315,316,331,340,364,365,366,367,379,383,384,385,386,399,401,402,408,409,411,412,417,428,429,430,431,432,433,434,435,436,437,438,439,440,441,442,443,444,445,446,447,448,449,450,451,452,453,454,455,456,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,473,474,475,476,477,478,479,480,481,482,483,484,485,486,487,488,490,491,510,516,520,526,530,531,532,533,534,542,551,552,553,556,563,571,572,579,580,582,583,586,588,590,593,594,595,596,597,598,599,601,602,603,604,605,606,607,608,609,610,611,622,630,631,635,636,637,638,640,641,642,644,646,653,655,667,671,673,678,680,682,683,684,685,686,687,694,706,707,709,],[84,84,-3,-4,-5,-6,-7,-8,-9,-10,-11,-12,-13,-14,-15,-16,-17,-18,-19,-20,-21,-22,-55,-57,84,-152,-151,84,-85,-86,-56,84,-155,-2,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,-247,-40,-41,-82,-83,84,-153,-84,-39,-52,84,-53,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,84,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,-73,-74,-75,-76,-77,-78,-79,-80,84,-251,84,84,-256,-244,-248,-54,-31,-154,-52,-53,-81,-46,-191,-192,-193,-194,-195,-196,-198,-203,-204,-205,-206,-207,-208,-209,-210,-211,-212,-213,-214,84,-221,84,84,84,84,-101,-110,84,-148,-149,-150,84,84,-245,-249,-23,-58,-37,84,-164,84,-45,-197,-47,-87,-88,-89,-90,-91,-93,-94,-95,84,84,-98,-99,84,84,-103,-104,-105,-106,-107,-108,84,-111,-112,-113,-114,-115,-116,84,84,-119,-120,-121,-122,-123,-124,-125,-126,-127,-128,-129,-130,-131,-132,-133,84,-136,84,-138,84,84,84,84,-143,-144,84,84,-250,84,-252,84,-246,-26,-38,84,-44,-49,84,-219,84,84,-220,84,-254,-253,84,-24,84,-59,-92,-165,-199,-201,-202,-51,84,84,-96,-97,-100,-102,84,-117,-118,-135,84,84,84,-141,-142,84,-146,-147,-255,-25,-167,-32,-33,-160,-200,-48,-50,-217,84,84,84,84,-218,-134,84,-156,-215,84,84,-216,84,-137,-139,-140,-145,84,-109,-166,-157,]),'SINH':([0,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,25,27,30,31,32,33,34,35,39,45,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,131,132,142,146,149,150,151,153,154,158,161,162,165,170,171,172,173,174,175,176,177,178,179,180,181,182,183,185,186,187,188,189,190,191,192,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,251,252,253,254,255,256,257,259,260,264,271,272,274,280,283,284,285,286,287,288,290,294,295,296,297,298,299,300,301,302,303,304,305,311,312,313,314,315,316,331,340,364,365,366,367,379,383,384,385,386,399,401,402,408,409,411,412,417,428,429,430,431,432,433,434,435,436,437,438,439,440,441,442,443,444,445,446,447,448,449,450,451,452,453,454,455,456,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,473,474,475,476,477,478,479,480,481,482,483,484,485,486,487,488,490,491,510,516,520,526,530,531,532,533,534,542,551,552,553,556,563,571,572,579,580,582,583,586,588,590,593,594,595,596,597,598,599,601,602,603,604,605,606,607,608,609,610,611,622,630,631,635,636,637,638,640,641,642,644,646,653,655,667,671,673,678,680,682,683,684,685,686,687,694,706,707,709,],[85,85,-3,-4,-5,-6,-7,-8,-9,-10,-11,-12,-13,-14,-15,-16,-17,-18,-19,-20,-21,-22,-55,-57,85,-152,-151,85,-85,-86,-56,85,-155,-2,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,-247,-40,-41,-82,-83,85,-153,-84,-39,-52,85,-53,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,85,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,-73,-74,-75,-76,-77,-78,-79,-80,85,-251,85,85,-256,-244,-248,-54,-31,-154,-52,-53,-81,-46,-191,-192,-193,-194,-195,-196,-198,-203,-204,-205,-206,-207,-208,-209,-210,-211,-212,-213,-214,85,-221,85,85,85,85,-101,-110,85,-148,-149,-150,85,85,-245,-249,-23,-58,-37,85,-164,85,-45,-197,-47,-87,-88,-89,-90,-91,-93,-94,-95,85,85,-98,-99,85,85,-103,-104,-105,-106,-107,-108,85,-111,-112,-113,-114,-115,-116,85,85,-119,-120,-121,-122,-123,-124,-125,-126,-127,-128,-129,-130,-131,-132,-133,85,-136,85,-138,85,85,85,85,-143,-144,85,85,-250,85,-252,85,-246,-26,-38,85,-44,-49,85,-219,85,85,-220,85,-254,-253,85,-24,85,-59,-92,-165,-199,-201,-202,-51,85,85,-96,-97,-100,-102,85,-117,-118,-135,85,85,85,-141,-142,85,-146,-147,-255,-25,-167,-32,-33,-160,-200,-48,-50,-217,85,85,85,85,-218,-134,85,-156,-215,85,85,-216,85,-137,-139,-140,-145,85,-109,-166,-157,]),'COSH':([0,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,25,27,30,31,32,33,34,35,39,45,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,131,132,142,146,149,150,151,153,154,158,161,162,165,170,171,172,173,174,175,176,177,178,179,180,181,182,183,185,186,187,188,189,190,191,192,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,251,252,253,254,255,256,257,259,260,264,271,272,274,280,283,284,285,286,287,288,290,294,295,296,297,298,299,300,301,302,303,304,305,311,312,313,314,315,316,331,340,364,365,366,367,379,383,384,385,386,399,401,402,408,409,411,412,417,428,429,430,431,432,433,434,435,436,437,438,439,440,441,442,443,444,445,446,447,448,449,450,451,452,453,454,455,456,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,473,474,475,476,477,478,479,480,481,482,483,484,485,486,487,488,490,491,510,516,520,526,530,531,532,533,534,542,551,552,553,556,563,571,572,579,580,582,583,586,588,590,593,594,595,596,597,598,599,601,602,603,604,605,606,607,608,609,610,611,622,630,631,635,636,637,638,640,641,642,644,646,653,655,667,671,673,678,680,682,683,684,685,686,687,694,706,707,709,],[86,86,-3,-4,-5,-6,-7,-8,-9,-10,-11,-12,-13,-14,-15,-16,-17,-18,-19,-20,-21,-22,-55,-57,86,-152,-151,86,-85,-86,-56,86,-155,-2,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,-247,-40,-41,-82,-83,86,-153,-84,-39,-52,86,-53,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,-73,-74,-75,-76,-77,-78,-79,-80,86,-251,86,86,-256,-244,-248,-54,-31,-154,-52,-53,-81,-46,-191,-192,-193,-194,-195,-196,-198,-203,-204,-205,-206,-207,-208,-209,-210,-211,-212,-213,-214,86,-221,86,86,86,86,-101,-110,86,-148,-149,-150,86,86,-245,-249,-23,-58,-37,86,-164,86,-45,-197,-47,-87,-88,-89,-90,-91,-93,-94,-95,86,86,-98,-99,86,86,-103,-104,-105,-106,-107,-108,86,-111,-112,-113,-114,-115,-116,86,86,-119,-120,-121,-122,-123,-124,-125,-126,-127,-128,-129,-130,-131,-132,-133,86,-136,86,-138,86,86,86,86,-143,-144,86,86,-250,86,-252,86,-246,-26,-38,86,-44,-49,86,-219,86,86,-220,86,-254,-253,86,-24,86,-59,-92,-165,-199,-201,-202,-51,86,86,-96,-97,-100,-102,86,-117,-118,-135,86,86,86,-141,-142,86,-146,-147,-255,-25,-167,-32,-33,-160,-200,-48,-50,-217,86,86,86,86,-218,-134,86,-156,-215,86,86,-216,86,-137,-139,-140,-145,86,-109,-166,-157,]),'TANH':([0,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,25,27,30,31,32,33,34,35,39,45,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,131,132,142,146,149,150,151,153,154,158,161,162,165,170,171,172,173,174,175,176,177,178,179,180,181,182,183,185,186,187,188,189,190,191,192,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,251,252,253,254,255,256,257,259,260,264,271,272,274,280,283,284,285,286,287,288,290,294,295,296,297,298,299,300,301,302,303,304,305,311,312,313,314,315,316,331,340,364,365,366,367,379,383,384,385,386,399,401,402,408,409,411,412,417,428,429,430,431,432,433,434,435,436,437,438,439,440,441,442,443,444,445,446,447,448,449,450,451,452,453,454,455,456,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,473,474,475,476,477,478,479,480,481,482,483,484,485,486,487,488,490,491,510,516,520,526,530,531,532,533,534,542,551,552,553,556,563,571,572,579,580,582,583,586,588,590,593,594,595,596,597,598,599,601,602,603,604,605,606,607,608,609,610,611,622,630,631,635,636,637,638,640,641,642,644,646,653,655,667,671,673,678,680,682,683,684,685,686,687,694,706,707,709,],[87,87,-3,-4,-5,-6,-7,-8,-9,-10,-11,-12,-13,-14,-15,-16,-17,-18,-19,-20,-21,-22,-55,-57,87,-152,-151,87,-85,-86,-56,87,-155,-2,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,-247,-40,-41,-82,-83,87,-153,-84,-39,-52,87,-53,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,87,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,-73,-74,-75,-76,-77,-78,-79,-80,87,-251,87,87,-256,-244,-248,-54,-31,-154,-52,-53,-81,-46,-191,-192,-193,-194,-195,-196,-198,-203,-204,-205,-206,-207,-208,-209,-210,-211,-212,-213,-214,87,-221,87,87,87,87,-101,-110,87,-148,-149,-150,87,87,-245,-249,-23,-58,-37,87,-164,87,-45,-197,-47,-87,-88,-89,-90,-91,-93,-94,-95,87,87,-98,-99,87,87,-103,-104,-105,-106,-107,-108,87,-111,-112,-113,-114,-115,-116,87,87,-119,-120,-121,-122,-123,-124,-125,-126,-127,-128,-129,-130,-131,-132,-133,87,-136,87,-138,87,87,87,87,-143,-144,87,87,-250,87,-252,87,-246,-26,-38,87,-44,-49,87,-219,87,87,-220,87,-254,-253,87,-24,87,-59,-92,-165,-199,-201,-202,-51,87,87,-96,-97,-100,-102,87,-117,-118,-135,87,87,87,-141,-142,87,-146,-147,-255,-25,-167,-32,-33,-160,-200,-48,-50,-217,87,87,87,87,-218,-134,87,-156,-215,87,87,-216,87,-137,-139,-140,-145,87,-109,-166,-157,]),'ASINH':([0,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,25,27,30,31,32,33,34,35,39,45,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,131,132,142,146,149,150,151,153,154,158,161,162,165,170,171,172,173,174,175,176,177,178,179,180,181,182,183,185,186,187,188,189,190,191,192,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,251,252,253,254,255,256,257,259,260,264,271,272,274,280,283,284,285,286,287,288,290,294,295,296,297,298,299,300,301,302,303,304,305,311,312,313,314,315,316,331,340,364,365,366,367,379,383,384,385,386,399,401,402,408,409,411,412,417,428,429,430,431,432,433,434,435,436,437,438,439,440,441,442,443,444,445,446,447,448,449,450,451,452,453,454,455,456,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,473,474,475,476,477,478,479,480,481,482,483,484,485,486,487,488,490,491,510,516,520,526,530,531,532,533,534,542,551,552,553,556,563,571,572,579,580,582,583,586,588,590,593,594,595,596,597,598,599,601,602,603,604,605,606,607,608,609,610,611,622,630,631,635,636,637,638,640,641,642,644,646,653,655,667,671,673,678,680,682,683,684,685,686,687,694,706,707,709,],[88,88,-3,-4,-5,-6,-7,-8,-9,-10,-11,-12,-13,-14,-15,-16,-17,-18,-19,-20,-21,-22,-55,-57,88,-152,-151,88,-85,-86,-56,88,-155,-2,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,-247,-40,-41,-82,-83,88,-153,-84,-39,-52,88,-53,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,-73,-74,-75,-76,-77,-78,-79,-80,88,-251,88,88,-256,-244,-248,-54,-31,-154,-52,-53,-81,-46,-191,-192,-193,-194,-195,-196,-198,-203,-204,-205,-206,-207,-208,-209,-210,-211,-212,-213,-214,88,-221,88,88,88,88,-101,-110,88,-148,-149,-150,88,88,-245,-249,-23,-58,-37,88,-164,88,-45,-197,-47,-87,-88,-89,-90,-91,-93,-94,-95,88,88,-98,-99,88,88,-103,-104,-105,-106,-107,-108,88,-111,-112,-113,-114,-115,-116,88,88,-119,-120,-121,-122,-123,-124,-125,-126,-127,-128,-129,-130,-131,-132,-133,88,-136,88,-138,88,88,88,88,-143,-144,88,88,-250,88,-252,88,-246,-26,-38,88,-44,-49,88,-219,88,88,-220,88,-254,-253,88,-24,88,-59,-92,-165,-199,-201,-202,-51,88,88,-96,-97,-100,-102,88,-117,-118,-135,88,88,88,-141,-142,88,-146,-147,-255,-25,-167,-32,-33,-160,-200,-48,-50,-217,88,88,88,88,-218,-134,88,-156,-215,88,88,-216,88,-137,-139,-140,-145,88,-109,-166,-157,]),'ACOSH':([0,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,25,27,30,31,32,33,34,35,39,45,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,131,132,142,146,149,150,151,153,154,158,161,162,165,170,171,172,173,174,175,176,177,178,179,180,181,182,183,185,186,187,188,189,190,191,192,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,251,252,253,254,255,256,257,259,260,264,271,272,274,280,283,284,285,286,287,288,290,294,295,296,297,298,299,300,301,302,303,304,305,311,312,313,314,315,316,331,340,364,365,366,367,379,383,384,385,386,399,401,402,408,409,411,412,417,428,429,430,431,432,433,434,435,436,437,438,439,440,441,442,443,444,445,446,447,448,449,450,451,452,453,454,455,456,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,473,474,475,476,477,478,479,480,481,482,483,484,485,486,487,488,490,491,510,516,520,526,530,531,532,533,534,542,551,552,553,556,563,571,572,579,580,582,583,586,588,590,593,594,595,596,597,598,599,601,602,603,604,605,606,607,608,609,610,611,622,630,631,635,636,637,638,640,641,642,644,646,653,655,667,671,673,678,680,682,683,684,685,686,687,694,706,707,709,],[89,89,-3,-4,-5,-6,-7,-8,-9,-10,-11,-12,-13,-14,-15,-16,-17,-18,-19,-20,-21,-22,-55,-57,89,-152,-151,89,-85,-86,-56,89,-155,-2,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,-247,-40,-41,-82,-83,89,-153,-84,-39,-52,89,-53,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,-73,-74,-75,-76,-77,-78,-79,-80,89,-251,89,89,-256,-244,-248,-54,-31,-154,-52,-53,-81,-46,-191,-192,-193,-194,-195,-196,-198,-203,-204,-205,-206,-207,-208,-209,-210,-211,-212,-213,-214,89,-221,89,89,89,89,-101,-110,89,-148,-149,-150,89,89,-245,-249,-23,-58,-37,89,-164,89,-45,-197,-47,-87,-88,-89,-90,-91,-93,-94,-95,89,89,-98,-99,89,89,-103,-104,-105,-106,-107,-108,89,-111,-112,-113,-114,-115,-116,89,89,-119,-120,-121,-122,-123,-124,-125,-126,-127,-128,-129,-130,-131,-132,-133,89,-136,89,-138,89,89,89,89,-143,-144,89,89,-250,89,-252,89,-246,-26,-38,89,-44,-49,89,-219,89,89,-220,89,-254,-253,89,-24,89,-59,-92,-165,-199,-201,-202,-51,89,89,-96,-97,-100,-102,89,-117,-118,-135,89,89,89,-141,-142,89,-146,-147,-255,-25,-167,-32,-33,-160,-200,-48,-50,-217,89,89,89,89,-218,-134,89,-156,-215,89,89,-216,89,-137,-139,-140,-145,89,-109,-166,-157,]),'ATANH':([0,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,25,27,30,31,32,33,34,35,39,45,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,131,132,142,146,149,150,151,153,154,158,161,162,165,170,171,172,173,174,175,176,177,178,179,180,181,182,183,185,186,187,188,189,190,191,192,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,251,252,253,254,255,256,257,259,260,264,271,272,274,280,283,284,285,286,287,288,290,294,295,296,297,298,299,300,301,302,303,304,305,311,312,313,314,315,316,331,340,364,365,366,367,379,383,384,385,386,399,401,402,408,409,411,412,417,428,429,430,431,432,433,434,435,436,437,438,439,440,441,442,443,444,445,446,447,448,449,450,451,452,453,454,455,456,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,473,474,475,476,477,478,479,480,481,482,483,484,485,486,487,488,490,491,510,516,520,526,530,531,532,533,534,542,551,552,553,556,563,571,572,579,580,582,583,586,588,590,593,594,595,596,597,598,599,601,602,603,604,605,606,607,608,609,610,611,622,630,631,635,636,637,638,640,641,642,644,646,653,655,667,671,673,678,680,682,683,684,685,686,687,694,706,707,709,],[90,90,-3,-4,-5,-6,-7,-8,-9,-10,-11,-12,-13,-14,-15,-16,-17,-18,-19,-20,-21,-22,-55,-57,90,-152,-151,90,-85,-86,-56,90,-155,-2,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,-247,-40,-41,-82,-83,90,-153,-84,-39,-52,90,-53,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,-73,-74,-75,-76,-77,-78,-79,-80,90,-251,90,90,-256,-244,-248,-54,-31,-154,-52,-53,-81,-46,-191,-192,-193,-194,-195,-196,-198,-203,-204,-205,-206,-207,-208,-209,-210,-211,-212,-213,-214,90,-221,90,90,90,90,-101,-110,90,-148,-149,-150,90,90,-245,-249,-23,-58,-37,90,-164,90,-45,-197,-47,-87,-88,-89,-90,-91,-93,-94,-95,90,90,-98,-99,90,90,-103,-104,-105,-106,-107,-108,90,-111,-112,-113,-114,-115,-116,90,90,-119,-120,-121,-122,-123,-124,-125,-126,-127,-128,-129,-130,-131,-132,-133,90,-136,90,-138,90,90,90,90,-143,-144,90,90,-250,90,-252,90,-246,-26,-38,90,-44,-49,90,-219,90,90,-220,90,-254,-253,90,-24,90,-59,-92,-165,-199,-201,-202,-51,90,90,-96,-97,-100,-102,90,-117,-118,-135,90,90,90,-141,-142,90,-146,-147,-255,-25,-167,-32,-33,-160,-200,-48,-50,-217,90,90,90,90,-218,-134,90,-156,-215,90,90,-216,90,-137,-139,-140,-145,90,-109,-166,-157,]),'LENGTH':([0,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,25,27,30,31,32,33,34,35,39,45,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,131,132,142,146,149,150,151,153,154,158,161,162,165,170,171,172,173,174,175,176,177,178,179,180,181,182,183,185,186,187,188,189,190,191,192,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,251,252,253,254,255,256,257,259,260,264,271,272,274,280,283,284,285,286,287,288,290,294,295,296,297,298,299,300,301,302,303,304,305,311,312,313,314,315,316,331,340,364,365,366,367,379,383,384,385,386,399,401,402,408,409,411,412,417,428,429,430,431,432,433,434,435,436,437,438,439,440,441,442,443,444,445,446,447,448,449,450,451,452,453,454,455,456,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,473,474,475,476,477,478,479,480,481,482,483,484,485,486,487,488,490,491,510,516,520,526,530,531,532,533,534,542,551,552,553,556,563,571,572,579,580,582,583,586,588,590,593,594,595,596,597,598,599,601,602,603,604,605,606,607,608,609,610,611,622,630,631,635,636,637,638,640,641,642,644,646,653,655,667,671,673,678,680,682,683,684,685,686,687,694,706,707,709,],[91,91,-3,-4,-5,-6,-7,-8,-9,-10,-11,-12,-13,-14,-15,-16,-17,-18,-19,-20,-21,-22,-55,-57,91,-152,-151,91,-85,-86,-56,91,-155,-2,91,91,91,91,91,91,91,91,91,91,91,91,91,91,91,91,91,91,91,91,91,91,91,-247,-40,-41,-82,-83,91,-153,-84,-39,-52,91,-53,91,91,91,91,91,91,91,91,91,91,91,91,91,91,91,91,91,91,91,91,91,91,91,91,91,91,91,91,91,91,91,91,91,91,91,91,91,91,91,91,91,91,91,91,91,91,91,91,91,91,91,91,91,91,91,91,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,-73,-74,-75,-76,-77,-78,-79,-80,91,-251,91,91,-256,-244,-248,-54,-31,-154,-52,-53,-81,-46,-191,-192,-193,-194,-195,-196,-198,-203,-204,-205,-206,-207,-208,-209,-210,-211,-212,-213,-214,91,-221,91,91,91,91,-101,-110,91,-148,-149,-150,91,91,-245,-249,-23,-58,-37,91,-164,91,-45,-197,-47,-87,-88,-89,-90,-91,-93,-94,-95,91,91,-98,-99,91,91,-103,-104,-105,-106,-107,-108,91,-111,-112,-113,-114,-115,-116,91,91,-119,-120,-121,-122,-123,-124,-125,-126,-127,-128,-129,-130,-131,-132,-133,91,-136,91,-138,91,91,91,91,-143,-144,91,91,-250,91,-252,91,-246,-26,-38,91,-44,-49,91,-219,91,91,-220,91,-254,-253,91,-24,91,-59,-92,-165,-199,-201,-202,-51,91,91,-96,-97,-100,-102,91,-117,-118,-135,91,91,91,-141,-142,91,-146,-147,-255,-25,-167,-32,-33,-160,-200,-48,-50,-217,91,91,91,91,-218,-134,91,-156,-215,91,91,-216,91,-137,-139,-140,-145,91,-109,-166,-157,]),'TRIM':([0,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,25,27,30,31,32,33,34,35,39,45,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,131,132,142,146,149,150,151,153,154,158,161,162,165,170,171,172,173,174,175,176,177,178,179,180,181,182,183,185,186,187,188,189,190,191,192,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,251,252,253,254,255,256,257,259,260,264,271,272,274,280,283,284,285,286,287,288,290,294,295,296,297,298,299,300,301,302,303,304,305,311,312,313,314,315,316,331,340,364,365,366,367,379,383,384,385,386,399,401,402,408,409,411,412,417,428,429,430,431,432,433,434,435,436,437,438,439,440,441,442,443,444,445,446,447,448,449,450,451,452,453,454,455,456,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,473,474,475,476,477,478,479,480,481,482,483,484,485,486,487,488,490,491,510,516,520,526,530,531,532,533,534,542,551,552,553,556,563,571,572,579,580,582,583,586,588,590,593,594,595,596,597,598,599,601,602,603,604,605,606,607,608,609,610,611,622,630,631,635,636,637,638,640,641,642,644,646,653,655,667,671,673,678,680,682,683,684,685,686,687,694,706,707,709,],[92,92,-3,-4,-5,-6,-7,-8,-9,-10,-11,-12,-13,-14,-15,-16,-17,-18,-19,-20,-21,-22,-55,-57,92,-152,-151,92,-85,-86,-56,92,-155,-2,92,92,92,92,92,92,92,92,92,92,92,92,92,92,92,92,92,92,92,92,92,92,92,-247,-40,-41,-82,-83,92,-153,-84,-39,-52,92,-53,92,92,92,92,92,92,92,92,92,92,92,92,92,92,92,92,92,92,92,92,92,92,92,92,92,92,92,92,92,92,92,92,92,92,92,92,92,92,92,92,92,92,92,92,92,92,92,92,92,92,92,92,92,92,92,92,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,-73,-74,-75,-76,-77,-78,-79,-80,92,-251,92,92,-256,-244,-248,-54,-31,-154,-52,-53,-81,-46,-191,-192,-193,-194,-195,-196,-198,-203,-204,-205,-206,-207,-208,-209,-210,-211,-212,-213,-214,92,-221,92,92,92,92,-101,-110,92,-148,-149,-150,92,92,-245,-249,-23,-58,-37,92,-164,92,-45,-197,-47,-87,-88,-89,-90,-91,-93,-94,-95,92,92,-98,-99,92,92,-103,-104,-105,-106,-107,-108,92,-111,-112,-113,-114,-115,-116,92,92,-119,-120,-121,-122,-123,-124,-125,-126,-127,-128,-129,-130,-131,-132,-133,92,-136,92,-138,92,92,92,92,-143,-144,92,92,-250,92,-252,92,-246,-26,-38,92,-44,-49,92,-219,92,92,-220,92,-254,-253,92,-24,92,-59,-92,-165,-199,-201,-202,-51,92,92,-96,-97,-100,-102,92,-117,-118,-135,92,92,92,-141,-142,92,-146,-147,-255,-25,-167,-32,-33,-160,-200,-48,-50,-217,92,92,92,92,-218,-134,92,-156,-215,92,92,-216,92,-137,-139,-140,-145,92,-109,-166,-157,]),'GET_BYTE':([0,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,25,27,30,31,32,33,34,35,39,45,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,131,132,142,146,149,150,151,153,154,158,161,162,165,170,171,172,173,174,175,176,177,178,179,180,181,182,183,185,186,187,188,189,190,191,192,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,251,252,253,254,255,256,257,259,260,264,271,272,274,280,283,284,285,286,287,288,290,294,295,296,297,298,299,300,301,302,303,304,305,311,312,313,314,315,316,331,340,364,365,366,367,379,383,384,385,386,399,401,402,408,409,411,412,417,428,429,430,431,432,433,434,435,436,437,438,439,440,441,442,443,444,445,446,447,448,449,450,451,452,453,454,455,456,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,473,474,475,476,477,478,479,480,481,482,483,484,485,486,487,488,490,491,510,516,520,526,530,531,532,533,534,542,551,552,553,556,563,571,572,579,580,582,583,586,588,590,593,594,595,596,597,598,599,601,602,603,604,605,606,607,608,609,610,611,622,630,631,635,636,637,638,640,641,642,644,646,653,655,667,671,673,678,680,682,683,684,685,686,687,694,706,707,709,],[93,93,-3,-4,-5,-6,-7,-8,-9,-10,-11,-12,-13,-14,-15,-16,-17,-18,-19,-20,-21,-22,-55,-57,93,-152,-151,93,-85,-86,-56,93,-155,-2,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,-247,-40,-41,-82,-83,93,-153,-84,-39,-52,93,-53,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,-73,-74,-75,-76,-77,-78,-79,-80,93,-251,93,93,-256,-244,-248,-54,-31,-154,-52,-53,-81,-46,-191,-192,-193,-194,-195,-196,-198,-203,-204,-205,-206,-207,-208,-209,-210,-211,-212,-213,-214,93,-221,93,93,93,93,-101,-110,93,-148,-149,-150,93,93,-245,-249,-23,-58,-37,93,-164,93,-45,-197,-47,-87,-88,-89,-90,-91,-93,-94,-95,93,93,-98,-99,93,93,-103,-104,-105,-106,-107,-108,93,-111,-112,-113,-114,-115,-116,93,93,-119,-120,-121,-122,-123,-124,-125,-126,-127,-128,-129,-130,-131,-132,-133,93,-136,93,-138,93,93,93,93,-143,-144,93,93,-250,93,-252,93,-246,-26,-38,93,-44,-49,93,-219,93,93,-220,93,-254,-253,93,-24,93,-59,-92,-165,-199,-201,-202,-51,93,93,-96,-97,-100,-102,93,-117,-118,-135,93,93,93,-141,-142,93,-146,-147,-255,-25,-167,-32,-33,-160,-200,-48,-50,-217,93,93,93,93,-218,-134,93,-156,-215,93,93,-216,93,-137,-139,-140,-145,93,-109,-166,-157,]),'MD5':([0,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,25,27,30,31,32,33,34,35,39,45,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,131,132,142,146,149,150,151,153,154,158,161,162,165,170,171,172,173,174,175,176,177,178,179,180,181,182,183,185,186,187,188,189,190,191,192,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,251,252,253,254,255,256,257,259,260,264,271,272,274,280,283,284,285,286,287,288,290,294,295,296,297,298,299,300,301,302,303,304,305,311,312,313,314,315,316,331,340,364,365,366,367,379,383,384,385,386,399,401,402,408,409,411,412,417,428,429,430,431,432,433,434,435,436,437,438,439,440,441,442,443,444,445,446,447,448,449,450,451,452,453,454,455,456,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,473,474,475,476,477,478,479,480,481,482,483,484,485,486,487,488,490,491,510,516,520,526,530,531,532,533,534,542,551,552,553,556,563,571,572,579,580,582,583,586,588,590,593,594,595,596,597,598,599,601,602,603,604,605,606,607,608,609,610,611,622,630,631,635,636,637,638,640,641,642,644,646,653,655,667,671,673,678,680,682,683,684,685,686,687,694,706,707,709,],[94,94,-3,-4,-5,-6,-7,-8,-9,-10,-11,-12,-13,-14,-15,-16,-17,-18,-19,-20,-21,-22,-55,-57,94,-152,-151,94,-85,-86,-56,94,-155,-2,94,94,94,94,94,94,94,94,94,94,94,94,94,94,94,94,94,94,94,94,94,94,94,-247,-40,-41,-82,-83,94,-153,-84,-39,-52,94,-53,94,94,94,94,94,94,94,94,94,94,94,94,94,94,94,94,94,94,94,94,94,94,94,94,94,94,94,94,94,94,94,94,94,94,94,94,94,94,94,94,94,94,94,94,94,94,94,94,94,94,94,94,94,94,94,94,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,-73,-74,-75,-76,-77,-78,-79,-80,94,-251,94,94,-256,-244,-248,-54,-31,-154,-52,-53,-81,-46,-191,-192,-193,-194,-195,-196,-198,-203,-204,-205,-206,-207,-208,-209,-210,-211,-212,-213,-214,94,-221,94,94,94,94,-101,-110,94,-148,-149,-150,94,94,-245,-249,-23,-58,-37,94,-164,94,-45,-197,-47,-87,-88,-89,-90,-91,-93,-94,-95,94,94,-98,-99,94,94,-103,-104,-105,-106,-107,-108,94,-111,-112,-113,-114,-115,-116,94,94,-119,-120,-121,-122,-123,-124,-125,-126,-127,-128,-129,-130,-131,-132,-133,94,-136,94,-138,94,94,94,94,-143,-144,94,94,-250,94,-252,94,-246,-26,-38,94,-44,-49,94,-219,94,94,-220,94,-254,-253,94,-24,94,-59,-92,-165,-199,-201,-202,-51,94,94,-96,-97,-100,-102,94,-117,-118,-135,94,94,94,-141,-142,94,-146,-147,-255,-25,-167,-32,-33,-160,-200,-48,-50,-217,94,94,94,94,-218,-134,94,-156,-215,94,94,-216,94,-137,-139,-140,-145,94,-109,-166,-157,]),'SET_BYTE':([0,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,25,27,30,31,32,33,34,35,39,45,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,131,132,142,146,149,150,151,153,154,158,161,162,165,170,171,172,173,174,175,176,177,178,179,180,181,182,183,185,186,187,188,189,190,191,192,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,251,252,253,254,255,256,257,259,260,264,271,272,274,280,283,284,285,286,287,288,290,294,295,296,297,298,299,300,301,302,303,304,305,311,312,313,314,315,316,331,340,364,365,366,367,379,383,384,385,386,399,401,402,408,409,411,412,417,428,429,430,431,432,433,434,435,436,437,438,439,440,441,442,443,444,445,446,447,448,449,450,451,452,453,454,455,456,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,473,474,475,476,477,478,479,480,481,482,483,484,485,486,487,488,490,491,510,516,520,526,530,531,532,533,534,542,551,552,553,556,563,571,572,579,580,582,583,586,588,590,593,594,595,596,597,598,599,601,602,603,604,605,606,607,608,609,610,611,622,630,631,635,636,637,638,640,641,642,644,646,653,655,667,671,673,678,680,682,683,684,685,686,687,694,706,707,709,],[95,95,-3,-4,-5,-6,-7,-8,-9,-10,-11,-12,-13,-14,-15,-16,-17,-18,-19,-20,-21,-22,-55,-57,95,-152,-151,95,-85,-86,-56,95,-155,-2,95,95,95,95,95,95,95,95,95,95,95,95,95,95,95,95,95,95,95,95,95,95,95,-247,-40,-41,-82,-83,95,-153,-84,-39,-52,95,-53,95,95,95,95,95,95,95,95,95,95,95,95,95,95,95,95,95,95,95,95,95,95,95,95,95,95,95,95,95,95,95,95,95,95,95,95,95,95,95,95,95,95,95,95,95,95,95,95,95,95,95,95,95,95,95,95,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,-73,-74,-75,-76,-77,-78,-79,-80,95,-251,95,95,-256,-244,-248,-54,-31,-154,-52,-53,-81,-46,-191,-192,-193,-194,-195,-196,-198,-203,-204,-205,-206,-207,-208,-209,-210,-211,-212,-213,-214,95,-221,95,95,95,95,-101,-110,95,-148,-149,-150,95,95,-245,-249,-23,-58,-37,95,-164,95,-45,-197,-47,-87,-88,-89,-90,-91,-93,-94,-95,95,95,-98,-99,95,95,-103,-104,-105,-106,-107,-108,95,-111,-112,-113,-114,-115,-116,95,95,-119,-120,-121,-122,-123,-124,-125,-126,-127,-128,-129,-130,-131,-132,-133,95,-136,95,-138,95,95,95,95,-143,-144,95,95,-250,95,-252,95,-246,-26,-38,95,-44,-49,95,-219,95,95,-220,95,-254,-253,95,-24,95,-59,-92,-165,-199,-201,-202,-51,95,95,-96,-97,-100,-102,95,-117,-118,-135,95,95,95,-141,-142,95,-146,-147,-255,-25,-167,-32,-33,-160,-200,-48,-50,-217,95,95,95,95,-218,-134,95,-156,-215,95,95,-216,95,-137,-139,-140,-145,95,-109,-166,-157,]),'SHA256':([0,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,25,27,30,31,32,33,34,35,39,45,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,131,132,142,146,149,150,151,153,154,158,161,162,165,170,171,172,173,174,175,176,177,178,179,180,181,182,183,185,186,187,188,189,190,191,192,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,251,252,253,254,255,256,257,259,260,264,271,272,274,280,283,284,285,286,287,288,290,294,295,296,297,298,299,300,301,302,303,304,305,311,312,313,314,315,316,331,340,364,365,366,367,379,383,384,385,386,399,401,402,408,409,411,412,417,428,429,430,431,432,433,434,435,436,437,438,439,440,441,442,443,444,445,446,447,448,449,450,451,452,453,454,455,456,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,473,474,475,476,477,478,479,480,481,482,483,484,485,486,487,488,490,491,510,516,520,526,530,531,532,533,534,542,551,552,553,556,563,571,572,579,580,582,583,586,588,590,593,594,595,596,597,598,599,601,602,603,604,605,606,607,608,609,610,611,622,630,631,635,636,637,638,640,641,642,644,646,653,655,667,671,673,678,680,682,683,684,685,686,687,694,706,707,709,],[96,96,-3,-4,-5,-6,-7,-8,-9,-10,-11,-12,-13,-14,-15,-16,-17,-18,-19,-20,-21,-22,-55,-57,96,-152,-151,96,-85,-86,-56,96,-155,-2,96,96,96,96,96,96,96,96,96,96,96,96,96,96,96,96,96,96,96,96,96,96,96,-247,-40,-41,-82,-83,96,-153,-84,-39,-52,96,-53,96,96,96,96,96,96,96,96,96,96,96,96,96,96,96,96,96,96,96,96,96,96,96,96,96,96,96,96,96,96,96,96,96,96,96,96,96,96,96,96,96,96,96,96,96,96,96,96,96,96,96,96,96,96,96,96,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,-73,-74,-75,-76,-77,-78,-79,-80,96,-251,96,96,-256,-244,-248,-54,-31,-154,-52,-53,-81,-46,-191,-192,-193,-194,-195,-196,-198,-203,-204,-205,-206,-207,-208,-209,-210,-211,-212,-213,-214,96,-221,96,96,96,96,-101,-110,96,-148,-149,-150,96,96,-245,-249,-23,-58,-37,96,-164,96,-45,-197,-47,-87,-88,-89,-90,-91,-93,-94,-95,96,96,-98,-99,96,96,-103,-104,-105,-106,-107,-108,96,-111,-112,-113,-114,-115,-116,96,96,-119,-120,-121,-122,-123,-124,-125,-126,-127,-128,-129,-130,-131,-132,-133,96,-136,96,-138,96,96,96,96,-143,-144,96,96,-250,96,-252,96,-246,-26,-38,96,-44,-49,96,-219,96,96,-220,96,-254,-253,96,-24,96,-59,-92,-165,-199,-201,-202,-51,96,96,-96,-97,-100,-102,96,-117,-118,-135,96,96,96,-141,-142,96,-146,-147,-255,-25,-167,-32,-33,-160,-200,-48,-50,-217,96,96,96,96,-218,-134,96,-156,-215,96,96,-216,96,-137,-139,-140,-145,96,-109,-166,-157,]),'SUBSTR':([0,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,25,27,30,31,32,33,34,35,39,45,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,131,132,142,146,149,150,151,153,154,158,161,162,165,170,171,172,173,174,175,176,177,178,179,180,181,182,183,185,186,187,188,189,190,191,192,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,251,252,253,254,255,256,257,259,260,264,271,272,274,280,283,284,285,286,287,288,290,294,295,296,297,298,299,300,301,302,303,304,305,311,312,313,314,315,316,331,340,364,365,366,367,379,383,384,385,386,399,401,402,408,409,411,412,417,428,429,430,431,432,433,434,435,436,437,438,439,440,441,442,443,444,445,446,447,448,449,450,451,452,453,454,455,456,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,473,474,475,476,477,478,479,480,481,482,483,484,485,486,487,488,490,491,510,516,520,526,530,531,532,533,534,542,551,552,553,556,563,571,572,579,580,582,583,586,588,590,593,594,595,596,597,598,599,601,602,603,604,605,606,607,608,609,610,611,622,630,631,635,636,637,638,640,641,642,644,646,653,655,667,671,673,678,680,682,683,684,685,686,687,694,706,707,709,],[97,97,-3,-4,-5,-6,-7,-8,-9,-10,-11,-12,-13,-14,-15,-16,-17,-18,-19,-20,-21,-22,-55,-57,97,-152,-151,97,-85,-86,-56,97,-155,-2,97,97,97,97,97,97,97,97,97,97,97,97,97,97,97,97,97,97,97,97,97,97,97,-247,-40,-41,-82,-83,97,-153,-84,-39,-52,97,-53,97,97,97,97,97,97,97,97,97,97,97,97,97,97,97,97,97,97,97,97,97,97,97,97,97,97,97,97,97,97,97,97,97,97,97,97,97,97,97,97,97,97,97,97,97,97,97,97,97,97,97,97,97,97,97,97,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,-73,-74,-75,-76,-77,-78,-79,-80,97,-251,97,97,-256,-244,-248,-54,-31,-154,-52,-53,-81,-46,-191,-192,-193,-194,-195,-196,-198,-203,-204,-205,-206,-207,-208,-209,-210,-211,-212,-213,-214,97,-221,97,97,97,97,-101,-110,97,-148,-149,-150,97,97,-245,-249,-23,-58,-37,97,-164,97,-45,-197,-47,-87,-88,-89,-90,-91,-93,-94,-95,97,97,-98,-99,97,97,-103,-104,-105,-106,-107,-108,97,-111,-112,-113,-114,-115,-116,97,97,-119,-120,-121,-122,-123,-124,-125,-126,-127,-128,-129,-130,-131,-132,-133,97,-136,97,-138,97,97,97,97,-143,-144,97,97,-250,97,-252,97,-246,-26,-38,97,-44,-49,97,-219,97,97,-220,97,-254,-253,97,-24,97,-59,-92,-165,-199,-201,-202,-51,97,97,-96,-97,-100,-102,97,-117,-118,-135,97,97,97,-141,-142,97,-146,-147,-255,-25,-167,-32,-33,-160,-200,-48,-50,-217,97,97,97,97,-218,-134,97,-156,-215,97,97,-216,97,-137,-139,-140,-145,97,-109,-166,-157,]),'CONVERT':([0,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,25,27,30,31,32,33,34,35,39,45,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,131,132,142,146,149,150,151,153,154,158,161,162,165,170,171,172,173,174,175,176,177,178,179,180,181,182,183,185,186,187,188,189,190,191,192,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,251,252,253,254,255,256,257,259,260,264,271,272,274,280,283,284,285,286,287,288,290,294,295,296,297,298,299,300,301,302,303,304,305,311,312,313,314,315,316,331,340,364,365,366,367,379,383,384,385,386,399,401,402,408,409,411,412,417,428,429,430,431,432,433,434,435,436,437,438,439,440,441,442,443,444,445,446,447,448,449,450,451,452,453,454,455,456,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,473,474,475,476,477,478,479,480,481,482,483,484,485,486,487,488,490,491,510,516,520,526,530,531,532,533,534,542,551,552,553,556,563,571,572,579,580,582,583,586,588,590,593,594,595,596,597,598,599,601,602,603,604,605,606,607,608,609,610,611,622,630,631,635,636,637,638,640,641,642,644,646,653,655,667,671,673,678,680,682,683,684,685,686,687,694,706,707,709,],[98,98,-3,-4,-5,-6,-7,-8,-9,-10,-11,-12,-13,-14,-15,-16,-17,-18,-19,-20,-21,-22,-55,-57,98,-152,-151,98,-85,-86,-56,98,-155,-2,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,-247,-40,-41,-82,-83,98,-153,-84,-39,-52,98,-53,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,-73,-74,-75,-76,-77,-78,-79,-80,98,-251,98,98,-256,-244,-248,-54,-31,-154,-52,-53,-81,-46,-191,-192,-193,-194,-195,-196,-198,-203,-204,-205,-206,-207,-208,-209,-210,-211,-212,-213,-214,98,-221,98,98,98,98,-101,-110,98,-148,-149,-150,98,98,-245,-249,-23,-58,-37,98,-164,98,-45,-197,-47,-87,-88,-89,-90,-91,-93,-94,-95,98,98,-98,-99,98,98,-103,-104,-105,-106,-107,-108,98,-111,-112,-113,-114,-115,-116,98,98,-119,-120,-121,-122,-123,-124,-125,-126,-127,-128,-129,-130,-131,-132,-133,98,-136,98,-138,98,98,98,98,-143,-144,98,98,-250,98,-252,98,-246,-26,-38,98,-44,-49,98,-219,98,98,-220,98,-254,-253,98,-24,98,-59,-92,-165,-199,-201,-202,-51,98,98,-96,-97,-100,-102,98,-117,-118,-135,98,98,98,-141,-142,98,-146,-147,-255,-25,-167,-32,-33,-160,-200,-48,-50,-217,98,98,98,98,-218,-134,98,-156,-215,98,98,-216,98,-137,-139,-140,-145,98,-109,-166,-157,]),'ENCODE':([0,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,25,27,30,31,32,33,34,35,39,45,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,131,132,142,146,149,150,151,153,154,158,161,162,165,170,171,172,173,174,175,176,177,178,179,180,181,182,183,185,186,187,188,189,190,191,192,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,251,252,253,254,255,256,257,259,260,264,271,272,274,280,283,284,285,286,287,288,290,294,295,296,297,298,299,300,301,302,303,304,305,311,312,313,314,315,316,331,340,364,365,366,367,379,383,384,385,386,399,401,402,408,409,411,412,417,428,429,430,431,432,433,434,435,436,437,438,439,440,441,442,443,444,445,446,447,448,449,450,451,452,453,454,455,456,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,473,474,475,476,477,478,479,480,481,482,483,484,485,486,487,488,490,491,510,516,520,526,530,531,532,533,534,542,551,552,553,556,563,571,572,579,580,582,583,586,588,590,593,594,595,596,597,598,599,601,602,603,604,605,606,607,608,609,610,611,622,630,631,635,636,637,638,640,641,642,644,646,653,655,667,671,673,678,680,682,683,684,685,686,687,694,706,707,709,],[99,99,-3,-4,-5,-6,-7,-8,-9,-10,-11,-12,-13,-14,-15,-16,-17,-18,-19,-20,-21,-22,-55,-57,99,-152,-151,99,-85,-86,-56,99,-155,-2,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,-247,-40,-41,-82,-83,99,-153,-84,-39,-52,99,-53,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,-73,-74,-75,-76,-77,-78,-79,-80,99,-251,99,99,-256,-244,-248,-54,-31,-154,-52,-53,-81,-46,-191,-192,-193,-194,-195,-196,-198,-203,-204,-205,-206,-207,-208,-209,-210,-211,-212,-213,-214,99,-221,99,99,99,99,-101,-110,99,-148,-149,-150,99,99,-245,-249,-23,-58,-37,99,-164,99,-45,-197,-47,-87,-88,-89,-90,-91,-93,-94,-95,99,99,-98,-99,99,99,-103,-104,-105,-106,-107,-108,99,-111,-112,-113,-114,-115,-116,99,99,-119,-120,-121,-122,-123,-124,-125,-126,-127,-128,-129,-130,-131,-132,-133,99,-136,99,-138,99,99,99,99,-143,-144,99,99,-250,99,-252,99,-246,-26,-38,99,-44,-49,99,-219,99,99,-220,99,-254,-253,99,-24,99,-59,-92,-165,-199,-201,-202,-51,99,99,-96,-97,-100,-102,99,-117,-118,-135,99,99,99,-141,-142,99,-146,-147,-255,-25,-167,-32,-33,-160,-200,-48,-50,-217,99,99,99,99,-218,-134,99,-156,-215,99,99,-216,99,-137,-139,-140,-145,99,-109,-166,-157,]),'DECODE':([0,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,25,27,30,31,32,33,34,35,39,45,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,131,132,142,146,149,150,151,153,154,158,161,162,165,170,171,172,173,174,175,176,177,178,179,180,181,182,183,185,186,187,188,189,190,191,192,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,251,252,253,254,255,256,257,259,260,264,271,272,274,280,283,284,285,286,287,288,290,294,295,296,297,298,299,300,301,302,303,304,305,311,312,313,314,315,316,331,340,364,365,366,367,379,383,384,385,386,399,401,402,408,409,411,412,417,428,429,430,431,432,433,434,435,436,437,438,439,440,441,442,443,444,445,446,447,448,449,450,451,452,453,454,455,456,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,473,474,475,476,477,478,479,480,481,482,483,484,485,486,487,488,490,491,510,516,520,526,530,531,532,533,534,542,551,552,553,556,563,571,572,579,580,582,583,586,588,590,593,594,595,596,597,598,599,601,602,603,604,605,606,607,608,609,610,611,622,630,631,635,636,637,638,640,641,642,644,646,653,655,667,671,673,678,680,682,683,684,685,686,687,694,706,707,709,],[100,100,-3,-4,-5,-6,-7,-8,-9,-10,-11,-12,-13,-14,-15,-16,-17,-18,-19,-20,-21,-22,-55,-57,100,-152,-151,100,-85,-86,-56,100,-155,-2,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,-247,-40,-41,-82,-83,100,-153,-84,-39,-52,100,-53,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,-73,-74,-75,-76,-77,-78,-79,-80,100,-251,100,100,-256,-244,-248,-54,-31,-154,-52,-53,-81,-46,-191,-192,-193,-194,-195,-196,-198,-203,-204,-205,-206,-207,-208,-209,-210,-211,-212,-213,-214,100,-221,100,100,100,100,-101,-110,100,-148,-149,-150,100,100,-245,-249,-23,-58,-37,100,-164,100,-45,-197,-47,-87,-88,-89,-90,-91,-93,-94,-95,100,100,-98,-99,100,100,-103,-104,-105,-106,-107,-108,100,-111,-112,-113,-114,-115,-116,100,100,-119,-120,-121,-122,-123,-124,-125,-126,-127,-128,-129,-130,-131,-132,-133,100,-136,100,-138,100,100,100,100,-143,-144,100,100,-250,100,-252,100,-246,-26,-38,100,-44,-49,100,-219,100,100,-220,100,-254,-253,100,-24,100,-59,-92,-165,-199,-201,-202,-51,100,100,-96,-97,-100,-102,100,-117,-118,-135,100,100,100,-141,-142,100,-146,-147,-255,-25,-167,-32,-33,-160,-200,-48,-50,-217,100,100,100,100,-218,-134,100,-156,-215,100,100,-216,100,-137,-139,-140,-145,100,-109,-166,-157,]),'AVG':([0,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,25,27,30,31,32,33,34,35,39,45,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,131,132,142,146,149,150,151,153,154,158,161,162,165,170,171,172,173,174,175,176,177,178,179,180,181,182,183,185,186,187,188,189,190,191,192,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,251,252,253,254,255,256,257,259,260,264,271,272,274,280,283,284,285,286,287,288,290,294,295,296,297,298,299,300,301,302,303,304,305,311,312,313,314,315,316,331,340,364,365,366,367,379,383,384,385,386,399,401,402,408,409,411,412,417,428,429,430,431,432,433,434,435,436,437,438,439,440,441,442,443,444,445,446,447,448,449,450,451,452,453,454,455,456,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,473,474,475,476,477,478,479,480,481,482,483,484,485,486,487,488,490,491,510,516,520,526,530,531,532,533,534,542,551,552,553,556,563,571,572,579,580,582,583,586,588,590,593,594,595,596,597,598,599,601,602,603,604,605,606,607,608,609,610,611,622,630,631,635,636,637,638,640,641,642,644,646,653,655,667,671,673,678,680,682,683,684,685,686,687,694,706,707,709,],[101,101,-3,-4,-5,-6,-7,-8,-9,-10,-11,-12,-13,-14,-15,-16,-17,-18,-19,-20,-21,-22,-55,-57,101,-152,-151,101,-85,-86,-56,101,-155,-2,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,-247,-40,-41,-82,-83,101,-153,-84,-39,-52,101,-53,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,-73,-74,-75,-76,-77,-78,-79,-80,101,-251,101,101,-256,-244,-248,-54,-31,-154,-52,-53,-81,-46,-191,-192,-193,-194,-195,-196,-198,-203,-204,-205,-206,-207,-208,-209,-210,-211,-212,-213,-214,101,-221,101,101,101,101,-101,-110,101,-148,-149,-150,101,101,-245,-249,-23,-58,-37,101,-164,101,-45,-197,-47,-87,-88,-89,-90,-91,-93,-94,-95,101,101,-98,-99,101,101,-103,-104,-105,-106,-107,-108,101,-111,-112,-113,-114,-115,-116,101,101,-119,-120,-121,-122,-123,-124,-125,-126,-127,-128,-129,-130,-131,-132,-133,101,-136,101,-138,101,101,101,101,-143,-144,101,101,-250,101,-252,101,-246,-26,-38,101,-44,-49,101,-219,101,101,-220,101,-254,-253,101,-24,101,-59,-92,-165,-199,-201,-202,-51,101,101,-96,-97,-100,-102,101,-117,-118,-135,101,101,101,-141,-142,101,-146,-147,-255,-25,-167,-32,-33,-160,-200,-48,-50,-217,101,101,101,101,-218,-134,101,-156,-215,101,101,-216,101,-137,-139,-140,-145,101,-109,-166,-157,]),'SUM':([0,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,25,27,30,31,32,33,34,35,39,45,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,131,132,142,146,149,150,151,153,154,158,161,162,165,170,171,172,173,174,175,176,177,178,179,180,181,182,183,185,186,187,188,189,190,191,192,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,251,252,253,254,255,256,257,259,260,264,271,272,274,280,283,284,285,286,287,288,290,294,295,296,297,298,299,300,301,302,303,304,305,311,312,313,314,315,316,331,340,364,365,366,367,379,383,384,385,386,399,401,402,408,409,411,412,417,428,429,430,431,432,433,434,435,436,437,438,439,440,441,442,443,444,445,446,447,448,449,450,451,452,453,454,455,456,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,473,474,475,476,477,478,479,480,481,482,483,484,485,486,487,488,490,491,510,516,520,526,530,531,532,533,534,542,551,552,553,556,563,571,572,579,580,582,583,586,588,590,593,594,595,596,597,598,599,601,602,603,604,605,606,607,608,609,610,611,622,630,631,635,636,637,638,640,641,642,644,646,653,655,667,671,673,678,680,682,683,684,685,686,687,694,706,707,709,],[102,102,-3,-4,-5,-6,-7,-8,-9,-10,-11,-12,-13,-14,-15,-16,-17,-18,-19,-20,-21,-22,-55,-57,102,-152,-151,102,-85,-86,-56,102,-155,-2,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,-247,-40,-41,-82,-83,102,-153,-84,-39,-52,102,-53,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,-73,-74,-75,-76,-77,-78,-79,-80,102,-251,102,102,-256,-244,-248,-54,-31,-154,-52,-53,-81,-46,-191,-192,-193,-194,-195,-196,-198,-203,-204,-205,-206,-207,-208,-209,-210,-211,-212,-213,-214,102,-221,102,102,102,102,-101,-110,102,-148,-149,-150,102,102,-245,-249,-23,-58,-37,102,-164,102,-45,-197,-47,-87,-88,-89,-90,-91,-93,-94,-95,102,102,-98,-99,102,102,-103,-104,-105,-106,-107,-108,102,-111,-112,-113,-114,-115,-116,102,102,-119,-120,-121,-122,-123,-124,-125,-126,-127,-128,-129,-130,-131,-132,-133,102,-136,102,-138,102,102,102,102,-143,-144,102,102,-250,102,-252,102,-246,-26,-38,102,-44,-49,102,-219,102,102,-220,102,-254,-253,102,-24,102,-59,-92,-165,-199,-201,-202,-51,102,102,-96,-97,-100,-102,102,-117,-118,-135,102,102,102,-141,-142,102,-146,-147,-255,-25,-167,-32,-33,-160,-200,-48,-50,-217,102,102,102,102,-218,-134,102,-156,-215,102,102,-216,102,-137,-139,-140,-145,102,-109,-166,-157,]),'SUBSTRING':([0,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,25,27,30,31,32,33,34,35,39,45,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,131,132,142,146,149,150,151,153,154,158,161,162,165,170,171,172,173,174,175,176,177,178,179,180,181,182,183,185,186,187,188,189,190,191,192,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,251,252,253,254,255,256,257,259,260,264,271,272,274,280,283,284,285,286,287,288,290,294,295,296,297,298,299,300,301,302,303,304,305,311,312,313,314,315,316,331,340,364,365,366,367,379,383,384,385,386,399,401,402,408,409,411,412,417,428,429,430,431,432,433,434,435,436,437,438,439,440,441,442,443,444,445,446,447,448,449,450,451,452,453,454,455,456,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,473,474,475,476,477,478,479,480,481,482,483,484,485,486,487,488,490,491,510,516,520,526,530,531,532,533,534,542,551,552,553,556,563,571,572,579,580,582,583,586,588,590,593,594,595,596,597,598,599,601,602,603,604,605,606,607,608,609,610,611,622,630,631,635,636,637,638,640,641,642,644,646,653,655,667,671,673,678,680,682,683,684,685,686,687,694,706,707,709,],[103,103,-3,-4,-5,-6,-7,-8,-9,-10,-11,-12,-13,-14,-15,-16,-17,-18,-19,-20,-21,-22,-55,-57,103,-152,-151,103,-85,-86,-56,103,-155,-2,103,103,103,103,103,103,103,103,103,103,103,103,103,103,103,103,103,103,103,103,103,103,103,-247,-40,-41,-82,-83,103,-153,-84,-39,-52,103,-53,103,103,103,103,103,103,103,103,103,103,103,103,103,103,103,103,103,103,103,103,103,103,103,103,103,103,103,103,103,103,103,103,103,103,103,103,103,103,103,103,103,103,103,103,103,103,103,103,103,103,103,103,103,103,103,103,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,-73,-74,-75,-76,-77,-78,-79,-80,103,-251,103,103,-256,-244,-248,-54,-31,-154,-52,-53,-81,-46,-191,-192,-193,-194,-195,-196,-198,-203,-204,-205,-206,-207,-208,-209,-210,-211,-212,-213,-214,103,-221,103,103,103,103,-101,-110,103,-148,-149,-150,103,103,-245,-249,-23,-58,-37,103,-164,103,-45,-197,-47,-87,-88,-89,-90,-91,-93,-94,-95,103,103,-98,-99,103,103,-103,-104,-105,-106,-107,-108,103,-111,-112,-113,-114,-115,-116,103,103,-119,-120,-121,-122,-123,-124,-125,-126,-127,-128,-129,-130,-131,-132,-133,103,-136,103,-138,103,103,103,103,-143,-144,103,103,-250,103,-252,103,-246,-26,-38,103,-44,-49,103,-219,103,103,-220,103,-254,-253,103,-24,103,-59,-92,-165,-199,-201,-202,-51,103,103,-96,-97,-100,-102,103,-117,-118,-135,103,103,103,-141,-142,103,-146,-147,-255,-25,-167,-32,-33,-160,-200,-48,-50,-217,103,103,103,103,-218,-134,103,-156,-215,103,103,-216,103,-137,-139,-140,-145,103,-109,-166,-157,]),'DECIMAL':([0,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,25,27,28,30,31,32,33,34,35,39,45,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,131,132,142,146,149,150,151,153,154,158,161,162,165,170,171,172,173,174,175,176,177,178,179,180,181,182,183,185,186,187,188,189,190,191,192,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,251,252,253,254,255,256,257,259,260,264,271,272,274,278,280,282,283,284,285,286,287,288,290,294,295,296,297,298,299,300,301,302,303,304,305,311,312,313,314,315,316,331,340,364,365,366,367,379,383,384,385,386,399,401,402,404,408,409,411,412,417,428,429,430,431,432,433,434,435,436,437,438,439,440,441,442,443,444,445,446,447,448,449,450,451,452,453,454,455,456,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,473,474,475,476,477,478,479,480,481,482,483,484,485,486,487,488,490,491,493,494,496,509,510,513,516,520,526,530,531,532,533,534,542,551,552,553,556,561,563,571,572,575,579,580,582,583,586,588,590,593,594,595,596,597,598,599,601,602,603,604,605,606,607,608,609,610,611,614,622,628,629,630,631,635,636,637,638,640,641,642,644,646,653,655,667,671,672,673,678,680,682,683,684,685,686,687,694,706,707,709,710,],[32,32,-3,-4,-5,-6,-7,-8,-9,-10,-11,-12,-13,-14,-15,-16,-17,-18,-19,-20,-21,-22,-55,-57,150,32,-152,-151,32,-85,-86,-56,32,-155,-2,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,-247,-40,-41,-82,-83,32,-153,-84,-39,286,32,-53,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,-73,-74,-75,-76,-77,-78,-79,-80,32,-251,32,32,-256,-244,-248,-54,-31,-154,-52,-53,-81,286,-46,286,-191,-192,-193,-194,-195,-196,-198,-203,-204,-205,-206,-207,-208,-209,-210,-211,-212,-213,-214,32,-221,32,32,32,32,-101,-110,32,-148,-149,-150,32,32,-245,-249,-23,-58,-37,32,32,-164,32,-45,-197,-47,-87,-88,-89,-90,-91,-93,-94,-95,32,32,-98,-99,32,32,-103,-104,-105,-106,-107,-108,32,-111,-112,-113,-114,-115,-116,32,32,-119,-120,-121,-122,-123,-124,-125,-126,-127,-128,-129,-130,-131,-132,-133,32,-136,32,-138,32,32,32,32,-143,-144,32,32,-250,32,-252,32,-246,-26,32,32,286,32,-38,32,32,-44,-49,32,-219,32,32,-220,32,-254,-253,32,-24,32,32,-59,-92,32,-165,-199,-201,-202,-51,32,32,-96,-97,-100,-102,32,-117,-118,-135,32,32,32,-141,-142,32,-146,-147,-255,-25,32,-167,32,32,-32,-33,-160,-200,-48,-50,-217,32,32,32,32,-218,-134,32,-156,32,-215,32,32,-216,32,-137,-139,-140,-145,32,-109,-166,-157,32,]),'ENTERO':([0,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,25,27,28,30,31,32,33,34,35,39,45,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,131,132,142,146,149,150,151,153,154,158,161,162,165,170,171,172,173,174,175,176,177,178,179,180,181,182,183,185,186,187,188,189,190,191,192,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,251,252,253,254,255,256,257,259,260,264,271,272,274,280,283,284,285,286,287,288,290,294,295,296,297,298,299,300,301,302,303,304,305,311,312,313,314,315,316,331,340,364,365,366,367,379,383,384,385,386,399,401,402,404,408,409,411,412,413,415,416,417,428,429,430,431,432,433,434,435,436,437,438,439,440,441,442,443,444,445,446,447,448,449,450,451,452,453,454,455,456,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,473,474,475,476,477,478,479,480,481,482,483,484,485,486,487,488,490,491,493,494,509,510,513,516,520,522,526,530,531,532,533,534,542,551,552,553,556,561,563,571,572,575,579,580,582,583,586,588,590,593,594,595,596,597,598,599,601,602,603,604,605,606,607,608,609,610,611,614,622,628,629,630,631,635,636,637,638,640,641,642,644,646,653,655,667,671,672,673,678,680,682,683,684,685,686,687,694,706,707,709,710,],[31,31,-3,-4,-5,-6,-7,-8,-9,-10,-11,-12,-13,-14,-15,-16,-17,-18,-19,-20,-21,-22,-55,-57,149,31,-152,-151,31,-85,-86,-56,31,-155,-2,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,-247,-40,-41,-82,-83,31,-153,-84,-39,-52,31,-53,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,-73,-74,-75,-76,-77,-78,-79,-80,31,-251,31,31,-256,-244,-248,-54,-31,-154,-52,-53,-81,-46,-191,-192,-193,-194,-195,-196,-198,-203,-204,-205,-206,-207,-208,-209,-210,-211,-212,-213,-214,31,-221,31,31,31,31,-101,-110,31,-148,-149,-150,31,31,-245,-249,-23,-58,-37,31,31,-164,31,-45,-197,521,523,524,-47,-87,-88,-89,-90,-91,-93,-94,-95,31,31,-98,-99,31,31,-103,-104,-105,-106,-107,-108,31,-111,-112,-113,-114,-115,-116,31,31,-119,-120,-121,-122,-123,-124,-125,-126,-127,-128,-129,-130,-131,-132,-133,31,-136,31,-138,31,31,31,31,-143,-144,31,31,-250,31,-252,31,-246,-26,31,31,31,-38,31,31,-44,581,-49,31,-219,31,31,-220,31,-254,-253,31,-24,31,31,-59,-92,31,-165,-199,-201,-202,-51,31,31,-96,-97,-100,-102,31,-117,-118,-135,31,31,31,-141,-142,31,-146,-147,-255,-25,31,-167,31,31,-32,-33,-160,-200,-48,-50,-217,31,31,31,31,-218,-134,31,-156,31,-215,31,31,-216,31,-137,-139,-140,-145,31,-109,-166,-157,31,]),'CADENA':([0,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,25,27,30,31,32,33,34,35,39,45,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,131,132,142,146,149,150,151,153,154,158,161,162,165,170,171,172,173,174,175,176,177,178,179,180,181,182,183,185,186,187,188,189,190,191,192,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,251,252,253,254,255,256,257,259,260,264,271,272,274,280,283,284,285,286,287,288,290,294,295,296,297,298,299,300,301,302,303,304,305,311,312,313,314,315,316,331,340,364,365,366,367,379,383,384,385,386,399,401,402,404,408,409,411,412,417,428,429,430,431,432,433,434,435,436,437,438,439,440,441,442,443,444,445,446,447,448,449,450,451,452,453,454,455,456,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,473,474,475,476,477,478,479,480,481,482,483,484,485,486,487,488,490,491,493,494,509,510,513,516,520,526,530,531,532,533,534,542,551,552,553,556,561,563,571,572,575,579,580,582,583,586,588,590,593,594,595,596,597,598,599,601,602,603,604,605,606,607,608,609,610,611,614,622,628,629,630,631,635,636,637,638,640,641,642,644,646,653,655,667,671,672,673,678,680,682,683,684,685,686,687,694,706,707,709,710,],[104,104,-3,-4,-5,-6,-7,-8,-9,-10,-11,-12,-13,-14,-15,-16,-17,-18,-19,-20,-21,-22,-55,-57,104,-152,-151,104,-85,-86,-56,104,-155,-2,104,104,104,104,104,104,104,104,104,104,104,104,104,104,104,104,104,104,104,104,104,104,252,104,-247,-40,-41,-82,-83,104,-153,-84,-39,-52,104,-53,104,104,104,104,104,104,104,104,104,104,104,104,104,104,104,104,104,104,104,104,104,104,104,104,104,104,104,104,104,104,104,104,104,104,104,104,104,104,104,104,104,104,104,104,104,104,104,104,104,104,104,104,104,104,104,104,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,-73,-74,-75,-76,-77,-78,-79,-80,104,-251,104,104,-256,-244,-248,-54,-31,-154,-52,-53,-81,-46,-191,-192,-193,-194,-195,-196,-198,-203,-204,-205,-206,-207,-208,-209,-210,-211,-212,-213,-214,104,-221,104,104,104,104,-101,-110,104,-148,-149,-150,104,104,-245,-249,-23,-58,-37,104,104,-164,104,-45,-197,-47,-87,-88,-89,-90,-91,-93,-94,-95,104,104,-98,-99,104,104,-103,-104,-105,-106,-107,-108,104,-111,-112,-113,-114,-115,-116,104,104,-119,-120,-121,-122,-123,-124,-125,-126,-127,-128,-129,-130,-131,-132,-133,104,-136,104,-138,104,104,104,104,-143,-144,104,104,-250,104,-252,104,-246,-26,104,104,104,-38,104,104,-44,-49,104,-219,104,104,-220,104,-254,-253,104,-24,104,104,-59,-92,104,-165,-199,-201,-202,-51,104,104,-96,-97,-100,-102,104,-117,-118,-135,104,104,104,-141,-142,104,-146,-147,-255,-25,104,-167,104,104,-32,-33,-160,-200,-48,-50,-217,104,104,104,104,-218,-134,104,-156,104,-215,104,104,-216,104,-137,-139,-140,-145,104,-109,-166,-157,104,]),'$end':([1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,25,27,31,32,34,35,39,104,105,142,146,149,150,153,154,158,161,165,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,252,255,259,260,264,271,272,274,280,283,284,285,286,287,288,290,294,295,296,297,298,299,300,301,302,303,304,305,312,331,340,386,399,401,408,411,412,417,428,429,430,431,432,433,434,435,438,439,442,443,444,445,446,447,449,450,451,452,453,454,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,474,476,481,482,485,487,491,510,520,526,531,534,551,552,556,571,572,579,580,582,583,586,593,594,595,596,598,599,601,605,606,608,609,610,611,622,630,631,635,636,637,638,640,653,655,671,673,682,684,685,686,687,706,707,709,],[0,-1,-3,-4,-5,-6,-7,-8,-9,-10,-11,-12,-13,-14,-15,-16,-17,-18,-19,-20,-21,-22,-55,-57,-152,-151,-85,-86,-56,-155,-2,-40,-41,-82,-83,-153,-84,-39,-52,-53,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,-73,-74,-75,-76,-77,-78,-79,-80,-251,-256,-54,-31,-154,-52,-53,-81,-46,-191,-192,-193,-194,-195,-196,-198,-203,-204,-205,-206,-207,-208,-209,-210,-211,-212,-213,-214,-221,-101,-110,-23,-58,-37,-164,-45,-197,-47,-87,-88,-89,-90,-91,-93,-94,-95,-98,-99,-103,-104,-105,-106,-107,-108,-111,-112,-113,-114,-115,-116,-119,-120,-121,-122,-123,-124,-125,-126,-127,-128,-129,-130,-131,-132,-133,-136,-138,-143,-144,-250,-252,-26,-38,-44,-49,-219,-220,-254,-253,-24,-59,-92,-165,-199,-201,-202,-51,-96,-97,-100,-102,-117,-118,-135,-141,-142,-146,-147,-255,-25,-167,-32,-33,-160,-200,-48,-50,-217,-218,-134,-156,-215,-216,-137,-139,-140,-145,-109,-166,-157,]),'MAS':([8,25,31,32,34,35,104,149,150,152,153,154,168,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,252,255,264,273,274,306,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,368,369,370,371,372,373,374,375,376,377,378,380,382,423,425,427,428,429,430,431,432,433,434,435,438,439,442,443,444,445,446,447,449,450,451,452,453,454,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,472,474,476,481,482,485,487,489,512,519,535,536,537,538,539,540,541,543,544,545,546,547,548,549,550,551,552,572,576,589,591,593,594,595,596,598,599,600,601,605,606,608,609,610,627,649,651,654,655,656,657,658,659,677,684,685,686,687,690,697,702,706,],[106,-153,-152,-151,-85,-86,-155,-82,-83,106,-153,106,106,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,106,106,106,106,106,106,106,106,106,-251,106,-154,106,-81,106,106,106,106,106,106,106,106,106,106,106,106,106,106,106,-101,106,106,106,106,106,106,106,106,-110,106,106,106,106,106,106,106,106,106,106,106,106,106,106,106,106,106,106,106,106,106,106,106,106,106,106,106,106,106,106,106,106,106,106,106,106,106,106,106,-87,-88,-89,-90,-91,-93,-94,-95,-98,-99,-103,-104,-105,-106,-107,-108,-111,-112,-113,-114,-115,-116,-119,-120,-121,-122,-123,-124,-125,-126,-127,-128,-129,-130,-131,-132,-133,106,-136,-138,-143,-144,-66,-252,106,106,106,106,106,106,106,106,106,106,106,106,106,106,106,106,106,106,-66,-66,-92,106,106,106,-96,-97,-100,-102,-117,-118,106,-135,-141,-142,-146,-147,-66,106,106,106,106,-134,106,106,106,106,106,-137,-139,-140,-145,106,106,106,-109,]),'POR':([8,25,31,32,34,35,45,104,149,150,152,153,154,168,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,252,255,264,273,274,306,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,368,369,370,371,372,373,374,375,376,377,378,380,382,423,425,427,428,429,430,431,432,433,434,435,438,439,442,443,444,445,446,447,449,450,451,452,453,454,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,472,474,476,481,482,485,487,489,512,519,535,536,537,538,539,540,541,543,544,545,546,547,548,549,550,551,552,572,576,589,591,593,594,595,596,598,599,600,601,605,606,608,609,610,627,649,651,654,655,656,657,658,659,677,684,685,686,687,690,697,702,706,],[108,-153,-152,-151,-85,-86,167,-155,-82,-83,108,-153,108,108,108,108,-62,-63,-64,108,-66,-67,-68,-69,-70,-71,-72,108,108,108,108,108,108,108,108,108,-251,108,-154,108,-81,108,108,108,108,108,108,108,108,108,108,108,108,108,108,108,-101,108,108,108,108,108,108,108,108,-110,108,108,108,108,108,108,108,108,108,108,108,108,108,108,108,108,108,108,108,108,108,108,108,108,108,108,108,108,108,108,108,108,108,108,108,108,108,108,108,-87,-88,-89,-90,-91,-93,-94,-95,-98,-99,-103,-104,-105,-106,-107,-108,-111,-112,-113,-114,-115,-116,-119,-120,-121,-122,-123,-124,-125,-126,-127,-128,-129,-130,-131,-132,-133,108,-136,-138,-143,-144,-66,-252,108,108,108,108,108,108,108,108,108,108,108,108,108,108,108,108,108,108,-66,-66,-92,108,108,108,-96,-97,-100,-102,-117,-118,108,-135,-141,-142,-146,-147,-66,108,108,108,108,-134,108,108,108,108,108,-137,-139,-140,-145,108,108,108,-109,]),'RESIDUO':([8,25,31,32,34,35,104,149,150,152,153,154,168,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,252,255,264,273,274,306,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,368,369,370,371,372,373,374,375,376,377,378,380,382,423,425,427,428,429,430,431,432,433,434,435,438,439,442,443,444,445,446,447,449,450,451,452,453,454,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,472,474,476,481,482,485,487,489,512,519,535,536,537,538,539,540,541,543,544,545,546,547,548,549,550,551,552,572,576,589,591,593,594,595,596,598,599,600,601,605,606,608,609,610,627,649,651,654,655,656,657,658,659,677,684,685,686,687,690,697,702,706,],[110,-153,-152,-151,-85,-86,-155,-82,-83,110,-153,110,110,110,110,-62,-63,-64,110,-66,-67,-68,-69,-70,-71,-72,110,110,110,110,110,110,110,110,110,-251,110,-154,110,-81,110,110,110,110,110,110,110,110,110,110,110,110,110,110,110,-101,110,110,110,110,110,110,110,110,-110,110,110,110,110,110,110,110,110,110,110,110,110,110,110,110,110,110,110,110,110,110,110,110,110,110,110,110,110,110,110,110,110,110,110,110,110,110,110,110,-87,-88,-89,-90,-91,-93,-94,-95,-98,-99,-103,-104,-105,-106,-107,-108,-111,-112,-113,-114,-115,-116,-119,-120,-121,-122,-123,-124,-125,-126,-127,-128,-129,-130,-131,-132,-133,110,-136,-138,-143,-144,-66,-252,110,110,110,110,110,110,110,110,110,110,110,110,110,110,110,110,110,110,-66,-66,-92,110,110,110,-96,-97,-100,-102,-117,-118,110,-135,-141,-142,-146,-147,-66,110,110,110,110,-134,110,110,110,110,110,-137,-139,-140,-145,110,110,110,-109,]),'POTENCIA':([8,25,31,32,34,35,104,149,150,152,153,154,168,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,252,255,264,273,274,306,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,368,369,370,371,372,373,374,375,376,377,378,380,382,423,425,427,428,429,430,431,432,433,434,435,438,439,442,443,444,445,446,447,449,450,451,452,453,454,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,472,474,476,481,482,485,487,489,512,519,535,536,537,538,539,540,541,543,544,545,546,547,548,549,550,551,552,572,576,589,591,593,594,595,596,598,599,600,601,605,606,608,609,610,627,649,651,654,655,656,657,658,659,677,684,685,686,687,690,697,702,706,],[111,-153,-152,-151,-85,-86,-155,-82,-83,111,-153,111,111,111,111,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,111,111,111,111,111,111,111,111,111,-251,111,-154,111,-81,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,-101,111,111,111,111,111,111,111,111,-110,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,-87,-88,-89,-90,-91,-93,-94,-95,-98,-99,-103,-104,-105,-106,-107,-108,-111,-112,-113,-114,-115,-116,-119,-120,-121,-122,-123,-124,-125,-126,-127,-128,-129,-130,-131,-132,-133,111,-136,-138,-143,-144,-66,-252,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,-66,-66,-92,111,111,111,-96,-97,-100,-102,-117,-118,111,-135,-141,-142,-146,-147,-66,111,111,111,111,-134,111,111,111,111,111,-137,-139,-140,-145,111,111,111,-109,]),'AND':([8,25,31,32,34,35,104,149,150,152,153,154,168,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,252,255,264,273,274,306,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,368,369,370,371,372,373,374,375,376,377,378,380,382,423,425,427,428,429,430,431,432,433,434,435,438,439,442,443,444,445,446,447,449,450,451,452,453,454,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,472,474,476,481,482,485,487,489,512,519,535,536,537,538,539,540,541,543,544,545,546,547,548,549,550,551,552,572,576,587,589,591,592,593,594,595,596,598,599,600,601,605,606,608,609,610,627,648,649,650,651,654,655,656,657,658,659,675,676,677,681,684,685,686,687,690,697,702,706,],[112,-153,-152,-151,-85,-86,-155,-82,-83,112,-153,112,112,112,112,112,112,112,112,-66,-67,-68,-69,-70,-71,-72,112,112,112,112,112,112,112,112,379,-251,112,-154,112,-81,112,112,112,112,112,112,112,112,112,112,112,112,112,112,112,-101,112,112,112,112,112,112,112,112,-110,112,112,112,112,112,112,112,112,112,112,112,112,112,112,112,112,112,112,112,112,112,112,112,112,112,112,112,112,112,112,112,112,112,112,486,488,112,112,112,-87,-88,-89,-90,-91,-93,-94,-95,-98,-99,-103,-104,-105,-106,-107,-108,-111,-112,-113,-114,-115,-116,-119,-120,-121,-122,-123,-124,-125,-126,-127,-128,-129,-130,-131,-132,-133,112,-136,-138,-143,-144,-66,-252,553,112,112,112,112,112,112,112,112,112,112,112,112,112,112,112,112,112,-66,-66,-92,112,641,112,112,641,-96,-97,-100,-102,-117,-118,112,-135,-141,-142,-146,-147,-66,112,641,112,641,112,112,-134,112,112,112,112,-232,-233,112,-236,-137,-139,-140,-145,112,112,112,-109,]),'OR':([8,24,25,31,32,34,35,104,149,150,152,153,154,168,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,252,255,264,273,274,306,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,368,369,370,371,372,373,374,375,376,377,378,380,382,423,425,427,428,429,430,431,432,433,434,435,438,439,442,443,444,445,446,447,449,450,451,452,453,454,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,472,474,476,481,482,485,487,489,512,519,535,536,537,538,539,540,541,543,544,545,546,547,548,549,550,551,552,572,576,587,589,591,592,593,594,595,596,598,599,600,601,605,606,608,609,610,627,648,649,650,651,654,655,656,657,658,659,675,676,677,681,684,685,686,687,690,697,702,706,],[113,137,-153,-152,-151,-85,-86,-155,-82,-83,113,-153,113,113,113,113,113,113,113,113,-66,-67,-68,-69,-70,-71,-72,113,113,113,113,113,113,113,113,113,-251,113,-154,113,-81,113,113,113,113,113,113,113,113,113,113,113,113,113,113,113,-101,113,113,113,113,113,113,113,113,-110,113,113,113,113,113,113,113,113,113,113,113,113,113,113,113,113,113,113,113,113,113,113,113,113,113,113,113,113,113,113,113,113,113,113,113,113,113,113,113,-87,-88,-89,-90,-91,-93,-94,-95,-98,-99,-103,-104,-105,-106,-107,-108,-111,-112,-113,-114,-115,-116,-119,-120,-121,-122,-123,-124,-125,-126,-127,-128,-129,-130,-131,-132,-133,113,-136,-138,-143,-144,-66,-252,113,113,113,113,113,113,113,113,113,113,113,113,113,113,113,113,113,113,-66,-66,-92,113,642,113,113,642,-96,-97,-100,-102,-117,-118,113,-135,-141,-142,-146,-147,-66,113,642,113,642,113,113,-134,113,113,113,113,-232,-233,113,-236,-137,-139,-140,-145,113,113,113,-109,]),'SIMBOLOOR2':([8,25,31,32,34,35,104,149,150,152,153,154,168,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,252,255,264,273,274,306,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,368,369,370,371,372,373,374,375,376,377,378,380,382,423,425,427,428,429,430,431,432,433,434,435,438,439,442,443,444,445,446,447,449,450,451,452,453,454,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,472,474,476,481,482,485,487,489,512,519,535,536,537,538,539,540,541,543,544,545,546,547,548,549,550,551,552,572,576,589,591,593,594,595,596,598,599,600,601,605,606,608,609,610,627,649,651,654,655,656,657,658,659,677,684,685,686,687,690,697,702,706,],[114,-153,-152,-151,-85,-86,-155,-82,-83,114,-153,114,114,114,114,114,114,114,114,-66,-67,-68,-69,-70,-71,-72,114,114,114,114,114,114,114,114,114,-251,114,-154,114,-81,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,-101,114,114,114,114,114,114,114,114,-110,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,-87,-88,-89,-90,-91,-93,-94,-95,-98,-99,-103,-104,-105,-106,-107,-108,-111,-112,-113,-114,-115,-116,-119,-120,-121,-122,-123,-124,-125,-126,-127,-128,-129,-130,-131,-132,-133,114,-136,-138,-143,-144,-66,-252,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,-66,-66,-92,114,114,114,-96,-97,-100,-102,-117,-118,114,-135,-141,-142,-146,-147,-66,114,114,114,114,-134,114,114,114,114,114,-137,-139,-140,-145,114,114,114,-109,]),'SIMBOLOOR':([8,25,31,32,34,35,104,149,150,152,153,154,168,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,252,255,264,273,274,306,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,368,369,370,371,372,373,374,375,376,377,378,380,382,423,425,427,428,429,430,431,432,433,434,435,438,439,442,443,444,445,446,447,449,450,451,452,453,454,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,472,474,476,481,482,485,487,489,512,519,535,536,537,538,539,540,541,543,544,545,546,547,548,549,550,551,552,572,576,589,591,593,594,595,596,598,599,600,601,605,606,608,609,610,627,649,651,654,655,656,657,658,659,677,684,685,686,687,690,697,702,706,],[115,-153,-152,-151,-85,-86,-155,-82,-83,115,-153,115,115,115,115,115,115,115,115,-66,-67,-68,-69,-70,-71,-72,115,115,115,115,115,115,115,115,115,-251,115,-154,115,-81,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,-101,115,115,115,115,115,115,115,115,-110,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,-87,-88,-89,-90,-91,-93,-94,-95,-98,-99,-103,-104,-105,-106,-107,-108,-111,-112,-113,-114,-115,-116,-119,-120,-121,-122,-123,-124,-125,-126,-127,-128,-129,-130,-131,-132,-133,115,-136,-138,-143,-144,-66,-252,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,-66,-66,-92,115,115,115,-96,-97,-100,-102,-117,-118,115,-135,-141,-142,-146,-147,-66,115,115,115,115,-134,115,115,115,115,115,-137,-139,-140,-145,115,115,115,-109,]),'SIMBOLOAND2':([8,25,31,32,34,35,104,149,150,152,153,154,168,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,252,255,264,273,274,306,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,368,369,370,371,372,373,374,375,376,377,378,380,382,423,425,427,428,429,430,431,432,433,434,435,438,439,442,443,444,445,446,447,449,450,451,452,453,454,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,472,474,476,481,482,485,487,489,512,519,535,536,537,538,539,540,541,543,544,545,546,547,548,549,550,551,552,572,576,589,591,593,594,595,596,598,599,600,601,605,606,608,609,610,627,649,651,654,655,656,657,658,659,677,684,685,686,687,690,697,702,706,],[116,-153,-152,-151,-85,-86,-155,-82,-83,116,-153,116,116,116,116,116,116,116,116,-66,-67,-68,-69,-70,-71,-72,116,116,116,116,116,116,116,116,116,-251,116,-154,116,-81,116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,-101,116,116,116,116,116,116,116,116,-110,116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,-87,-88,-89,-90,-91,-93,-94,-95,-98,-99,-103,-104,-105,-106,-107,-108,-111,-112,-113,-114,-115,-116,-119,-120,-121,-122,-123,-124,-125,-126,-127,-128,-129,-130,-131,-132,-133,116,-136,-138,-143,-144,-66,-252,116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,-66,-66,-92,116,116,116,-96,-97,-100,-102,-117,-118,116,-135,-141,-142,-146,-147,-66,116,116,116,116,-134,116,116,116,116,116,-137,-139,-140,-145,116,116,116,-109,]),'DESPLAZAMIENTOIZQUIERDA':([8,25,31,32,34,35,104,149,150,152,153,154,168,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,252,255,264,273,274,306,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,368,369,370,371,372,373,374,375,376,377,378,380,382,423,425,427,428,429,430,431,432,433,434,435,438,439,442,443,444,445,446,447,449,450,451,452,453,454,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,472,474,476,481,482,485,487,489,512,519,535,536,537,538,539,540,541,543,544,545,546,547,548,549,550,551,552,572,576,589,591,593,594,595,596,598,599,600,601,605,606,608,609,610,627,649,651,654,655,656,657,658,659,677,684,685,686,687,690,697,702,706,],[117,-153,-152,-151,-85,-86,-155,-82,-83,117,-153,117,117,117,117,117,117,117,117,117,117,117,117,117,-71,-72,117,117,117,117,117,117,117,117,117,-251,117,-154,117,-81,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,-101,117,117,117,117,117,117,117,117,-110,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,-87,-88,-89,-90,-91,-93,-94,-95,-98,-99,-103,-104,-105,-106,-107,-108,-111,-112,-113,-114,-115,-116,-119,-120,-121,-122,-123,-124,-125,-126,-127,-128,-129,-130,-131,-132,-133,117,-136,-138,-143,-144,117,-252,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,-92,117,117,117,-96,-97,-100,-102,-117,-118,117,-135,-141,-142,-146,-147,117,117,117,117,117,-134,117,117,117,117,117,-137,-139,-140,-145,117,117,117,-109,]),'DESPLAZAMIENTODERECHA':([8,25,31,32,34,35,104,149,150,152,153,154,168,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,252,255,264,273,274,306,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,368,369,370,371,372,373,374,375,376,377,378,380,382,423,425,427,428,429,430,431,432,433,434,435,438,439,442,443,444,445,446,447,449,450,451,452,453,454,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,472,474,476,481,482,485,487,489,512,519,535,536,537,538,539,540,541,543,544,545,546,547,548,549,550,551,552,572,576,589,591,593,594,595,596,598,599,600,601,605,606,608,609,610,627,649,651,654,655,656,657,658,659,677,684,685,686,687,690,697,702,706,],[118,-153,-152,-151,-85,-86,-155,-82,-83,118,-153,118,118,118,118,118,118,118,118,118,118,118,118,118,-71,-72,118,118,118,118,118,118,118,118,118,-251,118,-154,118,-81,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,-101,118,118,118,118,118,118,118,118,-110,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,-87,-88,-89,-90,-91,-93,-94,-95,-98,-99,-103,-104,-105,-106,-107,-108,-111,-112,-113,-114,-115,-116,-119,-120,-121,-122,-123,-124,-125,-126,-127,-128,-129,-130,-131,-132,-133,118,-136,-138,-143,-144,118,-252,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,-92,118,118,118,-96,-97,-100,-102,-117,-118,118,-135,-141,-142,-146,-147,118,118,118,118,118,-134,118,118,118,118,118,-137,-139,-140,-145,118,118,118,-109,]),'IGUAL':([8,25,31,32,34,35,104,149,150,152,153,154,168,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,252,255,264,273,274,306,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,368,369,370,371,372,373,374,375,376,377,378,380,382,389,390,405,423,425,427,428,429,430,431,432,433,434,435,438,439,442,443,444,445,446,447,449,450,451,452,453,454,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,472,474,476,481,482,485,487,489,512,519,535,536,537,538,539,540,541,543,544,545,546,547,548,549,550,551,552,572,576,589,591,593,594,595,596,598,599,600,601,605,606,608,609,610,627,649,651,654,655,656,657,658,659,677,684,685,686,687,690,697,702,706,],[119,-153,-152,-151,-85,-86,-155,-82,-83,119,-153,-84,119,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,119,119,119,119,119,119,119,119,119,-251,119,-154,119,-81,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,-101,119,119,119,119,119,119,119,119,-110,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,493,494,516,119,119,119,-87,-88,-89,-90,-91,-93,-94,-95,-98,-99,-103,-104,-105,-106,-107,-108,-111,-112,-113,-114,-115,-116,-119,-120,-121,-122,-123,-124,-125,-126,-127,-128,-129,-130,-131,-132,-133,119,-136,-138,-143,-144,-66,-252,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,-66,-66,-92,119,119,119,-96,-97,-100,-102,-117,-118,119,-135,-141,-142,-146,-147,-66,119,-84,119,119,-134,119,119,119,119,119,-137,-139,-140,-145,119,119,119,-109,]),'IGUALIGUAL':([8,25,31,32,34,35,104,149,150,152,153,154,168,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,252,255,264,273,274,306,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,368,369,370,371,372,373,374,375,376,377,378,380,382,423,425,427,428,429,430,431,432,433,434,435,438,439,442,443,444,445,446,447,449,450,451,452,453,454,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,472,474,476,481,482,485,487,489,512,519,535,536,537,538,539,540,541,543,544,545,546,547,548,549,550,551,552,572,576,589,591,593,594,595,596,598,599,600,601,605,606,608,609,610,627,649,651,654,655,656,657,658,659,677,684,685,686,687,690,697,702,706,],[120,-153,-152,-151,-85,-86,-155,-82,-83,120,-153,-84,120,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,120,120,120,120,120,120,120,120,120,-251,120,-154,120,-81,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,-101,120,120,120,120,120,120,120,120,-110,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,-87,-88,-89,-90,-91,-93,-94,-95,-98,-99,-103,-104,-105,-106,-107,-108,-111,-112,-113,-114,-115,-116,-119,-120,-121,-122,-123,-124,-125,-126,-127,-128,-129,-130,-131,-132,-133,120,-136,-138,-143,-144,-66,-252,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,-66,-66,-92,120,120,120,-96,-97,-100,-102,-117,-118,120,-135,-141,-142,-146,-147,-66,120,-84,120,120,-134,120,120,120,120,120,-137,-139,-140,-145,120,120,120,-109,]),'NOTEQUAL':([8,25,31,32,34,35,104,149,150,152,153,154,168,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,252,255,264,273,274,306,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,368,369,370,371,372,373,374,375,376,377,378,380,382,423,425,427,428,429,430,431,432,433,434,435,438,439,442,443,444,445,446,447,449,450,451,452,453,454,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,472,474,476,481,482,485,487,489,512,519,535,536,537,538,539,540,541,543,544,545,546,547,548,549,550,551,552,572,576,589,591,593,594,595,596,598,599,600,601,605,606,608,609,610,627,649,651,654,655,656,657,658,659,677,684,685,686,687,690,697,702,706,],[121,-153,-152,-151,-85,-86,-155,-82,-83,121,-153,-84,121,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,121,121,121,121,121,121,121,121,121,-251,121,-154,121,-81,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,-101,121,121,121,121,121,121,121,121,-110,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,-87,-88,-89,-90,-91,-93,-94,-95,-98,-99,-103,-104,-105,-106,-107,-108,-111,-112,-113,-114,-115,-116,-119,-120,-121,-122,-123,-124,-125,-126,-127,-128,-129,-130,-131,-132,-133,121,-136,-138,-143,-144,-66,-252,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,-66,-66,-92,121,121,121,-96,-97,-100,-102,-117,-118,121,-135,-141,-142,-146,-147,-66,121,-84,121,121,-134,121,121,121,121,121,-137,-139,-140,-145,121,121,121,-109,]),'MAYORIGUAL':([8,25,31,32,34,35,104,149,150,152,153,154,168,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,252,255,264,273,274,306,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,368,369,370,371,372,373,374,375,376,377,378,380,382,423,425,427,428,429,430,431,432,433,434,435,438,439,442,443,444,445,446,447,449,450,451,452,453,454,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,472,474,476,481,482,485,487,489,512,519,535,536,537,538,539,540,541,543,544,545,546,547,548,549,550,551,552,572,576,589,591,593,594,595,596,598,599,600,601,605,606,608,609,610,627,649,651,654,655,656,657,658,659,677,684,685,686,687,690,697,702,706,],[122,-153,-152,-151,-85,-86,-155,-82,-83,122,-153,-84,122,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,122,122,122,122,122,122,122,122,122,-251,122,-154,122,-81,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,-101,122,122,122,122,122,122,122,122,-110,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,-87,-88,-89,-90,-91,-93,-94,-95,-98,-99,-103,-104,-105,-106,-107,-108,-111,-112,-113,-114,-115,-116,-119,-120,-121,-122,-123,-124,-125,-126,-127,-128,-129,-130,-131,-132,-133,122,-136,-138,-143,-144,-66,-252,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,-66,-66,-92,122,122,122,-96,-97,-100,-102,-117,-118,122,-135,-141,-142,-146,-147,-66,122,-84,122,122,-134,122,122,122,122,122,-137,-139,-140,-145,122,122,122,-109,]),'MENORIGUAL':([8,25,31,32,34,35,104,149,150,152,153,154,168,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,252,255,264,273,274,306,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,368,369,370,371,372,373,374,375,376,377,378,380,382,423,425,427,428,429,430,431,432,433,434,435,438,439,442,443,444,445,446,447,449,450,451,452,453,454,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,472,474,476,481,482,485,487,489,512,519,535,536,537,538,539,540,541,543,544,545,546,547,548,549,550,551,552,572,576,589,591,593,594,595,596,598,599,600,601,605,606,608,609,610,627,649,651,654,655,656,657,658,659,677,684,685,686,687,690,697,702,706,],[123,-153,-152,-151,-85,-86,-155,-82,-83,123,-153,-84,123,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,123,123,123,123,123,123,123,123,123,-251,123,-154,123,-81,123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,-101,123,123,123,123,123,123,123,123,-110,123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,-87,-88,-89,-90,-91,-93,-94,-95,-98,-99,-103,-104,-105,-106,-107,-108,-111,-112,-113,-114,-115,-116,-119,-120,-121,-122,-123,-124,-125,-126,-127,-128,-129,-130,-131,-132,-133,123,-136,-138,-143,-144,-66,-252,123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,-66,-66,-92,123,123,123,-96,-97,-100,-102,-117,-118,123,-135,-141,-142,-146,-147,-66,123,-84,123,123,-134,123,123,123,123,123,-137,-139,-140,-145,123,123,123,-109,]),'MAYOR':([8,25,31,32,34,35,104,149,150,152,153,154,168,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,252,255,264,273,274,306,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,368,369,370,371,372,373,374,375,376,377,378,380,382,423,425,427,428,429,430,431,432,433,434,435,438,439,442,443,444,445,446,447,449,450,451,452,453,454,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,472,474,476,481,482,485,487,489,512,519,535,536,537,538,539,540,541,543,544,545,546,547,548,549,550,551,552,572,576,589,591,593,594,595,596,598,599,600,601,605,606,608,609,610,627,649,651,654,655,656,657,658,659,677,684,685,686,687,690,697,702,706,],[124,-153,-152,-151,-85,-86,-155,-82,-83,124,-153,-84,124,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,124,124,124,124,124,124,124,124,124,-251,124,-154,124,-81,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,-101,124,124,124,124,124,124,124,124,-110,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,-87,-88,-89,-90,-91,-93,-94,-95,-98,-99,-103,-104,-105,-106,-107,-108,-111,-112,-113,-114,-115,-116,-119,-120,-121,-122,-123,-124,-125,-126,-127,-128,-129,-130,-131,-132,-133,124,-136,-138,-143,-144,-66,-252,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,-66,-66,-92,124,124,124,-96,-97,-100,-102,-117,-118,124,-135,-141,-142,-146,-147,-66,124,-84,124,124,-134,124,124,124,124,124,-137,-139,-140,-145,124,124,124,-109,]),'MENOR':([8,25,31,32,34,35,104,149,150,152,153,154,168,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,252,255,264,273,274,306,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,368,369,370,371,372,373,374,375,376,377,378,380,382,423,425,427,428,429,430,431,432,433,434,435,438,439,442,443,444,445,446,447,449,450,451,452,453,454,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,472,474,476,481,482,485,487,489,512,519,535,536,537,538,539,540,541,543,544,545,546,547,548,549,550,551,552,572,576,589,591,593,594,595,596,598,599,600,601,605,606,608,609,610,627,649,651,654,655,656,657,658,659,677,684,685,686,687,690,697,702,706,],[125,-153,-152,-151,-85,-86,-155,-82,-83,125,-153,-84,125,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,125,125,125,125,125,125,125,125,125,-251,125,-154,125,-81,125,125,125,125,125,125,125,125,125,125,125,125,125,125,125,-101,125,125,125,125,125,125,125,125,-110,125,125,125,125,125,125,125,125,125,125,125,125,125,125,125,125,125,125,125,125,125,125,125,125,125,125,125,125,125,125,125,125,125,125,125,125,125,125,125,-87,-88,-89,-90,-91,-93,-94,-95,-98,-99,-103,-104,-105,-106,-107,-108,-111,-112,-113,-114,-115,-116,-119,-120,-121,-122,-123,-124,-125,-126,-127,-128,-129,-130,-131,-132,-133,125,-136,-138,-143,-144,-66,-252,125,125,125,125,125,125,125,125,125,125,125,125,125,125,125,125,125,125,-66,-66,-92,125,125,125,-96,-97,-100,-102,-117,-118,125,-135,-141,-142,-146,-147,-66,125,-84,125,125,-134,125,125,125,125,125,-137,-139,-140,-145,125,125,125,-109,]),'DIFERENTE':([8,25,31,32,34,35,104,149,150,152,153,154,168,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,252,255,264,273,274,306,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,368,369,370,371,372,373,374,375,376,377,378,380,382,423,425,427,428,429,430,431,432,433,434,435,438,439,442,443,444,445,446,447,449,450,451,452,453,454,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,472,474,476,481,482,485,487,489,512,519,535,536,537,538,539,540,541,543,544,545,546,547,548,549,550,551,552,572,576,589,591,593,594,595,596,598,599,600,601,605,606,608,609,610,627,649,651,654,655,656,657,658,659,677,684,685,686,687,690,697,702,706,],[126,-153,-152,-151,-85,-86,-155,-82,-83,126,-153,-84,126,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,126,126,126,126,126,126,126,126,126,-251,126,-154,126,-81,126,126,126,126,126,126,126,126,126,126,126,126,126,126,126,-101,126,126,126,126,126,126,126,126,-110,126,126,126,126,126,126,126,126,126,126,126,126,126,126,126,126,126,126,126,126,126,126,126,126,126,126,126,126,126,126,126,126,126,126,126,126,126,126,126,-87,-88,-89,-90,-91,-93,-94,-95,-98,-99,-103,-104,-105,-106,-107,-108,-111,-112,-113,-114,-115,-116,-119,-120,-121,-122,-123,-124,-125,-126,-127,-128,-129,-130,-131,-132,-133,126,-136,-138,-143,-144,-66,-252,126,126,126,126,126,126,126,126,126,126,126,126,126,126,126,126,126,126,-66,-66,-92,126,126,126,-96,-97,-100,-102,-117,-118,126,-135,-141,-142,-146,-147,-66,126,-84,126,126,-134,126,126,126,126,126,-137,-139,-140,-145,126,126,126,-109,]),'BETWEEN':([8,25,31,32,34,35,104,130,149,150,152,153,154,168,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,252,255,264,273,274,306,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,368,369,370,371,372,373,374,375,376,377,378,380,382,423,425,427,428,429,430,431,432,433,434,435,438,439,442,443,444,445,446,447,449,450,451,452,453,454,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,472,474,476,481,482,485,487,489,512,519,535,536,537,538,539,540,541,543,544,545,546,547,548,549,550,551,552,572,576,589,591,593,594,595,596,598,599,600,601,605,606,608,609,610,627,649,651,654,655,656,657,658,659,677,684,685,686,687,690,697,702,706,],[127,-153,-152,-151,-85,-86,-155,254,-82,-83,127,-153,-84,127,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,127,127,127,127,127,127,127,127,127,-251,127,-154,127,-81,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,-101,127,127,127,127,127,127,127,127,-110,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,-87,-88,-89,-90,-91,-93,-94,-95,-98,-99,-103,-104,-105,-106,-107,-108,-111,-112,-113,-114,-115,-116,-119,-120,-121,-122,-123,-124,-125,-126,-127,-128,-129,-130,-131,-132,-133,127,-136,-138,-143,-144,-66,-252,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,-66,-66,-92,127,127,127,-96,-97,-100,-102,-117,-118,127,-135,-141,-142,-146,-147,-66,127,-84,127,127,-134,127,127,127,127,127,-137,-139,-140,-145,127,127,127,-109,]),'LIKE':([8,25,31,32,34,35,104,149,150,152,153,154,168,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,252,255,264,273,274,306,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,368,369,370,371,372,373,374,375,376,377,378,380,382,423,425,427,428,429,430,431,432,433,434,435,438,439,442,443,444,445,446,447,449,450,451,452,453,454,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,472,474,476,481,482,485,487,489,512,519,535,536,537,538,539,540,541,543,544,545,546,547,548,549,550,551,552,572,576,589,591,593,594,595,596,598,599,600,601,605,606,608,609,610,627,649,651,654,655,656,657,658,659,677,684,685,686,687,690,697,702,706,],[128,-153,-152,-151,-85,-86,-155,-82,-83,128,-153,-84,128,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,128,128,128,128,128,128,128,128,128,-251,128,-154,128,-81,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,-101,128,128,128,128,128,128,128,128,-110,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,-87,-88,-89,-90,-91,-93,-94,-95,-98,-99,-103,-104,-105,-106,-107,-108,-111,-112,-113,-114,-115,-116,-119,-120,-121,-122,-123,-124,-125,-126,-127,-128,-129,-130,-131,-132,-133,128,-136,-138,-143,-144,-66,-252,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,-66,-66,-92,128,128,128,-96,-97,-100,-102,-117,-118,128,-135,-141,-142,-146,-147,-66,128,-84,128,128,-134,128,128,128,128,128,-137,-139,-140,-145,128,128,128,-109,]),'IN':([8,25,31,32,34,35,104,149,150,152,153,154,168,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,252,255,264,273,274,306,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,368,369,370,371,372,373,374,375,376,377,378,380,382,423,425,427,428,429,430,431,432,433,434,435,438,439,442,443,444,445,446,447,449,450,451,452,453,454,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,472,474,476,481,482,485,487,489,512,519,535,536,537,538,539,540,541,543,544,545,546,547,548,549,550,551,552,572,576,589,591,593,594,595,596,598,599,600,601,605,606,608,609,610,627,649,651,654,655,656,657,658,659,677,684,685,686,687,690,697,702,706,],[129,-153,-152,-151,-85,-86,-155,-82,-83,129,-153,-84,129,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,129,129,129,129,129,129,129,129,129,-251,129,-154,129,-81,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,-101,129,129,129,129,129,129,129,129,-110,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,-87,-88,-89,-90,-91,-93,-94,-95,-98,-99,-103,-104,-105,-106,-107,-108,-111,-112,-113,-114,-115,-116,-119,-120,-121,-122,-123,-124,-125,-126,-127,-128,-129,-130,-131,-132,-133,129,-136,-138,-143,-144,-66,-252,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,-66,-66,-92,129,129,129,-96,-97,-100,-102,-117,-118,129,-135,-141,-142,-146,-147,-66,129,-84,129,129,-134,129,129,129,129,129,-137,-139,-140,-145,129,129,129,-109,]),'DISTINCT':([8,25,31,32,34,35,45,104,133,149,150,152,153,154,166,168,169,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,252,253,255,258,264,273,274,306,311,315,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,368,369,370,371,372,373,374,375,376,377,378,380,381,382,422,423,424,425,426,427,428,429,430,431,432,433,434,435,438,439,442,443,444,445,446,447,449,450,451,452,453,454,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,472,474,476,481,482,485,487,489,512,519,535,536,537,538,539,540,541,543,544,545,546,547,548,549,550,551,552,572,576,589,591,593,594,595,596,598,599,600,601,605,606,608,609,610,627,646,649,651,654,655,656,657,658,659,677,678,679,680,684,685,686,687,690,695,696,697,702,706,],[132,-153,-152,-151,-85,-86,132,-155,257,-82,-83,132,-153,-84,132,132,-239,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,132,132,132,132,132,132,132,132,132,-251,132,132,385,-154,132,-81,132,132,132,132,132,132,132,132,132,132,132,132,132,132,132,132,132,-101,132,132,132,132,132,132,132,132,-110,132,132,132,132,132,132,132,132,132,132,132,132,132,132,132,132,132,132,132,132,132,132,132,132,132,132,132,132,132,132,132,132,132,132,132,132,132,132,132,-238,132,132,132,-87,-88,-89,-90,-91,-93,-94,-95,-98,-99,-103,-104,-105,-106,-107,-108,-111,-112,-113,-114,-115,-116,-119,-120,-121,-122,-123,-124,-125,-126,-127,-128,-129,-130,-131,-132,-133,132,-136,-138,-143,-144,-66,-252,132,132,132,132,132,132,132,132,132,132,132,132,132,132,132,132,132,132,-66,-66,-92,132,132,132,-96,-97,-100,-102,-117,-118,132,-135,-141,-142,-146,-147,-66,132,132,-84,132,132,-134,132,132,132,132,132,132,132,132,-137,-139,-140,-145,132,132,132,132,132,-109,]),'IS':([8,25,31,32,34,35,45,104,149,150,152,153,154,166,168,169,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,252,253,255,264,273,274,306,311,315,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,368,369,370,371,372,373,374,375,376,377,378,380,381,382,422,423,424,425,426,427,428,429,430,431,432,433,434,435,438,439,442,443,444,445,446,447,449,450,451,452,453,454,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,472,474,476,481,482,485,487,489,512,519,535,536,537,538,539,540,541,543,544,545,546,547,548,549,550,551,552,572,576,589,591,593,594,595,596,598,599,600,601,605,606,608,609,610,627,646,649,651,654,655,656,657,658,659,677,678,679,680,684,685,686,687,690,695,696,697,702,706,],[133,-153,-152,-151,-85,-86,133,-155,-82,-83,133,-153,-84,133,133,-239,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,133,133,133,133,133,133,133,133,133,-251,133,133,-154,133,-81,133,133,133,133,133,133,133,133,133,133,133,133,133,133,133,133,133,-101,133,133,133,133,133,133,133,133,-110,133,133,133,133,133,133,133,133,133,133,133,133,133,133,133,133,133,133,133,133,133,133,133,133,133,133,133,133,133,133,133,133,133,133,133,133,133,133,133,-238,133,133,133,-87,-88,-89,-90,-91,-93,-94,-95,-98,-99,-103,-104,-105,-106,-107,-108,-111,-112,-113,-114,-115,-116,-119,-120,-121,-122,-123,-124,-125,-126,-127,-128,-129,-130,-131,-132,-133,133,-136,-138,-143,-144,-66,-252,133,133,133,133,133,133,133,133,133,133,133,133,133,133,133,133,133,133,-66,-66,-92,133,133,133,-96,-97,-100,-102,-117,-118,133,-135,-141,-142,-146,-147,-66,133,133,-84,133,133,-134,133,133,133,133,133,133,133,133,-137,-139,-140,-145,133,133,133,133,133,-109,]),'COMA':([20,25,31,32,34,35,104,149,150,153,154,166,168,169,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,252,255,259,264,273,274,283,284,285,286,287,288,290,294,295,296,297,298,299,300,301,302,303,304,305,317,326,327,330,331,332,339,340,347,348,368,370,372,373,374,375,381,406,407,412,422,423,424,425,426,427,428,429,430,431,432,433,434,435,438,439,442,443,444,445,446,447,449,450,451,452,453,454,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,474,476,481,482,485,487,497,498,500,501,502,503,514,515,528,529,539,544,545,546,551,552,558,572,573,576,577,578,580,582,583,591,593,594,595,596,598,599,601,605,606,608,609,610,612,613,615,617,619,620,624,625,634,636,654,655,660,661,662,663,666,668,669,670,679,684,685,686,687,688,691,693,695,696,699,706,711,712,],[134,-55,-152,-151,-85,-86,-155,-82,-83,-153,-84,313,-240,-239,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,-73,-74,-75,-76,-77,-78,-79,-80,-251,-256,-54,-154,402,-81,-191,-192,-193,-194,-195,-196,-198,-203,-204,-205,-206,-207,-208,-209,-210,-211,-212,-213,-214,-242,436,437,440,-101,441,448,-110,455,456,473,475,477,478,479,480,313,518,-162,-197,313,-237,-238,532,313,-243,-87,-88,-89,-90,-91,-93,-94,-95,-98,-99,-103,-104,-105,-106,-107,-108,-111,-112,-113,-114,-115,-116,-119,-120,-121,-122,-123,-124,-125,-126,-127,-128,-129,-130,-131,-132,-133,-136,-138,-143,-144,-250,-252,560,-169,-173,-174,-175,-176,575,-159,-55,134,597,602,603,604,-254,-253,-170,-92,575,-163,518,-161,-199,-201,-202,-241,-96,-97,-100,-102,-117,-118,-135,-141,-142,-146,-147,-255,-171,-178,-180,-182,-184,-185,-168,575,-158,-200,683,-134,-177,-179,-181,-183,-172,-187,575,575,313,-137,-139,-140,-145,-186,-189,575,313,313,-188,-109,575,-190,]),'DATABASES':([23,],[135,]),'DATABASE':([24,26,27,262,],[136,140,144,391,]),'TABLE':([24,26,27,],[138,141,145,]),'PUNTO':([25,153,],[139,139,]),'PARENTESISDERECHA':([31,32,34,35,104,149,150,152,153,154,168,169,184,193,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,252,255,259,264,274,283,284,285,286,287,288,290,294,295,296,297,298,299,300,301,302,303,304,305,306,317,318,319,320,321,322,323,324,325,328,329,331,333,334,335,336,337,338,340,341,342,343,344,345,346,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,369,371,376,377,381,412,418,419,423,424,427,428,429,430,431,432,433,434,435,438,439,442,443,444,445,446,447,449,450,451,452,453,454,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,474,476,481,482,485,487,497,498,500,501,502,503,512,514,515,521,523,524,528,529,535,536,537,538,540,541,543,547,548,549,550,551,552,558,572,573,580,581,582,583,585,589,591,593,594,595,596,598,599,600,601,605,606,608,609,610,612,613,615,617,619,620,624,625,627,634,636,648,649,650,651,655,656,657,658,659,660,661,662,663,666,668,669,670,675,676,681,684,685,686,687,688,689,690,691,693,697,699,706,711,712,],[-152,-151,-85,-86,-155,-82,-83,274,-153,-84,-240,-239,331,340,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,-73,-74,-75,-76,-77,-78,-79,-80,-251,-256,-54,-154,-81,-191,-192,-193,-194,-195,-196,-198,-203,-204,-205,-206,-207,-208,-209,-210,-211,-212,-213,-214,417,-242,428,429,430,431,432,433,434,435,438,439,-101,442,443,444,445,446,447,-110,449,450,451,452,453,454,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,474,476,481,482,487,-197,525,526,-237,-238,-243,-87,-88,-89,-90,-91,-93,-94,-95,-98,-99,-103,-104,-105,-106,-107,-108,-111,-112,-113,-114,-115,-116,-119,-120,-121,-122,-123,-124,-125,-126,-127,-128,-129,-130,-131,-132,-133,-136,-138,-143,-144,-250,-252,559,-169,-173,-174,-175,-176,572,574,-159,580,582,583,-55,586,593,594,595,596,598,599,601,605,606,608,609,-254,-253,-170,-92,632,-199,636,-201,-202,638,-235,-241,-96,-97,-100,-102,-117,-118,655,-135,-141,-142,-146,-147,-255,-171,-178,-180,-182,-184,-185,-168,666,668,-158,-200,-234,-84,681,274,-134,684,685,686,687,-177,-179,-181,-183,-172,-187,691,692,-232,-233,-236,-137,-139,-140,-145,-186,698,699,-189,701,706,-188,-109,712,-190,]),'AS':([31,32,34,35,104,149,150,153,154,168,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,252,255,264,274,331,340,423,428,429,430,431,432,433,434,435,438,439,442,443,444,445,446,447,449,450,451,452,453,454,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,474,476,481,482,485,487,551,552,572,593,594,595,596,598,599,601,605,606,608,609,610,655,684,685,686,687,706,],[-152,-151,-85,-86,-155,-82,-83,-153,-84,316,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,-73,-74,-75,-76,-77,-78,-79,-80,-251,-256,-154,-81,-101,-110,316,-87,-88,-89,-90,-91,-93,-94,-95,-98,-99,-103,-104,-105,-106,-107,-108,-111,-112,-113,-114,-115,-116,-119,-120,-121,-122,-123,-124,-125,-126,-127,-128,-129,-130,-131,-132,-133,-136,-138,-143,-144,-250,-252,-254,-253,-92,-96,-97,-100,-102,-117,-118,-135,-141,-142,-146,-147,-255,-134,-137,-139,-140,-145,-109,]),'FROM':([31,32,34,35,38,104,132,149,150,153,154,166,167,168,169,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,252,255,257,264,274,317,331,340,378,385,423,424,427,428,429,430,431,432,433,434,435,438,439,442,443,444,445,446,447,449,450,451,452,453,454,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,472,474,476,481,482,485,487,551,552,572,591,593,594,595,596,598,599,601,605,606,608,609,610,655,684,685,686,687,706,],[-152,-151,-85,-86,157,-155,256,-82,-83,-153,-84,311,315,-240,-239,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,-73,-74,-75,-76,-77,-78,-79,-80,-251,-256,384,-154,-81,-242,-101,-110,483,490,-237,-238,-243,-87,-88,-89,-90,-91,-93,-94,-95,-98,-99,-103,-104,-105,-106,-107,-108,-111,-112,-113,-114,-115,-116,-119,-120,-121,-122,-123,-124,-125,-126,-127,-128,-129,-130,-131,-132,-133,542,-136,-138,-143,-144,-250,-252,-254,-253,-92,-241,-96,-97,-100,-102,-117,-118,-135,-141,-142,-146,-147,-255,-134,-137,-139,-140,-145,-109,]),'PUNTOYCOMA':([31,32,34,35,104,135,142,146,149,150,153,154,158,166,168,169,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,252,255,261,264,268,270,271,272,274,277,280,283,284,285,286,287,288,290,294,295,296,297,298,299,300,301,302,303,304,305,317,331,340,387,388,396,407,411,412,417,422,423,424,426,427,428,429,430,431,432,433,434,435,438,439,442,443,444,445,446,447,449,450,451,452,453,454,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,474,476,481,482,485,487,492,495,511,519,520,526,551,552,554,555,557,559,566,567,568,569,570,572,576,577,578,580,582,583,586,587,589,591,592,593,594,595,596,598,599,601,605,606,608,609,610,632,636,637,638,639,643,648,649,652,655,674,675,676,677,679,681,684,685,686,687,695,696,698,701,702,703,704,705,706,],[-152,-151,-85,-86,-155,260,-40,-41,-82,-83,-153,-84,-39,312,-240,-239,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,-73,-74,-75,-76,-77,-78,-79,-80,-251,-256,386,-154,399,401,-52,-53,-81,408,-46,-191,-192,-193,-194,-195,-196,-198,-203,-204,-205,-206,-207,-208,-209,-210,-211,-212,-213,-214,-242,-101,-110,491,-28,510,-162,-45,-197,-47,531,-237,-238,534,-243,-87,-88,-89,-90,-91,-93,-94,-95,-98,-99,-103,-104,-105,-106,-107,-108,-111,-112,-113,-114,-115,-116,-119,-120,-121,-122,-123,-124,-125,-126,-127,-128,-129,-130,-131,-132,-133,-136,-138,-143,-144,-250,-252,-27,556,571,579,-44,-49,-254,-253,-29,-30,611,622,630,631,-34,-35,-36,-92,-163,635,-161,-199,-201,-202,-51,640,-235,-241,653,-96,-97,-100,-102,-117,-118,-135,-141,-142,-146,-147,-255,671,-200,-48,-50,673,-223,-234,-84,682,-134,-222,-232,-233,-224,-226,-236,-137,-139,-140,-145,-225,-227,707,709,-228,-229,-230,-231,-109,]),'WHERE':([31,32,34,35,104,149,150,153,154,168,169,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,252,255,264,274,277,317,331,340,406,407,422,423,424,426,427,428,429,430,431,432,433,434,435,438,439,442,443,444,445,446,447,449,450,451,452,453,454,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,474,476,481,482,485,487,551,552,572,576,578,591,593,594,595,596,598,599,601,605,606,608,609,610,655,684,685,686,687,706,],[-152,-151,-85,-86,-155,-82,-83,-153,-84,-240,-239,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,-73,-74,-75,-76,-77,-78,-79,-80,-251,-256,-154,-81,409,-242,-101,-110,517,-162,530,-237,-238,533,-243,-87,-88,-89,-90,-91,-93,-94,-95,-98,-99,-103,-104,-105,-106,-107,-108,-111,-112,-113,-114,-115,-116,-119,-120,-121,-122,-123,-124,-125,-126,-127,-128,-129,-130,-131,-132,-133,-136,-138,-143,-144,-250,-252,-254,-253,-92,-163,-161,-241,-96,-97,-100,-102,-117,-118,-135,-141,-142,-146,-147,-255,-134,-137,-139,-140,-145,-109,]),'LIMIT':([31,32,34,35,104,149,150,153,154,168,169,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,252,255,264,274,317,331,340,423,424,427,428,429,430,431,432,433,434,435,438,439,442,443,444,445,446,447,449,450,451,452,453,454,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,474,476,481,482,485,487,551,552,572,587,589,591,592,593,594,595,596,598,599,601,605,606,608,609,610,639,643,648,649,652,655,674,675,676,677,679,681,684,685,686,687,695,696,702,703,704,705,706,],[-152,-151,-85,-86,-155,-82,-83,-153,-84,-240,-239,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,-73,-74,-75,-76,-77,-78,-79,-80,-251,-256,-154,-81,-242,-101,-110,-237,-238,-243,-87,-88,-89,-90,-91,-93,-94,-95,-98,-99,-103,-104,-105,-106,-107,-108,-111,-112,-113,-114,-115,-116,-119,-120,-121,-122,-123,-124,-125,-126,-127,-128,-129,-130,-131,-132,-133,-136,-138,-143,-144,-250,-252,-254,-253,-92,644,-235,-241,644,-96,-97,-100,-102,-117,-118,-135,-141,-142,-146,-147,-255,644,-223,-234,-84,644,-134,-222,-232,-233,-224,-226,-236,-137,-139,-140,-145,-225,-227,-228,-229,-230,-231,-109,]),'GROUP':([31,32,34,35,104,149,150,153,154,168,169,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,252,255,264,274,317,331,340,423,424,427,428,429,430,431,432,433,434,435,438,439,442,443,444,445,446,447,449,450,451,452,453,454,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,474,476,481,482,485,487,551,552,572,587,589,591,592,593,594,595,596,598,599,601,605,606,608,609,610,639,643,648,649,652,655,674,675,676,677,679,681,684,685,686,687,695,696,702,703,704,705,706,],[-152,-151,-85,-86,-155,-82,-83,-153,-84,-240,-239,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,-73,-74,-75,-76,-77,-78,-79,-80,-251,-256,-154,-81,-242,-101,-110,-237,-238,-243,-87,-88,-89,-90,-91,-93,-94,-95,-98,-99,-103,-104,-105,-106,-107,-108,-111,-112,-113,-114,-115,-116,-119,-120,-121,-122,-123,-124,-125,-126,-127,-128,-129,-130,-131,-132,-133,-136,-138,-143,-144,-250,-252,-254,-253,-92,645,-235,-241,645,-96,-97,-100,-102,-117,-118,-135,-141,-142,-146,-147,-255,645,-223,-234,-84,645,-134,-222,-232,-233,-224,-226,-236,-137,-139,-140,-145,-225,-227,-228,-229,-230,-231,-109,]),'HAVING':([31,32,34,35,104,149,150,153,154,168,169,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,252,255,264,274,317,331,340,423,424,427,428,429,430,431,432,433,434,435,438,439,442,443,444,445,446,447,449,450,451,452,453,454,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,474,476,481,482,485,487,551,552,572,587,589,591,592,593,594,595,596,598,599,601,605,606,608,609,610,639,643,648,649,652,655,674,675,676,677,679,681,684,685,686,687,695,696,702,703,704,705,706,],[-152,-151,-85,-86,-155,-82,-83,-153,-84,-240,-239,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,-73,-74,-75,-76,-77,-78,-79,-80,-251,-256,-154,-81,-242,-101,-110,-237,-238,-243,-87,-88,-89,-90,-91,-93,-94,-95,-98,-99,-103,-104,-105,-106,-107,-108,-111,-112,-113,-114,-115,-116,-119,-120,-121,-122,-123,-124,-125,-126,-127,-128,-129,-130,-131,-132,-133,-136,-138,-143,-144,-250,-252,-254,-253,-92,646,-235,-241,646,-96,-97,-100,-102,-117,-118,-135,-141,-142,-146,-147,-255,646,-223,-234,-84,646,-134,-222,-232,-233,-224,-226,-236,-137,-139,-140,-145,-225,-227,-228,-229,-230,-231,-109,]),'ORDER':([31,32,34,35,104,149,150,153,154,168,169,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,252,255,264,274,317,331,340,423,424,427,428,429,430,431,432,433,434,435,438,439,442,443,444,445,446,447,449,450,451,452,453,454,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,474,476,481,482,485,487,551,552,572,587,589,591,592,593,594,595,596,598,599,601,605,606,608,609,610,639,643,648,649,652,655,674,675,676,677,679,681,684,685,686,687,695,696,702,703,704,705,706,],[-152,-151,-85,-86,-155,-82,-83,-153,-84,-240,-239,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,-73,-74,-75,-76,-77,-78,-79,-80,-251,-256,-154,-81,-242,-101,-110,-237,-238,-243,-87,-88,-89,-90,-91,-93,-94,-95,-98,-99,-103,-104,-105,-106,-107,-108,-111,-112,-113,-114,-115,-116,-119,-120,-121,-122,-123,-124,-125,-126,-127,-128,-129,-130,-131,-132,-133,-136,-138,-143,-144,-250,-252,-254,-253,-92,647,-235,-241,647,-96,-97,-100,-102,-117,-118,-135,-141,-142,-146,-147,-255,647,-223,-234,-84,647,-134,-222,-232,-233,-224,-226,-236,-137,-139,-140,-145,-225,-227,-228,-229,-230,-231,-109,]),'ASC':([31,32,34,35,104,149,150,153,154,168,169,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,252,255,264,274,317,331,340,423,424,427,428,429,430,431,432,433,434,435,438,439,442,443,444,445,446,447,449,450,451,452,453,454,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,474,476,481,482,485,487,551,552,572,591,593,594,595,596,598,599,601,605,606,608,609,610,655,684,685,686,687,696,706,],[-152,-151,-85,-86,-155,-82,-83,-153,-84,-240,-239,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,-73,-74,-75,-76,-77,-78,-79,-80,-251,-256,-154,-81,-242,-101,-110,-237,-238,-243,-87,-88,-89,-90,-91,-93,-94,-95,-98,-99,-103,-104,-105,-106,-107,-108,-111,-112,-113,-114,-115,-116,-119,-120,-121,-122,-123,-124,-125,-126,-127,-128,-129,-130,-131,-132,-133,-136,-138,-143,-144,-250,-252,-254,-253,-92,-241,-96,-97,-100,-102,-117,-118,-135,-141,-142,-146,-147,-255,-134,-137,-139,-140,-145,704,-109,]),'DESC':([31,32,34,35,104,149,150,153,154,168,169,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,252,255,264,274,317,331,340,423,424,427,428,429,430,431,432,433,434,435,438,439,442,443,444,445,446,447,449,450,451,452,453,454,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,474,476,481,482,485,487,551,552,572,591,593,594,595,596,598,599,601,605,606,608,609,610,655,684,685,686,687,696,706,],[-152,-151,-85,-86,-155,-82,-83,-153,-84,-240,-239,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,-73,-74,-75,-76,-77,-78,-79,-80,-251,-256,-154,-81,-242,-101,-110,-237,-238,-243,-87,-88,-89,-90,-91,-93,-94,-95,-98,-99,-103,-104,-105,-106,-107,-108,-111,-112,-113,-114,-115,-116,-119,-120,-121,-122,-123,-124,-125,-126,-127,-128,-129,-130,-131,-132,-133,-136,-138,-143,-144,-250,-252,-254,-253,-92,-241,-96,-97,-100,-102,-117,-118,-135,-141,-142,-146,-147,-255,-134,-137,-139,-140,-145,705,-109,]),'FOR':([31,32,34,35,104,149,150,153,154,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,252,255,264,274,331,340,378,428,429,430,431,432,433,434,435,438,439,442,443,444,445,446,447,449,450,451,452,453,454,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,474,476,481,482,485,487,549,551,552,572,593,594,595,596,598,599,601,605,606,608,609,610,655,684,685,686,687,706,],[-152,-151,-85,-86,-155,-82,-83,-153,-84,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,-73,-74,-75,-76,-77,-78,-79,-80,-251,-256,-154,-81,-101,-110,484,-87,-88,-89,-90,-91,-93,-94,-95,-98,-99,-103,-104,-105,-106,-107,-108,-111,-112,-113,-114,-115,-116,-119,-120,-121,-122,-123,-124,-125,-126,-127,-128,-129,-130,-131,-132,-133,-136,-138,-143,-144,-250,-252,607,-254,-253,-92,-96,-97,-100,-102,-117,-118,-135,-141,-142,-146,-147,-255,-134,-137,-139,-140,-145,-109,]),'OFFSET':([31,32,34,35,104,149,150,153,154,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,252,255,264,274,331,340,428,429,430,431,432,433,434,435,438,439,442,443,444,445,446,447,449,450,451,452,453,454,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,474,476,481,482,485,487,551,552,572,593,594,595,596,598,599,601,605,606,608,609,610,655,677,684,685,686,687,706,],[-152,-151,-85,-86,-155,-82,-83,-153,-84,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,-73,-74,-75,-76,-77,-78,-79,-80,-251,-256,-154,-81,-101,-110,-87,-88,-89,-90,-91,-93,-94,-95,-98,-99,-103,-104,-105,-106,-107,-108,-111,-112,-113,-114,-115,-116,-119,-120,-121,-122,-123,-124,-125,-126,-127,-128,-129,-130,-131,-132,-133,-136,-138,-143,-144,-250,-252,-254,-253,-92,-96,-97,-100,-102,-117,-118,-135,-141,-142,-146,-147,-255,-134,694,-137,-139,-140,-145,-109,]),'OWNER':([31,32,104,153,261,264,265,387,388,492,495,554,555,557,],[-152,-151,-155,-153,389,-154,394,389,-28,-27,389,-29,-30,389,]),'MODE':([31,32,104,153,261,264,387,388,492,495,554,555,557,],[-152,-151,-155,-153,390,-154,390,-28,-27,390,-29,-30,390,]),'DEFAULT':([31,32,104,153,264,283,284,285,286,287,288,290,294,295,296,297,298,299,300,301,302,303,304,305,412,558,580,582,583,612,613,615,617,619,620,636,660,661,662,663,668,688,699,],[-152,-151,-155,-153,-154,-191,-192,-193,-194,-195,-196,-198,-203,-204,-205,-206,-207,-208,-209,-210,-211,-212,-213,-214,-197,614,-199,-201,-202,614,-178,-180,-182,-184,-185,-200,-177,-179,-181,-183,-187,-186,-188,]),'NULL':([31,32,104,153,264,283,284,285,286,287,288,290,294,295,296,297,298,299,300,301,302,303,304,305,410,412,558,580,582,583,612,613,615,616,617,619,620,636,660,661,662,663,668,688,699,],[-152,-151,-155,-153,-154,-191,-192,-193,-194,-195,-196,-198,-203,-204,-205,-206,-207,-208,-209,-210,-211,-212,-213,-214,520,-197,615,-199,-201,-202,615,-178,-180,662,-182,-184,-185,-200,-177,-179,-181,-183,-187,-186,-188,]),'UNIQUE':([31,32,104,153,165,264,279,283,284,285,286,287,288,290,294,295,296,297,298,299,300,301,302,303,304,305,392,412,558,560,580,582,583,612,613,615,617,619,620,636,660,661,662,663,664,668,688,699,],[-152,-151,-155,-153,310,-154,310,-191,-192,-193,-194,-195,-196,-198,-203,-204,-205,-206,-207,-208,-209,-210,-211,-212,-213,-214,499,-197,617,499,-199,-201,-202,617,-178,-180,-182,-184,-185,-200,-177,-179,-181,-183,688,-187,-186,-188,]),'INTO':([36,],[155,]),'KEY':([42,43,309,506,507,618,],[163,164,420,564,565,663,]),'SYMMETRIC':([127,254,],[251,383,]),'REPLACE':([137,],[262,]),'IF':([144,],[269,]),'SET':([156,161,267,],[276,281,281,]),'TYPE':([161,267,],[282,282,]),'SMALLINT':([161,278,282,496,],[283,283,283,283,]),'INTEGER':([161,278,282,496,],[284,284,284,284,]),'BIGINT':([161,278,282,496,],[285,285,285,285,]),'NUMERIC':([161,278,282,496,],[287,287,287,287,]),'REAL':([161,278,282,496,],[288,288,288,288,]),'DOUBLE':([161,278,282,496,],[289,289,289,289,]),'MONEY':([161,278,282,496,],[290,290,290,290,]),'VARCHAR':([161,278,282,496,],[291,291,291,291,]),'CHARACTER':([161,278,282,496,],[292,292,292,292,]),'CHAR':([161,278,282,496,],[293,293,293,293,]),'TEXT':([161,278,282,496,],[294,294,294,294,]),'BOOLEAN':([161,278,282,496,],[295,295,295,295,]),'TIMESTAMP':([161,278,282,496,],[296,296,296,296,]),'TIME':([161,278,282,496,],[297,297,297,297,]),'INTERVAL':([161,278,282,496,],[298,298,298,298,]),'DATE':([161,278,282,496,],[299,299,299,299,]),'YEAR':([161,278,282,496,],[300,300,300,300,]),'MONTH':([161,278,282,496,],[301,301,301,301,]),'DAY':([161,278,282,496,],[302,302,302,302,]),'HOUR':([161,278,282,496,],[303,303,303,303,]),'MINUTE':([161,278,282,496,],[304,304,304,304,]),'SECOND':([161,278,282,496,],[305,305,305,305,]),'LEADING':([217,],[365,]),'TRAILING':([217,],[366,]),'BOTH':([217,],[367,]),'RENAME':([265,],[393,]),'EXISTS':([269,],[400,]),'VALUES':([275,574,],[403,633,]),'PRECISION':([289,],[412,]),'VARYING':([292,],[414,]),'TO':([393,394,],[508,509,]),'CURRENT_USER':([509,],[568,]),'SESSION_USER':([509,],[569,]),'REFERENCES':([525,692,],[584,700,]),'INHERITS':([559,],[623,]),'BY':([645,647,],[678,680,]),}
_lr_action = {}
for _k, _v in _lr_action_items.items():
for _x,_y in zip(_v[0],_v[1]):
if not _x in _lr_action: _lr_action[_x] = {}
_lr_action[_x][_k] = _y
del _lr_action_items
_lr_goto_items = {'inicio':([0,],[1,]),'queries':([0,],[2,]),'query':([0,2,],[3,105,]),'mostrarBD':([0,2,],[4,4,]),'crearBD':([0,2,],[5,5,]),'alterBD':([0,2,],[6,6,]),'dropBD':([0,2,],[7,7,]),'operacion':([0,2,30,33,45,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,131,151,162,170,171,172,173,174,175,176,177,178,179,180,181,182,183,185,186,187,188,189,190,191,192,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,218,219,220,221,222,223,224,225,226,227,228,251,253,254,311,313,314,315,316,364,379,383,402,409,436,437,440,441,448,455,456,473,475,477,478,479,480,483,484,486,488,516,530,532,533,542,553,563,588,590,597,602,603,604,607,641,642,644,646,667,678,680,683,694,],[8,8,152,154,168,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,255,273,306,317,318,319,320,321,322,323,324,325,326,327,328,329,330,332,333,334,335,336,337,338,339,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,368,369,370,371,372,373,374,375,376,377,378,380,168,382,168,423,425,168,427,472,485,489,512,519,535,536,537,538,539,540,541,543,544,545,546,547,548,549,550,551,552,576,589,591,589,600,610,627,649,651,654,656,657,658,659,589,589,677,168,690,168,168,697,702,]),'insertinBD':([0,2,],[9,9,]),'updateinBD':([0,2,],[10,10,]),'deleteinBD':([0,2,],[11,11,]),'createTable':([0,2,],[12,12,]),'inheritsBD':([0,2,],[13,13,]),'dropTable':([0,2,],[14,14,]),'alterTable':([0,2,],[15,15,]),'variantesAt':([0,2,266,],[16,16,396,]),'contAdd':([0,2,39,397,],[17,17,158,158,]),'contDrop':([0,2,27,398,],[18,18,146,146,]),'contAlter':([0,2,26,395,],[19,19,142,142,]),'listaid':([0,2,421,],[20,20,529,]),'tipoAlter':([0,2,],[21,21,]),'selectData':([0,2,],[22,22,]),'funcionBasica':([0,2,30,33,45,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,131,151,162,170,171,172,173,174,175,176,177,178,179,180,181,182,183,185,186,187,188,189,190,191,192,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,218,219,220,221,222,223,224,225,226,227,228,251,253,254,311,313,314,315,316,364,379,383,402,409,436,437,440,441,448,455,456,473,475,477,478,479,480,483,484,486,488,516,530,532,533,542,553,563,588,590,597,602,603,604,607,641,642,644,646,667,678,680,683,694,],[34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,]),'final':([0,2,30,33,45,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,131,151,162,170,171,172,173,174,175,176,177,178,179,180,181,182,183,185,186,187,188,189,190,191,192,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,218,219,220,221,222,223,224,225,226,227,228,251,253,254,311,313,314,315,316,364,379,383,402,404,409,436,437,440,441,448,455,456,473,475,477,478,479,480,483,484,486,488,493,494,509,513,516,530,532,533,542,553,561,563,575,588,590,597,602,603,604,607,614,628,629,641,642,644,646,667,672,678,680,683,694,710,],[35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,515,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,35,554,555,570,515,35,35,35,35,35,35,515,35,634,35,35,35,35,35,35,35,661,515,515,35,35,35,35,35,515,35,35,35,35,515,]),'condicion_select':([8,45,152,154,166,168,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,253,255,273,306,311,315,317,318,319,320,321,322,323,324,325,326,327,328,329,330,332,333,334,335,336,337,338,339,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,368,369,370,371,372,373,374,375,376,377,378,380,381,382,422,423,425,426,427,472,485,489,512,519,535,536,537,538,539,540,541,543,544,545,546,547,548,549,550,551,552,576,589,591,600,610,627,646,649,651,654,656,657,658,659,677,678,679,680,690,695,696,697,702,],[131,170,131,131,314,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,170,131,131,131,170,170,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,314,131,314,131,131,314,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,170,131,131,131,131,131,131,131,131,170,314,170,131,314,314,131,131,]),'select_list':([45,253,311,315,646,678,680,],[166,381,422,426,679,695,696,]),'asignacion':([45,253,311,313,315,646,678,680,],[169,169,169,424,169,169,169,169,]),'tipo':([161,278,282,496,],[280,280,411,558,]),'opcionTrim':([217,],[364,]),'parametrosCrearBD':([261,495,],[387,557,]),'parametroCrearBD':([261,387,495,557,],[388,492,388,492,]),'asignaciones':([276,517,],[406,577,]),'asigna':([276,517,518,],[407,407,578,]),'creaColumnas':([392,],[497,]),'Columna':([392,560,],[498,624,]),'constraintcheck':([392,558,560,612,],[500,619,500,619,]),'checkinColumn':([392,558,560,612,],[501,620,501,620,]),'primaryKey':([392,560,],[502,502,]),'foreignKey':([392,560,],[503,503,]),'listaParam':([404,513,561,628,629,672,710,],[514,573,625,669,670,693,711,]),'parametroAlterUser':([509,],[567,]),'search_condition':([530,533,588,590,641,642,],[587,592,648,650,675,676,]),'paramOpcional':([558,],[612,]),'paramopc':([558,612,],[613,660,]),'opcionesSelect':([587,592,],[639,652,]),'opcionSelect':([587,592,639,652,],[643,643,674,674,]),'ordenamiento':([696,],[703,]),}
_lr_goto = {}
for _k, _v in _lr_goto_items.items():
for _x, _y in zip(_v[0], _v[1]):
if not _x in _lr_goto: _lr_goto[_x] = {}
_lr_goto[_x][_k] = _y
del _lr_goto_items
_lr_productions = [
("S' -> inicio","S'",1,None,None,None),
('inicio -> queries','inicio',1,'p_inicio_1','gramaticaAscendenteTree.py',414),
('queries -> queries query','queries',2,'p_queries_1','gramaticaAscendenteTree.py',425),
('queries -> query','queries',1,'p_queries_2','gramaticaAscendenteTree.py',438),
('query -> mostrarBD','query',1,'p_query','gramaticaAscendenteTree.py',449),
('query -> crearBD','query',1,'p_query','gramaticaAscendenteTree.py',450),
('query -> alterBD','query',1,'p_query','gramaticaAscendenteTree.py',451),
('query -> dropBD','query',1,'p_query','gramaticaAscendenteTree.py',452),
('query -> operacion','query',1,'p_query','gramaticaAscendenteTree.py',453),
('query -> insertinBD','query',1,'p_query','gramaticaAscendenteTree.py',454),
('query -> updateinBD','query',1,'p_query','gramaticaAscendenteTree.py',455),
('query -> deleteinBD','query',1,'p_query','gramaticaAscendenteTree.py',456),
('query -> createTable','query',1,'p_query','gramaticaAscendenteTree.py',457),
('query -> inheritsBD','query',1,'p_query','gramaticaAscendenteTree.py',458),
('query -> dropTable','query',1,'p_query','gramaticaAscendenteTree.py',459),
('query -> alterTable','query',1,'p_query','gramaticaAscendenteTree.py',460),
('query -> variantesAt','query',1,'p_query','gramaticaAscendenteTree.py',461),
('query -> contAdd','query',1,'p_query','gramaticaAscendenteTree.py',462),
('query -> contDrop','query',1,'p_query','gramaticaAscendenteTree.py',463),
('query -> contAlter','query',1,'p_query','gramaticaAscendenteTree.py',464),
('query -> listaid','query',1,'p_query','gramaticaAscendenteTree.py',465),
('query -> tipoAlter','query',1,'p_query','gramaticaAscendenteTree.py',466),
('query -> selectData','query',1,'p_query','gramaticaAscendenteTree.py',467),
('crearBD -> CREATE DATABASE ID PUNTOYCOMA','crearBD',4,'p_crearBaseDatos_1','gramaticaAscendenteTree.py',486),
('crearBD -> CREATE OR REPLACE DATABASE ID PUNTOYCOMA','crearBD',6,'p_crearBaseDatos_2','gramaticaAscendenteTree.py',509),
('crearBD -> CREATE OR REPLACE DATABASE ID parametrosCrearBD PUNTOYCOMA','crearBD',7,'p_crearBaseDatos_3','gramaticaAscendenteTree.py',515),
('crearBD -> CREATE DATABASE ID parametrosCrearBD PUNTOYCOMA','crearBD',5,'p_crearBaseDatos_4','gramaticaAscendenteTree.py',521),
('parametrosCrearBD -> parametrosCrearBD parametroCrearBD','parametrosCrearBD',2,'p_parametrosCrearBD_1','gramaticaAscendenteTree.py',528),
('parametrosCrearBD -> parametroCrearBD','parametrosCrearBD',1,'p_parametrosCrearBD_2','gramaticaAscendenteTree.py',535),
('parametroCrearBD -> OWNER IGUAL final','parametroCrearBD',3,'p_parametroCrearBD','gramaticaAscendenteTree.py',541),
('parametroCrearBD -> MODE IGUAL final','parametroCrearBD',3,'p_parametroCrearBD','gramaticaAscendenteTree.py',542),
('mostrarBD -> SHOW DATABASES PUNTOYCOMA','mostrarBD',3,'p_mostrarBD','gramaticaAscendenteTree.py',554),
('alterBD -> ALTER DATABASE ID RENAME TO ID PUNTOYCOMA','alterBD',7,'p_alterBD_1','gramaticaAscendenteTree.py',560),
('alterBD -> ALTER DATABASE ID OWNER TO parametroAlterUser PUNTOYCOMA','alterBD',7,'p_alterBD_2','gramaticaAscendenteTree.py',566),
('parametroAlterUser -> CURRENT_USER','parametroAlterUser',1,'p_parametroAlterUser','gramaticaAscendenteTree.py',572),
('parametroAlterUser -> SESSION_USER','parametroAlterUser',1,'p_parametroAlterUser','gramaticaAscendenteTree.py',573),
('parametroAlterUser -> final','parametroAlterUser',1,'p_parametroAlterUser','gramaticaAscendenteTree.py',574),
('dropTable -> DROP TABLE ID PUNTOYCOMA','dropTable',4,'p_dropTable','gramaticaAscendenteTree.py',581),
('alterTable -> ALTER TABLE ID variantesAt PUNTOYCOMA','alterTable',5,'p_alterTable','gramaticaAscendenteTree.py',587),
('variantesAt -> ADD contAdd','variantesAt',2,'p_variantesAt','gramaticaAscendenteTree.py',597),
('variantesAt -> ALTER contAlter','variantesAt',2,'p_variantesAt','gramaticaAscendenteTree.py',598),
('variantesAt -> DROP contDrop','variantesAt',2,'p_variantesAt','gramaticaAscendenteTree.py',599),
('listaContAlter -> listaContAlter COMA contAlter','listaContAlter',3,'p_listaContAlter','gramaticaAscendenteTree.py',617),
('listaContAlter -> contAlter','listaContAlter',1,'p_listaContAlter_2','gramaticaAscendenteTree.py',623),
('contAlter -> COLUMN ID SET NOT NULL','contAlter',5,'p_contAlter','gramaticaAscendenteTree.py',630),
('contAlter -> COLUMN ID TYPE tipo','contAlter',4,'p_contAlter','gramaticaAscendenteTree.py',631),
('contAdd -> COLUMN ID tipo','contAdd',3,'p_contAdd','gramaticaAscendenteTree.py',645),
('contAdd -> CHECK PARENTESISIZQUIERDA operacion PARENTESISDERECHA','contAdd',4,'p_contAdd','gramaticaAscendenteTree.py',646),
('contAdd -> FOREIGN KEY PARENTESISIZQUIERDA ID PARENTESISDERECHA REFERENCES ID','contAdd',7,'p_contAdd','gramaticaAscendenteTree.py',647),
('contAdd -> PRIMARY KEY PARENTESISIZQUIERDA ID PARENTESISDERECHA','contAdd',5,'p_contAdd','gramaticaAscendenteTree.py',648),
('contAdd -> CONSTRAINT ID PRIMARY KEY PARENTESISIZQUIERDA ID PARENTESISDERECHA','contAdd',7,'p_contAdd','gramaticaAscendenteTree.py',649),
('contAdd -> CONSTRAINT ID UNIQUE PARENTESISIZQUIERDA listaid PARENTESISDERECHA','contAdd',6,'p_contAdd','gramaticaAscendenteTree.py',650),
('contDrop -> COLUMN ID','contDrop',2,'p_contDrop','gramaticaAscendenteTree.py',677),
('contDrop -> CONSTRAINT ID','contDrop',2,'p_contDrop','gramaticaAscendenteTree.py',678),
('listaid -> listaid COMA ID','listaid',3,'p_listaID','gramaticaAscendenteTree.py',692),
('listaid -> ID','listaid',1,'p_listaID_2','gramaticaAscendenteTree.py',701),
('tipoAlter -> ADD','tipoAlter',1,'p_tipoAlter','gramaticaAscendenteTree.py',710),
('tipoAlter -> DROP','tipoAlter',1,'p_tipoAlter','gramaticaAscendenteTree.py',711),
('dropBD -> DROP DATABASE ID PUNTOYCOMA','dropBD',4,'p_dropBD_1','gramaticaAscendenteTree.py',716),
('dropBD -> DROP DATABASE IF EXISTS ID PUNTOYCOMA','dropBD',6,'p_dropBD_2','gramaticaAscendenteTree.py',723),
('operacion -> operacion MAS operacion','operacion',3,'p_operacion','gramaticaAscendenteTree.py',729),
('operacion -> operacion MENOS operacion','operacion',3,'p_operacion','gramaticaAscendenteTree.py',730),
('operacion -> operacion POR operacion','operacion',3,'p_operacion','gramaticaAscendenteTree.py',731),
('operacion -> operacion DIV operacion','operacion',3,'p_operacion','gramaticaAscendenteTree.py',732),
('operacion -> operacion RESIDUO operacion','operacion',3,'p_operacion','gramaticaAscendenteTree.py',733),
('operacion -> operacion POTENCIA operacion','operacion',3,'p_operacion','gramaticaAscendenteTree.py',734),
('operacion -> operacion AND operacion','operacion',3,'p_operacion','gramaticaAscendenteTree.py',735),
('operacion -> operacion OR operacion','operacion',3,'p_operacion','gramaticaAscendenteTree.py',736),
('operacion -> operacion SIMBOLOOR2 operacion','operacion',3,'p_operacion','gramaticaAscendenteTree.py',737),
('operacion -> operacion SIMBOLOOR operacion','operacion',3,'p_operacion','gramaticaAscendenteTree.py',738),
('operacion -> operacion SIMBOLOAND2 operacion','operacion',3,'p_operacion','gramaticaAscendenteTree.py',739),
('operacion -> operacion DESPLAZAMIENTOIZQUIERDA operacion','operacion',3,'p_operacion','gramaticaAscendenteTree.py',740),
('operacion -> operacion DESPLAZAMIENTODERECHA operacion','operacion',3,'p_operacion','gramaticaAscendenteTree.py',741),
('operacion -> operacion IGUAL operacion','operacion',3,'p_operacion','gramaticaAscendenteTree.py',742),
('operacion -> operacion IGUALIGUAL operacion','operacion',3,'p_operacion','gramaticaAscendenteTree.py',743),
('operacion -> operacion NOTEQUAL operacion','operacion',3,'p_operacion','gramaticaAscendenteTree.py',744),
('operacion -> operacion MAYORIGUAL operacion','operacion',3,'p_operacion','gramaticaAscendenteTree.py',745),
('operacion -> operacion MENORIGUAL operacion','operacion',3,'p_operacion','gramaticaAscendenteTree.py',746),
('operacion -> operacion MAYOR operacion','operacion',3,'p_operacion','gramaticaAscendenteTree.py',747),
('operacion -> operacion MENOR operacion','operacion',3,'p_operacion','gramaticaAscendenteTree.py',748),
('operacion -> operacion DIFERENTE operacion','operacion',3,'p_operacion','gramaticaAscendenteTree.py',749),
('operacion -> PARENTESISIZQUIERDA operacion PARENTESISDERECHA','operacion',3,'p_operacion','gramaticaAscendenteTree.py',750),
('operacion -> MENOS ENTERO','operacion',2,'p_operacion_menos_unario','gramaticaAscendenteTree.py',863),
('operacion -> MENOS DECIMAL','operacion',2,'p_operacion_menos_unario','gramaticaAscendenteTree.py',864),
('operacion -> NOT operacion','operacion',2,'p_operacion_not_unario','gramaticaAscendenteTree.py',872),
('operacion -> funcionBasica','operacion',1,'p_operacion_funcion','gramaticaAscendenteTree.py',878),
('operacion -> final','operacion',1,'p_operacion_final','gramaticaAscendenteTree.py',884),
('funcionBasica -> ABS PARENTESISIZQUIERDA operacion PARENTESISDERECHA','funcionBasica',4,'p_funcion_basica','gramaticaAscendenteTree.py',891),
('funcionBasica -> CBRT PARENTESISIZQUIERDA operacion PARENTESISDERECHA','funcionBasica',4,'p_funcion_basica','gramaticaAscendenteTree.py',892),
('funcionBasica -> CEIL PARENTESISIZQUIERDA operacion PARENTESISDERECHA','funcionBasica',4,'p_funcion_basica','gramaticaAscendenteTree.py',893),
('funcionBasica -> CEILING PARENTESISIZQUIERDA operacion PARENTESISDERECHA','funcionBasica',4,'p_funcion_basica','gramaticaAscendenteTree.py',894),
('funcionBasica -> DEGREES PARENTESISIZQUIERDA operacion PARENTESISDERECHA','funcionBasica',4,'p_funcion_basica','gramaticaAscendenteTree.py',895),
('funcionBasica -> DIV PARENTESISIZQUIERDA operacion COMA operacion PARENTESISDERECHA','funcionBasica',6,'p_funcion_basica','gramaticaAscendenteTree.py',896),
('funcionBasica -> EXP PARENTESISIZQUIERDA operacion PARENTESISDERECHA','funcionBasica',4,'p_funcion_basica','gramaticaAscendenteTree.py',897),
('funcionBasica -> FACTORIAL PARENTESISIZQUIERDA operacion PARENTESISDERECHA','funcionBasica',4,'p_funcion_basica','gramaticaAscendenteTree.py',898),
('funcionBasica -> FLOOR PARENTESISIZQUIERDA operacion PARENTESISDERECHA','funcionBasica',4,'p_funcion_basica','gramaticaAscendenteTree.py',899),
('funcionBasica -> GCD PARENTESISIZQUIERDA operacion COMA operacion PARENTESISDERECHA','funcionBasica',6,'p_funcion_basica','gramaticaAscendenteTree.py',900),
('funcionBasica -> LCM PARENTESISIZQUIERDA operacion COMA operacion PARENTESISDERECHA','funcionBasica',6,'p_funcion_basica','gramaticaAscendenteTree.py',901),
('funcionBasica -> LN PARENTESISIZQUIERDA operacion PARENTESISDERECHA','funcionBasica',4,'p_funcion_basica','gramaticaAscendenteTree.py',902),
('funcionBasica -> LOG PARENTESISIZQUIERDA operacion PARENTESISDERECHA','funcionBasica',4,'p_funcion_basica','gramaticaAscendenteTree.py',903),
('funcionBasica -> MOD PARENTESISIZQUIERDA operacion COMA operacion PARENTESISDERECHA','funcionBasica',6,'p_funcion_basica','gramaticaAscendenteTree.py',904),
('funcionBasica -> PI PARENTESISIZQUIERDA PARENTESISDERECHA','funcionBasica',3,'p_funcion_basica','gramaticaAscendenteTree.py',905),
('funcionBasica -> POWER PARENTESISIZQUIERDA operacion COMA operacion PARENTESISDERECHA','funcionBasica',6,'p_funcion_basica','gramaticaAscendenteTree.py',906),
('funcionBasica -> RADIANS PARENTESISIZQUIERDA operacion PARENTESISDERECHA','funcionBasica',4,'p_funcion_basica','gramaticaAscendenteTree.py',907),
('funcionBasica -> ROUND PARENTESISIZQUIERDA operacion PARENTESISDERECHA','funcionBasica',4,'p_funcion_basica','gramaticaAscendenteTree.py',908),
('funcionBasica -> SIGN PARENTESISIZQUIERDA operacion PARENTESISDERECHA','funcionBasica',4,'p_funcion_basica','gramaticaAscendenteTree.py',909),
('funcionBasica -> SQRT PARENTESISIZQUIERDA operacion PARENTESISDERECHA','funcionBasica',4,'p_funcion_basica','gramaticaAscendenteTree.py',910),
('funcionBasica -> TRIM_SCALE PARENTESISIZQUIERDA operacion PARENTESISDERECHA','funcionBasica',4,'p_funcion_basica','gramaticaAscendenteTree.py',911),
('funcionBasica -> TRUNC PARENTESISIZQUIERDA operacion PARENTESISDERECHA','funcionBasica',4,'p_funcion_basica','gramaticaAscendenteTree.py',912),
('funcionBasica -> WIDTH_BUCKET PARENTESISIZQUIERDA operacion COMA operacion COMA operacion COMA operacion PARENTESISDERECHA','funcionBasica',10,'p_funcion_basica','gramaticaAscendenteTree.py',913),
('funcionBasica -> RANDOM PARENTESISIZQUIERDA PARENTESISDERECHA','funcionBasica',3,'p_funcion_basica','gramaticaAscendenteTree.py',914),
('funcionBasica -> ACOS PARENTESISIZQUIERDA operacion PARENTESISDERECHA','funcionBasica',4,'p_funcion_basica','gramaticaAscendenteTree.py',917),
('funcionBasica -> ACOSD PARENTESISIZQUIERDA operacion PARENTESISDERECHA','funcionBasica',4,'p_funcion_basica','gramaticaAscendenteTree.py',918),
('funcionBasica -> ASIN PARENTESISIZQUIERDA operacion PARENTESISDERECHA','funcionBasica',4,'p_funcion_basica','gramaticaAscendenteTree.py',919),
('funcionBasica -> ASIND PARENTESISIZQUIERDA operacion PARENTESISDERECHA','funcionBasica',4,'p_funcion_basica','gramaticaAscendenteTree.py',920),
('funcionBasica -> ATAN PARENTESISIZQUIERDA operacion PARENTESISDERECHA','funcionBasica',4,'p_funcion_basica','gramaticaAscendenteTree.py',921),
('funcionBasica -> ATAND PARENTESISIZQUIERDA operacion PARENTESISDERECHA','funcionBasica',4,'p_funcion_basica','gramaticaAscendenteTree.py',922),
('funcionBasica -> ATAN2 PARENTESISIZQUIERDA operacion COMA operacion PARENTESISDERECHA','funcionBasica',6,'p_funcion_basica','gramaticaAscendenteTree.py',923),
('funcionBasica -> ATAN2D PARENTESISIZQUIERDA operacion COMA operacion PARENTESISDERECHA','funcionBasica',6,'p_funcion_basica','gramaticaAscendenteTree.py',924),
('funcionBasica -> COS PARENTESISIZQUIERDA operacion PARENTESISDERECHA','funcionBasica',4,'p_funcion_basica','gramaticaAscendenteTree.py',927),
('funcionBasica -> COSD PARENTESISIZQUIERDA operacion PARENTESISDERECHA','funcionBasica',4,'p_funcion_basica','gramaticaAscendenteTree.py',928),
('funcionBasica -> COT PARENTESISIZQUIERDA operacion PARENTESISDERECHA','funcionBasica',4,'p_funcion_basica','gramaticaAscendenteTree.py',929),
('funcionBasica -> COTD PARENTESISIZQUIERDA operacion PARENTESISDERECHA','funcionBasica',4,'p_funcion_basica','gramaticaAscendenteTree.py',930),
('funcionBasica -> SIN PARENTESISIZQUIERDA operacion PARENTESISDERECHA','funcionBasica',4,'p_funcion_basica','gramaticaAscendenteTree.py',931),
('funcionBasica -> SIND PARENTESISIZQUIERDA operacion PARENTESISDERECHA','funcionBasica',4,'p_funcion_basica','gramaticaAscendenteTree.py',932),
('funcionBasica -> TAN PARENTESISIZQUIERDA operacion PARENTESISDERECHA','funcionBasica',4,'p_funcion_basica','gramaticaAscendenteTree.py',933),
('funcionBasica -> TAND PARENTESISIZQUIERDA operacion PARENTESISDERECHA','funcionBasica',4,'p_funcion_basica','gramaticaAscendenteTree.py',934),
('funcionBasica -> SINH PARENTESISIZQUIERDA operacion PARENTESISDERECHA','funcionBasica',4,'p_funcion_basica','gramaticaAscendenteTree.py',935),
('funcionBasica -> COSH PARENTESISIZQUIERDA operacion PARENTESISDERECHA','funcionBasica',4,'p_funcion_basica','gramaticaAscendenteTree.py',939),
('funcionBasica -> TANH PARENTESISIZQUIERDA operacion PARENTESISDERECHA','funcionBasica',4,'p_funcion_basica','gramaticaAscendenteTree.py',940),
('funcionBasica -> ASINH PARENTESISIZQUIERDA operacion PARENTESISDERECHA','funcionBasica',4,'p_funcion_basica','gramaticaAscendenteTree.py',941),
('funcionBasica -> ACOSH PARENTESISIZQUIERDA operacion PARENTESISDERECHA','funcionBasica',4,'p_funcion_basica','gramaticaAscendenteTree.py',942),
('funcionBasica -> ATANH PARENTESISIZQUIERDA operacion PARENTESISDERECHA','funcionBasica',4,'p_funcion_basica','gramaticaAscendenteTree.py',943),
('funcionBasica -> LENGTH PARENTESISIZQUIERDA operacion PARENTESISDERECHA','funcionBasica',4,'p_funcion_basica','gramaticaAscendenteTree.py',944),
('funcionBasica -> TRIM PARENTESISIZQUIERDA opcionTrim operacion FROM operacion PARENTESISDERECHA','funcionBasica',7,'p_funcion_basica','gramaticaAscendenteTree.py',945),
('funcionBasica -> GET_BYTE PARENTESISIZQUIERDA operacion COMA operacion PARENTESISDERECHA','funcionBasica',6,'p_funcion_basica','gramaticaAscendenteTree.py',946),
('funcionBasica -> MD5 PARENTESISIZQUIERDA operacion PARENTESISDERECHA','funcionBasica',4,'p_funcion_basica','gramaticaAscendenteTree.py',947),
('funcionBasica -> SET_BYTE PARENTESISIZQUIERDA operacion COMA operacion COMA operacion PARENTESISDERECHA','funcionBasica',8,'p_funcion_basica','gramaticaAscendenteTree.py',948),
('funcionBasica -> SHA256 PARENTESISIZQUIERDA operacion PARENTESISDERECHA','funcionBasica',4,'p_funcion_basica','gramaticaAscendenteTree.py',949),
('funcionBasica -> SUBSTR PARENTESISIZQUIERDA operacion COMA operacion COMA operacion PARENTESISDERECHA','funcionBasica',8,'p_funcion_basica','gramaticaAscendenteTree.py',950),
('funcionBasica -> CONVERT PARENTESISIZQUIERDA operacion COMA operacion COMA operacion PARENTESISDERECHA','funcionBasica',8,'p_funcion_basica','gramaticaAscendenteTree.py',951),
('funcionBasica -> ENCODE PARENTESISIZQUIERDA operacion COMA operacion PARENTESISDERECHA','funcionBasica',6,'p_funcion_basica','gramaticaAscendenteTree.py',952),
('funcionBasica -> DECODE PARENTESISIZQUIERDA operacion COMA operacion PARENTESISDERECHA','funcionBasica',6,'p_funcion_basica','gramaticaAscendenteTree.py',953),
('funcionBasica -> AVG PARENTESISIZQUIERDA operacion PARENTESISDERECHA','funcionBasica',4,'p_funcion_basica','gramaticaAscendenteTree.py',954),
('funcionBasica -> SUM PARENTESISIZQUIERDA operacion PARENTESISDERECHA','funcionBasica',4,'p_funcion_basica','gramaticaAscendenteTree.py',955),
('funcionBasica -> SUBSTRING PARENTESISIZQUIERDA operacion FROM operacion FOR operacion PARENTESISDERECHA','funcionBasica',8,'p_funcion_basica_1','gramaticaAscendenteTree.py',1129),
('funcionBasica -> SUBSTRING PARENTESISIZQUIERDA operacion FROM operacion PARENTESISDERECHA','funcionBasica',6,'p_funcion_basica_2','gramaticaAscendenteTree.py',1133),
('funcionBasica -> SUBSTRING PARENTESISIZQUIERDA operacion FOR operacion PARENTESISDERECHA','funcionBasica',6,'p_funcion_basica_3','gramaticaAscendenteTree.py',1137),
('opcionTrim -> LEADING','opcionTrim',1,'p_opcionTrim','gramaticaAscendenteTree.py',1142),
('opcionTrim -> TRAILING','opcionTrim',1,'p_opcionTrim','gramaticaAscendenteTree.py',1143),
('opcionTrim -> BOTH','opcionTrim',1,'p_opcionTrim','gramaticaAscendenteTree.py',1144),
('final -> DECIMAL','final',1,'p_final','gramaticaAscendenteTree.py',1151),
('final -> ENTERO','final',1,'p_final','gramaticaAscendenteTree.py',1152),
('final -> ID','final',1,'p_final_id','gramaticaAscendenteTree.py',1165),
('final -> ID PUNTO ID','final',3,'p_final_invocacion','gramaticaAscendenteTree.py',1177),
('final -> CADENA','final',1,'p_final_cadena','gramaticaAscendenteTree.py',1184),
('insertinBD -> INSERT INTO ID VALUES PARENTESISIZQUIERDA listaParam PARENTESISDERECHA PUNTOYCOMA','insertinBD',8,'p_insertBD_1','gramaticaAscendenteTree.py',1197),
('insertinBD -> INSERT INTO ID PARENTESISIZQUIERDA listaParam PARENTESISDERECHA VALUES PARENTESISIZQUIERDA listaParam PARENTESISDERECHA PUNTOYCOMA','insertinBD',11,'p_insertBD_2','gramaticaAscendenteTree.py',1227),
('listaParam -> listaParam COMA final','listaParam',3,'p_listaParam','gramaticaAscendenteTree.py',1232),
('listaParam -> final','listaParam',1,'p_listaParam_2','gramaticaAscendenteTree.py',1246),
('updateinBD -> UPDATE ID SET asignaciones WHERE asignaciones PUNTOYCOMA','updateinBD',7,'p_updateBD','gramaticaAscendenteTree.py',1257),
('asignaciones -> asignaciones COMA asigna','asignaciones',3,'p_asignaciones','gramaticaAscendenteTree.py',1291),
('asignaciones -> asigna','asignaciones',1,'p_asignaciones_2','gramaticaAscendenteTree.py',1305),
('asigna -> ID IGUAL operacion','asigna',3,'p_asigna','gramaticaAscendenteTree.py',1316),
('deleteinBD -> DELETE FROM ID PUNTOYCOMA','deleteinBD',4,'p_deleteinBD_1','gramaticaAscendenteTree.py',1332),
('deleteinBD -> DELETE FROM ID WHERE operacion PUNTOYCOMA','deleteinBD',6,'p_deleteinBD_2','gramaticaAscendenteTree.py',1336),
('inheritsBD -> CREATE TABLE ID PARENTESISIZQUIERDA creaColumnas PARENTESISDERECHA INHERITS PARENTESISIZQUIERDA ID PARENTESISDERECHA PUNTOYCOMA','inheritsBD',11,'p_inheritsBD','gramaticaAscendenteTree.py',1368),
('createTable -> CREATE TABLE ID PARENTESISIZQUIERDA creaColumnas PARENTESISDERECHA PUNTOYCOMA','createTable',7,'p_createTable','gramaticaAscendenteTree.py',1402),
('creaColumnas -> creaColumnas COMA Columna','creaColumnas',3,'p_creaColumna','gramaticaAscendenteTree.py',1429),
('creaColumnas -> Columna','creaColumnas',1,'p_creaColumna_2','gramaticaAscendenteTree.py',1442),
('Columna -> ID tipo','Columna',2,'p_columna_1','gramaticaAscendenteTree.py',1454),
('Columna -> ID tipo paramOpcional','Columna',3,'p_columna_2','gramaticaAscendenteTree.py',1469),
('Columna -> UNIQUE PARENTESISIZQUIERDA listaParam PARENTESISDERECHA','Columna',4,'p_columna_3','gramaticaAscendenteTree.py',1487),
('Columna -> constraintcheck','Columna',1,'p_columna_4','gramaticaAscendenteTree.py',1502),
('Columna -> checkinColumn','Columna',1,'p_columna_5','gramaticaAscendenteTree.py',1512),
('Columna -> primaryKey','Columna',1,'p_columna_6','gramaticaAscendenteTree.py',1522),
('Columna -> foreignKey','Columna',1,'p_columna_7','gramaticaAscendenteTree.py',1532),
('paramOpcional -> paramOpcional paramopc','paramOpcional',2,'p_paramOpcional','gramaticaAscendenteTree.py',1545),
('paramOpcional -> paramopc','paramOpcional',1,'p_paramOpcional_1','gramaticaAscendenteTree.py',1558),
('paramopc -> DEFAULT final','paramopc',2,'p_paramopc_1','gramaticaAscendenteTree.py',1570),
('paramopc -> NULL','paramopc',1,'p_paramopc_1','gramaticaAscendenteTree.py',1571),
('paramopc -> NOT NULL','paramopc',2,'p_paramopc_1','gramaticaAscendenteTree.py',1572),
('paramopc -> UNIQUE','paramopc',1,'p_paramopc_1','gramaticaAscendenteTree.py',1573),
('paramopc -> PRIMARY KEY','paramopc',2,'p_paramopc_1','gramaticaAscendenteTree.py',1574),
('paramopc -> constraintcheck','paramopc',1,'p_paramopc_2','gramaticaAscendenteTree.py',1651),
('paramopc -> checkinColumn','paramopc',1,'p_paramopc_3','gramaticaAscendenteTree.py',1661),
('paramopc -> CONSTRAINT ID UNIQUE','paramopc',3,'p_paramopc_4','gramaticaAscendenteTree.py',1674),
('checkinColumn -> CHECK PARENTESISIZQUIERDA operacion PARENTESISDERECHA','checkinColumn',4,'p_checkcolumna','gramaticaAscendenteTree.py',1699),
('constraintcheck -> CONSTRAINT ID CHECK PARENTESISIZQUIERDA operacion PARENTESISDERECHA','constraintcheck',6,'p_constraintcheck','gramaticaAscendenteTree.py',1715),
('primaryKey -> PRIMARY KEY PARENTESISIZQUIERDA listaParam PARENTESISDERECHA','primaryKey',5,'p_primaryKey','gramaticaAscendenteTree.py',1741),
('foreignKey -> FOREIGN KEY PARENTESISIZQUIERDA listaParam PARENTESISDERECHA REFERENCES ID PARENTESISIZQUIERDA listaParam PARENTESISDERECHA','foreignKey',10,'p_foreingkey','gramaticaAscendenteTree.py',1761),
('tipo -> SMALLINT','tipo',1,'p_tipo','gramaticaAscendenteTree.py',1796),
('tipo -> INTEGER','tipo',1,'p_tipo','gramaticaAscendenteTree.py',1797),
('tipo -> BIGINT','tipo',1,'p_tipo','gramaticaAscendenteTree.py',1798),
('tipo -> DECIMAL','tipo',1,'p_tipo','gramaticaAscendenteTree.py',1799),
('tipo -> NUMERIC','tipo',1,'p_tipo','gramaticaAscendenteTree.py',1800),
('tipo -> REAL','tipo',1,'p_tipo','gramaticaAscendenteTree.py',1801),
('tipo -> DOUBLE PRECISION','tipo',2,'p_tipo','gramaticaAscendenteTree.py',1802),
('tipo -> MONEY','tipo',1,'p_tipo','gramaticaAscendenteTree.py',1803),
('tipo -> VARCHAR PARENTESISIZQUIERDA ENTERO PARENTESISDERECHA','tipo',4,'p_tipo','gramaticaAscendenteTree.py',1804),
('tipo -> CHARACTER VARYING PARENTESISIZQUIERDA ENTERO PARENTESISDERECHA','tipo',5,'p_tipo','gramaticaAscendenteTree.py',1805),
('tipo -> CHARACTER PARENTESISIZQUIERDA ENTERO PARENTESISDERECHA','tipo',4,'p_tipo','gramaticaAscendenteTree.py',1806),
('tipo -> CHAR PARENTESISIZQUIERDA ENTERO PARENTESISDERECHA','tipo',4,'p_tipo','gramaticaAscendenteTree.py',1807),
('tipo -> TEXT','tipo',1,'p_tipo','gramaticaAscendenteTree.py',1808),
('tipo -> BOOLEAN','tipo',1,'p_tipo','gramaticaAscendenteTree.py',1809),
('tipo -> TIMESTAMP','tipo',1,'p_tipo','gramaticaAscendenteTree.py',1810),
('tipo -> TIME','tipo',1,'p_tipo','gramaticaAscendenteTree.py',1811),
('tipo -> INTERVAL','tipo',1,'p_tipo','gramaticaAscendenteTree.py',1812),
('tipo -> DATE','tipo',1,'p_tipo','gramaticaAscendenteTree.py',1813),
('tipo -> YEAR','tipo',1,'p_tipo','gramaticaAscendenteTree.py',1814),
('tipo -> MONTH','tipo',1,'p_tipo','gramaticaAscendenteTree.py',1815),
('tipo -> DAY','tipo',1,'p_tipo','gramaticaAscendenteTree.py',1816),
('tipo -> HOUR','tipo',1,'p_tipo','gramaticaAscendenteTree.py',1817),
('tipo -> MINUTE','tipo',1,'p_tipo','gramaticaAscendenteTree.py',1818),
('tipo -> SECOND','tipo',1,'p_tipo','gramaticaAscendenteTree.py',1819),
('selectData -> SELECT select_list FROM select_list WHERE search_condition opcionesSelect PUNTOYCOMA','selectData',8,'p_select','gramaticaAscendenteTree.py',2129),
('selectData -> SELECT POR FROM select_list WHERE search_condition opcionesSelect PUNTOYCOMA','selectData',8,'p_select','gramaticaAscendenteTree.py',2130),
('selectData -> SELECT select_list FROM select_list WHERE search_condition PUNTOYCOMA','selectData',7,'p_select_1','gramaticaAscendenteTree.py',2139),
('selectData -> SELECT POR FROM select_list WHERE search_condition PUNTOYCOMA','selectData',7,'p_select_1','gramaticaAscendenteTree.py',2140),
('selectData -> SELECT select_list FROM select_list PUNTOYCOMA','selectData',5,'p_select_2','gramaticaAscendenteTree.py',2148),
('selectData -> SELECT POR FROM select_list PUNTOYCOMA','selectData',5,'p_select_2','gramaticaAscendenteTree.py',2149),
('selectData -> SELECT select_list PUNTOYCOMA','selectData',3,'p_select_3','gramaticaAscendenteTree.py',2169),
('opcionesSelect -> opcionesSelect opcionSelect','opcionesSelect',2,'p_opcionesSelect_1','gramaticaAscendenteTree.py',2175),
('opcionesSelect -> opcionSelect','opcionesSelect',1,'p_opcionesSelect_2','gramaticaAscendenteTree.py',2180),
('opcionSelect -> LIMIT operacion','opcionSelect',2,'p_opcionesSelect_3','gramaticaAscendenteTree.py',2186),
('opcionSelect -> GROUP BY select_list','opcionSelect',3,'p_opcionesSelect_3','gramaticaAscendenteTree.py',2187),
('opcionSelect -> HAVING select_list','opcionSelect',2,'p_opcionesSelect_3','gramaticaAscendenteTree.py',2188),
('opcionSelect -> ORDER BY select_list','opcionSelect',3,'p_opcionesSelect_3','gramaticaAscendenteTree.py',2189),
('opcionSelect -> LIMIT operacion OFFSET operacion','opcionSelect',4,'p_opcionesSelect_4','gramaticaAscendenteTree.py',2201),
('opcionSelect -> ORDER BY select_list ordenamiento','opcionSelect',4,'p_opcionesSelect_4','gramaticaAscendenteTree.py',2202),
('ordenamiento -> ASC','ordenamiento',1,'p_ordenamiento','gramaticaAscendenteTree.py',2212),
('ordenamiento -> DESC','ordenamiento',1,'p_ordenamiento','gramaticaAscendenteTree.py',2213),
('search_condition -> search_condition AND search_condition','search_condition',3,'p_search_condition_1','gramaticaAscendenteTree.py',2217),
('search_condition -> search_condition OR search_condition','search_condition',3,'p_search_condition_1','gramaticaAscendenteTree.py',2218),
('search_condition -> NOT search_condition','search_condition',2,'p_search_condition_2','gramaticaAscendenteTree.py',2223),
('search_condition -> operacion','search_condition',1,'p_search_condition_3','gramaticaAscendenteTree.py',2227),
('search_condition -> PARENTESISIZQUIERDA search_condition PARENTESISDERECHA','search_condition',3,'p_search_condition_4','gramaticaAscendenteTree.py',2231),
('select_list -> select_list COMA operacion','select_list',3,'p_select_list_1','gramaticaAscendenteTree.py',2236),
('select_list -> select_list COMA asignacion','select_list',3,'p_select_list_6','gramaticaAscendenteTree.py',2246),
('select_list -> asignacion','select_list',1,'p_select_list_7','gramaticaAscendenteTree.py',2253),
('select_list -> operacion','select_list',1,'p_select_list_2','gramaticaAscendenteTree.py',2262),
('select_list -> select_list condicion_select operacion COMA operacion','select_list',5,'p_select_list_3','gramaticaAscendenteTree.py',2269),
('select_list -> condicion_select operacion','select_list',2,'p_select_list_4','gramaticaAscendenteTree.py',2273),
('asignacion -> operacion AS operacion','asignacion',3,'p_asignacion_','gramaticaAscendenteTree.py',2278),
('condicion_select -> DISTINCT FROM','condicion_select',2,'p_condicion_select','gramaticaAscendenteTree.py',2286),
('condicion_select -> IS DISTINCT FROM','condicion_select',3,'p_condicion_select_2','gramaticaAscendenteTree.py',2291),
('condicion_select -> IS NOT DISTINCT FROM','condicion_select',4,'p_condicion_select_3','gramaticaAscendenteTree.py',2297),
('condicion_select -> DISTINCT','condicion_select',1,'p_condicion_select_4','gramaticaAscendenteTree.py',2301),
('condicion_select -> IS DISTINCT','condicion_select',2,'p_condicion_select_5','gramaticaAscendenteTree.py',2305),
('condicion_select -> IS NOT DISTINCT','condicion_select',3,'p_condicion_select_6','gramaticaAscendenteTree.py',2310),
('funcionBasica -> operacion BETWEEN operacion AND operacion','funcionBasica',5,'p_funcion_basica_4','gramaticaAscendenteTree.py',2315),
('funcionBasica -> operacion LIKE CADENA','funcionBasica',3,'p_funcion_basica_5','gramaticaAscendenteTree.py',2319),
('funcionBasica -> operacion IN PARENTESISIZQUIERDA select_list PARENTESISDERECHA','funcionBasica',5,'p_funcion_basica_6','gramaticaAscendenteTree.py',2323),
('funcionBasica -> operacion NOT BETWEEN operacion AND operacion','funcionBasica',6,'p_funcion_basica_7','gramaticaAscendenteTree.py',2327),
('funcionBasica -> operacion BETWEEN SYMMETRIC operacion AND operacion','funcionBasica',6,'p_funcion_basica_8','gramaticaAscendenteTree.py',2331),
('funcionBasica -> operacion NOT BETWEEN SYMMETRIC operacion AND operacion','funcionBasica',7,'p_funcion_basica_9','gramaticaAscendenteTree.py',2335),
('funcionBasica -> operacion condicion_select operacion','funcionBasica',3,'p_funcion_basica_10','gramaticaAscendenteTree.py',2340),
]
| 1,107.369338
| 263,755
| 0.67774
| 71,807
| 317,815
| 2.990823
| 0.018062
| 0.0298
| 0.007878
| 0.010505
| 0.800365
| 0.78066
| 0.743223
| 0.723247
| 0.711034
| 0.702759
| 0
| 0.581492
| 0.024278
| 317,815
| 286
| 263,756
| 1,111.241259
| 0.111068
| 0.000264
| 0
| 0.007246
| 1
| 0.003623
| 0.13488
| 0.024656
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 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
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 11
|
10da60f765c4d584380b7d5764256bcc2499f823
| 1,825
|
py
|
Python
|
fixture/group.py
|
MarjanShk/PythonTraining
|
c40b389157f32786a3c431d2ad02a5d5d29053c3
|
[
"Apache-2.0"
] | null | null | null |
fixture/group.py
|
MarjanShk/PythonTraining
|
c40b389157f32786a3c431d2ad02a5d5d29053c3
|
[
"Apache-2.0"
] | null | null | null |
fixture/group.py
|
MarjanShk/PythonTraining
|
c40b389157f32786a3c431d2ad02a5d5d29053c3
|
[
"Apache-2.0"
] | null | null | null |
class GroupHelper:
def __init__(self, app):
self.app = app
def open_group_page(self):
wd = self.app.wd
wd.find_element_by_link_text("Групи").click()
def create(self, Group):
wd = self.app.wd
wd.find_element_by_name("new").click()
wd.find_element_by_name("group_name").click()
wd.find_element_by_name("group_name").clear()
wd.find_element_by_name("group_name").send_keys(Group.name)
wd.find_element_by_name("group_header").click()
wd.find_element_by_name("group_header").clear()
wd.find_element_by_name("group_header").send_keys(Group.header)
wd.find_element_by_name("group_footer").click()
wd.find_element_by_name("group_footer").clear()
wd.find_element_by_name("group_footer").send_keys(Group.footer)
wd.find_element_by_name("submit").click()
def return_to_groups_page(self):
wd = self.app.wd
wd.find_element_by_link_text("Групи").click()
def delete(self):
wd = self.app.wd
wd.find_element_by_name("selected[]").click()
wd.find_element_by_name("delete").click()
def change(self, Group):
wd = self.app.wd
wd.find_element_by_xpath("//input[@title='Select (myGroup)']").click()
wd.find_element_by_name("edit").click()
wd.find_element_by_name("group_name").clear()
wd.find_element_by_name("group_name").send_keys(Group.name)
wd.find_element_by_name("group_header").clear()
wd.find_element_by_name("group_header").send_keys(Group.header)
wd.find_element_by_name("group_footer").clear()
wd.find_element_by_name("group_footer").send_keys(Group.footer)
wd.find_element_by_name("update").click()
| 42.44186
| 78
| 0.646027
| 257
| 1,825
| 4.182879
| 0.151751
| 0.133953
| 0.290233
| 0.334884
| 0.845581
| 0.845581
| 0.80093
| 0.791628
| 0.76093
| 0.725581
| 0
| 0
| 0.217534
| 1,825
| 43
| 79
| 42.44186
| 0.752801
| 0
| 0
| 0.513514
| 0
| 0
| 0.136364
| 0.012048
| 0
| 0
| 0
| 0
| 0
| 1
| 0.162162
| false
| 0
| 0
| 0
| 0.189189
| 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
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
8056ba92773a30367308621c761dc4d0d09d2bbd
| 13,039
|
py
|
Python
|
All-Operator/4.py
|
Alpha-Demon404/RE-14
|
b5b46a9f0eee218f2a642b615c77135c33c6f4ad
|
[
"MIT"
] | 39
|
2020-02-26T09:44:36.000Z
|
2022-03-23T00:18:25.000Z
|
All-Operator/4.py
|
B4BY-DG/reverse-enginnering
|
b5b46a9f0eee218f2a642b615c77135c33c6f4ad
|
[
"MIT"
] | 15
|
2020-05-14T10:07:26.000Z
|
2022-01-06T02:55:32.000Z
|
All-Operator/4.py
|
B4BY-DG/reverse-enginnering
|
b5b46a9f0eee218f2a642b615c77135c33c6f4ad
|
[
"MIT"
] | 41
|
2020-03-16T22:36:38.000Z
|
2022-03-17T14:47:19.000Z
|
# Filename : dg
# Python Bytecode : 2.7
# Time Succses Decompiled : Sun Sep 6 10:20:03 2020
TselOpok = [
'118.97.159.51:443']
Ilmupedia = ['118.98.95.99:443']
Gamemax = ['118.98.95.120:443']
TselRguru = ['video-cdn.quipper.com:443', 'rg-video.ruangguru.com:443']
TselMaxtream = ['118.98.93.91:443', '118.98.93.65:443']
Isat_Edu = ['video-cdn.quipper.com:443 ', 'rg-video.ruangguru.com:443']
Xl3apk = ['127.0.0.1:9090']
Xlrguru = ['video-cdn.quipper.com:443']
Xlunliturubo = ['iflix-videocdn-p1.akamaized.net', 'iflix-videocdn-p2.akamaized.net', 'iflix-videocdn-p3.akamaized.net', 'iflix-videocdn-p6.akamaized.net', 'iflix-videocdn-p7.akamaized.net', 'iflix-videocdn-p8.akamaized.net', 'video.iflix.com:443', 'rubel-video-cdn.ruangguru.com.akamaized.net:443']
XlIflix = ['iflix-videocdn-p1.akamaized.net', 'iflix-videocdn-p2.akamaized.net', 'iflix-videocdn-p3.akamaized.net', 'iflix-videocdn-p6.akamaized.net', 'iflix-videocdn-p7.akamaized.net', 'iflix-videocdn-p8.akamaized.net', 'video.iflix.com:443', 'rubel-video-cdn.ruangguru.com.akamaized.net:443']
Axis3apk = ['127.0.0.1:9090']
AxisRg = ['video-cdn.quipper.com:443', 'rg-video.ruangguru.com:443']
AxisGaming = ['cdn2-prod-cfn.akamaized.net:443']
AxiGame2 = ['iflix-videocdn-p1.akamaized.net']
AxisSosmed = ['23.45.116.48:443', '23.219.184.41:443', '202.111.47.99:443']
Smart = ['video-cdn.quipper.com:443', 'rg-video.ruangguru.com:443']
import marshal, zlib, base64,dis
exe = (zlib.decompress(base64.b16decode('789CD55B7D6C1B47769F25A90FD292255BB664D98E3DFE90AD7C58262989929D340E6DD112A30F124B3292653B3C5ABB9248934B6977154B17B9BD3BFB72B9B687C669EA386EEF1C20D76B93E6AE457B48D10F144551B4280E458B7E5DFFB8B6A80314FDA37F04688B2B7A28DAF7DEEC2C299172EDDC25C051E4EC9B99DFBE9979F366E6CD9BD11C733E5EF83D073FEBEF14C634F82AACC8D8AC4B2B6C5691B487CD7A24ED65B35E49FBD8AC4FD20D6CB641D28D6CB651D24D6CB649D2CD6CB659D27E36EB27DA83FC4B01361B60A56D6C761B53740F2B0498E6653714A66850480BD38037B06C620B507E2BD380D376A6018F36A6C1ABED4C83577730AD85DD8446EC645A2B111D4CDB4EC42EA6B511B19B69ED447432BD93DD6050C00E8A77316D27117B98D6414437D37611B19769BB89D8C7B44E22F633AD8B88C798B68788034CEB26E220D3F612C199B68F88434CF7B3C2612C6CF608138DC3701BD3F6B3AB1E66BEA2688F31C3EBB6F800D38FB27990FE417C1F5EBB30DBC3344E6C8E51C62137E338D37B997698F8FC95A2EFA5261924E254EF11E8DFFCFFC267AAD703A4DD88FDBD66D97AC9F60169E44ABADD00C45C51CF9916E686FBC27D03DC467468901EC153840D07C3C1FCBD571466FD03C4F8BE8BA1A7FB43A58FEEDDF9264F9D53E3C934CF8C44C7F87874243A91998EAAA9289F3C1B1DEBEBE301018E00F8AD9FE3E9CCD4E86886679223D1746CEA4294A76213D1A9E73369A43FBA77EB2B12DF0FF85B5FE6CF47A746A3537C22938CF291CC38BCCDD331359302ECEBEF496C18B06F7C9B5F4864D299B3311E55E3299E4A03C37363D1A9A9D804BFFFB5DF90D841C4FE324F4527A29350F8F3D131E08745DF7D177F3C10B0FCD8FAF0505F10FE42D4FAE1E070700E478DE28C9C7328491B82D51283875966B6C20AF0F5600714BC287FE8CBEB8CAD0D316051684045C7DE854E2834B14233F6F63A635DA0DF5D55E97EEAC0E4F4B297290A25062805E233F09B861193EAC53E9BB29A21EC193BDD3379BA27B5F0F2AE6F8DFEF3676F9EA1CAB7EEBBD83FF474A874D11A86D865880D42ECFEED0F9CAE82847E48988C4D8D8E65CE824CC741C4901882C4ACFCF0DE6DA833D8FCB4B9A2DB589C96B3753B0F5A833230CAD728D1B2CD794A442811583FABA8EB4B84438D23CDB3B5F28A4D99D7CCBC2D60F3C5156B91DED457F3762FCA57207257ED955E14390516AAA2B66007505BCB86A1CFD97963A10D737652BFF8953D8A576985B0556900EAC7ACB7221B7A6B68736F85EAF5561812CF2540BFCFA56323A2B7D4260CB0281539AB282E95325A3068C5603B062839B51D831D28621494BA530A7B83C4FD1589EB30A1FD580BFC8D8AC00749E0271D81A37CB923CB78624A0E9089E8689C3BFD115313EABE8BC1D22725E7F62ACD2E1B59DD34CBE6F107881B59E1AB3E29EE4914F779141A08B76BE4F269765D41E10BB1AF2B42BC22EE25A109C1A3101B310E3DB00B31CBDB1C397A498E585060E1BF7FB2F0FBF6CFAF9EE96DDAAA816EF369B09B39432B97C4B2A39036603857DB6E1462493716605EB9DA8FE9CDD4DE1D4A3BB494940A814DB2952F41B096C32682F2ACA6B1814273462E9FA706536B9D9514A69F82502E1FCA056400750302F23ABBBBC0A6E8AA42350945EA64D3D3C676D2AE66B1982A6C86C4D148E2C09A9C3C71E9C4C94BEBF9D7A04D95B17C0C552BE02C769C56BBB1E8C44482A73263195AAF286FA8D44B6D7F9CF7FAE56C07D25AD0B754209A458BBA51A548AE5C27285CAE952BEA85B594374EE3B39D64EA551A950E90EA3165B7E7D3D720E67C1E4283D44ED946B50B833D7547CCF62ACDC92EE9C59C31B6A5FE04641B2F326A9D463A026AE11A966052823D09C6E44280542B887218B9DC8B3200E3125ADF35EACA82DA4E6A031627B5F849A7C5ADD4621CB88E89E4183C2399898C34569E3D213FA1608FD52BB1FDB5D881D2B32E9887ABC183B5E00880259AF75783876AC121043B683E500D0ED782FB092CD07CB01A3C500B1E146042F3483538520B1E72C088E643D5E0FA9273D17CF8214427D1FC14808F541A0863F1168F8E67C00ABC00F62558AD93191E0A067BD0FA437569F52FDC7D0B3FEF9EA1D5A44A5D376AAA188838828AE59C4663B15CA3A92A874702E301D2C7A3A099CDD5DAE92E99CF09ED5C506A55D0B3B50A8AC96EB9DD51411FA9602335F7D44089CB163DFD4F89AFBC697CE1A15AD4E8B44837D543F5069F7A181E339526F9AB9BD4543DA9FC3DB2A34A8B355F11430FF77C1E6CA5B2CE9CD9045A094DC406F9C838F0C8680345BD32DA485198D1E1EB655DEB1ED675BD01E75118C5DDF86866DD5DF8F4C3F33A4CF80D6CBD915D6D60E69F63C36088C35C0F431AE6F72E78742D50BDE03B3A56C96E61D5C97E6967184DCCDE26B68DEE68575124B4CD12EB7BB314538F261E25F1B890272062F2244A9A176D22072A4315B6271FF0547C223A8676DEB9D838BF9076B634B1EA3D0D6C8F5EE5BDB4E022DFB2A532597AC528B1B12FF4D5A5BCA96BD4A973E562D9B448630BE5BCE1A8EE4259E8C30EA9CDA55CDEE8758D1C61E6E77276366FE46935B2178AF4BC5234447CD1A0A26C58C81672220F8AAD9DB41B4479792387897B69AE6E85B9BA4569A3BFEDCA5EA00F2A5D4AAB879489552BD389CDCA044D87B240A5C43870FB8C14CD1D0CD4438EB831E462081CC58084D68D01AEDFEAF10DDABEA1EA28BE451DC7C432A6363A756F513E897AAA212CFEE354B3C9ADE6EAB52DEAF984ACE7EBA29E36D513EDA6AD974518293028B456F4A8686DE845D176A0CB44EB403789B61B5D235A17BA43B46E7481C05E41DBCFB4C79876001D191A47AF8576986947987694693D4C3BC6B4E34CEB650BC7370BE371E69A0D2A4EDB567F657870B17DC7AD1107EB8A2792B07D4F27541E9B49F2D0E089E0A913E8ABA00DBDB5CEDCA587DFFF85D73EE52F0F588F337785E2E4CF48ABF1E88458A692896402BD1E17A27D7D641E5A39E62EABFCFEEDF73F892FD409671C6904DCBFFDEAFDDBB7E4F7554EF1CFC197BB391BA89B22EB26816E8AAC9B947B73C3EB0EFB0FBFF8F50A5555F0905BF0AB5B167CB386E29BE0F55E7F88826F11D209B9784D145C8FBA5579B870576055D0BA054F32D7E6E0A080DFC09FFB7883B4E44D22BE2189D71E4C58E7B129F0FE2DF97D9B32DE7109CC83DF5DF9E2A6FCAFBA04791BB880BE4B19EF72A2E8E1FCEECA97DC3CCAE0D68BCC354465E57EB4DF37ADF1EA226E3952BDE888331872122ECB8E4DC726C61393A9184E098971EE7C2A0CFE1F7EE1ADF9C59327CFC626A2CF47D547E0D7BF35BFD1E8646C323AF368F51BD89A9F9A89A2F1AB661E85DFE0D6FCA06E6935169D7CA4FA4536F38B4F8D2452D1348F8D64C6A3A9389FEC7F247E439BF9CD404347797F34E9F6ED23F11BAEC7AF4A708FCAEF541D7E99A989384F67D4B38947E6170AD6E1173F3F119FE1FCE3B43754333EA2336042CACE70C5F8D0FC6AC6C7067ED0338F58BF9AF141FC6068C4A7463F4E7B6BC64735BF17FAC28FCAAF667C10BF542235191BF938F5ABE1979A8CAA69EE4E2C8FAA7F9BF425541A9FC854F1A9C32F5BCDEFEE2730657F3560DD66EEF6DD5D16E4C25B85756CB29AA4C1D2C6F8C0A678FFD6F10714847579D30A556C485C22C11A7B8527E313F1319E8A4EC7549E8C8EC7E814EA3477AB77ABDAC5806F6DFD41F0E98AFD46ABF0ED0F9C0271EB867A984CC5936309E7A8EB4B9B3BE885DA0E8F943EFCDC1DA931638954DAC5DF7E473A45DCA32AEEBEF25685757823EB487DD6C9845A8F359E7B55E9D126D62412EB6BD572BD5BA7E7EA74EE03546073170F6D8A874B9B7AF641FA82FC412B4F573A91DFFFA5F765A333C9894474849FBD50E7C450D605D0965E51EA4FCA2C175FF2973EDC2E0F91792B7F1D93A66887D7A6787F647FAE1BC7F54C7D77F38EF65377E3D8E4C9817720A30B23C400CFBDBF8E6E0EE99D114E7B5B1C14D9C26BE3B86CEC1666B7327B3BBB01FBF0B68A1727C07E082F4E6FFBC63DFAA643A11EE6B8F8E78BE59CADE246560D63C031402F9A8ABE1F722EE48D823E6793FF65B16C0962A96C8A2353CBCE9976C525A3E21E5E7D1283A730408F83DA87C1C97AFAA2E246F457307EC071076C74B9EC57029E2645FCD1C1C086933CEE767EC1C3DC0300DBE76CDAF19C2E45529BAA782C44ED73F6223924B4BC49B70D90CE5DB1281D9B91CDCEE78B7A362B0E7E516C14476CFDA34853CF15B3F8FAEFCA0C262A8C9575FD2F0604AB538E6B431CF8D011119D688893A06EE143159167649A3C99343BC8E32A32973B187CA71798F0C7EE249D06BD9BC1F0450F5B9E91471DE45D3A423E0BF2E8A8E8E052F7491DB06C33BF4467D8D49BD6B5BCBD482F526ECE34736BC4214FE16AAD045A84806CDDCC12FA0F98F4C02ADDCA2EA543D9E17185D120856122C766E7D42322FC3B11E1E089080F4F44B87822C2C713114E9E88F0F2444062AB27500E23977BA8E5D0FF0C9D3FA005EB74F4B64E44F70D9A0896636C7A1D47159E5B8AE332E78095DC946AA892147692C232292C51A32EAA5F265D70930665525226D1CC4F49E7CE49D480449D755F8CC8A4899085BD73F1E5EB9785BBBB89346BA9989BD36924CE97CD52CEAE74CD4BB9A2730302540FA46F080FEA5C59AB55539ABAFF14E3DBA963F6C000DBAE0460C81DF150E9864DB3F75CD15223F864CE073BEE2C73BCA2B0E688FB577883C8839D878497A929AAF19CD7E965778C0E3256A5EF9EAA2382753948B33E6C8DD36710A53B5A72E036B94ABAB2A49B54336784A2CF379B1557396CD3C693023153656996A29508DA54958E9396101E9D42EAC579F50276F445566F6A9A86072E2F8EA7B203A62452E240B5127F0738ADBDEFD3C81D2FCF7CC552031A0DAB80F514D13E5A1192E4D26C209766E3064F3E9D98D05A71D187F8267A7791B9B4B98C62003D374E13A099005F662E6DBE8EB33502BA09E027C07B040810E0B72487FFF2AED3E12102BE43801602FC8DE4708700AD04F837E6D2E67F4A0ED708B09D00AD0AD26D04E8541C0E2F10A09D007D04D8418021C5E13048809D044810A08300330A683D025EF460E22E022C11603701D6F0001C013F41804E02DC22401701EEE22A8B80FD04D84380DF244037017E0FD75F04FC8012F712E0AF89DE4780EFE1CA8C803FA644BA0D67FD07D18F11E07F70CD46C03B94788000BBA9B8830438E081151D015F200027408400870870C603EB3D027204A08B72D634018E10E0331EBB8D00CF11E02825AE78EC764A7C92127B28F1A73DF60E4AECA4C4639478CF63D37A602894789C12BFEDB13B2851F4692F25FE99C7DE4589DFA5C4C729F11F3DF66E4AFC234A7C8212FF5D267E93129FA444CB6B7762E2DA7E6677317B0FD39E72B4BAD04D6697874D2FBFEDF5D920E60033CB5E054C2D05A0DA09A6F5E18C206CADC23E5474B2E04EB2C27EB4BD686468C10DC30358CD1827AA8651A8FE30B21F73261428DF3EE0D05A98AAFC8117E717FB202B1C6418720A0F515D1AD0982B1CA6D5E4088547D9BCB80284193D4CEBA7C8EA0AB38F31F3AACF3ECE0AF0EDA50B448F336D800A6D646B6798FD042B3CC9B441F7CEC753D4CAC8A6F85075FC84BC48F47D2F5EF5A8B4FBFBDE19F84DAF3E43E5BEE7C3DAF461D625A8358C9866B6DEC40A27991D14EC4218C766C3941B162CCABEE969630FF3D9FDD4157FE253AEFB41DCC32038F732C92926EF28C92DA285A6229D114C2526E57E94A73313B835894FC52BFB52B20E82E27666501C93586863F803CEAE05B8FC0C4FE9C51C2C62BC902BE60C324968AA0E0683F40C87C34E5C3C8707C555C72012941019A0E7D0603F3D4F39F1E1812127DE4F1509898A84281216913045FA4544C00644648022CED5D2418A4444244291211119A2C8B0880C53E4944AF70BE96AAA687C48141D1285864471A101D5EBE204EBD01009FAE49595853E58CCAC8318B1B4B99CA99D5C5E5AB317CBC6496B0E4D334B62A8C46B565BC57AD1CDB2799ABF7CDDDA56B155B4F23583B8059C4EFCE8DE9D578553213A45574CC7F885E8D4386D1468CBB0F1569AB863F03B67C4093DB796F01108C82B677887E867615B8A7EA26ACFC19DCF07E4FD3FD88F7EE987F90602E41709C84B8650E217F9D8D28AC5B59C9DE3B9A5ABBC08B60F2FE5AC152017F27C2DC70F1DE2BDB46921833C770D2C84A515BBB265AD3A4BC6AEC85D9923CD82A74626451A2C82C452F92ABD1F2F96C0E0D0F23932C246C1F02FE556290761EAC28AB942662FC6262107360025E212B7727636A6AD90C13653EC87BA128B99A2E9BE34535C318A791BA257CA4E667CBE985F2506D1D5BC456F353A1155DC2F4512EA913716240C6B1576F35265ABA46B642BA54A60C653E3CA4BBAA19E7185A2E7B462DED02D2A349E88E16D3E71D32989019EE2886D015D8C2DCF5DD56D8246CF67E353B1341953A9C4B9F16C8A3CF154C495BCA155EC287145236FD950EE836F23BA973CE895DCDC9CBE24EA6CEA732F51495756E6E7614B61E53FABDB5849AD8CE7FFD979B36CE0355BF5946C576C155FCE970DDA33AB979863332EE58BF945BAC248EFE88696153C2C7113C034E9F552EEAA4E1B3EBBD56D76D6D2CD97C0E0C4ED4275F25C31AF83558983264B2FEB6ED9389A36589058BFEF61FC7D4C55BC4A036C6EF7E01D0208FDF2E7A9A21F264EBF9607FE1AA1ACFDB4896E051BBF41D9E1ED024BBF45D9A9F8E0ED6E4895F736DBE93E1ADEDCDCE9F1437EABB2CFD3A6D026D131B371CF0B66768022A5B2B682FB62328EA97DF5FD4064A7FF2DC69153A3C7DFA0BECDEAED2970FEDF6A4F01C634123EDC5CD0CEA4667381EEC33A9B8B75DA0D66C91500EBA7731BD047B7014556136D0E8168460542C2CFA089486CABDE7D90A26229547DD1EA7730B883C15B18DCDDA420F68A61C004814E0DF51E73EEE4928A6B39BD046AE2952A2A30EFD4951F96F42CD4C16A2171754087ED839F5F994381E2E070B720FFCA98B3D55D20630AEFA036B0D5BFA01BCE1FA23D03821C421F16DD75065B0B3D06E27E968F5DF2A2B5E25810CDB845491A0C9D58E65FB2D56B488C5C2E323014D62EB2753F5DB824CBEC3A482BC0AC9F02F8306640F157E1F55F24379A17F3D00C31F6539E4279BF8DA0AA3CE654757AF932DE6B4DC263067ED3587E83DC32ED66C9E5DD0CBE5577A82BEB569E7679E83B127E0D57D6302BC38E4F4527304D60168CFD5CB1286E4993F0DF777BE09E0BA21E149323FEC300FE5B80BFD2B3F9B2FAAB923FDD8316BB6DCC250297A62DEEBDE40CADA89BE7B143D12DC63C3846FD30260FC1D307BF5618816D44B7900BAC1DF2BC4A0BE05CB797EB45FA01046BFFE238BCD04425FBD4F511891D35A6FBB0E7BB31DEE0DC302E906F0C77A60DB0C590201FEBDE10C1FFF96970C689E3B8C44CBA6D061333D2E4F184B50C6932DBA5910CF15656D8EEF85129DEC6C4DB220FC37676C3EB627754172022B077C187BCF0DCB1F1C2334A54B8B44E0B4D703D9F64560D07AD0E788CA5D3C993A1BE100F07833C31DE1A680DF4EE62CE255E71E76CB19C9FD369000A0FC312ACC9B4D02C99E5D535722390CF8026BF4A9A58212B6908513BA44E51873B37E655BC8AA8CEBA9AF6EB187CE0EA9CF81FA7B2A5AB54B1DD4C5EC5BF546F4EA025CB5C313EA3B837D4BCCA01D09461A549E985E77ED0A256651BA40A77E77B18FC9A3B6F51B97FC8B69CB271867B4671FC1D306537FBF73A4B00ADBA59BAFE44E3216FEBA65D2E17C54859318BC5FC95B0F0359389B54D8A594C93DF62F2BE1E5D2C5F442B04976F2C5C55A4C860B1B5601525CFB49838B176EA100678254448D81594388EC091AFA2A55BE5B70E32E9CB26AF365A84E4662633489838C7A4F4D50939788B4860CBCB57D057241C4D184F537DC5FCFFDE96D223493D2396C76749999E856055E9841E69A4914D7F1E7F0BFD35F95B9A3C10E2A7DDDF087F4FF83BFC3E886D6B510E7B3A17BA075A94FF03FB77D341')))
open('4.pyc','wb').write('\x03\xf3\r\nd\x83\x8e^' + exe)
print 'Wtite To ``4.pyc``!'
| 521.56
| 11,525
| 0.965181
| 251
| 13,039
| 50.135458
| 0.406375
| 0.015257
| 0.013509
| 0.019867
| 0.053719
| 0.048315
| 0.048315
| 0.048315
| 0.048315
| 0.048315
| 0
| 0.569396
| 0.008129
| 13,039
| 24
| 11,526
| 543.291667
| 0.403619
| 0.006596
| 0
| 0
| 0
| 0
| 0.96409
| 0.946714
| 0
| 1
| 0
| 0
| 0
| 0
| null | null | 0
| 0.047619
| null | null | 0.047619
| 0
| 0
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| null | 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 9
|
33903f09833d843030b08953297fa8a731a05b5d
| 1,237
|
py
|
Python
|
test/integration/boto3/aws_common.py
|
groboclown/pipit
|
fc16eca523969dc318016deb5812b4e03d178b07
|
[
"MIT"
] | 3
|
2016-12-21T20:06:47.000Z
|
2017-10-26T14:36:34.000Z
|
test/integration/boto3/aws_common.py
|
groboclown/pipit
|
fc16eca523969dc318016deb5812b4e03d178b07
|
[
"MIT"
] | 1
|
2020-11-11T16:53:43.000Z
|
2020-11-11T16:53:43.000Z
|
test/integration/boto3/aws_common.py
|
groboclown/pipit
|
fc16eca523969dc318016deb5812b4e03d178b07
|
[
"MIT"
] | null | null | null |
import os
from boto3.session import Session
def create_service(service_id, api_version=None, user='USER_ACCESS_KEY'):
def env(key, default_value):
return key in os.environ and os.environ[key] or default_value
session = Session(
aws_access_key_id=user,
aws_secret_access_key='SUPER_SECRET_KEY')
endpoint = env('AWS_ENDPOINT', 'http://localhost:3000/')
return session.resource(
service_name=service_id,
api_version=api_version,
use_ssl=False,
verify=False,
region_name='moon-base-alpha',
endpoint_url=endpoint + service_id + '/'
)
def create_client(service_id, api_version=None, user='USER_ACCESS_KEY'):
def env(key, default_value):
return key in os.environ and os.environ[key] or default_value
session = Session(
aws_access_key_id=user,
aws_secret_access_key='SUPER_SECRET_KEY')
endpoint = env('AWS_ENDPOINT', 'http://localhost:3000/')
return session.client(
service_name=service_id,
api_version=api_version,
use_ssl=False,
verify=False,
region_name='moon-base-alpha',
endpoint_url=endpoint + service_id + '/'
)
| 32.552632
| 74
| 0.653193
| 159
| 1,237
| 4.779874
| 0.264151
| 0.071053
| 0.063158
| 0.1
| 0.892105
| 0.892105
| 0.892105
| 0.892105
| 0.892105
| 0.892105
| 0
| 0.009667
| 0.247373
| 1,237
| 37
| 75
| 33.432432
| 0.80666
| 0
| 0
| 0.75
| 0
| 0
| 0.135113
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.125
| false
| 0
| 0.0625
| 0.0625
| 0.3125
| 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
|
d51303bc22fc35904c50a5bbc6e8ae73f619d22c
| 17,971
|
py
|
Python
|
driver/tests.py
|
swallville/driverBackEnd
|
3599e5a2e58304e08502b10a3856b77a05c7fd16
|
[
"MIT"
] | null | null | null |
driver/tests.py
|
swallville/driverBackEnd
|
3599e5a2e58304e08502b10a3856b77a05c7fd16
|
[
"MIT"
] | 3
|
2021-03-30T12:53:49.000Z
|
2021-09-22T18:44:52.000Z
|
driver/tests.py
|
swallville/driverBackEnd
|
3599e5a2e58304e08502b10a3856b77a05c7fd16
|
[
"MIT"
] | null | null | null |
import datetime as dt
from rest_framework import status
from rest_framework.exceptions import ValidationError
from rest_framework.test import APITestCase
from django.urls import reverse
from model_mommy import mommy
from driver.models import Driver, Register
from truck.models import Truck
from utils import driver_properly_configured
# Create your tests here.
class DriverTests(APITestCase):
data = {'full_name': 'Lukas Ferreira Machado',
'gender': 'M',
'cpf': '047.291.801-00',
'cnh': '83967543154',
'cnh_type': 'A',
'telephone': '61998649461',
'age': '25',
'birthday': '10/08/1994',
'has_vehicle': True,
'is_active': True}
truck_data = {'truck_type': 1}
def test_register_create(self):
data = self.data.copy()
truck_data = self.truck_data.copy()
response = self.client.post(reverse(
'driver:driver_create'), data,
format='json')
self.assertEqual(response.status_code, status.HTTP_201_CREATED)
self.assertEqual(Driver.objects.count(), 1)
response = self.client.post(reverse(
'truck:truck_create'), truck_data, format='json')
self.assertEqual(response.status_code, status.HTTP_201_CREATED)
self.assertEqual(Truck.objects.count(), 1)
register_data = {
'driver': Driver.objects.last().id,
'truck': Truck.objects.last().id,
'is_Loaded': False,
}
response = self.client.post(reverse(
'driver:register_create'
), register_data, format='json')
self.assertEqual(response.status_code, status.HTTP_201_CREATED)
self.assertEqual(Register.objects.count(), 1)
def test_register_update(self):
data = self.data.copy()
truck_data = self.truck_data.copy()
response = self.client.post(reverse(
'driver:driver_create'), data,
format='json')
self.assertEqual(response.status_code, status.HTTP_201_CREATED)
self.assertEqual(Driver.objects.count(), 1)
response = self.client.post(reverse(
'truck:truck_create'), truck_data, format='json')
self.assertEqual(response.status_code, status.HTTP_201_CREATED)
self.assertEqual(Truck.objects.count(), 1)
register_data = {
'driver': Driver.objects.last().id,
'truck': Truck.objects.last().id,
'is_Loaded': False,
}
response = self.client.post(reverse(
'driver:register_create'
), register_data, format='json')
self.assertEqual(response.status_code, status.HTTP_201_CREATED)
self.assertEqual(response.data.get('is_Loaded'), False)
self.assertEqual(Register.objects.count(), 1)
register_data['is_Loaded'] = True
response = self.client.put(reverse(
'driver:register_update_retrieve_delete',
kwargs={'pk': Register.objects.last().id}
), register_data, format='json')
self.assertEqual(response.status_code, status.HTTP_200_OK)
self.assertEqual(response.data.get('is_Loaded'), True)
self.assertEqual(Register.objects.count(), 1)
def test_register_retrieve(self):
data = self.data.copy()
truck_data = self.truck_data.copy()
response = self.client.post(reverse(
'driver:driver_create'), data,
format='json')
self.assertEqual(response.status_code, status.HTTP_201_CREATED)
self.assertEqual(Driver.objects.count(), 1)
response = self.client.post(reverse(
'truck:truck_create'), truck_data, format='json')
self.assertEqual(response.status_code, status.HTTP_201_CREATED)
self.assertEqual(Truck.objects.count(), 1)
register_data = {
'driver': Driver.objects.last().id,
'truck': Truck.objects.last().id,
'is_Loaded': False,
}
response = self.client.post(reverse(
'driver:register_create'
), register_data, format='json')
self.assertEqual(response.status_code, status.HTTP_201_CREATED)
self.assertEqual(Register.objects.count(), 1)
response = self.client.get(reverse(
'driver:register_update_retrieve_delete',
kwargs={'pk': Register.objects.last().id}
), register_data, format='json')
self.assertEqual(response.status_code, status.HTTP_200_OK)
self.assertEqual(response.data.get('is_Loaded'), False)
self.assertEqual(Register.objects.count(), 1)
def test_register_delete(self):
data = self.data.copy()
truck_data = self.truck_data.copy()
response = self.client.post(reverse(
'driver:driver_create'), data,
format='json')
self.assertEqual(response.status_code, status.HTTP_201_CREATED)
self.assertEqual(Driver.objects.count(), 1)
response = self.client.post(reverse(
'truck:truck_create'), truck_data, format='json')
self.assertEqual(response.status_code, status.HTTP_201_CREATED)
self.assertEqual(Truck.objects.count(), 1)
register_data = {
'driver': Driver.objects.last().id,
'truck': Truck.objects.last().id,
'is_Loaded': False,
}
response = self.client.post(reverse(
'driver:register_create'
), register_data, format='json')
self.assertEqual(response.status_code, status.HTTP_201_CREATED)
self.assertEqual(Register.objects.count(), 1)
response = self.client.delete(reverse(
'driver:register_update_retrieve_delete',
kwargs={'pk': Register.objects.last().id}
), format='json')
self.assertEqual(response.status_code, status.HTTP_204_NO_CONTENT)
self.assertEqual(Register.objects.count(), 0)
def test_register_list(self):
data = self.data.copy()
truck_data = self.truck_data.copy()
response = self.client.post(reverse(
'driver:driver_create'), data,
format='json')
self.assertEqual(response.status_code, status.HTTP_201_CREATED)
self.assertEqual(Driver.objects.count(), 1)
response = self.client.post(reverse(
'truck:truck_create'), truck_data, format='json')
self.assertEqual(response.status_code, status.HTTP_201_CREATED)
self.assertEqual(Truck.objects.count(), 1)
register_data = {
'driver': Driver.objects.last().id,
'truck': Truck.objects.last().id,
'is_Loaded': False,
}
response = self.client.post(reverse(
'driver:register_create'
), register_data, format='json')
self.assertEqual(response.status_code, status.HTTP_201_CREATED)
self.assertEqual(Register.objects.count(), 1)
response = self.client.get(reverse('driver:register_list'), format='json')
self.assertEqual(response.status_code, status.HTTP_200_OK)
self.assertEqual(response.data.get('count'), 1)
self.assertEqual(Register.objects.count(), 1)
response = self.client.delete(reverse(
'driver:register_update_retrieve_delete',
kwargs={'pk': Register.objects.last().id}
), format='json')
self.assertEqual(response.status_code, status.HTTP_204_NO_CONTENT)
self.assertEqual(Register.objects.count(), 0)
response = self.client.get(reverse('driver:register_list'), format='json')
self.assertEqual(response.status_code, status.HTTP_200_OK)
self.assertEqual(response.data.get('count'), 0)
self.assertEqual(Register.objects.count(), 0)
def test_register_loaded_list(self):
data = self.data.copy()
truck_data = self.truck_data.copy()
response = self.client.post(reverse(
'driver:driver_create'), data,
format='json')
self.assertEqual(response.status_code, status.HTTP_201_CREATED)
self.assertEqual(Driver.objects.count(), 1)
response = self.client.post(reverse(
'truck:truck_create'), truck_data, format='json')
self.assertEqual(response.status_code, status.HTTP_201_CREATED)
self.assertEqual(Truck.objects.count(), 1)
register_data = {
'driver': Driver.objects.last().id,
'truck': Truck.objects.last().id,
'is_Loaded': False,
}
response = self.client.post(reverse(
'driver:register_create'
), register_data, format='json')
self.assertEqual(response.status_code, status.HTTP_201_CREATED)
self.assertEqual(Register.objects.count(), 1)
query_data = {
'start_date': dt.date.today().strftime('%d/%m/%Y'),
'end_date': dt.date.today().strftime('%d/%m/%Y')
}
response = self.client.post(reverse(
'driver:register_loaded_list'), query_data,
format='json')
self.assertEqual(response.status_code, status.HTTP_200_OK)
self.assertEqual(response.data.get('count'), 0)
self.assertEqual(Register.objects.count(), 1)
register_data['is_Loaded'] = True
response = self.client.put(reverse(
'driver:register_update_retrieve_delete',
kwargs={'pk': Register.objects.last().id}
), register_data, format='json')
self.assertEqual(response.status_code, status.HTTP_200_OK)
self.assertEqual(response.data.get('is_Loaded'), True)
self.assertEqual(Register.objects.count(), 1)
response = self.client.post(reverse(
'driver:register_loaded_list'), query_data,
format='json')
self.assertEqual(response.status_code, status.HTTP_200_OK)
self.assertEqual(response.data.get('count'), 1)
self.assertEqual(Register.objects.count(), 1)
def test_driver_properly_set(self):
data = self.data.copy()
data['cpf'] = '047.291.801-01'
data['cnh'] = '83967543155'
driver = mommy.make(Driver, **data)
driver.save()
with self.assertRaises(ValidationError):
driver_properly_configured(driver)
def test_create(self):
data = self.data.copy()
data['cpf'] = '047.291.801-01'
response = self.client.post(reverse(
'driver:driver_create'), data,
format='json')
self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST)
self.assertEqual(response.data['cpf'][0].__str__(), 'CPF must be valid.')
self.assertEqual(Driver.objects.count(), 0)
data['cpf'] = '047.291.801-00'
data['cnh'] = '83967543155'
response = self.client.post(reverse(
'driver:driver_create'), data,
format='json')
self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST)
self.assertEqual(response.data['cnh'][0].__str__(), 'CNH must be valid.')
self.assertEqual(Driver.objects.count(), 0)
data['cnh'] = '83967543154'
data['age'] = '17'
response = self.client.post(reverse(
'driver:driver_create'), data,
format='json')
self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST)
self.assertEqual(response.data['age'][0].__str__(),
'Certifque-se de que este valor seja maior ou igual a 18.')
self.assertEqual(Driver.objects.count(), 0)
data['age'] = '18'
response = self.client.post(reverse(
'driver:driver_create'), data,
format='json')
self.assertEqual(response.status_code, status.HTTP_201_CREATED)
self.assertEqual(Driver.objects.count(), 1)
def test_update(self):
data = self.data.copy()
response = self.client.post(reverse(
'driver:driver_create'), data,
format='json')
self.assertEqual(response.status_code, status.HTTP_201_CREATED)
self.assertEqual(Driver.objects.count(), 1)
data['birthday'] = '10/08/1993'
response = self.client.put(reverse(
'driver:driver_update_retrieve_delete',
kwargs={'pk': Driver.objects.last().id}
), data, format='json')
self.assertEqual(response.status_code, status.HTTP_200_OK)
self.assertEqual(response.data.get('birthday'), data['birthday'])
self.assertEqual(Driver.objects.count(), 1)
def test_retrieve(self):
data = self.data.copy()
response = self.client.post(reverse(
'driver:driver_create'), data,
format='json')
self.assertEqual(response.status_code, status.HTTP_201_CREATED)
self.assertEqual(Driver.objects.count(), 1)
response = self.client.get(reverse(
'driver:driver_update_retrieve_delete',
kwargs={'pk': Driver.objects.last().id}
), data, format='json')
self.assertEqual(response.status_code, status.HTTP_200_OK)
self.assertEqual(Driver.objects.count(), 1)
self.assertEqual(response.data.get('full_name'), 'Lukas Ferreira Machado')
self.assertEqual(response.data.get('cpf'), '04729180100')
def test_delete(self):
data = self.data.copy()
response = self.client.post(reverse(
'driver:driver_create'), data,
format='json')
self.assertEqual(response.status_code, status.HTTP_201_CREATED)
self.assertEqual(Driver.objects.count(), 1)
response = self.client.delete(reverse(
'driver:driver_update_retrieve_delete',
kwargs={'pk': Driver.objects.last().id}
), format='json')
self.assertEqual(response.status_code, status.HTTP_204_NO_CONTENT)
self.assertEqual(Driver.objects.count(), 0)
def test_list_has_vehicle(self):
data = self.data.copy()
response = self.client.post(reverse(
'driver:driver_create'), data,
format='json')
self.assertEqual(response.status_code, status.HTTP_201_CREATED)
self.assertEqual(Driver.objects.count(), 1)
response = self.client.get(reverse(
'driver:driver_has_vehicle_list'), data, format='json')
self.assertEqual(response.status_code, status.HTTP_200_OK)
self.assertEqual(response.data.get('count'), 1)
data['has_vehicle'] = False
response = self.client.put(reverse(
'driver:driver_update_retrieve_delete',
kwargs={'pk': Driver.objects.last().id}
), data, format='json')
self.assertEqual(response.status_code, status.HTTP_200_OK)
self.assertEqual(response.data.get('has_vehicle'), False)
self.assertEqual(Driver.objects.count(), 1)
response = self.client.get(reverse(
'driver:driver_has_vehicle_list'), data, format='json')
self.assertEqual(response.status_code, status.HTTP_200_OK)
self.assertEqual(response.data.get('count'), 0)
def test_list_unloaded(self):
data = self.data.copy()
truck_data = self.truck_data.copy()
response = self.client.post(reverse(
'driver:driver_create'), data,
format='json')
self.assertEqual(response.status_code, status.HTTP_201_CREATED)
self.assertEqual(Driver.objects.count(), 1)
response = self.client.post(reverse(
'truck:truck_create'), truck_data, format='json')
self.assertEqual(response.status_code, status.HTTP_201_CREATED)
self.assertEqual(Truck.objects.count(), 1)
register_data = {
'driver': Driver.objects.last().id,
'truck': Truck.objects.last().id,
'is_Loaded': False,
}
response = self.client.post(reverse(
'driver:register_create'
), register_data, format='json')
self.assertEqual(response.status_code, status.HTTP_201_CREATED)
self.assertEqual(Register.objects.count(), 1)
response = self.client.get(reverse(
'driver:driver_active_unloaded_list'), format='json')
self.assertEqual(response.status_code, status.HTTP_200_OK)
self.assertEqual(response.data.get('count'), 1)
register_data['is_Loaded'] = True
response = self.client.put(reverse(
'driver:register_update_retrieve_delete',
kwargs={'pk': Register.objects.last().id}
), register_data, format='json')
self.assertEqual(response.status_code, status.HTTP_200_OK)
self.assertEqual(Register.objects.count(), 1)
response = self.client.get(reverse(
'driver:driver_active_unloaded_list'), format='json')
self.assertEqual(response.status_code, status.HTTP_200_OK)
self.assertEqual(response.data.get('count'), 0)
def test_list(self):
data = self.data.copy()
response = self.client.post(reverse(
'driver:driver_create'), data,
format='json')
self.assertEqual(response.status_code, status.HTTP_201_CREATED)
self.assertEqual(Driver.objects.count(), 1)
response = self.client.get(reverse('driver:driver_list'), format='json')
self.assertEqual(response.status_code, status.HTTP_200_OK)
self.assertEqual(response.data.get('count'), 1)
response = self.client.delete(reverse(
'driver:driver_update_retrieve_delete',
kwargs={'pk': Driver.objects.last().id}
), format='json')
self.assertEqual(response.status_code, status.HTTP_204_NO_CONTENT)
self.assertEqual(Driver.objects.count(), 0)
response = self.client.get(reverse('driver:driver_list'), format='json')
self.assertEqual(response.status_code, status.HTTP_200_OK)
self.assertEqual(response.data.get('count'), 0)
| 34.493282
| 84
| 0.628958
| 2,036
| 17,971
| 5.375246
| 0.064342
| 0.160362
| 0.151316
| 0.116502
| 0.921327
| 0.907164
| 0.900676
| 0.897204
| 0.887427
| 0.880482
| 0
| 0.025355
| 0.240666
| 17,971
| 520
| 85
| 34.559615
| 0.776638
| 0.00128
| 0
| 0.829333
| 0
| 0
| 0.12454
| 0.041458
| 0
| 0
| 0
| 0
| 0.314667
| 1
| 0.037333
| false
| 0
| 0.024
| 0
| 0.069333
| 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
|
1d2e4f7ae87acc1e21060e5f15042de03c21dcee
| 8,261
|
py
|
Python
|
resources/dot_PyCharm/system/python_stubs/-762174762/PySide/QtGui/QStandardItem.py
|
basepipe/developer_onboarding
|
05b6a776f8974c89517868131b201f11c6c2a5ad
|
[
"MIT"
] | 1
|
2020-04-20T02:27:20.000Z
|
2020-04-20T02:27:20.000Z
|
resources/dot_PyCharm/system/python_stubs/cache/8cdc475d469a13122bc4bc6c3ac1c215d93d5f120f5cc1ef33a8f3088ee54d8e/PySide/QtGui/QStandardItem.py
|
basepipe/developer_onboarding
|
05b6a776f8974c89517868131b201f11c6c2a5ad
|
[
"MIT"
] | null | null | null |
resources/dot_PyCharm/system/python_stubs/cache/8cdc475d469a13122bc4bc6c3ac1c215d93d5f120f5cc1ef33a8f3088ee54d8e/PySide/QtGui/QStandardItem.py
|
basepipe/developer_onboarding
|
05b6a776f8974c89517868131b201f11c6c2a5ad
|
[
"MIT"
] | null | null | null |
# encoding: utf-8
# module PySide.QtGui
# from C:\Python27\lib\site-packages\PySide\QtGui.pyd
# by generator 1.147
# no doc
# imports
import PySide.QtCore as __PySide_QtCore
import Shiboken as __Shiboken
class QStandardItem(__Shiboken.Object):
# no doc
def accessibleDescription(self, *args, **kwargs): # real signature unknown
pass
def accessibleText(self, *args, **kwargs): # real signature unknown
pass
def appendColumn(self, *args, **kwargs): # real signature unknown
pass
def appendRow(self, *args, **kwargs): # real signature unknown
pass
def appendRows(self, *args, **kwargs): # real signature unknown
pass
def background(self, *args, **kwargs): # real signature unknown
pass
def checkState(self, *args, **kwargs): # real signature unknown
pass
def child(self, *args, **kwargs): # real signature unknown
pass
def clone(self, *args, **kwargs): # real signature unknown
pass
def column(self, *args, **kwargs): # real signature unknown
pass
def columnCount(self, *args, **kwargs): # real signature unknown
pass
def data(self, *args, **kwargs): # real signature unknown
pass
def emitDataChanged(self, *args, **kwargs): # real signature unknown
pass
def flags(self, *args, **kwargs): # real signature unknown
pass
def font(self, *args, **kwargs): # real signature unknown
pass
def foreground(self, *args, **kwargs): # real signature unknown
pass
def hasChildren(self, *args, **kwargs): # real signature unknown
pass
def icon(self, *args, **kwargs): # real signature unknown
pass
def index(self, *args, **kwargs): # real signature unknown
pass
def insertColumn(self, *args, **kwargs): # real signature unknown
pass
def insertColumns(self, *args, **kwargs): # real signature unknown
pass
def insertRow(self, *args, **kwargs): # real signature unknown
pass
def insertRows(self, *args, **kwargs): # real signature unknown
pass
def isCheckable(self, *args, **kwargs): # real signature unknown
pass
def isDragEnabled(self, *args, **kwargs): # real signature unknown
pass
def isDropEnabled(self, *args, **kwargs): # real signature unknown
pass
def isEditable(self, *args, **kwargs): # real signature unknown
pass
def isEnabled(self, *args, **kwargs): # real signature unknown
pass
def isSelectable(self, *args, **kwargs): # real signature unknown
pass
def isTristate(self, *args, **kwargs): # real signature unknown
pass
def model(self, *args, **kwargs): # real signature unknown
pass
def parent(self, *args, **kwargs): # real signature unknown
pass
def read(self, *args, **kwargs): # real signature unknown
pass
def removeColumn(self, *args, **kwargs): # real signature unknown
pass
def removeColumns(self, *args, **kwargs): # real signature unknown
pass
def removeRow(self, *args, **kwargs): # real signature unknown
pass
def removeRows(self, *args, **kwargs): # real signature unknown
pass
def row(self, *args, **kwargs): # real signature unknown
pass
def rowCount(self, *args, **kwargs): # real signature unknown
pass
def setAccessibleDescription(self, *args, **kwargs): # real signature unknown
pass
def setAccessibleText(self, *args, **kwargs): # real signature unknown
pass
def setBackground(self, *args, **kwargs): # real signature unknown
pass
def setCheckable(self, *args, **kwargs): # real signature unknown
pass
def setCheckState(self, *args, **kwargs): # real signature unknown
pass
def setChild(self, *args, **kwargs): # real signature unknown
pass
def setColumnCount(self, *args, **kwargs): # real signature unknown
pass
def setData(self, *args, **kwargs): # real signature unknown
pass
def setDragEnabled(self, *args, **kwargs): # real signature unknown
pass
def setDropEnabled(self, *args, **kwargs): # real signature unknown
pass
def setEditable(self, *args, **kwargs): # real signature unknown
pass
def setEnabled(self, *args, **kwargs): # real signature unknown
pass
def setFlags(self, *args, **kwargs): # real signature unknown
pass
def setFont(self, *args, **kwargs): # real signature unknown
pass
def setForeground(self, *args, **kwargs): # real signature unknown
pass
def setIcon(self, *args, **kwargs): # real signature unknown
pass
def setRowCount(self, *args, **kwargs): # real signature unknown
pass
def setSelectable(self, *args, **kwargs): # real signature unknown
pass
def setSizeHint(self, *args, **kwargs): # real signature unknown
pass
def setStatusTip(self, *args, **kwargs): # real signature unknown
pass
def setText(self, *args, **kwargs): # real signature unknown
pass
def setTextAlignment(self, *args, **kwargs): # real signature unknown
pass
def setToolTip(self, *args, **kwargs): # real signature unknown
pass
def setTristate(self, *args, **kwargs): # real signature unknown
pass
def setWhatsThis(self, *args, **kwargs): # real signature unknown
pass
def sizeHint(self, *args, **kwargs): # real signature unknown
pass
def sortChildren(self, *args, **kwargs): # real signature unknown
pass
def statusTip(self, *args, **kwargs): # real signature unknown
pass
def takeChild(self, *args, **kwargs): # real signature unknown
pass
def takeColumn(self, *args, **kwargs): # real signature unknown
pass
def takeRow(self, *args, **kwargs): # real signature unknown
pass
def text(self, *args, **kwargs): # real signature unknown
pass
def textAlignment(self, *args, **kwargs): # real signature unknown
pass
def toolTip(self, *args, **kwargs): # real signature unknown
pass
def type(self, *args, **kwargs): # real signature unknown
pass
def whatsThis(self, *args, **kwargs): # real signature unknown
pass
def write(self, *args, **kwargs): # real signature unknown
pass
def __eq__(self, y): # real signature unknown; restored from __doc__
""" x.__eq__(y) <==> x==y """
pass
def __ge__(self, y): # real signature unknown; restored from __doc__
""" x.__ge__(y) <==> x>=y """
pass
def __gt__(self, y): # real signature unknown; restored from __doc__
""" x.__gt__(y) <==> x>y """
pass
def __init__(self, *args, **kwargs): # real signature unknown
pass
def __le__(self, y): # real signature unknown; restored from __doc__
""" x.__le__(y) <==> x<=y """
pass
def __lshift__(self, y): # real signature unknown; restored from __doc__
""" x.__lshift__(y) <==> x<<y """
pass
def __lt__(self, y): # real signature unknown; restored from __doc__
""" x.__lt__(y) <==> x<y """
pass
@staticmethod # known case of __new__
def __new__(S, *more): # real signature unknown; restored from __doc__
""" T.__new__(S, ...) -> a new object with type S, a subtype of T """
pass
def __ne__(self, y): # real signature unknown; restored from __doc__
""" x.__ne__(y) <==> x!=y """
pass
def __rlshift__(self, y): # real signature unknown; restored from __doc__
""" x.__rlshift__(y) <==> y<<x """
pass
def __rrshift__(self, y): # real signature unknown; restored from __doc__
""" x.__rrshift__(y) <==> y>>x """
pass
def __rshift__(self, y): # real signature unknown; restored from __doc__
""" x.__rshift__(y) <==> x>>y """
pass
ItemType = None # (!) real value is "<type 'PySide.QtGui.QStandardItem.ItemType'>"
Type = PySide.QtGui.QStandardItem.ItemType.Type
UserType = PySide.QtGui.QStandardItem.ItemType.UserType
| 28.00339
| 86
| 0.617117
| 942
| 8,261
| 5.255839
| 0.149682
| 0.231064
| 0.355484
| 0.279943
| 0.759039
| 0.74288
| 0.720461
| 0.720461
| 0.082812
| 0
| 0
| 0.001153
| 0.26498
| 8,261
| 294
| 87
| 28.098639
| 0.814229
| 0.339184
| 0
| 0.480874
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.480874
| false
| 0.480874
| 0.010929
| 0
| 0.513661
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 1
| 0
|
0
| 9
|
1d868a1efd38b2a3687dea748d42d5dde5a68b08
| 34
|
py
|
Python
|
src/llv/__init__.py
|
think-biq/LLV
|
ad6411255c0efc38fea9b22a86906a31cf5e9296
|
[
"BSD-2-Clause"
] | 20
|
2021-03-10T13:24:24.000Z
|
2022-03-23T08:17:29.000Z
|
src/llv/__init__.py
|
think-biq/LLV
|
ad6411255c0efc38fea9b22a86906a31cf5e9296
|
[
"BSD-2-Clause"
] | 2
|
2021-09-01T01:46:29.000Z
|
2021-09-27T07:57:31.000Z
|
src/llv/__init__.py
|
think-biq/LLV
|
ad6411255c0efc38fea9b22a86906a31cf5e9296
|
[
"BSD-2-Clause"
] | 6
|
2021-07-15T06:34:16.000Z
|
2022-03-15T07:40:43.000Z
|
def version():
return "1.4.0"
| 11.333333
| 18
| 0.558824
| 6
| 34
| 3.166667
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.115385
| 0.235294
| 34
| 3
| 18
| 11.333333
| 0.615385
| 0
| 0
| 0
| 0
| 0
| 0.147059
| 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
|
1da48c2ee0c0b93d91e519e2245455ae936bd727
| 11,239
|
py
|
Python
|
app/main/views.py
|
ttlttl/fang
|
54db92126e69960636469a6b002f6e6cb4330d12
|
[
"Apache-2.0"
] | 1
|
2018-06-13T07:10:04.000Z
|
2018-06-13T07:10:04.000Z
|
app/main/views.py
|
ttlttl/fang
|
54db92126e69960636469a6b002f6e6cb4330d12
|
[
"Apache-2.0"
] | null | null | null |
app/main/views.py
|
ttlttl/fang
|
54db92126e69960636469a6b002f6e6cb4330d12
|
[
"Apache-2.0"
] | null | null | null |
# -*- coding=UTF-8 -*-
from flask import render_template, request, redirect, url_for
from . import main
from ..models import House, District, Area, Community
import re
# total price range
a_range = ((0, 10000), (0, 101), (101, 150), (151, 201), (201, 301), \
(301, 501), (501, 1001), (1001, 10000))
# total area range
c_range = ((0, 10000), (0, 51), (51, 71), (71, 91), (91, 111), (111, 131), \
(131, 151), (151, 201), (201, 301), (301, 10000))
@main.route('/', methods=['GET'])
def index():
return redirect(url_for('main.esf'))
@main.route('/detail/<int:id>')
def detail(id):
post = House.query.get_or_404(id)
images = post.images
return render_template('detail.html', post=post, images=images)
@main.route('/xf/')
def xf():
return redirect(url_for('.xf_with_location_and_args', location='all', args='a0-b0-c0'))
@main.route('/xf/<location>')
def xf_redirect_with_location(location):
return redirect(url_for(".xf_with_location_and_args", location=location, args="a0-b0-c0"))
@main.route('/xf/<location>/<args>')
def xf_with_location_and_args(location, args):
# args, eg: a1-b3-c2, price in range(0, 101), 3 shi, area in range(51-71)
if not re.match(r'a[0-9]-b[0-9]-c[0-9]', args):
arg_a, arg_b, arg_c = "a0", "b0", "c0"
else:
arg_a, arg_b, arg_c = args.split("-")
num_a, num_b, num_c = int(arg_a[1:]), int(arg_b[1:]), int(arg_c[1:])
if num_a >= len(a_range):
num_a = 0
if num_b > 7:
num_b = 0
if num_c >= len(c_range):
num_c = 0
page = request.args.get('page', 1, type=int)
selected_district = "all"
selected_area = None
selected_location = "all"
areas = None
# all
if location == "all":
if num_b == 0:
pagination = House.query.filter(House.is_new==True,
House.total_price.between(*a_range[num_a]),
House.total_area.between(*c_range[num_c])) \
.paginate(page, per_page=10, error_out=False)
else:
pagination = House.query.filter(House.is_new==True,
House.total_price.between(*a_range[num_a]),
House.shi == num_b,
House.total_area.between(*c_range[num_c]))\
.paginate(page, per_page=10, error_out=False)
selected_location = "all"
# eg: changningqu-beixinjing
elif "-" in location:
selected_district, selected_area = location.split("-")
if num_b == 0:
pagination = House.query.filter(House.is_new==True,
House.total_price.between(*a_range[num_a]),
House.total_area.between(*c_range[num_c]),
House.community_id==Community.id).\
filter(Community.area_id==Area.id).\
filter(Area.en_name==selected_area).\
paginate(page, per_page=10, error_out=False)
else:
pagination = House.query.filter(House.is_new==True,
House.total_price.between(*a_range[num_a]),
House.shi == num_b,
House.total_area.between(*c_range[num_c]),
House.community_id==Community.id).\
filter(Community.area_id == Area.id).\
filter(Area.en_name == selected_area).\
paginate(page, per_page=10, error_out=False)
selected_location = "%s-%s" % (selected_district, selected_area)
areas = District.query.filter_by(en_name=selected_district).first().areas.all()
# eg: changningqu
else:
selected_district = location
if num_b == 0:
pagination = House.query.filter(House.is_new == True,
House.total_price.between(*a_range[num_a]),
House.total_area.between(*c_range[num_c]),\
House.community_id==Community.id).\
filter(Community.area_id==Area.id).\
filter(Area.district_id==District.id).\
filter(District.en_name==selected_district).\
paginate(page, per_page=10, error_out=False)
else:
pagination = House.query.filter(House.is_new == True,
House.total_price.between(*a_range[num_a]),
House.shi == num_b,
House.total_area.between(*c_range[num_c]),\
House.community_id == Community.id).\
filter(Community.area_id == Area.id).\
filter(Area.district_id == District.id).\
filter(District.en_name == selected_district).\
paginate(page, per_page=10, error_out=False)
selected_location = location
areas = District.query.filter_by(en_name=selected_district).first().areas.all()
posts = pagination.items
districts = District.query.all()
return render_template('xf.html', districts=districts, areas=areas, posts=posts, \
pagination=pagination, a=arg_a, b=arg_b, c=arg_c, \
selected_location = selected_location, \
selected_district=selected_district, selected_area=selected_area,\
current_page='xf')
@main.route('/esf/')
def esf():
return redirect(url_for('.esf_with_location_and_args', location='all', args='a0-b0-c0'))
@main.route('/esf/<location>')
def redirect_with_location(location):
return redirect(url_for(".esf_with_location_and_args", location=location, args="a0-b0-c0"))
@main.route('/esf/<location>/<args>')
def esf_with_location_and_args(location, args):
# args, eg: a1-b3-c2, price in range(0, 101), 3 shi, area in range(51-71)
if not re.match(r'a[0-9]-b[0-9]-c[0-9]', args):
arg_a, arg_b, arg_c = "a0", "b0", "c0"
else:
arg_a, arg_b, arg_c = args.split("-")
num_a, num_b, num_c = int(arg_a[1:]), int(arg_b[1:]), int(arg_c[1:])
if num_a >= len(a_range):
num_a = 0
if num_b > 7:
num_b = 0
if num_c >= len(c_range):
num_c = 0
page = request.args.get('page', 1, type=int)
selected_district = "all"
selected_area = None
selected_location = "all"
areas = None
# all
if location == "all":
if num_b == 0:
pagination = House.query.filter(House.is_new==False,
House.total_price.between(*a_range[num_a]),
House.total_area.between(*c_range[num_c])) \
.paginate(page, per_page=10, error_out=False)
else:
pagination = House.query.filter(House.is_new==False,
House.total_price.between(*a_range[num_a]),
House.shi == num_b,
House.total_area.between(*c_range[num_c]))\
.paginate(page, per_page=10, error_out=False)
selected_location = "all"
# eg: changningqu-beixinjing
elif "-" in location:
selected_district, selected_area = location.split("-")
if num_b == 0:
pagination = House.query.filter(House.is_new==False,
House.total_price.between(*a_range[num_a]),
House.total_area.between(*c_range[num_c]),
House.community_id==Community.id).\
filter(Community.area_id==Area.id).\
filter(Area.en_name==selected_area).\
paginate(page, per_page=10, error_out=False)
else:
pagination = House.query.filter(House.is_new==False,
House.total_price.between(*a_range[num_a]),
House.shi == num_b,
House.total_area.between(*c_range[num_c]),
House.community_id==Community.id).\
filter(Community.area_id == Area.id).\
filter(Area.en_name == selected_area).\
paginate(page, per_page=10, error_out=False)
selected_location = "%s-%s" % (selected_district, selected_area)
areas = District.query.filter_by(en_name=selected_district).first().areas.all()
# eg: changningqu
else:
selected_district = location
if num_b == 0:
pagination = House.query.filter(House.is_new == False,
House.total_price.between(*a_range[num_a]),
House.total_area.between(*c_range[num_c]),\
House.community_id==Community.id).\
filter(Community.area_id==Area.id).\
filter(Area.district_id==District.id).\
filter(District.en_name==selected_district).\
paginate(page, per_page=10, error_out=False)
else:
pagination = House.query.filter(House.is_new == False,
House.total_price.between(*a_range[num_a]),
House.shi == num_b,
House.total_area.between(*c_range[num_c]),\
House.community_id == Community.id).\
filter(Community.area_id == Area.id).\
filter(Area.district_id == District.id).\
filter(District.en_name == selected_district).\
paginate(page, per_page=10, error_out=False)
selected_location = location
areas = District.query.filter_by(en_name=selected_district).first().areas.all()
posts = pagination.items
districts = District.query.all()
return render_template('esf.html', districts=districts, areas=areas, posts=posts, \
pagination=pagination, a=arg_a, b=arg_b, c=arg_c, \
selected_location = selected_location, \
selected_district=selected_district, selected_area=selected_area,
current_page='esf')
| 48.865217
| 99
| 0.500756
| 1,254
| 11,239
| 4.254386
| 0.089314
| 0.041987
| 0.023618
| 0.026242
| 0.910028
| 0.904405
| 0.903468
| 0.903468
| 0.885098
| 0.885098
| 0
| 0.029825
| 0.379482
| 11,239
| 229
| 100
| 49.078603
| 0.735159
| 0.02607
| 0
| 0.802083
| 0
| 0
| 0.035126
| 0.01363
| 0
| 0
| 0
| 0
| 0
| 1
| 0.041667
| false
| 0
| 0.020833
| 0.026042
| 0.104167
| 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
|
633725092dcb490287a11311561f7eab7309f606
| 1,897
|
py
|
Python
|
core/migrations/0003_auto_20210527_1304.py
|
tanyutao544/digitalace-backend
|
3607b1325856eafa4e1c96d6189f7aed1b163a19
|
[
"MIT"
] | 1
|
2021-05-28T05:22:54.000Z
|
2021-05-28T05:22:54.000Z
|
core/migrations/0003_auto_20210527_1304.py
|
tanyutao544/digitalace-backend
|
3607b1325856eafa4e1c96d6189f7aed1b163a19
|
[
"MIT"
] | 3
|
2021-05-31T15:44:14.000Z
|
2021-06-29T07:48:13.000Z
|
core/migrations/0003_auto_20210527_1304.py
|
tanyutao544/digitalace-backend
|
3607b1325856eafa4e1c96d6189f7aed1b163a19
|
[
"MIT"
] | 1
|
2021-05-30T07:42:54.000Z
|
2021-05-30T07:42:54.000Z
|
# Generated by Django 3.2.3 on 2021-05-27 13:04
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0002_company'),
]
operations = [
migrations.AddField(
model_name='user',
name='date_of_birth',
field=models.DateField(max_length=255, null=True),
),
migrations.AddField(
model_name='user',
name='date_of_cessation',
field=models.DateField(max_length=255, null=True),
),
migrations.AddField(
model_name='user',
name='date_of_commencement',
field=models.DateField(max_length=255, null=True),
),
migrations.AddField(
model_name='user',
name='first_name',
field=models.CharField(blank=True, max_length=255),
),
migrations.AddField(
model_name='user',
name='gender',
field=models.CharField(blank=True, max_length=255),
),
migrations.AddField(
model_name='user',
name='ic_no',
field=models.CharField(blank=True, max_length=255),
),
migrations.AddField(
model_name='user',
name='last_name',
field=models.CharField(blank=True, max_length=255),
),
migrations.AddField(
model_name='user',
name='nationality',
field=models.CharField(blank=True, max_length=255),
),
migrations.AddField(
model_name='user',
name='postal_code',
field=models.CharField(blank=True, max_length=255),
),
migrations.AddField(
model_name='user',
name='residential_address',
field=models.CharField(blank=True, max_length=255),
),
]
| 29.640625
| 63
| 0.546653
| 188
| 1,897
| 5.345745
| 0.271277
| 0.179104
| 0.228856
| 0.268657
| 0.779104
| 0.779104
| 0.779104
| 0.779104
| 0.697512
| 0.697512
| 0
| 0.038797
| 0.334212
| 1,897
| 63
| 64
| 30.111111
| 0.756928
| 0.023722
| 0
| 0.701754
| 1
| 0
| 0.095676
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.017544
| 0
| 0.070175
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 1
| 1
| 1
| 0
| 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
|
635a5c0b15184f8ebb7c8994ee1580e1ee1232b2
| 12,470
|
py
|
Python
|
tests/plugins/product/sync/test_media.py
|
maxipavlovic/connect-cli
|
73989c076c6fb5b4562c61a351448b1c77556676
|
[
"Apache-2.0"
] | 12
|
2020-10-10T10:53:16.000Z
|
2022-02-16T10:15:56.000Z
|
tests/plugins/product/sync/test_media.py
|
maxipavlovic/connect-cli
|
73989c076c6fb5b4562c61a351448b1c77556676
|
[
"Apache-2.0"
] | 37
|
2020-09-28T12:00:52.000Z
|
2021-12-20T12:38:25.000Z
|
tests/plugins/product/sync/test_media.py
|
maxipavlovic/connect-cli
|
73989c076c6fb5b4562c61a351448b1c77556676
|
[
"Apache-2.0"
] | 11
|
2020-11-04T18:17:01.000Z
|
2022-02-23T08:18:07.000Z
|
import pytest
from connect.cli.plugins.product.sync.media import MediaSynchronizer
from connect.client import ConnectClient
def test_no_action(get_sync_media_env):
synchronizer = MediaSynchronizer(
client=ConnectClient(
use_specs=False,
api_key='ApiKey SU:123',
endpoint='https://localhost/public/v1',
),
silent=True,
)
synchronizer.open('./tests/fixtures/media_sync.xlsx', 'Media')
skipped, created, updated, deleted, errors = synchronizer.sync()
assert skipped == 1
assert created == 0
assert updated == 0
assert deleted == 0
assert errors == {}
def test_validate_no_position(fs, get_sync_media_env):
get_sync_media_env['Media']['A2'] = None
get_sync_media_env['Media']['C2'] = 'create'
get_sync_media_env.save(f'{fs.root_path}/test.xlsx')
synchronizer = MediaSynchronizer(
client=ConnectClient(
use_specs=False,
api_key='ApiKey SU:123',
endpoint='https://localhost/public/v1',
),
silent=True,
)
synchronizer.open(f'{fs.root_path}/test.xlsx', 'Media')
skipped, created, updated, deleted, errors = synchronizer.sync()
assert skipped == 0
assert created == 0
assert updated == 0
assert deleted == 0
assert errors == {2: ['Position is required and must be an integer between 1 and 8']}
def test_validate_no_valid_id(fs, get_sync_media_env):
get_sync_media_env['Media']['C2'] = 'update'
get_sync_media_env['Media']['B2'] = 'wrong'
get_sync_media_env.save(f'{fs.root_path}/test.xlsx')
synchronizer = MediaSynchronizer(
client=ConnectClient(
use_specs=False,
api_key='ApiKey SU:123',
endpoint='https://localhost/public/v1',
),
silent=True,
)
synchronizer.open(f'{fs.root_path}/test.xlsx', 'Media')
skipped, created, updated, deleted, errors = synchronizer.sync()
assert skipped == 0
assert created == 0
assert updated == 0
assert deleted == 0
assert errors == {2: ['ID does not seam to be valid.']}
def test_validate_no_image_file(fs, get_sync_media_env):
get_sync_media_env['Media']['C2'] = 'update'
get_sync_media_env['Media']['E2'] = None
get_sync_media_env.save(f'{fs.root_path}/test.xlsx')
synchronizer = MediaSynchronizer(
client=ConnectClient(
use_specs=False,
api_key='ApiKey SU:123',
endpoint='https://localhost/public/v1',
),
silent=True,
)
synchronizer.open(f'{fs.root_path}/test.xlsx', 'Media')
skipped, created, updated, deleted, errors = synchronizer.sync()
assert skipped == 0
assert created == 0
assert updated == 0
assert deleted == 0
assert errors == {2: ['Image file is required']}
def test_validate_wrong_action(fs, get_sync_media_env):
get_sync_media_env['Media']['C2'] = 'XYZ'
get_sync_media_env.save(f'{fs.root_path}/test.xlsx')
synchronizer = MediaSynchronizer(
client=ConnectClient(
use_specs=False,
api_key='ApiKey SU:123',
endpoint='https://localhost/public/v1',
),
silent=True,
)
synchronizer.open(f'{fs.root_path}/test.xlsx', 'Media')
skipped, created, updated, deleted, errors = synchronizer.sync()
assert skipped == 0
assert created == 0
assert updated == 0
assert deleted == 0
assert errors == {
2: ['Supported actions are `-`, `create`, `update` or `delete`. Provided XYZ'],
}
def test_validate_wrong_type(fs, get_sync_media_env):
get_sync_media_env['Media']['C2'] = 'create'
get_sync_media_env['Media']['D2'] = 'wrong'
get_sync_media_env.save(f'{fs.root_path}/test.xlsx')
synchronizer = MediaSynchronizer(
client=ConnectClient(
use_specs=False,
api_key='ApiKey SU:123',
endpoint='https://localhost/public/v1',
),
silent=True,
)
synchronizer.open(f'{fs.root_path}/test.xlsx', 'Media')
skipped, created, updated, deleted, errors = synchronizer.sync()
assert skipped == 0
assert created == 0
assert updated == 0
assert deleted == 0
assert errors == {
2: ['Media can be either image or video type, provided wrong'],
}
def test_validate_wrong_file(fs, get_sync_media_env):
get_sync_media_env['Media']['C2'] = 'create'
get_sync_media_env['Media']['E2'] = 'wrong.png'
get_sync_media_env.save(f'{fs.root_path}/test.xlsx')
synchronizer = MediaSynchronizer(
client=ConnectClient(
use_specs=False,
api_key='ApiKey SU:123',
endpoint='https://localhost/public/v1',
),
silent=True,
)
synchronizer.open(f'{fs.root_path}/test.xlsx', 'Media')
skipped, created, updated, deleted, errors = synchronizer.sync()
assert skipped == 0
assert created == 0
assert updated == 0
assert deleted == 0
assert errors == {
2: ['Image file is not found, please check that file wrong.png exists in media folder'],
}
def test_validate_invalid_no_video_url(fs, get_sync_media_env):
get_sync_media_env['Media']['C2'] = 'create'
get_sync_media_env['Media']['D2'] = 'video'
get_sync_media_env['Media']['E2'] = 'image.png'
get_sync_media_env['Media']['F2'] = None
get_sync_media_env.save(f'{fs.root_path}/test.xlsx')
synchronizer = MediaSynchronizer(
client=ConnectClient(
use_specs=False,
api_key='ApiKey SU:123',
endpoint='https://localhost/public/v1',
),
silent=True,
)
synchronizer.open(f'{fs.root_path}/test.xlsx', 'Media')
skipped, created, updated, deleted, errors = synchronizer.sync()
assert skipped == 0
assert created == 0
assert updated == 0
assert deleted == 0
assert errors == {
2: ['Video URL location is required for video type'],
}
@pytest.mark.parametrize('video_domain', ('goe.com', 'vimeo.comyoutube.com'))
def test_validate_invalid_video_url(fs, get_sync_media_env, video_domain):
get_sync_media_env['Media']['C2'] = 'create'
get_sync_media_env['Media']['D2'] = 'video'
get_sync_media_env['Media']['E2'] = 'image.png'
get_sync_media_env['Media']['F2'] = f'http://{video_domain}/video.mov'
get_sync_media_env.save(f'{fs.root_path}/test.xlsx')
synchronizer = MediaSynchronizer(
client=ConnectClient(
use_specs=False,
api_key='ApiKey SU:123',
endpoint='https://localhost/public/v1',
),
silent=True,
)
synchronizer.open(f'{fs.root_path}/test.xlsx', 'Media')
skipped, created, updated, deleted, errors = synchronizer.sync()
assert skipped == 0
assert created == 0
assert updated == 0
assert deleted == 0
assert errors == {
2: ['Videos can be hosted on youtube or vimeo, please also ensure to provide https url. '
f'Invalid url provided is http://{video_domain}/video.mov'],
}
def test_delete(fs, get_sync_media_env, mocked_responses, mocked_media_response):
get_sync_media_env['Media']['C2'] = 'delete'
get_sync_media_env.save(f'{fs.root_path}/test.xlsx')
synchronizer = MediaSynchronizer(
client=ConnectClient(
use_specs=False,
api_key='ApiKey SU:123',
endpoint='https://localhost/public/v1',
),
silent=True,
)
synchronizer.open(f'{fs.root_path}/test.xlsx', 'Media')
mocked_responses.add(
method='DELETE',
url='https://localhost/public/v1/products/PRD-276-377-545/media/PRDM-276-377-545-67072',
status=204,
)
skipped, created, updated, deleted, errors = synchronizer.sync()
assert skipped == 0
assert created == 0
assert updated == 0
assert deleted == 1
assert errors == {}
def test_delete_404(fs, get_sync_media_env, mocked_responses, mocked_media_response):
get_sync_media_env['Media']['C2'] = 'delete'
get_sync_media_env.save(f'{fs.root_path}/test.xlsx')
synchronizer = MediaSynchronizer(
client=ConnectClient(
use_specs=False,
api_key='ApiKey SU:123',
endpoint='https://localhost/public/v1',
),
silent=True,
)
synchronizer.open(f'{fs.root_path}/test.xlsx', 'Media')
mocked_responses.add(
method='DELETE',
url='https://localhost/public/v1/products/PRD-276-377-545/media/PRDM-276-377-545-67072',
status=404,
)
skipped, created, updated, deleted, errors = synchronizer.sync()
assert skipped == 0
assert created == 0
assert updated == 0
assert deleted == 1
assert errors == {}
def test_delete_500(fs, get_sync_media_env, mocked_responses, mocked_media_response):
get_sync_media_env['Media']['C2'] = 'delete'
get_sync_media_env.save(f'{fs.root_path}/test.xlsx')
synchronizer = MediaSynchronizer(
client=ConnectClient(
use_specs=False,
api_key='ApiKey SU:123',
endpoint='https://localhost/public/v1',
),
silent=True,
)
synchronizer.open(f'{fs.root_path}/test.xlsx', 'Media')
mocked_responses.add(
method='DELETE',
url='https://localhost/public/v1/products/PRD-276-377-545/media/PRDM-276-377-545-67072',
status=500,
)
skipped, created, updated, deleted, errors = synchronizer.sync()
assert skipped == 0
assert created == 0
assert updated == 0
assert deleted == 0
assert errors == {2: ['500 Internal Server Error']}
def test_update_image(fs, get_sync_media_env, mocked_responses, mocked_media_response):
get_sync_media_env['Media']['C2'] = 'update'
get_sync_media_env.save(f'{fs.root_path}/test.xlsx')
synchronizer = MediaSynchronizer(
client=ConnectClient(
use_specs=False,
api_key='ApiKey SU:123',
endpoint='https://localhost/public/v1',
),
silent=True,
)
synchronizer.open(f'{fs.root_path}/test.xlsx', 'Media')
mocked_responses.add(
method='PUT',
url='https://localhost/public/v1/products/PRD-276-377-545/media/PRDM-276-377-545-67072',
json=mocked_media_response[0],
)
skipped, created, updated, deleted, errors = synchronizer.sync()
assert skipped == 0
assert created == 0
assert updated == 1
assert deleted == 0
assert errors == {}
def test_update_image_404(fs, get_sync_media_env, mocked_responses, mocked_media_response):
get_sync_media_env['Media']['C2'] = 'update'
get_sync_media_env.save(f'{fs.root_path}/test.xlsx')
synchronizer = MediaSynchronizer(
client=ConnectClient(
use_specs=False,
api_key='ApiKey SU:123',
endpoint='https://localhost/public/v1',
),
silent=True,
)
synchronizer.open(f'{fs.root_path}/test.xlsx', 'Media')
mocked_responses.add(
method='PUT',
url='https://localhost/public/v1/products/PRD-276-377-545/media/PRDM-276-377-545-67072',
status=404,
)
skipped, created, updated, deleted, errors = synchronizer.sync()
assert skipped == 0
assert created == 0
assert updated == 0
assert deleted == 0
assert errors == {2: ['404 Not Found']}
@pytest.mark.parametrize('domain', ('youtu.be', 'vimeo.com', 'youtube.com'))
def test_create_video(fs, get_sync_media_env, mocked_responses, mocked_media_response, domain):
get_sync_media_env['Media']['C2'] = 'create'
get_sync_media_env['Media']['D2'] = 'video'
get_sync_media_env['Media']['E2'] = 'image.png'
get_sync_media_env['Media']['F2'] = f'https://{domain}/test'
get_sync_media_env.save(f'{fs.root_path}/test.xlsx')
synchronizer = MediaSynchronizer(
client=ConnectClient(
use_specs=False,
api_key='ApiKey SU:123',
endpoint='https://localhost/public/v1',
),
silent=True,
)
synchronizer.open(f'{fs.root_path}/test.xlsx', 'Media')
mocked_responses.add(
method='POST',
url='https://localhost/public/v1/products/PRD-276-377-545/media',
json=mocked_media_response[0],
)
skipped, created, updated, deleted, errors = synchronizer.sync()
assert skipped == 0
assert created == 1
assert updated == 0
assert deleted == 0
assert errors == {}
| 29.341176
| 97
| 0.633039
| 1,558
| 12,470
| 4.870988
| 0.091784
| 0.068784
| 0.09013
| 0.112663
| 0.876005
| 0.869021
| 0.868494
| 0.858875
| 0.853604
| 0.853604
| 0
| 0.033243
| 0.230473
| 12,470
| 424
| 98
| 29.410377
| 0.757607
| 0
| 0
| 0.77439
| 0
| 0.015244
| 0.230152
| 0.056455
| 0
| 0
| 0
| 0
| 0.228659
| 1
| 0.045732
| false
| 0
| 0.009146
| 0
| 0.054878
| 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
|
638daf57358b2ba0240995a096b0b83efdfa179e
| 34,763
|
py
|
Python
|
build/PureCloudPlatformClientV2/apis/alerting_api.py
|
cjohnson-ctl/platform-client-sdk-python
|
38ce53bb8012b66e8a43cc8bd6ff00cf6cc99100
|
[
"MIT"
] | 10
|
2019-02-22T00:27:08.000Z
|
2021-09-12T23:23:44.000Z
|
libs/PureCloudPlatformClientV2/apis/alerting_api.py
|
rocketbot-cl/genesysCloud
|
dd9d9b5ebb90a82bab98c0d88b9585c22c91f333
|
[
"MIT"
] | 5
|
2018-06-07T08:32:00.000Z
|
2021-07-28T17:37:26.000Z
|
libs/PureCloudPlatformClientV2/apis/alerting_api.py
|
rocketbot-cl/genesysCloud
|
dd9d9b5ebb90a82bab98c0d88b9585c22c91f333
|
[
"MIT"
] | 6
|
2020-04-09T17:43:07.000Z
|
2022-02-17T08:48:05.000Z
|
# coding: utf-8
"""
AlertingApi.py
Copyright 2016 SmartBear Software
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
from __future__ import absolute_import
import sys
import os
import re
# python 2 and python 3 compatibility library
from six import iteritems
from ..configuration import Configuration
from ..api_client import ApiClient
class AlertingApi(object):
"""
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
Ref: https://github.com/swagger-api/swagger-codegen
"""
def __init__(self, api_client=None):
config = Configuration()
if api_client:
self.api_client = api_client
else:
if not config.api_client:
config.api_client = ApiClient()
self.api_client = config.api_client
def delete_alerting_interactionstats_alert(self, alert_id, **kwargs):
"""
Delete an interaction stats alert
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.delete_alerting_interactionstats_alert(alert_id, callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param str alert_id: Alert ID (required)
:return: None
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['alert_id']
all_params.append('callback')
params = locals()
for key, val in iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method delete_alerting_interactionstats_alert" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'alert_id' is set
if ('alert_id' not in params) or (params['alert_id'] is None):
raise ValueError("Missing the required parameter `alert_id` when calling `delete_alerting_interactionstats_alert`")
resource_path = '/api/v2/alerting/interactionstats/alerts/{alertId}'.replace('{format}', 'json')
path_params = {}
if 'alert_id' in params:
path_params['alertId'] = params['alert_id']
query_params = {}
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.\
select_header_accept(['application/json'])
if not header_params['Accept']:
del header_params['Accept']
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.\
select_header_content_type(['application/json'])
# Authentication setting
auth_settings = ['PureCloud OAuth']
response = self.api_client.call_api(resource_path, 'DELETE',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type=None,
auth_settings=auth_settings,
callback=params.get('callback'))
return response
def delete_alerting_interactionstats_rule(self, rule_id, **kwargs):
"""
Delete an interaction stats rule.
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.delete_alerting_interactionstats_rule(rule_id, callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param str rule_id: Rule ID (required)
:return: None
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['rule_id']
all_params.append('callback')
params = locals()
for key, val in iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method delete_alerting_interactionstats_rule" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'rule_id' is set
if ('rule_id' not in params) or (params['rule_id'] is None):
raise ValueError("Missing the required parameter `rule_id` when calling `delete_alerting_interactionstats_rule`")
resource_path = '/api/v2/alerting/interactionstats/rules/{ruleId}'.replace('{format}', 'json')
path_params = {}
if 'rule_id' in params:
path_params['ruleId'] = params['rule_id']
query_params = {}
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.\
select_header_accept(['application/json'])
if not header_params['Accept']:
del header_params['Accept']
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.\
select_header_content_type(['application/json'])
# Authentication setting
auth_settings = ['PureCloud OAuth']
response = self.api_client.call_api(resource_path, 'DELETE',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type=None,
auth_settings=auth_settings,
callback=params.get('callback'))
return response
def get_alerting_alerts_active(self, **kwargs):
"""
Gets active alert count for a user.
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.get_alerting_alerts_active(callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:return: ActiveAlertCount
If the method is called asynchronously,
returns the request thread.
"""
all_params = []
all_params.append('callback')
params = locals()
for key, val in iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method get_alerting_alerts_active" % key
)
params[key] = val
del params['kwargs']
resource_path = '/api/v2/alerting/alerts/active'.replace('{format}', 'json')
path_params = {}
query_params = {}
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.\
select_header_accept(['application/json'])
if not header_params['Accept']:
del header_params['Accept']
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.\
select_header_content_type(['application/json'])
# Authentication setting
auth_settings = ['PureCloud OAuth']
response = self.api_client.call_api(resource_path, 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='ActiveAlertCount',
auth_settings=auth_settings,
callback=params.get('callback'))
return response
def get_alerting_interactionstats_alert(self, alert_id, **kwargs):
"""
Get an interaction stats alert
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.get_alerting_interactionstats_alert(alert_id, callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param str alert_id: Alert ID (required)
:param list[str] expand: Which fields, if any, to expand
:return: InteractionStatsAlert
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['alert_id', 'expand']
all_params.append('callback')
params = locals()
for key, val in iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method get_alerting_interactionstats_alert" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'alert_id' is set
if ('alert_id' not in params) or (params['alert_id'] is None):
raise ValueError("Missing the required parameter `alert_id` when calling `get_alerting_interactionstats_alert`")
resource_path = '/api/v2/alerting/interactionstats/alerts/{alertId}'.replace('{format}', 'json')
path_params = {}
if 'alert_id' in params:
path_params['alertId'] = params['alert_id']
query_params = {}
if 'expand' in params:
query_params['expand'] = params['expand']
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.\
select_header_accept(['application/json'])
if not header_params['Accept']:
del header_params['Accept']
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.\
select_header_content_type(['application/json'])
# Authentication setting
auth_settings = ['PureCloud OAuth']
response = self.api_client.call_api(resource_path, 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='InteractionStatsAlert',
auth_settings=auth_settings,
callback=params.get('callback'))
return response
def get_alerting_interactionstats_alerts(self, **kwargs):
"""
Get interaction stats alert list.
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.get_alerting_interactionstats_alerts(callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param list[str] expand: Which fields, if any, to expand
:return: InteractionStatsAlertContainer
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['expand']
all_params.append('callback')
params = locals()
for key, val in iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method get_alerting_interactionstats_alerts" % key
)
params[key] = val
del params['kwargs']
resource_path = '/api/v2/alerting/interactionstats/alerts'.replace('{format}', 'json')
path_params = {}
query_params = {}
if 'expand' in params:
query_params['expand'] = params['expand']
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.\
select_header_accept(['application/json'])
if not header_params['Accept']:
del header_params['Accept']
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.\
select_header_content_type(['application/json'])
# Authentication setting
auth_settings = ['PureCloud OAuth']
response = self.api_client.call_api(resource_path, 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='InteractionStatsAlertContainer',
auth_settings=auth_settings,
callback=params.get('callback'))
return response
def get_alerting_interactionstats_alerts_unread(self, **kwargs):
"""
Gets user unread count of interaction stats alerts.
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.get_alerting_interactionstats_alerts_unread(callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:return: UnreadMetric
If the method is called asynchronously,
returns the request thread.
"""
all_params = []
all_params.append('callback')
params = locals()
for key, val in iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method get_alerting_interactionstats_alerts_unread" % key
)
params[key] = val
del params['kwargs']
resource_path = '/api/v2/alerting/interactionstats/alerts/unread'.replace('{format}', 'json')
path_params = {}
query_params = {}
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.\
select_header_accept(['application/json'])
if not header_params['Accept']:
del header_params['Accept']
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.\
select_header_content_type(['application/json'])
# Authentication setting
auth_settings = ['PureCloud OAuth']
response = self.api_client.call_api(resource_path, 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='UnreadMetric',
auth_settings=auth_settings,
callback=params.get('callback'))
return response
def get_alerting_interactionstats_rule(self, rule_id, **kwargs):
"""
Get an interaction stats rule.
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.get_alerting_interactionstats_rule(rule_id, callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param str rule_id: Rule ID (required)
:param list[str] expand: Which fields, if any, to expand
:return: InteractionStatsRule
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['rule_id', 'expand']
all_params.append('callback')
params = locals()
for key, val in iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method get_alerting_interactionstats_rule" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'rule_id' is set
if ('rule_id' not in params) or (params['rule_id'] is None):
raise ValueError("Missing the required parameter `rule_id` when calling `get_alerting_interactionstats_rule`")
resource_path = '/api/v2/alerting/interactionstats/rules/{ruleId}'.replace('{format}', 'json')
path_params = {}
if 'rule_id' in params:
path_params['ruleId'] = params['rule_id']
query_params = {}
if 'expand' in params:
query_params['expand'] = params['expand']
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.\
select_header_accept(['application/json'])
if not header_params['Accept']:
del header_params['Accept']
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.\
select_header_content_type(['application/json'])
# Authentication setting
auth_settings = ['PureCloud OAuth']
response = self.api_client.call_api(resource_path, 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='InteractionStatsRule',
auth_settings=auth_settings,
callback=params.get('callback'))
return response
def get_alerting_interactionstats_rules(self, **kwargs):
"""
Get an interaction stats rule list.
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.get_alerting_interactionstats_rules(callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param list[str] expand: Which fields, if any, to expand
:return: InteractionStatsRuleContainer
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['expand']
all_params.append('callback')
params = locals()
for key, val in iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method get_alerting_interactionstats_rules" % key
)
params[key] = val
del params['kwargs']
resource_path = '/api/v2/alerting/interactionstats/rules'.replace('{format}', 'json')
path_params = {}
query_params = {}
if 'expand' in params:
query_params['expand'] = params['expand']
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.\
select_header_accept(['application/json'])
if not header_params['Accept']:
del header_params['Accept']
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.\
select_header_content_type(['application/json'])
# Authentication setting
auth_settings = ['PureCloud OAuth']
response = self.api_client.call_api(resource_path, 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='InteractionStatsRuleContainer',
auth_settings=auth_settings,
callback=params.get('callback'))
return response
def post_alerting_interactionstats_rules(self, body, **kwargs):
"""
Create an interaction stats rule.
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.post_alerting_interactionstats_rules(body, callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param InteractionStatsRule body: AlertingRule (required)
:param list[str] expand: Which fields, if any, to expand
:return: InteractionStatsRule
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['body', 'expand']
all_params.append('callback')
params = locals()
for key, val in iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method post_alerting_interactionstats_rules" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'body' is set
if ('body' not in params) or (params['body'] is None):
raise ValueError("Missing the required parameter `body` when calling `post_alerting_interactionstats_rules`")
resource_path = '/api/v2/alerting/interactionstats/rules'.replace('{format}', 'json')
path_params = {}
query_params = {}
if 'expand' in params:
query_params['expand'] = params['expand']
header_params = {}
form_params = []
local_var_files = {}
body_params = None
if 'body' in params:
body_params = params['body']
# HTTP header `Accept`
header_params['Accept'] = self.api_client.\
select_header_accept(['application/json'])
if not header_params['Accept']:
del header_params['Accept']
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.\
select_header_content_type(['application/json'])
# Authentication setting
auth_settings = ['PureCloud OAuth']
response = self.api_client.call_api(resource_path, 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='InteractionStatsRule',
auth_settings=auth_settings,
callback=params.get('callback'))
return response
def put_alerting_interactionstats_alert(self, alert_id, body, **kwargs):
"""
Update an interaction stats alert read status
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.put_alerting_interactionstats_alert(alert_id, body, callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param str alert_id: Alert ID (required)
:param UnreadStatus body: InteractionStatsAlert (required)
:param list[str] expand: Which fields, if any, to expand
:return: UnreadStatus
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['alert_id', 'body', 'expand']
all_params.append('callback')
params = locals()
for key, val in iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method put_alerting_interactionstats_alert" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'alert_id' is set
if ('alert_id' not in params) or (params['alert_id'] is None):
raise ValueError("Missing the required parameter `alert_id` when calling `put_alerting_interactionstats_alert`")
# verify the required parameter 'body' is set
if ('body' not in params) or (params['body'] is None):
raise ValueError("Missing the required parameter `body` when calling `put_alerting_interactionstats_alert`")
resource_path = '/api/v2/alerting/interactionstats/alerts/{alertId}'.replace('{format}', 'json')
path_params = {}
if 'alert_id' in params:
path_params['alertId'] = params['alert_id']
query_params = {}
if 'expand' in params:
query_params['expand'] = params['expand']
header_params = {}
form_params = []
local_var_files = {}
body_params = None
if 'body' in params:
body_params = params['body']
# HTTP header `Accept`
header_params['Accept'] = self.api_client.\
select_header_accept(['application/json'])
if not header_params['Accept']:
del header_params['Accept']
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.\
select_header_content_type(['application/json'])
# Authentication setting
auth_settings = ['PureCloud OAuth']
response = self.api_client.call_api(resource_path, 'PUT',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='UnreadStatus',
auth_settings=auth_settings,
callback=params.get('callback'))
return response
def put_alerting_interactionstats_rule(self, rule_id, body, **kwargs):
"""
Update an interaction stats rule
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.put_alerting_interactionstats_rule(rule_id, body, callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param str rule_id: Rule ID (required)
:param InteractionStatsRule body: AlertingRule (required)
:param list[str] expand: Which fields, if any, to expand
:return: InteractionStatsRule
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['rule_id', 'body', 'expand']
all_params.append('callback')
params = locals()
for key, val in iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method put_alerting_interactionstats_rule" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'rule_id' is set
if ('rule_id' not in params) or (params['rule_id'] is None):
raise ValueError("Missing the required parameter `rule_id` when calling `put_alerting_interactionstats_rule`")
# verify the required parameter 'body' is set
if ('body' not in params) or (params['body'] is None):
raise ValueError("Missing the required parameter `body` when calling `put_alerting_interactionstats_rule`")
resource_path = '/api/v2/alerting/interactionstats/rules/{ruleId}'.replace('{format}', 'json')
path_params = {}
if 'rule_id' in params:
path_params['ruleId'] = params['rule_id']
query_params = {}
if 'expand' in params:
query_params['expand'] = params['expand']
header_params = {}
form_params = []
local_var_files = {}
body_params = None
if 'body' in params:
body_params = params['body']
# HTTP header `Accept`
header_params['Accept'] = self.api_client.\
select_header_accept(['application/json'])
if not header_params['Accept']:
del header_params['Accept']
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.\
select_header_content_type(['application/json'])
# Authentication setting
auth_settings = ['PureCloud OAuth']
response = self.api_client.call_api(resource_path, 'PUT',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='InteractionStatsRule',
auth_settings=auth_settings,
callback=params.get('callback'))
return response
| 37.99235
| 127
| 0.545551
| 3,328
| 34,763
| 5.502704
| 0.064603
| 0.043248
| 0.025556
| 0.022825
| 0.916671
| 0.912084
| 0.903566
| 0.893409
| 0.893409
| 0.893409
| 0
| 0.001009
| 0.37281
| 34,763
| 914
| 128
| 38.033917
| 0.838921
| 0.261658
| 0
| 0.841438
| 0
| 0
| 0.176292
| 0.053764
| 0
| 0
| 0
| 0
| 0
| 1
| 0.02537
| false
| 0
| 0.014799
| 0
| 0.065539
| 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
|
63b233ac9066f87aaabd1e87b90764d25cde5c92
| 764
|
py
|
Python
|
Python_basic_1/ex1.py
|
kagesg/Python_exercises_and_practice
|
ee9e9f1b07053f359dc3df5ac29a8396b6a02566
|
[
"MIT"
] | null | null | null |
Python_basic_1/ex1.py
|
kagesg/Python_exercises_and_practice
|
ee9e9f1b07053f359dc3df5ac29a8396b6a02566
|
[
"MIT"
] | null | null | null |
Python_basic_1/ex1.py
|
kagesg/Python_exercises_and_practice
|
ee9e9f1b07053f359dc3df5ac29a8396b6a02566
|
[
"MIT"
] | null | null | null |
'''
1. Write a Python program to print the following string in a specific format (see the output). Go to the editor
Sample String : "Twinkle, twinkle, little star, How I wonder what you are! Up above the world so high,
Like a diamond in the sky. Twinkle, twinkle, little star, How I wonder what you are"
Output:
Twinkle, twinkle, little star,
How I wonder what you are!
Up above the world so high,
Like a diamond in the sky.
Twinkle, twinkle, little star,
How I wonder what you are
'''
print("Twinkle, twinkle, little star, \n\tHow I wonder what you are! \n\t\tUp above the world so high, \n\t\tLike a diamond in the sky. \nTwinkle, twinkle, little star, \n\tHow I wonder what you are!")
| 44.941176
| 201
| 0.664921
| 127
| 764
| 4
| 0.322835
| 0.153543
| 0.200787
| 0.165354
| 0.730315
| 0.661417
| 0.661417
| 0.661417
| 0.661417
| 0.661417
| 0
| 0.00177
| 0.260471
| 764
| 16
| 202
| 47.75
| 0.897345
| 0.736911
| 0
| 0
| 0
| 1
| 0.936585
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
|
0
| 7
|
8958351452c6d35adccef21e3e0fa755d94118b2
| 5,547
|
py
|
Python
|
course_2_project.py
|
joaovitorle/AnotacoesCoursera2
|
b0b033feca28bf207e5edcaef5667c7e54b7bdb6
|
[
"MIT"
] | null | null | null |
course_2_project.py
|
joaovitorle/AnotacoesCoursera2
|
b0b033feca28bf207e5edcaef5667c7e54b7bdb6
|
[
"MIT"
] | null | null | null |
course_2_project.py
|
joaovitorle/AnotacoesCoursera2
|
b0b033feca28bf207e5edcaef5667c7e54b7bdb6
|
[
"MIT"
] | null | null | null |
projectTwitterDataFile = open("project_twitter_data.csv","r")
resultingDataFile = open("resulting_data.csv","w")
punctuation_chars = ["'", '"', ",", ".", "!", ":", ";", '#', '@']
# lists of words to use
positive_words = []
with open("positive_words.txt") as pos_f:
for lin in pos_f:
if lin[0] != ';' and lin[0] != '\n':
positive_words.append(lin.strip())
def get_pos(strSentences):
strSentences = strip_punctuation(strSentences)
listStrSentences= strSentences.split()
count=0
for word in listStrSentences:
for positiveWord in positive_words:
if word == positiveWord:
count+=1
return count
negative_words = []
with open("negative_words.txt") as pos_f:
for lin in pos_f:
if lin[0] != ';' and lin[0] != '\n':
negative_words.append(lin.strip())
def get_neg(strSentences):
strSentences = strip_punctuation(strSentences)
listStrSentences = strSentences.split()
count=0
for word in listStrSentences:
for negativeWord in negative_words:
if word == negativeWord:
count+=1
return count
def strip_punctuation(strWord):
for charPunct in punctuation_chars:
strWord = strWord.replace(charPunct, "")
return strWord
def writeInDataFile(resultingDataFile):
resultingDataFile.write("Number of Retweets, Number of Replies, Positive Score, Negative Score, Net Score")
resultingDataFile.write("\n")
linesPTDF = projectTwitterDataFile.readlines()
headerDontUsed= linesPTDF.pop(0)
for linesTD in linesPTDF:
listTD = linesTD.strip().split(',')
resultingDataFile.write("{}, {}, {}, {}, {}".format(listTD[1], listTD[2], get_pos(listTD[0]), get_neg(listTD[0]), (get_pos(listTD[0])-get_neg(listTD[0]))))
resultingDataFile.write("\n")
writeInDataFile(resultingDataFile)
projectTwitterDataFile.close()
resultingDataFile.close()
###############################################
punctuation_chars = ["'", '"', ",", ".", "!", ":", ";", '#', '@']
# list of positive words to use
positive_words = []
with open("positive_words.txt") as pos_f:
for lin in pos_f:
if lin[0] != ';' and lin[0] != '\n':
positive_words.append(lin.strip())
def get_pos(strSentences):
strSentences = strip_punctuation(strSentences)
listStrSentences= strSentences.split()
count=0
for word in listStrSentences:
for positiveWord in positive_words:
if word == positiveWord:
count+=1
return count
def strip_punctuation(strWord):
for charPunct in punctuation_chars:
strWord = strWord.replace(charPunct, "")
return strWord
##################################
punctuation_chars = ["'", '"', ",", ".", "!", ":", ";", '#', '@']
negative_words = []
with open("negative_words.txt") as pos_f:
for lin in pos_f:
if lin[0] != ';' and lin[0] != '\n':
negative_words.append(lin.strip())
def get_neg(strSentences):
strSentences = strip_punctuation(strSentences)
listStrSentences = strSentences.split()
count=0
for word in listStrSentences:
for negativeWord in negative_words:
if word == negativeWord:
count+=1
return count
def strip_punctuation(strWord):
for charPunct in punctuation_chars:
strWord = strWord.replace(charPunct, "")
return strWord
#################################################################
projectTwitterDataFile = open("project_twitter_data.csv","r")
resultingDataFile = open("resulting_data.csv","w")
punctuation_chars = ["'", '"', ",", ".", "!", ":", ";", '#', '@']
# lists of words to use
positive_words = []
with open("positive_words.txt") as pos_f:
for lin in pos_f:
if lin[0] != ';' and lin[0] != '\n':
positive_words.append(lin.strip())
def get_pos(strSentences):
strSentences = strip_punctuation(strSentences)
listStrSentences= strSentences.split()
count=0
for word in listStrSentences:
for positiveWord in positive_words:
if word == positiveWord:
count+=1
return count
negative_words = []
with open("negative_words.txt") as pos_f:
for lin in pos_f:
if lin[0] != ';' and lin[0] != '\n':
negative_words.append(lin.strip())
def get_neg(strSentences):
strSentences = strip_punctuation(strSentences)
listStrSentences = strSentences.split()
count=0
for word in listStrSentences:
for negativeWord in negative_words:
if word == negativeWord:
count+=1
return count
def strip_punctuation(strWord):
for charPunct in punctuation_chars:
strWord = strWord.replace(charPunct, "")
return strWord
def writeInDataFile(resultingDataFile):
resultingDataFile.write("Number of Retweets, Number of Replies, Positive Score, Negative Score, Net Score")
resultingDataFile.write("\n")
linesPTDF = projectTwitterDataFile.readlines()
headerDontUsed= linesPTDF.pop(0)
for linesTD in linesPTDF:
listTD = linesTD.strip().split(',')
resultingDataFile.write("{}, {}, {}, {}, {}".format(listTD[1], listTD[2], get_pos(listTD[0]), get_neg(listTD[0]), (get_pos(listTD[0])-get_neg(listTD[0]))))
resultingDataFile.write("\n")
writeInDataFile(resultingDataFile)
projectTwitterDataFile.close()
resultingDataFile.close()
| 29.663102
| 167
| 0.610781
| 580
| 5,547
| 5.713793
| 0.112069
| 0.050996
| 0.023537
| 0.023537
| 0.986119
| 0.986119
| 0.986119
| 0.986119
| 0.986119
| 0.986119
| 0
| 0.008914
| 0.231476
| 5,547
| 187
| 168
| 29.663102
| 0.768473
| 0.01316
| 0
| 1
| 0
| 0
| 0.085634
| 0.009014
| 0
| 0
| 0
| 0
| 0
| 1
| 0.090909
| false
| 0
| 0
| 0
| 0.166667
| 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
|
8958684c48ec40cc49ed7516f4305a48a3e79f74
| 46
|
py
|
Python
|
base_report_to_printer/wizards/__init__.py
|
Chief0-0/Localizacion_ERP_V12
|
f59e56564e29525f772b59db7fef7c7cde347336
|
[
"Apache-2.0"
] | null | null | null |
base_report_to_printer/wizards/__init__.py
|
Chief0-0/Localizacion_ERP_V12
|
f59e56564e29525f772b59db7fef7c7cde347336
|
[
"Apache-2.0"
] | null | null | null |
base_report_to_printer/wizards/__init__.py
|
Chief0-0/Localizacion_ERP_V12
|
f59e56564e29525f772b59db7fef7c7cde347336
|
[
"Apache-2.0"
] | null | null | null |
from . import printing_printer_update_wizard
| 15.333333
| 44
| 0.869565
| 6
| 46
| 6.166667
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.108696
| 46
| 2
| 45
| 23
| 0.902439
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 1
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 1
|
0
| 7
|
89b28f3b0884c38ecc18544c081b2a14e4980a03
| 97,978
|
py
|
Python
|
rotkehlchen/constants/ethereum.py
|
yairash/rotki
|
ef8f45d1e50b0bd5fa53ef783b66734b2ba98b41
|
[
"BSD-3-Clause"
] | null | null | null |
rotkehlchen/constants/ethereum.py
|
yairash/rotki
|
ef8f45d1e50b0bd5fa53ef783b66734b2ba98b41
|
[
"BSD-3-Clause"
] | 10
|
2020-10-06T18:57:17.000Z
|
2022-03-27T06:33:54.000Z
|
rotkehlchen/constants/ethereum.py
|
yairash/rotki
|
ef8f45d1e50b0bd5fa53ef783b66734b2ba98b41
|
[
"BSD-3-Clause"
] | null | null | null |
# flake8: noqa
from typing import Any, Dict, List, NamedTuple
from rotkehlchen.serialization.deserialize import deserialize_ethereum_address
from rotkehlchen.typing import ChecksumEthAddress
ZERO_ADDRESS = deserialize_ethereum_address('0x0000000000000000000000000000000000000000')
AAVE_ETH_RESERVE_ADDRESS = deserialize_ethereum_address('0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE')
class EthereumContract(NamedTuple):
address: ChecksumEthAddress
abi: List[Dict[str, Any]]
deployed_block: int
# Latest contract addresses are in the makerdao changelog. These values are taken from here:
# https://changelog.makerdao.com/releases/mainnet/1.0.6/contracts.json
MAKERDAO_DAI_JOIN = EthereumContract(
address=deserialize_ethereum_address('0x9759A6Ac90977b93B58547b4A71c78317f391A28'),
abi=[{"inputs":[{"internalType":"address","name":"vat_","type":"address"},{"internalType":"address","name":"dai_","type":"address"}],"payable":False,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":True,"inputs":[{"indexed":True,"internalType":"bytes4","name":"sig","type":"bytes4"},{"indexed":True,"internalType":"address","name":"usr","type":"address"},{"indexed":True,"internalType":"bytes32","name":"arg1","type":"bytes32"},{"indexed":True,"internalType":"bytes32","name":"arg2","type":"bytes32"},{"indexed":False,"internalType":"bytes","name":"data","type":"bytes"}],"name":"LogNote","type":"event"},{"constant":False,"inputs":[],"name":"cage","outputs":[],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":True,"inputs":[],"name":"dai","outputs":[{"internalType":"contract DSTokenLike","name":"","type":"address"}],"payable":False,"stateMutability":"view","type":"function"},{"constant":False,"inputs":[{"internalType":"address","name":"usr","type":"address"}],"name":"deny","outputs":[],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":False,"inputs":[{"internalType":"address","name":"usr","type":"address"},{"internalType":"uint256","name":"wad","type":"uint256"}],"name":"exit","outputs":[],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":False,"inputs":[{"internalType":"address","name":"usr","type":"address"},{"internalType":"uint256","name":"wad","type":"uint256"}],"name":"join","outputs":[],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":True,"inputs":[],"name":"live","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":False,"stateMutability":"view","type":"function"},{"constant":False,"inputs":[{"internalType":"address","name":"usr","type":"address"}],"name":"rely","outputs":[],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":True,"inputs":[],"name":"vat","outputs":[{"internalType":"contract VatLike","name":"","type":"address"}],"payable":False,"stateMutability":"view","type":"function"},{"constant":True,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"wards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":False,"stateMutability":"view","type":"function"}],
deployed_block=8928158,
)
MAKERDAO_CDP_MANAGER = EthereumContract(
address=deserialize_ethereum_address('0x5ef30b9986345249bc32d8928B7ee64DE9435E39'),
abi=[{"inputs":[{"internalType":"address","name":"vat_","type":"address"}],"payable":False,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":True,"inputs":[{"indexed":True,"internalType":"bytes4","name":"sig","type":"bytes4"},{"indexed":True,"internalType":"address","name":"usr","type":"address"},{"indexed":True,"internalType":"bytes32","name":"arg1","type":"bytes32"},{"indexed":True,"internalType":"bytes32","name":"arg2","type":"bytes32"},{"indexed":False,"internalType":"bytes","name":"data","type":"bytes"}],"name":"LogNote","type":"event"},{"anonymous":False,"inputs":[{"indexed":True,"internalType":"address","name":"usr","type":"address"},{"indexed":True,"internalType":"address","name":"own","type":"address"},{"indexed":True,"internalType":"uint256","name":"cdp","type":"uint256"}],"name":"NewCdp","type":"event"},{"constant":False,"inputs":[{"internalType":"uint256","name":"cdp","type":"uint256"},{"internalType":"address","name":"usr","type":"address"},{"internalType":"uint256","name":"ok","type":"uint256"}],"name":"cdpAllow","outputs":[],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":True,"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"cdpCan","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":False,"stateMutability":"view","type":"function"},{"constant":True,"invputs":[],"name":"cdpi","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":False,"stateMutability":"view","type":"function"},{"constant":True,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"count","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":False,"stateMutability":"view","type":"function"},{"constant":False,"inputs":[{"internalType":"address","name":"src","type":"address"},{"internalType":"uint256","name":"cdp","type":"uint256"}],"name":"enter","outputs":[],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":True,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"first","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":False,"stateMutability":"view","type":"function"},{"constant":False,"inputs":[{"internalType":"bytes32","name":"ilk","type":"bytes32"},{"internalType":"uint256","name":"cdp","type":"uint256"},{"internalType":"address","name":"dst","type":"address"},{"internalType":"uint256","name":"wad","type":"uint256"}],"name":"flux","outputs":[],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":False,"inputs":[{"internalType":"uint256","name":"cdp","type":"uint256"},{"internalType":"address","name":"dst","type":"address"},{"internalType":"uint256","name":"wad","type":"uint256"}],"name":"flux","outputs":[],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":False,"inputs":[{"internalType":"uint256","name":"cdp","type":"uint256"},{"internalType":"int256","name":"dink","type":"int256"},{"internalType":"int256","name":"dart","type":"int256"}],"name":"frob","outputs":[],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":False,"inputs":[{"internalType":"uint256","name":"cdp","type":"uint256"},{"internalType":"address","name":"dst","type":"address"}],"name":"give","outputs":[],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":True,"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"ilks","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"payable":False,"stateMutability":"view","type":"function"},{"constant":True,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"last","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":False,"stateMutability":"view","type":"function"},{"constant":True,"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"list","outputs":[{"internalType":"uint256","name":"prev","type":"uint256"},{"internalType":"uint256","name":"next","type":"uint256"}],"payable":False,"stateMutability":"view","type":"function"},{"constant":False,"inputs":[{"internalType":"uint256","name":"cdp","type":"uint256"},{"internalType":"address","name":"dst","type":"address"},{"internalType":"uint256","name":"rad","type":"uint256"}],"name":"move","outputs":[],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":False,"inputs":[{"internalType":"bytes32","name":"ilk","type":"bytes32"},{"internalType":"address","name":"usr","type":"address"}],"name":"open","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":True,"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"owns","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":False,"stateMutability":"view","type":"function"},{"constant":False,"inputs":[{"internalType":"uint256","name":"cdp","type":"uint256"},{"internalType":"address","name":"dst","type":"address"}],"name":"quit","outputs":[],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":False,"inputs":[{"internalType":"uint256","name":"cdpSrc","type":"uint256"},{"internalType":"uint256","name":"cdpDst","type":"uint256"}],"name":"shift","outputs":[],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":False,"inputs":[{"internalType":"address","name":"usr","type":"address"},{"internalType":"uint256","name":"ok","type":"uint256"}],"name":"urnAllow","outputs":[],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":True,"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"urnCan","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":False,"stateMutability":"view","type":"function"},{"constant":True,"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"urns","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":False,"stateMutability":"view","type":"function"},{"constant":True,"inputs":[],"name":"vat","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":False,"stateMutability":"view","type":"function"}],
deployed_block=8928198,
)
MAKERDAO_GET_CDPS = EthereumContract(
address=deserialize_ethereum_address('0x36a724Bd100c39f0Ea4D3A20F7097eE01A8Ff573'),
abi=[{"constant":True,"inputs":[{"internalType":"address","name":"manager","type":"address"},{"internalType":"address","name":"guy","type":"address"}],"name":"getCdpsAsc","outputs":[{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"address[]","name":"urns","type":"address[]"},{"internalType":"bytes32[]","name":"ilks","type":"bytes32[]"}],"payable":False,"stateMutability":"view","type":"function"},{"constant":True,"inputs":[{"internalType":"address","name":"manager","type":"address"},{"internalType":"address","name":"guy","type":"address"}],"name":"getCdpsDesc","outputs":[{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"address[]","name":"urns","type":"address[]"},{"internalType":"bytes32[]","name":"ilks","type":"bytes32[]"}],"payable":False,"stateMutability":"view","type":"function"}],
deployed_block=8928205,
)
MAKERDAO_PROXY_REGISTRY = EthereumContract(
address=deserialize_ethereum_address('0x4678f0a6958e4D2Bc4F1BAF7Bc52E8F3564f3fE4'),
abi=[{"constant":False,"inputs":[],"name":"build","outputs":[{"name":"proxy","type":"address"}],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":True,"inputs":[{"name":"","type":"address"}],"name":"proxies","outputs":[{"name":"","type":"address"}],"payable":False,"stateMutability":"view","type":"function"},{"constant":False,"inputs":[{"name":"owner","type":"address"}],"name":"build","outputs":[{"name":"proxy","type":"address"}],"payable":False,"stateMutability":"nonpayable","type":"function"},{"inputs":[{"name":"factory_","type":"address"}],"payable":False,"stateMutability":"nonpayable","type":"constructor"}],
deployed_block=5834629,
)
MAKERDAO_SPOT = EthereumContract(
address=deserialize_ethereum_address('0x65C79fcB50Ca1594B025960e539eD7A9a6D434A3'),
abi=[{"inputs":[{"internalType":"address","name":"vat_","type":"address"}],"payable":False,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":True,"inputs":[{"indexed":True,"internalType":"bytes4","name":"sig","type":"bytes4"},{"indexed":True,"internalType":"address","name":"usr","type":"address"},{"indexed":True,"internalType":"bytes32","name":"arg1","type":"bytes32"},{"indexed":True,"internalType":"bytes32","name":"arg2","type":"bytes32"},{"indexed":False,"internalType":"bytes","name":"data","type":"bytes"}],"name":"LogNote","type":"event"},{"anonymous":False,"inputs":[{"indexed":False,"internalType":"bytes32","name":"ilk","type":"bytes32"},{"indexed":False,"internalType":"bytes32","name":"val","type":"bytes32"},{"indexed":False,"internalType":"uint256","name":"spot","type":"uint256"}],"name":"Poke","type":"event"},{"constant":False,"inputs":[],"name":"cage","outputs":[],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":False,"inputs":[{"internalType":"address","name":"guy","type":"address"}],"name":"deny","outputs":[],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":False,"inputs":[{"internalType":"bytes32","name":"ilk","type":"bytes32"},{"internalType":"bytes32","name":"what","type":"bytes32"},{"internalType":"uint256","name":"data","type":"uint256"}],"name":"file","outputs":[],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":False,"inputs":[{"internalType":"bytes32","name":"what","type":"bytes32"},{"internalType":"uint256","name":"data","type":"uint256"}],"name":"file","outputs":[],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":False,"inputs":[{"internalType":"bytes32","name":"ilk","type":"bytes32"},{"internalType":"bytes32","name":"what","type":"bytes32"},{"internalType":"address","name":"pip_","type":"address"}],"name":"file","outputs":[],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":True,"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"ilks","outputs":[{"internalType":"contract PipLike","name":"pip","type":"address"},{"internalType":"uint256","name":"mat","type":"uint256"}],"payable":False,"stateMutability":"view","type":"function"},{"constant":True,"inputs":[],"name":"live","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":False,"stateMutability":"view","type":"function"},{"constant":True,"inputs":[],"name":"par","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":False,"stateMutability":"view","type":"function"},{"constant":False,"inputs":[{"internalType":"bytes32","name":"ilk","type":"bytes32"}],"name":"poke","outputs":[],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":False,"inputs":[{"internalType":"address","name":"guy","type":"address"}],"name":"rely","outputs":[],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":True,"inputs":[],"name":"vat","outputs":[{"internalType":"contract VatLike","name":"","type":"address"}],"payable":False,"stateMutability":"view","type":"function"},{"constant":True,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"wards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":False,"stateMutability":"view","type":"function"}],
deployed_block=8928152,
)
MAKERDAO_POT = EthereumContract(
address=deserialize_ethereum_address('0x197E90f9FAD81970bA7976f33CbD77088E5D7cf7'),
abi=[{"inputs":[{"internalType":"address","name":"vat_","type":"address"}],"payable":False,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":True,"inputs":[{"indexed":True,"internalType":"bytes4","name":"sig","type":"bytes4"},{"indexed":True,"internalType":"address","name":"usr","type":"address"},{"indexed":True,"internalType":"bytes32","name":"arg1","type":"bytes32"},{"indexed":True,"internalType":"bytes32","name":"arg2","type":"bytes32"},{"indexed":False,"internalType":"bytes","name":"data","type":"bytes"}],"name":"LogNote","type":"event"},{"constant":True,"inputs":[],"name":"Pie","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":False,"stateMutability":"view","type":"function"},{"constant":False,"inputs":[],"name":"cage","outputs":[],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":True,"inputs":[],"name":"chi","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":False,"stateMutability":"view","type":"function"},{"constant":False,"inputs":[{"internalType":"address","name":"guy","type":"address"}],"name":"deny","outputs":[],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":False,"inputs":[],"name":"drip","outputs":[{"internalType":"uint256","name":"tmp","type":"uint256"}],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":True,"inputs":[],"name":"dsr","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":False,"stateMutability":"view","type":"function"},{"constant":False,"inputs":[{"internalType":"uint256","name":"wad","type":"uint256"}],"name":"exit","outputs":[],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":False,"inputs":[{"internalType":"bytes32","name":"what","type":"bytes32"},{"internalType":"uint256","name":"data","type":"uint256"}],"name":"file","outputs":[],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":False,"inputs":[{"internalType":"bytes32","name":"what","type":"bytes32"},{"internalType":"address","name":"addr","type":"address"}],"name":"file","outputs":[],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":False,"inputs":[{"internalType":"uint256","name":"wad","type":"uint256"}],"name":"join","outputs":[],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":True,"inputs":[],"name":"live","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":False,"stateMutability":"view","type":"function"},{"constant":True,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"pie","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":False,"stateMutability":"view","type":"function"},{"constant":False,"inputs":[{"internalType":"address","name":"guy","type":"address"}],"name":"rely","outputs":[],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":True,"inputs":[],"name":"rho","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":False,"stateMutability":"view","type":"function"},{"constant":True,"inputs":[],"name":"vat","outputs":[{"internalType":"contract VatLike","name":"","type":"address"}],"payable":False,"stateMutability":"view","type":"function"},{"constant":True,"inputs":[],"name":"vow","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":False,"stateMutability":"view","type":"function"},{"constant":True,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"wards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":False,"stateMutability":"view","type":"function"}],
deployed_block=8928160,
)
MAKERDAO_VAT = EthereumContract(
address=deserialize_ethereum_address('0x35D1b3F3D7966A1DFe207aa4514C12a259A0492B'),
abi=[{"inputs":[],"payable":False,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":True,"inputs":[{"indexed":True,"internalType":"bytes4","name":"sig","type":"bytes4"},{"indexed":True,"internalType":"bytes32","name":"arg1","type":"bytes32"},{"indexed":True,"internalType":"bytes32","name":"arg2","type":"bytes32"},{"indexed":True,"internalType":"bytes32","name":"arg3","type":"bytes32"},{"indexed":False,"internalType":"bytes","name":"data","type":"bytes"}],"name":"LogNote","type":"event"},{"constant":True,"inputs":[],"name":"Line","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":False,"stateMutability":"view","type":"function"},{"constant":False,"inputs":[],"name":"cage","outputs":[],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":True,"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"can","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":False,"stateMutability":"view","type":"function"},{"constant":True,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"dai","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":False,"stateMutability":"view","type":"function"},{"constant":True,"inputs":[],"name":"debt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":False,"stateMutability":"view","type":"function"},{"constant":False,"inputs":[{"internalType":"address","name":"usr","type":"address"}],"name":"deny","outputs":[],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":False,"inputs":[{"internalType":"bytes32","name":"ilk","type":"bytes32"},{"internalType":"bytes32","name":"what","type":"bytes32"},{"internalType":"uint256","name":"data","type":"uint256"}],"name":"file","outputs":[],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":False,"inputs":[{"internalType":"bytes32","name":"what","type":"bytes32"},{"internalType":"uint256","name":"data","type":"uint256"}],"name":"file","outputs":[],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":False,"inputs":[{"internalType":"bytes32","name":"ilk","type":"bytes32"},{"internalType":"address","name":"src","type":"address"},{"internalType":"address","name":"dst","type":"address"},{"internalType":"uint256","name":"wad","type":"uint256"}],"name":"flux","outputs":[],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":False,"inputs":[{"internalType":"bytes32","name":"i","type":"bytes32"},{"internalType":"address","name":"u","type":"address"},{"internalType":"int256","name":"rate","type":"int256"}],"name":"fold","outputs":[],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":False,"inputs":[{"internalType":"bytes32","name":"ilk","type":"bytes32"},{"internalType":"address","name":"src","type":"address"},{"internalType":"address","name":"dst","type":"address"},{"internalType":"int256","name":"dink","type":"int256"},{"internalType":"int256","name":"dart","type":"int256"}],"name":"fork","outputs":[],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":False,"inputs":[{"internalType":"bytes32","name":"i","type":"bytes32"},{"internalType":"address","name":"u","type":"address"},{"internalType":"address","name":"v","type":"address"},{"internalType":"address","name":"w","type":"address"},{"internalType":"int256","name":"dink","type":"int256"},{"internalType":"int256","name":"dart","type":"int256"}],"name":"frob","outputs":[],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":True,"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"},{"internalType":"address","name":"","type":"address"}],"name":"gem","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":False,"stateMutability":"view","type":"function"},{"constant":False,"inputs":[{"internalType":"bytes32","name":"i","type":"bytes32"},{"internalType":"address","name":"u","type":"address"},{"internalType":"address","name":"v","type":"address"},{"internalType":"address","name":"w","type":"address"},{"internalType":"int256","name":"dink","type":"int256"},{"internalType":"int256","name":"dart","type":"int256"}],"name":"grab","outputs":[],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":False,"inputs":[{"internalType":"uint256","name":"rad","type":"uint256"}],"name":"heal","outputs":[],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":False,"inputs":[{"internalType":"address","name":"usr","type":"address"}],"name":"hope","outputs":[],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":True,"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"ilks","outputs":[{"internalType":"uint256","name":"Art","type":"uint256"},{"internalType":"uint256","name":"rate","type":"uint256"},{"internalType":"uint256","name":"spot","type":"uint256"},{"internalType":"uint256","name":"line","type":"uint256"},{"internalType":"uint256","name":"dust","type":"uint256"}],"payable":False,"stateMutability":"view","type":"function"},{"constant":False,"inputs":[{"internalType":"bytes32","name":"ilk","type":"bytes32"}],"name":"init","outputs":[],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":True,"inputs":[],"name":"live","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":False,"stateMutability":"view","type":"function"},{"constant":False,"inputs":[{"internalType":"address","name":"src","type":"address"},{"internalType":"address","name":"dst","type":"address"},{"internalType":"uint256","name":"rad","type":"uint256"}],"name":"move","outputs":[],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":False,"inputs":[{"internalType":"address","name":"usr","type":"address"}],"name":"nope","outputs":[],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":False,"inputs":[{"internalType":"address","name":"usr","type":"address"}],"name":"rely","outputs":[],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":True,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"sin","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":False,"stateMutability":"view","type":"function"},{"constant":False,"inputs":[{"internalType":"bytes32","name":"ilk","type":"bytes32"},{"internalType":"address","name":"usr","type":"address"},{"internalType":"int256","name":"wad","type":"int256"}],"name":"slip","outputs":[],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":False,"inputs":[{"internalType":"address","name":"u","type":"address"},{"internalType":"address","name":"v","type":"address"},{"internalType":"uint256","name":"rad","type":"uint256"}],"name":"suck","outputs":[],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":True,"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"},{"internalType":"address","name":"","type":"address"}],"name":"urns","outputs":[{"internalType":"uint256","name":"ink","type":"uint256"},{"internalType":"uint256","name":"art","type":"uint256"}],"payable":False,"stateMutability":"view","type":"function"},{"constant":True,"inputs":[],"name":"vice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":False,"stateMutability":"view","type":"function"},{"constant":True,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"wards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":False,"stateMutability":"view","type":"function"}],
deployed_block=8928152,
)
MAKERDAO_ETH_A_JOIN = EthereumContract(
address=deserialize_ethereum_address("0x2F0b23f53734252Bda2277357e97e1517d6B042A"),
abi=[{"inputs":[{"internalType":"address","name":"vat_","type":"address"},{"internalType":"bytes32","name":"ilk_","type":"bytes32"},{"internalType":"address","name":"gem_","type":"address"}],"payable":False,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":True,"inputs":[{"indexed":True,"internalType":"bytes4","name":"sig","type":"bytes4"},{"indexed":True,"internalType":"address","name":"usr","type":"address"},{"indexed":True,"internalType":"bytes32","name":"arg1","type":"bytes32"},{"indexed":True,"internalType":"bytes32","name":"arg2","type":"bytes32"},{"indexed":False,"internalType":"bytes","name":"data","type":"bytes"}],"name":"LogNote","type":"event"},{"constant":False,"inputs":[],"name":"cage","outputs":[],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":True,"inputs":[],"name":"dec","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":False,"stateMutability":"view","type":"function"},{"constant":False,"inputs":[{"internalType":"address","name":"usr","type":"address"}],"name":"deny","outputs":[],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":False,"inputs":[{"internalType":"address","name":"usr","type":"address"},{"internalType":"uint256","name":"wad","type":"uint256"}],"name":"exit","outputs":[],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":True,"inputs":[],"name":"gem","outputs":[{"internalType":"contract GemLike","name":"","type":"address"}],"payable":False,"stateMutability":"view","type":"function"},{"constant":True,"inputs":[],"name":"ilk","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"payable":False,"stateMutability":"view","type":"function"},{"constant":False,"inputs":[{"internalType":"address","name":"usr","type":"address"},{"internalType":"uint256","name":"wad","type":"uint256"}],"name":"join","outputs":[],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":True,"inputs":[],"name":"live","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":False,"stateMutability":"view","type":"function"},{"constant":False,"inputs":[{"internalType":"address","name":"usr","type":"address"}],"name":"rely","outputs":[],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":True,"inputs":[],"name":"vat","outputs":[{"internalType":"contract VatLike","name":"","type":"address"}],"payable":False,"stateMutability":"view","type":"function"},{"constant":True,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"wards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":False,"stateMutability":"view","type":"function"}],
deployed_block=8928176,
)
MAKERDAO_BAT_A_JOIN = EthereumContract(
address=deserialize_ethereum_address("0x3D0B1912B66114d4096F48A8CEe3A56C231772cA"),
abi=[{"inputs":[{"internalType":"address","name":"vat_","type":"address"},{"internalType":"bytes32","name":"ilk_","type":"bytes32"},{"internalType":"address","name":"gem_","type":"address"}],"payable":False,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":True,"inputs":[{"indexed":True,"internalType":"bytes4","name":"sig","type":"bytes4"},{"indexed":True,"internalType":"address","name":"usr","type":"address"},{"indexed":True,"internalType":"bytes32","name":"arg1","type":"bytes32"},{"indexed":True,"internalType":"bytes32","name":"arg2","type":"bytes32"},{"indexed":False,"internalType":"bytes","name":"data","type":"bytes"}],"name":"LogNote","type":"event"},{"constant":False,"inputs":[],"name":"cage","outputs":[],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":True,"inputs":[],"name":"dec","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":False,"stateMutability":"view","type":"function"},{"constant":False,"inputs":[{"internalType":"address","name":"usr","type":"address"}],"name":"deny","outputs":[],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":False,"inputs":[{"internalType":"address","name":"usr","type":"address"},{"internalType":"uint256","name":"wad","type":"uint256"}],"name":"exit","outputs":[],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":True,"inputs":[],"name":"gem","outputs":[{"internalType":"contract GemLike","name":"","type":"address"}],"payable":False,"stateMutability":"view","type":"function"},{"constant":True,"inputs":[],"name":"ilk","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"payable":False,"stateMutability":"view","type":"function"},{"constant":False,"inputs":[{"internalType":"address","name":"usr","type":"address"},{"internalType":"uint256","name":"wad","type":"uint256"}],"name":"join","outputs":[],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":True,"inputs":[],"name":"live","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":False,"stateMutability":"view","type":"function"},{"constant":False,"inputs":[{"internalType":"address","name":"usr","type":"address"}],"name":"rely","outputs":[],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":True,"inputs":[],"name":"vat","outputs":[{"internalType":"contract VatLike","name":"","type":"address"}],"payable":False,"stateMutability":"view","type":"function"},{"constant":True,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"wards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":False,"stateMutability":"view","type":"function"}],
deployed_block=8928185,
)
MAKERDAO_USDC_A_JOIN = EthereumContract(
address=deserialize_ethereum_address("0xA191e578a6736167326d05c119CE0c90849E84B7"),
abi=[{"inputs":[{"internalType":"address","name":"vat_","type":"address"},{"internalType":"bytes32","name":"ilk_","type":"bytes32"},{"internalType":"address","name":"gem_","type":"address"}],"payable":False,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":True,"inputs":[{"indexed":True,"internalType":"bytes4","name":"sig","type":"bytes4"},{"indexed":True,"internalType":"address","name":"usr","type":"address"},{"indexed":True,"internalType":"bytes32","name":"arg1","type":"bytes32"},{"indexed":True,"internalType":"bytes32","name":"arg2","type":"bytes32"},{"indexed":False,"internalType":"bytes","name":"data","type":"bytes"}],"name":"LogNote","type":"event"},{"constant":False,"inputs":[],"name":"cage","outputs":[],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":True,"inputs":[],"name":"dec","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":False,"stateMutability":"view","type":"function"},{"constant":False,"inputs":[{"internalType":"address","name":"usr","type":"address"}],"name":"deny","outputs":[],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":False,"inputs":[{"internalType":"address","name":"guy","type":"address"},{"internalType":"uint256","name":"wad","type":"uint256"}],"name":"exit","outputs":[],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":True,"inputs":[],"name":"gem","outputs":[{"internalType":"contract GemLike5","name":"","type":"address"}],"payable":False,"stateMutability":"view","type":"function"},{"constant":True,"inputs":[],"name":"ilk","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"payable":False,"stateMutability":"view","type":"function"},{"constant":False,"inputs":[{"internalType":"address","name":"urn","type":"address"},{"internalType":"uint256","name":"wad","type":"uint256"}],"name":"join","outputs":[],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":True,"inputs":[],"name":"live","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":False,"stateMutability":"view","type":"function"},{"constant":False,"inputs":[{"internalType":"address","name":"usr","type":"address"}],"name":"rely","outputs":[],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":True,"inputs":[],"name":"vat","outputs":[{"internalType":"contract VatLike","name":"","type":"address"}],"payable":False,"stateMutability":"view","type":"function"},{"constant":True,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"wards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":False,"stateMutability":"view","type":"function"}],
deployed_block=9683222,
)
MAKERDAO_USDC_B_JOIN = EthereumContract(
address=deserialize_ethereum_address("0x2600004fd1585f7270756DDc88aD9cfA10dD0428"),
abi=[{"inputs":[{"internalType":"address","name":"vat_","type":"address"},{"internalType":"bytes32","name":"ilk_","type":"bytes32"},{"internalType":"address","name":"gem_","type":"address"}],"payable":False,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":True,"inputs":[{"indexed":True,"internalType":"bytes4","name":"sig","type":"bytes4"},{"indexed":True,"internalType":"address","name":"usr","type":"address"},{"indexed":True,"internalType":"bytes32","name":"arg1","type":"bytes32"},{"indexed":True,"internalType":"bytes32","name":"arg2","type":"bytes32"},{"indexed":False,"internalType":"bytes","name":"data","type":"bytes"}],"name":"LogNote","type":"event"},{"constant":False,"inputs":[],"name":"cage","outputs":[],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":True,"inputs":[],"name":"dec","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":False,"stateMutability":"view","type":"function"},{"constant":False,"inputs":[{"internalType":"address","name":"usr","type":"address"}],"name":"deny","outputs":[],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":False,"inputs":[{"internalType":"address","name":"guy","type":"address"},{"internalType":"uint256","name":"wad","type":"uint256"}],"name":"exit","outputs":[],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":True,"inputs":[],"name":"gem","outputs":[{"internalType":"contract GemLike5","name":"","type":"address"}],"payable":False,"stateMutability":"view","type":"function"},{"constant":True,"inputs":[],"name":"ilk","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"payable":False,"stateMutability":"view","type":"function"},{"constant":False,"inputs":[{"internalType":"address","name":"urn","type":"address"},{"internalType":"uint256","name":"wad","type":"uint256"}],"name":"join","outputs":[],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":True,"inputs":[],"name":"live","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":False,"stateMutability":"view","type":"function"},{"constant":False,"inputs":[{"internalType":"address","name":"usr","type":"address"}],"name":"rely","outputs":[],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":True,"inputs":[],"name":"vat","outputs":[{"internalType":"contract VatLike","name":"","type":"address"}],"payable":False,"stateMutability":"view","type":"function"},{"constant":True,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"wards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":False,"stateMutability":"view","type":"function"}],
deployed_block=10149009 ,
)
MAKERDAO_WBTC_A_JOIN = EthereumContract(
address=deserialize_ethereum_address("0xBF72Da2Bd84c5170618Fbe5914B0ECA9638d5eb5"),
abi=[{"inputs":[{"internalType":"address","name":"vat_","type":"address"},{"internalType":"bytes32","name":"ilk_","type":"bytes32"},{"internalType":"address","name":"gem_","type":"address"}],"payable":False,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":True,"inputs":[{"indexed":True,"internalType":"bytes4","name":"sig","type":"bytes4"},{"indexed":True,"internalType":"address","name":"usr","type":"address"},{"indexed":True,"internalType":"bytes32","name":"arg1","type":"bytes32"},{"indexed":True,"internalType":"bytes32","name":"arg2","type":"bytes32"},{"indexed":False,"internalType":"bytes","name":"data","type":"bytes"}],"name":"LogNote","type":"event"},{"constant":False,"inputs":[],"name":"cage","outputs":[],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":True,"inputs":[],"name":"dec","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":False,"stateMutability":"view","type":"function"},{"constant":False,"inputs":[{"internalType":"address","name":"usr","type":"address"}],"name":"deny","outputs":[],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":False,"inputs":[{"internalType":"address","name":"guy","type":"address"},{"internalType":"uint256","name":"wad","type":"uint256"}],"name":"exit","outputs":[],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":True,"inputs":[],"name":"gem","outputs":[{"internalType":"contract GemLike5","name":"","type":"address"}],"payable":False,"stateMutability":"view","type":"function"},{"constant":True,"inputs":[],"name":"ilk","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"payable":False,"stateMutability":"view","type":"function"},{"constant":False,"inputs":[{"internalType":"address","name":"urn","type":"address"},{"internalType":"uint256","name":"wad","type":"uint256"}],"name":"join","outputs":[],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":True,"inputs":[],"name":"live","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":False,"stateMutability":"view","type":"function"},{"constant":False,"inputs":[{"internalType":"address","name":"usr","type":"address"}],"name":"rely","outputs":[],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":True,"inputs":[],"name":"vat","outputs":[{"internalType":"contract VatLike","name":"","type":"address"}],"payable":False,"stateMutability":"view","type":"function"},{"constant":True,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"wards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":False,"stateMutability":"view","type":"function"}],
deployed_block=9975673,
)
MAKERDAO_KNC_A_JOIN = EthereumContract(
address=deserialize_ethereum_address("0x475F1a89C1ED844A08E8f6C50A00228b5E59E4A9"),
abi=[{"inputs":[{"internalType":"address","name":"vat_","type":"address"},{"internalType":"bytes32","name":"ilk_","type":"bytes32"},{"internalType":"address","name":"gem_","type":"address"}],"payable":False,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":True,"inputs":[{"indexed":True,"internalType":"bytes4","name":"sig","type":"bytes4"},{"indexed":True,"internalType":"address","name":"usr","type":"address"},{"indexed":True,"internalType":"bytes32","name":"arg1","type":"bytes32"},{"indexed":True,"internalType":"bytes32","name":"arg2","type":"bytes32"},{"indexed":False,"internalType":"bytes","name":"data","type":"bytes"}],"name":"LogNote","type":"event"},{"constant":False,"inputs":[],"name":"cage","outputs":[],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":True,"inputs":[],"name":"dec","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":False,"stateMutability":"view","type":"function"},{"constant":False,"inputs":[{"internalType":"address","name":"usr","type":"address"}],"name":"deny","outputs":[],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":False,"inputs":[{"internalType":"address","name":"usr","type":"address"},{"internalType":"uint256","name":"wad","type":"uint256"}],"name":"exit","outputs":[],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":True,"inputs":[],"name":"gem","outputs":[{"internalType":"contract GemLike","name":"","type":"address"}],"payable":False,"stateMutability":"view","type":"function"},{"constant":True,"inputs":[],"name":"ilk","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"payable":False,"stateMutability":"view","type":"function"},{"constant":False,"inputs":[{"internalType":"address","name":"usr","type":"address"},{"internalType":"uint256","name":"wad","type":"uint256"}],"name":"join","outputs":[],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":True,"inputs":[],"name":"live","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":False,"stateMutability":"view","type":"function"},{"constant":False,"inputs":[{"internalType":"address","name":"usr","type":"address"}],"name":"rely","outputs":[],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":True,"inputs":[],"name":"vat","outputs":[{"internalType":"contract VatLike","name":"","type":"address"}],"payable":False,"stateMutability":"view","type":"function"},{"constant":True,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"wards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":False,"stateMutability":"view","type":"function"}],
deployed_block=10323392,
)
MAKERDAO_TUSD_A_JOIN = EthereumContract(
address=deserialize_ethereum_address("0x4454aF7C8bb9463203b66C816220D41ED7837f44"),
abi=[{"inputs":[{"internalType":"address","name":"vat_","type":"address"},{"internalType":"bytes32","name":"ilk_","type":"bytes32"},{"internalType":"address","name":"gem_","type":"address"}],"payable":False,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":True,"inputs":[{"indexed":True,"internalType":"bytes4","name":"sig","type":"bytes4"},{"indexed":True,"internalType":"address","name":"usr","type":"address"},{"indexed":True,"internalType":"bytes32","name":"arg1","type":"bytes32"},{"indexed":True,"internalType":"bytes32","name":"arg2","type":"bytes32"},{"indexed":False,"internalType":"bytes","name":"data","type":"bytes"}],"name":"LogNote","type":"event"},{"constant":False,"inputs":[],"name":"cage","outputs":[],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":True,"inputs":[],"name":"dec","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":False,"stateMutability":"view","type":"function"},{"constant":False,"inputs":[{"internalType":"address","name":"usr","type":"address"}],"name":"deny","outputs":[],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":False,"inputs":[{"internalType":"address","name":"usr","type":"address"},{"internalType":"uint256","name":"wad","type":"uint256"}],"name":"exit","outputs":[],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":True,"inputs":[],"name":"gem","outputs":[{"internalType":"contract GemLike6","name":"","type":"address"}],"payable":False,"stateMutability":"view","type":"function"},{"constant":True,"inputs":[],"name":"ilk","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"payable":False,"stateMutability":"view","type":"function"},{"constant":True,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"implementations","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":False,"stateMutability":"view","type":"function"},{"constant":False,"inputs":[{"internalType":"address","name":"usr","type":"address"},{"internalType":"uint256","name":"wad","type":"uint256"}],"name":"join","outputs":[],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":True,"inputs":[],"name":"live","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":False,"stateMutability":"view","type":"function"},{"constant":False,"inputs":[{"internalType":"address","name":"usr","type":"address"}],"name":"rely","outputs":[],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":False,"inputs":[{"internalType":"address","name":"implementation","type":"address"},{"internalType":"uint256","name":"permitted","type":"uint256"}],"name":"setImplementation","outputs":[],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":True,"inputs":[],"name":"vat","outputs":[{"internalType":"contract VatLike","name":"","type":"address"}],"payable":False,"stateMutability":"view","type":"function"},{"constant":True,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"wards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":False,"stateMutability":"view","type":"function"}],
deployed_block=10149238,
)
MAKERDAO_ZRX_A_JOIN = EthereumContract(
address=deserialize_ethereum_address("0xc7e8Cd72BDEe38865b4F5615956eF47ce1a7e5D0"),
abi=[{"inputs":[{"internalType":"address","name":"vat_","type":"address"},{"internalType":"bytes32","name":"ilk_","type":"bytes32"},{"internalType":"address","name":"gem_","type":"address"}],"payable":False,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":True,"inputs":[{"indexed":True,"internalType":"bytes4","name":"sig","type":"bytes4"},{"indexed":True,"internalType":"address","name":"usr","type":"address"},{"indexed":True,"internalType":"bytes32","name":"arg1","type":"bytes32"},{"indexed":True,"internalType":"bytes32","name":"arg2","type":"bytes32"},{"indexed":False,"internalType":"bytes","name":"data","type":"bytes"}],"name":"LogNote","type":"event"},{"constant":False,"inputs":[],"name":"cage","outputs":[],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":True,"inputs":[],"name":"dec","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":False,"stateMutability":"view","type":"function"},{"constant":False,"inputs":[{"internalType":"address","name":"usr","type":"address"}],"name":"deny","outputs":[],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":False,"inputs":[{"internalType":"address","name":"usr","type":"address"},{"internalType":"uint256","name":"wad","type":"uint256"}],"name":"exit","outputs":[],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":True,"inputs":[],"name":"gem","outputs":[{"internalType":"contract GemLike","name":"","type":"address"}],"payable":False,"stateMutability":"view","type":"function"},{"constant":True,"inputs":[],"name":"ilk","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"payable":False,"stateMutability":"view","type":"function"},{"constant":False,"inputs":[{"internalType":"address","name":"usr","type":"address"},{"internalType":"uint256","name":"wad","type":"uint256"}],"name":"join","outputs":[],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":True,"inputs":[],"name":"live","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":False,"stateMutability":"view","type":"function"},{"constant":False,"inputs":[{"internalType":"address","name":"usr","type":"address"}],"name":"rely","outputs":[],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":True,"inputs":[],"name":"vat","outputs":[{"internalType":"contract VatLike","name":"","type":"address"}],"payable":False,"stateMutability":"view","type":"function"},{"constant":True,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"wards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":False,"stateMutability":"view","type":"function"}],
deployed_block=10323394,
)
MAKERDAO_CAT = EthereumContract(
address=deserialize_ethereum_address('0x78F2c2AF65126834c51822F56Be0d7469D7A523E'),
abi=[{"inputs":[{"internalType":"address","name":"vat_","type":"address"}],"payable":False,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":False,"inputs":[{"indexed":True,"internalType":"bytes32","name":"ilk","type":"bytes32"},{"indexed":True,"internalType":"address","name":"urn","type":"address"},{"indexed":False,"internalType":"uint256","name":"ink","type":"uint256"},{"indexed":False,"internalType":"uint256","name":"art","type":"uint256"},{"indexed":False,"internalType":"uint256","name":"tab","type":"uint256"},{"indexed":False,"internalType":"address","name":"flip","type":"address"},{"indexed":False,"internalType":"uint256","name":"id","type":"uint256"}],"name":"Bite","type":"event"},{"anonymous":True,"inputs":[{"indexed":True,"internalType":"bytes4","name":"sig","type":"bytes4"},{"indexed":True,"internalType":"address","name":"usr","type":"address"},{"indexed":True,"internalType":"bytes32","name":"arg1","type":"bytes32"},{"indexed":True,"internalType":"bytes32","name":"arg2","type":"bytes32"},{"indexed":False,"internalType":"bytes","name":"data","type":"bytes"}],"name":"LogNote","type":"event"},{"constant":False,"inputs":[{"internalType":"bytes32","name":"ilk","type":"bytes32"},{"internalType":"address","name":"urn","type":"address"}],"name":"bite","outputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":False,"inputs":[],"name":"cage","outputs":[],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":False,"inputs":[{"internalType":"address","name":"usr","type":"address"}],"name":"deny","outputs":[],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":False,"inputs":[{"internalType":"bytes32","name":"ilk","type":"bytes32"},{"internalType":"bytes32","name":"what","type":"bytes32"},{"internalType":"uint256","name":"data","type":"uint256"}],"name":"file","outputs":[],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":False,"inputs":[{"internalType":"bytes32","name":"what","type":"bytes32"},{"internalType":"address","name":"data","type":"address"}],"name":"file","outputs":[],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":False,"inputs":[{"internalType":"bytes32","name":"ilk","type":"bytes32"},{"internalType":"bytes32","name":"what","type":"bytes32"},{"internalType":"address","name":"flip","type":"address"}],"name":"file","outputs":[],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":True,"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"ilks","outputs":[{"internalType":"address","name":"flip","type":"address"},{"internalType":"uint256","name":"chop","type":"uint256"},{"internalType":"uint256","name":"lump","type":"uint256"}],"payable":False,"stateMutability":"view","type":"function"},{"constant":True,"inputs":[],"name":"live","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":False,"stateMutability":"view","type":"function"},{"constant":False,"inputs":[{"internalType":"address","name":"usr","type":"address"}],"name":"rely","outputs":[],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":True,"inputs":[],"name":"vat","outputs":[{"internalType":"contract VatLike","name":"","type":"address"}],"payable":False,"stateMutability":"view","type":"function"},{"constant":True,"inputs":[],"name":"vow","outputs":[{"internalType":"contract VowLike","name":"","type":"address"}],"payable":False,"stateMutability":"view","type":"function"},{"constant":True,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"wards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":False,"stateMutability":"view","type":"function"}],
deployed_block=8928165,
)
MAKERDAO_JUG = EthereumContract(
address=deserialize_ethereum_address('0x19c0976f590D67707E62397C87829d896Dc0f1F1'),
abi=[{"inputs":[{"internalType":"address","name":"vat_","type":"address"}],"payable":False,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":True,"inputs":[{"indexed":True,"internalType":"bytes4","name":"sig","type":"bytes4"},{"indexed":True,"internalType":"address","name":"usr","type":"address"},{"indexed":True,"internalType":"bytes32","name":"arg1","type":"bytes32"},{"indexed":True,"internalType":"bytes32","name":"arg2","type":"bytes32"},{"indexed":False,"internalType":"bytes","name":"data","type":"bytes"}],"name":"LogNote","type":"event"},{"constant":True,"inputs":[],"name":"base","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":False,"stateMutability":"view","type":"function"},{"constant":False,"inputs":[{"internalType":"address","name":"usr","type":"address"}],"name":"deny","outputs":[],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":False,"inputs":[{"internalType":"bytes32","name":"ilk","type":"bytes32"}],"name":"drip","outputs":[{"internalType":"uint256","name":"rate","type":"uint256"}],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":False,"inputs":[{"internalType":"bytes32","name":"ilk","type":"bytes32"},{"internalType":"bytes32","name":"what","type":"bytes32"},{"internalType":"uint256","name":"data","type":"uint256"}],"name":"file","outputs":[],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":False,"inputs":[{"internalType":"bytes32","name":"what","type":"bytes32"},{"internalType":"uint256","name":"data","type":"uint256"}],"name":"file","outputs":[],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":False,"inputs":[{"internalType":"bytes32","name":"what","type":"bytes32"},{"internalType":"address","name":"data","type":"address"}],"name":"file","outputs":[],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":True,"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"ilks","outputs":[{"internalType":"uint256","name":"duty","type":"uint256"},{"internalType":"uint256","name":"rho","type":"uint256"}],"payable":False,"stateMutability":"view","type":"function"},{"constant":False,"inputs":[{"internalType":"bytes32","name":"ilk","type":"bytes32"}],"name":"init","outputs":[],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":False,"inputs":[{"internalType":"address","name":"usr","type":"address"}],"name":"rely","outputs":[],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":True,"inputs":[],"name":"vat","outputs":[{"internalType":"contract VatLike","name":"","type":"address"}],"payable":False,"stateMutability":"view","type":"function"},{"constant":True,"inputs":[],"name":"vow","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":False,"stateMutability":"view","type":"function"},{"constant":True,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"wards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":False,"stateMutability":"view","type":"function"}],
deployed_block=8928160,
)
ETH_SCAN = EthereumContract(
address=deserialize_ethereum_address("0x86F25b64e1Fe4C5162cDEeD5245575D32eC549db"),
abi=[{"inputs":[{"internalType":"address[]","name":"addresses","type":"address[]"}],"name":"etherBalances","outputs":[{"internalType":"uint256[]","name":"balances","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"addresses","type":"address[]"},{"internalType":"address","name":"token","type":"address"}],"name":"tokenBalances","outputs":[{"internalType":"uint256[]","name":"balances","type":"uint256[]"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address[]","name":"contracts","type":"address[]"}],"name":"tokensBalance","outputs":[{"internalType":"uint256[]","name":"balances","type":"uint256[]"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"addresses","type":"address[]"},{"internalType":"address[]","name":"contracts","type":"address[]"}],"name":"tokensBalances","outputs":[{"internalType":"uint256[][]","name":"balances","type":"uint256[][]"}],"stateMutability":"nonpayable","type":"function"}],
deployed_block=9665853,
)
ZERION_ADAPTER_ABI = [{"anonymous":False,"inputs":[{"indexed":True,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":True,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[{"internalType":"string","name":"protocolName","type":"string"},{"internalType":"address[]","name":"adapters","type":"address[]"},{"internalType":"address[][]","name":"tokens","type":"address[][]"}],"name":"addProtocolAdapters","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string[]","name":"protocolNames","type":"string[]"},{"components":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"description","type":"string"},{"internalType":"string","name":"websiteURL","type":"string"},{"internalType":"string","name":"iconURL","type":"string"},{"internalType":"uint256","name":"version","type":"uint256"}],"internalType":"struct ProtocolMetadata[]","name":"metadata","type":"tuple[]"},{"internalType":"address[][]","name":"adapters","type":"address[][]"},{"internalType":"address[][][]","name":"tokens","type":"address[][][]"}],"name":"addProtocols","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string[]","name":"tokenAdapterNames","type":"string[]"},{"internalType":"address[]","name":"adapters","type":"address[]"}],"name":"addTokenAdapters","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"adapter","type":"address"},{"internalType":"address[]","name":"tokens","type":"address[]"}],"name":"getAdapterBalance","outputs":[{"components":[{"components":[{"internalType":"address","name":"adapterAddress","type":"address"},{"internalType":"string","name":"adapterType","type":"string"}],"internalType":"struct AdapterMetadata","name":"metadata","type":"tuple"},{"components":[{"components":[{"components":[{"internalType":"address","name":"token","type":"address"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"uint8","name":"decimals","type":"uint8"}],"internalType":"struct TokenMetadata","name":"metadata","type":"tuple"},{"internalType":"uint256","name":"amount","type":"uint256"}],"internalType":"struct TokenBalance","name":"base","type":"tuple"},{"components":[{"components":[{"internalType":"address","name":"token","type":"address"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"uint8","name":"decimals","type":"uint8"}],"internalType":"struct TokenMetadata","name":"metadata","type":"tuple"},{"internalType":"uint256","name":"amount","type":"uint256"}],"internalType":"struct TokenBalance[]","name":"underlying","type":"tuple[]"}],"internalType":"struct FullTokenBalance[]","name":"balances","type":"tuple[]"}],"internalType":"struct AdapterBalance","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address[]","name":"adapters","type":"address[]"}],"name":"getAdapterBalances","outputs":[{"components":[{"components":[{"internalType":"address","name":"adapterAddress","type":"address"},{"internalType":"string","name":"adapterType","type":"string"}],"internalType":"struct AdapterMetadata","name":"metadata","type":"tuple"},{"components":[{"components":[{"components":[{"internalType":"address","name":"token","type":"address"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"uint8","name":"decimals","type":"uint8"}],"internalType":"struct TokenMetadata","name":"metadata","type":"tuple"},{"internalType":"uint256","name":"amount","type":"uint256"}],"internalType":"struct TokenBalance","name":"base","type":"tuple"},{"components":[{"components":[{"internalType":"address","name":"token","type":"address"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"uint8","name":"decimals","type":"uint8"}],"internalType":"struct TokenMetadata","name":"metadata","type":"tuple"},{"internalType":"uint256","name":"amount","type":"uint256"}],"internalType":"struct TokenBalance[]","name":"underlying","type":"tuple[]"}],"internalType":"struct FullTokenBalance[]","name":"balances","type":"tuple[]"}],"internalType":"struct AdapterBalance[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getBalances","outputs":[{"components":[{"components":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"description","type":"string"},{"internalType":"string","name":"websiteURL","type":"string"},{"internalType":"string","name":"iconURL","type":"string"},{"internalType":"uint256","name":"version","type":"uint256"}],"internalType":"struct ProtocolMetadata","name":"metadata","type":"tuple"},{"components":[{"components":[{"internalType":"address","name":"adapterAddress","type":"address"},{"internalType":"string","name":"adapterType","type":"string"}],"internalType":"struct AdapterMetadata","name":"metadata","type":"tuple"},{"components":[{"components":[{"components":[{"internalType":"address","name":"token","type":"address"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"uint8","name":"decimals","type":"uint8"}],"internalType":"struct TokenMetadata","name":"metadata","type":"tuple"},{"internalType":"uint256","name":"amount","type":"uint256"}],"internalType":"struct TokenBalance","name":"base","type":"tuple"},{"components":[{"components":[{"internalType":"address","name":"token","type":"address"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"uint8","name":"decimals","type":"uint8"}],"internalType":"struct TokenMetadata","name":"metadata","type":"tuple"},{"internalType":"uint256","name":"amount","type":"uint256"}],"internalType":"struct TokenBalance[]","name":"underlying","type":"tuple[]"}],"internalType":"struct FullTokenBalance[]","name":"balances","type":"tuple[]"}],"internalType":"struct AdapterBalance[]","name":"adapterBalances","type":"tuple[]"}],"internalType":"struct ProtocolBalance[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"tokenType","type":"string"},{"internalType":"address","name":"token","type":"address"}],"name":"getFinalFullTokenBalance","outputs":[{"components":[{"components":[{"components":[{"internalType":"address","name":"token","type":"address"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"uint8","name":"decimals","type":"uint8"}],"internalType":"struct TokenMetadata","name":"metadata","type":"tuple"},{"internalType":"uint256","name":"amount","type":"uint256"}],"internalType":"struct TokenBalance","name":"base","type":"tuple"},{"components":[{"components":[{"internalType":"address","name":"token","type":"address"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"uint8","name":"decimals","type":"uint8"}],"internalType":"struct TokenMetadata","name":"metadata","type":"tuple"},{"internalType":"uint256","name":"amount","type":"uint256"}],"internalType":"struct TokenBalance[]","name":"underlying","type":"tuple[]"}],"internalType":"struct FullTokenBalance","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"tokenType","type":"string"},{"internalType":"address","name":"token","type":"address"}],"name":"getFullTokenBalance","outputs":[{"components":[{"components":[{"components":[{"internalType":"address","name":"token","type":"address"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"uint8","name":"decimals","type":"uint8"}],"internalType":"struct TokenMetadata","name":"metadata","type":"tuple"},{"internalType":"uint256","name":"amount","type":"uint256"}],"internalType":"struct TokenBalance","name":"base","type":"tuple"},{"components":[{"components":[{"internalType":"address","name":"token","type":"address"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"uint8","name":"decimals","type":"uint8"}],"internalType":"struct TokenMetadata","name":"metadata","type":"tuple"},{"internalType":"uint256","name":"amount","type":"uint256"}],"internalType":"struct TokenBalance[]","name":"underlying","type":"tuple[]"}],"internalType":"struct FullTokenBalance","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"protocolName","type":"string"}],"name":"getProtocolAdapters","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"string[]","name":"protocolNames","type":"string[]"}],"name":"getProtocolBalances","outputs":[{"components":[{"components":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"description","type":"string"},{"internalType":"string","name":"websiteURL","type":"string"},{"internalType":"string","name":"iconURL","type":"string"},{"internalType":"uint256","name":"version","type":"uint256"}],"internalType":"struct ProtocolMetadata","name":"metadata","type":"tuple"},{"components":[{"components":[{"internalType":"address","name":"adapterAddress","type":"address"},{"internalType":"string","name":"adapterType","type":"string"}],"internalType":"struct AdapterMetadata","name":"metadata","type":"tuple"},{"components":[{"components":[{"components":[{"internalType":"address","name":"token","type":"address"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"uint8","name":"decimals","type":"uint8"}],"internalType":"struct TokenMetadata","name":"metadata","type":"tuple"},{"internalType":"uint256","name":"amount","type":"uint256"}],"internalType":"struct TokenBalance","name":"base","type":"tuple"},{"components":[{"components":[{"internalType":"address","name":"token","type":"address"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"uint8","name":"decimals","type":"uint8"}],"internalType":"struct TokenMetadata","name":"metadata","type":"tuple"},{"internalType":"uint256","name":"amount","type":"uint256"}],"internalType":"struct TokenBalance[]","name":"underlying","type":"tuple[]"}],"internalType":"struct FullTokenBalance[]","name":"balances","type":"tuple[]"}],"internalType":"struct AdapterBalance[]","name":"adapterBalances","type":"tuple[]"}],"internalType":"struct ProtocolBalance[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"protocolName","type":"string"}],"name":"getProtocolMetadata","outputs":[{"components":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"description","type":"string"},{"internalType":"string","name":"websiteURL","type":"string"},{"internalType":"string","name":"iconURL","type":"string"},{"internalType":"uint256","name":"version","type":"uint256"}],"internalType":"struct ProtocolMetadata","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getProtocolNames","outputs":[{"internalType":"string[]","name":"","type":"string[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"adapter","type":"address"}],"name":"getSupportedTokens","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"tokenAdapterName","type":"string"}],"name":"getTokenAdapter","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTokenAdapterNames","outputs":[{"internalType":"string[]","name":"","type":"string[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"protocolName","type":"string"}],"name":"isValidProtocol","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"tokenAdapterName","type":"string"}],"name":"isValidTokenAdapter","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"protocolName","type":"string"},{"internalType":"uint256[]","name":"adapterIndices","type":"uint256[]"}],"name":"removeProtocolAdapters","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string[]","name":"protocolNames","type":"string[]"}],"name":"removeProtocols","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string[]","name":"tokenAdapterNames","type":"string[]"}],"name":"removeTokenAdapters","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"protocolName","type":"string"},{"internalType":"uint256","name":"index","type":"uint256"},{"internalType":"address","name":"newAdapterAddress","type":"address"},{"internalType":"address[]","name":"newSupportedTokens","type":"address[]"}],"name":"updateProtocolAdapter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"protocolName","type":"string"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"description","type":"string"},{"internalType":"string","name":"websiteURL","type":"string"},{"internalType":"string","name":"iconURL","type":"string"}],"name":"updateProtocolMetadata","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"tokenAdapterName","type":"string"},{"internalType":"address","name":"adapter","type":"address"}],"name":"updateTokenAdapter","outputs":[],"stateMutability":"nonpayable","type":"function"}]
AAVE_LENDING_POOL = EthereumContract(
address=deserialize_ethereum_address("0x398eC7346DcD622eDc5ae82352F02bE94C62d119"),
abi=[{"anonymous":False,"inputs":[{"indexed":True,"internalType":"address","name":"_reserve","type":"address"},{"indexed":True,"internalType":"address","name":"_user","type":"address"},{"indexed":False,"internalType":"uint256","name":"_amount","type":"uint256"},{"indexed":False,"internalType":"uint256","name":"_borrowRateMode","type":"uint256"},{"indexed":False,"internalType":"uint256","name":"_borrowRate","type":"uint256"},{"indexed":False,"internalType":"uint256","name":"_originationFee","type":"uint256"},{"indexed":False,"internalType":"uint256","name":"_borrowBalanceIncrease","type":"uint256"},{"indexed":True,"internalType":"uint16","name":"_referral","type":"uint16"},{"indexed":False,"internalType":"uint256","name":"_timestamp","type":"uint256"}],"name":"Borrow","type":"event"},{"anonymous":False,"inputs":[{"indexed":True,"internalType":"address","name":"_reserve","type":"address"},{"indexed":True,"internalType":"address","name":"_user","type":"address"},{"indexed":False,"internalType":"uint256","name":"_amount","type":"uint256"},{"indexed":True,"internalType":"uint16","name":"_referral","type":"uint16"},{"indexed":False,"internalType":"uint256","name":"_timestamp","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":False,"inputs":[{"indexed":True,"internalType":"address","name":"_target","type":"address"},{"indexed":True,"internalType":"address","name":"_reserve","type":"address"},{"indexed":False,"internalType":"uint256","name":"_amount","type":"uint256"},{"indexed":False,"internalType":"uint256","name":"_totalFee","type":"uint256"},{"indexed":False,"internalType":"uint256","name":"_protocolFee","type":"uint256"},{"indexed":False,"internalType":"uint256","name":"_timestamp","type":"uint256"}],"name":"FlashLoan","type":"event"},{"anonymous":False,"inputs":[{"indexed":True,"internalType":"address","name":"_collateral","type":"address"},{"indexed":True,"internalType":"address","name":"_reserve","type":"address"},{"indexed":True,"internalType":"address","name":"_user","type":"address"},{"indexed":False,"internalType":"uint256","name":"_purchaseAmount","type":"uint256"},{"indexed":False,"internalType":"uint256","name":"_liquidatedCollateralAmount","type":"uint256"},{"indexed":False,"internalType":"uint256","name":"_accruedBorrowInterest","type":"uint256"},{"indexed":False,"internalType":"address","name":"_liquidator","type":"address"},{"indexed":False,"internalType":"bool","name":"_receiveAToken","type":"bool"},{"indexed":False,"internalType":"uint256","name":"_timestamp","type":"uint256"}],"name":"LiquidationCall","type":"event"},{"anonymous":False,"inputs":[{"indexed":True,"internalType":"address","name":"_collateral","type":"address"},{"indexed":True,"internalType":"address","name":"_reserve","type":"address"},{"indexed":True,"internalType":"address","name":"_user","type":"address"},{"indexed":False,"internalType":"uint256","name":"_feeLiquidated","type":"uint256"},{"indexed":False,"internalType":"uint256","name":"_liquidatedCollateralForFee","type":"uint256"},{"indexed":False,"internalType":"uint256","name":"_timestamp","type":"uint256"}],"name":"OriginationFeeLiquidated","type":"event"},{"anonymous":False,"inputs":[{"indexed":True,"internalType":"address","name":"_reserve","type":"address"},{"indexed":True,"internalType":"address","name":"_user","type":"address"},{"indexed":False,"internalType":"uint256","name":"_newStableRate","type":"uint256"},{"indexed":False,"internalType":"uint256","name":"_borrowBalanceIncrease","type":"uint256"},{"indexed":False,"internalType":"uint256","name":"_timestamp","type":"uint256"}],"name":"RebalanceStableBorrowRate","type":"event"},{"anonymous":False,"inputs":[{"indexed":True,"internalType":"address","name":"_reserve","type":"address"},{"indexed":True,"internalType":"address","name":"_user","type":"address"},{"indexed":False,"internalType":"uint256","name":"_amount","type":"uint256"},{"indexed":False,"internalType":"uint256","name":"_timestamp","type":"uint256"}],"name":"RedeemUnderlying","type":"event"},{"anonymous":False,"inputs":[{"indexed":True,"internalType":"address","name":"_reserve","type":"address"},{"indexed":True,"internalType":"address","name":"_user","type":"address"},{"indexed":True,"internalType":"address","name":"_repayer","type":"address"},{"indexed":False,"internalType":"uint256","name":"_amountMinusFees","type":"uint256"},{"indexed":False,"internalType":"uint256","name":"_fees","type":"uint256"},{"indexed":False,"internalType":"uint256","name":"_borrowBalanceIncrease","type":"uint256"},{"indexed":False,"internalType":"uint256","name":"_timestamp","type":"uint256"}],"name":"Repay","type":"event"},{"anonymous":False,"inputs":[{"indexed":True,"internalType":"address","name":"_reserve","type":"address"},{"indexed":True,"internalType":"address","name":"_user","type":"address"}],"name":"ReserveUsedAsCollateralDisabled","type":"event"},{"anonymous":False,"inputs":[{"indexed":True,"internalType":"address","name":"_reserve","type":"address"},{"indexed":True,"internalType":"address","name":"_user","type":"address"}],"name":"ReserveUsedAsCollateralEnabled","type":"event"},{"anonymous":False,"inputs":[{"indexed":True,"internalType":"address","name":"_reserve","type":"address"},{"indexed":True,"internalType":"address","name":"_user","type":"address"},{"indexed":False,"internalType":"uint256","name":"_newRateMode","type":"uint256"},{"indexed":False,"internalType":"uint256","name":"_newRate","type":"uint256"},{"indexed":False,"internalType":"uint256","name":"_borrowBalanceIncrease","type":"uint256"},{"indexed":False,"internalType":"uint256","name":"_timestamp","type":"uint256"}],"name":"Swap","type":"event"},{"constant":True,"inputs":[],"name":"LENDINGPOOL_REVISION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":False,"stateMutability":"view","type":"function"},{"constant":True,"inputs":[],"name":"UINT_MAX_VALUE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":False,"stateMutability":"view","type":"function"},{"constant":True,"inputs":[],"name":"addressesProvider","outputs":[{"internalType":"contractLendingPoolAddressesProvider","name":"","type":"address"}],"payable":False,"stateMutability":"view","type":"function"},{"constant":True,"inputs":[],"name":"core","outputs":[{"internalType":"contractLendingPoolCore","name":"","type":"address"}],"payable":False,"stateMutability":"view","type":"function"},{"constant":True,"inputs":[],"name":"dataProvider","outputs":[{"internalType":"contractLendingPoolDataProvider","name":"","type":"address"}],"payable":False,"stateMutability":"view","type":"function"},{"constant":True,"inputs":[],"name":"parametersProvider","outputs":[{"internalType":"contractLendingPoolParametersProvider","name":"","type":"address"}],"payable":False,"stateMutability":"view","type":"function"},{"constant":False,"inputs":[{"internalType":"contractLendingPoolAddressesProvider","name":"_addressesProvider","type":"address"}],"name":"initialize","outputs":[],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":False,"inputs":[{"internalType":"address","name":"_reserve","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint16","name":"_referralCode","type":"uint16"}],"name":"deposit","outputs":[],"payable":True,"stateMutability":"payable","type":"function"},{"constant":False,"inputs":[{"internalType":"address","name":"_reserve","type":"address"},{"internalType":"addresspayable","name":"_user","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256","name":"_aTokenBalanceAfterRedeem","type":"uint256"}],"name":"redeemUnderlying","outputs":[],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":False,"inputs":[{"internalType":"address","name":"_reserve","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256","name":"_interestRateMode","type":"uint256"},{"internalType":"uint16","name":"_referralCode","type":"uint16"}],"name":"borrow","outputs":[],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":False,"inputs":[{"internalType":"address","name":"_reserve","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"addresspayable","name":"_onBehalfOf","type":"address"}],"name":"repay","outputs":[],"payable":True,"stateMutability":"payable","type":"function"},{"constant":False,"inputs":[{"internalType":"address","name":"_reserve","type":"address"}],"name":"swapBorrowRateMode","outputs":[],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":False,"inputs":[{"internalType":"address","name":"_reserve","type":"address"},{"internalType":"address","name":"_user","type":"address"}],"name":"rebalanceStableBorrowRate","outputs":[],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":False,"inputs":[{"internalType":"address","name":"_reserve","type":"address"},{"internalType":"bool","name":"_useAsCollateral","type":"bool"}],"name":"setUserUseReserveAsCollateral","outputs":[],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":False,"inputs":[{"internalType":"address","name":"_collateral","type":"address"},{"internalType":"address","name":"_reserve","type":"address"},{"internalType":"address","name":"_user","type":"address"},{"internalType":"uint256","name":"_purchaseAmount","type":"uint256"},{"internalType":"bool","name":"_receiveAToken","type":"bool"}],"name":"liquidationCall","outputs":[],"payable":True,"stateMutability":"payable","type":"function"},{"constant":False,"inputs":[{"internalType":"address","name":"_receiver","type":"address"},{"internalType":"address","name":"_reserve","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"bytes","name":"_params","type":"bytes"}],"name":"flashLoan","outputs":[],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":True,"inputs":[{"internalType":"address","name":"_reserve","type":"address"}],"name":"getReserveConfigurationData","outputs":[{"internalType":"uint256","name":"ltv","type":"uint256"},{"internalType":"uint256","name":"liquidationThreshold","type":"uint256"},{"internalType":"uint256","name":"liquidationBonus","type":"uint256"},{"internalType":"address","name":"interestRateStrategyAddress","type":"address"},{"internalType":"bool","name":"usageAsCollateralEnabled","type":"bool"},{"internalType":"bool","name":"borrowingEnabled","type":"bool"},{"internalType":"bool","name":"stableBorrowRateEnabled","type":"bool"},{"internalType":"bool","name":"isActive","type":"bool"}],"payable":False,"stateMutability":"view","type":"function"},{"constant":True,"inputs":[{"internalType":"address","name":"_reserve","type":"address"}],"name":"getReserveData","outputs":[{"internalType":"uint256","name":"totalLiquidity","type":"uint256"},{"internalType":"uint256","name":"availableLiquidity","type":"uint256"},{"internalType":"uint256","name":"totalBorrowsStable","type":"uint256"},{"internalType":"uint256","name":"totalBorrowsVariable","type":"uint256"},{"internalType":"uint256","name":"liquidityRate","type":"uint256"},{"internalType":"uint256","name":"variableBorrowRate","type":"uint256"},{"internalType":"uint256","name":"stableBorrowRate","type":"uint256"},{"internalType":"uint256","name":"averageStableBorrowRate","type":"uint256"},{"internalType":"uint256","name":"utilizationRate","type":"uint256"},{"internalType":"uint256","name":"liquidityIndex","type":"uint256"},{"internalType":"uint256","name":"variableBorrowIndex","type":"uint256"},{"internalType":"address","name":"aTokenAddress","type":"address"},{"internalType":"uint40","name":"lastUpdateTimestamp","type":"uint40"}],"payable":False,"stateMutability":"view","type":"function"},{"constant":True,"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"getUserAccountData","outputs":[{"internalType":"uint256","name":"totalLiquidityETH","type":"uint256"},{"internalType":"uint256","name":"totalCollateralETH","type":"uint256"},{"internalType":"uint256","name":"totalBorrowsETH","type":"uint256"},{"internalType":"uint256","name":"totalFeesETH","type":"uint256"},{"internalType":"uint256","name":"availableBorrowsETH","type":"uint256"},{"internalType":"uint256","name":"currentLiquidationThreshold","type":"uint256"},{"internalType":"uint256","name":"ltv","type":"uint256"},{"internalType":"uint256","name":"healthFactor","type":"uint256"}],"payable":False,"stateMutability":"view","type":"function"},{"constant":True,"inputs":[{"internalType":"address","name":"_reserve","type":"address"},{"internalType":"address","name":"_user","type":"address"}],"name":"getUserReserveData","outputs":[{"internalType":"uint256","name":"currentATokenBalance","type":"uint256"},{"internalType":"uint256","name":"currentBorrowBalance","type":"uint256"},{"internalType":"uint256","name":"principalBorrowBalance","type":"uint256"},{"internalType":"uint256","name":"borrowRateMode","type":"uint256"},{"internalType":"uint256","name":"borrowRate","type":"uint256"},{"internalType":"uint256","name":"liquidityRate","type":"uint256"},{"internalType":"uint256","name":"originationFee","type":"uint256"},{"internalType":"uint256","name":"variableBorrowIndex","type":"uint256"},{"internalType":"uint256","name":"lastUpdateTimestamp","type":"uint256"},{"internalType":"bool","name":"usageAsCollateralEnabled","type":"bool"}],"payable":False,"stateMutability":"view","type":"function"},{"constant":True,"inputs":[],"name":"getReserves","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"payable":False,"stateMutability":"view","type":"function"}],
deployed_block=9241022,
)
ATOKEN_ABI = [{"inputs":[{"internalType":"contract LendingPoolAddressesProvider","name":"_addressesProvider","type":"address"},{"internalType":"address","name":"_underlyingAsset","type":"address"},{"internalType":"uint8","name":"_underlyingAssetDecimals","type":"uint8"},{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"}],"payable":False,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":False,"inputs":[{"indexed":True,"internalType":"address","name":"owner","type":"address"},{"indexed":True,"internalType":"address","name":"spender","type":"address"},{"indexed":False,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":False,"inputs":[{"indexed":True,"internalType":"address","name":"_from","type":"address"},{"indexed":True,"internalType":"address","name":"_to","type":"address"},{"indexed":False,"internalType":"uint256","name":"_value","type":"uint256"},{"indexed":False,"internalType":"uint256","name":"_fromBalanceIncrease","type":"uint256"},{"indexed":False,"internalType":"uint256","name":"_toBalanceIncrease","type":"uint256"},{"indexed":False,"internalType":"uint256","name":"_fromIndex","type":"uint256"},{"indexed":False,"internalType":"uint256","name":"_toIndex","type":"uint256"}],"name":"BalanceTransfer","type":"event"},{"anonymous":False,"inputs":[{"indexed":True,"internalType":"address","name":"_from","type":"address"},{"indexed":False,"internalType":"uint256","name":"_value","type":"uint256"},{"indexed":False,"internalType":"uint256","name":"_fromBalanceIncrease","type":"uint256"},{"indexed":False,"internalType":"uint256","name":"_fromIndex","type":"uint256"}],"name":"BurnOnLiquidation","type":"event"},{"anonymous":False,"inputs":[{"indexed":True,"internalType":"address","name":"_from","type":"address"},{"indexed":True,"internalType":"address","name":"_to","type":"address"}],"name":"InterestRedirectionAllowanceChanged","type":"event"},{"anonymous":False,"inputs":[{"indexed":True,"internalType":"address","name":"_from","type":"address"},{"indexed":True,"internalType":"address","name":"_to","type":"address"},{"indexed":False,"internalType":"uint256","name":"_redirectedBalance","type":"uint256"},{"indexed":False,"internalType":"uint256","name":"_fromBalanceIncrease","type":"uint256"},{"indexed":False,"internalType":"uint256","name":"_fromIndex","type":"uint256"}],"name":"InterestStreamRedirected","type":"event"},{"anonymous":False,"inputs":[{"indexed":True,"internalType":"address","name":"_from","type":"address"},{"indexed":False,"internalType":"uint256","name":"_value","type":"uint256"},{"indexed":False,"internalType":"uint256","name":"_fromBalanceIncrease","type":"uint256"},{"indexed":False,"internalType":"uint256","name":"_fromIndex","type":"uint256"}],"name":"MintOnDeposit","type":"event"},{"anonymous":False,"inputs":[{"indexed":True,"internalType":"address","name":"_from","type":"address"},{"indexed":False,"internalType":"uint256","name":"_value","type":"uint256"},{"indexed":False,"internalType":"uint256","name":"_fromBalanceIncrease","type":"uint256"},{"indexed":False,"internalType":"uint256","name":"_fromIndex","type":"uint256"}],"name":"Redeem","type":"event"},{"anonymous":False,"inputs":[{"indexed":True,"internalType":"address","name":"_targetAddress","type":"address"},{"indexed":False,"internalType":"uint256","name":"_targetBalanceIncrease","type":"uint256"},{"indexed":False,"internalType":"uint256","name":"_targetIndex","type":"uint256"},{"indexed":False,"internalType":"uint256","name":"_redirectedBalanceAdded","type":"uint256"},{"indexed":False,"internalType":"uint256","name":"_redirectedBalanceRemoved","type":"uint256"}],"name":"RedirectedBalanceUpdated","type":"event"},{"anonymous":False,"inputs":[{"indexed":True,"internalType":"address","name":"from","type":"address"},{"indexed":True,"internalType":"address","name":"to","type":"address"},{"indexed":False,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"constant":True,"inputs":[],"name":"UINT_MAX_VALUE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":False,"stateMutability":"view","type":"function"},{"constant":False,"inputs":[{"internalType":"address","name":"_to","type":"address"}],"name":"allowInterestRedirectionTo","outputs":[],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":True,"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":False,"stateMutability":"view","type":"function"},{"constant":False,"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":True,"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":False,"stateMutability":"view","type":"function"},{"constant":False,"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"burnOnLiquidation","outputs":[],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":True,"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"payable":False,"stateMutability":"view","type":"function"},{"constant":False,"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":True,"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"getInterestRedirectionAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":False,"stateMutability":"view","type":"function"},{"constant":True,"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"getRedirectedBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":False,"stateMutability":"view","type":"function"},{"constant":True,"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"getUserIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":False,"stateMutability":"view","type":"function"},{"constant":False,"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":True,"inputs":[{"internalType":"address","name":"_user","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"isTransferAllowed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":False,"stateMutability":"view","type":"function"},{"constant":False,"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"mintOnDeposit","outputs":[],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":True,"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":False,"stateMutability":"view","type":"function"},{"constant":True,"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"principalBalanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":False,"stateMutability":"view","type":"function"},{"constant":False,"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"redeem","outputs":[],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":False,"inputs":[{"internalType":"address","name":"_to","type":"address"}],"name":"redirectInterestStream","outputs":[],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":False,"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"address","name":"_to","type":"address"}],"name":"redirectInterestStreamOf","outputs":[],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":True,"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":False,"stateMutability":"view","type":"function"},{"constant":True,"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":False,"stateMutability":"view","type":"function"},{"constant":False,"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":False,"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":False,"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"transferOnLiquidation","outputs":[],"payable":False,"stateMutability":"nonpayable","type":"function"},{"constant":True,"inputs":[],"name":"underlyingAssetAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":False,"stateMutability":"view","type":"function"}]
| 809.735537
| 15,005
| 0.676499
| 9,610
| 97,978
| 6.865973
| 0.047867
| 0.067018
| 0.10318
| 0.066715
| 0.913901
| 0.886439
| 0.871541
| 0.843427
| 0.838759
| 0.823134
| 0
| 0.029374
| 0.005205
| 97,978
| 120
| 15,006
| 816.483333
| 0.647587
| 0.001756
| 0
| 0.103774
| 0
| 0
| 0.621858
| 0.020787
| 0
| 0
| 0.009018
| 0
| 0
| 1
| 0
| false
| 0
| 0.028302
| 0
| 0.066038
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 9
|
89bec08e0812ae90534d451c567f1fd8dbd081c8
| 9,429
|
py
|
Python
|
models/eyetracking.py
|
ventodiventu/eyewordembed
|
040f913ba107ab4d196ae499a6aa38bd12f3fb0a
|
[
"MIT"
] | null | null | null |
models/eyetracking.py
|
ventodiventu/eyewordembed
|
040f913ba107ab4d196ae499a6aa38bd12f3fb0a
|
[
"MIT"
] | null | null | null |
models/eyetracking.py
|
ventodiventu/eyewordembed
|
040f913ba107ab4d196ae499a6aa38bd12f3fb0a
|
[
"MIT"
] | null | null | null |
import chainer
import chainer.functions as F
import chainer.initializers as I
import chainer.links as L
import chainer.optimizers as O
from chainer import reporter
import numpy as np
def toOneHot(n, n_participants):
res = np.eye(n_participants, dtype=np.float32)[n]
return res
class BaselineClassifier(chainer.Chain):
def __init__(self, mean, loss_func):
super(Baseline, self).__init__()
self.loss_func = loss_func
self.mean = mean
def __call__(self, inputs, target):
o = np.full(target.shape, self.mean, dtype=np.float32)
loss = self.loss_func(o, target)
acc = F.accuracy(F.softmax(o), target)
reporter.report({'loss': loss}, self)
reporter.report({'accuracy':acc}, self)
return loss
class EyetrackingClassifier(chainer.Chain):
def __init__(self, n_vocab, n_units, n_participants, n_classes, loss_func, out, n_layers=0, window=0, wlen=False,
pos=False, prev_fix=False, freq=False, surprisal=False, n_pos=None, n_hidden=200, n_pos_units=50, loss_ratio=1.0):
super(EyetrackingClassifier, self).__init__()
self.n_units = n_units
self.n_pos_units = n_pos_units
self.pos = pos
self.wlen = wlen
self.prev_fix = prev_fix
self.freq = freq
self.surprisal = surprisal
self.loss_ratio = loss_ratio
self.n_participants = n_participants
self.n_layers = n_layers
with self.init_scope():
self.embed = L.EmbedID(n_vocab, n_units, initialW=I.Uniform(1. / n_units))
n_inputs = n_units
if self.pos:
assert(n_pos)
self.embed_pos = L.EmbedID(n_pos, n_pos_units, initialW=I.Uniform(1. / n_pos_units))
n_inputs += n_pos_units
if self.prev_fix:
n_inputs += n_participants
if self.wlen:
n_inputs += 1
if self.freq:
n_inputs += 1
if self.surprisal:
n_inputs += 1
n_inputs *= (window + 1)
if n_layers > 0:
self.layer0 = L.Linear(n_inputs, n_hidden, initialW=I.Uniform(1. / n_hidden))
for i in range(1, n_layers):
setattr(self, 'layer{}'.format(i), L.Linear(n_hidden, n_hidden, initialW=I.Uniform(1. / n_hidden)))
self.outlayer = L.Linear(n_hidden, n_classes, initialW=I.Uniform(1. / n_hidden))
else:
self.outlayer = L.Linear(n_inputs, n_classes, initialW=I.Uniform(1. / n_inputs))
self.out = out
self.loss_func = loss_func
def _embed_input(self, inputs):
variables = []
w = chainer.Variable(inputs['words'], name='words')
e_w = F.reshape(self.embed(w), (-1,w.shape[1]*self.n_units))
variables.append(e_w)
if self.pos:
p = chainer.Variable(inputs['pos'], name='pos_tags')
e_p = F.reshape(self.embed_pos(p), (-1,w.shape[1]*self.n_pos_units))
e_p.name = 'pos_embeddings'
variables.append(e_p)
if self.wlen:
l = chainer.Variable(inputs['wlen'], name='word_lengths')
variables.append(l)
if self.prev_fix:
t = chainer.Variable(toOneHot(inputs['prev_fix'], self.n_participants), name='previous_fixations')
t = F.reshape(t, (-1, w.shape[1]*self.n_participants))
t.name = 'previous_fixations'
variables.append(t)
if self.freq:
f = chainer.Variable(inputs['freq'], name='frequency')
variables.append(f)
if self.surprisal:
s = chainer.Variable(inputs['surprisal'], name='surprisal')
variables.append(s)
h = F.concat(tuple(variables), axis=1)# * (1. / w.shape[1])
h.name = 'concatenated_word_embeddings'
return h
def __call__(self, inputs, target):
target = chainer.Variable(target, name='target')
h = self._embed_input(inputs) # called from superclass
for i in range(self.n_layers):
h = self.out(getattr(self,'layer{}'.format(i))(h))
o = self.outlayer(h)
o.name = 'output_time_prediction'
loss = self.loss_func(o, target)
acc = F.accuracy(F.softmax(o), target)
reporter.report({'loss': loss}, self)
reporter.report({'accuracy':acc}, self)
return self.loss_ratio * loss
def inference(self, inputs):
h = self._embed_input(inputs) # called from superclass
for i in range(self.n_layers):
h = self.out(getattr(self,'layer{}'.format(i))(h))
o = self.outlayer(h)
return F.softmax(o)
class BaselineLinreg(chainer.Chain):
def __init__(self, mean, loss_func):
super(Baseline, self).__init__()
self.loss_func = loss_func
self.mean = mean
def __call__(self, inputs, target):
loss = self.loss_func(np.full(target.shape, self.mean, dtype=np.float32), target)
reporter.report({'loss': loss}, self)
return loss
class EyetrackingLinreg(chainer.Chain):
def __init__(self, n_vocab, n_units, loss_func, out, window=0, n_layers=0, n_hidden=200, wlen=False,
pos=False, prev_fix=False, freq=False, surprisal=False, n_pos=None, n_pos_units=50, loss_ratio=1.0):
super(EyetrackingLinreg, self).__init__()
self.n_units = n_units
self.n_pos_units = n_pos_units
self.pos = pos
self.wlen = wlen
self.prev_fix = prev_fix
self.freq = freq
self.surprisal = surprisal
self.loss_ratio = loss_ratio
self.n_layers = n_layers
self.n_pos = n_pos
with self.init_scope():
self.embed = L.EmbedID(n_vocab, n_units, initialW=I.Uniform(1. / n_units))
n_inputs = n_units
if self.pos:
assert(n_pos)
## embedding
# self.embed_pos = L.EmbedID(n_pos, n_pos_units, initialW=I.Uniform(1. / n_pos_units))
# n_inputs += n_pos_units
## one-hot
n_inputs += n_pos
if self.prev_fix:
n_inputs += 1
if self.wlen:
n_inputs += 1
if self.freq:
n_inputs += 1
if self.surprisal:
n_inputs += 1
n_inputs *= (window + 1)
if n_layers > 0:
self.layer0 = L.Linear(n_inputs, n_hidden, initialW=I.Uniform(1. / n_hidden))
for i in range(1, n_layers):
setattr(self, 'layer{}'.format(i), L.Linear(n_hidden, n_hidden, initialW=I.Uniform(1. / n_hidden)))
self.outlayer = L.Linear(n_hidden, 1, initialW=I.Uniform(1. / n_hidden))
else:
self.outlayer = L.Linear(n_inputs, 1, initialW=I.Uniform(1. / n_inputs))
self.out = out
self.loss_func = loss_func
def _embed_input(self, inputs):
variables = []
w = chainer.Variable(inputs['words'], name='words')
e_w = F.reshape(self.embed(w), (-1,w.shape[1]*self.n_units))
variables.append(e_w)
if self.pos:
## embedding
# p = chainer.Variable(inputs['pos'], name='pos_tags')
# e_p = F.reshape(self.embed_pos(p), (-1,w.shape[1]*self.n_pos_units))
# e_p.name = 'pos_embeddings'
## one-hot
p = chainer.Variable(toOneHot(inputs['pos'],self.n_pos), name='pos_tags')
e_p = F.reshape(p, (-1,w.shape[1]*self.n_pos))
e_p.name = 'postags_onehot'
variables.append(e_p)
if self.wlen:
l = chainer.Variable(inputs['wlen'], name='word_lengths')
variables.append(l)
if self.prev_fix:
t = chainer.Variable(inputs['prev_fix'], name='previous_fixations')
t.name = 'previous_fixations'
variables.append(t)
if self.freq:
f = chainer.Variable(inputs['freq'], name='frequency')
variables.append(f)
if self.surprisal:
s = chainer.Variable(inputs['surprisal'], name='surprisal')
variables.append(s)
h = F.concat(tuple(variables), axis=1)# * (1. / w.shape[1])
h.name = 'concatenated_word_embeddings'
return h
def __call__(self, inputs, target):
target = chainer.Variable(target, name='target')
h = self._embed_input(inputs) # called from superclass
for i in range(self.n_layers):
h = self.out(getattr(self,'layer{}'.format(i))(h))
o = self.out(self.outlayer(h))
o.name = 'output_time_prediction'
loss = self.loss_func(o, target)
reporter.report({'loss': loss}, self)
return self.loss_ratio * loss
def inference(self, inputs):
h = self._embed_input(inputs) # called from superclass
for i in range(self.n_layers):
h = self.out(getattr(self,'layer{}'.format(i))(h))
o = self.out(self.outlayer(h))
return o.data
def convert(batch, device):
x, targets = batch
for k in x:
if device >= 0:
x[k] = cuda.to_gpu(x[k])
if device >= 0:
targets = cuda.to_gpu(targets)
return x, targets
| 35.052045
| 122
| 0.570262
| 1,242
| 9,429
| 4.123994
| 0.10467
| 0.019524
| 0.0246
| 0.039828
| 0.830925
| 0.824678
| 0.81394
| 0.799102
| 0.791097
| 0.751855
| 0
| 0.011162
| 0.306395
| 9,429
| 269
| 123
| 35.052045
| 0.772018
| 0.04518
| 0
| 0.758621
| 0
| 0
| 0.048753
| 0.011131
| 0
| 0
| 0
| 0
| 0.009852
| 1
| 0.068966
| false
| 0
| 0.034483
| 0
| 0.172414
| 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
|
98356f5d77cf92f49a41129352bed7398e07c195
| 1,260
|
py
|
Python
|
cafeteria/images/migrations/0004_auto_20190607_2340.py
|
devGW/PostApp
|
fda99fbc838ee809b1ff28445d66cbd48e2b5016
|
[
"MIT"
] | null | null | null |
cafeteria/images/migrations/0004_auto_20190607_2340.py
|
devGW/PostApp
|
fda99fbc838ee809b1ff28445d66cbd48e2b5016
|
[
"MIT"
] | 1
|
2019-08-31T01:07:46.000Z
|
2019-09-01T15:10:42.000Z
|
cafeteria/images/migrations/0004_auto_20190607_2340.py
|
devGW/PostApp
|
fda99fbc838ee809b1ff28445d66cbd48e2b5016
|
[
"MIT"
] | null | null | null |
# Generated by Django 2.2.1 on 2019-06-07 14:40
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('images', '0003_auto_20190607_2303'),
]
operations = [
migrations.AddField(
model_name='comment',
name='created_at',
field=models.DateTimeField(auto_now_add=True, null=True),
),
migrations.AddField(
model_name='comment',
name='updated_at',
field=models.DateTimeField(auto_now=True, null=True),
),
migrations.AddField(
model_name='image',
name='created_at',
field=models.DateTimeField(auto_now_add=True, null=True),
),
migrations.AddField(
model_name='image',
name='updated_at',
field=models.DateTimeField(auto_now=True, null=True),
),
migrations.AddField(
model_name='like',
name='created_at',
field=models.DateTimeField(auto_now_add=True, null=True),
),
migrations.AddField(
model_name='like',
name='updated_at',
field=models.DateTimeField(auto_now=True, null=True),
),
]
| 28.636364
| 69
| 0.565079
| 128
| 1,260
| 5.375
| 0.3125
| 0.156977
| 0.200581
| 0.235465
| 0.78343
| 0.78343
| 0.723837
| 0.723837
| 0.723837
| 0.697674
| 0
| 0.036131
| 0.319048
| 1,260
| 43
| 70
| 29.302326
| 0.765734
| 0.035714
| 0
| 0.810811
| 1
| 0
| 0.099753
| 0.018961
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.027027
| 0
| 0.108108
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 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
| 9
|
9865f63f879c56309facebaefeb974099f16cf68
| 6,978
|
py
|
Python
|
test/issues/test_008.py
|
ajnelson-nist/pySHACL
|
eebb546c981d5e7de72c8e51b0d9eaf14960e807
|
[
"Apache-2.0"
] | 167
|
2018-09-05T11:28:28.000Z
|
2022-03-29T13:31:02.000Z
|
test/issues/test_008.py
|
ajnelson-nist/pySHACL
|
eebb546c981d5e7de72c8e51b0d9eaf14960e807
|
[
"Apache-2.0"
] | 123
|
2018-09-07T04:27:05.000Z
|
2022-03-25T15:07:56.000Z
|
test/issues/test_008.py
|
ajnelson-nist/pySHACL
|
eebb546c981d5e7de72c8e51b0d9eaf14960e807
|
[
"Apache-2.0"
] | 50
|
2018-09-14T11:12:31.000Z
|
2022-03-25T15:00:21.000Z
|
# -*- coding: utf-8 -*-
#
"""
https://github.com/RDFLib/pySHACL/issues/8
"""
from pyshacl import validate
mixed_file_text = '''
# baseURI: http://semanticprocess.x10host.com/Ontology/Testsparql
# imports: http://datashapes.org/dash
# prefix: Testsparql
@prefix Testsparql: <http://semanticprocess.x10host.com/Ontology/Testsparql#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
<http://semanticprocess.x10host.com/Ontology/Testsparql>
rdf:type owl:Ontology ;
owl:imports <http://datashapes.org/dash> ;
owl:versionInfo "Created with TopBraid Composer" ;
sh:declare Testsparql:PrefixDeclaration ;
.
Testsparql:Crane
rdf:type rdfs:Class ;
rdfs:subClassOf owl:Class ;
.
Testsparql:Crane_1
rdf:type Testsparql:Crane ;
Testsparql:Cranecapacity "500"^^xsd:decimal ;
.
Testsparql:Crane_2
rdf:type Testsparql:Crane ;
Testsparql:Cranecapacity "5000"^^xsd:decimal ;
.
Testsparql:Cranecapacity
rdf:type owl:DatatypeProperty ;
rdfs:domain Testsparql:Crane ;
rdfs:range xsd:decimal ;
rdfs:subPropertyOf owl:topDataProperty ;
.
Testsparql:Module
rdf:type rdfs:Class ;
rdfs:subClassOf owl:Class ;
.
Testsparql:Module_1
rdf:type Testsparql:Module ;
Testsparql:Moduleweight "800"^^xsd:decimal ;
.
Testsparql:Moduleweight
rdf:type owl:DatatypeProperty ;
rdfs:domain Testsparql:Module ;
rdfs:range xsd:decimal ;
rdfs:subPropertyOf owl:topDataProperty ;
.
Testsparql:PrefixDeclaration
rdf:type sh:PrefixDeclaration ;
sh:namespace "http://semanticprocess.x10host.com/Ontology/Testsparql#"^^xsd:anyURI ;
sh:prefix "Testsparql" ;
.
Testsparql:Process
rdf:type rdfs:Class ;
rdf:type sh:NodeShape ;
rdfs:subClassOf owl:Class ;
sh:sparql [
sh:message "Invalid process" ;
sh:prefixes <http://semanticprocess.x10host.com/Ontology/Testsparql> ;
sh:select """SELECT $this
WHERE {
$this rdf:type Testsparql:Process.
$this Testsparql:hasResource ?crane.
$this Testsparql:hasAssociation ?module.
?crane Testsparql:Cranecapacity ?cc.
?module Testsparql:Moduleweight ?mw.
FILTER (?cc <= ?mw).
}""" ;
] ;
.
Testsparql:ProcessID
rdf:type owl:DatatypeProperty ;
rdfs:domain Testsparql:Process ;
rdfs:range xsd:string ;
rdfs:subPropertyOf owl:topDataProperty ;
.
Testsparql:Process_1
rdf:type Testsparql:Process ;
Testsparql:ProcessID "P1" ;
Testsparql:hasAssociation Testsparql:Module_1 ;
Testsparql:hasResource Testsparql:Crane_1 ;
.
Testsparql:Process_2
rdf:type Testsparql:Process ;
Testsparql:ProcessID "P2" ;
Testsparql:hasAssociation Testsparql:Module_1 ;
Testsparql:hasResource Testsparql:Crane_2 ;
.
Testsparql:hasAssociation
rdf:type owl:ObjectProperty ;
rdfs:domain Testsparql:Process ;
rdfs:range Testsparql:Module ;
rdfs:subPropertyOf owl:topObjectProperty ;
.
Testsparql:hasResource
rdf:type owl:ObjectProperty ;
rdfs:domain Testsparql:Process ;
rdfs:range Testsparql:Crane ;
rdfs:subPropertyOf owl:topObjectProperty ;
.
'''
shacl_file_text = '''
@prefix Testsparql: <http://semanticprocess.x10host.com/Ontology/Testsparql#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
<http://semanticprocess.x10host.com/Ontology/Testsparql>
rdf:type owl:Ontology ;
owl:imports <http://datashapes.org/dash> ;
owl:versionInfo "Created with TopBraid Composer" ;
sh:declare Testsparql:PrefixDeclaration ;
.
Testsparql:PrefixDeclaration
rdf:type sh:PrefixDeclaration ;
sh:namespace "http://semanticprocess.x10host.com/Ontology/Testsparql#"^^xsd:anyURI ;
sh:prefix "Testsparql" ;
.
Testsparql:Process
rdf:type rdfs:Class ;
rdf:type sh:NodeShape ;
rdfs:subClassOf owl:Class ;
sh:sparql [
sh:message "Invalid process" ;
sh:prefixes <http://semanticprocess.x10host.com/Ontology/Testsparql> ;
sh:select """SELECT $this
WHERE {
$this rdf:type Testsparql:Process.
$this Testsparql:hasResource ?crane.
$this Testsparql:hasAssociation ?module.
?crane Testsparql:Cranecapacity ?cc.
?module Testsparql:Moduleweight ?mw.
FILTER (?cc <= ?mw).
}""" ;
] ;
.
'''
data_file_text = '''
@prefix Testsparql: <http://semanticprocess.x10host.com/Ontology/Testsparql#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
Testsparql:Crane
rdf:type rdfs:Class ;
rdfs:subClassOf owl:Class ;
.
Testsparql:Crane_1
rdf:type Testsparql:Crane ;
Testsparql:Cranecapacity "500"^^xsd:decimal ;
.
Testsparql:Crane_2
rdf:type Testsparql:Crane ;
Testsparql:Cranecapacity "5000"^^xsd:decimal ;
.
Testsparql:Cranecapacity
rdf:type owl:DatatypeProperty ;
rdfs:domain Testsparql:Crane ;
rdfs:range xsd:decimal ;
rdfs:subPropertyOf owl:topDataProperty ;
.
Testsparql:Module
rdf:type rdfs:Class ;
rdfs:subClassOf owl:Class ;
.
Testsparql:Module_1
rdf:type Testsparql:Module ;
Testsparql:Moduleweight "800"^^xsd:decimal ;
.
Testsparql:Moduleweight
rdf:type owl:DatatypeProperty ;
rdfs:domain Testsparql:Module ;
rdfs:range xsd:decimal ;
rdfs:subPropertyOf owl:topDataProperty ;
.
Testsparql:Process
rdf:type rdfs:Class ;
rdfs:subClassOf owl:Class ;
.
Testsparql:ProcessID
rdf:type owl:DatatypeProperty ;
rdfs:domain Testsparql:Process ;
rdfs:range xsd:string ;
rdfs:subPropertyOf owl:topDataProperty ;
.
Testsparql:Process_1
rdf:type Testsparql:Process ;
Testsparql:ProcessID "P1" ;
Testsparql:hasAssociation Testsparql:Module_1 ;
Testsparql:hasResource Testsparql:Crane_1 ;
.
Testsparql:Process_2
rdf:type Testsparql:Process ;
Testsparql:ProcessID "P2" ;
Testsparql:hasAssociation Testsparql:Module_1 ;
Testsparql:hasResource Testsparql:Crane_2 ;
.
Testsparql:hasAssociation
rdf:type owl:ObjectProperty ;
rdfs:domain Testsparql:Process ;
rdfs:range Testsparql:Module ;
rdfs:subPropertyOf owl:topObjectProperty ;
.
Testsparql:hasResource
rdf:type owl:ObjectProperty ;
rdfs:domain Testsparql:Process ;
rdfs:range Testsparql:Crane ;
rdfs:subPropertyOf owl:topObjectProperty ;
.
'''
def test_008():
res1 = validate(mixed_file_text, data_graph_format='turtle', shacl_graph_format='turtle', inference='both', debug=True)
conforms, graph, string = res1
assert not conforms
res2 = validate(data_file_text, shacl_graph=shacl_file_text, data_graph_format='turtle', shacl_graph_format='turtle', inference='both', debug=True)
conforms, graph, string = res2
assert not conforms
| 28.716049
| 151
| 0.734738
| 844
| 6,978
| 6.027251
| 0.129147
| 0.048162
| 0.026538
| 0.035384
| 0.956359
| 0.950855
| 0.94024
| 0.94024
| 0.94024
| 0.93277
| 0
| 0.026142
| 0.133849
| 6,978
| 242
| 152
| 28.834711
| 0.81552
| 0.009315
| 0
| 0.80543
| 0
| 0.027149
| 0.929306
| 0.130668
| 0
| 0
| 0
| 0
| 0.00905
| 1
| 0.004525
| false
| 0
| 0.0181
| 0
| 0.022624
| 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
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
987d9b8c613554f308649cbc675a993556a26314
| 144
|
py
|
Python
|
ACM-Solution/Pascal'sT.py
|
wasi0013/Python-CodeBase
|
4a7a36395162f68f84ded9085fa34cc7c9b19233
|
[
"MIT"
] | 2
|
2016-04-26T15:40:40.000Z
|
2018-07-18T10:16:42.000Z
|
ACM-Solution/Pascal'sT.py
|
wasi0013/Python-CodeBase
|
4a7a36395162f68f84ded9085fa34cc7c9b19233
|
[
"MIT"
] | 1
|
2016-04-26T15:44:15.000Z
|
2016-04-29T14:44:40.000Z
|
ACM-Solution/Pascal'sT.py
|
wasi0013/Python-CodeBase
|
4a7a36395162f68f84ded9085fa34cc7c9b19233
|
[
"MIT"
] | 1
|
2018-10-02T16:12:19.000Z
|
2018-10-02T16:12:19.000Z
|
exec('t=int(input())+1;R=[[1]];exec("R+=[list(map(sum,zip(R[-1]+[0],[0]+R[-1])))];"*t);print(" ".join("%d"%i for i in R[t-1]));'*int(input()))
| 72
| 143
| 0.479167
| 32
| 144
| 2.15625
| 0.53125
| 0.086957
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.051095
| 0.048611
| 144
| 1
| 144
| 144
| 0.452555
| 0
| 0
| 0
| 0
| 1
| 0.846154
| 0.615385
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
|
0
| 8
|
98ad20fd81768c65669eabd9c601f2a81b23bd53
| 74,288
|
py
|
Python
|
model_lr_and_gdbt_and_xgboost/feature_construct/feature_construct_part_3.py
|
Goooaaal/ali_freshman_compatiton
|
8d3dd71f0757cb08d915f89daf103530b550f003
|
[
"Apache-2.0"
] | 4
|
2018-09-12T05:02:51.000Z
|
2020-10-06T08:48:19.000Z
|
model_lr_and_gdbt_and_xgboost/feature_construct/feature_construct_part_3.py
|
Goooaaal/ali_freshman_compatiton
|
8d3dd71f0757cb08d915f89daf103530b550f003
|
[
"Apache-2.0"
] | null | null | null |
model_lr_and_gdbt_and_xgboost/feature_construct/feature_construct_part_3.py
|
Goooaaal/ali_freshman_compatiton
|
8d3dd71f0757cb08d915f89daf103530b550f003
|
[
"Apache-2.0"
] | null | null | null |
##### file path
# input
path_df_D = "tianchi_fresh_comp_train_user.csv"
path_df_part_1 = "df_part_1.csv"
path_df_part_2 = "df_part_2.csv"
path_df_part_3 = "df_part_3.csv"
path_df_part_1_tar = "df_part_1_tar.csv"
path_df_part_2_tar = "df_part_2_tar.csv"
path_df_part_1_uic_label = "df_part_1_uic_label.csv"
path_df_part_2_uic_label = "df_part_2_uic_label.csv"
path_df_part_3_uic = "df_part_3_uic.csv"
# output
path_df_part_1_U = "df_part_1_U.csv"
path_df_part_1_I = "df_part_1_I.csv"
path_df_part_1_C = "df_part_1_C.csv"
path_df_part_1_IC = "df_part_1_IC.csv"
path_df_part_1_UI = "df_part_1_UI.csv"
path_df_part_1_UC = "df_part_1_UC.csv"
path_df_part_2_U = "df_part_2_U.csv"
path_df_part_2_I = "df_part_2_I.csv"
path_df_part_2_C = "df_part_2_C.csv"
path_df_part_2_IC = "df_part_2_IC.csv"
path_df_part_2_UI = "df_part_2_UI.csv"
path_df_part_2_UC = "df_part_2_UC.csv"
path_df_part_3_U = "df_part_3_U.csv"
path_df_part_3_I = "df_part_3_I.csv"
path_df_part_3_C = "df_part_3_C.csv"
path_df_part_3_IC = "df_part_3_IC.csv"
path_df_part_3_UI = "df_part_3_UI.csv"
path_df_part_3_UC = "df_part_3_UC.csv"
import pandas as pd
import numpy as np
##========================================================##
##======================== Part 3 ========================##
##========================================================##
###########################################
'''Step 1.1 feature data set U of df_part_3
(1)
u_b1_count_in_6
u_b2_count_in_6
u_b3_count_in_6
u_b4_count_in_6
u_b_count_in_6
(2)
u_b1_count_in_3
u_b2_count_in_3
u_b3_count_in_3
u_b4_count_in_3
u_b_count_in_3
(2)
u_b1_count_in_1
u_b2_count_in_1
u_b3_count_in_1
u_b4_count_in_1
u_b_count_in_1
(3)
u_b4_rate (in_6)
u_b4_diff_hours (in_6)
'''
# loading data
path_df = open(path_df_part_3, 'r')
try:
df_part_3 = pd.read_csv(path_df, index_col=False, parse_dates=[0])
df_part_3.columns = ['time', 'user_id', 'item_id', 'behavior_type', 'item_category']
finally:
path_df.close()
# u_b_count_in_6
df_part_3['cumcount'] = df_part_3.groupby(['user_id', 'behavior_type']).cumcount()
df_part_3_u_b_count_in_6 = df_part_3.drop_duplicates(['user_id', 'behavior_type'], 'last')[
['user_id', 'behavior_type', 'cumcount']]
df_part_3_u_b_count_in_6 = pd.get_dummies(df_part_3_u_b_count_in_6['behavior_type']).join(
df_part_3_u_b_count_in_6[['user_id', 'cumcount']])
df_part_3_u_b_count_in_6.rename(columns={1: 'behavior_type_1',
2: 'behavior_type_2',
3: 'behavior_type_3',
4: 'behavior_type_4'}, inplace=True)
df_part_3_u_b_count_in_6['u_b1_count_in_6'] = df_part_3_u_b_count_in_6['behavior_type_1'] * (
df_part_3_u_b_count_in_6['cumcount'] + 1)
df_part_3_u_b_count_in_6['u_b2_count_in_6'] = df_part_3_u_b_count_in_6['behavior_type_2'] * (
df_part_3_u_b_count_in_6['cumcount'] + 1)
df_part_3_u_b_count_in_6['u_b3_count_in_6'] = df_part_3_u_b_count_in_6['behavior_type_3'] * (
df_part_3_u_b_count_in_6['cumcount'] + 1)
df_part_3_u_b_count_in_6['u_b4_count_in_6'] = df_part_3_u_b_count_in_6['behavior_type_4'] * (
df_part_3_u_b_count_in_6['cumcount'] + 1)
df_part_3_u_b_count_in_6 = df_part_3_u_b_count_in_6.groupby('user_id').agg({'u_b1_count_in_6': np.sum,
'u_b2_count_in_6': np.sum,
'u_b3_count_in_6': np.sum,
'u_b4_count_in_6': np.sum})
df_part_3_u_b_count_in_6.reset_index(inplace=True)
df_part_3_u_b_count_in_6['u_b_count_in_6'] = df_part_3_u_b_count_in_6[['u_b1_count_in_6',
'u_b2_count_in_6',
'u_b3_count_in_6',
'u_b4_count_in_6']].apply(lambda x: x.sum(),
axis=1)
# u_b_count_in_3
df_part_3_in_3 = df_part_3[df_part_3['time'] >= np.datetime64('2014-12-16')]
df_part_3_in_3['cumcount'] = df_part_3_in_3.groupby(['user_id', 'behavior_type']).cumcount()
df_part_3_u_b_count_in_3 = df_part_3.drop_duplicates(['user_id', 'behavior_type'], 'last')[
['user_id', 'behavior_type', 'cumcount']]
df_part_3_u_b_count_in_3 = pd.get_dummies(df_part_3_u_b_count_in_3['behavior_type']).join(
df_part_3_u_b_count_in_3[['user_id', 'cumcount']])
df_part_3_u_b_count_in_3.rename(columns={1: 'behavior_type_1',
2: 'behavior_type_2',
3: 'behavior_type_3',
4: 'behavior_type_4'}, inplace=True)
df_part_3_u_b_count_in_3['u_b1_count_in_3'] = df_part_3_u_b_count_in_3['behavior_type_1'] * (
df_part_3_u_b_count_in_3['cumcount'] + 1)
df_part_3_u_b_count_in_3['u_b2_count_in_3'] = df_part_3_u_b_count_in_3['behavior_type_2'] * (
df_part_3_u_b_count_in_3['cumcount'] + 1)
df_part_3_u_b_count_in_3['u_b3_count_in_3'] = df_part_3_u_b_count_in_3['behavior_type_3'] * (
df_part_3_u_b_count_in_3['cumcount'] + 1)
df_part_3_u_b_count_in_3['u_b4_count_in_3'] = df_part_3_u_b_count_in_3['behavior_type_4'] * (
df_part_3_u_b_count_in_3['cumcount'] + 1)
df_part_3_u_b_count_in_3 = df_part_3_u_b_count_in_3.groupby('user_id').agg({'u_b1_count_in_3': np.sum,
'u_b2_count_in_3': np.sum,
'u_b3_count_in_3': np.sum,
'u_b4_count_in_3': np.sum})
df_part_3_u_b_count_in_3.reset_index(inplace=True)
df_part_3_u_b_count_in_3['u_b_count_in_3'] = df_part_3_u_b_count_in_3[['u_b1_count_in_3',
'u_b2_count_in_3',
'u_b3_count_in_3',
'u_b4_count_in_3']].apply(lambda x: x.sum(),
axis=1)
# u_b_count_in_1
df_part_3_in_1 = df_part_3[df_part_3['time'] >= np.datetime64('2014-12-18')]
df_part_3_in_1['cumcount'] = df_part_3_in_1.groupby(['user_id', 'behavior_type']).cumcount()
df_part_3_u_b_count_in_1 = df_part_3_in_1.drop_duplicates(['user_id', 'behavior_type'], 'last')[
['user_id', 'behavior_type', 'cumcount']]
df_part_3_u_b_count_in_1 = pd.get_dummies(df_part_3_u_b_count_in_1['behavior_type']).join(
df_part_3_u_b_count_in_1[['user_id', 'cumcount']])
df_part_3_u_b_count_in_1.rename(columns={1: 'behavior_type_1',
2: 'behavior_type_2',
3: 'behavior_type_3',
4: 'behavior_type_4'}, inplace=True)
df_part_3_u_b_count_in_1['u_b1_count_in_1'] = df_part_3_u_b_count_in_1['behavior_type_1'] * (
df_part_3_u_b_count_in_1['cumcount'] + 1)
df_part_3_u_b_count_in_1['u_b2_count_in_1'] = df_part_3_u_b_count_in_1['behavior_type_2'] * (
df_part_3_u_b_count_in_1['cumcount'] + 1)
df_part_3_u_b_count_in_1['u_b3_count_in_1'] = df_part_3_u_b_count_in_1['behavior_type_3'] * (
df_part_3_u_b_count_in_1['cumcount'] + 1)
df_part_3_u_b_count_in_1['u_b4_count_in_1'] = df_part_3_u_b_count_in_1['behavior_type_4'] * (
df_part_3_u_b_count_in_1['cumcount'] + 1)
df_part_3_u_b_count_in_1 = df_part_3_u_b_count_in_1.groupby('user_id').agg({'u_b1_count_in_1': np.sum,
'u_b2_count_in_1': np.sum,
'u_b3_count_in_1': np.sum,
'u_b4_count_in_1': np.sum})
df_part_3_u_b_count_in_1.reset_index(inplace=True)
df_part_3_u_b_count_in_1['u_b_count_in_1'] = df_part_3_u_b_count_in_1[['u_b1_count_in_1',
'u_b2_count_in_1',
'u_b3_count_in_1',
'u_b4_count_in_1']].apply(lambda x: x.sum(),
axis=1)
# merge the result of count_in_6, count_in_3, count_in_1
df_part_3_u_b_count = pd.merge(df_part_3_u_b_count_in_6,
df_part_3_u_b_count_in_3, on=['user_id'], how='left').fillna(0)
df_part_3_u_b_count = pd.merge(df_part_3_u_b_count,
df_part_3_u_b_count_in_1, on=['user_id'], how='left').fillna(0)
df_part_3_u_b_count[['u_b1_count_in_6',
'u_b2_count_in_6',
'u_b3_count_in_6',
'u_b4_count_in_6',
'u_b_count_in_6',
'u_b1_count_in_3',
'u_b2_count_in_3',
'u_b3_count_in_3',
'u_b4_count_in_3',
'u_b_count_in_3',
'u_b1_count_in_1',
'u_b2_count_in_1',
'u_b3_count_in_1',
'u_b4_count_in_1',
'u_b_count_in_1']] = df_part_3_u_b_count[['u_b1_count_in_6',
'u_b2_count_in_6',
'u_b3_count_in_6',
'u_b4_count_in_6',
'u_b_count_in_6',
'u_b1_count_in_3',
'u_b2_count_in_3',
'u_b3_count_in_3',
'u_b4_count_in_3',
'u_b_count_in_3',
'u_b1_count_in_1',
'u_b2_count_in_1',
'u_b3_count_in_1',
'u_b4_count_in_1',
'u_b_count_in_1']].astype(int)
# u_b4_rate
df_part_3_u_b_count['u_b4_rate'] = df_part_3_u_b_count['u_b4_count_in_6'] / df_part_3_u_b_count['u_b_count_in_6']
# u_b4_diff_time
df_part_3 = df_part_3.sort_values(by=['user_id', 'time'])
df_part_3_u_b4_time = df_part_3[df_part_3['behavior_type'] == 4].drop_duplicates(['user_id'], 'first')[
['user_id', 'time']]
df_part_3_u_b4_time.columns = ['user_id', 'b4_first_time']
df_part_3_u_b_time = df_part_3.drop_duplicates(['user_id'], 'first')[['user_id', 'time']]
df_part_3_u_b_time.columns = ['user_id', 'b_first_time']
df_part_3_u_b_b4_time = pd.merge(df_part_3_u_b_time, df_part_3_u_b4_time, on=['user_id'])
df_part_3_u_b_b4_time['u_b4_diff_time'] = df_part_3_u_b_b4_time['b4_first_time'] - df_part_3_u_b_b4_time['b_first_time']
df_part_3_u_b_b4_time = df_part_3_u_b_b4_time[['user_id', 'u_b4_diff_time']]
df_part_3_u_b_b4_time['u_b4_diff_hours'] = df_part_3_u_b_b4_time['u_b4_diff_time'].apply(
lambda x: x.days * 24 + x.seconds // 3600)
# generating feature set U
f_U_part_3 = pd.merge(df_part_3_u_b_count,
df_part_3_u_b_b4_time,
on=['user_id'], how='left')[['user_id',
'u_b1_count_in_6',
'u_b2_count_in_6',
'u_b3_count_in_6',
'u_b4_count_in_6',
'u_b_count_in_6',
'u_b1_count_in_3',
'u_b2_count_in_3',
'u_b3_count_in_3',
'u_b4_count_in_3',
'u_b_count_in_3',
'u_b1_count_in_1',
'u_b2_count_in_1',
'u_b3_count_in_1',
'u_b4_count_in_1',
'u_b_count_in_1',
'u_b4_rate',
'u_b4_diff_hours']]
# write to csv file
f_U_part_3 = f_U_part_3.round({'u_b4_rate': 3})
f_U_part_3.to_csv(path_df_part_3_U, index=False)
###########################################
'''Step 1.2 feature data set I of df_part_3
(1)
i_u_count_in_6
i_u_count_in_3
i_u_count_in_1
(2)
i_b1_count_in_6
i_b2_count_in_6
i_b3_count_in_6
i_b4_count_in_6
i_b_count_in_6
i_b1_count_in_3
i_b2_count_in_3
i_b3_count_in_3
i_b4_count_in_3
i_b_count_in_3
i_b1_count_in_1
i_b2_count_in_1
i_b3_count_in_1
i_b4_count_in_1
i_b_count_in_1
(3)
i_b4_rate (in_6)
i_b4_diff_hours (in_6)
'''
# loading data
path_df = open(path_df_part_3, 'r')
try:
df_part_3 = pd.read_csv(path_df, index_col=False, parse_dates=[0])
df_part_3.columns = ['time', 'user_id', 'item_id', 'behavior_type', 'item_category']
finally:
path_df.close()
# i_u_count_in_6
df_part_3_in_6 = df_part_3.drop_duplicates(['item_id', 'user_id'])
df_part_3_in_6['i_u_count_in_6'] = df_part_3_in_6.groupby('item_id').cumcount() + 1
df_part_3_i_u_count_in_6 = df_part_3_in_6.drop_duplicates(['item_id'], 'last')[['item_id', 'i_u_count_in_6']]
# i_u_count_in_3
df_part_3_in_3 = df_part_3[df_part_3['time'] >= np.datetime64('2014-12-16')].drop_duplicates(['item_id', 'user_id'])
df_part_3_in_3['i_u_count_in_3'] = df_part_3_in_3.groupby('item_id').cumcount() + 1
df_part_3_i_u_count_in_3 = df_part_3_in_3.drop_duplicates(['item_id'], 'last')[['item_id', 'i_u_count_in_3']]
# i_u_count_in_1
df_part_3_in_1 = df_part_3[df_part_3['time'] >= np.datetime64('2014-12-18')].drop_duplicates(['item_id', 'user_id'])
df_part_3_in_1['i_u_count_in_1'] = df_part_3_in_1.groupby('item_id').cumcount() + 1
df_part_3_i_u_count_in_1 = df_part_3_in_1.drop_duplicates(['item_id'], 'last')[['item_id', 'i_u_count_in_1']]
# merge for generation of i_u_count
df_part_3_i_u_count = pd.merge(df_part_3_i_u_count_in_6,
df_part_3_i_u_count_in_3,
on=['item_id'], how='left').fillna(0)
df_part_3_i_u_count = pd.merge(df_part_3_i_u_count,
df_part_3_i_u_count_in_1,
on=['item_id'], how='left').fillna(0)
df_part_3_i_u_count[['i_u_count_in_6',
'i_u_count_in_3',
'i_u_count_in_1']] = df_part_3_i_u_count[['i_u_count_in_6',
'i_u_count_in_3',
'i_u_count_in_1']].astype(int)
# i_b_count_in_6
df_part_3['cumcount'] = df_part_3.groupby(['item_id', 'behavior_type']).cumcount()
df_part_3_i_b_count_in_6 = df_part_3.drop_duplicates(['item_id', 'behavior_type'], 'last')[
['item_id', 'behavior_type', 'cumcount']]
df_part_3_i_b_count_in_6 = pd.get_dummies(df_part_3_i_b_count_in_6['behavior_type']).join(
df_part_3_i_b_count_in_6[['item_id', 'cumcount']])
df_part_3_i_b_count_in_6.rename(columns={1: 'behavior_type_1',
2: 'behavior_type_2',
3: 'behavior_type_3',
4: 'behavior_type_4'}, inplace=True)
df_part_3_i_b_count_in_6['i_b1_count_in_6'] = df_part_3_i_b_count_in_6['behavior_type_1'] * (
df_part_3_i_b_count_in_6['cumcount'] + 1)
df_part_3_i_b_count_in_6['i_b2_count_in_6'] = df_part_3_i_b_count_in_6['behavior_type_2'] * (
df_part_3_i_b_count_in_6['cumcount'] + 1)
df_part_3_i_b_count_in_6['i_b3_count_in_6'] = df_part_3_i_b_count_in_6['behavior_type_3'] * (
df_part_3_i_b_count_in_6['cumcount'] + 1)
df_part_3_i_b_count_in_6['i_b4_count_in_6'] = df_part_3_i_b_count_in_6['behavior_type_4'] * (
df_part_3_i_b_count_in_6['cumcount'] + 1)
df_part_3_i_b_count_in_6 = df_part_3_i_b_count_in_6[['item_id',
'i_b1_count_in_6',
'i_b2_count_in_6',
'i_b3_count_in_6',
'i_b4_count_in_6']]
df_part_3_i_b_count_in_6 = df_part_3_i_b_count_in_6.groupby('item_id').agg({'i_b1_count_in_6': np.sum,
'i_b2_count_in_6': np.sum,
'i_b3_count_in_6': np.sum,
'i_b4_count_in_6': np.sum})
df_part_3_i_b_count_in_6.reset_index(inplace=True)
df_part_3_i_b_count_in_6['i_b_count_in_6'] = df_part_3_i_b_count_in_6['i_b1_count_in_6'] + \
df_part_3_i_b_count_in_6['i_b2_count_in_6'] + \
df_part_3_i_b_count_in_6['i_b3_count_in_6'] + \
df_part_3_i_b_count_in_6['i_b4_count_in_6']
# i_b_count_in_3
df_part_3_in_3 = df_part_3[df_part_3['time'] >= np.datetime64('2014-12-16')]
df_part_3_in_3['cumcount'] = df_part_3_in_3.groupby(['item_id', 'behavior_type']).cumcount()
df_part_3_i_b_count_in_3 = df_part_3.drop_duplicates(['item_id', 'behavior_type'], 'last')[
['item_id', 'behavior_type', 'cumcount']]
df_part_3_i_b_count_in_3 = pd.get_dummies(df_part_3_i_b_count_in_3['behavior_type']).join(
df_part_3_i_b_count_in_3[['item_id', 'cumcount']])
df_part_3_i_b_count_in_3.rename(columns={1: 'behavior_type_1',
2: 'behavior_type_2',
3: 'behavior_type_3',
4: 'behavior_type_4'}, inplace=True)
df_part_3_i_b_count_in_3['i_b1_count_in_3'] = df_part_3_i_b_count_in_3['behavior_type_1'] * (
df_part_3_i_b_count_in_3['cumcount'] + 1)
df_part_3_i_b_count_in_3['i_b2_count_in_3'] = df_part_3_i_b_count_in_3['behavior_type_2'] * (
df_part_3_i_b_count_in_3['cumcount'] + 1)
df_part_3_i_b_count_in_3['i_b3_count_in_3'] = df_part_3_i_b_count_in_3['behavior_type_3'] * (
df_part_3_i_b_count_in_3['cumcount'] + 1)
df_part_3_i_b_count_in_3['i_b4_count_in_3'] = df_part_3_i_b_count_in_3['behavior_type_4'] * (
df_part_3_i_b_count_in_3['cumcount'] + 1)
df_part_3_i_b_count_in_3 = df_part_3_i_b_count_in_3[['item_id',
'i_b1_count_in_3',
'i_b2_count_in_3',
'i_b3_count_in_3',
'i_b4_count_in_3']]
df_part_3_i_b_count_in_3 = df_part_3_i_b_count_in_3.groupby('item_id').agg({'i_b1_count_in_3': np.sum,
'i_b2_count_in_3': np.sum,
'i_b3_count_in_3': np.sum,
'i_b4_count_in_3': np.sum})
df_part_3_i_b_count_in_3.reset_index(inplace=True)
df_part_3_i_b_count_in_3['i_b_count_in_3'] = df_part_3_i_b_count_in_3['i_b1_count_in_3'] + \
df_part_3_i_b_count_in_3['i_b2_count_in_3'] + \
df_part_3_i_b_count_in_3['i_b3_count_in_3'] + \
df_part_3_i_b_count_in_3['i_b4_count_in_3']
# i_b_count_in_1
df_part_3_in_1 = df_part_3[df_part_3['time'] >= np.datetime64('2014-12-18')]
df_part_3_in_1['cumcount'] = df_part_3_in_1.groupby(['item_id', 'behavior_type']).cumcount()
df_part_3_i_b_count_in_1 = df_part_3_in_1.drop_duplicates(['item_id', 'behavior_type'], 'last')[
['item_id', 'behavior_type', 'cumcount']]
df_part_3_i_b_count_in_1 = pd.get_dummies(df_part_3_i_b_count_in_1['behavior_type']).join(
df_part_3_i_b_count_in_1[['item_id', 'cumcount']])
df_part_3_i_b_count_in_1.rename(columns={1: 'behavior_type_1',
2: 'behavior_type_2',
3: 'behavior_type_3',
4: 'behavior_type_4'}, inplace=True)
df_part_3_i_b_count_in_1['i_b1_count_in_1'] = df_part_3_i_b_count_in_1['behavior_type_1'] * (
df_part_3_i_b_count_in_1['cumcount'] + 1)
df_part_3_i_b_count_in_1['i_b2_count_in_1'] = df_part_3_i_b_count_in_1['behavior_type_2'] * (
df_part_3_i_b_count_in_1['cumcount'] + 1)
df_part_3_i_b_count_in_1['i_b3_count_in_1'] = df_part_3_i_b_count_in_1['behavior_type_3'] * (
df_part_3_i_b_count_in_1['cumcount'] + 1)
df_part_3_i_b_count_in_1['i_b4_count_in_1'] = df_part_3_i_b_count_in_1['behavior_type_4'] * (
df_part_3_i_b_count_in_1['cumcount'] + 1)
df_part_3_i_b_count_in_1 = df_part_3_i_b_count_in_1[['item_id',
'i_b1_count_in_1',
'i_b2_count_in_1',
'i_b3_count_in_1',
'i_b4_count_in_1']]
df_part_3_i_b_count_in_1 = df_part_3_i_b_count_in_1.groupby('item_id').agg({'i_b1_count_in_1': np.sum,
'i_b2_count_in_1': np.sum,
'i_b3_count_in_1': np.sum,
'i_b4_count_in_1': np.sum})
df_part_3_i_b_count_in_1.reset_index(inplace=True)
df_part_3_i_b_count_in_1['i_b_count_in_1'] = df_part_3_i_b_count_in_1['i_b1_count_in_1'] + \
df_part_3_i_b_count_in_1['i_b2_count_in_1'] + \
df_part_3_i_b_count_in_1['i_b3_count_in_1'] + \
df_part_3_i_b_count_in_1['i_b4_count_in_1']
# merge for generation of i_b_count
df_part_3_i_b_count = pd.merge(df_part_3_i_b_count_in_6,
df_part_3_i_b_count_in_3,
on=['item_id'], how='left').fillna(0)
df_part_3_i_b_count = pd.merge(df_part_3_i_b_count,
df_part_3_i_b_count_in_1,
on=['item_id'], how='left').fillna(0)
df_part_3_i_b_count[['i_b1_count_in_6',
'i_b2_count_in_6',
'i_b3_count_in_6',
'i_b4_count_in_6',
'i_b_count_in_6',
'i_b1_count_in_3',
'i_b2_count_in_3',
'i_b3_count_in_3',
'i_b4_count_in_3',
'i_b_count_in_3',
'i_b1_count_in_1',
'i_b2_count_in_1',
'i_b3_count_in_1',
'i_b4_count_in_1',
'i_b_count_in_1']] = df_part_3_i_b_count[['i_b1_count_in_6',
'i_b2_count_in_6',
'i_b3_count_in_6',
'i_b4_count_in_6',
'i_b_count_in_6',
'i_b1_count_in_3',
'i_b2_count_in_3',
'i_b3_count_in_3',
'i_b4_count_in_3',
'i_b_count_in_3',
'i_b1_count_in_1',
'i_b2_count_in_1',
'i_b3_count_in_1',
'i_b4_count_in_1',
'i_b_count_in_1']].astype(int)
# i_b4_rate
df_part_3_i_b_count['i_b4_rate'] = df_part_3_i_b_count['i_b4_count_in_6'] / df_part_3_i_b_count['i_b_count_in_6']
# i_b4_diff_time
df_part_3 = df_part_3.sort_values(by=['item_id', 'time'])
df_part_3_i_b4_time = df_part_3[df_part_3['behavior_type'] == 4].drop_duplicates(['item_id'], 'first')[
['item_id', 'time']]
df_part_3_i_b4_time.columns = ['item_id', 'b4_first_time']
df_part_3_i_b_time = df_part_3.drop_duplicates(['item_id'], 'first')[['item_id', 'time']]
df_part_3_i_b_time.columns = ['item_id', 'b_first_time']
df_part_3_i_b_b4_time = pd.merge(df_part_3_i_b_time, df_part_3_i_b4_time, on=['item_id'])
df_part_3_i_b_b4_time['i_b4_diff_time'] = df_part_3_i_b_b4_time['b4_first_time'] - df_part_3_i_b_b4_time['b_first_time']
df_part_3_i_b_b4_time['i_b4_diff_hours'] = df_part_3_i_b_b4_time['i_b4_diff_time'].apply(
lambda x: x.days * 24 + x.seconds // 3600)
df_part_3_i_b_b4_time = df_part_3_i_b_b4_time[['item_id', 'i_b4_diff_hours']]
# generating feature set I
f_I_part_3 = pd.merge(df_part_3_i_b_count,
df_part_3_i_b_b4_time,
on=['item_id'], how='left')
f_I_part_3 = pd.merge(f_I_part_3,
df_part_3_i_u_count,
on=['item_id'], how='left')[['item_id',
'i_u_count_in_6',
'i_u_count_in_3',
'i_u_count_in_1',
'i_b1_count_in_6',
'i_b2_count_in_6',
'i_b3_count_in_6',
'i_b4_count_in_6',
'i_b_count_in_6',
'i_b1_count_in_3',
'i_b2_count_in_3',
'i_b3_count_in_3',
'i_b4_count_in_3',
'i_b_count_in_3',
'i_b1_count_in_1',
'i_b2_count_in_1',
'i_b3_count_in_1',
'i_b4_count_in_1',
'i_b_count_in_1',
'i_b4_rate',
'i_b4_diff_hours']]
# write to csv file
f_I_part_3 = f_I_part_3.round({'i_b4_rate': 3})
f_I_part_3.to_csv(path_df_part_3_I, index=False)
###########################################
'''Step 1.3 feature data set C of df_part_3
(1)
c_u_count_in_6
c_u_count_in_3
c_u_count_in_1
(2)
c_b1_count_in_6
c_b2_count_in_6
c_b3_count_in_6
c_b4_count_in_6
c_b_count_in_6
c_b1_count_in_3
c_b2_count_in_3
c_b3_count_in_3
c_b4_count_in_3
c_b_count_in_3
c_b1_count_in_1
c_b2_count_in_1
c_b3_count_in_1
c_b4_count_in_1
c_b_count_in_1
(3)
c_b4_rate (in_6)
c_b4_diff_hours (in_6)
'''
# loading data
path_df = open(path_df_part_3, 'r')
try:
df_part_3 = pd.read_csv(path_df, index_col=False, parse_dates=[0])
df_part_3.columns = ['time', 'user_id', 'item_id', 'behavior_type', 'item_category']
finally:
path_df.close()
# c_u_count_in_6
df_part_3_in_6 = df_part_3.drop_duplicates(['item_category', 'user_id'])
df_part_3_in_6['c_u_count_in_6'] = df_part_3_in_6.groupby('item_category').cumcount() + 1
df_part_3_c_u_count_in_6 = df_part_3_in_6.drop_duplicates(['item_category'], 'last')[
['item_category', 'c_u_count_in_6']]
# c_u_count_in_3
df_part_3_in_3 = df_part_3[df_part_3['time'] >= np.datetime64('2014-12-16')].drop_duplicates(
['item_category', 'user_id'])
df_part_3_in_3['c_u_count_in_3'] = df_part_3_in_3.groupby('item_category').cumcount() + 1
df_part_3_c_u_count_in_3 = df_part_3_in_3.drop_duplicates(['item_category'], 'last')[
['item_category', 'c_u_count_in_3']]
# c_u_count_in_1
df_part_3_in_1 = df_part_3[df_part_3['time'] >= np.datetime64('2014-12-18')].drop_duplicates(
['item_category', 'user_id'])
df_part_3_in_1['c_u_count_in_1'] = df_part_3_in_1.groupby('item_category').cumcount() + 1
df_part_3_c_u_count_in_1 = df_part_3_in_1.drop_duplicates(['item_category'], 'last')[
['item_category', 'c_u_count_in_1']]
df_part_3_c_u_count = pd.merge(df_part_3_c_u_count_in_6, df_part_3_c_u_count_in_3, on=['item_category'],
how='left').fillna(0)
df_part_3_c_u_count = pd.merge(df_part_3_c_u_count, df_part_3_c_u_count_in_1, on=['item_category'], how='left').fillna(
0)
df_part_3_c_u_count[['c_u_count_in_6',
'c_u_count_in_3',
'c_u_count_in_1']] = df_part_3_c_u_count[['c_u_count_in_6',
'c_u_count_in_3',
'c_u_count_in_1']].astype(int)
# c_b_count_in_6
df_part_3['cumcount'] = df_part_3.groupby(['item_category', 'behavior_type']).cumcount()
df_part_3_c_b_count_in_6 = df_part_3.drop_duplicates(['item_category', 'behavior_type'], 'last')[
['item_category', 'behavior_type', 'cumcount']]
df_part_3_c_b_count_in_6 = pd.get_dummies(df_part_3_c_b_count_in_6['behavior_type']).join(
df_part_3_c_b_count_in_6[['item_category', 'cumcount']])
df_part_3_c_b_count_in_6.rename(columns={1: 'behavior_type_1',
2: 'behavior_type_2',
3: 'behavior_type_3',
4: 'behavior_type_4'}, inplace=True)
df_part_3_c_b_count_in_6['c_b1_count_in_6'] = df_part_3_c_b_count_in_6['behavior_type_1'] * (
df_part_3_c_b_count_in_6['cumcount'] + 1)
df_part_3_c_b_count_in_6['c_b2_count_in_6'] = df_part_3_c_b_count_in_6['behavior_type_2'] * (
df_part_3_c_b_count_in_6['cumcount'] + 1)
df_part_3_c_b_count_in_6['c_b3_count_in_6'] = df_part_3_c_b_count_in_6['behavior_type_3'] * (
df_part_3_c_b_count_in_6['cumcount'] + 1)
df_part_3_c_b_count_in_6['c_b4_count_in_6'] = df_part_3_c_b_count_in_6['behavior_type_4'] * (
df_part_3_c_b_count_in_6['cumcount'] + 1)
df_part_3_c_b_count_in_6 = df_part_3_c_b_count_in_6[['item_category',
'c_b1_count_in_6',
'c_b2_count_in_6',
'c_b3_count_in_6',
'c_b4_count_in_6']]
df_part_3_c_b_count_in_6 = df_part_3_c_b_count_in_6.groupby('item_category').agg({'c_b1_count_in_6': np.sum,
'c_b2_count_in_6': np.sum,
'c_b3_count_in_6': np.sum,
'c_b4_count_in_6': np.sum})
df_part_3_c_b_count_in_6.reset_index(inplace=True)
df_part_3_c_b_count_in_6['c_b_count_in_6'] = df_part_3_c_b_count_in_6['c_b1_count_in_6'] + \
df_part_3_c_b_count_in_6['c_b2_count_in_6'] + \
df_part_3_c_b_count_in_6['c_b3_count_in_6'] + \
df_part_3_c_b_count_in_6['c_b4_count_in_6']
# c_b_count_in_3
df_part_3_in_3 = df_part_3[df_part_3['time'] >= np.datetime64('2014-12-16')]
df_part_3_in_3['cumcount'] = df_part_3_in_3.groupby(['item_category', 'behavior_type']).cumcount()
df_part_3_c_b_count_in_3 = df_part_3_in_3.drop_duplicates(['item_category', 'behavior_type'], 'last')[
['item_category', 'behavior_type', 'cumcount']]
df_part_3_c_b_count_in_3 = pd.get_dummies(df_part_3_c_b_count_in_3['behavior_type']).join(
df_part_3_c_b_count_in_3[['item_category', 'cumcount']])
df_part_3_c_b_count_in_3.rename(columns={1: 'behavior_type_1',
2: 'behavior_type_2',
3: 'behavior_type_3',
4: 'behavior_type_4'}, inplace=True)
df_part_3_c_b_count_in_3['c_b1_count_in_3'] = df_part_3_c_b_count_in_3['behavior_type_1'] * (
df_part_3_c_b_count_in_3['cumcount'] + 1)
df_part_3_c_b_count_in_3['c_b2_count_in_3'] = df_part_3_c_b_count_in_3['behavior_type_2'] * (
df_part_3_c_b_count_in_3['cumcount'] + 1)
df_part_3_c_b_count_in_3['c_b3_count_in_3'] = df_part_3_c_b_count_in_3['behavior_type_3'] * (
df_part_3_c_b_count_in_3['cumcount'] + 1)
df_part_3_c_b_count_in_3['c_b4_count_in_3'] = df_part_3_c_b_count_in_3['behavior_type_4'] * (
df_part_3_c_b_count_in_3['cumcount'] + 1)
df_part_3_c_b_count_in_3 = df_part_3_c_b_count_in_3[['item_category',
'c_b1_count_in_3',
'c_b2_count_in_3',
'c_b3_count_in_3',
'c_b4_count_in_3']]
df_part_3_c_b_count_in_3 = df_part_3_c_b_count_in_3.groupby('item_category').agg({'c_b1_count_in_3': np.sum,
'c_b2_count_in_3': np.sum,
'c_b3_count_in_3': np.sum,
'c_b4_count_in_3': np.sum})
df_part_3_c_b_count_in_3.reset_index(inplace=True)
df_part_3_c_b_count_in_3['c_b_count_in_3'] = df_part_3_c_b_count_in_3['c_b1_count_in_3'] + \
df_part_3_c_b_count_in_3['c_b2_count_in_3'] + \
df_part_3_c_b_count_in_3['c_b3_count_in_3'] + \
df_part_3_c_b_count_in_3['c_b4_count_in_3']
# c_b_count_in_1
df_part_3_in_1 = df_part_3[df_part_3['time'] >= np.datetime64('2014-12-18')]
df_part_3_in_1['cumcount'] = df_part_3_in_1.groupby(['item_category', 'behavior_type']).cumcount()
df_part_3_c_b_count_in_1 = df_part_3_in_1.drop_duplicates(['item_category', 'behavior_type'], 'last')[
['item_category', 'behavior_type', 'cumcount']]
df_part_3_c_b_count_in_1 = pd.get_dummies(df_part_3_c_b_count_in_1['behavior_type']).join(
df_part_3_c_b_count_in_1[['item_category', 'cumcount']])
df_part_3_c_b_count_in_1.rename(columns={1: 'behavior_type_1',
2: 'behavior_type_2',
3: 'behavior_type_3',
4: 'behavior_type_4'}, inplace=True)
df_part_3_c_b_count_in_1['c_b1_count_in_1'] = df_part_3_c_b_count_in_1['behavior_type_1'] * (
df_part_3_c_b_count_in_1['cumcount'] + 1)
df_part_3_c_b_count_in_1['c_b2_count_in_1'] = df_part_3_c_b_count_in_1['behavior_type_2'] * (
df_part_3_c_b_count_in_1['cumcount'] + 1)
df_part_3_c_b_count_in_1['c_b3_count_in_1'] = df_part_3_c_b_count_in_1['behavior_type_3'] * (
df_part_3_c_b_count_in_1['cumcount'] + 1)
df_part_3_c_b_count_in_1['c_b4_count_in_1'] = df_part_3_c_b_count_in_1['behavior_type_4'] * (
df_part_3_c_b_count_in_1['cumcount'] + 1)
df_part_3_c_b_count_in_1 = df_part_3_c_b_count_in_1[['item_category',
'c_b1_count_in_1',
'c_b2_count_in_1',
'c_b3_count_in_1',
'c_b4_count_in_1']]
df_part_3_c_b_count_in_1 = df_part_3_c_b_count_in_1.groupby('item_category').agg({'c_b1_count_in_1': np.sum,
'c_b2_count_in_1': np.sum,
'c_b3_count_in_1': np.sum,
'c_b4_count_in_1': np.sum})
df_part_3_c_b_count_in_1.reset_index(inplace=True)
df_part_3_c_b_count_in_1['c_b_count_in_1'] = df_part_3_c_b_count_in_1['c_b1_count_in_1'] + \
df_part_3_c_b_count_in_1['c_b2_count_in_1'] + \
df_part_3_c_b_count_in_1['c_b3_count_in_1'] + \
df_part_3_c_b_count_in_1['c_b4_count_in_1']
df_part_3_c_b_count = pd.merge(df_part_3_c_b_count_in_6, df_part_3_c_b_count_in_3, on=['item_category'],
how='left').fillna(0)
df_part_3_c_b_count = pd.merge(df_part_3_c_b_count, df_part_3_c_b_count_in_1, on=['item_category'], how='left').fillna(
0)
df_part_3_c_b_count[['c_b1_count_in_6',
'c_b2_count_in_6',
'c_b3_count_in_6',
'c_b4_count_in_6',
'c_b_count_in_6',
'c_b1_count_in_3',
'c_b2_count_in_3',
'c_b3_count_in_3',
'c_b4_count_in_3',
'c_b_count_in_3',
'c_b1_count_in_1',
'c_b2_count_in_1',
'c_b3_count_in_1',
'c_b4_count_in_1',
'c_b_count_in_1']] = df_part_3_c_b_count[['c_b1_count_in_6',
'c_b2_count_in_6',
'c_b3_count_in_6',
'c_b4_count_in_6',
'c_b_count_in_6',
'c_b1_count_in_3',
'c_b2_count_in_3',
'c_b3_count_in_3',
'c_b4_count_in_3',
'c_b_count_in_3',
'c_b1_count_in_1',
'c_b2_count_in_1',
'c_b3_count_in_1',
'c_b4_count_in_1',
'c_b_count_in_1']].astype(int)
# c_b4_rate
df_part_3_c_b_count['c_b4_rate'] = df_part_3_c_b_count['c_b4_count_in_6'] / df_part_3_c_b_count['c_b_count_in_6']
# c_b4_diff_time
df_part_3 = df_part_3.sort_values(by=['item_category', 'time'])
df_part_3_c_b4_time = df_part_3[df_part_3['behavior_type'] == 4].drop_duplicates(['item_category'], 'first')[
['item_category', 'time']]
df_part_3_c_b4_time.columns = ['item_category', 'b4_first_time']
df_part_3_c_b_time = df_part_3.drop_duplicates(['item_category'], 'first')[['item_category', 'time']]
df_part_3_c_b_time.columns = ['item_category', 'b_first_time']
df_part_3_c_b_b4_time = pd.merge(df_part_3_c_b_time, df_part_3_c_b4_time, on=['item_category'])
df_part_3_c_b_b4_time['c_b4_diff_time'] = df_part_3_c_b_b4_time['b4_first_time'] - df_part_3_c_b_b4_time['b_first_time']
df_part_3_c_b_b4_time['c_b4_diff_hours'] = df_part_3_c_b_b4_time['c_b4_diff_time'].apply(
lambda x: x.days * 24 + x.seconds // 3600)
df_part_3_c_b_b4_time = df_part_3_c_b_b4_time[['item_category',
'c_b4_diff_hours']]
# generating feature set C
f_C_part_3 = pd.merge(df_part_3_c_u_count, df_part_3_c_b_count, on=['item_category'], how='left')
f_C_part_3 = pd.merge(f_C_part_3, df_part_3_c_b_b4_time, on=['item_category'], how='left')
f_C_part_3 = f_C_part_3.round({'c_b4_rate': 3})
# write to csv file
f_C_part_3.to_csv(path_df_part_3_C, index=False)
############################################
'''Step 1.4 feature data set IC of df_part_3
ic_u_rank_in_c (in_6)
ic_b_rank_in_c (in_6)
ic_b4_rank_in_c (in_6)
'''
# get df_part_3_i_ub_count
path_df = open(path_df_part_3_I, 'r')
try:
df_part_3_I = pd.read_csv(path_df, index_col=False)
finally:
path_df.close()
df_part_3_i_ub_count = df_part_3_I[['item_id', 'i_u_count_in_6', 'i_b_count_in_6', 'i_b4_count_in_6']]
del (df_part_3_I)
# get df_part_3_uic for merge i & c
path_df = open(path_df_part_3_uic, 'r')
try:
df_part_3_uic = pd.read_csv(path_df, index_col=False)
finally:
path_df.close()
df_part_3_ic_u_b_count = pd.merge(df_part_3_uic, df_part_3_i_ub_count, on=['item_id'], how='left').fillna(0)
df_part_3_ic_u_b_count = df_part_3_ic_u_b_count.drop_duplicates(['item_id', 'item_category'])
# ic_u_rank_in_c
df_part_3_ic_u_b_count['ic_u_rank_in_c'] = df_part_3_ic_u_b_count.groupby('item_category')['i_u_count_in_6'].rank(
method='min', ascending=False).astype('int')
# ic_b_rank_in_c
df_part_3_ic_u_b_count['ic_b_rank_in_c'] = df_part_3_ic_u_b_count.groupby('item_category')['i_b_count_in_6'].rank(
method='min', ascending=False).astype('int')
# ic_b4_rank_in_c
df_part_3_ic_u_b_count['ic_b4_rank_in_c'] = df_part_3_ic_u_b_count.groupby('item_category')['i_b4_count_in_6'].rank(
method='min', ascending=False).astype('int')
f_IC_part_3 = df_part_3_ic_u_b_count[['item_id',
'item_category',
'ic_u_rank_in_c',
'ic_b_rank_in_c',
'ic_b4_rank_in_c']]
# write to csv file
f_IC_part_3.to_csv(path_df_part_3_IC, index=False)
############################################
'''Step 1.5 feature data set UI of df_part_3
(1)
ui_b1_count_in_6
ui_b2_count_in_6
ui_b3_count_in_6
ui_b4_count_in_6
ui_b_count_in_6
ui_b1_count_in_3
ui_b2_count_in_3
ui_b3_count_in_3
ui_b4_count_in_3
ui_b_count_in_3
ui_b1_count_in_1
ui_b2_count_in_1
ui_b3_count_in_1
ui_b4_count_in_1
ui_b_count_in_1
(2)
ui_b_count_rank_in_u (in_6)
ui_b_count_rank_in_uc (in_6)
(3)
ui_b1_last_hours (in_6)
ui_b2_last_hours (in_6)
ui_b3_last_hours (in_6)
ui_b4_last_hours (in_6)
'''
path_df = open(path_df_part_3, 'r')
try:
df_part_3 = pd.read_csv(path_df, index_col=False, parse_dates=[0])
df_part_3.columns = ['time', 'user_id', 'item_id', 'behavior_type', 'item_category']
finally:
path_df.close()
# ui_b_count_in_6
df_part_3['cumcount'] = df_part_3.groupby(['user_id', 'item_id', 'behavior_type']).cumcount()
df_part_3_ui_b_count_in_6 = df_part_3.drop_duplicates(['user_id', 'item_id', 'behavior_type'], 'last')[
['user_id', 'item_id', 'behavior_type', 'cumcount']]
df_part_3_ui_b_count_in_6 = pd.get_dummies(df_part_3_ui_b_count_in_6['behavior_type']).join(
df_part_3_ui_b_count_in_6[['user_id', 'item_id', 'cumcount']])
df_part_3_ui_b_count_in_6.rename(columns={1: 'behavior_type_1',
2: 'behavior_type_2',
3: 'behavior_type_3',
4: 'behavior_type_4'}, inplace=True)
df_part_3_ui_b_count_in_6['ui_b1_count_in_6'] = df_part_3_ui_b_count_in_6['behavior_type_1'] * (
df_part_3_ui_b_count_in_6['cumcount'] + 1)
df_part_3_ui_b_count_in_6['ui_b2_count_in_6'] = df_part_3_ui_b_count_in_6['behavior_type_2'] * (
df_part_3_ui_b_count_in_6['cumcount'] + 1)
df_part_3_ui_b_count_in_6['ui_b3_count_in_6'] = df_part_3_ui_b_count_in_6['behavior_type_3'] * (
df_part_3_ui_b_count_in_6['cumcount'] + 1)
df_part_3_ui_b_count_in_6['ui_b4_count_in_6'] = df_part_3_ui_b_count_in_6['behavior_type_4'] * (
df_part_3_ui_b_count_in_6['cumcount'] + 1)
df_part_3_ui_b_count_in_6 = df_part_3_ui_b_count_in_6[['user_id',
'item_id',
'ui_b1_count_in_6',
'ui_b2_count_in_6',
'ui_b3_count_in_6',
'ui_b4_count_in_6']]
df_part_3_ui_b_count_in_6 = df_part_3_ui_b_count_in_6.groupby(['user_id', 'item_id']).agg({'ui_b1_count_in_6': np.sum,
'ui_b2_count_in_6': np.sum,
'ui_b3_count_in_6': np.sum,
'ui_b4_count_in_6': np.sum})
df_part_3_ui_b_count_in_6.reset_index(inplace=True)
df_part_3_ui_b_count_in_6['ui_b_count_in_6'] = df_part_3_ui_b_count_in_6['ui_b1_count_in_6'] + \
df_part_3_ui_b_count_in_6['ui_b2_count_in_6'] + \
df_part_3_ui_b_count_in_6['ui_b3_count_in_6'] + \
df_part_3_ui_b_count_in_6['ui_b4_count_in_6']
# ui_b_count_in_3
df_part_3_in_3 = df_part_3[df_part_3['time'] >= np.datetime64('2014-12-16')]
df_part_3_in_3['cumcount'] = df_part_3_in_3.groupby(['user_id', 'item_id', 'behavior_type']).cumcount()
df_part_3_ui_b_count_in_3 = df_part_3.drop_duplicates(['user_id', 'item_id', 'behavior_type'], 'last')[
['user_id', 'item_id', 'behavior_type', 'cumcount']]
df_part_3_ui_b_count_in_3 = pd.get_dummies(df_part_3_ui_b_count_in_3['behavior_type']).join(
df_part_3_ui_b_count_in_3[['user_id', 'item_id', 'cumcount']])
df_part_3_ui_b_count_in_3.rename(columns={1: 'behavior_type_1',
2: 'behavior_type_2',
3: 'behavior_type_3',
4: 'behavior_type_4'}, inplace=True)
df_part_3_ui_b_count_in_3['ui_b1_count_in_3'] = df_part_3_ui_b_count_in_3['behavior_type_1'] * (
df_part_3_ui_b_count_in_3['cumcount'] + 1)
df_part_3_ui_b_count_in_3['ui_b2_count_in_3'] = df_part_3_ui_b_count_in_3['behavior_type_2'] * (
df_part_3_ui_b_count_in_3['cumcount'] + 1)
df_part_3_ui_b_count_in_3['ui_b3_count_in_3'] = df_part_3_ui_b_count_in_3['behavior_type_3'] * (
df_part_3_ui_b_count_in_3['cumcount'] + 1)
df_part_3_ui_b_count_in_3['ui_b4_count_in_3'] = df_part_3_ui_b_count_in_3['behavior_type_4'] * (
df_part_3_ui_b_count_in_3['cumcount'] + 1)
df_part_3_ui_b_count_in_3 = df_part_3_ui_b_count_in_3[['user_id',
'item_id',
'ui_b1_count_in_3',
'ui_b2_count_in_3',
'ui_b3_count_in_3',
'ui_b4_count_in_3']]
df_part_3_ui_b_count_in_3 = df_part_3_ui_b_count_in_3.groupby(['user_id', 'item_id']).agg({'ui_b1_count_in_3': np.sum,
'ui_b2_count_in_3': np.sum,
'ui_b3_count_in_3': np.sum,
'ui_b4_count_in_3': np.sum})
df_part_3_ui_b_count_in_3.reset_index(inplace=True)
df_part_3_ui_b_count_in_3['ui_b_count_in_3'] = df_part_3_ui_b_count_in_3['ui_b1_count_in_3'] + \
df_part_3_ui_b_count_in_3['ui_b2_count_in_3'] + \
df_part_3_ui_b_count_in_3['ui_b3_count_in_3'] + \
df_part_3_ui_b_count_in_3['ui_b4_count_in_3']
# ui_b_count_in_1
df_part_3_in_1 = df_part_3[df_part_3['time'] >= np.datetime64('2014-12-18')]
df_part_3_in_1['cumcount'] = df_part_3_in_1.groupby(['user_id', 'item_id', 'behavior_type']).cumcount()
df_part_3_ui_b_count_in_1 = df_part_3_in_1.drop_duplicates(['user_id', 'item_id', 'behavior_type'], 'last')[
['user_id', 'item_id', 'behavior_type', 'cumcount']]
df_part_3_ui_b_count_in_1 = pd.get_dummies(df_part_3_ui_b_count_in_1['behavior_type']).join(
df_part_3_ui_b_count_in_1[['user_id', 'item_id', 'cumcount']])
df_part_3_ui_b_count_in_1.rename(columns={1: 'behavior_type_1',
2: 'behavior_type_2',
3: 'behavior_type_3',
4: 'behavior_type_4'}, inplace=True)
df_part_3_ui_b_count_in_1['ui_b1_count_in_1'] = df_part_3_ui_b_count_in_1['behavior_type_1'] * (
df_part_3_ui_b_count_in_1['cumcount'] + 1)
df_part_3_ui_b_count_in_1['ui_b2_count_in_1'] = df_part_3_ui_b_count_in_1['behavior_type_2'] * (
df_part_3_ui_b_count_in_1['cumcount'] + 1)
df_part_3_ui_b_count_in_1['ui_b3_count_in_1'] = df_part_3_ui_b_count_in_1['behavior_type_3'] * (
df_part_3_ui_b_count_in_1['cumcount'] + 1)
df_part_3_ui_b_count_in_1['ui_b4_count_in_1'] = df_part_3_ui_b_count_in_1['behavior_type_4'] * (
df_part_3_ui_b_count_in_1['cumcount'] + 1)
df_part_3_ui_b_count_in_1 = df_part_3_ui_b_count_in_1[['user_id',
'item_id',
'ui_b1_count_in_1',
'ui_b2_count_in_1',
'ui_b3_count_in_1',
'ui_b4_count_in_1']]
df_part_3_ui_b_count_in_1 = df_part_3_ui_b_count_in_1.groupby(['user_id', 'item_id']).agg({'ui_b1_count_in_1': np.sum,
'ui_b2_count_in_1': np.sum,
'ui_b3_count_in_1': np.sum,
'ui_b4_count_in_1': np.sum})
df_part_3_ui_b_count_in_1.reset_index(inplace=True)
df_part_3_ui_b_count_in_1['ui_b_count_in_1'] = df_part_3_ui_b_count_in_1['ui_b1_count_in_1'] + \
df_part_3_ui_b_count_in_1['ui_b2_count_in_1'] + \
df_part_3_ui_b_count_in_1['ui_b3_count_in_1'] + \
df_part_3_ui_b_count_in_1['ui_b4_count_in_1']
df_part_3_ui_b_count = pd.merge(df_part_3_ui_b_count_in_6, df_part_3_ui_b_count_in_3, on=['user_id', 'item_id'],
how='left').fillna(0)
df_part_3_ui_b_count = pd.merge(df_part_3_ui_b_count, df_part_3_ui_b_count_in_1, on=['user_id', 'item_id'],
how='left').fillna(0)
df_part_3_ui_b_count[['ui_b1_count_in_6',
'ui_b2_count_in_6',
'ui_b3_count_in_6',
'ui_b4_count_in_6',
'ui_b_count_in_6',
'ui_b1_count_in_3',
'ui_b2_count_in_3',
'ui_b3_count_in_3',
'ui_b4_count_in_3',
'ui_b_count_in_3',
'ui_b1_count_in_1',
'ui_b2_count_in_1',
'ui_b3_count_in_1',
'ui_b4_count_in_1',
'ui_b_count_in_1']] = df_part_3_ui_b_count[['ui_b1_count_in_6',
'ui_b2_count_in_6',
'ui_b3_count_in_6',
'ui_b4_count_in_6',
'ui_b_count_in_6',
'ui_b1_count_in_3',
'ui_b2_count_in_3',
'ui_b3_count_in_3',
'ui_b4_count_in_3',
'ui_b_count_in_3',
'ui_b1_count_in_1',
'ui_b2_count_in_1',
'ui_b3_count_in_1',
'ui_b4_count_in_1',
'ui_b_count_in_1']].astype(int)
# ui_b_count_rank_in_u
df_part_3_ui_b_count['ui_b_count_rank_in_u'] = df_part_3_ui_b_count.groupby(['user_id'])['ui_b_count_in_6'].rank(
method='min', ascending=False).astype('int')
# ui_b_count_rank_in_uc
path_df = open(path_df_part_3_uic, 'r')
try:
df_part_3_uic = pd.read_csv(path_df, index_col=False)
finally:
path_df.close()
df_part_3_ui_b_count = pd.merge(df_part_3_uic, df_part_3_ui_b_count, on=['user_id', 'item_id'], how='left')
df_part_3_ui_b_count['ui_b_count_rank_in_uc'] = df_part_3_ui_b_count.groupby(['user_id', 'item_category'])[
'ui_b_count_rank_in_u'].rank(method='min', ascending=True).astype('int')
# ui_b_last_time
df_part_3.sort_values(by=['user_id', 'item_id', 'behavior_type', 'time'], inplace=True)
df_part_3_ui_b_last_time = df_part_3.drop_duplicates(['user_id', 'item_id', 'behavior_type'], 'last')[
['user_id', 'item_id', 'behavior_type', 'time']]
df_part_3_ui_b_last_time['ui_b1_last_time'] = df_part_3_ui_b_last_time[df_part_3_ui_b_last_time['behavior_type'] == 1][
'time']
df_part_3_ui_b_last_time['ui_b2_last_time'] = df_part_3_ui_b_last_time[df_part_3_ui_b_last_time['behavior_type'] == 2][
'time']
df_part_3_ui_b_last_time['ui_b3_last_time'] = df_part_3_ui_b_last_time[df_part_3_ui_b_last_time['behavior_type'] == 3][
'time']
df_part_3_ui_b_last_time['ui_b4_last_time'] = df_part_3_ui_b_last_time[df_part_3_ui_b_last_time['behavior_type'] == 4][
'time']
df_part_3_ui_b_last_time.loc[df_part_3_ui_b_last_time['ui_b1_last_time'].notnull(), 'ui_b1_last_hours'] = (
pd.to_datetime('2014-12-19') - df_part_3_ui_b_last_time['ui_b1_last_time'])
df_part_3_ui_b_last_time['ui_b1_last_hours'] = \
df_part_3_ui_b_last_time[df_part_3_ui_b_last_time['ui_b1_last_hours'].notnull()]['ui_b1_last_hours'].apply(
lambda x: x.days * 24 + x.seconds // 3600)
df_part_3_ui_b_last_time.loc[df_part_3_ui_b_last_time['ui_b2_last_time'].notnull(), 'ui_b2_last_hours'] = (
pd.to_datetime('2014-12-19') - df_part_3_ui_b_last_time['ui_b2_last_time'])
df_part_3_ui_b_last_time['ui_b2_last_hours'] = \
df_part_3_ui_b_last_time[df_part_3_ui_b_last_time['ui_b2_last_hours'].notnull()]['ui_b2_last_hours'].apply(
lambda x: x.days * 24 + x.seconds // 3600)
df_part_3_ui_b_last_time.loc[df_part_3_ui_b_last_time['ui_b3_last_time'].notnull(), 'ui_b3_last_hours'] = (
pd.to_datetime('2014-12-19') - df_part_3_ui_b_last_time['ui_b3_last_time'])
df_part_3_ui_b_last_time['ui_b3_last_hours'] = \
df_part_3_ui_b_last_time[df_part_3_ui_b_last_time['ui_b3_last_hours'].notnull()]['ui_b3_last_hours'].apply(
lambda x: x.days * 24 + x.seconds // 3600)
df_part_3_ui_b_last_time.loc[df_part_3_ui_b_last_time['ui_b4_last_time'].notnull(), 'ui_b4_last_hours'] = (
pd.to_datetime('2014-12-19') - df_part_3_ui_b_last_time['ui_b4_last_time'])
df_part_3_ui_b_last_time['ui_b4_last_hours'] = \
df_part_3_ui_b_last_time[df_part_3_ui_b_last_time['ui_b4_last_hours'].notnull()]['ui_b4_last_hours'].apply(
lambda x: x.days * 24 + x.seconds // 3600)
df_part_3_ui_b_last_time = df_part_3_ui_b_last_time[['user_id',
'item_id',
'ui_b1_last_hours',
'ui_b2_last_hours',
'ui_b3_last_hours',
'ui_b4_last_hours']]
df_part_3_ui_b_last_time = df_part_3_ui_b_last_time.groupby(['user_id', 'item_id']).agg({'ui_b1_last_hours': np.sum,
'ui_b2_last_hours': np.sum,
'ui_b3_last_hours': np.sum,
'ui_b4_last_hours': np.sum})
df_part_3_ui_b_last_time.reset_index(inplace=True)
# merge for generation of f_UI_part_3
f_UI_part_3 = pd.merge(df_part_3_ui_b_count, df_part_3_ui_b_last_time, how='left', on=['user_id', 'item_id'])
# write to csv file
f_UI_part_3.to_csv(path_df_part_3_UI, index=False)
############################################
'''Step 1.6 feature data set UC of df_part_3
(1)
uc_b1_count_in_6
uc_b2_count_in_6
uc_b3_count_in_6
uc_b4_count_in_6
uc_b_count_in_6
uc_b1_count_in_3
uc_b2_count_in_3
uc_b3_count_in_3
uc_b4_count_in_3
uc_b_count_in_3
uc_b1_count_in_1
uc_b2_count_in_1
uc_b3_count_in_1
uc_b4_count_in_1
uc_b_count_in_1
(2)
uc_b_count_rank_in_u (in_6)
(3)
uc_b1_last_hours (in_6)
uc_b2_last_hours (in_6)
uc_b3_last_hours (in_6)
uc_b4_last_hours (in_6)
'''
path_df = open(path_df_part_3, 'r')
try:
df_part_3 = pd.read_csv(path_df, index_col=False, parse_dates=[0])
df_part_3.columns = ['time', 'user_id', 'item_id', 'behavior_type', 'item_category']
finally:
path_df.close()
# uc_b_count_in_6
df_part_3['cumcount'] = df_part_3.groupby(['user_id', 'item_category', 'behavior_type']).cumcount()
df_part_3_uc_b_count_in_6 = df_part_3.drop_duplicates(['user_id', 'item_category', 'behavior_type'], 'last')[
['user_id', 'item_category', 'behavior_type', 'cumcount']]
df_part_3_uc_b_count_in_6 = pd.get_dummies(df_part_3_uc_b_count_in_6['behavior_type']).join(
df_part_3_uc_b_count_in_6[['user_id', 'item_category', 'cumcount']])
df_part_3_uc_b_count_in_6.rename(columns={1: 'behavior_type_1',
2: 'behavior_type_2',
3: 'behavior_type_3',
4: 'behavior_type_4'}, inplace=True)
df_part_3_uc_b_count_in_6['uc_b1_count_in_6'] = df_part_3_uc_b_count_in_6['behavior_type_1'] * (
df_part_3_uc_b_count_in_6['cumcount'] + 1)
df_part_3_uc_b_count_in_6['uc_b2_count_in_6'] = df_part_3_uc_b_count_in_6['behavior_type_2'] * (
df_part_3_uc_b_count_in_6['cumcount'] + 1)
df_part_3_uc_b_count_in_6['uc_b3_count_in_6'] = df_part_3_uc_b_count_in_6['behavior_type_3'] * (
df_part_3_uc_b_count_in_6['cumcount'] + 1)
df_part_3_uc_b_count_in_6['uc_b4_count_in_6'] = df_part_3_uc_b_count_in_6['behavior_type_4'] * (
df_part_3_uc_b_count_in_6['cumcount'] + 1)
df_part_3_uc_b_count_in_6 = df_part_3_uc_b_count_in_6[['user_id',
'item_category',
'uc_b1_count_in_6',
'uc_b2_count_in_6',
'uc_b3_count_in_6',
'uc_b4_count_in_6']]
df_part_3_uc_b_count_in_6 = df_part_3_uc_b_count_in_6.groupby(['user_id', 'item_category']).agg(
{'uc_b1_count_in_6': np.sum,
'uc_b2_count_in_6': np.sum,
'uc_b3_count_in_6': np.sum,
'uc_b4_count_in_6': np.sum})
df_part_3_uc_b_count_in_6.reset_index(inplace=True)
df_part_3_uc_b_count_in_6['uc_b_count_in_6'] = df_part_3_uc_b_count_in_6['uc_b1_count_in_6'] + \
df_part_3_uc_b_count_in_6['uc_b2_count_in_6'] + \
df_part_3_uc_b_count_in_6['uc_b3_count_in_6'] + \
df_part_3_uc_b_count_in_6['uc_b4_count_in_6']
# uc_b_count_in_3
df_part_3_in_3 = df_part_3[df_part_3['time'] >= np.datetime64('2014-12-16')]
df_part_3_in_3['cumcount'] = df_part_3_in_3.groupby(['user_id', 'item_category', 'behavior_type']).cumcount()
df_part_3_uc_b_count_in_3 = df_part_3.drop_duplicates(['user_id', 'item_category', 'behavior_type'], 'last')[
['user_id', 'item_category', 'behavior_type', 'cumcount']]
df_part_3_uc_b_count_in_3 = pd.get_dummies(df_part_3_uc_b_count_in_3['behavior_type']).join(
df_part_3_uc_b_count_in_3[['user_id', 'item_category', 'cumcount']])
df_part_3_uc_b_count_in_3.rename(columns={1: 'behavior_type_1',
2: 'behavior_type_2',
3: 'behavior_type_3',
4: 'behavior_type_4'}, inplace=True)
df_part_3_uc_b_count_in_3['uc_b1_count_in_3'] = df_part_3_uc_b_count_in_3['behavior_type_1'] * (
df_part_3_uc_b_count_in_3['cumcount'] + 1)
df_part_3_uc_b_count_in_3['uc_b2_count_in_3'] = df_part_3_uc_b_count_in_3['behavior_type_2'] * (
df_part_3_uc_b_count_in_3['cumcount'] + 1)
df_part_3_uc_b_count_in_3['uc_b3_count_in_3'] = df_part_3_uc_b_count_in_3['behavior_type_3'] * (
df_part_3_uc_b_count_in_3['cumcount'] + 1)
df_part_3_uc_b_count_in_3['uc_b4_count_in_3'] = df_part_3_uc_b_count_in_3['behavior_type_4'] * (
df_part_3_uc_b_count_in_3['cumcount'] + 1)
df_part_3_uc_b_count_in_3 = df_part_3_uc_b_count_in_3[['user_id',
'item_category',
'uc_b1_count_in_3',
'uc_b2_count_in_3',
'uc_b3_count_in_3',
'uc_b4_count_in_3']]
df_part_3_uc_b_count_in_3 = df_part_3_uc_b_count_in_3.groupby(['user_id', 'item_category']).agg(
{'uc_b1_count_in_3': np.sum,
'uc_b2_count_in_3': np.sum,
'uc_b3_count_in_3': np.sum,
'uc_b4_count_in_3': np.sum})
df_part_3_uc_b_count_in_3.reset_index(inplace=True)
df_part_3_uc_b_count_in_3['uc_b_count_in_3'] = df_part_3_uc_b_count_in_3['uc_b1_count_in_3'] + \
df_part_3_uc_b_count_in_3['uc_b2_count_in_3'] + \
df_part_3_uc_b_count_in_3['uc_b3_count_in_3'] + \
df_part_3_uc_b_count_in_3['uc_b4_count_in_3']
# uc_b_count_in_1
df_part_3_in_1 = df_part_3[df_part_3['time'] >= np.datetime64('2014-12-18')]
df_part_3_in_1['cumcount'] = df_part_3_in_1.groupby(['user_id', 'item_category', 'behavior_type']).cumcount()
df_part_3_uc_b_count_in_1 = df_part_3_in_1.drop_duplicates(['user_id', 'item_category', 'behavior_type'], 'last')[
['user_id', 'item_category', 'behavior_type', 'cumcount']]
df_part_3_uc_b_count_in_1 = pd.get_dummies(df_part_3_uc_b_count_in_1['behavior_type']).join(
df_part_3_uc_b_count_in_1[['user_id', 'item_category', 'cumcount']])
df_part_3_uc_b_count_in_1.rename(columns={1: 'behavior_type_1',
2: 'behavior_type_2',
3: 'behavior_type_3',
4: 'behavior_type_4'}, inplace=True)
df_part_3_uc_b_count_in_1['uc_b1_count_in_1'] = df_part_3_uc_b_count_in_1['behavior_type_1'] * (
df_part_3_uc_b_count_in_1['cumcount'] + 1)
df_part_3_uc_b_count_in_1['uc_b2_count_in_1'] = df_part_3_uc_b_count_in_1['behavior_type_2'] * (
df_part_3_uc_b_count_in_1['cumcount'] + 1)
df_part_3_uc_b_count_in_1['uc_b3_count_in_1'] = df_part_3_uc_b_count_in_1['behavior_type_3'] * (
df_part_3_uc_b_count_in_1['cumcount'] + 1)
df_part_3_uc_b_count_in_1['uc_b4_count_in_1'] = df_part_3_uc_b_count_in_1['behavior_type_4'] * (
df_part_3_uc_b_count_in_1['cumcount'] + 1)
df_part_3_uc_b_count_in_1 = df_part_3_uc_b_count_in_1[['user_id',
'item_category',
'uc_b1_count_in_1',
'uc_b2_count_in_1',
'uc_b3_count_in_1',
'uc_b4_count_in_1']]
df_part_3_uc_b_count_in_1 = df_part_3_uc_b_count_in_1.groupby(['user_id', 'item_category']).agg(
{'uc_b1_count_in_1': np.sum,
'uc_b2_count_in_1': np.sum,
'uc_b3_count_in_1': np.sum,
'uc_b4_count_in_1': np.sum})
df_part_3_uc_b_count_in_1.reset_index(inplace=True)
df_part_3_uc_b_count_in_1['uc_b_count_in_1'] = df_part_3_uc_b_count_in_1['uc_b1_count_in_1'] + \
df_part_3_uc_b_count_in_1['uc_b2_count_in_1'] + \
df_part_3_uc_b_count_in_1['uc_b3_count_in_1'] + \
df_part_3_uc_b_count_in_1['uc_b4_count_in_1']
df_part_3_uc_b_count = pd.merge(df_part_3_uc_b_count_in_6, df_part_3_uc_b_count_in_3, on=['user_id', 'item_category'],
how='left').fillna(0)
df_part_3_uc_b_count = pd.merge(df_part_3_uc_b_count, df_part_3_uc_b_count_in_1, on=['user_id', 'item_category'],
how='left').fillna(0)
df_part_3_uc_b_count[['uc_b1_count_in_6',
'uc_b2_count_in_6',
'uc_b3_count_in_6',
'uc_b4_count_in_6',
'uc_b_count_in_6',
'uc_b1_count_in_3',
'uc_b2_count_in_3',
'uc_b3_count_in_3',
'uc_b4_count_in_3',
'uc_b_count_in_3',
'uc_b1_count_in_1',
'uc_b2_count_in_1',
'uc_b3_count_in_1',
'uc_b4_count_in_1',
'uc_b_count_in_1']] = df_part_3_uc_b_count[['uc_b1_count_in_6',
'uc_b2_count_in_6',
'uc_b3_count_in_6',
'uc_b4_count_in_6',
'uc_b_count_in_6',
'uc_b1_count_in_3',
'uc_b2_count_in_3',
'uc_b3_count_in_3',
'uc_b4_count_in_3',
'uc_b_count_in_3',
'uc_b1_count_in_1',
'uc_b2_count_in_1',
'uc_b3_count_in_1',
'uc_b4_count_in_1',
'uc_b_count_in_1']].astype(int)
# uc_b_count_rank_in_u
df_part_3_uc_b_count['uc_b_count_rank_in_u'] = df_part_3_uc_b_count.groupby(['user_id'])['uc_b_count_in_6'].rank(
method='min', ascending=False).astype('int')
# uc_b_last_time
df_part_3.sort_values(by=['user_id', 'item_category', 'behavior_type', 'time'], inplace=True)
df_part_3_uc_b_last_time = df_part_3.drop_duplicates(['user_id', 'item_category', 'behavior_type'], 'last')[
['user_id', 'item_category', 'behavior_type', 'time']]
df_part_3_uc_b_last_time['uc_b1_last_time'] = df_part_3_uc_b_last_time[df_part_3_uc_b_last_time['behavior_type'] == 1][
'time']
df_part_3_uc_b_last_time['uc_b2_last_time'] = df_part_3_uc_b_last_time[df_part_3_uc_b_last_time['behavior_type'] == 2][
'time']
df_part_3_uc_b_last_time['uc_b3_last_time'] = df_part_3_uc_b_last_time[df_part_3_uc_b_last_time['behavior_type'] == 3][
'time']
df_part_3_uc_b_last_time['uc_b4_last_time'] = df_part_3_uc_b_last_time[df_part_3_uc_b_last_time['behavior_type'] == 4][
'time']
df_part_3_uc_b_last_time.loc[df_part_3_uc_b_last_time['uc_b1_last_time'].notnull(), 'uc_b1_last_hours'] = (
pd.to_datetime('2014-12-19') - df_part_3_uc_b_last_time['uc_b1_last_time'])
df_part_3_uc_b_last_time['uc_b1_last_hours'] = \
df_part_3_uc_b_last_time[df_part_3_uc_b_last_time['uc_b1_last_hours'].notnull()]['uc_b1_last_hours'].apply(
lambda x: x.days * 24 + x.seconds // 3600)
df_part_3_uc_b_last_time.loc[df_part_3_uc_b_last_time['uc_b2_last_time'].notnull(), 'uc_b2_last_hours'] = (
pd.to_datetime('2014-12-19') - df_part_3_uc_b_last_time['uc_b2_last_time'])
df_part_3_uc_b_last_time['uc_b2_last_hours'] = \
df_part_3_uc_b_last_time[df_part_3_uc_b_last_time['uc_b2_last_hours'].notnull()]['uc_b2_last_hours'].apply(
lambda x: x.days * 24 + x.seconds // 3600)
df_part_3_uc_b_last_time.loc[df_part_3_uc_b_last_time['uc_b3_last_time'].notnull(), 'uc_b3_last_hours'] = (
pd.to_datetime('2014-12-19') - df_part_3_uc_b_last_time['uc_b3_last_time'])
df_part_3_uc_b_last_time['uc_b3_last_hours'] = \
df_part_3_uc_b_last_time[df_part_3_uc_b_last_time['uc_b3_last_hours'].notnull()]['uc_b3_last_hours'].apply(
lambda x: x.days * 24 + x.seconds // 3600)
df_part_3_uc_b_last_time.loc[df_part_3_uc_b_last_time['uc_b4_last_time'].notnull(), 'uc_b4_last_hours'] = (
pd.to_datetime('2014-12-19') - df_part_3_uc_b_last_time['uc_b4_last_time'])
df_part_3_uc_b_last_time['uc_b4_last_hours'] = \
df_part_3_uc_b_last_time[df_part_3_uc_b_last_time['uc_b4_last_hours'].notnull()]['uc_b4_last_hours'].apply(
lambda x: x.days * 24 + x.seconds // 3600)
df_part_3_uc_b_last_time = df_part_3_uc_b_last_time[['user_id',
'item_category',
'uc_b1_last_hours',
'uc_b2_last_hours',
'uc_b3_last_hours',
'uc_b4_last_hours']]
df_part_3_uc_b_last_time = df_part_3_uc_b_last_time.groupby(['user_id', 'item_category']).agg(
{'uc_b1_last_hours': np.sum,
'uc_b2_last_hours': np.sum,
'uc_b3_last_hours': np.sum,
'uc_b4_last_hours': np.sum})
df_part_3_uc_b_last_time.reset_index(inplace=True)
# merge for generation of f_UC_part_3
f_UC_part_3 = pd.merge(df_part_3_uc_b_count, df_part_3_uc_b_last_time, how='left', on=['user_id', 'item_category'])
# write to csv file
f_UC_part_3.to_csv(path_df_part_3_UC, index=False)
| 59.813205
| 121
| 0.544718
| 11,841
| 74,288
| 2.719787
| 0.010641
| 0.214315
| 0.174321
| 0.047229
| 0.97106
| 0.940879
| 0.907313
| 0.896476
| 0.870765
| 0.843782
| 0
| 0.064548
| 0.352049
| 74,288
| 1,242
| 122
| 59.813205
| 0.604508
| 0.01618
| 0
| 0.442127
| 0
| 0
| 0.230118
| 0.001451
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.002086
| 0
| 0.002086
| 0
| 0
| 0
| 0
| null | 1
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
7f4386c9d839669a0201035a3acb85a6fb7aa7de
| 71
|
py
|
Python
|
toolkit/routes/graphs/__init__.py
|
salonimalhotra-ui/seo-audits-toolkit
|
99af8b53dffad45f679eaf06b4a8080df75fcd72
|
[
"MIT"
] | 1
|
2020-12-21T18:21:34.000Z
|
2020-12-21T18:21:34.000Z
|
toolkit/routes/graphs/__init__.py
|
x0rzkov/seo-audits-toolkit
|
29994cbab51bd0697c717b675df3c176096e4f03
|
[
"MIT"
] | null | null | null |
toolkit/routes/graphs/__init__.py
|
x0rzkov/seo-audits-toolkit
|
29994cbab51bd0697c717b675df3c176096e4f03
|
[
"MIT"
] | null | null | null |
import toolkit.routes.graphs.api
import toolkit.routes.graphs.dashboard
| 35.5
| 38
| 0.873239
| 10
| 71
| 6.2
| 0.6
| 0.419355
| 0.612903
| 0.806452
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.042254
| 71
| 2
| 38
| 35.5
| 0.911765
| 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
|
124804528029cf09c82e6953ac80d110148fcb5c
| 433
|
py
|
Python
|
flower.py
|
surace997/suresh-dangol
|
e9014e8c151387f7ce92fb9ef15e2ded50befaf2
|
[
"Unlicense"
] | null | null | null |
flower.py
|
surace997/suresh-dangol
|
e9014e8c151387f7ce92fb9ef15e2ded50befaf2
|
[
"Unlicense"
] | null | null | null |
flower.py
|
surace997/suresh-dangol
|
e9014e8c151387f7ce92fb9ef15e2ded50befaf2
|
[
"Unlicense"
] | null | null | null |
#suresh dangol
#suresh.dangol66@myhunter.cuny.edu
import turtle
suresh=turtle.Turtle()
for i in range(8):
suresh.forward(100)
suresh.left(90)
suresh.forward(100)
suresh.left(90)
suresh.forward(100)
suresh.left(90)
suresh.forward(100)
suresh.left(90)
suresh.forward(100)
suresh.left(90)
suresh.forward(100)
suresh.left(90)
suresh.forward(100)
suresh.left(90)
suresh.forward(100)
suresh.left(90)
suresh.left(360/8)
| 16.653846
| 34
| 0.741339
| 69
| 433
| 4.652174
| 0.26087
| 0.280374
| 0.398754
| 0.548287
| 0.716511
| 0.716511
| 0.716511
| 0.716511
| 0.716511
| 0.716511
| 0
| 0.121762
| 0.108545
| 433
| 25
| 35
| 17.32
| 0.709845
| 0.106236
| 0
| 0.8
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.05
| 0
| 0.05
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 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
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 9
|
89ddbb8d174d8e398852a848651d55d44db38766
| 3,805
|
py
|
Python
|
DataStructures/LinkedList/tests/singly_linked_list_test.py
|
Nalhin/AlgorithmsAndDataStructures
|
2d2c87d0572e107c993c3c8866b8beefd4d22082
|
[
"MIT"
] | 1
|
2021-11-16T13:02:25.000Z
|
2021-11-16T13:02:25.000Z
|
DataStructures/LinkedList/tests/singly_linked_list_test.py
|
Nalhin/AlgorithmsAndDataStructures
|
2d2c87d0572e107c993c3c8866b8beefd4d22082
|
[
"MIT"
] | null | null | null |
DataStructures/LinkedList/tests/singly_linked_list_test.py
|
Nalhin/AlgorithmsAndDataStructures
|
2d2c87d0572e107c993c3c8866b8beefd4d22082
|
[
"MIT"
] | null | null | null |
import pytest
from DataStructures.LinkedList.singly_linked_list import SinglyLinkedList
@pytest.fixture()
def singly_linked_list():
return SinglyLinkedList()
class TestSinglyLinkedList:
def test_is_empty(self, singly_linked_list):
result = singly_linked_list.is_empty()
assert result
def test_size(self, singly_linked_list):
singly_linked_list.add_first(1)
singly_linked_list.add_first(2)
singly_linked_list.add_first(3)
result = singly_linked_list.size()
assert result == 3
def test_get_first(self, singly_linked_list):
item = 4
singly_linked_list.add_first(1)
singly_linked_list.add_first(item)
result = singly_linked_list.get_first()
assert result == item
def test_get_at(self, singly_linked_list):
item = 2
singly_linked_list.add_first(3)
singly_linked_list.add_first(item)
singly_linked_list.add_first(3)
result = singly_linked_list.get_at(1)
assert result == item
def test_get_at_empty_list(self, singly_linked_list):
with pytest.raises(Exception):
assert singly_linked_list.get_at(0)
def test_get_at_out_of_bounds(self, singly_linked_list):
singly_linked_list.add_first(1)
with pytest.raises(Exception):
assert singly_linked_list.get_at(1)
def test_get_last(self, singly_linked_list):
item = 2
singly_linked_list.add_first(item)
singly_linked_list.add_first(3)
singly_linked_list.add_first(3)
result = singly_linked_list.get_last()
assert result == item
def test_get_last_empty_list(self, singly_linked_list):
with pytest.raises(Exception):
assert singly_linked_list.get_at(0)
def test_add_first(self, singly_linked_list):
item = 2
singly_linked_list.add_first(3)
singly_linked_list.add_first(item)
assert singly_linked_list.get_first() == item
def test_add_at(self, singly_linked_list):
item = 2
singly_linked_list.add_first(3)
singly_linked_list.add_first(3)
singly_linked_list.add_at(1, item)
assert singly_linked_list.get_at(1) == item
def test_add_at_first(self, singly_linked_list):
item = 2
singly_linked_list.add_at(0, item)
assert singly_linked_list.get_at(0) == item
def test_add_at_out_of_bounds(self, singly_linked_list):
with pytest.raises(Exception):
assert singly_linked_list.add_at(2, 1)
def test_add_last(self, singly_linked_list):
item = 2
singly_linked_list.add_first(3)
singly_linked_list.add_first(3)
singly_linked_list.add_last(item)
assert singly_linked_list.get_last() == item
def test_index_of(self, singly_linked_list):
item = 2
singly_linked_list.add_first(3)
singly_linked_list.add_first(item)
singly_linked_list.add_first(3)
result = singly_linked_list.index_of(item)
assert result == 1
def test_delete_first(self, singly_linked_list):
item = 4
singly_linked_list.add_first(item)
singly_linked_list.add_first(3)
singly_linked_list.delete_first()
assert singly_linked_list.get_first() == item
def test_delete_at(self, singly_linked_list):
singly_linked_list.add_first(3)
singly_linked_list.add_first(3)
singly_linked_list.delete_at(1)
with pytest.raises(Exception):
assert singly_linked_list.get_at(1)
def test_clear(self, singly_linked_list):
singly_linked_list.add_first(1)
singly_linked_list.add_first(1)
singly_linked_list.clear()
assert not singly_linked_list.size()
| 27.178571
| 73
| 0.685677
| 533
| 3,805
| 4.467167
| 0.078799
| 0.347753
| 0.463671
| 0.247375
| 0.828643
| 0.794204
| 0.768165
| 0.718186
| 0.707266
| 0.657287
| 0
| 0.015188
| 0.238633
| 3,805
| 139
| 74
| 27.374101
| 0.806697
| 0
| 0
| 0.526882
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.182796
| 1
| 0.193548
| false
| 0
| 0.021505
| 0.010753
| 0.236559
| 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
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 9
|
d627b5b57652c226169f6db684f22b14a6017a37
| 37,556
|
py
|
Python
|
alphausblue/api/aws/reduction_pb2.py
|
alphauslabs/blue-sdk-python
|
24120a60cd153a69080661a687938b417b32f947
|
[
"Apache-2.0"
] | null | null | null |
alphausblue/api/aws/reduction_pb2.py
|
alphauslabs/blue-sdk-python
|
24120a60cd153a69080661a687938b417b32f947
|
[
"Apache-2.0"
] | null | null | null |
alphausblue/api/aws/reduction_pb2.py
|
alphauslabs/blue-sdk-python
|
24120a60cd153a69080661a687938b417b32f947
|
[
"Apache-2.0"
] | null | null | null |
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: api/aws/reduction.proto
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as _symbol_database
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
DESCRIPTOR = _descriptor.FileDescriptor(
name='api/aws/reduction.proto',
package='blueapi.api.aws',
syntax='proto3',
serialized_options=b'\n\035cloud.alphaus.blueapi.api.awsB\024ApiAwsReductionProtoZ*github.com/alphauslabs/blue-sdk-go/api/aws',
create_key=_descriptor._internal_create_key,
serialized_pb=b'\n\x17\x61pi/aws/reduction.proto\x12\x0f\x62lueapi.api.aws\"\xc3\x01\n\x11\x41wsCostReductions\x12\x36\n\x07summary\x18\x01 \x01(\x0b\x32%.blueapi.api.aws.CostReductionSummary\x12:\n\x10riCostReductions\x18\x02 \x03(\x0b\x32 .blueapi.api.aws.RiCostReduction\x12:\n\x10spCostReductions\x18\x03 \x03(\x0b\x32 .blueapi.api.aws.SpCostReduction\"\xa7\x05\n\x0fRiCostReduction\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0b\n\x03\x61rn\x18\x02 \x01(\t\x12\x12\n\ncustomerId\x18\x03 \x01(\t\x12\x14\n\x0c\x63ustomerName\x18\x04 \x01(\t\x12\x19\n\x11\x62illingInternalId\x18\x05 \x01(\t\x12\x16\n\x0e\x62illingGroupId\x18\x06 \x01(\t\x12\x18\n\x10\x62illingGroupName\x18\x07 \x01(\t\x12\x16\n\x0e\x64\x65stCustomerId\x18\x08 \x01(\t\x12\r\n\x05start\x18\t \x01(\t\x12\x0b\n\x03\x65nd\x18\n \x01(\t\x12\x0f\n\x07service\x18\x0b \x01(\t\x12\x14\n\x0cinstanceType\x18\x0c \x01(\t\x12\x1a\n\x12modificationStatus\x18\r \x01(\t\x12\x0e\n\x06number\x18\x0e \x01(\x03\x12\x12\n\nofferClass\x18\x0f \x01(\t\x12\x0e\n\x06paidBy\x18\x10 \x01(\t\x12\x15\n\rpaymentOption\x18\x11 \x01(\t\x12\x10\n\x08platform\x18\x12 \x01(\t\x12\x0e\n\x06region\x18\x13 \x01(\t\x12\x0e\n\x06remove\x18\x14 \x01(\x08\x12\r\n\x05scope\x18\x15 \x01(\t\x12\x0f\n\x07tenancy\x18\x16 \x01(\t\x12\x12\n\ntermLength\x18\x17 \x01(\t\x12\x11\n\tusageType\x18\x18 \x01(\t\x12\x0e\n\x06vendor\x18\x19 \x01(\t\x12\x0c\n\x04zone\x18\x1a \x01(\t\x12\x10\n\x08\x64isabled\x18\x1b \x01(\x08\x12\x1b\n\x13normalizationFactor\x18\x1c \x01(\x01\x12\x15\n\runblendedRate\x18\x1d \x01(\x01\x12\x14\n\x0cupfrontValue\x18\x1e \x01(\x01\x12\x14\n\x0condemandCost\x18\x1f \x01(\x01\x12\x15\n\reffectiveCost\x18 \x01(\x01\x12\x0f\n\x07savings\x18! \x01(\x01\x12\x11\n\tbreakEven\x18\" \x01(\t\"\xbc\x03\n\x0fSpCostReduction\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0b\n\x03\x61rn\x18\x02 \x01(\t\x12\x12\n\ncustomerId\x18\x03 \x01(\t\x12\x14\n\x0c\x63ustomerName\x18\x04 \x01(\t\x12\x16\n\x0e\x62illingGroupId\x18\x05 \x01(\t\x12\x18\n\x10\x62illingGroupName\x18\x06 \x01(\t\x12\x10\n\x08\x63urrency\x18\x07 \x01(\t\x12\x0f\n\x07service\x18\x08 \x01(\t\x12\x13\n\x0bsavingsPlan\x18\t \x01(\t\x12\r\n\x05start\x18\n \x01(\t\x12\x0b\n\x03\x65nd\x18\x0b \x01(\t\x12\x0e\n\x06region\x18\x0c \x01(\t\x12\x16\n\x0einstanceFamily\x18\r \x01(\t\x12\x12\n\ntermLength\x18\x0e \x01(\t\x12\x15\n\rpaymentOption\x18\x0f \x01(\t\x12\x12\n\ncommitment\x18\x10 \x01(\x01\x12\x12\n\nupfrontFee\x18\x11 \x01(\x01\x12\x14\n\x0crecurringFee\x18\x12 \x01(\x01\x12\x14\n\x0condemandCost\x18\x13 \x01(\x01\x12\x15\n\reffectiveCost\x18\x14 \x01(\x01\x12\x0f\n\x07savings\x18\x15 \x01(\x01\x12\x11\n\tbreakEven\x18\x16 \x01(\t\"\x89\x02\n\x14\x43ostReductionSummary\x12\x19\n\x11totalOnDemandCost\x18\x01 \x01(\x01\x12\x1a\n\x12totalEffectiveCost\x18\x02 \x01(\x01\x12\x14\n\x0ctotalSavings\x18\x03 \x01(\x01\x12\x1b\n\x13totalRiOnDemandCost\x18\x04 \x01(\x01\x12\x1c\n\x14totalRiEffectiveCost\x18\x05 \x01(\x01\x12\x16\n\x0etotalRiSavings\x18\x06 \x01(\x01\x12\x1b\n\x13totalSpOnDemandCost\x18\x07 \x01(\x01\x12\x1c\n\x14totalSpEffectiveCost\x18\x08 \x01(\x01\x12\x16\n\x0etotalSpSavings\x18\t \x01(\x01\x42\x61\n\x1d\x63loud.alphaus.blueapi.api.awsB\x14\x41piAwsReductionProtoZ*github.com/alphauslabs/blue-sdk-go/api/awsb\x06proto3'
)
_AWSCOSTREDUCTIONS = _descriptor.Descriptor(
name='AwsCostReductions',
full_name='blueapi.api.aws.AwsCostReductions',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='summary', full_name='blueapi.api.aws.AwsCostReductions.summary', index=0,
number=1, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='riCostReductions', full_name='blueapi.api.aws.AwsCostReductions.riCostReductions', index=1,
number=2, type=11, cpp_type=10, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='spCostReductions', full_name='blueapi.api.aws.AwsCostReductions.spCostReductions', index=2,
number=3, type=11, cpp_type=10, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=45,
serialized_end=240,
)
_RICOSTREDUCTION = _descriptor.Descriptor(
name='RiCostReduction',
full_name='blueapi.api.aws.RiCostReduction',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='id', full_name='blueapi.api.aws.RiCostReduction.id', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='arn', full_name='blueapi.api.aws.RiCostReduction.arn', index=1,
number=2, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='customerId', full_name='blueapi.api.aws.RiCostReduction.customerId', index=2,
number=3, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='customerName', full_name='blueapi.api.aws.RiCostReduction.customerName', index=3,
number=4, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='billingInternalId', full_name='blueapi.api.aws.RiCostReduction.billingInternalId', index=4,
number=5, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='billingGroupId', full_name='blueapi.api.aws.RiCostReduction.billingGroupId', index=5,
number=6, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='billingGroupName', full_name='blueapi.api.aws.RiCostReduction.billingGroupName', index=6,
number=7, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='destCustomerId', full_name='blueapi.api.aws.RiCostReduction.destCustomerId', index=7,
number=8, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='start', full_name='blueapi.api.aws.RiCostReduction.start', index=8,
number=9, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='end', full_name='blueapi.api.aws.RiCostReduction.end', index=9,
number=10, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='service', full_name='blueapi.api.aws.RiCostReduction.service', index=10,
number=11, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='instanceType', full_name='blueapi.api.aws.RiCostReduction.instanceType', index=11,
number=12, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='modificationStatus', full_name='blueapi.api.aws.RiCostReduction.modificationStatus', index=12,
number=13, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='number', full_name='blueapi.api.aws.RiCostReduction.number', index=13,
number=14, type=3, cpp_type=2, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='offerClass', full_name='blueapi.api.aws.RiCostReduction.offerClass', index=14,
number=15, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='paidBy', full_name='blueapi.api.aws.RiCostReduction.paidBy', index=15,
number=16, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='paymentOption', full_name='blueapi.api.aws.RiCostReduction.paymentOption', index=16,
number=17, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='platform', full_name='blueapi.api.aws.RiCostReduction.platform', index=17,
number=18, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='region', full_name='blueapi.api.aws.RiCostReduction.region', index=18,
number=19, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='remove', full_name='blueapi.api.aws.RiCostReduction.remove', index=19,
number=20, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='scope', full_name='blueapi.api.aws.RiCostReduction.scope', index=20,
number=21, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='tenancy', full_name='blueapi.api.aws.RiCostReduction.tenancy', index=21,
number=22, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='termLength', full_name='blueapi.api.aws.RiCostReduction.termLength', index=22,
number=23, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='usageType', full_name='blueapi.api.aws.RiCostReduction.usageType', index=23,
number=24, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='vendor', full_name='blueapi.api.aws.RiCostReduction.vendor', index=24,
number=25, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='zone', full_name='blueapi.api.aws.RiCostReduction.zone', index=25,
number=26, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='disabled', full_name='blueapi.api.aws.RiCostReduction.disabled', index=26,
number=27, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='normalizationFactor', full_name='blueapi.api.aws.RiCostReduction.normalizationFactor', index=27,
number=28, type=1, cpp_type=5, label=1,
has_default_value=False, default_value=float(0),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='unblendedRate', full_name='blueapi.api.aws.RiCostReduction.unblendedRate', index=28,
number=29, type=1, cpp_type=5, label=1,
has_default_value=False, default_value=float(0),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='upfrontValue', full_name='blueapi.api.aws.RiCostReduction.upfrontValue', index=29,
number=30, type=1, cpp_type=5, label=1,
has_default_value=False, default_value=float(0),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='ondemandCost', full_name='blueapi.api.aws.RiCostReduction.ondemandCost', index=30,
number=31, type=1, cpp_type=5, label=1,
has_default_value=False, default_value=float(0),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='effectiveCost', full_name='blueapi.api.aws.RiCostReduction.effectiveCost', index=31,
number=32, type=1, cpp_type=5, label=1,
has_default_value=False, default_value=float(0),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='savings', full_name='blueapi.api.aws.RiCostReduction.savings', index=32,
number=33, type=1, cpp_type=5, label=1,
has_default_value=False, default_value=float(0),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='breakEven', full_name='blueapi.api.aws.RiCostReduction.breakEven', index=33,
number=34, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=243,
serialized_end=922,
)
_SPCOSTREDUCTION = _descriptor.Descriptor(
name='SpCostReduction',
full_name='blueapi.api.aws.SpCostReduction',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='id', full_name='blueapi.api.aws.SpCostReduction.id', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='arn', full_name='blueapi.api.aws.SpCostReduction.arn', index=1,
number=2, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='customerId', full_name='blueapi.api.aws.SpCostReduction.customerId', index=2,
number=3, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='customerName', full_name='blueapi.api.aws.SpCostReduction.customerName', index=3,
number=4, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='billingGroupId', full_name='blueapi.api.aws.SpCostReduction.billingGroupId', index=4,
number=5, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='billingGroupName', full_name='blueapi.api.aws.SpCostReduction.billingGroupName', index=5,
number=6, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='currency', full_name='blueapi.api.aws.SpCostReduction.currency', index=6,
number=7, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='service', full_name='blueapi.api.aws.SpCostReduction.service', index=7,
number=8, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='savingsPlan', full_name='blueapi.api.aws.SpCostReduction.savingsPlan', index=8,
number=9, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='start', full_name='blueapi.api.aws.SpCostReduction.start', index=9,
number=10, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='end', full_name='blueapi.api.aws.SpCostReduction.end', index=10,
number=11, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='region', full_name='blueapi.api.aws.SpCostReduction.region', index=11,
number=12, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='instanceFamily', full_name='blueapi.api.aws.SpCostReduction.instanceFamily', index=12,
number=13, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='termLength', full_name='blueapi.api.aws.SpCostReduction.termLength', index=13,
number=14, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='paymentOption', full_name='blueapi.api.aws.SpCostReduction.paymentOption', index=14,
number=15, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='commitment', full_name='blueapi.api.aws.SpCostReduction.commitment', index=15,
number=16, type=1, cpp_type=5, label=1,
has_default_value=False, default_value=float(0),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='upfrontFee', full_name='blueapi.api.aws.SpCostReduction.upfrontFee', index=16,
number=17, type=1, cpp_type=5, label=1,
has_default_value=False, default_value=float(0),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='recurringFee', full_name='blueapi.api.aws.SpCostReduction.recurringFee', index=17,
number=18, type=1, cpp_type=5, label=1,
has_default_value=False, default_value=float(0),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='ondemandCost', full_name='blueapi.api.aws.SpCostReduction.ondemandCost', index=18,
number=19, type=1, cpp_type=5, label=1,
has_default_value=False, default_value=float(0),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='effectiveCost', full_name='blueapi.api.aws.SpCostReduction.effectiveCost', index=19,
number=20, type=1, cpp_type=5, label=1,
has_default_value=False, default_value=float(0),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='savings', full_name='blueapi.api.aws.SpCostReduction.savings', index=20,
number=21, type=1, cpp_type=5, label=1,
has_default_value=False, default_value=float(0),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='breakEven', full_name='blueapi.api.aws.SpCostReduction.breakEven', index=21,
number=22, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=925,
serialized_end=1369,
)
_COSTREDUCTIONSUMMARY = _descriptor.Descriptor(
name='CostReductionSummary',
full_name='blueapi.api.aws.CostReductionSummary',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='totalOnDemandCost', full_name='blueapi.api.aws.CostReductionSummary.totalOnDemandCost', index=0,
number=1, type=1, cpp_type=5, label=1,
has_default_value=False, default_value=float(0),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='totalEffectiveCost', full_name='blueapi.api.aws.CostReductionSummary.totalEffectiveCost', index=1,
number=2, type=1, cpp_type=5, label=1,
has_default_value=False, default_value=float(0),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='totalSavings', full_name='blueapi.api.aws.CostReductionSummary.totalSavings', index=2,
number=3, type=1, cpp_type=5, label=1,
has_default_value=False, default_value=float(0),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='totalRiOnDemandCost', full_name='blueapi.api.aws.CostReductionSummary.totalRiOnDemandCost', index=3,
number=4, type=1, cpp_type=5, label=1,
has_default_value=False, default_value=float(0),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='totalRiEffectiveCost', full_name='blueapi.api.aws.CostReductionSummary.totalRiEffectiveCost', index=4,
number=5, type=1, cpp_type=5, label=1,
has_default_value=False, default_value=float(0),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='totalRiSavings', full_name='blueapi.api.aws.CostReductionSummary.totalRiSavings', index=5,
number=6, type=1, cpp_type=5, label=1,
has_default_value=False, default_value=float(0),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='totalSpOnDemandCost', full_name='blueapi.api.aws.CostReductionSummary.totalSpOnDemandCost', index=6,
number=7, type=1, cpp_type=5, label=1,
has_default_value=False, default_value=float(0),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='totalSpEffectiveCost', full_name='blueapi.api.aws.CostReductionSummary.totalSpEffectiveCost', index=7,
number=8, type=1, cpp_type=5, label=1,
has_default_value=False, default_value=float(0),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='totalSpSavings', full_name='blueapi.api.aws.CostReductionSummary.totalSpSavings', index=8,
number=9, type=1, cpp_type=5, label=1,
has_default_value=False, default_value=float(0),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=1372,
serialized_end=1637,
)
_AWSCOSTREDUCTIONS.fields_by_name['summary'].message_type = _COSTREDUCTIONSUMMARY
_AWSCOSTREDUCTIONS.fields_by_name['riCostReductions'].message_type = _RICOSTREDUCTION
_AWSCOSTREDUCTIONS.fields_by_name['spCostReductions'].message_type = _SPCOSTREDUCTION
DESCRIPTOR.message_types_by_name['AwsCostReductions'] = _AWSCOSTREDUCTIONS
DESCRIPTOR.message_types_by_name['RiCostReduction'] = _RICOSTREDUCTION
DESCRIPTOR.message_types_by_name['SpCostReduction'] = _SPCOSTREDUCTION
DESCRIPTOR.message_types_by_name['CostReductionSummary'] = _COSTREDUCTIONSUMMARY
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
AwsCostReductions = _reflection.GeneratedProtocolMessageType('AwsCostReductions', (_message.Message,), {
'DESCRIPTOR' : _AWSCOSTREDUCTIONS,
'__module__' : 'api.aws.reduction_pb2'
# @@protoc_insertion_point(class_scope:blueapi.api.aws.AwsCostReductions)
})
_sym_db.RegisterMessage(AwsCostReductions)
RiCostReduction = _reflection.GeneratedProtocolMessageType('RiCostReduction', (_message.Message,), {
'DESCRIPTOR' : _RICOSTREDUCTION,
'__module__' : 'api.aws.reduction_pb2'
# @@protoc_insertion_point(class_scope:blueapi.api.aws.RiCostReduction)
})
_sym_db.RegisterMessage(RiCostReduction)
SpCostReduction = _reflection.GeneratedProtocolMessageType('SpCostReduction', (_message.Message,), {
'DESCRIPTOR' : _SPCOSTREDUCTION,
'__module__' : 'api.aws.reduction_pb2'
# @@protoc_insertion_point(class_scope:blueapi.api.aws.SpCostReduction)
})
_sym_db.RegisterMessage(SpCostReduction)
CostReductionSummary = _reflection.GeneratedProtocolMessageType('CostReductionSummary', (_message.Message,), {
'DESCRIPTOR' : _COSTREDUCTIONSUMMARY,
'__module__' : 'api.aws.reduction_pb2'
# @@protoc_insertion_point(class_scope:blueapi.api.aws.CostReductionSummary)
})
_sym_db.RegisterMessage(CostReductionSummary)
DESCRIPTOR._options = None
# @@protoc_insertion_point(module_scope)
| 58.407465
| 3,251
| 0.75253
| 4,957
| 37,556
| 5.433327
| 0.0581
| 0.061783
| 0.096647
| 0.073182
| 0.838674
| 0.810456
| 0.728734
| 0.709056
| 0.699811
| 0.699811
| 0
| 0.041134
| 0.121578
| 37,556
| 642
| 3,252
| 58.498442
| 0.775265
| 0.013393
| 0
| 0.731148
| 1
| 0.003279
| 0.21094
| 0.173466
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.006557
| 0
| 0.006557
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
d63db059c7b344675367753765cbeb6af030a5c3
| 2,238
|
py
|
Python
|
execute-scripts/Ti64_Diamond_2021_continuous_peak_fit_RUN.py
|
LightForm-group/continuous-peak-fit-analysis
|
e3133a016e64f45be6cb560d5cedc257bfe653a9
|
[
"MIT"
] | null | null | null |
execute-scripts/Ti64_Diamond_2021_continuous_peak_fit_RUN.py
|
LightForm-group/continuous-peak-fit-analysis
|
e3133a016e64f45be6cb560d5cedc257bfe653a9
|
[
"MIT"
] | null | null | null |
execute-scripts/Ti64_Diamond_2021_continuous_peak_fit_RUN.py
|
LightForm-group/continuous-peak-fit-analysis
|
e3133a016e64f45be6cb560d5cedc257bfe653a9
|
[
"MIT"
] | null | null | null |
import sys
print(sys.executable)
print(sys.version_info)
sys.path.append("../../continuous-peak-fit/Continuous-Peak-Fit")
import cpf
input_filepath = "../../../SXRD_analysis/diamond_2021/103845/texture-cpf-stage-scan/103845-cpf-output/"
input_filename = "INPUT_Diamond-2021_Ti64_21alpha_4beta_iCSF_1.py"
input_file = f"{input_filepath}{input_filename}"
print(input_file)
cpf.XRD_FitPattern.initiate(input_file)
cpf.XRD_FitPattern.execute(input_file)
# cpf.XRD_FitPattern.writeoutput(input_file)
input_filename = "INPUT_Diamond-2021_Ti64_21alpha_4beta_iCSF_2.py"
input_file = f"{input_filepath}{input_filename}"
print(input_file)
cpf.XRD_FitPattern.execute(input_file)
# cpf.XRD_FitPattern.writeoutput(input_file)
input_filename = "INPUT_Diamond-2021_Ti64_21alpha_4beta_iCSF_3.py"
input_file = f"{input_filepath}{input_filename}"
print(input_file)
cpf.XRD_FitPattern.execute(input_file)
# cpf.XRD_FitPattern.writeoutput(input_file)
input_filename = "INPUT_Diamond-2021_Ti64_21alpha_4beta_iCSF_4.py"
input_file = f"{input_filepath}{input_filename}"
print(input_file)
cpf.XRD_FitPattern.execute(input_file)
# cpf.XRD_FitPattern.writeoutput(input_file)
input_filename = "INPUT_Diamond-2021_Ti64_21alpha_4beta_iCSF_5.py"
input_file = f"{input_filepath}{input_filename}"
print(input_file)
cpf.XRD_FitPattern.execute(input_file)
# cpf.XRD_FitPattern.writeoutput(input_file)
input_filename = "INPUT_Diamond-2021_Ti64_21alpha_4beta_iCSF_6.py"
input_file = f"{input_filepath}{input_filename}"
print(input_file)
cpf.XRD_FitPattern.execute(input_file)
# cpf.XRD_FitPattern.writeoutput(input_file)
input_filename = "INPUT_Diamond-2021_Ti64_21alpha_4beta_iCSF_7.py"
input_file = f"{input_filepath}{input_filename}"
print(input_file)
cpf.XRD_FitPattern.execute(input_file)
# cpf.XRD_FitPattern.writeoutput(input_file)
input_filename = "INPUT_Diamond-2021_Ti64_21alpha_4beta_iCSF_8.py"
input_file = f"{input_filepath}{input_filename}"
print(input_file)
cpf.XRD_FitPattern.execute(input_file)
# cpf.XRD_FitPattern.writeoutput(input_file)
input_filename = "INPUT_Diamond-2021_Ti64_21alpha_4beta_iCSF_9.py"
input_file = f"{input_filepath}{input_filename}"
print(input_file)
cpf.XRD_FitPattern.execute(input_file)
# cpf.XRD_FitPattern.writeoutput(input_file)
| 43.038462
| 103
| 0.840929
| 337
| 2,238
| 5.166172
| 0.133531
| 0.191269
| 0.130959
| 0.163699
| 0.887995
| 0.887995
| 0.887995
| 0.887995
| 0.887995
| 0.859851
| 0
| 0.049579
| 0.044683
| 2,238
| 52
| 104
| 43.038462
| 0.764733
| 0.172475
| 0
| 0.627907
| 0
| 0.023256
| 0.455779
| 0.455779
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.046512
| 0
| 0.046512
| 0.255814
| 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
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
d655973de7a9a719211c683d7a68da3a38d2d17d
| 313
|
py
|
Python
|
tests/parser/true_negation.7.test.py
|
veltri/DLV2
|
944aaef803aa75e7ec51d7e0c2b0d964687fdd0e
|
[
"Apache-2.0"
] | null | null | null |
tests/parser/true_negation.7.test.py
|
veltri/DLV2
|
944aaef803aa75e7ec51d7e0c2b0d964687fdd0e
|
[
"Apache-2.0"
] | null | null | null |
tests/parser/true_negation.7.test.py
|
veltri/DLV2
|
944aaef803aa75e7ec51d7e0c2b0d964687fdd0e
|
[
"Apache-2.0"
] | null | null | null |
input = """
% true negation of terms does not make sense.
%g(-a).
okay(a).
%f(1,-"zwei").
%:- not g(-a).
:- not okay(a).
%:- not f(1,-"zwei").
"""
output = """
% true negation of terms does not make sense.
%g(-a).
okay(a).
%f(1,-"zwei").
%:- not g(-a).
:- not okay(a).
%:- not f(1,-"zwei").
"""
| 14.904762
| 46
| 0.482428
| 52
| 313
| 2.903846
| 0.307692
| 0.05298
| 0.15894
| 0.251656
| 0.927152
| 0.927152
| 0.927152
| 0.927152
| 0.927152
| 0.927152
| 0
| 0.016327
| 0.217252
| 313
| 20
| 47
| 15.65
| 0.6
| 0
| 0
| 0.888889
| 0
| 0
| 0.895623
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 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
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 9
|
c3a4e8bed88341893ddc71f8407bd70dc9205f9d
| 193
|
py
|
Python
|
plates.py
|
kmbolando/boilerplates
|
ca42524cdce5b8873ca14c2a8dabd4f16d2dbc5d
|
[
"Unlicense"
] | 1
|
2020-01-03T17:22:52.000Z
|
2020-01-03T17:22:52.000Z
|
plates.py
|
kmbolando/boilerplates
|
ca42524cdce5b8873ca14c2a8dabd4f16d2dbc5d
|
[
"Unlicense"
] | null | null | null |
plates.py
|
kmbolando/boilerplates
|
ca42524cdce5b8873ca14c2a8dabd4f16d2dbc5d
|
[
"Unlicense"
] | null | null | null |
#unlicense.org
#in case importing the numpy/scipy libraries should be avoided:
def zeros(item, quanity):
return [item] * quanity
def simple_matrix(item,quanity):
return [item] * quanity
| 21.444444
| 63
| 0.746114
| 27
| 193
| 5.296296
| 0.703704
| 0.307692
| 0.237762
| 0.293706
| 0.391608
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.15544
| 193
| 8
| 64
| 24.125
| 0.877301
| 0.388601
| 0
| 0.5
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.5
| false
| 0
| 0
| 0.5
| 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
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 8
|
c3fe54b9b5c49315a1f453abb0b5624c2e6dfcc4
| 114
|
py
|
Python
|
tests/misc/phantom.py
|
QuantStack/memestra
|
cde5ef6fb85f98b36efea6262bd6f38215778a12
|
[
"BSD-3-Clause"
] | 21
|
2020-03-10T13:10:17.000Z
|
2021-06-14T17:54:01.000Z
|
tests/misc/phantom.py
|
QuantStack/memestra
|
cde5ef6fb85f98b36efea6262bd6f38215778a12
|
[
"BSD-3-Clause"
] | 48
|
2020-03-28T21:35:40.000Z
|
2022-02-14T15:14:47.000Z
|
tests/misc/phantom.py
|
QuantStack/memestra
|
cde5ef6fb85f98b36efea6262bd6f38215778a12
|
[
"BSD-3-Clause"
] | 9
|
2020-03-18T12:57:19.000Z
|
2021-11-21T09:40:25.000Z
|
from decoratortest import deprecated
from endless_pit_of_useless_stuff import void
@deprecated
def empty(): pass
| 19
| 45
| 0.850877
| 16
| 114
| 5.8125
| 0.8125
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.114035
| 114
| 5
| 46
| 22.8
| 0.920792
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| true
| 0.25
| 0.5
| 0
| 0.75
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 0
| 1
| 0
|
0
| 7
|
613df6afa1b2852c1bd9c2024d34095b83236146
| 125
|
py
|
Python
|
tests/parser/builtins.4.test.py
|
veltri/DLV2
|
944aaef803aa75e7ec51d7e0c2b0d964687fdd0e
|
[
"Apache-2.0"
] | null | null | null |
tests/parser/builtins.4.test.py
|
veltri/DLV2
|
944aaef803aa75e7ec51d7e0c2b0d964687fdd0e
|
[
"Apache-2.0"
] | null | null | null |
tests/parser/builtins.4.test.py
|
veltri/DLV2
|
944aaef803aa75e7ec51d7e0c2b0d964687fdd0e
|
[
"Apache-2.0"
] | null | null | null |
input = """
f(1).
a(X) :- 1=2+x, f(X). %+(1,2,x), f(X).
"""
output = """
f(1).
a(X) :- 1=2+x, f(X). %+(1,2,x), f(X).
"""
| 13.888889
| 38
| 0.312
| 30
| 125
| 1.3
| 0.233333
| 0.205128
| 0.307692
| 0.410256
| 0.717949
| 0.717949
| 0.717949
| 0.717949
| 0.717949
| 0.717949
| 0
| 0.10101
| 0.208
| 125
| 8
| 39
| 15.625
| 0.292929
| 0
| 0
| 0.75
| 0
| 0.25
| 0.743802
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| null | 1
| 1
| 1
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 14
|
61a5710c79780c8f734628f83112f6a687694ecc
| 3,694
|
py
|
Python
|
util/data/gen/HID.DLL.py
|
56kyle/bloons_auto
|
419d55b51d1cddc49099593970adf1c67985b389
|
[
"MIT"
] | null | null | null |
util/data/gen/HID.DLL.py
|
56kyle/bloons_auto
|
419d55b51d1cddc49099593970adf1c67985b389
|
[
"MIT"
] | null | null | null |
util/data/gen/HID.DLL.py
|
56kyle/bloons_auto
|
419d55b51d1cddc49099593970adf1c67985b389
|
[
"MIT"
] | null | null | null |
symbols = []
exports = [{'type': 'function', 'name': 'HidD_FlushQueue', 'address': '0x7ffb3a3636c0'}, {'type': 'function', 'name': 'HidD_FreePreparsedData', 'address': '0x7ffb3a361c90'}, {'type': 'function', 'name': 'HidD_GetAttributes', 'address': '0x7ffb3a361790'}, {'type': 'function', 'name': 'HidD_GetConfiguration', 'address': '0x7ffb3a363700'}, {'type': 'function', 'name': 'HidD_GetFeature', 'address': '0x7ffb3a363770'}, {'type': 'function', 'name': 'HidD_GetHidGuid', 'address': '0x7ffb3a361cd0'}, {'type': 'function', 'name': 'HidD_GetIndexedString', 'address': '0x7ffb3a3637b0'}, {'type': 'function', 'name': 'HidD_GetInputReport', 'address': '0x7ffb3a363800'}, {'type': 'function', 'name': 'HidD_GetManufacturerString', 'address': '0x7ffb3a363840'}, {'type': 'function', 'name': 'HidD_GetMsGenreDescriptor', 'address': '0x7ffb3a363880'}, {'type': 'function', 'name': 'HidD_GetNumInputBuffers', 'address': '0x7ffb3a3638c0'}, {'type': 'function', 'name': 'HidD_GetPhysicalDescriptor', 'address': '0x7ffb3a363900'}, {'type': 'function', 'name': 'HidD_GetPreparsedData', 'address': '0x7ffb3a361820'}, {'type': 'function', 'name': 'HidD_GetProductString', 'address': '0x7ffb3a363940'}, {'type': 'function', 'name': 'HidD_GetSerialNumberString', 'address': '0x7ffb3a363980'}, {'type': 'function', 'name': 'HidD_Hello', 'address': '0x7ffb3a3639c0'}, {'type': 'function', 'name': 'HidD_SetConfiguration', 'address': '0x7ffb3a363a10'}, {'type': 'function', 'name': 'HidD_SetFeature', 'address': '0x7ffb3a363a80'}, {'type': 'function', 'name': 'HidD_SetNumInputBuffers', 'address': '0x7ffb3a363ac0'}, {'type': 'function', 'name': 'HidD_SetOutputReport', 'address': '0x7ffb3a363b10'}, {'type': 'function', 'name': 'HidP_GetButtonCaps', 'address': '0x7ffb3a361370'}, {'type': 'function', 'name': 'HidP_GetCaps', 'address': '0x7ffb3a3615f0'}, {'type': 'function', 'name': 'HidP_GetData', 'address': '0x7ffb3a363c50'}, {'type': 'function', 'name': 'HidP_GetExtendedAttributes', 'address': '0x7ffb3a363f90'}, {'type': 'function', 'name': 'HidP_GetLinkCollectionNodes', 'address': '0x7ffb3a361bc0'}, {'type': 'function', 'name': 'HidP_GetScaledUsageValue', 'address': '0x7ffb3a362090'}, {'type': 'function', 'name': 'HidP_GetSpecificButtonCaps', 'address': '0x7ffb3a3613b0'}, {'type': 'function', 'name': 'HidP_GetSpecificValueCaps', 'address': '0x7ffb3a3610e0'}, {'type': 'function', 'name': 'HidP_GetUsageValue', 'address': '0x7ffb3a361f30'}, {'type': 'function', 'name': 'HidP_GetUsageValueArray', 'address': '0x7ffb3a3640f0'}, {'type': 'function', 'name': 'HidP_GetUsages', 'address': '0x7ffb3a361cf0'}, {'type': 'function', 'name': 'HidP_GetUsagesEx', 'address': '0x7ffb3a364370'}, {'type': 'function', 'name': 'HidP_GetValueCaps', 'address': '0x7ffb3a3610a0'}, {'type': 'function', 'name': 'HidP_InitializeReportForID', 'address': '0x7ffb3a364690'}, {'type': 'function', 'name': 'HidP_MaxDataListLength', 'address': '0x7ffb3a361010'}, {'type': 'function', 'name': 'HidP_MaxUsageListLength', 'address': '0x7ffb3a3623a0'}, {'type': 'function', 'name': 'HidP_SetData', 'address': '0x7ffb3a3647d0'}, {'type': 'function', 'name': 'HidP_SetScaledUsageValue', 'address': '0x7ffb3a364c10'}, {'type': 'function', 'name': 'HidP_SetUsageValue', 'address': '0x7ffb3a365280'}, {'type': 'function', 'name': 'HidP_SetUsageValueArray', 'address': '0x7ffb3a365460'}, {'type': 'function', 'name': 'HidP_SetUsages', 'address': '0x7ffb3a3656d0'}, {'type': 'function', 'name': 'HidP_TranslateUsagesToI8042ScanCodes', 'address': '0x7ffb3a365d60'}, {'type': 'function', 'name': 'HidP_UnsetUsages', 'address': '0x7ffb3a365830'}, {'type': 'function', 'name': 'HidP_UsageListDifference', 'address': '0x7ffb3a3622f0'}]
| 1,847
| 3,681
| 0.687872
| 310
| 3,694
| 8.054839
| 0.309677
| 0.211454
| 0.281938
| 0.192231
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.107998
| 0.07255
| 3,694
| 2
| 3,681
| 1,847
| 0.620841
| 0
| 0
| 0
| 0
| 0
| 0.683897
| 0.163735
| 0
| 0
| 0.166712
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
f604bacccad9a74309be6fd70db227e0d38825ac
| 106
|
py
|
Python
|
embedding/_fasttext/__init__.py
|
vd1371/CBSA
|
f2b3f03c91ccd9ec02c2331f43573d7d6e72fd47
|
[
"MIT"
] | null | null | null |
embedding/_fasttext/__init__.py
|
vd1371/CBSA
|
f2b3f03c91ccd9ec02c2331f43573d7d6e72fd47
|
[
"MIT"
] | null | null | null |
embedding/_fasttext/__init__.py
|
vd1371/CBSA
|
f2b3f03c91ccd9ec02c2331f43573d7d6e72fd47
|
[
"MIT"
] | null | null | null |
from .create_fasttext_embedding import create_fasttext_embedding
from ._pkl_embedding import pkl_embedding
| 53
| 64
| 0.915094
| 14
| 106
| 6.428571
| 0.428571
| 0.311111
| 0.511111
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.066038
| 106
| 2
| 65
| 53
| 0.909091
| 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
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.