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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a6b9d2e7320a173afb3d56b4f46f6335c319aada | 1,663 | py | Python | src/IceRayPy/core/camera/cylinder.py | dmilos/IceRay | 4e01f141363c0d126d3c700c1f5f892967e3d520 | [
"MIT-0"
] | 2 | 2020-09-04T12:27:15.000Z | 2022-01-17T14:49:40.000Z | src/IceRayPy/core/camera/cylinder.py | dmilos/IceRay | 4e01f141363c0d126d3c700c1f5f892967e3d520 | [
"MIT-0"
] | null | null | null | src/IceRayPy/core/camera/cylinder.py | dmilos/IceRay | 4e01f141363c0d126d3c700c1f5f892967e3d520 | [
"MIT-0"
] | 1 | 2020-09-04T12:27:52.000Z | 2020-09-04T12:27:52.000Z | import ctypes
import IceRayPy
import IceRayPy.type
import IceRayPy.type.basic
Scalar = IceRayPy.type.basic.Scalar
class Horizontal:
def __init__(self, P_dll ):
self.m_cargo = {}
self.m_cargo['dll'] = P_dll
self.m_cargo['this'] = self.m_cargo['dll'].IceRayC_Camera_Cylinder_Horizontal0()
def __del__(self):
self.m_cargo['dll'].IceRayC_Camera_Release( self.m_cargo['this'] )
def width(self, P_width ):
return self.m_cargo['dll'].IceRayC_Camera_Cylinder_Horizontal_Width(self.m_cargo['this'], Scalar( P_width ) )
def theta(self, P_theta ):
return self.m_cargo['dll'].IceRayC_Camera_Cylinder_Horizontal_Theta(self.m_cargo['this'], Scalar( P_theta ) )
def radius(self, P_radius ):
return self.m_cargo['dll'].IceRayC_Camera_Cylinder_Horizontal_Radius(self.m_cargo['this'], Scalar( P_radius ) )
class Vertical:
def __init__(self, P_dll ):
self.m_cargo = {}
self.m_cargo['dll'] = P_dll
self.m_cargo['this'] = self.m_cargo['dll'].IceRayC_Camera_Cylinder_Vertical0()
def __del__(self):
self.m_cargo['dll'].IceRayC_Camera_Release( self.m_cargo['this'] )
def phi(self, P_height ):
return self.m_cargo['dll'].IceRayC_Camera_Cylinder_Vertical_Phi(self.m_cargo['this'], Scalar( P_height ) )
def height(self, P_height ):
return self.m_cargo['dll'].IceRayC_Camera_Cylinder_Vertical_Height(self.m_cargo['this'], Scalar( P_height ) )
def radius(self, P_radius ):
return self.m_cargo['dll'].IceRayC_Camera_Cylinder_Vertical_Radius(self.m_cargo['this'], Scalar( P_radius ) )
| 36.955556 | 120 | 0.67709 | 232 | 1,663 | 4.465517 | 0.12931 | 0.11583 | 0.23166 | 0.150579 | 0.792471 | 0.792471 | 0.751931 | 0.751931 | 0.633205 | 0.519305 | 0 | 0.001489 | 0.192423 | 1,663 | 44 | 121 | 37.795455 | 0.769918 | 0 | 0 | 0.387097 | 0 | 0 | 0.046943 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.322581 | false | 0 | 0.129032 | 0.193548 | 0.709677 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 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 | 0 | 0 | 1 | 1 | 0 | 0 | 7 |
a6f9a9a06264939ae0e4c12142cf53335472d27d | 137 | py | Python | tests/crypto/binary_test.py | NDJSec/ShadowFramework | de70350437bf55ff1345ee9d8e45524e3ca2ba8b | [
"MIT"
] | null | null | null | tests/crypto/binary_test.py | NDJSec/ShadowFramework | de70350437bf55ff1345ee9d8e45524e3ca2ba8b | [
"MIT"
] | null | null | null | tests/crypto/binary_test.py | NDJSec/ShadowFramework | de70350437bf55ff1345ee9d8e45524e3ca2ba8b | [
"MIT"
] | null | null | null | from shadow.crypto.binary import *
def test_binary_decrypt():
assert binary_decrypt('01000110 01001100 01000001 01000111') == 'FLAG' | 34.25 | 74 | 0.773723 | 17 | 137 | 6.058824 | 0.823529 | 0.252427 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.266667 | 0.124088 | 137 | 4 | 74 | 34.25 | 0.591667 | 0 | 0 | 0 | 0 | 0 | 0.282609 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.333333 | true | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 8 |
472c62c5ddf93f932d4affcc703da50cf08d85b4 | 113 | py | Python | augustus/builtin/data_readers/__init__.py | jialuechen/augustus | d4fbda427e3d9c60896b0e22c06cd593b484ef9d | [
"MIT"
] | 2 | 2019-09-13T18:49:17.000Z | 2022-01-25T05:14:05.000Z | augustus/builtin/data_readers/__init__.py | jialuechen/augustus | d4fbda427e3d9c60896b0e22c06cd593b484ef9d | [
"MIT"
] | null | null | null | augustus/builtin/data_readers/__init__.py | jialuechen/augustus | d4fbda427e3d9c60896b0e22c06cd593b484ef9d | [
"MIT"
] | 2 | 2019-02-28T21:23:04.000Z | 2020-07-02T01:23:24.000Z | from augustus.builtin.data_readers.csvreader import *
from augustus.builtin.data_readers.mongodb_reader import *
| 37.666667 | 58 | 0.858407 | 15 | 113 | 6.266667 | 0.6 | 0.255319 | 0.404255 | 0.489362 | 0.638298 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.070796 | 113 | 2 | 59 | 56.5 | 0.895238 | 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 |
5b46234c6d364eb3c2f14815409cfebbf4046b4b | 15,523 | py | Python | nova/tests/unit/objects/test_instance_mapping.py | bopopescu/nova-token | ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2 | [
"Apache-2.0"
] | null | null | null | nova/tests/unit/objects/test_instance_mapping.py | bopopescu/nova-token | ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2 | [
"Apache-2.0"
] | null | null | null | nova/tests/unit/objects/test_instance_mapping.py | bopopescu/nova-token | ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2 | [
"Apache-2.0"
] | 2 | 2017-07-20T17:31:34.000Z | 2020-07-24T02:42:19.000Z | begin_unit
comment|'# Licensed under the Apache License, Version 2.0 (the "License"); you may'
nl|'\n'
comment|'# not use this file except in compliance with the License. You may obtain'
nl|'\n'
comment|'# a copy of the License at'
nl|'\n'
comment|'#'
nl|'\n'
comment|'# http://www.apache.org/licenses/LICENSE-2.0'
nl|'\n'
comment|'#'
nl|'\n'
comment|'# Unless required by applicable law or agreed to in writing, software'
nl|'\n'
comment|'# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT'
nl|'\n'
comment|'# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the'
nl|'\n'
comment|'# License for the specific language governing permissions and limitations'
nl|'\n'
comment|'# under the License.'
nl|'\n'
nl|'\n'
name|'import'
name|'mock'
newline|'\n'
nl|'\n'
name|'from'
name|'oslo_utils'
name|'import'
name|'uuidutils'
newline|'\n'
nl|'\n'
name|'from'
name|'nova'
name|'import'
name|'objects'
newline|'\n'
name|'from'
name|'nova'
op|'.'
name|'objects'
name|'import'
name|'instance_mapping'
newline|'\n'
name|'from'
name|'nova'
op|'.'
name|'tests'
op|'.'
name|'unit'
op|'.'
name|'objects'
name|'import'
name|'test_cell_mapping'
newline|'\n'
name|'from'
name|'nova'
op|'.'
name|'tests'
op|'.'
name|'unit'
op|'.'
name|'objects'
name|'import'
name|'test_objects'
newline|'\n'
nl|'\n'
nl|'\n'
DECL|function|get_db_mapping
name|'def'
name|'get_db_mapping'
op|'('
op|'**'
name|'updates'
op|')'
op|':'
newline|'\n'
indent|' '
name|'db_mapping'
op|'='
op|'{'
nl|'\n'
string|"'id'"
op|':'
number|'1'
op|','
nl|'\n'
string|"'instance_uuid'"
op|':'
name|'uuidutils'
op|'.'
name|'generate_uuid'
op|'('
op|')'
op|','
nl|'\n'
string|"'cell_id'"
op|':'
name|'None'
op|','
nl|'\n'
string|"'project_id'"
op|':'
string|"'fake-project'"
op|','
nl|'\n'
string|"'created_at'"
op|':'
name|'None'
op|','
nl|'\n'
string|"'updated_at'"
op|':'
name|'None'
op|','
nl|'\n'
op|'}'
newline|'\n'
name|'db_mapping'
op|'['
string|'"cell_mapping"'
op|']'
op|'='
name|'test_cell_mapping'
op|'.'
name|'get_db_mapping'
op|'('
name|'id'
op|'='
number|'42'
op|')'
newline|'\n'
name|'db_mapping'
op|'['
string|"'cell_id'"
op|']'
op|'='
name|'db_mapping'
op|'['
string|'"cell_mapping"'
op|']'
op|'['
string|'"id"'
op|']'
newline|'\n'
name|'db_mapping'
op|'.'
name|'update'
op|'('
name|'updates'
op|')'
newline|'\n'
name|'return'
name|'db_mapping'
newline|'\n'
nl|'\n'
nl|'\n'
DECL|class|_TestInstanceMappingObject
dedent|''
name|'class'
name|'_TestInstanceMappingObject'
op|'('
name|'object'
op|')'
op|':'
newline|'\n'
DECL|member|_check_cell_map_value
indent|' '
name|'def'
name|'_check_cell_map_value'
op|'('
name|'self'
op|','
name|'db_val'
op|','
name|'cell_obj'
op|')'
op|':'
newline|'\n'
indent|' '
name|'self'
op|'.'
name|'assertEqual'
op|'('
name|'db_val'
op|','
name|'cell_obj'
op|'.'
name|'id'
op|')'
newline|'\n'
nl|'\n'
dedent|''
op|'@'
name|'mock'
op|'.'
name|'patch'
op|'.'
name|'object'
op|'('
name|'instance_mapping'
op|'.'
name|'InstanceMapping'
op|','
nl|'\n'
string|"'_get_by_instance_uuid_from_db'"
op|')'
newline|'\n'
DECL|member|test_get_by_instance_uuid
name|'def'
name|'test_get_by_instance_uuid'
op|'('
name|'self'
op|','
name|'uuid_from_db'
op|')'
op|':'
newline|'\n'
indent|' '
name|'db_mapping'
op|'='
name|'get_db_mapping'
op|'('
op|')'
newline|'\n'
name|'uuid_from_db'
op|'.'
name|'return_value'
op|'='
name|'db_mapping'
newline|'\n'
nl|'\n'
name|'mapping_obj'
op|'='
name|'objects'
op|'.'
name|'InstanceMapping'
op|'('
op|')'
op|'.'
name|'get_by_instance_uuid'
op|'('
nl|'\n'
name|'self'
op|'.'
name|'context'
op|','
name|'db_mapping'
op|'['
string|"'instance_uuid'"
op|']'
op|')'
newline|'\n'
name|'uuid_from_db'
op|'.'
name|'assert_called_once_with'
op|'('
name|'self'
op|'.'
name|'context'
op|','
nl|'\n'
name|'db_mapping'
op|'['
string|"'instance_uuid'"
op|']'
op|')'
newline|'\n'
name|'self'
op|'.'
name|'compare_obj'
op|'('
name|'mapping_obj'
op|','
name|'db_mapping'
op|','
nl|'\n'
name|'subs'
op|'='
op|'{'
string|"'cell_mapping'"
op|':'
string|"'cell_id'"
op|'}'
op|','
nl|'\n'
name|'comparators'
op|'='
op|'{'
nl|'\n'
string|"'cell_mapping'"
op|':'
name|'self'
op|'.'
name|'_check_cell_map_value'
op|'}'
op|')'
newline|'\n'
nl|'\n'
dedent|''
op|'@'
name|'mock'
op|'.'
name|'patch'
op|'.'
name|'object'
op|'('
name|'instance_mapping'
op|'.'
name|'InstanceMapping'
op|','
nl|'\n'
string|"'_get_by_instance_uuid_from_db'"
op|')'
newline|'\n'
DECL|member|test_get_by_instance_uuid_cell_mapping_none
name|'def'
name|'test_get_by_instance_uuid_cell_mapping_none'
op|'('
name|'self'
op|','
name|'uuid_from_db'
op|')'
op|':'
newline|'\n'
indent|' '
name|'db_mapping'
op|'='
name|'get_db_mapping'
op|'('
name|'cell_mapping'
op|'='
name|'None'
op|','
name|'cell_id'
op|'='
name|'None'
op|')'
newline|'\n'
name|'uuid_from_db'
op|'.'
name|'return_value'
op|'='
name|'db_mapping'
newline|'\n'
nl|'\n'
name|'mapping_obj'
op|'='
name|'objects'
op|'.'
name|'InstanceMapping'
op|'('
op|')'
op|'.'
name|'get_by_instance_uuid'
op|'('
nl|'\n'
name|'self'
op|'.'
name|'context'
op|','
name|'db_mapping'
op|'['
string|"'instance_uuid'"
op|']'
op|')'
newline|'\n'
name|'uuid_from_db'
op|'.'
name|'assert_called_once_with'
op|'('
name|'self'
op|'.'
name|'context'
op|','
nl|'\n'
name|'db_mapping'
op|'['
string|"'instance_uuid'"
op|']'
op|')'
newline|'\n'
name|'self'
op|'.'
name|'compare_obj'
op|'('
name|'mapping_obj'
op|','
name|'db_mapping'
op|','
nl|'\n'
name|'subs'
op|'='
op|'{'
string|"'cell_mapping'"
op|':'
string|"'cell_id'"
op|'}'
op|')'
newline|'\n'
nl|'\n'
dedent|''
op|'@'
name|'mock'
op|'.'
name|'patch'
op|'.'
name|'object'
op|'('
name|'instance_mapping'
op|'.'
name|'InstanceMapping'
op|','
string|"'_create_in_db'"
op|')'
newline|'\n'
DECL|member|test_create
name|'def'
name|'test_create'
op|'('
name|'self'
op|','
name|'create_in_db'
op|')'
op|':'
newline|'\n'
indent|' '
name|'db_mapping'
op|'='
name|'get_db_mapping'
op|'('
op|')'
newline|'\n'
name|'uuid'
op|'='
name|'db_mapping'
op|'['
string|"'instance_uuid'"
op|']'
newline|'\n'
name|'create_in_db'
op|'.'
name|'return_value'
op|'='
name|'db_mapping'
newline|'\n'
name|'mapping_obj'
op|'='
name|'objects'
op|'.'
name|'InstanceMapping'
op|'('
name|'self'
op|'.'
name|'context'
op|')'
newline|'\n'
name|'mapping_obj'
op|'.'
name|'instance_uuid'
op|'='
name|'uuid'
newline|'\n'
name|'mapping_obj'
op|'.'
name|'cell_mapping'
op|'='
name|'objects'
op|'.'
name|'CellMapping'
op|'('
name|'self'
op|'.'
name|'context'
op|','
nl|'\n'
name|'id'
op|'='
name|'db_mapping'
op|'['
string|"'cell_mapping'"
op|']'
op|'['
string|"'id'"
op|']'
op|')'
newline|'\n'
name|'mapping_obj'
op|'.'
name|'project_id'
op|'='
name|'db_mapping'
op|'['
string|"'project_id'"
op|']'
newline|'\n'
nl|'\n'
name|'mapping_obj'
op|'.'
name|'create'
op|'('
op|')'
newline|'\n'
name|'create_in_db'
op|'.'
name|'assert_called_once_with'
op|'('
name|'self'
op|'.'
name|'context'
op|','
nl|'\n'
op|'{'
string|"'instance_uuid'"
op|':'
name|'uuid'
op|','
nl|'\n'
string|"'cell_id'"
op|':'
name|'db_mapping'
op|'['
string|"'cell_mapping'"
op|']'
op|'['
string|"'id'"
op|']'
op|','
nl|'\n'
string|"'project_id'"
op|':'
name|'db_mapping'
op|'['
string|"'project_id'"
op|']'
op|'}'
op|')'
newline|'\n'
name|'self'
op|'.'
name|'compare_obj'
op|'('
name|'mapping_obj'
op|','
name|'db_mapping'
op|','
nl|'\n'
name|'subs'
op|'='
op|'{'
string|"'cell_mapping'"
op|':'
string|"'cell_id'"
op|'}'
op|','
nl|'\n'
name|'comparators'
op|'='
op|'{'
nl|'\n'
string|"'cell_mapping'"
op|':'
name|'self'
op|'.'
name|'_check_cell_map_value'
op|'}'
op|')'
newline|'\n'
nl|'\n'
dedent|''
op|'@'
name|'mock'
op|'.'
name|'patch'
op|'.'
name|'object'
op|'('
name|'instance_mapping'
op|'.'
name|'InstanceMapping'
op|','
string|"'_create_in_db'"
op|')'
newline|'\n'
DECL|member|test_create_cell_mapping_none
name|'def'
name|'test_create_cell_mapping_none'
op|'('
name|'self'
op|','
name|'create_in_db'
op|')'
op|':'
newline|'\n'
indent|' '
name|'db_mapping'
op|'='
name|'get_db_mapping'
op|'('
name|'cell_mapping'
op|'='
name|'None'
op|','
name|'cell_id'
op|'='
name|'None'
op|')'
newline|'\n'
name|'uuid'
op|'='
name|'db_mapping'
op|'['
string|"'instance_uuid'"
op|']'
newline|'\n'
name|'create_in_db'
op|'.'
name|'return_value'
op|'='
name|'db_mapping'
newline|'\n'
name|'mapping_obj'
op|'='
name|'objects'
op|'.'
name|'InstanceMapping'
op|'('
name|'self'
op|'.'
name|'context'
op|')'
newline|'\n'
name|'mapping_obj'
op|'.'
name|'instance_uuid'
op|'='
name|'uuid'
newline|'\n'
name|'mapping_obj'
op|'.'
name|'cell_mapping'
op|'='
name|'None'
newline|'\n'
name|'mapping_obj'
op|'.'
name|'project_id'
op|'='
name|'db_mapping'
op|'['
string|"'project_id'"
op|']'
newline|'\n'
nl|'\n'
name|'mapping_obj'
op|'.'
name|'create'
op|'('
op|')'
newline|'\n'
name|'create_in_db'
op|'.'
name|'assert_called_once_with'
op|'('
name|'self'
op|'.'
name|'context'
op|','
nl|'\n'
op|'{'
string|"'instance_uuid'"
op|':'
name|'uuid'
op|','
nl|'\n'
string|"'project_id'"
op|':'
name|'db_mapping'
op|'['
string|"'project_id'"
op|']'
op|'}'
op|')'
newline|'\n'
name|'self'
op|'.'
name|'compare_obj'
op|'('
name|'mapping_obj'
op|','
name|'db_mapping'
op|','
nl|'\n'
name|'subs'
op|'='
op|'{'
string|"'cell_mapping'"
op|':'
string|"'cell_id'"
op|'}'
op|')'
newline|'\n'
name|'self'
op|'.'
name|'assertIsNone'
op|'('
name|'mapping_obj'
op|'.'
name|'cell_mapping'
op|')'
newline|'\n'
nl|'\n'
dedent|''
op|'@'
name|'mock'
op|'.'
name|'patch'
op|'.'
name|'object'
op|'('
name|'instance_mapping'
op|'.'
name|'InstanceMapping'
op|','
string|"'_save_in_db'"
op|')'
newline|'\n'
DECL|member|test_save
name|'def'
name|'test_save'
op|'('
name|'self'
op|','
name|'save_in_db'
op|')'
op|':'
newline|'\n'
indent|' '
name|'db_mapping'
op|'='
name|'get_db_mapping'
op|'('
op|')'
newline|'\n'
name|'uuid'
op|'='
name|'db_mapping'
op|'['
string|"'instance_uuid'"
op|']'
newline|'\n'
name|'save_in_db'
op|'.'
name|'return_value'
op|'='
name|'db_mapping'
newline|'\n'
name|'mapping_obj'
op|'='
name|'objects'
op|'.'
name|'InstanceMapping'
op|'('
name|'self'
op|'.'
name|'context'
op|')'
newline|'\n'
name|'mapping_obj'
op|'.'
name|'instance_uuid'
op|'='
name|'uuid'
newline|'\n'
name|'mapping_obj'
op|'.'
name|'cell_mapping'
op|'='
name|'objects'
op|'.'
name|'CellMapping'
op|'('
name|'self'
op|'.'
name|'context'
op|','
name|'id'
op|'='
number|'42'
op|')'
newline|'\n'
nl|'\n'
name|'mapping_obj'
op|'.'
name|'save'
op|'('
op|')'
newline|'\n'
name|'save_in_db'
op|'.'
name|'assert_called_once_with'
op|'('
name|'self'
op|'.'
name|'context'
op|','
nl|'\n'
name|'db_mapping'
op|'['
string|"'instance_uuid'"
op|']'
op|','
nl|'\n'
op|'{'
string|"'cell_id'"
op|':'
name|'mapping_obj'
op|'.'
name|'cell_mapping'
op|'.'
name|'id'
op|','
nl|'\n'
string|"'instance_uuid'"
op|':'
name|'uuid'
op|'}'
op|')'
newline|'\n'
name|'self'
op|'.'
name|'compare_obj'
op|'('
name|'mapping_obj'
op|','
name|'db_mapping'
op|','
nl|'\n'
name|'subs'
op|'='
op|'{'
string|"'cell_mapping'"
op|':'
string|"'cell_id'"
op|'}'
op|','
nl|'\n'
name|'comparators'
op|'='
op|'{'
nl|'\n'
string|"'cell_mapping'"
op|':'
name|'self'
op|'.'
name|'_check_cell_map_value'
op|'}'
op|')'
newline|'\n'
nl|'\n'
dedent|''
op|'@'
name|'mock'
op|'.'
name|'patch'
op|'.'
name|'object'
op|'('
name|'instance_mapping'
op|'.'
name|'InstanceMapping'
op|','
string|"'_destroy_in_db'"
op|')'
newline|'\n'
DECL|member|test_destroy
name|'def'
name|'test_destroy'
op|'('
name|'self'
op|','
name|'destroy_in_db'
op|')'
op|':'
newline|'\n'
indent|' '
name|'uuid'
op|'='
name|'uuidutils'
op|'.'
name|'generate_uuid'
op|'('
op|')'
newline|'\n'
name|'mapping_obj'
op|'='
name|'objects'
op|'.'
name|'InstanceMapping'
op|'('
name|'self'
op|'.'
name|'context'
op|')'
newline|'\n'
name|'mapping_obj'
op|'.'
name|'instance_uuid'
op|'='
name|'uuid'
newline|'\n'
nl|'\n'
name|'mapping_obj'
op|'.'
name|'destroy'
op|'('
op|')'
newline|'\n'
name|'destroy_in_db'
op|'.'
name|'assert_called_once_with'
op|'('
name|'self'
op|'.'
name|'context'
op|','
name|'uuid'
op|')'
newline|'\n'
nl|'\n'
DECL|member|test_cell_mapping_nullable
dedent|''
name|'def'
name|'test_cell_mapping_nullable'
op|'('
name|'self'
op|')'
op|':'
newline|'\n'
indent|' '
name|'mapping_obj'
op|'='
name|'objects'
op|'.'
name|'InstanceMapping'
op|'('
name|'self'
op|'.'
name|'context'
op|')'
newline|'\n'
comment|"# Just ensure this doesn't raise an exception"
nl|'\n'
name|'mapping_obj'
op|'.'
name|'cell_mapping'
op|'='
name|'None'
newline|'\n'
nl|'\n'
nl|'\n'
dedent|''
dedent|''
name|'class'
name|'TestInstanceMappingObject'
op|'('
name|'test_objects'
op|'.'
name|'_LocalTest'
op|','
nl|'\n'
DECL|class|TestInstanceMappingObject
name|'_TestInstanceMappingObject'
op|')'
op|':'
newline|'\n'
indent|' '
name|'pass'
newline|'\n'
nl|'\n'
nl|'\n'
dedent|''
name|'class'
name|'TestRemoteInstanceMappingObject'
op|'('
name|'test_objects'
op|'.'
name|'_RemoteTest'
op|','
nl|'\n'
DECL|class|TestRemoteInstanceMappingObject
name|'_TestInstanceMappingObject'
op|')'
op|':'
newline|'\n'
indent|' '
name|'pass'
newline|'\n'
nl|'\n'
nl|'\n'
DECL|class|_TestInstanceMappingListObject
dedent|''
name|'class'
name|'_TestInstanceMappingListObject'
op|'('
name|'object'
op|')'
op|':'
newline|'\n'
DECL|member|_check_cell_map_value
indent|' '
name|'def'
name|'_check_cell_map_value'
op|'('
name|'self'
op|','
name|'db_val'
op|','
name|'cell_obj'
op|')'
op|':'
newline|'\n'
indent|' '
name|'self'
op|'.'
name|'assertEqual'
op|'('
name|'db_val'
op|','
name|'cell_obj'
op|'.'
name|'id'
op|')'
newline|'\n'
nl|'\n'
dedent|''
op|'@'
name|'mock'
op|'.'
name|'patch'
op|'.'
name|'object'
op|'('
name|'instance_mapping'
op|'.'
name|'InstanceMappingList'
op|','
nl|'\n'
string|"'_get_by_project_id_from_db'"
op|')'
newline|'\n'
DECL|member|test_get_by_project_id
name|'def'
name|'test_get_by_project_id'
op|'('
name|'self'
op|','
name|'project_id_from_db'
op|')'
op|':'
newline|'\n'
indent|' '
name|'db_mapping'
op|'='
name|'get_db_mapping'
op|'('
op|')'
newline|'\n'
name|'project_id_from_db'
op|'.'
name|'return_value'
op|'='
op|'['
name|'db_mapping'
op|']'
newline|'\n'
nl|'\n'
name|'mapping_obj'
op|'='
name|'objects'
op|'.'
name|'InstanceMappingList'
op|'('
op|')'
op|'.'
name|'get_by_project_id'
op|'('
nl|'\n'
name|'self'
op|'.'
name|'context'
op|','
name|'db_mapping'
op|'['
string|"'project_id'"
op|']'
op|')'
newline|'\n'
name|'project_id_from_db'
op|'.'
name|'assert_called_once_with'
op|'('
name|'self'
op|'.'
name|'context'
op|','
nl|'\n'
name|'db_mapping'
op|'['
string|"'project_id'"
op|']'
op|')'
newline|'\n'
name|'self'
op|'.'
name|'compare_obj'
op|'('
name|'mapping_obj'
op|'.'
name|'objects'
op|'['
number|'0'
op|']'
op|','
name|'db_mapping'
op|','
nl|'\n'
name|'subs'
op|'='
op|'{'
string|"'cell_mapping'"
op|':'
string|"'cell_id'"
op|'}'
op|','
nl|'\n'
name|'comparators'
op|'='
op|'{'
nl|'\n'
string|"'cell_mapping'"
op|':'
name|'self'
op|'.'
name|'_check_cell_map_value'
op|'}'
op|')'
newline|'\n'
nl|'\n'
nl|'\n'
dedent|''
dedent|''
name|'class'
name|'TestInstanceMappingListObject'
op|'('
name|'test_objects'
op|'.'
name|'_LocalTest'
op|','
nl|'\n'
DECL|class|TestInstanceMappingListObject
name|'_TestInstanceMappingListObject'
op|')'
op|':'
newline|'\n'
indent|' '
name|'pass'
newline|'\n'
nl|'\n'
nl|'\n'
dedent|''
name|'class'
name|'TestRemoteInstanceMappingListObject'
op|'('
name|'test_objects'
op|'.'
name|'_RemoteTest'
op|','
nl|'\n'
DECL|class|TestRemoteInstanceMappingListObject
name|'_TestInstanceMappingListObject'
op|')'
op|':'
newline|'\n'
indent|' '
name|'pass'
newline|'\n'
dedent|''
endmarker|''
end_unit
| 13.011735 | 88 | 0.626619 | 2,321 | 15,523 | 4.022835 | 0.061611 | 0.161936 | 0.076042 | 0.053979 | 0.87737 | 0.845025 | 0.825747 | 0.78612 | 0.747885 | 0.718004 | 0 | 0.000709 | 0.091284 | 15,523 | 1,192 | 89 | 13.022651 | 0.661208 | 0 | 0 | 0.952181 | 0 | 0 | 0.394962 | 0.052181 | 0 | 0 | 0 | 0 | 0.008389 | 0 | null | null | 0.003356 | 0.005034 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
5b7be6d101da0921ba5c9b85bdbba5275e281947 | 225,309 | py | Python | gateapi-python/gate_api/api/futures_api.py | jarenmt/IEOPUMP | 220f7f612d299f7305e82fe6c33661e6871f2d86 | [
"MIT"
] | null | null | null | gateapi-python/gate_api/api/futures_api.py | jarenmt/IEOPUMP | 220f7f612d299f7305e82fe6c33661e6871f2d86 | [
"MIT"
] | null | null | null | gateapi-python/gate_api/api/futures_api.py | jarenmt/IEOPUMP | 220f7f612d299f7305e82fe6c33661e6871f2d86 | [
"MIT"
] | null | null | null | # coding: utf-8
"""
Gate API v4
Welcome to Gate.io API APIv4 provides spot, margin and futures trading operations. There are public APIs to retrieve the real-time market statistics, and private APIs which needs authentication to trade on user's behalf. # noqa: E501
Contact: support@mail.gate.io
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
import re # noqa: F401
# python 2 and python 3 compatibility library
import six
from gate_api.api_client import ApiClient
from gate_api.exceptions import ApiTypeError, ApiValueError # noqa: F401
class FuturesApi(object):
"""NOTE: This class is auto generated by OpenAPI Generator
Ref: https://openapi-generator.tech
Do not edit the class manually.
"""
def __init__(self, api_client=None):
if api_client is None:
api_client = ApiClient()
self.api_client = api_client
def list_futures_contracts(self, settle, **kwargs): # noqa: E501
"""List all futures contracts # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.list_futures_contracts(settle, async_req=True)
>>> result = thread.get()
:param bool async_req: execute request asynchronously
:param str settle: Settle currency (required)
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:rtype: list[gate_api.Contract]
:return: If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
return self.list_futures_contracts_with_http_info(settle, **kwargs) # noqa: E501
def list_futures_contracts_with_http_info(self, settle, **kwargs): # noqa: E501
"""List all futures contracts # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.list_futures_contracts_with_http_info(settle, async_req=True)
>>> result = thread.get()
:param bool async_req: execute request asynchronously
:param str settle: Settle currency (required)
:param _return_http_data_only: response data without head status code
and headers
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:rtype: tuple(list[gate_api.Contract], status_code(int), headers(HTTPHeaderDict))
:return: If the method is called asynchronously,
returns the request thread.
"""
local_var_params = locals()
all_params = ['settle']
all_params.extend(['async_req', '_return_http_data_only', '_preload_content', '_request_timeout'])
for k, v in six.iteritems(local_var_params['kwargs']):
if k not in all_params:
raise ApiTypeError("Got an unexpected keyword argument '%s'" " to method list_futures_contracts" % k)
local_var_params[k] = v
del local_var_params['kwargs']
# verify the required parameter 'settle' is set
if self.api_client.client_side_validation and (
'settle' not in local_var_params or local_var_params['settle'] is None # noqa: E501
): # noqa: E501
raise ApiValueError(
"Missing the required parameter `settle` when calling `list_futures_contracts`"
) # noqa: E501
collection_formats = {}
path_params = {}
if 'settle' in local_var_params:
path_params['settle'] = local_var_params['settle'] # noqa: E501
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']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
return self.api_client.call_api(
'/futures/{settle}/contracts',
'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='list[Contract]', # noqa: E501
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats,
)
def get_futures_contract(self, settle, contract, **kwargs): # noqa: E501
"""Get a single contract # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_futures_contract(settle, contract, async_req=True)
>>> result = thread.get()
:param bool async_req: execute request asynchronously
:param str settle: Settle currency (required)
:param str contract: Futures contract (required)
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:rtype: gate_api.Contract
:return: If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
return self.get_futures_contract_with_http_info(settle, contract, **kwargs) # noqa: E501
def get_futures_contract_with_http_info(self, settle, contract, **kwargs): # noqa: E501
"""Get a single contract # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_futures_contract_with_http_info(settle, contract, async_req=True)
>>> result = thread.get()
:param bool async_req: execute request asynchronously
:param str settle: Settle currency (required)
:param str contract: Futures contract (required)
:param _return_http_data_only: response data without head status code
and headers
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:rtype: tuple(gate_api.Contract, status_code(int), headers(HTTPHeaderDict))
:return: If the method is called asynchronously,
returns the request thread.
"""
local_var_params = locals()
all_params = ['settle', 'contract']
all_params.extend(['async_req', '_return_http_data_only', '_preload_content', '_request_timeout'])
for k, v in six.iteritems(local_var_params['kwargs']):
if k not in all_params:
raise ApiTypeError("Got an unexpected keyword argument '%s'" " to method get_futures_contract" % k)
local_var_params[k] = v
del local_var_params['kwargs']
# verify the required parameter 'settle' is set
if self.api_client.client_side_validation and (
'settle' not in local_var_params or local_var_params['settle'] is None # noqa: E501
): # noqa: E501
raise ApiValueError(
"Missing the required parameter `settle` when calling `get_futures_contract`"
) # noqa: E501
# verify the required parameter 'contract' is set
if self.api_client.client_side_validation and (
'contract' not in local_var_params or local_var_params['contract'] is None # noqa: E501
): # noqa: E501
raise ApiValueError(
"Missing the required parameter `contract` when calling `get_futures_contract`"
) # noqa: E501
collection_formats = {}
path_params = {}
if 'settle' in local_var_params:
path_params['settle'] = local_var_params['settle'] # noqa: E501
if 'contract' in local_var_params:
path_params['contract'] = local_var_params['contract'] # noqa: E501
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']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
return self.api_client.call_api(
'/futures/{settle}/contracts/{contract}',
'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='Contract', # noqa: E501
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats,
)
def list_futures_order_book(self, settle, contract, **kwargs): # noqa: E501
"""Futures order book # noqa: E501
Bids will be sorted by price from high to low, while asks sorted reversely # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.list_futures_order_book(settle, contract, async_req=True)
>>> result = thread.get()
:param bool async_req: execute request asynchronously
:param str settle: Settle currency (required)
:param str contract: Futures contract (required)
:param str interval: Order depth. 0 means no aggregation is applied. default to 0
:param int limit: Maximum number of order depth data in asks or bids
:param bool with_id: Whether the order book update ID will be returned. This ID increases by 1 on every order book update
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:rtype: gate_api.FuturesOrderBook
:return: If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
return self.list_futures_order_book_with_http_info(settle, contract, **kwargs) # noqa: E501
def list_futures_order_book_with_http_info(self, settle, contract, **kwargs): # noqa: E501
"""Futures order book # noqa: E501
Bids will be sorted by price from high to low, while asks sorted reversely # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.list_futures_order_book_with_http_info(settle, contract, async_req=True)
>>> result = thread.get()
:param bool async_req: execute request asynchronously
:param str settle: Settle currency (required)
:param str contract: Futures contract (required)
:param str interval: Order depth. 0 means no aggregation is applied. default to 0
:param int limit: Maximum number of order depth data in asks or bids
:param bool with_id: Whether the order book update ID will be returned. This ID increases by 1 on every order book update
:param _return_http_data_only: response data without head status code
and headers
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:rtype: tuple(gate_api.FuturesOrderBook, status_code(int), headers(HTTPHeaderDict))
:return: If the method is called asynchronously,
returns the request thread.
"""
local_var_params = locals()
all_params = ['settle', 'contract', 'interval', 'limit', 'with_id']
all_params.extend(['async_req', '_return_http_data_only', '_preload_content', '_request_timeout'])
for k, v in six.iteritems(local_var_params['kwargs']):
if k not in all_params:
raise ApiTypeError("Got an unexpected keyword argument '%s'" " to method list_futures_order_book" % k)
local_var_params[k] = v
del local_var_params['kwargs']
# verify the required parameter 'settle' is set
if self.api_client.client_side_validation and (
'settle' not in local_var_params or local_var_params['settle'] is None # noqa: E501
): # noqa: E501
raise ApiValueError(
"Missing the required parameter `settle` when calling `list_futures_order_book`"
) # noqa: E501
# verify the required parameter 'contract' is set
if self.api_client.client_side_validation and (
'contract' not in local_var_params or local_var_params['contract'] is None # noqa: E501
): # noqa: E501
raise ApiValueError(
"Missing the required parameter `contract` when calling `list_futures_order_book`"
) # noqa: E501
if (
self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] > 50
): # noqa: E501
raise ApiValueError(
"Invalid value for parameter `limit` when calling `list_futures_order_book`, must be a value less than or equal to `50`"
) # noqa: E501
if (
self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 1
): # noqa: E501
raise ApiValueError(
"Invalid value for parameter `limit` when calling `list_futures_order_book`, must be a value greater than or equal to `1`"
) # noqa: E501
collection_formats = {}
path_params = {}
if 'settle' in local_var_params:
path_params['settle'] = local_var_params['settle'] # noqa: E501
query_params = []
if 'contract' in local_var_params and local_var_params['contract'] is not None: # noqa: E501
query_params.append(('contract', local_var_params['contract'])) # noqa: E501
if 'interval' in local_var_params and local_var_params['interval'] is not None: # noqa: E501
query_params.append(('interval', local_var_params['interval'])) # noqa: E501
if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501
query_params.append(('limit', local_var_params['limit'])) # noqa: E501
if 'with_id' in local_var_params and local_var_params['with_id'] is not None: # noqa: E501
query_params.append(('with_id', local_var_params['with_id'])) # noqa: E501
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(['application/json']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
return self.api_client.call_api(
'/futures/{settle}/order_book',
'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='FuturesOrderBook', # noqa: E501
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats,
)
def list_futures_trades(self, settle, contract, **kwargs): # noqa: E501
"""Futures trading history # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.list_futures_trades(settle, contract, async_req=True)
>>> result = thread.get()
:param bool async_req: execute request asynchronously
:param str settle: Settle currency (required)
:param str contract: Futures contract (required)
:param int limit: Maximum number of records to be returned in a single list
:param str last_id: Specify the starting point for this list based on a previously retrieved id This parameter is deprecated. Use `from` and `to` instead to limit time range
:param int _from: Specify starting time in Unix seconds. If not specified, `to` and `limit` will be used to limit response items. If items between `from` and `to` are more than `limit`, only `limit` number will be returned.
:param int to: Specify end time in Unix seconds, default to current time
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:rtype: list[gate_api.FuturesTrade]
:return: If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
return self.list_futures_trades_with_http_info(settle, contract, **kwargs) # noqa: E501
def list_futures_trades_with_http_info(self, settle, contract, **kwargs): # noqa: E501
"""Futures trading history # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.list_futures_trades_with_http_info(settle, contract, async_req=True)
>>> result = thread.get()
:param bool async_req: execute request asynchronously
:param str settle: Settle currency (required)
:param str contract: Futures contract (required)
:param int limit: Maximum number of records to be returned in a single list
:param str last_id: Specify the starting point for this list based on a previously retrieved id This parameter is deprecated. Use `from` and `to` instead to limit time range
:param int _from: Specify starting time in Unix seconds. If not specified, `to` and `limit` will be used to limit response items. If items between `from` and `to` are more than `limit`, only `limit` number will be returned.
:param int to: Specify end time in Unix seconds, default to current time
:param _return_http_data_only: response data without head status code
and headers
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:rtype: tuple(list[gate_api.FuturesTrade], status_code(int), headers(HTTPHeaderDict))
:return: If the method is called asynchronously,
returns the request thread.
"""
local_var_params = locals()
all_params = ['settle', 'contract', 'limit', 'last_id', '_from', 'to']
all_params.extend(['async_req', '_return_http_data_only', '_preload_content', '_request_timeout'])
for k, v in six.iteritems(local_var_params['kwargs']):
if k not in all_params:
raise ApiTypeError("Got an unexpected keyword argument '%s'" " to method list_futures_trades" % k)
local_var_params[k] = v
del local_var_params['kwargs']
# verify the required parameter 'settle' is set
if self.api_client.client_side_validation and (
'settle' not in local_var_params or local_var_params['settle'] is None # noqa: E501
): # noqa: E501
raise ApiValueError(
"Missing the required parameter `settle` when calling `list_futures_trades`"
) # noqa: E501
# verify the required parameter 'contract' is set
if self.api_client.client_side_validation and (
'contract' not in local_var_params or local_var_params['contract'] is None # noqa: E501
): # noqa: E501
raise ApiValueError(
"Missing the required parameter `contract` when calling `list_futures_trades`"
) # noqa: E501
if (
self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] > 1000
): # noqa: E501
raise ApiValueError(
"Invalid value for parameter `limit` when calling `list_futures_trades`, must be a value less than or equal to `1000`"
) # noqa: E501
if (
self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 1
): # noqa: E501
raise ApiValueError(
"Invalid value for parameter `limit` when calling `list_futures_trades`, must be a value greater than or equal to `1`"
) # noqa: E501
collection_formats = {}
path_params = {}
if 'settle' in local_var_params:
path_params['settle'] = local_var_params['settle'] # noqa: E501
query_params = []
if 'contract' in local_var_params and local_var_params['contract'] is not None: # noqa: E501
query_params.append(('contract', local_var_params['contract'])) # noqa: E501
if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501
query_params.append(('limit', local_var_params['limit'])) # noqa: E501
if 'last_id' in local_var_params and local_var_params['last_id'] is not None: # noqa: E501
query_params.append(('last_id', local_var_params['last_id'])) # noqa: E501
if '_from' in local_var_params and local_var_params['_from'] is not None: # noqa: E501
query_params.append(('from', local_var_params['_from'])) # noqa: E501
if 'to' in local_var_params and local_var_params['to'] is not None: # noqa: E501
query_params.append(('to', local_var_params['to'])) # noqa: E501
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(['application/json']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
return self.api_client.call_api(
'/futures/{settle}/trades',
'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='list[FuturesTrade]', # noqa: E501
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats,
)
def list_futures_candlesticks(self, settle, contract, **kwargs): # noqa: E501
"""Get futures candlesticks # noqa: E501
Return specified contract candlesticks. If prefix `contract` with `mark_`, the contract's mark price candlesticks are returned; if prefix with `index_`, index price candlesticks will be returned. Maximum of 2000 points are returned in one query. Be sure not to exceed the limit when specifying `from`, `to` and `interval` # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.list_futures_candlesticks(settle, contract, async_req=True)
>>> result = thread.get()
:param bool async_req: execute request asynchronously
:param str settle: Settle currency (required)
:param str contract: Futures contract (required)
:param int _from: Start time of candlesticks, formatted in Unix timestamp in seconds. Default to`to - 100 * interval` if not specified
:param int to: End time of candlesticks, formatted in Unix timestamp in seconds. Default to current time
:param int limit: Maximum recent data points to return. `limit` is conflicted with `from` and `to`. If either `from` or `to` is specified, request will be rejected.
:param str interval: Interval time between data points
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:rtype: list[gate_api.FuturesCandlestick]
:return: If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
return self.list_futures_candlesticks_with_http_info(settle, contract, **kwargs) # noqa: E501
def list_futures_candlesticks_with_http_info(self, settle, contract, **kwargs): # noqa: E501
"""Get futures candlesticks # noqa: E501
Return specified contract candlesticks. If prefix `contract` with `mark_`, the contract's mark price candlesticks are returned; if prefix with `index_`, index price candlesticks will be returned. Maximum of 2000 points are returned in one query. Be sure not to exceed the limit when specifying `from`, `to` and `interval` # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.list_futures_candlesticks_with_http_info(settle, contract, async_req=True)
>>> result = thread.get()
:param bool async_req: execute request asynchronously
:param str settle: Settle currency (required)
:param str contract: Futures contract (required)
:param int _from: Start time of candlesticks, formatted in Unix timestamp in seconds. Default to`to - 100 * interval` if not specified
:param int to: End time of candlesticks, formatted in Unix timestamp in seconds. Default to current time
:param int limit: Maximum recent data points to return. `limit` is conflicted with `from` and `to`. If either `from` or `to` is specified, request will be rejected.
:param str interval: Interval time between data points
:param _return_http_data_only: response data without head status code
and headers
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:rtype: tuple(list[gate_api.FuturesCandlestick], status_code(int), headers(HTTPHeaderDict))
:return: If the method is called asynchronously,
returns the request thread.
"""
local_var_params = locals()
all_params = ['settle', 'contract', '_from', 'to', 'limit', 'interval']
all_params.extend(['async_req', '_return_http_data_only', '_preload_content', '_request_timeout'])
for k, v in six.iteritems(local_var_params['kwargs']):
if k not in all_params:
raise ApiTypeError("Got an unexpected keyword argument '%s'" " to method list_futures_candlesticks" % k)
local_var_params[k] = v
del local_var_params['kwargs']
# verify the required parameter 'settle' is set
if self.api_client.client_side_validation and (
'settle' not in local_var_params or local_var_params['settle'] is None # noqa: E501
): # noqa: E501
raise ApiValueError(
"Missing the required parameter `settle` when calling `list_futures_candlesticks`"
) # noqa: E501
# verify the required parameter 'contract' is set
if self.api_client.client_side_validation and (
'contract' not in local_var_params or local_var_params['contract'] is None # noqa: E501
): # noqa: E501
raise ApiValueError(
"Missing the required parameter `contract` when calling `list_futures_candlesticks`"
) # noqa: E501
if (
self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] > 2000
): # noqa: E501
raise ApiValueError(
"Invalid value for parameter `limit` when calling `list_futures_candlesticks`, must be a value less than or equal to `2000`"
) # noqa: E501
collection_formats = {}
path_params = {}
if 'settle' in local_var_params:
path_params['settle'] = local_var_params['settle'] # noqa: E501
query_params = []
if 'contract' in local_var_params and local_var_params['contract'] is not None: # noqa: E501
query_params.append(('contract', local_var_params['contract'])) # noqa: E501
if '_from' in local_var_params and local_var_params['_from'] is not None: # noqa: E501
query_params.append(('from', local_var_params['_from'])) # noqa: E501
if 'to' in local_var_params and local_var_params['to'] is not None: # noqa: E501
query_params.append(('to', local_var_params['to'])) # noqa: E501
if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501
query_params.append(('limit', local_var_params['limit'])) # noqa: E501
if 'interval' in local_var_params and local_var_params['interval'] is not None: # noqa: E501
query_params.append(('interval', local_var_params['interval'])) # noqa: E501
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(['application/json']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
return self.api_client.call_api(
'/futures/{settle}/candlesticks',
'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='list[FuturesCandlestick]', # noqa: E501
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats,
)
def list_futures_tickers(self, settle, **kwargs): # noqa: E501
"""List futures tickers # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.list_futures_tickers(settle, async_req=True)
>>> result = thread.get()
:param bool async_req: execute request asynchronously
:param str settle: Settle currency (required)
:param str contract: Futures contract, return related data only if specified
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:rtype: list[gate_api.FuturesTicker]
:return: If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
return self.list_futures_tickers_with_http_info(settle, **kwargs) # noqa: E501
def list_futures_tickers_with_http_info(self, settle, **kwargs): # noqa: E501
"""List futures tickers # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.list_futures_tickers_with_http_info(settle, async_req=True)
>>> result = thread.get()
:param bool async_req: execute request asynchronously
:param str settle: Settle currency (required)
:param str contract: Futures contract, return related data only if specified
:param _return_http_data_only: response data without head status code
and headers
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:rtype: tuple(list[gate_api.FuturesTicker], status_code(int), headers(HTTPHeaderDict))
:return: If the method is called asynchronously,
returns the request thread.
"""
local_var_params = locals()
all_params = ['settle', 'contract']
all_params.extend(['async_req', '_return_http_data_only', '_preload_content', '_request_timeout'])
for k, v in six.iteritems(local_var_params['kwargs']):
if k not in all_params:
raise ApiTypeError("Got an unexpected keyword argument '%s'" " to method list_futures_tickers" % k)
local_var_params[k] = v
del local_var_params['kwargs']
# verify the required parameter 'settle' is set
if self.api_client.client_side_validation and (
'settle' not in local_var_params or local_var_params['settle'] is None # noqa: E501
): # noqa: E501
raise ApiValueError(
"Missing the required parameter `settle` when calling `list_futures_tickers`"
) # noqa: E501
collection_formats = {}
path_params = {}
if 'settle' in local_var_params:
path_params['settle'] = local_var_params['settle'] # noqa: E501
query_params = []
if 'contract' in local_var_params and local_var_params['contract'] is not None: # noqa: E501
query_params.append(('contract', local_var_params['contract'])) # noqa: E501
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(['application/json']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
return self.api_client.call_api(
'/futures/{settle}/tickers',
'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='list[FuturesTicker]', # noqa: E501
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats,
)
def list_futures_funding_rate_history(self, settle, contract, **kwargs): # noqa: E501
"""Funding rate history # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.list_futures_funding_rate_history(settle, contract, async_req=True)
>>> result = thread.get()
:param bool async_req: execute request asynchronously
:param str settle: Settle currency (required)
:param str contract: Futures contract (required)
:param int limit: Maximum number of records to be returned in a single list
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:rtype: list[gate_api.FundingRateRecord]
:return: If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
return self.list_futures_funding_rate_history_with_http_info(settle, contract, **kwargs) # noqa: E501
def list_futures_funding_rate_history_with_http_info(self, settle, contract, **kwargs): # noqa: E501
"""Funding rate history # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.list_futures_funding_rate_history_with_http_info(settle, contract, async_req=True)
>>> result = thread.get()
:param bool async_req: execute request asynchronously
:param str settle: Settle currency (required)
:param str contract: Futures contract (required)
:param int limit: Maximum number of records to be returned in a single list
:param _return_http_data_only: response data without head status code
and headers
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:rtype: tuple(list[gate_api.FundingRateRecord], status_code(int), headers(HTTPHeaderDict))
:return: If the method is called asynchronously,
returns the request thread.
"""
local_var_params = locals()
all_params = ['settle', 'contract', 'limit']
all_params.extend(['async_req', '_return_http_data_only', '_preload_content', '_request_timeout'])
for k, v in six.iteritems(local_var_params['kwargs']):
if k not in all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'" " to method list_futures_funding_rate_history" % k
)
local_var_params[k] = v
del local_var_params['kwargs']
# verify the required parameter 'settle' is set
if self.api_client.client_side_validation and (
'settle' not in local_var_params or local_var_params['settle'] is None # noqa: E501
): # noqa: E501
raise ApiValueError(
"Missing the required parameter `settle` when calling `list_futures_funding_rate_history`"
) # noqa: E501
# verify the required parameter 'contract' is set
if self.api_client.client_side_validation and (
'contract' not in local_var_params or local_var_params['contract'] is None # noqa: E501
): # noqa: E501
raise ApiValueError(
"Missing the required parameter `contract` when calling `list_futures_funding_rate_history`"
) # noqa: E501
if (
self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] > 1000
): # noqa: E501
raise ApiValueError(
"Invalid value for parameter `limit` when calling `list_futures_funding_rate_history`, must be a value less than or equal to `1000`"
) # noqa: E501
if (
self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 1
): # noqa: E501
raise ApiValueError(
"Invalid value for parameter `limit` when calling `list_futures_funding_rate_history`, must be a value greater than or equal to `1`"
) # noqa: E501
collection_formats = {}
path_params = {}
if 'settle' in local_var_params:
path_params['settle'] = local_var_params['settle'] # noqa: E501
query_params = []
if 'contract' in local_var_params and local_var_params['contract'] is not None: # noqa: E501
query_params.append(('contract', local_var_params['contract'])) # noqa: E501
if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501
query_params.append(('limit', local_var_params['limit'])) # noqa: E501
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(['application/json']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
return self.api_client.call_api(
'/futures/{settle}/funding_rate',
'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='list[FundingRateRecord]', # noqa: E501
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats,
)
def list_futures_insurance_ledger(self, settle, **kwargs): # noqa: E501
"""Futures insurance balance history # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.list_futures_insurance_ledger(settle, async_req=True)
>>> result = thread.get()
:param bool async_req: execute request asynchronously
:param str settle: Settle currency (required)
:param int limit: Maximum number of records to be returned in a single list
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:rtype: list[gate_api.InsuranceRecord]
:return: If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
return self.list_futures_insurance_ledger_with_http_info(settle, **kwargs) # noqa: E501
def list_futures_insurance_ledger_with_http_info(self, settle, **kwargs): # noqa: E501
"""Futures insurance balance history # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.list_futures_insurance_ledger_with_http_info(settle, async_req=True)
>>> result = thread.get()
:param bool async_req: execute request asynchronously
:param str settle: Settle currency (required)
:param int limit: Maximum number of records to be returned in a single list
:param _return_http_data_only: response data without head status code
and headers
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:rtype: tuple(list[gate_api.InsuranceRecord], status_code(int), headers(HTTPHeaderDict))
:return: If the method is called asynchronously,
returns the request thread.
"""
local_var_params = locals()
all_params = ['settle', 'limit']
all_params.extend(['async_req', '_return_http_data_only', '_preload_content', '_request_timeout'])
for k, v in six.iteritems(local_var_params['kwargs']):
if k not in all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'" " to method list_futures_insurance_ledger" % k
)
local_var_params[k] = v
del local_var_params['kwargs']
# verify the required parameter 'settle' is set
if self.api_client.client_side_validation and (
'settle' not in local_var_params or local_var_params['settle'] is None # noqa: E501
): # noqa: E501
raise ApiValueError(
"Missing the required parameter `settle` when calling `list_futures_insurance_ledger`"
) # noqa: E501
if (
self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] > 1000
): # noqa: E501
raise ApiValueError(
"Invalid value for parameter `limit` when calling `list_futures_insurance_ledger`, must be a value less than or equal to `1000`"
) # noqa: E501
if (
self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 1
): # noqa: E501
raise ApiValueError(
"Invalid value for parameter `limit` when calling `list_futures_insurance_ledger`, must be a value greater than or equal to `1`"
) # noqa: E501
collection_formats = {}
path_params = {}
if 'settle' in local_var_params:
path_params['settle'] = local_var_params['settle'] # noqa: E501
query_params = []
if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501
query_params.append(('limit', local_var_params['limit'])) # noqa: E501
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(['application/json']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
return self.api_client.call_api(
'/futures/{settle}/insurance',
'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='list[InsuranceRecord]', # noqa: E501
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats,
)
def list_contract_stats(self, settle, contract, **kwargs): # noqa: E501
"""Futures stats # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.list_contract_stats(settle, contract, async_req=True)
>>> result = thread.get()
:param bool async_req: execute request asynchronously
:param str settle: Settle currency (required)
:param str contract: Futures contract (required)
:param int _from: Start timestamp
:param str interval:
:param int limit:
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:rtype: list[gate_api.ContractStat]
:return: If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
return self.list_contract_stats_with_http_info(settle, contract, **kwargs) # noqa: E501
def list_contract_stats_with_http_info(self, settle, contract, **kwargs): # noqa: E501
"""Futures stats # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.list_contract_stats_with_http_info(settle, contract, async_req=True)
>>> result = thread.get()
:param bool async_req: execute request asynchronously
:param str settle: Settle currency (required)
:param str contract: Futures contract (required)
:param int _from: Start timestamp
:param str interval:
:param int limit:
:param _return_http_data_only: response data without head status code
and headers
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:rtype: tuple(list[gate_api.ContractStat], status_code(int), headers(HTTPHeaderDict))
:return: If the method is called asynchronously,
returns the request thread.
"""
local_var_params = locals()
all_params = ['settle', 'contract', '_from', 'interval', 'limit']
all_params.extend(['async_req', '_return_http_data_only', '_preload_content', '_request_timeout'])
for k, v in six.iteritems(local_var_params['kwargs']):
if k not in all_params:
raise ApiTypeError("Got an unexpected keyword argument '%s'" " to method list_contract_stats" % k)
local_var_params[k] = v
del local_var_params['kwargs']
# verify the required parameter 'settle' is set
if self.api_client.client_side_validation and (
'settle' not in local_var_params or local_var_params['settle'] is None # noqa: E501
): # noqa: E501
raise ApiValueError(
"Missing the required parameter `settle` when calling `list_contract_stats`"
) # noqa: E501
# verify the required parameter 'contract' is set
if self.api_client.client_side_validation and (
'contract' not in local_var_params or local_var_params['contract'] is None # noqa: E501
): # noqa: E501
raise ApiValueError(
"Missing the required parameter `contract` when calling `list_contract_stats`"
) # noqa: E501
if (
self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] > 100
): # noqa: E501
raise ApiValueError(
"Invalid value for parameter `limit` when calling `list_contract_stats`, must be a value less than or equal to `100`"
) # noqa: E501
if (
self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 1
): # noqa: E501
raise ApiValueError(
"Invalid value for parameter `limit` when calling `list_contract_stats`, must be a value greater than or equal to `1`"
) # noqa: E501
collection_formats = {}
path_params = {}
if 'settle' in local_var_params:
path_params['settle'] = local_var_params['settle'] # noqa: E501
query_params = []
if 'contract' in local_var_params and local_var_params['contract'] is not None: # noqa: E501
query_params.append(('contract', local_var_params['contract'])) # noqa: E501
if '_from' in local_var_params and local_var_params['_from'] is not None: # noqa: E501
query_params.append(('from', local_var_params['_from'])) # noqa: E501
if 'interval' in local_var_params and local_var_params['interval'] is not None: # noqa: E501
query_params.append(('interval', local_var_params['interval'])) # noqa: E501
if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501
query_params.append(('limit', local_var_params['limit'])) # noqa: E501
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(['application/json']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
return self.api_client.call_api(
'/futures/{settle}/contract_stats',
'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='list[ContractStat]', # noqa: E501
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats,
)
def list_liquidated_orders(self, settle, **kwargs): # noqa: E501
"""Retrieve liquidation history # noqa: E501
Interval between `from` and `to` cannot exceeds 3600. Some private fields will not be returned in public endpoints. Refer to field description for detail. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.list_liquidated_orders(settle, async_req=True)
>>> result = thread.get()
:param bool async_req: execute request asynchronously
:param str settle: Settle currency (required)
:param str contract: Futures contract, return related data only if specified
:param int _from: Start timestamp
:param int to: End timestamp
:param int limit: Maximum number of records to be returned in a single list
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:rtype: list[gate_api.FuturesLiquidate]
:return: If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
return self.list_liquidated_orders_with_http_info(settle, **kwargs) # noqa: E501
def list_liquidated_orders_with_http_info(self, settle, **kwargs): # noqa: E501
"""Retrieve liquidation history # noqa: E501
Interval between `from` and `to` cannot exceeds 3600. Some private fields will not be returned in public endpoints. Refer to field description for detail. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.list_liquidated_orders_with_http_info(settle, async_req=True)
>>> result = thread.get()
:param bool async_req: execute request asynchronously
:param str settle: Settle currency (required)
:param str contract: Futures contract, return related data only if specified
:param int _from: Start timestamp
:param int to: End timestamp
:param int limit: Maximum number of records to be returned in a single list
:param _return_http_data_only: response data without head status code
and headers
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:rtype: tuple(list[gate_api.FuturesLiquidate], status_code(int), headers(HTTPHeaderDict))
:return: If the method is called asynchronously,
returns the request thread.
"""
local_var_params = locals()
all_params = ['settle', 'contract', '_from', 'to', 'limit']
all_params.extend(['async_req', '_return_http_data_only', '_preload_content', '_request_timeout'])
for k, v in six.iteritems(local_var_params['kwargs']):
if k not in all_params:
raise ApiTypeError("Got an unexpected keyword argument '%s'" " to method list_liquidated_orders" % k)
local_var_params[k] = v
del local_var_params['kwargs']
# verify the required parameter 'settle' is set
if self.api_client.client_side_validation and (
'settle' not in local_var_params or local_var_params['settle'] is None # noqa: E501
): # noqa: E501
raise ApiValueError(
"Missing the required parameter `settle` when calling `list_liquidated_orders`"
) # noqa: E501
if (
self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] > 1000
): # noqa: E501
raise ApiValueError(
"Invalid value for parameter `limit` when calling `list_liquidated_orders`, must be a value less than or equal to `1000`"
) # noqa: E501
if (
self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 1
): # noqa: E501
raise ApiValueError(
"Invalid value for parameter `limit` when calling `list_liquidated_orders`, must be a value greater than or equal to `1`"
) # noqa: E501
collection_formats = {}
path_params = {}
if 'settle' in local_var_params:
path_params['settle'] = local_var_params['settle'] # noqa: E501
query_params = []
if 'contract' in local_var_params and local_var_params['contract'] is not None: # noqa: E501
query_params.append(('contract', local_var_params['contract'])) # noqa: E501
if '_from' in local_var_params and local_var_params['_from'] is not None: # noqa: E501
query_params.append(('from', local_var_params['_from'])) # noqa: E501
if 'to' in local_var_params and local_var_params['to'] is not None: # noqa: E501
query_params.append(('to', local_var_params['to'])) # noqa: E501
if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501
query_params.append(('limit', local_var_params['limit'])) # noqa: E501
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(['application/json']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
return self.api_client.call_api(
'/futures/{settle}/liq_orders',
'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='list[FuturesLiquidate]', # noqa: E501
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats,
)
def list_futures_accounts(self, settle, **kwargs): # noqa: E501
"""Query futures account # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.list_futures_accounts(settle, async_req=True)
>>> result = thread.get()
:param bool async_req: execute request asynchronously
:param str settle: Settle currency (required)
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:rtype: gate_api.FuturesAccount
:return: If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
return self.list_futures_accounts_with_http_info(settle, **kwargs) # noqa: E501
def list_futures_accounts_with_http_info(self, settle, **kwargs): # noqa: E501
"""Query futures account # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.list_futures_accounts_with_http_info(settle, async_req=True)
>>> result = thread.get()
:param bool async_req: execute request asynchronously
:param str settle: Settle currency (required)
:param _return_http_data_only: response data without head status code
and headers
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:rtype: tuple(gate_api.FuturesAccount, status_code(int), headers(HTTPHeaderDict))
:return: If the method is called asynchronously,
returns the request thread.
"""
local_var_params = locals()
all_params = ['settle']
all_params.extend(['async_req', '_return_http_data_only', '_preload_content', '_request_timeout'])
for k, v in six.iteritems(local_var_params['kwargs']):
if k not in all_params:
raise ApiTypeError("Got an unexpected keyword argument '%s'" " to method list_futures_accounts" % k)
local_var_params[k] = v
del local_var_params['kwargs']
# verify the required parameter 'settle' is set
if self.api_client.client_side_validation and (
'settle' not in local_var_params or local_var_params['settle'] is None # noqa: E501
): # noqa: E501
raise ApiValueError(
"Missing the required parameter `settle` when calling `list_futures_accounts`"
) # noqa: E501
collection_formats = {}
path_params = {}
if 'settle' in local_var_params:
path_params['settle'] = local_var_params['settle'] # noqa: E501
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']) # noqa: E501
# Authentication setting
auth_settings = ['apiv4'] # noqa: E501
return self.api_client.call_api(
'/futures/{settle}/accounts',
'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='FuturesAccount', # noqa: E501
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats,
)
def list_futures_account_book(self, settle, **kwargs): # noqa: E501
"""Query account book # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.list_futures_account_book(settle, async_req=True)
>>> result = thread.get()
:param bool async_req: execute request asynchronously
:param str settle: Settle currency (required)
:param int limit: Maximum number of records to be returned in a single list
:param int _from: Start timestamp
:param int to: End timestamp
:param str type: Changing Type: - dnw: Deposit & Withdraw - pnl: Profit & Loss by reducing position - fee: Trading fee - refr: Referrer rebate - fund: Funding - point_dnw: POINT Deposit & Withdraw - point_fee: POINT Trading fee - point_refr: POINT Referrer rebate
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:rtype: list[gate_api.FuturesAccountBook]
:return: If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
return self.list_futures_account_book_with_http_info(settle, **kwargs) # noqa: E501
def list_futures_account_book_with_http_info(self, settle, **kwargs): # noqa: E501
"""Query account book # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.list_futures_account_book_with_http_info(settle, async_req=True)
>>> result = thread.get()
:param bool async_req: execute request asynchronously
:param str settle: Settle currency (required)
:param int limit: Maximum number of records to be returned in a single list
:param int _from: Start timestamp
:param int to: End timestamp
:param str type: Changing Type: - dnw: Deposit & Withdraw - pnl: Profit & Loss by reducing position - fee: Trading fee - refr: Referrer rebate - fund: Funding - point_dnw: POINT Deposit & Withdraw - point_fee: POINT Trading fee - point_refr: POINT Referrer rebate
:param _return_http_data_only: response data without head status code
and headers
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:rtype: tuple(list[gate_api.FuturesAccountBook], status_code(int), headers(HTTPHeaderDict))
:return: If the method is called asynchronously,
returns the request thread.
"""
local_var_params = locals()
all_params = ['settle', 'limit', '_from', 'to', 'type']
all_params.extend(['async_req', '_return_http_data_only', '_preload_content', '_request_timeout'])
for k, v in six.iteritems(local_var_params['kwargs']):
if k not in all_params:
raise ApiTypeError("Got an unexpected keyword argument '%s'" " to method list_futures_account_book" % k)
local_var_params[k] = v
del local_var_params['kwargs']
# verify the required parameter 'settle' is set
if self.api_client.client_side_validation and (
'settle' not in local_var_params or local_var_params['settle'] is None # noqa: E501
): # noqa: E501
raise ApiValueError(
"Missing the required parameter `settle` when calling `list_futures_account_book`"
) # noqa: E501
if (
self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] > 1000
): # noqa: E501
raise ApiValueError(
"Invalid value for parameter `limit` when calling `list_futures_account_book`, must be a value less than or equal to `1000`"
) # noqa: E501
if (
self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 1
): # noqa: E501
raise ApiValueError(
"Invalid value for parameter `limit` when calling `list_futures_account_book`, must be a value greater than or equal to `1`"
) # noqa: E501
collection_formats = {}
path_params = {}
if 'settle' in local_var_params:
path_params['settle'] = local_var_params['settle'] # noqa: E501
query_params = []
if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501
query_params.append(('limit', local_var_params['limit'])) # noqa: E501
if '_from' in local_var_params and local_var_params['_from'] is not None: # noqa: E501
query_params.append(('from', local_var_params['_from'])) # noqa: E501
if 'to' in local_var_params and local_var_params['to'] is not None: # noqa: E501
query_params.append(('to', local_var_params['to'])) # noqa: E501
if 'type' in local_var_params and local_var_params['type'] is not None: # noqa: E501
query_params.append(('type', local_var_params['type'])) # noqa: E501
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['apiv4'] # noqa: E501
return self.api_client.call_api(
'/futures/{settle}/account_book',
'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='list[FuturesAccountBook]', # noqa: E501
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats,
)
def list_positions(self, settle, **kwargs): # noqa: E501
"""List all positions of a user # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.list_positions(settle, async_req=True)
>>> result = thread.get()
:param bool async_req: execute request asynchronously
:param str settle: Settle currency (required)
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:rtype: list[gate_api.Position]
:return: If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
return self.list_positions_with_http_info(settle, **kwargs) # noqa: E501
def list_positions_with_http_info(self, settle, **kwargs): # noqa: E501
"""List all positions of a user # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.list_positions_with_http_info(settle, async_req=True)
>>> result = thread.get()
:param bool async_req: execute request asynchronously
:param str settle: Settle currency (required)
:param _return_http_data_only: response data without head status code
and headers
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:rtype: tuple(list[gate_api.Position], status_code(int), headers(HTTPHeaderDict))
:return: If the method is called asynchronously,
returns the request thread.
"""
local_var_params = locals()
all_params = ['settle']
all_params.extend(['async_req', '_return_http_data_only', '_preload_content', '_request_timeout'])
for k, v in six.iteritems(local_var_params['kwargs']):
if k not in all_params:
raise ApiTypeError("Got an unexpected keyword argument '%s'" " to method list_positions" % k)
local_var_params[k] = v
del local_var_params['kwargs']
# verify the required parameter 'settle' is set
if self.api_client.client_side_validation and (
'settle' not in local_var_params or local_var_params['settle'] is None # noqa: E501
): # noqa: E501
raise ApiValueError("Missing the required parameter `settle` when calling `list_positions`") # noqa: E501
collection_formats = {}
path_params = {}
if 'settle' in local_var_params:
path_params['settle'] = local_var_params['settle'] # noqa: E501
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']) # noqa: E501
# Authentication setting
auth_settings = ['apiv4'] # noqa: E501
return self.api_client.call_api(
'/futures/{settle}/positions',
'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='list[Position]', # noqa: E501
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats,
)
def get_position(self, settle, contract, **kwargs): # noqa: E501
"""Get single position # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_position(settle, contract, async_req=True)
>>> result = thread.get()
:param bool async_req: execute request asynchronously
:param str settle: Settle currency (required)
:param str contract: Futures contract (required)
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:rtype: gate_api.Position
:return: If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
return self.get_position_with_http_info(settle, contract, **kwargs) # noqa: E501
def get_position_with_http_info(self, settle, contract, **kwargs): # noqa: E501
"""Get single position # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_position_with_http_info(settle, contract, async_req=True)
>>> result = thread.get()
:param bool async_req: execute request asynchronously
:param str settle: Settle currency (required)
:param str contract: Futures contract (required)
:param _return_http_data_only: response data without head status code
and headers
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:rtype: tuple(gate_api.Position, status_code(int), headers(HTTPHeaderDict))
:return: If the method is called asynchronously,
returns the request thread.
"""
local_var_params = locals()
all_params = ['settle', 'contract']
all_params.extend(['async_req', '_return_http_data_only', '_preload_content', '_request_timeout'])
for k, v in six.iteritems(local_var_params['kwargs']):
if k not in all_params:
raise ApiTypeError("Got an unexpected keyword argument '%s'" " to method get_position" % k)
local_var_params[k] = v
del local_var_params['kwargs']
# verify the required parameter 'settle' is set
if self.api_client.client_side_validation and (
'settle' not in local_var_params or local_var_params['settle'] is None # noqa: E501
): # noqa: E501
raise ApiValueError("Missing the required parameter `settle` when calling `get_position`") # noqa: E501
# verify the required parameter 'contract' is set
if self.api_client.client_side_validation and (
'contract' not in local_var_params or local_var_params['contract'] is None # noqa: E501
): # noqa: E501
raise ApiValueError("Missing the required parameter `contract` when calling `get_position`") # noqa: E501
collection_formats = {}
path_params = {}
if 'settle' in local_var_params:
path_params['settle'] = local_var_params['settle'] # noqa: E501
if 'contract' in local_var_params:
path_params['contract'] = local_var_params['contract'] # noqa: E501
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']) # noqa: E501
# Authentication setting
auth_settings = ['apiv4'] # noqa: E501
return self.api_client.call_api(
'/futures/{settle}/positions/{contract}',
'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='Position', # noqa: E501
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats,
)
def update_position_margin(self, settle, contract, change, **kwargs): # noqa: E501
"""Update position margin # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.update_position_margin(settle, contract, change, async_req=True)
>>> result = thread.get()
:param bool async_req: execute request asynchronously
:param str settle: Settle currency (required)
:param str contract: Futures contract (required)
:param str change: Margin change. Use positive number to increase margin, negative number otherwise. (required)
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:rtype: gate_api.Position
:return: If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
return self.update_position_margin_with_http_info(settle, contract, change, **kwargs) # noqa: E501
def update_position_margin_with_http_info(self, settle, contract, change, **kwargs): # noqa: E501
"""Update position margin # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.update_position_margin_with_http_info(settle, contract, change, async_req=True)
>>> result = thread.get()
:param bool async_req: execute request asynchronously
:param str settle: Settle currency (required)
:param str contract: Futures contract (required)
:param str change: Margin change. Use positive number to increase margin, negative number otherwise. (required)
:param _return_http_data_only: response data without head status code
and headers
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:rtype: tuple(gate_api.Position, status_code(int), headers(HTTPHeaderDict))
:return: If the method is called asynchronously,
returns the request thread.
"""
local_var_params = locals()
all_params = ['settle', 'contract', 'change']
all_params.extend(['async_req', '_return_http_data_only', '_preload_content', '_request_timeout'])
for k, v in six.iteritems(local_var_params['kwargs']):
if k not in all_params:
raise ApiTypeError("Got an unexpected keyword argument '%s'" " to method update_position_margin" % k)
local_var_params[k] = v
del local_var_params['kwargs']
# verify the required parameter 'settle' is set
if self.api_client.client_side_validation and (
'settle' not in local_var_params or local_var_params['settle'] is None # noqa: E501
): # noqa: E501
raise ApiValueError(
"Missing the required parameter `settle` when calling `update_position_margin`"
) # noqa: E501
# verify the required parameter 'contract' is set
if self.api_client.client_side_validation and (
'contract' not in local_var_params or local_var_params['contract'] is None # noqa: E501
): # noqa: E501
raise ApiValueError(
"Missing the required parameter `contract` when calling `update_position_margin`"
) # noqa: E501
# verify the required parameter 'change' is set
if self.api_client.client_side_validation and (
'change' not in local_var_params or local_var_params['change'] is None # noqa: E501
): # noqa: E501
raise ApiValueError(
"Missing the required parameter `change` when calling `update_position_margin`"
) # noqa: E501
collection_formats = {}
path_params = {}
if 'settle' in local_var_params:
path_params['settle'] = local_var_params['settle'] # noqa: E501
if 'contract' in local_var_params:
path_params['contract'] = local_var_params['contract'] # noqa: E501
query_params = []
if 'change' in local_var_params and local_var_params['change'] is not None: # noqa: E501
query_params.append(('change', local_var_params['change'])) # noqa: E501
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['apiv4'] # noqa: E501
return self.api_client.call_api(
'/futures/{settle}/positions/{contract}/margin',
'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='Position', # noqa: E501
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats,
)
def update_position_leverage(self, settle, contract, leverage, **kwargs): # noqa: E501
"""Update position leverage # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.update_position_leverage(settle, contract, leverage, async_req=True)
>>> result = thread.get()
:param bool async_req: execute request asynchronously
:param str settle: Settle currency (required)
:param str contract: Futures contract (required)
:param str leverage: New position leverage (required)
:param str cross_leverage_limit: Cross margin leverage(valid only when `leverage` is 0)
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:rtype: gate_api.Position
:return: If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
return self.update_position_leverage_with_http_info(settle, contract, leverage, **kwargs) # noqa: E501
def update_position_leverage_with_http_info(self, settle, contract, leverage, **kwargs): # noqa: E501
"""Update position leverage # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.update_position_leverage_with_http_info(settle, contract, leverage, async_req=True)
>>> result = thread.get()
:param bool async_req: execute request asynchronously
:param str settle: Settle currency (required)
:param str contract: Futures contract (required)
:param str leverage: New position leverage (required)
:param str cross_leverage_limit: Cross margin leverage(valid only when `leverage` is 0)
:param _return_http_data_only: response data without head status code
and headers
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:rtype: tuple(gate_api.Position, status_code(int), headers(HTTPHeaderDict))
:return: If the method is called asynchronously,
returns the request thread.
"""
local_var_params = locals()
all_params = ['settle', 'contract', 'leverage', 'cross_leverage_limit']
all_params.extend(['async_req', '_return_http_data_only', '_preload_content', '_request_timeout'])
for k, v in six.iteritems(local_var_params['kwargs']):
if k not in all_params:
raise ApiTypeError("Got an unexpected keyword argument '%s'" " to method update_position_leverage" % k)
local_var_params[k] = v
del local_var_params['kwargs']
# verify the required parameter 'settle' is set
if self.api_client.client_side_validation and (
'settle' not in local_var_params or local_var_params['settle'] is None # noqa: E501
): # noqa: E501
raise ApiValueError(
"Missing the required parameter `settle` when calling `update_position_leverage`"
) # noqa: E501
# verify the required parameter 'contract' is set
if self.api_client.client_side_validation and (
'contract' not in local_var_params or local_var_params['contract'] is None # noqa: E501
): # noqa: E501
raise ApiValueError(
"Missing the required parameter `contract` when calling `update_position_leverage`"
) # noqa: E501
# verify the required parameter 'leverage' is set
if self.api_client.client_side_validation and (
'leverage' not in local_var_params or local_var_params['leverage'] is None # noqa: E501
): # noqa: E501
raise ApiValueError(
"Missing the required parameter `leverage` when calling `update_position_leverage`"
) # noqa: E501
collection_formats = {}
path_params = {}
if 'settle' in local_var_params:
path_params['settle'] = local_var_params['settle'] # noqa: E501
if 'contract' in local_var_params:
path_params['contract'] = local_var_params['contract'] # noqa: E501
query_params = []
if 'leverage' in local_var_params and local_var_params['leverage'] is not None: # noqa: E501
query_params.append(('leverage', local_var_params['leverage'])) # noqa: E501
if (
'cross_leverage_limit' in local_var_params and local_var_params['cross_leverage_limit'] is not None
): # noqa: E501
query_params.append(('cross_leverage_limit', local_var_params['cross_leverage_limit'])) # noqa: E501
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['apiv4'] # noqa: E501
return self.api_client.call_api(
'/futures/{settle}/positions/{contract}/leverage',
'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='Position', # noqa: E501
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats,
)
def update_position_risk_limit(self, settle, contract, risk_limit, **kwargs): # noqa: E501
"""Update position risk limit # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.update_position_risk_limit(settle, contract, risk_limit, async_req=True)
>>> result = thread.get()
:param bool async_req: execute request asynchronously
:param str settle: Settle currency (required)
:param str contract: Futures contract (required)
:param str risk_limit: New position risk limit (required)
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:rtype: gate_api.Position
:return: If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
return self.update_position_risk_limit_with_http_info(settle, contract, risk_limit, **kwargs) # noqa: E501
def update_position_risk_limit_with_http_info(self, settle, contract, risk_limit, **kwargs): # noqa: E501
"""Update position risk limit # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.update_position_risk_limit_with_http_info(settle, contract, risk_limit, async_req=True)
>>> result = thread.get()
:param bool async_req: execute request asynchronously
:param str settle: Settle currency (required)
:param str contract: Futures contract (required)
:param str risk_limit: New position risk limit (required)
:param _return_http_data_only: response data without head status code
and headers
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:rtype: tuple(gate_api.Position, status_code(int), headers(HTTPHeaderDict))
:return: If the method is called asynchronously,
returns the request thread.
"""
local_var_params = locals()
all_params = ['settle', 'contract', 'risk_limit']
all_params.extend(['async_req', '_return_http_data_only', '_preload_content', '_request_timeout'])
for k, v in six.iteritems(local_var_params['kwargs']):
if k not in all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'" " to method update_position_risk_limit" % k
)
local_var_params[k] = v
del local_var_params['kwargs']
# verify the required parameter 'settle' is set
if self.api_client.client_side_validation and (
'settle' not in local_var_params or local_var_params['settle'] is None # noqa: E501
): # noqa: E501
raise ApiValueError(
"Missing the required parameter `settle` when calling `update_position_risk_limit`"
) # noqa: E501
# verify the required parameter 'contract' is set
if self.api_client.client_side_validation and (
'contract' not in local_var_params or local_var_params['contract'] is None # noqa: E501
): # noqa: E501
raise ApiValueError(
"Missing the required parameter `contract` when calling `update_position_risk_limit`"
) # noqa: E501
# verify the required parameter 'risk_limit' is set
if self.api_client.client_side_validation and (
'risk_limit' not in local_var_params or local_var_params['risk_limit'] is None # noqa: E501
): # noqa: E501
raise ApiValueError(
"Missing the required parameter `risk_limit` when calling `update_position_risk_limit`"
) # noqa: E501
collection_formats = {}
path_params = {}
if 'settle' in local_var_params:
path_params['settle'] = local_var_params['settle'] # noqa: E501
if 'contract' in local_var_params:
path_params['contract'] = local_var_params['contract'] # noqa: E501
query_params = []
if 'risk_limit' in local_var_params and local_var_params['risk_limit'] is not None: # noqa: E501
query_params.append(('risk_limit', local_var_params['risk_limit'])) # noqa: E501
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['apiv4'] # noqa: E501
return self.api_client.call_api(
'/futures/{settle}/positions/{contract}/risk_limit',
'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='Position', # noqa: E501
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats,
)
def set_dual_mode(self, settle, dual_mode, **kwargs): # noqa: E501
"""Enable or disable dual mode # noqa: E501
Before setting dual mode, make sure all positions are closed and no orders are open # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.set_dual_mode(settle, dual_mode, async_req=True)
>>> result = thread.get()
:param bool async_req: execute request asynchronously
:param str settle: Settle currency (required)
:param bool dual_mode: Whether to enable dual mode (required)
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:rtype: gate_api.FuturesAccount
:return: If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
return self.set_dual_mode_with_http_info(settle, dual_mode, **kwargs) # noqa: E501
def set_dual_mode_with_http_info(self, settle, dual_mode, **kwargs): # noqa: E501
"""Enable or disable dual mode # noqa: E501
Before setting dual mode, make sure all positions are closed and no orders are open # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.set_dual_mode_with_http_info(settle, dual_mode, async_req=True)
>>> result = thread.get()
:param bool async_req: execute request asynchronously
:param str settle: Settle currency (required)
:param bool dual_mode: Whether to enable dual mode (required)
:param _return_http_data_only: response data without head status code
and headers
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:rtype: tuple(gate_api.FuturesAccount, status_code(int), headers(HTTPHeaderDict))
:return: If the method is called asynchronously,
returns the request thread.
"""
local_var_params = locals()
all_params = ['settle', 'dual_mode']
all_params.extend(['async_req', '_return_http_data_only', '_preload_content', '_request_timeout'])
for k, v in six.iteritems(local_var_params['kwargs']):
if k not in all_params:
raise ApiTypeError("Got an unexpected keyword argument '%s'" " to method set_dual_mode" % k)
local_var_params[k] = v
del local_var_params['kwargs']
# verify the required parameter 'settle' is set
if self.api_client.client_side_validation and (
'settle' not in local_var_params or local_var_params['settle'] is None # noqa: E501
): # noqa: E501
raise ApiValueError("Missing the required parameter `settle` when calling `set_dual_mode`") # noqa: E501
# verify the required parameter 'dual_mode' is set
if self.api_client.client_side_validation and (
'dual_mode' not in local_var_params or local_var_params['dual_mode'] is None # noqa: E501
): # noqa: E501
raise ApiValueError("Missing the required parameter `dual_mode` when calling `set_dual_mode`") # noqa: E501
collection_formats = {}
path_params = {}
if 'settle' in local_var_params:
path_params['settle'] = local_var_params['settle'] # noqa: E501
query_params = []
if 'dual_mode' in local_var_params and local_var_params['dual_mode'] is not None: # noqa: E501
query_params.append(('dual_mode', local_var_params['dual_mode'])) # noqa: E501
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['apiv4'] # noqa: E501
return self.api_client.call_api(
'/futures/{settle}/dual_mode',
'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='FuturesAccount', # noqa: E501
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats,
)
def get_dual_mode_position(self, settle, contract, **kwargs): # noqa: E501
"""Retrieve position detail in dual mode # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_dual_mode_position(settle, contract, async_req=True)
>>> result = thread.get()
:param bool async_req: execute request asynchronously
:param str settle: Settle currency (required)
:param str contract: Futures contract (required)
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:rtype: list[gate_api.Position]
:return: If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
return self.get_dual_mode_position_with_http_info(settle, contract, **kwargs) # noqa: E501
def get_dual_mode_position_with_http_info(self, settle, contract, **kwargs): # noqa: E501
"""Retrieve position detail in dual mode # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_dual_mode_position_with_http_info(settle, contract, async_req=True)
>>> result = thread.get()
:param bool async_req: execute request asynchronously
:param str settle: Settle currency (required)
:param str contract: Futures contract (required)
:param _return_http_data_only: response data without head status code
and headers
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:rtype: tuple(list[gate_api.Position], status_code(int), headers(HTTPHeaderDict))
:return: If the method is called asynchronously,
returns the request thread.
"""
local_var_params = locals()
all_params = ['settle', 'contract']
all_params.extend(['async_req', '_return_http_data_only', '_preload_content', '_request_timeout'])
for k, v in six.iteritems(local_var_params['kwargs']):
if k not in all_params:
raise ApiTypeError("Got an unexpected keyword argument '%s'" " to method get_dual_mode_position" % k)
local_var_params[k] = v
del local_var_params['kwargs']
# verify the required parameter 'settle' is set
if self.api_client.client_side_validation and (
'settle' not in local_var_params or local_var_params['settle'] is None # noqa: E501
): # noqa: E501
raise ApiValueError(
"Missing the required parameter `settle` when calling `get_dual_mode_position`"
) # noqa: E501
# verify the required parameter 'contract' is set
if self.api_client.client_side_validation and (
'contract' not in local_var_params or local_var_params['contract'] is None # noqa: E501
): # noqa: E501
raise ApiValueError(
"Missing the required parameter `contract` when calling `get_dual_mode_position`"
) # noqa: E501
collection_formats = {}
path_params = {}
if 'settle' in local_var_params:
path_params['settle'] = local_var_params['settle'] # noqa: E501
if 'contract' in local_var_params:
path_params['contract'] = local_var_params['contract'] # noqa: E501
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']) # noqa: E501
# Authentication setting
auth_settings = ['apiv4'] # noqa: E501
return self.api_client.call_api(
'/futures/{settle}/dual_comp/positions/{contract}',
'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='list[Position]', # noqa: E501
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats,
)
def update_dual_mode_position_margin(self, settle, contract, change, dual_side, **kwargs): # noqa: E501
"""Update position margin in dual mode # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.update_dual_mode_position_margin(settle, contract, change, dual_side, async_req=True)
>>> result = thread.get()
:param bool async_req: execute request asynchronously
:param str settle: Settle currency (required)
:param str contract: Futures contract (required)
:param str change: Margin change. Use positive number to increase margin, negative number otherwise. (required)
:param str dual_side: Long or short position (required)
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:rtype: list[gate_api.Position]
:return: If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
return self.update_dual_mode_position_margin_with_http_info(
settle, contract, change, dual_side, **kwargs
) # noqa: E501
def update_dual_mode_position_margin_with_http_info(
self, settle, contract, change, dual_side, **kwargs
): # noqa: E501
"""Update position margin in dual mode # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.update_dual_mode_position_margin_with_http_info(settle, contract, change, dual_side, async_req=True)
>>> result = thread.get()
:param bool async_req: execute request asynchronously
:param str settle: Settle currency (required)
:param str contract: Futures contract (required)
:param str change: Margin change. Use positive number to increase margin, negative number otherwise. (required)
:param str dual_side: Long or short position (required)
:param _return_http_data_only: response data without head status code
and headers
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:rtype: tuple(list[gate_api.Position], status_code(int), headers(HTTPHeaderDict))
:return: If the method is called asynchronously,
returns the request thread.
"""
local_var_params = locals()
all_params = ['settle', 'contract', 'change', 'dual_side']
all_params.extend(['async_req', '_return_http_data_only', '_preload_content', '_request_timeout'])
for k, v in six.iteritems(local_var_params['kwargs']):
if k not in all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'" " to method update_dual_mode_position_margin" % k
)
local_var_params[k] = v
del local_var_params['kwargs']
# verify the required parameter 'settle' is set
if self.api_client.client_side_validation and (
'settle' not in local_var_params or local_var_params['settle'] is None # noqa: E501
): # noqa: E501
raise ApiValueError(
"Missing the required parameter `settle` when calling `update_dual_mode_position_margin`"
) # noqa: E501
# verify the required parameter 'contract' is set
if self.api_client.client_side_validation and (
'contract' not in local_var_params or local_var_params['contract'] is None # noqa: E501
): # noqa: E501
raise ApiValueError(
"Missing the required parameter `contract` when calling `update_dual_mode_position_margin`"
) # noqa: E501
# verify the required parameter 'change' is set
if self.api_client.client_side_validation and (
'change' not in local_var_params or local_var_params['change'] is None # noqa: E501
): # noqa: E501
raise ApiValueError(
"Missing the required parameter `change` when calling `update_dual_mode_position_margin`"
) # noqa: E501
# verify the required parameter 'dual_side' is set
if self.api_client.client_side_validation and (
'dual_side' not in local_var_params or local_var_params['dual_side'] is None # noqa: E501
): # noqa: E501
raise ApiValueError(
"Missing the required parameter `dual_side` when calling `update_dual_mode_position_margin`"
) # noqa: E501
collection_formats = {}
path_params = {}
if 'settle' in local_var_params:
path_params['settle'] = local_var_params['settle'] # noqa: E501
if 'contract' in local_var_params:
path_params['contract'] = local_var_params['contract'] # noqa: E501
query_params = []
if 'change' in local_var_params and local_var_params['change'] is not None: # noqa: E501
query_params.append(('change', local_var_params['change'])) # noqa: E501
if 'dual_side' in local_var_params and local_var_params['dual_side'] is not None: # noqa: E501
query_params.append(('dual_side', local_var_params['dual_side'])) # noqa: E501
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['apiv4'] # noqa: E501
return self.api_client.call_api(
'/futures/{settle}/dual_comp/positions/{contract}/margin',
'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='list[Position]', # noqa: E501
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats,
)
def update_dual_mode_position_leverage(self, settle, contract, leverage, **kwargs): # noqa: E501
"""Update position leverage in dual mode # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.update_dual_mode_position_leverage(settle, contract, leverage, async_req=True)
>>> result = thread.get()
:param bool async_req: execute request asynchronously
:param str settle: Settle currency (required)
:param str contract: Futures contract (required)
:param str leverage: New position leverage (required)
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:rtype: list[gate_api.Position]
:return: If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
return self.update_dual_mode_position_leverage_with_http_info(
settle, contract, leverage, **kwargs
) # noqa: E501
def update_dual_mode_position_leverage_with_http_info(self, settle, contract, leverage, **kwargs): # noqa: E501
"""Update position leverage in dual mode # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.update_dual_mode_position_leverage_with_http_info(settle, contract, leverage, async_req=True)
>>> result = thread.get()
:param bool async_req: execute request asynchronously
:param str settle: Settle currency (required)
:param str contract: Futures contract (required)
:param str leverage: New position leverage (required)
:param _return_http_data_only: response data without head status code
and headers
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:rtype: tuple(list[gate_api.Position], status_code(int), headers(HTTPHeaderDict))
:return: If the method is called asynchronously,
returns the request thread.
"""
local_var_params = locals()
all_params = ['settle', 'contract', 'leverage']
all_params.extend(['async_req', '_return_http_data_only', '_preload_content', '_request_timeout'])
for k, v in six.iteritems(local_var_params['kwargs']):
if k not in all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'" " to method update_dual_mode_position_leverage" % k
)
local_var_params[k] = v
del local_var_params['kwargs']
# verify the required parameter 'settle' is set
if self.api_client.client_side_validation and (
'settle' not in local_var_params or local_var_params['settle'] is None # noqa: E501
): # noqa: E501
raise ApiValueError(
"Missing the required parameter `settle` when calling `update_dual_mode_position_leverage`"
) # noqa: E501
# verify the required parameter 'contract' is set
if self.api_client.client_side_validation and (
'contract' not in local_var_params or local_var_params['contract'] is None # noqa: E501
): # noqa: E501
raise ApiValueError(
"Missing the required parameter `contract` when calling `update_dual_mode_position_leverage`"
) # noqa: E501
# verify the required parameter 'leverage' is set
if self.api_client.client_side_validation and (
'leverage' not in local_var_params or local_var_params['leverage'] is None # noqa: E501
): # noqa: E501
raise ApiValueError(
"Missing the required parameter `leverage` when calling `update_dual_mode_position_leverage`"
) # noqa: E501
collection_formats = {}
path_params = {}
if 'settle' in local_var_params:
path_params['settle'] = local_var_params['settle'] # noqa: E501
if 'contract' in local_var_params:
path_params['contract'] = local_var_params['contract'] # noqa: E501
query_params = []
if 'leverage' in local_var_params and local_var_params['leverage'] is not None: # noqa: E501
query_params.append(('leverage', local_var_params['leverage'])) # noqa: E501
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['apiv4'] # noqa: E501
return self.api_client.call_api(
'/futures/{settle}/dual_comp/positions/{contract}/leverage',
'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='list[Position]', # noqa: E501
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats,
)
def update_dual_mode_position_risk_limit(self, settle, contract, risk_limit, **kwargs): # noqa: E501
"""Update position risk limit in dual mode # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.update_dual_mode_position_risk_limit(settle, contract, risk_limit, async_req=True)
>>> result = thread.get()
:param bool async_req: execute request asynchronously
:param str settle: Settle currency (required)
:param str contract: Futures contract (required)
:param str risk_limit: New position risk limit (required)
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:rtype: list[gate_api.Position]
:return: If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
return self.update_dual_mode_position_risk_limit_with_http_info(
settle, contract, risk_limit, **kwargs
) # noqa: E501
def update_dual_mode_position_risk_limit_with_http_info(self, settle, contract, risk_limit, **kwargs): # noqa: E501
"""Update position risk limit in dual mode # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.update_dual_mode_position_risk_limit_with_http_info(settle, contract, risk_limit, async_req=True)
>>> result = thread.get()
:param bool async_req: execute request asynchronously
:param str settle: Settle currency (required)
:param str contract: Futures contract (required)
:param str risk_limit: New position risk limit (required)
:param _return_http_data_only: response data without head status code
and headers
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:rtype: tuple(list[gate_api.Position], status_code(int), headers(HTTPHeaderDict))
:return: If the method is called asynchronously,
returns the request thread.
"""
local_var_params = locals()
all_params = ['settle', 'contract', 'risk_limit']
all_params.extend(['async_req', '_return_http_data_only', '_preload_content', '_request_timeout'])
for k, v in six.iteritems(local_var_params['kwargs']):
if k not in all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'" " to method update_dual_mode_position_risk_limit" % k
)
local_var_params[k] = v
del local_var_params['kwargs']
# verify the required parameter 'settle' is set
if self.api_client.client_side_validation and (
'settle' not in local_var_params or local_var_params['settle'] is None # noqa: E501
): # noqa: E501
raise ApiValueError(
"Missing the required parameter `settle` when calling `update_dual_mode_position_risk_limit`"
) # noqa: E501
# verify the required parameter 'contract' is set
if self.api_client.client_side_validation and (
'contract' not in local_var_params or local_var_params['contract'] is None # noqa: E501
): # noqa: E501
raise ApiValueError(
"Missing the required parameter `contract` when calling `update_dual_mode_position_risk_limit`"
) # noqa: E501
# verify the required parameter 'risk_limit' is set
if self.api_client.client_side_validation and (
'risk_limit' not in local_var_params or local_var_params['risk_limit'] is None # noqa: E501
): # noqa: E501
raise ApiValueError(
"Missing the required parameter `risk_limit` when calling `update_dual_mode_position_risk_limit`"
) # noqa: E501
collection_formats = {}
path_params = {}
if 'settle' in local_var_params:
path_params['settle'] = local_var_params['settle'] # noqa: E501
if 'contract' in local_var_params:
path_params['contract'] = local_var_params['contract'] # noqa: E501
query_params = []
if 'risk_limit' in local_var_params and local_var_params['risk_limit'] is not None: # noqa: E501
query_params.append(('risk_limit', local_var_params['risk_limit'])) # noqa: E501
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['apiv4'] # noqa: E501
return self.api_client.call_api(
'/futures/{settle}/dual_comp/positions/{contract}/risk_limit',
'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='list[Position]', # noqa: E501
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats,
)
def list_futures_orders(self, settle, contract, status, **kwargs): # noqa: E501
"""List futures orders # noqa: E501
Zero-fill order cannot be retrieved for 60 seconds after cancellation # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.list_futures_orders(settle, contract, status, async_req=True)
>>> result = thread.get()
:param bool async_req: execute request asynchronously
:param str settle: Settle currency (required)
:param str contract: Futures contract (required)
:param str status: Only list the orders with this status (required)
:param int limit: Maximum number of records to be returned in a single list
:param int offset: List offset, starting from 0
:param str last_id: Specify list staring point using the `id` of last record in previous list-query results
:param int count_total: Whether to return total number matched. Default to 0(no return)
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:rtype: list[gate_api.FuturesOrder]
:return: If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
return self.list_futures_orders_with_http_info(settle, contract, status, **kwargs) # noqa: E501
def list_futures_orders_with_http_info(self, settle, contract, status, **kwargs): # noqa: E501
"""List futures orders # noqa: E501
Zero-fill order cannot be retrieved for 60 seconds after cancellation # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.list_futures_orders_with_http_info(settle, contract, status, async_req=True)
>>> result = thread.get()
:param bool async_req: execute request asynchronously
:param str settle: Settle currency (required)
:param str contract: Futures contract (required)
:param str status: Only list the orders with this status (required)
:param int limit: Maximum number of records to be returned in a single list
:param int offset: List offset, starting from 0
:param str last_id: Specify list staring point using the `id` of last record in previous list-query results
:param int count_total: Whether to return total number matched. Default to 0(no return)
:param _return_http_data_only: response data without head status code
and headers
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:rtype: tuple(list[gate_api.FuturesOrder], status_code(int), headers(HTTPHeaderDict))
:return: If the method is called asynchronously,
returns the request thread.
"""
local_var_params = locals()
all_params = ['settle', 'contract', 'status', 'limit', 'offset', 'last_id', 'count_total']
all_params.extend(['async_req', '_return_http_data_only', '_preload_content', '_request_timeout'])
for k, v in six.iteritems(local_var_params['kwargs']):
if k not in all_params:
raise ApiTypeError("Got an unexpected keyword argument '%s'" " to method list_futures_orders" % k)
local_var_params[k] = v
del local_var_params['kwargs']
# verify the required parameter 'settle' is set
if self.api_client.client_side_validation and (
'settle' not in local_var_params or local_var_params['settle'] is None # noqa: E501
): # noqa: E501
raise ApiValueError(
"Missing the required parameter `settle` when calling `list_futures_orders`"
) # noqa: E501
# verify the required parameter 'contract' is set
if self.api_client.client_side_validation and (
'contract' not in local_var_params or local_var_params['contract'] is None # noqa: E501
): # noqa: E501
raise ApiValueError(
"Missing the required parameter `contract` when calling `list_futures_orders`"
) # noqa: E501
# verify the required parameter 'status' is set
if self.api_client.client_side_validation and (
'status' not in local_var_params or local_var_params['status'] is None # noqa: E501
): # noqa: E501
raise ApiValueError(
"Missing the required parameter `status` when calling `list_futures_orders`"
) # noqa: E501
if (
self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] > 1000
): # noqa: E501
raise ApiValueError(
"Invalid value for parameter `limit` when calling `list_futures_orders`, must be a value less than or equal to `1000`"
) # noqa: E501
if (
self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 1
): # noqa: E501
raise ApiValueError(
"Invalid value for parameter `limit` when calling `list_futures_orders`, must be a value greater than or equal to `1`"
) # noqa: E501
if (
self.api_client.client_side_validation and 'offset' in local_var_params and local_var_params['offset'] < 0
): # noqa: E501
raise ApiValueError(
"Invalid value for parameter `offset` when calling `list_futures_orders`, must be a value greater than or equal to `0`"
) # noqa: E501
collection_formats = {}
path_params = {}
if 'settle' in local_var_params:
path_params['settle'] = local_var_params['settle'] # noqa: E501
query_params = []
if 'contract' in local_var_params and local_var_params['contract'] is not None: # noqa: E501
query_params.append(('contract', local_var_params['contract'])) # noqa: E501
if 'status' in local_var_params and local_var_params['status'] is not None: # noqa: E501
query_params.append(('status', local_var_params['status'])) # noqa: E501
if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501
query_params.append(('limit', local_var_params['limit'])) # noqa: E501
if 'offset' in local_var_params and local_var_params['offset'] is not None: # noqa: E501
query_params.append(('offset', local_var_params['offset'])) # noqa: E501
if 'last_id' in local_var_params and local_var_params['last_id'] is not None: # noqa: E501
query_params.append(('last_id', local_var_params['last_id'])) # noqa: E501
if 'count_total' in local_var_params and local_var_params['count_total'] is not None: # noqa: E501
query_params.append(('count_total', local_var_params['count_total'])) # noqa: E501
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['apiv4'] # noqa: E501
return self.api_client.call_api(
'/futures/{settle}/orders',
'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='list[FuturesOrder]', # noqa: E501
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats,
)
def create_futures_order(self, settle, futures_order, **kwargs): # noqa: E501
"""Create a futures order # noqa: E501
Zero-fill order cannot be retrieved for 60 seconds after cancellation # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.create_futures_order(settle, futures_order, async_req=True)
>>> result = thread.get()
:param bool async_req: execute request asynchronously
:param str settle: Settle currency (required)
:param FuturesOrder futures_order: (required)
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:rtype: gate_api.FuturesOrder
:return: If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
return self.create_futures_order_with_http_info(settle, futures_order, **kwargs) # noqa: E501
def create_futures_order_with_http_info(self, settle, futures_order, **kwargs): # noqa: E501
"""Create a futures order # noqa: E501
Zero-fill order cannot be retrieved for 60 seconds after cancellation # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.create_futures_order_with_http_info(settle, futures_order, async_req=True)
>>> result = thread.get()
:param bool async_req: execute request asynchronously
:param str settle: Settle currency (required)
:param FuturesOrder futures_order: (required)
:param _return_http_data_only: response data without head status code
and headers
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:rtype: tuple(gate_api.FuturesOrder, status_code(int), headers(HTTPHeaderDict))
:return: If the method is called asynchronously,
returns the request thread.
"""
local_var_params = locals()
all_params = ['settle', 'futures_order']
all_params.extend(['async_req', '_return_http_data_only', '_preload_content', '_request_timeout'])
for k, v in six.iteritems(local_var_params['kwargs']):
if k not in all_params:
raise ApiTypeError("Got an unexpected keyword argument '%s'" " to method create_futures_order" % k)
local_var_params[k] = v
del local_var_params['kwargs']
# verify the required parameter 'settle' is set
if self.api_client.client_side_validation and (
'settle' not in local_var_params or local_var_params['settle'] is None # noqa: E501
): # noqa: E501
raise ApiValueError(
"Missing the required parameter `settle` when calling `create_futures_order`"
) # noqa: E501
# verify the required parameter 'futures_order' is set
if self.api_client.client_side_validation and (
'futures_order' not in local_var_params or local_var_params['futures_order'] is None # noqa: E501
): # noqa: E501
raise ApiValueError(
"Missing the required parameter `futures_order` when calling `create_futures_order`"
) # noqa: E501
collection_formats = {}
path_params = {}
if 'settle' in local_var_params:
path_params['settle'] = local_var_params['settle'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
if 'futures_order' in local_var_params:
body_params = local_var_params['futures_order']
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(['application/json']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']
) # noqa: E501
# Authentication setting
auth_settings = ['apiv4'] # noqa: E501
return self.api_client.call_api(
'/futures/{settle}/orders',
'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='FuturesOrder', # noqa: E501
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats,
)
def cancel_futures_orders(self, settle, contract, **kwargs): # noqa: E501
"""Cancel all `open` orders matched # noqa: E501
Zero-fill order cannot be retrieved for 60 seconds after cancellation # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.cancel_futures_orders(settle, contract, async_req=True)
>>> result = thread.get()
:param bool async_req: execute request asynchronously
:param str settle: Settle currency (required)
:param str contract: Futures contract (required)
:param str side: All bids or asks. Both included if not specified
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:rtype: list[gate_api.FuturesOrder]
:return: If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
return self.cancel_futures_orders_with_http_info(settle, contract, **kwargs) # noqa: E501
def cancel_futures_orders_with_http_info(self, settle, contract, **kwargs): # noqa: E501
"""Cancel all `open` orders matched # noqa: E501
Zero-fill order cannot be retrieved for 60 seconds after cancellation # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.cancel_futures_orders_with_http_info(settle, contract, async_req=True)
>>> result = thread.get()
:param bool async_req: execute request asynchronously
:param str settle: Settle currency (required)
:param str contract: Futures contract (required)
:param str side: All bids or asks. Both included if not specified
:param _return_http_data_only: response data without head status code
and headers
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:rtype: tuple(list[gate_api.FuturesOrder], status_code(int), headers(HTTPHeaderDict))
:return: If the method is called asynchronously,
returns the request thread.
"""
local_var_params = locals()
all_params = ['settle', 'contract', 'side']
all_params.extend(['async_req', '_return_http_data_only', '_preload_content', '_request_timeout'])
for k, v in six.iteritems(local_var_params['kwargs']):
if k not in all_params:
raise ApiTypeError("Got an unexpected keyword argument '%s'" " to method cancel_futures_orders" % k)
local_var_params[k] = v
del local_var_params['kwargs']
# verify the required parameter 'settle' is set
if self.api_client.client_side_validation and (
'settle' not in local_var_params or local_var_params['settle'] is None # noqa: E501
): # noqa: E501
raise ApiValueError(
"Missing the required parameter `settle` when calling `cancel_futures_orders`"
) # noqa: E501
# verify the required parameter 'contract' is set
if self.api_client.client_side_validation and (
'contract' not in local_var_params or local_var_params['contract'] is None # noqa: E501
): # noqa: E501
raise ApiValueError(
"Missing the required parameter `contract` when calling `cancel_futures_orders`"
) # noqa: E501
collection_formats = {}
path_params = {}
if 'settle' in local_var_params:
path_params['settle'] = local_var_params['settle'] # noqa: E501
query_params = []
if 'contract' in local_var_params and local_var_params['contract'] is not None: # noqa: E501
query_params.append(('contract', local_var_params['contract'])) # noqa: E501
if 'side' in local_var_params and local_var_params['side'] is not None: # noqa: E501
query_params.append(('side', local_var_params['side'])) # noqa: E501
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['apiv4'] # noqa: E501
return self.api_client.call_api(
'/futures/{settle}/orders',
'DELETE',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='list[FuturesOrder]', # noqa: E501
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats,
)
def get_futures_order(self, settle, order_id, **kwargs): # noqa: E501
"""Get a single order # noqa: E501
Zero-fill order cannot be retrieved for 60 seconds after cancellation # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_futures_order(settle, order_id, async_req=True)
>>> result = thread.get()
:param bool async_req: execute request asynchronously
:param str settle: Settle currency (required)
:param str order_id: Order ID returned, or user custom ID(i.e., `text` field). Operations based on custom ID are accepted only in the first 30 minutes after order creation.After that, only order ID is accepted. (required)
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:rtype: gate_api.FuturesOrder
:return: If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
return self.get_futures_order_with_http_info(settle, order_id, **kwargs) # noqa: E501
def get_futures_order_with_http_info(self, settle, order_id, **kwargs): # noqa: E501
"""Get a single order # noqa: E501
Zero-fill order cannot be retrieved for 60 seconds after cancellation # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_futures_order_with_http_info(settle, order_id, async_req=True)
>>> result = thread.get()
:param bool async_req: execute request asynchronously
:param str settle: Settle currency (required)
:param str order_id: Order ID returned, or user custom ID(i.e., `text` field). Operations based on custom ID are accepted only in the first 30 minutes after order creation.After that, only order ID is accepted. (required)
:param _return_http_data_only: response data without head status code
and headers
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:rtype: tuple(gate_api.FuturesOrder, status_code(int), headers(HTTPHeaderDict))
:return: If the method is called asynchronously,
returns the request thread.
"""
local_var_params = locals()
all_params = ['settle', 'order_id']
all_params.extend(['async_req', '_return_http_data_only', '_preload_content', '_request_timeout'])
for k, v in six.iteritems(local_var_params['kwargs']):
if k not in all_params:
raise ApiTypeError("Got an unexpected keyword argument '%s'" " to method get_futures_order" % k)
local_var_params[k] = v
del local_var_params['kwargs']
# verify the required parameter 'settle' is set
if self.api_client.client_side_validation and (
'settle' not in local_var_params or local_var_params['settle'] is None # noqa: E501
): # noqa: E501
raise ApiValueError(
"Missing the required parameter `settle` when calling `get_futures_order`"
) # noqa: E501
# verify the required parameter 'order_id' is set
if self.api_client.client_side_validation and (
'order_id' not in local_var_params or local_var_params['order_id'] is None # noqa: E501
): # noqa: E501
raise ApiValueError(
"Missing the required parameter `order_id` when calling `get_futures_order`"
) # noqa: E501
collection_formats = {}
path_params = {}
if 'settle' in local_var_params:
path_params['settle'] = local_var_params['settle'] # noqa: E501
if 'order_id' in local_var_params:
path_params['order_id'] = local_var_params['order_id'] # noqa: E501
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']) # noqa: E501
# Authentication setting
auth_settings = ['apiv4'] # noqa: E501
return self.api_client.call_api(
'/futures/{settle}/orders/{order_id}',
'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='FuturesOrder', # noqa: E501
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats,
)
def cancel_futures_order(self, settle, order_id, **kwargs): # noqa: E501
"""Cancel a single order # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.cancel_futures_order(settle, order_id, async_req=True)
>>> result = thread.get()
:param bool async_req: execute request asynchronously
:param str settle: Settle currency (required)
:param str order_id: Order ID returned, or user custom ID(i.e., `text` field). Operations based on custom ID are accepted only in the first 30 minutes after order creation.After that, only order ID is accepted. (required)
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:rtype: gate_api.FuturesOrder
:return: If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
return self.cancel_futures_order_with_http_info(settle, order_id, **kwargs) # noqa: E501
def cancel_futures_order_with_http_info(self, settle, order_id, **kwargs): # noqa: E501
"""Cancel a single order # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.cancel_futures_order_with_http_info(settle, order_id, async_req=True)
>>> result = thread.get()
:param bool async_req: execute request asynchronously
:param str settle: Settle currency (required)
:param str order_id: Order ID returned, or user custom ID(i.e., `text` field). Operations based on custom ID are accepted only in the first 30 minutes after order creation.After that, only order ID is accepted. (required)
:param _return_http_data_only: response data without head status code
and headers
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:rtype: tuple(gate_api.FuturesOrder, status_code(int), headers(HTTPHeaderDict))
:return: If the method is called asynchronously,
returns the request thread.
"""
local_var_params = locals()
all_params = ['settle', 'order_id']
all_params.extend(['async_req', '_return_http_data_only', '_preload_content', '_request_timeout'])
for k, v in six.iteritems(local_var_params['kwargs']):
if k not in all_params:
raise ApiTypeError("Got an unexpected keyword argument '%s'" " to method cancel_futures_order" % k)
local_var_params[k] = v
del local_var_params['kwargs']
# verify the required parameter 'settle' is set
if self.api_client.client_side_validation and (
'settle' not in local_var_params or local_var_params['settle'] is None # noqa: E501
): # noqa: E501
raise ApiValueError(
"Missing the required parameter `settle` when calling `cancel_futures_order`"
) # noqa: E501
# verify the required parameter 'order_id' is set
if self.api_client.client_side_validation and (
'order_id' not in local_var_params or local_var_params['order_id'] is None # noqa: E501
): # noqa: E501
raise ApiValueError(
"Missing the required parameter `order_id` when calling `cancel_futures_order`"
) # noqa: E501
collection_formats = {}
path_params = {}
if 'settle' in local_var_params:
path_params['settle'] = local_var_params['settle'] # noqa: E501
if 'order_id' in local_var_params:
path_params['order_id'] = local_var_params['order_id'] # noqa: E501
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']) # noqa: E501
# Authentication setting
auth_settings = ['apiv4'] # noqa: E501
return self.api_client.call_api(
'/futures/{settle}/orders/{order_id}',
'DELETE',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='FuturesOrder', # noqa: E501
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats,
)
def get_my_trades(self, settle, **kwargs): # noqa: E501
"""List personal trading history # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_my_trades(settle, async_req=True)
>>> result = thread.get()
:param bool async_req: execute request asynchronously
:param str settle: Settle currency (required)
:param str contract: Futures contract, return related data only if specified
:param int order: Futures order ID, return related data only if specified
:param int limit: Maximum number of records to be returned in a single list
:param int offset: List offset, starting from 0
:param str last_id: Specify list staring point using the `id` of last record in previous list-query results
:param int count_total: Whether to return total number matched. Default to 0(no return)
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:rtype: list[gate_api.MyFuturesTrade]
:return: If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
return self.get_my_trades_with_http_info(settle, **kwargs) # noqa: E501
def get_my_trades_with_http_info(self, settle, **kwargs): # noqa: E501
"""List personal trading history # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_my_trades_with_http_info(settle, async_req=True)
>>> result = thread.get()
:param bool async_req: execute request asynchronously
:param str settle: Settle currency (required)
:param str contract: Futures contract, return related data only if specified
:param int order: Futures order ID, return related data only if specified
:param int limit: Maximum number of records to be returned in a single list
:param int offset: List offset, starting from 0
:param str last_id: Specify list staring point using the `id` of last record in previous list-query results
:param int count_total: Whether to return total number matched. Default to 0(no return)
:param _return_http_data_only: response data without head status code
and headers
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:rtype: tuple(list[gate_api.MyFuturesTrade], status_code(int), headers(HTTPHeaderDict))
:return: If the method is called asynchronously,
returns the request thread.
"""
local_var_params = locals()
all_params = ['settle', 'contract', 'order', 'limit', 'offset', 'last_id', 'count_total']
all_params.extend(['async_req', '_return_http_data_only', '_preload_content', '_request_timeout'])
for k, v in six.iteritems(local_var_params['kwargs']):
if k not in all_params:
raise ApiTypeError("Got an unexpected keyword argument '%s'" " to method get_my_trades" % k)
local_var_params[k] = v
del local_var_params['kwargs']
# verify the required parameter 'settle' is set
if self.api_client.client_side_validation and (
'settle' not in local_var_params or local_var_params['settle'] is None # noqa: E501
): # noqa: E501
raise ApiValueError("Missing the required parameter `settle` when calling `get_my_trades`") # noqa: E501
if (
self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] > 1000
): # noqa: E501
raise ApiValueError(
"Invalid value for parameter `limit` when calling `get_my_trades`, must be a value less than or equal to `1000`"
) # noqa: E501
if (
self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 1
): # noqa: E501
raise ApiValueError(
"Invalid value for parameter `limit` when calling `get_my_trades`, must be a value greater than or equal to `1`"
) # noqa: E501
if (
self.api_client.client_side_validation and 'offset' in local_var_params and local_var_params['offset'] < 0
): # noqa: E501
raise ApiValueError(
"Invalid value for parameter `offset` when calling `get_my_trades`, must be a value greater than or equal to `0`"
) # noqa: E501
collection_formats = {}
path_params = {}
if 'settle' in local_var_params:
path_params['settle'] = local_var_params['settle'] # noqa: E501
query_params = []
if 'contract' in local_var_params and local_var_params['contract'] is not None: # noqa: E501
query_params.append(('contract', local_var_params['contract'])) # noqa: E501
if 'order' in local_var_params and local_var_params['order'] is not None: # noqa: E501
query_params.append(('order', local_var_params['order'])) # noqa: E501
if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501
query_params.append(('limit', local_var_params['limit'])) # noqa: E501
if 'offset' in local_var_params and local_var_params['offset'] is not None: # noqa: E501
query_params.append(('offset', local_var_params['offset'])) # noqa: E501
if 'last_id' in local_var_params and local_var_params['last_id'] is not None: # noqa: E501
query_params.append(('last_id', local_var_params['last_id'])) # noqa: E501
if 'count_total' in local_var_params and local_var_params['count_total'] is not None: # noqa: E501
query_params.append(('count_total', local_var_params['count_total'])) # noqa: E501
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['apiv4'] # noqa: E501
return self.api_client.call_api(
'/futures/{settle}/my_trades',
'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='list[MyFuturesTrade]', # noqa: E501
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats,
)
def list_position_close(self, settle, **kwargs): # noqa: E501
"""List position close history # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.list_position_close(settle, async_req=True)
>>> result = thread.get()
:param bool async_req: execute request asynchronously
:param str settle: Settle currency (required)
:param str contract: Futures contract, return related data only if specified
:param int limit: Maximum number of records to be returned in a single list
:param int offset: List offset, starting from 0
:param int _from: Start timestamp
:param int to: End timestamp
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:rtype: list[gate_api.PositionClose]
:return: If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
return self.list_position_close_with_http_info(settle, **kwargs) # noqa: E501
def list_position_close_with_http_info(self, settle, **kwargs): # noqa: E501
"""List position close history # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.list_position_close_with_http_info(settle, async_req=True)
>>> result = thread.get()
:param bool async_req: execute request asynchronously
:param str settle: Settle currency (required)
:param str contract: Futures contract, return related data only if specified
:param int limit: Maximum number of records to be returned in a single list
:param int offset: List offset, starting from 0
:param int _from: Start timestamp
:param int to: End timestamp
:param _return_http_data_only: response data without head status code
and headers
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:rtype: tuple(list[gate_api.PositionClose], status_code(int), headers(HTTPHeaderDict))
:return: If the method is called asynchronously,
returns the request thread.
"""
local_var_params = locals()
all_params = ['settle', 'contract', 'limit', 'offset', '_from', 'to']
all_params.extend(['async_req', '_return_http_data_only', '_preload_content', '_request_timeout'])
for k, v in six.iteritems(local_var_params['kwargs']):
if k not in all_params:
raise ApiTypeError("Got an unexpected keyword argument '%s'" " to method list_position_close" % k)
local_var_params[k] = v
del local_var_params['kwargs']
# verify the required parameter 'settle' is set
if self.api_client.client_side_validation and (
'settle' not in local_var_params or local_var_params['settle'] is None # noqa: E501
): # noqa: E501
raise ApiValueError(
"Missing the required parameter `settle` when calling `list_position_close`"
) # noqa: E501
if (
self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] > 1000
): # noqa: E501
raise ApiValueError(
"Invalid value for parameter `limit` when calling `list_position_close`, must be a value less than or equal to `1000`"
) # noqa: E501
if (
self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 1
): # noqa: E501
raise ApiValueError(
"Invalid value for parameter `limit` when calling `list_position_close`, must be a value greater than or equal to `1`"
) # noqa: E501
if (
self.api_client.client_side_validation and 'offset' in local_var_params and local_var_params['offset'] < 0
): # noqa: E501
raise ApiValueError(
"Invalid value for parameter `offset` when calling `list_position_close`, must be a value greater than or equal to `0`"
) # noqa: E501
collection_formats = {}
path_params = {}
if 'settle' in local_var_params:
path_params['settle'] = local_var_params['settle'] # noqa: E501
query_params = []
if 'contract' in local_var_params and local_var_params['contract'] is not None: # noqa: E501
query_params.append(('contract', local_var_params['contract'])) # noqa: E501
if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501
query_params.append(('limit', local_var_params['limit'])) # noqa: E501
if 'offset' in local_var_params and local_var_params['offset'] is not None: # noqa: E501
query_params.append(('offset', local_var_params['offset'])) # noqa: E501
if '_from' in local_var_params and local_var_params['_from'] is not None: # noqa: E501
query_params.append(('from', local_var_params['_from'])) # noqa: E501
if 'to' in local_var_params and local_var_params['to'] is not None: # noqa: E501
query_params.append(('to', local_var_params['to'])) # noqa: E501
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['apiv4'] # noqa: E501
return self.api_client.call_api(
'/futures/{settle}/position_close',
'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='list[PositionClose]', # noqa: E501
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats,
)
def list_liquidates(self, settle, **kwargs): # noqa: E501
"""List liquidation history # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.list_liquidates(settle, async_req=True)
>>> result = thread.get()
:param bool async_req: execute request asynchronously
:param str settle: Settle currency (required)
:param str contract: Futures contract, return related data only if specified
:param int limit: Maximum number of records to be returned in a single list
:param int at: Specify a liquidation timestamp
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:rtype: list[gate_api.FuturesLiquidate]
:return: If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
return self.list_liquidates_with_http_info(settle, **kwargs) # noqa: E501
def list_liquidates_with_http_info(self, settle, **kwargs): # noqa: E501
"""List liquidation history # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.list_liquidates_with_http_info(settle, async_req=True)
>>> result = thread.get()
:param bool async_req: execute request asynchronously
:param str settle: Settle currency (required)
:param str contract: Futures contract, return related data only if specified
:param int limit: Maximum number of records to be returned in a single list
:param int at: Specify a liquidation timestamp
:param _return_http_data_only: response data without head status code
and headers
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:rtype: tuple(list[gate_api.FuturesLiquidate], status_code(int), headers(HTTPHeaderDict))
:return: If the method is called asynchronously,
returns the request thread.
"""
local_var_params = locals()
all_params = ['settle', 'contract', 'limit', 'at']
all_params.extend(['async_req', '_return_http_data_only', '_preload_content', '_request_timeout'])
for k, v in six.iteritems(local_var_params['kwargs']):
if k not in all_params:
raise ApiTypeError("Got an unexpected keyword argument '%s'" " to method list_liquidates" % k)
local_var_params[k] = v
del local_var_params['kwargs']
# verify the required parameter 'settle' is set
if self.api_client.client_side_validation and (
'settle' not in local_var_params or local_var_params['settle'] is None # noqa: E501
): # noqa: E501
raise ApiValueError("Missing the required parameter `settle` when calling `list_liquidates`") # noqa: E501
if (
self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] > 1000
): # noqa: E501
raise ApiValueError(
"Invalid value for parameter `limit` when calling `list_liquidates`, must be a value less than or equal to `1000`"
) # noqa: E501
if (
self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 1
): # noqa: E501
raise ApiValueError(
"Invalid value for parameter `limit` when calling `list_liquidates`, must be a value greater than or equal to `1`"
) # noqa: E501
collection_formats = {}
path_params = {}
if 'settle' in local_var_params:
path_params['settle'] = local_var_params['settle'] # noqa: E501
query_params = []
if 'contract' in local_var_params and local_var_params['contract'] is not None: # noqa: E501
query_params.append(('contract', local_var_params['contract'])) # noqa: E501
if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501
query_params.append(('limit', local_var_params['limit'])) # noqa: E501
if 'at' in local_var_params and local_var_params['at'] is not None: # noqa: E501
query_params.append(('at', local_var_params['at'])) # noqa: E501
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['apiv4'] # noqa: E501
return self.api_client.call_api(
'/futures/{settle}/liquidates',
'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='list[FuturesLiquidate]', # noqa: E501
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats,
)
def list_price_triggered_orders(self, settle, status, **kwargs): # noqa: E501
"""List all auto orders # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.list_price_triggered_orders(settle, status, async_req=True)
>>> result = thread.get()
:param bool async_req: execute request asynchronously
:param str settle: Settle currency (required)
:param str status: Only list the orders with this status (required)
:param str contract: Futures contract, return related data only if specified
:param int limit: Maximum number of records to be returned in a single list
:param int offset: List offset, starting from 0
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:rtype: list[gate_api.FuturesPriceTriggeredOrder]
:return: If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
return self.list_price_triggered_orders_with_http_info(settle, status, **kwargs) # noqa: E501
def list_price_triggered_orders_with_http_info(self, settle, status, **kwargs): # noqa: E501
"""List all auto orders # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.list_price_triggered_orders_with_http_info(settle, status, async_req=True)
>>> result = thread.get()
:param bool async_req: execute request asynchronously
:param str settle: Settle currency (required)
:param str status: Only list the orders with this status (required)
:param str contract: Futures contract, return related data only if specified
:param int limit: Maximum number of records to be returned in a single list
:param int offset: List offset, starting from 0
:param _return_http_data_only: response data without head status code
and headers
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:rtype: tuple(list[gate_api.FuturesPriceTriggeredOrder], status_code(int), headers(HTTPHeaderDict))
:return: If the method is called asynchronously,
returns the request thread.
"""
local_var_params = locals()
all_params = ['settle', 'status', 'contract', 'limit', 'offset']
all_params.extend(['async_req', '_return_http_data_only', '_preload_content', '_request_timeout'])
for k, v in six.iteritems(local_var_params['kwargs']):
if k not in all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'" " to method list_price_triggered_orders" % k
)
local_var_params[k] = v
del local_var_params['kwargs']
# verify the required parameter 'settle' is set
if self.api_client.client_side_validation and (
'settle' not in local_var_params or local_var_params['settle'] is None # noqa: E501
): # noqa: E501
raise ApiValueError(
"Missing the required parameter `settle` when calling `list_price_triggered_orders`"
) # noqa: E501
# verify the required parameter 'status' is set
if self.api_client.client_side_validation and (
'status' not in local_var_params or local_var_params['status'] is None # noqa: E501
): # noqa: E501
raise ApiValueError(
"Missing the required parameter `status` when calling `list_price_triggered_orders`"
) # noqa: E501
if (
self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] > 1000
): # noqa: E501
raise ApiValueError(
"Invalid value for parameter `limit` when calling `list_price_triggered_orders`, must be a value less than or equal to `1000`"
) # noqa: E501
if (
self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 1
): # noqa: E501
raise ApiValueError(
"Invalid value for parameter `limit` when calling `list_price_triggered_orders`, must be a value greater than or equal to `1`"
) # noqa: E501
if (
self.api_client.client_side_validation and 'offset' in local_var_params and local_var_params['offset'] < 0
): # noqa: E501
raise ApiValueError(
"Invalid value for parameter `offset` when calling `list_price_triggered_orders`, must be a value greater than or equal to `0`"
) # noqa: E501
collection_formats = {}
path_params = {}
if 'settle' in local_var_params:
path_params['settle'] = local_var_params['settle'] # noqa: E501
query_params = []
if 'status' in local_var_params and local_var_params['status'] is not None: # noqa: E501
query_params.append(('status', local_var_params['status'])) # noqa: E501
if 'contract' in local_var_params and local_var_params['contract'] is not None: # noqa: E501
query_params.append(('contract', local_var_params['contract'])) # noqa: E501
if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501
query_params.append(('limit', local_var_params['limit'])) # noqa: E501
if 'offset' in local_var_params and local_var_params['offset'] is not None: # noqa: E501
query_params.append(('offset', local_var_params['offset'])) # noqa: E501
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['apiv4'] # noqa: E501
return self.api_client.call_api(
'/futures/{settle}/price_orders',
'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='list[FuturesPriceTriggeredOrder]', # noqa: E501
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats,
)
def create_price_triggered_order(self, settle, futures_price_triggered_order, **kwargs): # noqa: E501
"""Create a price-triggered order # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.create_price_triggered_order(settle, futures_price_triggered_order, async_req=True)
>>> result = thread.get()
:param bool async_req: execute request asynchronously
:param str settle: Settle currency (required)
:param FuturesPriceTriggeredOrder futures_price_triggered_order: (required)
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:rtype: gate_api.TriggerOrderResponse
:return: If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
return self.create_price_triggered_order_with_http_info(
settle, futures_price_triggered_order, **kwargs
) # noqa: E501
def create_price_triggered_order_with_http_info(
self, settle, futures_price_triggered_order, **kwargs
): # noqa: E501
"""Create a price-triggered order # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.create_price_triggered_order_with_http_info(settle, futures_price_triggered_order, async_req=True)
>>> result = thread.get()
:param bool async_req: execute request asynchronously
:param str settle: Settle currency (required)
:param FuturesPriceTriggeredOrder futures_price_triggered_order: (required)
:param _return_http_data_only: response data without head status code
and headers
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:rtype: tuple(gate_api.TriggerOrderResponse, status_code(int), headers(HTTPHeaderDict))
:return: If the method is called asynchronously,
returns the request thread.
"""
local_var_params = locals()
all_params = ['settle', 'futures_price_triggered_order']
all_params.extend(['async_req', '_return_http_data_only', '_preload_content', '_request_timeout'])
for k, v in six.iteritems(local_var_params['kwargs']):
if k not in all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'" " to method create_price_triggered_order" % k
)
local_var_params[k] = v
del local_var_params['kwargs']
# verify the required parameter 'settle' is set
if self.api_client.client_side_validation and (
'settle' not in local_var_params or local_var_params['settle'] is None # noqa: E501
): # noqa: E501
raise ApiValueError(
"Missing the required parameter `settle` when calling `create_price_triggered_order`"
) # noqa: E501
# verify the required parameter 'futures_price_triggered_order' is set
if self.api_client.client_side_validation and (
'futures_price_triggered_order' not in local_var_params
or local_var_params['futures_price_triggered_order'] is None # noqa: E501
): # noqa: E501
raise ApiValueError(
"Missing the required parameter `futures_price_triggered_order` when calling `create_price_triggered_order`"
) # noqa: E501
collection_formats = {}
path_params = {}
if 'settle' in local_var_params:
path_params['settle'] = local_var_params['settle'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
if 'futures_price_triggered_order' in local_var_params:
body_params = local_var_params['futures_price_triggered_order']
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(['application/json']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']
) # noqa: E501
# Authentication setting
auth_settings = ['apiv4'] # noqa: E501
return self.api_client.call_api(
'/futures/{settle}/price_orders',
'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='TriggerOrderResponse', # noqa: E501
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats,
)
def cancel_price_triggered_order_list(self, settle, contract, **kwargs): # noqa: E501
"""Cancel all open orders # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.cancel_price_triggered_order_list(settle, contract, async_req=True)
>>> result = thread.get()
:param bool async_req: execute request asynchronously
:param str settle: Settle currency (required)
:param str contract: Futures contract (required)
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:rtype: list[gate_api.FuturesPriceTriggeredOrder]
:return: If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
return self.cancel_price_triggered_order_list_with_http_info(settle, contract, **kwargs) # noqa: E501
def cancel_price_triggered_order_list_with_http_info(self, settle, contract, **kwargs): # noqa: E501
"""Cancel all open orders # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.cancel_price_triggered_order_list_with_http_info(settle, contract, async_req=True)
>>> result = thread.get()
:param bool async_req: execute request asynchronously
:param str settle: Settle currency (required)
:param str contract: Futures contract (required)
:param _return_http_data_only: response data without head status code
and headers
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:rtype: tuple(list[gate_api.FuturesPriceTriggeredOrder], status_code(int), headers(HTTPHeaderDict))
:return: If the method is called asynchronously,
returns the request thread.
"""
local_var_params = locals()
all_params = ['settle', 'contract']
all_params.extend(['async_req', '_return_http_data_only', '_preload_content', '_request_timeout'])
for k, v in six.iteritems(local_var_params['kwargs']):
if k not in all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'" " to method cancel_price_triggered_order_list" % k
)
local_var_params[k] = v
del local_var_params['kwargs']
# verify the required parameter 'settle' is set
if self.api_client.client_side_validation and (
'settle' not in local_var_params or local_var_params['settle'] is None # noqa: E501
): # noqa: E501
raise ApiValueError(
"Missing the required parameter `settle` when calling `cancel_price_triggered_order_list`"
) # noqa: E501
# verify the required parameter 'contract' is set
if self.api_client.client_side_validation and (
'contract' not in local_var_params or local_var_params['contract'] is None # noqa: E501
): # noqa: E501
raise ApiValueError(
"Missing the required parameter `contract` when calling `cancel_price_triggered_order_list`"
) # noqa: E501
collection_formats = {}
path_params = {}
if 'settle' in local_var_params:
path_params['settle'] = local_var_params['settle'] # noqa: E501
query_params = []
if 'contract' in local_var_params and local_var_params['contract'] is not None: # noqa: E501
query_params.append(('contract', local_var_params['contract'])) # noqa: E501
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['apiv4'] # noqa: E501
return self.api_client.call_api(
'/futures/{settle}/price_orders',
'DELETE',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='list[FuturesPriceTriggeredOrder]', # noqa: E501
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats,
)
def get_price_triggered_order(self, settle, order_id, **kwargs): # noqa: E501
"""Get a single order # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_price_triggered_order(settle, order_id, async_req=True)
>>> result = thread.get()
:param bool async_req: execute request asynchronously
:param str settle: Settle currency (required)
:param str order_id: Retrieve the data of the order with the specified ID (required)
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:rtype: gate_api.FuturesPriceTriggeredOrder
:return: If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
return self.get_price_triggered_order_with_http_info(settle, order_id, **kwargs) # noqa: E501
def get_price_triggered_order_with_http_info(self, settle, order_id, **kwargs): # noqa: E501
"""Get a single order # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_price_triggered_order_with_http_info(settle, order_id, async_req=True)
>>> result = thread.get()
:param bool async_req: execute request asynchronously
:param str settle: Settle currency (required)
:param str order_id: Retrieve the data of the order with the specified ID (required)
:param _return_http_data_only: response data without head status code
and headers
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:rtype: tuple(gate_api.FuturesPriceTriggeredOrder, status_code(int), headers(HTTPHeaderDict))
:return: If the method is called asynchronously,
returns the request thread.
"""
local_var_params = locals()
all_params = ['settle', 'order_id']
all_params.extend(['async_req', '_return_http_data_only', '_preload_content', '_request_timeout'])
for k, v in six.iteritems(local_var_params['kwargs']):
if k not in all_params:
raise ApiTypeError("Got an unexpected keyword argument '%s'" " to method get_price_triggered_order" % k)
local_var_params[k] = v
del local_var_params['kwargs']
# verify the required parameter 'settle' is set
if self.api_client.client_side_validation and (
'settle' not in local_var_params or local_var_params['settle'] is None # noqa: E501
): # noqa: E501
raise ApiValueError(
"Missing the required parameter `settle` when calling `get_price_triggered_order`"
) # noqa: E501
# verify the required parameter 'order_id' is set
if self.api_client.client_side_validation and (
'order_id' not in local_var_params or local_var_params['order_id'] is None # noqa: E501
): # noqa: E501
raise ApiValueError(
"Missing the required parameter `order_id` when calling `get_price_triggered_order`"
) # noqa: E501
collection_formats = {}
path_params = {}
if 'settle' in local_var_params:
path_params['settle'] = local_var_params['settle'] # noqa: E501
if 'order_id' in local_var_params:
path_params['order_id'] = local_var_params['order_id'] # noqa: E501
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']) # noqa: E501
# Authentication setting
auth_settings = ['apiv4'] # noqa: E501
return self.api_client.call_api(
'/futures/{settle}/price_orders/{order_id}',
'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='FuturesPriceTriggeredOrder', # noqa: E501
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats,
)
def cancel_price_triggered_order(self, settle, order_id, **kwargs): # noqa: E501
"""Cancel a single order # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.cancel_price_triggered_order(settle, order_id, async_req=True)
>>> result = thread.get()
:param bool async_req: execute request asynchronously
:param str settle: Settle currency (required)
:param str order_id: Retrieve the data of the order with the specified ID (required)
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:rtype: gate_api.FuturesPriceTriggeredOrder
:return: If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
return self.cancel_price_triggered_order_with_http_info(settle, order_id, **kwargs) # noqa: E501
def cancel_price_triggered_order_with_http_info(self, settle, order_id, **kwargs): # noqa: E501
"""Cancel a single order # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.cancel_price_triggered_order_with_http_info(settle, order_id, async_req=True)
>>> result = thread.get()
:param bool async_req: execute request asynchronously
:param str settle: Settle currency (required)
:param str order_id: Retrieve the data of the order with the specified ID (required)
:param _return_http_data_only: response data without head status code
and headers
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:rtype: tuple(gate_api.FuturesPriceTriggeredOrder, status_code(int), headers(HTTPHeaderDict))
:return: If the method is called asynchronously,
returns the request thread.
"""
local_var_params = locals()
all_params = ['settle', 'order_id']
all_params.extend(['async_req', '_return_http_data_only', '_preload_content', '_request_timeout'])
for k, v in six.iteritems(local_var_params['kwargs']):
if k not in all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'" " to method cancel_price_triggered_order" % k
)
local_var_params[k] = v
del local_var_params['kwargs']
# verify the required parameter 'settle' is set
if self.api_client.client_side_validation and (
'settle' not in local_var_params or local_var_params['settle'] is None # noqa: E501
): # noqa: E501
raise ApiValueError(
"Missing the required parameter `settle` when calling `cancel_price_triggered_order`"
) # noqa: E501
# verify the required parameter 'order_id' is set
if self.api_client.client_side_validation and (
'order_id' not in local_var_params or local_var_params['order_id'] is None # noqa: E501
): # noqa: E501
raise ApiValueError(
"Missing the required parameter `order_id` when calling `cancel_price_triggered_order`"
) # noqa: E501
collection_formats = {}
path_params = {}
if 'settle' in local_var_params:
path_params['settle'] = local_var_params['settle'] # noqa: E501
if 'order_id' in local_var_params:
path_params['order_id'] = local_var_params['order_id'] # noqa: E501
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']) # noqa: E501
# Authentication setting
auth_settings = ['apiv4'] # noqa: E501
return self.api_client.call_api(
'/futures/{settle}/price_orders/{order_id}',
'DELETE',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='FuturesPriceTriggeredOrder', # noqa: E501
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats,
)
| 50.619861 | 344 | 0.62156 | 26,417 | 225,309 | 5.063747 | 0.014347 | 0.050355 | 0.080796 | 0.025477 | 0.985408 | 0.983262 | 0.980564 | 0.977289 | 0.972587 | 0.963975 | 0 | 0.016727 | 0.300569 | 225,309 | 4,450 | 345 | 50.631236 | 0.832126 | 0.43743 | 0 | 0.779459 | 0 | 0.013297 | 0.217048 | 0.059139 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032554 | false | 0 | 0.002293 | 0 | 0.0674 | 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 |
5bdf16c8c5dac613d61080dd499be36f479ea2ef | 118 | py | Python | relawanvaksin/admin.py | rafiatha09/berlapan | 31fc032fbbab6d67b6c20db2eb5626d844e47ae0 | [
"Unlicense"
] | null | null | null | relawanvaksin/admin.py | rafiatha09/berlapan | 31fc032fbbab6d67b6c20db2eb5626d844e47ae0 | [
"Unlicense"
] | null | null | null | relawanvaksin/admin.py | rafiatha09/berlapan | 31fc032fbbab6d67b6c20db2eb5626d844e47ae0 | [
"Unlicense"
] | 1 | 2021-10-22T00:32:17.000Z | 2021-10-22T00:32:17.000Z | from django.contrib import admin
from .models import Model_relawan_vaksin
admin.site.register(Model_relawan_vaksin)
| 19.666667 | 41 | 0.855932 | 17 | 118 | 5.705882 | 0.647059 | 0.247423 | 0.371134 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.09322 | 118 | 5 | 42 | 23.6 | 0.906542 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 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 |
7527d93e54a9d14a2c94091e6dd58fd6b2877e48 | 5,182 | py | Python | ve/unit/test_random_dist.py | aneels3/pyvsc | 692fa2baa9cc0251411b3a8ace2854b7e65c288a | [
"Apache-2.0"
] | null | null | null | ve/unit/test_random_dist.py | aneels3/pyvsc | 692fa2baa9cc0251411b3a8ace2854b7e65c288a | [
"Apache-2.0"
] | null | null | null | ve/unit/test_random_dist.py | aneels3/pyvsc | 692fa2baa9cc0251411b3a8ace2854b7e65c288a | [
"Apache-2.0"
] | null | null | null | '''
Created on Jun 1, 2020
@author: ballance
'''
from vsc_test_case import VscTestCase
import vsc
class TestRandomDist(VscTestCase):
def test_histogram(self):
@vsc.randobj
class fifo_driver_random(object):
def __init__(self):
self.L = 8
# random, unsigned (bit), and L-bits wide
self.rand_bit_1 = vsc.rand_bit_t(self.L)
self.rand_bit_1_hist = [0 for i in range(2**self.L)]
self.rand_bit_2 = vsc.rand_bit_t(self.L)
self.rand_bit_2_hist = [0 for i in range(2**self.L)]
self.rand_bit_3 = vsc.rand_bit_t(self.L)
self.rand_bit_3_hist = [0 for i in range(2**self.L)]
self.rand_bit_4 = vsc.rand_bit_t(self.L)
self.rand_bit_4_hist = [0 for i in range(2**self.L)]
@vsc.constraint
def get_random_ch(self):
self.rand_bit_1 < 10
self.rand_bit_2 < 30
self.rand_bit_3 < 100
self.rand_bit_4 < 200
rand_obj = fifo_driver_random()
NbLoops = 1000
for i in range(NbLoops):
rand_obj.randomize()
# random, unsigned (bit), and L-bits wide
self.assertLess(rand_obj.rand_bit_1, 10)
self.assertLess(rand_obj.rand_bit_2, 30)
self.assertLess(rand_obj.rand_bit_3, 100)
self.assertLess(rand_obj.rand_bit_4, 200)
rand_obj.rand_bit_1_hist[rand_obj.rand_bit_1] = rand_obj.rand_bit_1_hist[rand_obj.rand_bit_1] + 1
rand_obj.rand_bit_2_hist[rand_obj.rand_bit_2] = rand_obj.rand_bit_2_hist[rand_obj.rand_bit_2] + 1
rand_obj.rand_bit_3_hist[rand_obj.rand_bit_3] = rand_obj.rand_bit_3_hist[rand_obj.rand_bit_3] + 1
rand_obj.rand_bit_4_hist[rand_obj.rand_bit_4] = rand_obj.rand_bit_4_hist[rand_obj.rand_bit_4] + 1
print("\n\nself.rand_bit_1 histogram is:", rand_obj.rand_bit_1_hist[0:9])
print("\n\nself.rand_bit_2 histogram is:", rand_obj.rand_bit_2_hist[0:29])
print("\n\nself.rand_bit_3 histogram is:", rand_obj.rand_bit_3_hist[0:99])
print("\n\nself.rand_bit_4 histogram is:", rand_obj.rand_bit_4_hist[0:199])
def test_histogram_lt(self):
@vsc.randobj
class fifo_driver_random(object):
def __init__(self):
self.L = 8
# random, unsigned (bit), and L-bits wide
self.rand_bit_1 = vsc.rand_bit_t(self.L)
self.rand_bit_1_hist = [0 for i in range(2**self.L)]
self.rand_bit_2 = vsc.rand_bit_t(self.L)
self.rand_bit_2_hist = [0 for i in range(2**self.L)]
self.rand_bit_3 = vsc.rand_bit_t(self.L)
self.rand_bit_3_hist = [0 for i in range(2**self.L)]
self.rand_bit_4 = vsc.rand_bit_t(self.L)
self.rand_bit_4_hist = [0 for i in range(2**self.L)]
@vsc.constraint
def get_random_ch(self):
self.rand_bit_1 < 10
self.rand_bit_2 < 30
self.rand_bit_3 < 100
self.rand_bit_1 < self.rand_bit_2
rand_obj = fifo_driver_random()
NbLoops = 3000
for i in range(NbLoops):
rand_obj.randomize()
# random, unsigned (bit), and L-bits wide
self.assertLess(rand_obj.rand_bit_1, 10)
self.assertLess(rand_obj.rand_bit_2, 30)
self.assertLess(rand_obj.rand_bit_3, 100)
rand_obj.rand_bit_1_hist[rand_obj.rand_bit_1] = rand_obj.rand_bit_1_hist[rand_obj.rand_bit_1] + 1
rand_obj.rand_bit_2_hist[rand_obj.rand_bit_2] = rand_obj.rand_bit_2_hist[rand_obj.rand_bit_2] + 1
rand_obj.rand_bit_3_hist[rand_obj.rand_bit_3] = rand_obj.rand_bit_3_hist[rand_obj.rand_bit_3] + 1
rand_obj.rand_bit_4_hist[rand_obj.rand_bit_4] = rand_obj.rand_bit_4_hist[rand_obj.rand_bit_4] + 1
print("\n\nself.rand_bit_1 histogram is:", rand_obj.rand_bit_1_hist[0:9])
print("\n\nself.rand_bit_2 histogram is:", rand_obj.rand_bit_2_hist[1:29])
print("\n\nself.rand_bit_3 histogram is:", rand_obj.rand_bit_3_hist[0:99])
print("\n\nself.rand_bit_4 histogram is:", rand_obj.rand_bit_4_hist)
z_cnt=0
for v in rand_obj.rand_bit_1_hist[0:9]:
if v == 0:
z_cnt += 1
self.assertEqual(z_cnt, 0)
z_cnt=0
for v in rand_obj.rand_bit_2_hist[1:29]:
if v == 0:
z_cnt += 1
self.assertEqual(z_cnt, 0)
z_cnt=0
for v in rand_obj.rand_bit_3_hist[0:99]:
if v == 0:
z_cnt += 1
self.assertEqual(z_cnt, 0)
z_cnt=0
for v in rand_obj.rand_bit_4_hist:
if v == 0:
z_cnt += 1
# Know that it's likely to take ~2560 to hit all
self.assertLess(z_cnt, 8)
self.assertEqual(z_cnt, 0)
| 37.550725 | 109 | 0.575453 | 832 | 5,182 | 3.207933 | 0.094952 | 0.241289 | 0.210191 | 0.267516 | 0.922818 | 0.911577 | 0.870363 | 0.870363 | 0.861371 | 0.861371 | 0 | 0.059009 | 0.326322 | 5,182 | 137 | 110 | 37.824818 | 0.705529 | 0.048051 | 0 | 0.795699 | 0 | 0 | 0.053659 | 0 | 0 | 0 | 0 | 0 | 0.129032 | 1 | 0.064516 | false | 0 | 0.021505 | 0 | 0.11828 | 0.086022 | 0 | 0 | 0 | null | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 10 |
75435bf4fdb74d30d630dd0f762bb257ec26f564 | 8,202 | py | Python | nca47/api/controllers/v1/dns/dns_gslb_zone.py | WosunOO/nca_xianshu | bbb548cb67b755a57528796d4c5a66ee68df2678 | [
"Apache-2.0"
] | null | null | null | nca47/api/controllers/v1/dns/dns_gslb_zone.py | WosunOO/nca_xianshu | bbb548cb67b755a57528796d4c5a66ee68df2678 | [
"Apache-2.0"
] | null | null | null | nca47/api/controllers/v1/dns/dns_gslb_zone.py | WosunOO/nca_xianshu | bbb548cb67b755a57528796d4c5a66ee68df2678 | [
"Apache-2.0"
] | null | null | null | from nca47.api.controllers.v1 import base
from oslo_serialization import jsonutils as json
from nca47.api.controllers.v1 import base
from nca47.common.i18n import _
from nca47.common.i18n import _LI, _LE
from nca47.common.exception import Nca47Exception
from nca47.common.exception import ParamValueError
from oslo_log import log
from nca47.api.controllers.v1 import tools
from nca47.manager.central import CentralManager
from nca47.common.exception import BadRequest
from oslo_messaging import RemoteError
LOG = log.getLogger(__name__)
class Glsb_zoneController(base.BaseRestController):
def __init__(self):
self.manager = CentralManager.get_instance()
super(Glsb_zoneController, self).__init__()
def create(self, req, *args, **kwargs):
try:
url = req.url
flag = True
if len(args) > 1:
raise BadRequest(resource="gslb_zone create", msg=url)
context = req.context
body_values = json.loads(req.body)
valid_attributes = ['tenant_id', 'name', 'devices', 'syn_server']
# valid_devices = ["group_name", "device_name"]
values = tools.validat_values(body_values, valid_attributes)
obj_devices = body_values["devices"]
# for key in obj_devices:
# tools.validat_values(key, valid_devices)
# tools.validat_values(body_values["syn_server"], valid_devices)
for key in obj_devices:
if body_values["syn_server"] in key:
flag = False
if flag:
raise ParamValueError(param_name=body_values["syn_server"])
# input the gslb_zone values with dic format
LOG.info(_LI("input the gslb_zone values with dic format\
is %(json)s"),
{"json": body_values})
response = self.manager.create_gslb_zone(context, values)
return response
except Nca47Exception as e:
self.response.status = e.code
LOG.error(_LE('Error exception! error info: %' + e.message))
LOG.exception(e)
self.response.status = e.code
return tools.ret_info(e.code, e.message)
except RemoteError as exception:
self.response.status = 500
message = exception.value
return tools.ret_info(self.response.status, message)
except Exception as e:
LOG.exception(e)
self.response.status = 500
return tools.ret_info(self.response.status, e.message)
def remove(self, req, id, *args, **kwargs):
try:
url = req.url
# if len(args) > 1:
# raise BadRequest(resource="gslb_zone del", msg=url)
context = req.context
body_values={}
# body_values = json.loads(req.body)
gslb_zone_id = id
body_values["id"] = gslb_zone_id
# input the gslb_zone values with dic format
LOG.info(_LI("delete the gslb_zone values with dic format\
is %(json)s"),
{"json": body_values})
response = self.manager.del_gslb_zone(context, body_values)
return response
except Nca47Exception as e:
self.response.status = e.code
LOG.error(_LE('Error exception! error info: %' + e.message))
LOG.exception(e)
self.response.status = e.code
return tools.ret_info(e.code, e.message)
except RemoteError as exception:
self.response.status = 500
message = exception.value
return tools.ret_info(self.response.status, message)
except Exception as e:
LOG.exception(e)
self.response.status = 500
return tools.ret_info(self.response.status, e.message)
def update(self, req, id, *args, **kwargs):
try:
url = req.url
# if len(args) > 1:
# raise BadRequest(resource="gslb_zone del", msg=url)
context = req.context
body_values = json.loads(req.body)
gslb_zone_id = id
valid_attributes = ['enable', 'devices', 'syn_server']
# valid_devices = ["group_name", "device_name"]
values = tools.validat_values(body_values, valid_attributes)
obj_devices = body_values["devices"]
# for key in obj_devices:
# tools.validat_values(key, valid_devices)
# tools.validat_values(body_values["syn_server"], valid_devices)
for key in obj_devices:
if body_values["syn_server"] in key:
flag = False
if flag:
raise ParamValueError(param_name=body_values["syn_server"])
# input the gslb_zone values with dic format
LOG.info(_LI("update the gslb_zone values with dic format\
is %(json)s"),
{"json": body_values})
response = self.manager.update_gslb_zone(
context, gslb_zone_id, values)
return response
except Nca47Exception as e:
self.response.status = e.code
LOG.error(_LE('Error exception! error info: %' + e.message))
LOG.exception(e)
self.response.status = e.code
return tools.ret_info(e.code, e.message)
except RemoteError as exception:
self.response.status = 500
message = exception.value
return tools.ret_info(self.response.status, message)
except Exception as e:
LOG.exception(e)
self.response.status = 500
return tools.ret_info(self.response.status, e.message)
def list(self, req, *args, **kwargs):
try:
url = req.url
# if len(args) > 1:
# raise BadRequest(resource="gslb_zone getAll", msg=url)
context = req.context
search_opts = {}
search_opts.update(req.GET)
# input the staticnat values with dic format
LOG.info(_LI("get_all the gslb_zone"))
response = self.manager.get_gslb_zones(context, search_opts)
return response
except Nca47Exception as e:
self.response.status = e.code
LOG.error(_LE('Error exception! error info: %' + e.message))
LOG.exception(e)
self.response.status = e.code
return tools.ret_info(e.code, e.message)
except RemoteError as exception:
self.response.status = 500
message = exception.value
return tools.ret_info(self.response.status, message)
except Exception as e:
LOG.exception(e)
self.response.status = 500
return tools.ret_info(self.response.status, e.message)
def show(self, req, id, *args, **kwargs):
try:
url = req.url
# if len(args) > 1:
# raise BadRequest(resource="gslb_zone get", msg=url)
context = req.context
body_values = {}
gslb_zone_id = id
body_values["id"] = gslb_zone_id
# input the gslb_zone values with dic format
LOG.info(_LI("get the staticnat values with dic format\
is %(json)s"),
{"json": body_values})
response = self.manager.get_gslb_zone(context, body_values)
return response
except Nca47Exception as e:
self.response.status = e.code
LOG.error(_LE('Error exception! error info: %' + e.message))
LOG.exception(e)
self.response.status = e.code
return tools.ret_info(e.code, e.message)
except RemoteError as exception:
self.response.status = 500
message = exception.value
return tools.ret_info(self.response.status, message)
except Exception as e:
LOG.exception(e)
self.response.status = 500
return tools.ret_info(self.response.status, e.message)
| 41.846939 | 77 | 0.581078 | 954 | 8,202 | 4.843816 | 0.112159 | 0.077905 | 0.116858 | 0.061675 | 0.877732 | 0.837048 | 0.825146 | 0.818005 | 0.784895 | 0.776023 | 0 | 0.013079 | 0.328822 | 8,202 | 195 | 78 | 42.061538 | 0.82634 | 0.121921 | 0 | 0.763975 | 0 | 0 | 0.043812 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037267 | false | 0 | 0.074534 | 0 | 0.242236 | 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 |
755a79dfa4d1b5fda7521cbfdf8bcacf2a33dd87 | 2,681 | py | Python | hyperglass/models/commands/tnsr.py | blkmajik/hyperglass | c52a6f609843177671d38bcad59b8bd658f46b64 | [
"BSD-3-Clause-Clear"
] | 298 | 2019-06-17T13:51:46.000Z | 2021-06-23T18:09:51.000Z | hyperglass/models/commands/tnsr.py | blkmajik/hyperglass | c52a6f609843177671d38bcad59b8bd658f46b64 | [
"BSD-3-Clause-Clear"
] | 137 | 2019-06-18T12:59:37.000Z | 2021-06-19T05:50:58.000Z | hyperglass/models/commands/tnsr.py | blkmajik/hyperglass | c52a6f609843177671d38bcad59b8bd658f46b64 | [
"BSD-3-Clause-Clear"
] | 42 | 2019-06-18T07:25:23.000Z | 2021-06-18T17:40:20.000Z | """Netgate TNSR Command Model."""
# Third Party
from pydantic import StrictStr
# Local
from .common import CommandSet, CommandGroup
class _IPv4(CommandSet):
"""Validation model for default VRF IPv4 commands."""
bgp_community: StrictStr = 'dataplane shell sudo vtysh -c "show bgp ipv4 unicast community {target}"'
bgp_aspath: StrictStr = 'dataplane shell sudo vtysh -c "show bgp ipv4 unicast regexp {target}"'
bgp_route: StrictStr = 'dataplane shell sudo vtysh -c "show bgp ipv4 unicast {target}"'
ping: StrictStr = "ping {target} ipv4 source {source} count 5 timeout 1"
traceroute: StrictStr = "traceroute {target} ipv4 source {source} timeout 1 waittime 1"
class _IPv6(CommandSet):
"""Validation model for default VRF IPv6 commands."""
bgp_community: StrictStr = 'dataplane shell sudo vtysh -c "show bgp ipv6 unicast community {target}"'
bgp_aspath: StrictStr = 'dataplane shell sudo vtysh -c "show bgp ipv6 unicast regexp {target}"'
bgp_route: StrictStr = 'dataplane shell sudo vtysh -c "show bgp ipv6 unicast {target}"'
ping: StrictStr = "ping {target} ipv6 source {source} count 5 timeout 1"
traceroute: StrictStr = "traceroute {target} ipv6 source {source} timeout 1 waittime 1"
class _VPNIPv4(CommandSet):
"""Validation model for non-default ipv6 commands."""
bgp_community: StrictStr = 'dataplane shell sudo vtysh -c "show bgp vrf {vrf} ipv4 unicast community {target}"'
bgp_aspath: StrictStr = 'dataplane shell sudo vtysh -c "show bgp vrf {vrf} ipv4 unicast regexp {target}"'
bgp_route: StrictStr = 'dataplane shell sudo vtysh -c "show bgp vrf {vrf} ipv4 unicast {target}"'
ping: StrictStr = "dataplane shell ping -4 -c 5 -W 1 -I {vrf} -S {source} {target}"
traceroute: StrictStr = "dataplane shell traceroute -4 -w 1 -q 1 -i {vrf} -s {source} {target}"
class _VPNIPv6(CommandSet):
"""Validation model for non-default ipv6 commands."""
bgp_community: StrictStr = 'dataplane shell sudo vtysh -c "show bgp vrf {vrf} ipv6 unicast community {target}"'
bgp_aspath: StrictStr = 'dataplane shell sudo vtysh -c "show bgp vrf {vrf} ipv6 unicast regexp {target}"'
bgp_route: StrictStr = 'dataplane shell sudo vtysh -c "show bgp vrf {vrf} ipv6 unicast {target}"'
ping: StrictStr = "dataplane shell ping -6 -c 5 -W 1 -I {vrf} -S {source} {target}"
traceroute: StrictStr = "dataplane shell traceroute -6 -w 1 -q 1 -i {vrf} -s {source} {target}"
class TNSRCommands(CommandGroup):
"""Validation model for default tnsr commands."""
ipv4_default: _IPv4 = _IPv4()
ipv6_default: _IPv6 = _IPv6()
ipv4_vpn: _VPNIPv4 = _VPNIPv4()
ipv6_vpn: _VPNIPv6 = _VPNIPv6()
| 47.035088 | 115 | 0.70608 | 361 | 2,681 | 5.166205 | 0.149584 | 0.154424 | 0.197319 | 0.173727 | 0.841823 | 0.841823 | 0.769973 | 0.693834 | 0.693834 | 0.693834 | 0 | 0.025641 | 0.185379 | 2,681 | 56 | 116 | 47.875 | 0.828297 | 0.105185 | 0 | 0 | 0 | 0.129032 | 0.575412 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.064516 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
755dc40021bd837fadd299349dcd5ba99b6bfa5d | 3,899 | py | Python | modules/hasher.py | lucasbuschlinger/hashbench | 580cf247d6ee40723e1e255b93c34908cdd0f6de | [
"MIT"
] | null | null | null | modules/hasher.py | lucasbuschlinger/hashbench | 580cf247d6ee40723e1e255b93c34908cdd0f6de | [
"MIT"
] | null | null | null | modules/hasher.py | lucasbuschlinger/hashbench | 580cf247d6ee40723e1e255b93c34908cdd0f6de | [
"MIT"
] | null | null | null | import hashlib
import random
def generate_hashes(source, amount, hash_type):
"""Calls the specific hashers.
Trade-off here was (almost) repetitive code vs rather confusing if/else-ing.
"""
if hash_type == "md5":
__genMD5(source, amount)
elif hash_type == "sha1":
__genSHA1(source, amount)
elif hash_type == "sha256":
__genSHA256(source, amount)
elif hash_type == "sha512":
__genSHA512(source, amount)
else:
raise ValueError("Requested hash {} not available for generation".format(hash_type))
def __genMD5(source, amount):
used_indices = []
with open("gen.hash", "w") as dest:
with open(source, "r") as src:
words = src.readlines()
size = len(words)
if amount > size:
print("Warning: Source file for new hashes contains less entries than requested hashes,"
" only generating {} hashes".format(size))
amount = size
for i in range(amount):
hasher = hashlib.md5()
x = random.randint(0, size - 1)
while x in used_indices:
x = random.randint(0, size - 1)
word = words[x].replace("\n", "")
hasher.update(word.encode())
new_hash = hasher.hexdigest()
dest.write(new_hash + "\n")
def __genSHA1(source, amount):
used_indices = []
with open("gen.hash", "w") as dest:
with open(source, "r") as src:
words = src.readlines()
size = len(words)
if amount > size:
print("Warning: Source file for new hashes contains less entries than requested hashes,"
" only generating {} hashes".format(size))
amount = size
for i in range(amount):
hasher = hashlib.sha1()
x = random.randint(0, size - 1)
while x in used_indices:
x = random.randint(0, size - 1)
word = words[x].replace("\n", "")
hasher.update(word.encode())
new_hash = hasher.hexdigest()
dest.write(new_hash + "\n")
def __genSHA256(source, amount):
used_indices = []
with open("gen.hash", "w") as dest:
with open(source, "r") as src:
words = src.readlines()
size = len(words)
if amount > size:
print("Warning: Source file for new hashes contains less entries than requested hashes,"
" only generating {} hashes".format(size))
amount = size
for i in range(amount):
hasher = hashlib.sha256()
x = random.randint(0, size - 1)
while x in used_indices:
x = random.randint(0, size - 1)
word = words[x].replace("\n", "")
hasher.update(word.encode())
new_hash = hasher.hexdigest()
dest.write(new_hash + "\n")
def __genSHA512(source, amount):
used_indices = []
with open("gen.hash", "w") as dest:
with open(source, "r") as src:
words = src.readlines()
size = len(words)
if amount > size:
print("Warning: Source file for new hashes contains less entries than requested hashes,"
" only generating {} hashes".format(size))
amount = size
for i in range(amount):
hasher = hashlib.sha512()
x = random.randint(0, size - 1)
while x in used_indices:
x = random.randint(0, size - 1)
word = words[x].replace("\n", "")
hasher.update(word.encode())
new_hash = hasher.hexdigest()
dest.write(new_hash + "\n") | 38.22549 | 104 | 0.514491 | 432 | 3,899 | 4.553241 | 0.194444 | 0.054906 | 0.05694 | 0.061007 | 0.826131 | 0.789527 | 0.789527 | 0.789527 | 0.789527 | 0.789527 | 0 | 0.019656 | 0.373686 | 3,899 | 102 | 105 | 38.22549 | 0.785831 | 0.026674 | 0 | 0.764045 | 1 | 0 | 0.144142 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05618 | false | 0 | 0.022472 | 0 | 0.078652 | 0.044944 | 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 |
f34bcef8c73507f4e315ea0ad6db9a952c10ec4b | 96,360 | py | Python | tzktpy/operation.py | dpfens/tzktPy | 71f7c17f87345118d8dd52effc3027927c553239 | [
"MIT"
] | 1 | 2021-11-14T12:14:49.000Z | 2021-11-14T12:14:49.000Z | tzktpy/operation.py | dpfens/tzktPy | 71f7c17f87345118d8dd52effc3027927c553239 | [
"MIT"
] | null | null | null | tzktpy/operation.py | dpfens/tzktPy | 71f7c17f87345118d8dd52effc3027927c553239 | [
"MIT"
] | null | null | null | """
Operations are actions that are taken by accounts on the Tezos blockchain.
Common operations are:
Activation
Activate accounts that were recommended allocations of tez tokens for donations to the Tezos Foundation fundraiser.
Delegation
Account lends tokens to a delegate to increase the delegates rolls.
Increasing the rolls of a delegate gives the delegate more baking rights.
Endorsement
Accounts endorse that a block is valid and should be added to the blockchain.
32 delegates are selected to verify that a block has been baked correctly. Endorsers receive a reward in tex for their services.
Origination
Account creates an originate account (smart contract).
Transaction
Transfers funds between accounts between a sender and a target account.
Voting Operations:
Ballot
Bakers votes for a proposal during a voting cycle.
Proposal
Baker submits a new proposal or upvotes an existing proposal.
Double Baking
An account signs multiple blocks for the same level.
Double Endorsing
An account endorses multiple blocks for the same level.
Nonce Revelation
Baker reveals the nonce they committed in their baked blocks.
Reveal
Reveals the public key associated with an implicit account (tz1 address).
Baking
Bakers validating new blocks on the Tezos blockchain.
"""
from .base import Base, Period
__all__ = ('Operation', 'Endorsement', 'Ballot', 'Proposal', 'Activation', 'DoubleBaking', 'DoubleEndorsing', 'NonceRevelation', 'Delegation', 'Origination', 'Transaction', 'Reveal', 'Migration', 'RevelationPenalty', 'Baking')
class OperationBase(Base):
"""
Attributes:
type (str): The type of operation
id (str): The unique identifier of the operation.
level (int): The level at which the operation was executed
timestamp (datetime): The time at which the operation was executed
block (str): The hash representing the block that stores the operation
"""
__slots__ = ('type', 'id', 'level', 'timestamp', 'block')
def __init__(self, type, id, level, timestamp, block):
self.type = type
self.id = id
self.level = level
self.timestamp = timestamp
self.block = block
def __str__(self):
return str(self.id)
def __repr__(self):
return '<%s %s type=%r, id=%r, level=%r, timestamp=%s, block=%r>' % (self.__class__.__name__, id(self), self.type, self.id, self.level, self.timestamp, self.block)
@classmethod
def by_hash(cls, hash, **kwargs):
"""
Returns a list of operations with the specified hash.
Parameters:
hash (str): Operation hash
Keyword Parameters:
micheline (int): Format of the parameters, storage and diffs: 0 - JSON, 1 - JSON string, 2 - raw micheline, 3 - raw micheline string
domain (str, optional): The tzkt.io domain to use. The domains correspond to the different Tezos networks. Defaults to https://api.tzkt.io.
Returns:
list
Examples:
>>> hash = 'op6hnMitxyMmdoULXeKq6En2KfC1VDWg9nLwoahTqVhgqNimDLi'
>>> operations_group = Operation.by_hash(hash)
"""
path = 'v1/operations/%s' % hash
params = dict()
quote = kwargs.pop('quote', None)
if quote:
params['quote'] = quote
response = cls._request(path, params=params, **kwargs)
data = response.json()
output = [cls.from_api(item) for item in data]
return output
@classmethod
def by_hash_counter(cls, hash, counter, **kwargs):
"""
Returns a list of operations with the specified hash and counter.
Parameters:
hash (str): Operation hash
counter (int): Operation counter
Keyword Parameters:
micheline (int): Format of the parameters, storage and diffs: 0 - JSON, 1 - JSON string, 2 - raw micheline, 3 - raw micheline string
domain (str, optional): The tzkt.io domain to use. The domains correspond to the different Tezos networks. Defaults to https://api.tzkt.io.
Returns:
list
Examples:
>>> hash = 'op6hnMitxyMmdoULXeKq6En2KfC1VDWg9nLwoahTqVhgqNimDLi'
>>> counter = 11439251
>>> operations = Operation.by_hash_counter(hash, counter)
"""
path = 'v1/operations/%s/%s' % (hash, counter)
params = dict()
micheline = kwargs.pop('micheline', None)
if micheline:
params['micheline'] = micheline
quote = kwargs.pop('quote', None)
if quote:
params['quote'] = quote
response = cls._request(path, params=params, **kwargs)
data = response.json()
output = [cls.from_api(item) for item in data]
return output
@classmethod
def by_hash_counter_nonce(cls, hash, counter, nonce, **kwargs):
"""
Returns a list of operations with the specified hash and counter.
Parameters:
hash (str): Operation hash
counter (int): Operation counter
nonce (int): Operation nonce
Keyword Parameters:
micheline (int): Format of the parameters, storage and diffs: 0 - JSON, 1 - JSON string, 2 - raw micheline, 3 - raw micheline string
domain (str, optional): The tzkt.io domain to use. The domains correspond to the different Tezos networks. Defaults to https://api.tzkt.io.
Returns:
list
Examples:
>>> hash = 'op6hnMitxyMmdoULXeKq6En2KfC1VDWg9nLwoahTqVhgqNimDLi'
>>> counter = 11439251
>>> nonce = 0
>>> operations = Operation.by_hash_counter_nonce(hash, counter, nonce)
"""
path = 'v1/operations/%s/%s/%s' % (hash, counter, nonce)
params = dict()
micheline = kwargs.pop('micheline', None)
if micheline:
params['micheline'] = micheline
quote = kwargs.pop('quote', None)
if quote:
params['quote'] = quote
response = cls._request(path, params=params, **kwargs)
data = response.json()
output = [cls.from_api(item) for item in data]
return output
@classmethod
def by_address(cls, address, **kwargs):
"""
Returns a list of operations related to the specified account. Note: for better flexibility this endpoint accumulates query parameters (filters) of each /operations/{type} endpoint, so a particular filter may affect several operation types containing this filter. For example, if you specify an initiator it will affect all transactions, delegations and originations, because all these types have an initiator field.
Parameters:
address (str): Account address (starting with tz or KT)
Keyword Parameters:
type (str): Comma separated list of operation types to return (endorsement, ballot, proposal, activation, double_baking, double_endorsing, nonce_revelation, delegation, origination, transaction, reveal, migration, revelation_penalty, baking). If not specified then all operation types except endorsement and baking will be returned.
initiator (str): Filters transactions, delegations and originations by initiator. Supports standard modifiers.
sender (str): Filters transactions, delegations, originations, reveals and seed nonce revelations by sender. Supports standard modifiers.
target (str): Filters transactions by target. Supports standard modifiers.
prevDelegate (str): Filters delegations by prev delegate. Supports standard modifiers.
newDelegate (str): Filters delegations by new delegate. Supports standard modifiers.
contractManager (str): Filters origination operations by manager. Supports standard modifiers.
contractDelegate (str): Filters origination operations by delegate. Supports standard modifiers.
originatedContract (str): Filters origination operations by originated contract. Supports standard modifiers.
accuser (str): Filters double baking operations by accuser. Supports standard modifiers.
offender (str): Filters double baking operations by offender. Supports standard modifiers.
baker (str): Filters nonce revelation operations by baker. Supports standard modifiers.
level (str): Filters operations by level. Supports standard modifiers.
timestamp (str): Filters operations by timestamp. Supports standard modifiers.
entrypoint (str): Filters transactions by entrypoint called on the target contract. Supports standard modifiers.
hasInternals (bool): Filters transactions by presence of internal operations.
status (str): Filters transactions, delegations, originations and reveals by operation status (applied, failed, backtracked, skipped).
micheline (int): Format of the parameters, storage and diffs: 0 - JSON, 1 - JSON string, 2 - raw micheline, 3 - raw micheline string
lastId (int): Id of the last operation received, which is used as an offset for pagination
limit (int): Maximum number of items to return.
domain (str, optional): The tzkt.io domain to use. The domains correspond to the different Tezos networks. Defaults to https://api.tzkt.io.
Returns:
list
Examples:
>>> address = 'tz1WEHHVMWxQUtkWAgrJBFGXjJ5YqZVgfPVE'
>>> operations = Operation.by_address(address)
"""
path = 'v1/accounts/%s/operations' % address
optional_base_params = ['type', 'initiator', 'target', 'prevDelegate', 'newDelegate', 'contractManager', 'contractDelegate', 'originatedContract', 'accuser', 'offender', 'baker', 'level', 'timestamp', 'entrypoint', 'parameter', 'status', 'lastId'] + list(cls.pagination_parameters)
params, param_mappings = cls.prepare_modifiers(kwargs, include=optional_base_params)
for param in param_mappings.get('type', []):
params[param] = ','.join(params[param])
response = cls._request(path, params=params, **kwargs)
data = response.json()
output = [cls.from_api(item) for item in data]
return output
@classmethod
def _type_by_hash(cls, type, hash, **kwargs):
path = 'v1/operations/%s/%s' % (type, hash)
params = dict()
quote = kwargs.pop('quote', None)
if quote:
params['quote'] = quote
response = cls._request(path, params=params, **kwargs)
data = response.json()
output = [cls.from_api(item) for item in data]
return output
@classmethod
def _type_count(cls, type, **kwargs):
params = dict()
optional_base_params = ['level', 'timestamp', 'quote']
params, _ = cls.prepare_modifiers(kwargs, include=optional_base_params)
path = 'v1/operations/%s/count' % type
response = cls._request(path, params=params, **kwargs)
raw_count = response.content
return int(raw_count)
class Operation(OperationBase):
"""
Attributes:
type (str): The type of operation.
id (str): The unique identifier of the operation.
level (int): The level at which the operation was executed.
timestamp (datetime): The time at which the operation was executed.
block (str): The hash representing the block that stores the operation.
hash (str): The hash representing the operations group containing the operation.
"""
__slots__ = ('type', 'id', 'level', 'timestamp', 'block', 'hash')
def __init__(self, type, id, level, timestamp, block, hash):
super(Operation, self).__init__(type, id, level, timestamp, block)
self.hash = hash
def __repr__(self):
return '<%s %s id=%r, level=%r, timestamp=%s, block=%r, hash=%r>' % (self.__class__.__name__, id(self), self.id, self.level, self.timestamp, self.block, self.hash)
@classmethod
def from_api(cls, data):
type = data['type']
id = data['id']
level = data['level']
timestamp = data['timestamp']
if timestamp:
timestamp = cls.to_datetime(timestamp)
block = data['block']
hash = data['hash']
return cls(type, id, level, timestamp, block, hash)
class Endorsement(OperationBase):
"""
Attributes:
type (str): The type of operation.
id (str): The unique identifier of the operation.
level (int): The level at which the operation was executed.
timestamp (datetime): The time at which the operation was executed.
block (str): The hash representing the block that stores the operation.
hash (str): The hash representing the operations group containing the operation.
deposit (int): The number of microtez deposited for the endorsement.
rewards (int): The number of microtez rewarded for the endorsement
quote (float): The value of 1.0 tez denominated in the chosen currency.
"""
__slots__ = ('type', 'id', 'level', 'timestamp', 'block', 'hash', 'delegate', 'slots', 'deposit', 'rewards', 'quote')
def __init__(self, type, id, level, timestamp, block, hash, delegate, slots, deposit, rewards, quote):
super(Endorsement, self).__init__(type, id, level, timestamp, block)
self.hash = hash
self.delegate = delegate
self.slots = slots
self.deposit = deposit
self.rewards = rewards
self.quote = quote
def __str__(self):
return str(self.id)
def __repr__(self):
return '<%s %s id=%r, level=%r, timestamp=%s, hash=%r, deposit=%r, rewards=%r>' % (self.__class__.__name__, id(self), self.type, self.id, self.level, self.timestamp, self.hash, self.deposit, self.rewards)
@classmethod
def from_api(cls, data):
data = super(Endorsement, cls).from_api(data)
type = data['type']
id = data['id']
level = data['level']
timestamp = data['timestamp']
if timestamp:
timestamp = cls.to_datetime(timestamp)
block = data['block']
hash = data['hash']
delegate = data['delegate']
slots = data['slots']
deposit = data['deposit']
rewards = data['rewards']
quote = data['quote']
return cls(type, id, level, timestamp, block, hash, delegate, slots, deposit, rewards, quote)
@classmethod
def get(cls, **kwargs):
"""
Returns a list of endorsement operations.
Keyword Parameters:
delegate (str): Filters endorsements by delegate. Supports standard modifiers.
level (str): Filters operations by level. Supports standard modifiers.
timestamp (str): Filters operations by timestamp. Supports standard modifiers.
sort (str): Sorts endorsements by specified field. Supported fields: id (default), level. Supports sorting modifiers.
offset (int): Specifies which or how many items should be skipped. Supports standard offset modifiers.
limit (int): Maximum number of items to return.
domain (str, optional): The tzkt.io domain to use. The domains correspond to the different Tezos networks. Defaults to https://api.tzkt.io.
Returns:
list
Examples:
>>> level = 100000
>>> endorsements = Endorsement.get(level__gt=level)
"""
path = 'v1/operations/endorsements/'
optional_base_params = ['delegate', 'level', 'timestamp'] + list(cls.pagination_parameters)
params, _ = cls.prepare_modifiers(kwargs, include=optional_base_params)
response = cls._request(path, params=params, **kwargs)
data = response.json()
output = [cls.from_api(item) for item in data]
return output
@classmethod
def by_hash(cls, hash, **kwargs):
"""
Returns an endorsement operation with specified hash.
Parameters:
hash (str): Operation hash
Keyword Parameters:
quote (list|tuple|set): list of ticker symbols to inject historical prices into response
domain (str, optional): The tzkt.io domain to use. The domains correspond to the different Tezos networks. Defaults to https://api.tzkt.io.
Returns:
list
Examples:
>>> hash = 'dadfa...'
>>> endorsement = Endorsement.by_hash(hash)
"""
return cls._type_by_hash('endorsements', hash, **kwargs)
@classmethod
def count(cls, **kwargs):
"""
Returns the total number of endorsement operations.
Keyword Parameters:
level (int): Filters operations by level. Supports standard modifiers.
timestamp (date|datetime): Filters operations by timestamp. Supports standard modifiers.
domain (str, optional): The tzkt.io domain to use. The domains correspond to the different Tezos networks. Defaults to https://api.tzkt.io.
Returns:
int
Examples:
>>> level = 100000
>>> count = Endorsement.count(level__gt=level)
"""
return cls._type_count('endorsements', **kwargs)
class Ballot(OperationBase):
"""
Attributes:
type (str): The type of operation.
id (str): The unique identifier of the operation.
level (int): The level at which the operation was executed.
timestamp (datetime): The time at which the operation was executed.
block (str): The hash representing the block that stores the operation.
hash (str): The hash representing the operations group containing the operation.
period (int): The period during which the ballot was cast.
delegate (str): The address of the delegate
rolls (int): The number of rolls
vote (str): The vote of the operation
quote (float): The value of 1.0 tez denominated in the chosen currency.
"""
__slots__ = ('type', 'id', 'level', 'timestamp', 'block', 'hash', 'period', 'proposal', 'delegate', 'rolls', 'vote', 'quote')
def __init__(self, type, id, level, timestamp, block, hash, period, proposal, delegate, rolls, vote, quote):
super(Ballot, self).__init__(type, id, level, timestamp, block)
self.hash = hash
self.period = period
self.proposal = proposal
self.delegate = delegate
self.rolls = rolls
self.vote = vote
self.quote = quote
def __repr__(self):
return '<%s %s id=%r, level=%r, timestamp=%s, hash=%r, period=%r, proposal=%r, vote=%r>' % (self.__class__.__name__, id(self), self.id, self.level, self.timestamp, self.hash, self.period, self.proposal, self.vote)
@classmethod
def from_api(cls, data):
data = super(Ballot, cls).from_api(data)
type = data['type']
id = data['id']
level = data['level']
timestamp = data['timestamp']
if timestamp:
timestamp = cls.to_datetime(timestamp)
block = data['block']
hash = data['hash']
raw_period = data['period']
period = None
if raw_period:
period = Period.from_api(raw_period)
proposal = data['proposal']
delegate = data['delegate']
rolls = data['rolls']
vote = data['vote']
quote = data['quote']
return cls(type, id, level, timestamp, block, hash, period, proposal, delegate, rolls, vote, quote)
@classmethod
def get(cls, **kwargs):
"""
Returns a list of ballot operations.
Keyword Parameters:
delegate (str): Filters endorsements by delegate. Supports standard modifiers.
level (int): Filters operations by level. Supports standard modifiers.
timestamp (date|datetime): Filters operations by timestamp. Supports standard modifiers.
epoch (int): Filters ballots by voting epoch. Supports standard modifiers.
period (int): Filters ballots by voting period. Supports standard modifiers.
proposal (str): Filters ballots by proposal hash. Supports standard modifiers.
sort (str): Sorts endorsements by specified field. Supported fields: id (default), level. Supports sorting modifiers.
offset (int): Specifies which or how many items should be skipped. Supports standard offset modifiers.
limit (int): Maximum number of items to return.
domain (str, optional): The tzkt.io domain to use. The domains correspond to the different Tezos networks. Defaults to https://api.tzkt.io.
Returns:
list
Examples:
>>> level = 100000
>>> ballots = Ballot.get(level__gt=level)
"""
path = 'v1/operations/ballots/'
optional_base_params = ['delegate', 'level', 'epoch', 'period', 'timestamp'] + list(cls.pagination_parameters)
params, _ = cls.prepare_modifiers(kwargs, include=optional_base_params)
response = cls._request(path, params=params, **kwargs)
data = response.json()
output = [cls.from_api(item) for item in data]
return output
@classmethod
def by_hash(cls, hash, **kwargs):
"""
Returns a ballot operation with specified hash.
Parameters:
hash (str): Operation hash
Keyword Parameters:
quote (list|tuple|set): list of ticker symbols to inject historical prices into response
domain (str, optional): The tzkt.io domain to use. The domains correspond to the different Tezos networks. Defaults to https://api.tzkt.io.
Returns:
list
Examples:
>>> hash = 'dadfa...'
>>> ballot = Ballot.by_hash(hash)
"""
return cls._type_by_hash('ballots', hash, **kwargs)
@classmethod
def count(cls, **kwargs):
"""
Returns the total number of ballot operations.
Keyword Parameters:
level (int): Filters operations by level. Supports standard modifiers.
timestamp (date|datetime): Filters operations by timestamp. Supports standard modifiers.
domain (str, optional): The tzkt.io domain to use. The domains correspond to the different Tezos networks. Defaults to https://api.tzkt.io.
Returns:
int
Examples:
>>> level = 100000
>>> count = Ballot.count(level__gt=level)
"""
return cls._type_count('ballots', **kwargs)
class Proposal(OperationBase):
"""
Attributes:
type (str): The type of operation.
id (str): The unique identifier of the operation.
level (int): The level at which the operation was executed.
timestamp (datetime): The time at which the operation was executed.
block (str): The hash representing the block that stores the operation.
hash (str): The hash representing the operations group containing the operation.
period (int): The period during which the ballot was cast.
delegate (str): The address of the delegate
rolls (int): The number of rolls
duplicated (bool): Indicates if the proposal is duplicated
quote (float): The value of 1.0 tez denominated in the chosen currency.
"""
__slots__ = ('type', 'id', 'level', 'timestamp', 'block', 'hash', 'period', 'proposal', 'delegate', 'rolls','duplicated', 'quote')
def __init__(self, type, id, level, timestamp, block, hash, period, proposal, delegate, rolls,duplicated, quote):
super(Proposal, self).__init__(type, id, level, timestamp, block)
self.hash = hash
self.period = period
self.proposal = proposal
self.delegate = delegate
self.rolls = rolls
self.duplicated = duplicated
self.quote = quote
def __repr__(self):
return '<%s %s id=%r, level=%r, timestamp=%s, hash=%r, period=%r, proposal=%r>' % (self.__class__.__name__, id(self), self.id, self.level, self.timestamp, self.hash, self.period, self.proposal)
@classmethod
def from_api(cls, data):
data = super(Proposal, cls).from_api(data)
type = data['type']
id = data['id']
level = data['level']
timestamp = data['timestamp']
if timestamp:
timestamp = cls.to_datetime(timestamp)
block = data['block']
hash = data['hash']
raw_period = data['period']
period = None
if raw_period:
period = Period.from_api(raw_period)
proposal = data['proposal']
delegate = data['delegate']
rolls = data['rolls']
duplicated = data['duplicated']
quote = data['quote']
return cls(type, id, level, timestamp, block, hash, period, proposal, delegate, rolls, duplicated, quote)
@classmethod
def get(cls, **kwargs):
"""
Returns a list of ballot operations.
Keyword Parameters:
delegate (str): Filters endorsements by delegate. Supports standard modifiers.
level (int): Filters operations by level. Supports standard modifiers.
timestamp (date|datetime): Filters operations by timestamp. Supports standard modifiers.
epoch (int): Filters ballots by voting epoch. Supports standard modifiers.
period (int): Filters ballots by voting period. Supports standard modifiers.
proposal (str): Filters ballots by proposal hash. Supports standard modifiers.
duplicated (bool): Specify whether to include or exclude duplicates, which didn't actually upvote a proposal.
sort (str): Sorts endorsements by specified field. Supported fields: id (default), level. Supports sorting modifiers.
offset (int): Specifies which or how many items should be skipped. Supports standard offset modifiers.
limit (int): Maximum number of items to return.
domain (str, optional): The tzkt.io domain to use. The domains correspond to the different Tezos networks. Defaults to https://api.tzkt.io.
Returns:
list
Examples:
>>> level = 100000
>>> proposals = Proposal.get(level__gt=level)
"""
path = 'v1/operations/proposals/'
optional_base_params = ['delegate', 'level', 'epoch', 'period', 'timestamp'] + list(cls.pagination_parameters)
params, _ = cls.prepare_modifiers(kwargs, include=optional_base_params)
response = cls._request(path, params=params, **kwargs)
data = response.json()
output = [cls.from_api(item) for item in data]
return output
@classmethod
def by_hash(cls, hash, **kwargs):
"""
Returns a proposal operation with specified hash.
Parameters:
hash (str): Operation hash
Keyword Parameters:
quote (list|tuple|set): list of ticker symbols to inject historical prices into response
domain (str, optional): The tzkt.io domain to use. The domains correspond to the different Tezos networks. Defaults to https://api.tzkt.io.
Returns:
list
Examples:
>>> hash = 'dadfa...'
>>> proposal = Proposal.by_hash(hash)
"""
return cls._type_by_hash('proposals', hash, **kwargs)
@classmethod
def count(cls, **kwargs):
"""
Returns the total number of proposal operations.
Keyword Parameters:
level (int): Filters operations by level. Supports standard modifiers.
timestamp (date|datetime): Filters operations by timestamp. Supports standard modifiers.
domain (str, optional): The tzkt.io domain to use. The domains correspond to the different Tezos networks. Defaults to https://api.tzkt.io.
Returns:
int
Examples:
>>> level = 100000
>>> count = Proposal.count(level__gt=level)
"""
return cls._type_count('proposals', **kwargs)
class Activation(OperationBase):
"""
Attributes:
type (str): The type of operation.
id (str): The unique identifier of the operation.
level (int): The level at which the operation was executed.
timestamp (datetime): The time at which the operation was executed.
block (str): The hash representing the block that stores the operation.
hash (str): The hash representing the operations group containing the operation.
account (str): The address of the activated account
balance (int): The balance of the account (denominated in microtez)
quote (float): The value of 1.0 tez denominated in the chosen currency.
"""
__slots__ = ('type', 'id', 'level', 'timestamp', 'block', 'hash', 'account', 'balance', 'quote')
def __init__(self, type, id, level, timestamp, block, hash, account, balance, quote):
super(Activation, self).__init__(type, id, level, timestamp, block)
self.hash = hash
self.account = account
self.balance = balance
self.quote = quote
def __repr__(self):
return '<%s %s id=%r, level=%r, timestamp=%s, hash=%r, account=%r, balance=%r>' % (self.__class__.__name__, id(self), self.id, self.level, self.timestamp, self.hash, self.account, self.balance)
@classmethod
def from_api(cls, data):
data = super(Activation, cls).from_api(data)
type = data['type']
id = data['id']
level = data['level']
timestamp = data['timestamp']
if timestamp:
timestamp = cls.to_datetime(timestamp)
block = data['block']
hash = data['hash']
account = data['account']
balance = data['balance']
quote = data['quote']
return cls(type, id, level, timestamp, block, hash, account, balance, quote)
@classmethod
def get(cls, **kwargs):
"""
Returns a list of activation operations.
Keyword Parameters:
account (str): Filters operations by account. Supports standard modifiers.
level (int): Filters operations by level. Supports standard modifiers.
timestamp (date|datetime): Filters operations by timestamp. Supports standard modifiers.
sort (str): Sorts endorsements by specified field. Supported fields: id (default), level. Supports sorting modifiers.
offset (int): Specifies which or how many items should be skipped. Supports standard offset modifiers.
limit (int): Maximum number of items to return.
domain (str, optional): The tzkt.io domain to use. The domains correspond to the different Tezos networks. Defaults to https://api.tzkt.io.
Returns:
list
Examples:
>>> level = 100000
>>> activations = Activation.get(level__gt=level)
"""
path = 'v1/operations/activations/'
optional_base_params = ['account', 'level', 'timestamp'] + list(cls.pagination_parameters)
params, _ = cls.prepare_modifiers(kwargs, include=optional_base_params)
response = cls._request(path, params=params, **kwargs)
data = response.json()
output = [cls.from_api(item) for item in data]
return output
@classmethod
def by_hash(cls, hash, **kwargs):
"""
Returns an activation operation with specified hash.
Parameters:
hash (str): Operation hash
Keyword Parameters:
quote (list|tuple|set): list of ticker symbols to inject historical prices into response
domain (str, optional): The tzkt.io domain to use. The domains correspond to the different Tezos networks. Defaults to https://api.tzkt.io.
Returns:
list
Examples:
>>> hash = 'dadfa...'
>>> activation = Activation.by_hash(hash)
"""
return cls._type_by_hash('activations', hash, **kwargs)
@classmethod
def count(cls, **kwargs):
"""
Returns the total number of proposal operations.
Keyword Parameters:
level (int): Filters proposals by level. Supports standard modifiers.
timestamp (date|datetime): Filters operations by timestamp. Supports standard modifiers.
domain (str, optional): The tzkt.io domain to use. The domains correspond to the different Tezos networks. Defaults to https://api.tzkt.io.
Returns:
int
Examples:
>>> level = 100000
>>> count = Proposal.count(level__gt=level)
"""
return cls._type_count('activations', **kwargs)
class DoubleBaking(OperationBase):
"""
Attributes:
type (str): The type of operation.
id (str): The unique identifier of the operation.
level (int): The level at which the operation was executed.
timestamp (datetime): The time at which the operation was executed.
block (str): The hash representing the block that stores the operation.
hash (str): The hash representing the operations group containing the operation.
accused_level (int): The level at which the accuser accused the offender.
accuser (str): The address of the accusing account
accuser_rewards (int): The rewards of the accusation given to the accuser (denominated in microtez).
offender (str): The address of the account that double baked.
offender_lost_deposits (int): The deposit lost by the offending account double baking (denominated in microtez).
offender_lost_rewards (int): The reward lost by the offending account double baking (denominated in microtez).
offender_lost_fees (int): The fees lost by the offending account double baking (denominated in microtez).
quote (float): The value of 1.0 tez denominated in the chosen currency.
"""
__slots__ = ('type', 'id', 'level', 'timestamp', 'block', 'hash', 'accused_level', 'accuser', 'accuser_rewards', 'offender', 'offender_lost_deposits', 'offender_lost_rewards', 'offender_lost_fees', 'quote')
def __init__(self, type, id, level, timestamp, block, hash, accused_level, accuser, accuser_rewards, offender, offender_lost_deposits, offender_lost_rewards, offender_lost_fees, quote):
super(DoubleBaking, self).__init__(type, id, level, timestamp, block)
self.hash = hash
self.accused_level = accused_level
self.accuser = accuser
self.accuser_rewards = accuser_rewards
self.offender = offender
self.offender_lost_deposits = offender_lost_deposits
self.offender_lost_rewards = offender_lost_rewards
self.offender_lost_fees = offender_lost_fees
self.quote = quote
def __repr__(self):
return '<%s %s id=%r, level=%r, timestamp=%s, hash=%r, offender=%r, accuser=%r>' % (self.__class__.__name__, id(self), self.id, self.level, self.timestamp, self.hash, self.offender, self.accuser)
@classmethod
def from_api(cls, data):
data = super(DoubleBaking, cls).from_api(data)
type = data['type']
id = data['id']
level = data['level']
timestamp = data['timestamp']
if timestamp:
timestamp = cls.to_datetime(timestamp)
block = data['block']
hash = data['hash']
accused_level = data['accusedLevel']
accuser = data['accuser']
accuser_rewards = data['accuserRewards']
offender = data['offender']
offender_lost_deposits = data['offenderLostDeposits']
offender_lost_rewards = data['offenderLostRewards']
offender_lost_fees = data['offenderLostFees']
quote = data['quote']
return cls(type, id, level, timestamp, block, hash, accused_level, accuser, accuser_rewards, offender, offender_lost_deposits, offender_lost_rewards, offender_lost_fees, quote)
@classmethod
def get(cls, **kwargs):
"""
Returns a list of double baking operations.
Keyword Parameters:
anyof (str): Filters double baking operations by any of the specified fields. Example: `anyof__accuser__offender=tz1...` will return operations where accuser OR offender is equal to the specified value. This parameter is useful when you need to retrieve all operations associated with a specified account.
accuser (str): Filters operations by accuser. Support standard modifiers.
offender (str): Filters operations by offender. Support standard modifiers.
level (int): Filters operations by level. Supports standard modifiers.
timestamp (date|datetime): Filters operations by timestamp. Supports standard modifiers.
sort (str): Sorts endorsements by specified field. Supported fields: id (default), level. Supports sorting modifiers.
offset (int): Specifies which or how many items should be skipped. Supports standard offset modifiers.
limit (int): Maximum number of items to return.
domain (str, optional): The tzkt.io domain to use. The domains correspond to the different Tezos networks. Defaults to https://api.tzkt.io.
Returns:
list
Examples:
>>> level = 100000
>>> double_bakings = DoubleBaking.get(level__gt=level)
"""
path = 'v1/operations/double_baking/'
optional_base_params = ['anyof', 'accuser', 'offender', 'level', 'timestamp'] + list(cls.pagination_parameters)
params, _ = cls.prepare_modifiers(kwargs, include=optional_base_params)
response = cls._request(path, params=params, **kwargs)
data = response.json()
output = [cls.from_api(item) for item in data]
return output
@classmethod
def by_hash(cls, hash, **kwargs):
"""
Returns a double baking operation with specified hash.
Parameters:
hash (str): Operation hash
Keyword Parameters:
quote (list|tuple|set): list of ticker symbols to inject historical prices into response
domain (str, optional): The tzkt.io domain to use. The domains correspond to the different Tezos networks. Defaults to https://api.tzkt.io.
Returns:
list
Examples:
>>> hash = 'dadfa...'
>>> double_baking = DoubleBaking.by_hash(hash)
"""
return cls._type_by_hash('double_baking', hash, **kwargs)
@classmethod
def count(cls, **kwargs):
"""
Returns the total number of double baking operations.
Keyword Parameters:
level (int): Filters operations by level. Supports standard modifiers.
timestamp (date|datetime): Filters operations by timestamp. Supports standard modifiers.
domain (str, optional): The tzkt.io domain to use. The domains correspond to the different Tezos networks. Defaults to https://api.tzkt.io.
Returns:
int
Examples:
>>> level = 100000
>>> count = DoubleBaking.count(level__gt=level)
"""
return cls._type_count('double_baking', **kwargs)
class DoubleEndorsing(OperationBase):
"""
Attributes:
type (str): The type of operation.
id (str): The unique identifier of the operation.
level (int): The level at which the operation was executed.
timestamp (datetime): The time at which the operation was executed.
block (str): The hash representing the block that stores the operation.
hash (str): The hash representing the operations group containing the operation.
accused_level (int): The level at which the accuser accused the offender.
accuser (str): The address of the accusing account
accuser_rewards (int): The rewards of the accusation given to the accuser (denominated in microtez).
offender (str): The address of the account that double endorsed.
offender_lost_deposits (int): The deposit lost by the offending account double endorsing (denominated in microtez).
offender_lost_rewards (int): The reward lost by the offending account double endorsing (denominated in microtez).
offender_lost_fees (int): The fees lost by the offending account double endorsing (denominated in microtez).
quote (float): The value of 1.0 tez denominated in the chosen currency.
"""
__slots__ = ('type', 'id', 'level', 'timestamp', 'block', 'hash', 'accused_level', 'accuser', 'accuser_rewards', 'offender', 'offender_lost_deposits', 'offender_lost_rewards', 'offender_lost_fees', 'quote')
def __init__(self, type, id, level, timestamp, block, hash, accused_level, accuser, accuser_rewards, offender, offender_lost_deposits, offender_lost_rewards, offender_lost_fees, quote):
super(DoubleEndorsing, self).__init__(type, id, level, timestamp, block)
self.hash = hash
self.accused_level = accused_level
self.accuser = accuser
self.accuser_rewards = accuser_rewards
self.offender = offender
self.offender_lost_deposits = offender_lost_deposits
self.offender_lost_rewards = offender_lost_rewards
self.offender_lost_fees = offender_lost_fees
self.quote = quote
def __repr__(self):
return '<%s %s id=%r, level=%r, timestamp=%s, hash=%r, offender=%r, accuser=%r>' % (self.__class__.__name__, id(self), self.id, self.level, self.timestamp, self.hash, self.offender, self.accuser)
@classmethod
def from_api(cls, data):
data = super(DoubleEndorsing, cls).from_api(data)
type = data['type']
id = data['id']
level = data['level']
timestamp = data['timestamp']
if timestamp:
timestamp = cls.to_datetime(timestamp)
block = data['block']
hash = data['hash']
accused_level = data['accusedLevel']
accuser = data['accuser']
accuser_rewards = data['accuserRewards']
offender = data['offender']
offender_lost_deposits = data['offenderLostDeposits']
offender_lost_rewards = data['offenderLostRewards']
offender_lost_fees = data['offenderLostFees']
quote = data['quote']
return cls(type, id, level, timestamp, block, hash, accused_level, accuser, accuser_rewards, offender, offender_lost_deposits, offender_lost_rewards, offender_lost_fees, quote)
@classmethod
def get(cls, **kwargs):
"""
Returns a list of double endorsing operations.
Keyword Parameters:
anyof (str): Filters operations by any of the specified fields. Example: `anyof__accuser__offender=tz1...` will return operations where accuser OR offender is equal to the specified value. This parameter is useful when you need to retrieve all operations associated with a specified account.
accuser (str): Filters operations by accuser. Support standard modifiers.
offender (str): Filters operations by offender. Support standard modifiers.
level (int): Filters operations by level. Supports standard modifiers.
timestamp (date|datetime): Filters operations by timestamp. Supports standard modifiers.
sort (str): Sorts endorsements by specified field. Supported fields: id (default), level. Supports sorting modifiers.
offset (int): Specifies which or how many items should be skipped. Supports standard offset modifiers.
limit (int): Maximum number of items to return.
domain (str, optional): The tzkt.io domain to use. The domains correspond to the different Tezos networks. Defaults to https://api.tzkt.io.
Returns:
list
Examples:
>>> level = 100000
>>> double_endorsings = DoubleEndorsing.get(level__gt=level)
"""
path = 'v1/operations/double_endorsing/'
optional_base_params = ['anyof', 'accuser', 'offender', 'level', 'timestamp'] + list(cls.pagination_parameters)
params, _ = cls.prepare_modifiers(kwargs, include=optional_base_params)
response = cls._request(path, params=params, **kwargs)
data = response.json()
output = [cls.from_api(item) for item in data]
return output
@classmethod
def by_hash(cls, hash, **kwargs):
"""
Returns a double endorsing operation with specified hash.
Parameters:
hash (str): Operation hash
Keyword Parameters:
quote (list|tuple|set): list of ticker symbols to inject historical prices into response
domain (str, optional): The tzkt.io domain to use. The domains correspond to the different Tezos networks. Defaults to https://api.tzkt.io.
Returns:
list
Examples:
>>> hash = 'dadfa...'
>>> double_endorsing = DoubleEndorsing.by_hash(hash)
"""
return cls._type_by_hash('double_endorsing', hash, **kwargs)
@classmethod
def count(cls, **kwargs):
"""
Returns the total number of double endorsing operations.
Keyword Parameters:
level (int): Filters operations by level. Supports standard modifiers.
timestamp (date|datetime): Filters operations by timestamp. Supports standard modifiers.
domain (str, optional): The tzkt.io domain to use. The domains correspond to the different Tezos networks. Defaults to https://api.tzkt.io.
Returns:
int
Examples:
>>> level = 100000
>>> count = DoubleEndorsing.count(level__gt=level)
"""
return cls._type_count('double_endorsing', **kwargs)
class NonceRevelation(OperationBase):
__slots__ = ('type', 'id', 'level', 'timestamp', 'block', 'hash', 'baker', 'baker_rewards', 'sender', 'revealed_level', 'quote')
def __init__(self, type, id, level, timestamp, block, hash, baker, baker_rewards, sender, revealed_level, quote):
super(NonceRevelation, self).__init__(type, id, level, timestamp, block)
self.hash = hash
self.baker = baker
self.baker_rewards = baker_rewards
self.sender = sender
self.revealed_level = revealed_level
self.quote = quote
def __repr__(self):
return '<%s %s id=%r, level=%r, timestamp=%s, hash=%r, sender=%r, baker=%r, baker_rewards=%r>' % (self.__class__.__name__, id(self), self.id, self.level, self.timestamp, self.hash, self.sender, self.baker, self.baker_rewards)
@classmethod
def from_api(cls, data):
data = super(NonceRevelation, cls).from_api(data)
type = data['type']
id = data['id']
level = data['level']
timestamp = data['timestamp']
if timestamp:
timestamp = cls.to_datetime(timestamp)
block = data['block']
hash = data['hash']
baker = data['baker']
baker_rewards = data['bakerRewards']
sender = data['sender']
revealed_level = data['revealedLevel']
quote = data['quote']
return cls(type, id, level, timestamp, block, hash, baker, baker_rewards, sender, revealed_level, quote)
@classmethod
def get(cls, **kwargs):
"""
Returns a list of nonce revelation operations.
Keyword Parameters:
anyof (str): Filters operations by any of the specified fields. Example: `anyof__baker__sender=tz1...` will return operations where baker OR sender is equal to the specified value. This parameter is useful when you need to retrieve all operations associated with a specified account.
baker (str): Filters operations by baker. Support standard modifiers.
sender (str): Filters operations by sender. Support standard modifiers.
level (int): Filters operations by level. Supports standard modifiers.
timestamp (date|datetime): Filters operations by timestamp. Supports standard modifiers.
sort (str): Sorts endorsements by specified field. Supported fields: id (default), level. Supports sorting modifiers.
offset (int): Specifies which or how many items should be skipped. Supports standard offset modifiers.
limit (int): Maximum number of items to return.
domain (str, optional): The tzkt.io domain to use. The domains correspond to the different Tezos networks. Defaults to https://api.tzkt.io.
Returns:
list
Examples:
>>> level = 100000
>>> nonce_revelations = NonceRevelation.get(level__gt=level)
"""
path = 'v1/operations/nonce_revelations/'
optional_base_params = ['anyof', 'baker', 'sender', 'level', 'timestamp'] + list(cls.pagination_parameters)
params, _ = cls.prepare_modifiers(kwargs, include=optional_base_params)
response = cls._request(path, params=params, **kwargs)
data = response.json()
output = [cls.from_api(item) for item in data]
return output
@classmethod
def by_hash(cls, hash, **kwargs):
"""
Returns a nonce revelation operation with specified hash.
Parameters:
hash (str): Operation hash
Keyword Parameters:
quote (list|tuple|set): list of ticker symbols to inject historical prices into response
domain (str, optional): The tzkt.io domain to use. The domains correspond to the different Tezos networks. Defaults to https://api.tzkt.io.
Returns:
list
Examples:
>>> hash = 'dadfa...'
>>> nonce_revelation = NonceRevelation.by_hash(hash)
"""
return cls._type_by_hash('nonce_revelations', hash, **kwargs)
@classmethod
def count(cls, **kwargs):
"""
Returns the total number of nonce revelation operations.
Keyword Parameters:
level (int): Filters operations by level. Supports standard modifiers.
timestamp (date|datetime): Filters operations by timestamp. Supports standard modifiers.
domain (str, optional): The tzkt.io domain to use. The domains correspond to the different Tezos networks. Defaults to https://api.tzkt.io.
Returns:
int
Examples:
>>> level = 100000
>>> count = NonceRevelation.count(level__gt=level)
"""
return cls._type_count('nonce_revelations', **kwargs)
class Delegation(OperationBase):
"""
Attributes:
type (str): The type of operation.
id (str): The unique identifier of the operation.
level (int): The level at which the operation was executed.
timestamp (datetime): The time at which the operation was executed.
block (str): The hash representing the block that stores the operation.
hash (str): The hash representing the operations group containing the operation.
counter (int): The counter used to ensure the operation is not executed multiple times by the network.
initiator (str): The address of the account that initiated the delegation operation.
sender (str): The account address that is delegating tokens to the new_delegate.
nonce (int):
gas_limit (int): The maximum microtez to be spent to execute the operation.
gas_used (int): The microtez spent to execute the operation.
storage_limit (int): The maximum amount of storage to be used by the operation.
storage_used (int): The amount of storage used by the operation.
baker_fee (int): The microtez sent to the baker for executing the operation.
amount (int): The microtez delegated to the new_delegate
prev_delegate (str): The account address the sender previously delegated to.
new_delegate (str): The account address the sender is delegating the amount to.
quote (float): The value of 1.0 tez denominated in the chosen currency.
"""
__slots__ = ('type', 'id', 'level', 'timestamp', 'block', 'hash', 'counter', 'initiator', 'sender', 'nonce', 'gas_limit', 'gas_used', 'storage_limit', 'storage_used', 'baker_fee', 'amount', 'prev_delegate', 'new_delegate', 'status', 'errors', 'quote')
def __init__(self, type, id, level, timestamp, block, hash, counter, initiator, sender, nonce, gas_limit, gas_used, storage_limit, storage_used, baker_fee, amount, prev_delegate, new_delegate, status, errors, quote):
super(Delegation, self).__init__(type, id, level, timestamp, block)
self.hash = hash
self.counter = counter
self.initiator = initiator
self.sender = sender
self.nonce = nonce
self.gas_limit = gas_limit
self.gas_used = gas_used
self.storage_limit = storage_limit
self.storage_used = storage_used
self.baker_fee = baker_fee
self.amount = amount
self.prev_delegate = prev_delegate
self.new_delegate = new_delegate
self.status = status
self.errors = errors
self.quote = quote
def __repr__(self):
return '<%s %s id=%r, level=%r, timestamp=%s, hash=%r, sender=%r, amount=%r, new_delegate=%r>' % (self.__class__.__name__, id(self), self.id, self.level, self.timestamp, self.hash, self.sender, self.amount, self.new_delegate)
@classmethod
def from_api(cls, data):
data = super(Delegation, cls).from_api(data)
type = data['type']
id = data['id']
level = data['level']
timestamp = data['timestamp']
if timestamp:
timestamp = cls.to_datetime(timestamp)
block = data['block']
hash = data['hash']
counter = data['counter']
initiator = data['initiator']
sender = data['sender']
nonce = data['nonce']
gas_limit = data['gasLimit']
gas_used = data['gasUsed']
storage_limit = data['storageLimit']
storage_used = data['storageUsed']
baker_fee = data['bakerFee']
amount = data['amount']
prev_delegate = data['prevDelegate']
new_delegate = data['newDelegate']
status = data['status']
errors = data['errors']
quote = data['quote']
return cls(type, id, level, timestamp, block, hash, counter, initiator, sender, nonce, gas_limit, gas_used, storage_limit, storage_used, baker_fee, amount, prev_delegate, new_delegate, status, errors, quote)
@classmethod
def get(cls, **kwargs):
"""
Returns a list of delegation operations.
Keyword Parameters:
anyof (str): Filters delegations by any of the specified fields. Example: `anyof__prevDelegate__newDelegate='tz1...'` will return operations where prevDelegate OR newDelegate is equal to the specified value. This parameter is useful when you need to retrieve all delegations associated with a specified account.
initiator (str): Filters operations by initiator. Support standard modifiers.
sender (str): Filters operations by sender. Support standard modifiers.
prevDelegate (str): Filters operations by prev delegate. Supports standard modifiers.
newDelegate (str): Filters operations by new delegate. Supports standard modifiers.
level (int): Filters operations by level. Supports standard modifiers.
timestamp (date|datetime): Filters operations by timestamp. Supports standard modifiers.
status (str): Filters delegations by operation status (applied, failed, backtracked, skipped).
sort (str): Sorts delegations by specified field. Supported fields: id (default), level, gasUsed, bakerFee. Supports sorting modifiers.
offset (int): Specifies which or how many items should be skipped. Supports standard offset modifiers.
limit (int): Maximum number of items to return.
domain (str, optional): The tzkt.io domain to use. The domains correspond to the different Tezos networks. Defaults to https://api.tzkt.io.
Returns:
list
Examples:
>>> level = 100000
>>> delegations = Delegation.get(level__gt=level)
"""
path = 'v1/operations/delegations/'
optional_base_params = ['anyof', 'initiator', 'sender', 'prevDelegate', 'newDelegate', 'level', 'status', 'timestamp'] + list(cls.pagination_parameters)
params, _ = cls.prepare_modifiers(kwargs, include=optional_base_params)
response = cls._request(path, params=params, **kwargs)
data = response.json()
output = [cls.from_api(item) for item in data]
return output
@classmethod
def by_hash(cls, hash, **kwargs):
"""
Returns a delegation operation with specified hash.
Parameters:
hash (str): Operation hash
Keyword Parameters:
quote (list|tuple|set): list of ticker symbols to inject historical prices into response
domain (str, optional): The tzkt.io domain to use. The domains correspond to the different Tezos networks. Defaults to https://api.tzkt.io.
Returns:
list
Examples:
>>> hash = 'dadfa...'
>>> delegation = Delegation.by_hash(hash)
"""
return cls._type_by_hash('delegations', hash, **kwargs)
@classmethod
def count(cls, **kwargs):
"""
Returns the total number of delegation operations.
Keyword Parameters:
level (int): Filters operations by level. Supports standard modifiers.
timestamp (date|datetime): Filters operations by timestamp. Supports standard modifiers.
domain (str, optional): The tzkt.io domain to use. The domains correspond to the different Tezos networks. Defaults to https://api.tzkt.io.
Returns:
int
Examples:
>>> level = 100000
>>> count = Delegation.count(level__gt=level)
"""
return cls._type_count('delegations', **kwargs)
class Origination(OperationBase):
__slots__ = ('type', 'id', 'level', 'timestamp', 'block', 'hash', 'counter', 'initiator', 'sender', 'nonce', 'gas_limit', 'gas_used', 'storage_limit', 'storage_used', 'baker_fee', 'storage_fee', 'allocation_fee', 'contract_balance', 'contract_manager', 'contract_delegate', 'code', 'storage', 'diffs', 'status', 'errors', 'originated_contract', 'quote')
def __init__(self, type, id, level, timestamp, block, hash, counter, initiator, sender, nonce, gas_limit, gas_used, storage_limit, storage_used, baker_fee, storage_fee, allocation_fee, contract_balance, contract_manager, contract_delegate, code, storage, diffs, status, errors, originated_contract, quote):
super(Origination, self).__init__(type, id, level, timestamp, block)
self.hash = hash
self.counter = counter
self.initiator = initiator
self.sender = sender
self.nonce = nonce
self.gas_limit = gas_limit
self.gas_used = gas_used
self.storage_limit = storage_limit
self.storage_used = storage_used
self.baker_fee = baker_fee
self.storage_fee = storage_fee
self.allocation_fee = allocation_fee
self.contract_balance = contract_balance
self.contract_manager = contract_manager
self.contract_delegate = contract_delegate
self.code = code
self.storage = storage
self.diffs = diffs
self.status = status
self.errors = errors
self.originated_contract = originated_contract
self.quote = quote
def __repr__(self):
return '<%s %s id=%r, level=%r, timestamp=%s, hash=%r, sender=%r, contract_balance=%r, originated_contract=%r>' % (self.__class__.__name__, id(self), self.id, self.level, self.timestamp, self.hash, self.sender, self.contract_balance, self.originated_contract)
@classmethod
def from_api(cls, data):
data = super(Origination, cls).from_api(data)
type = data['type']
id = data['id']
level = data['level']
timestamp = data['timestamp']
if timestamp:
timestamp = cls.to_datetime(timestamp)
block = data['block']
hash = data['hash']
counter = data['counter']
initiator = data['initiator']
sender = data['sender']
nonce = data['nonce']
gas_limit = data['gasLimit']
gas_used = data['gasUsed']
storage_limit = data['storageLimit']
storage_used = data['storageUsed']
baker_fee = data['bakerFee']
storage_fee = data['storageFee']
allocation_fee = data['allocationFee']
contract_balance = data['contractBalance']
contract_manager = data['contractManager']
contract_delegate = data['contractDelegate']
code = data['code']
storage = data['storage']
diffs = data['diffs']
status = data['status']
errors = data['errors']
originated_contract = data['originatedContract']
quote = data['quote']
return cls(type, id, level, timestamp, block, hash, counter, initiator, sender, nonce, gas_limit, gas_used, storage_limit, storage_used, baker_fee, storage_fee, allocation_fee, contract_balance, contract_manager, contract_delegate, code, storage, diffs, status, errors, originated_contract, quote)
@classmethod
def get(cls, **kwargs):
"""
Returns a list of origination operations.
Keyword Parameters:
anyof (str): Filters operations by any of the specified fields. Example: `anyof__sender__initiator='tz1...'` will return operations where sender OR initiator is equal to the specified value. This parameter is useful when you need to retrieve all originations associated with a specified account.
initiator (str): Filters operations by initiator. Support standard modifiers.
sender (str): Filters operations by sender. Support standard modifiers.
contractManager (str): Filters origination operations by manager. Supports standard modifiers.
contractDelegate (str): Filters origination operations by delegate. Supports standard modifiers.
originatedContract (str): Filters origination operations by originated contract. Supports standard modifiers.
typeHash (int): Filters origination operations by 32-bit hash of originated contract parameter and storage types (helpful for searching originations of similar contracts). Supports standard modifiers.
codeHash (int): Filters origination operations by 32-bit hash of originated contract code (helpful for searching originations of same contracts). Supports standard modifiers.
level (int): Filters operations by level. Supports standard modifiers.
timestamp (date|datetime): Filters operations by timestamp. Supports standard modifiers.
status (str): Filters origination operations by operation status (applied, failed, backtracked, skipped).
sort (str): Sorts originations by specified field. Supported fields: id (default), level, gasUsed, storageUsed, bakerFee, storageFee, allocationFee, contractBalance. Supports sorting modifiers.
offset (int): Specifies which or how many items should be skipped. Supports standard offset modifiers.
limit (int): Maximum number of items to return.
domain (str, optional): The tzkt.io domain to use. The domains correspond to the different Tezos networks. Defaults to https://api.tzkt.io.
Returns:
list
Examples:
>>> level = 100000
>>> originations = Origination.get(level__gt=level)
"""
path = 'v1/operations/originations/'
optional_base_params = ['anyof', 'initiator', 'sender', 'contractManager', 'contractDelegate', 'originatedContract', 'typeHash', 'codeHash', 'level', 'timestamp'] + list(cls.pagination_parameters)
params, _ = cls.prepare_modifiers(kwargs, include=optional_base_params)
response = cls._request(path, params=params, **kwargs)
data = response.json()
output = [cls.from_api(item) for item in data]
return output
@classmethod
def by_hash(cls, hash, **kwargs):
"""
Returns an origination operation with specified hash.
Parameters:
hash (str): Operation hash
Keyword Parameters:
quote (list|tuple|set): list of ticker symbols to inject historical prices into response
domain (str, optional): The tzkt.io domain to use. The domains correspond to the different Tezos networks. Defaults to https://api.tzkt.io.
Returns:
list
Examples:
>>> hash = 'dadfa...'
>>> origination = Origination.by_hash(hash)
"""
return cls._type_by_hash('originations', hash, **kwargs)
@classmethod
def count(cls, **kwargs):
"""
Returns the total number of origination operations.
Keyword Parameters:
level (int): Filters operations by level. Supports standard modifiers.
timestamp (date|datetime): Filters operations by timestamp. Supports standard modifiers.
domain (str, optional): The tzkt.io domain to use. The domains correspond to the different Tezos networks. Defaults to https://api.tzkt.io.
Returns:
int
Examples:
>>> level = 100000
>>> count = Origination.count(level__gt=level)
"""
return cls._type_count('originations', **kwargs)
class Transaction(OperationBase):
"""
Attributes:
type (str): The type of operation.
id (str): The unique identifier of the operation.
level (int): The level at which the operation was executed.
timestamp (datetime): The time at which the operation was executed.
block (str): The hash representing the block that stores the operation.
hash (str): The hash representing the operations group containing the operation.
counter (int): The counter used to ensure the operation is not executed multiple times by the network.
initiator (str): The address of the account that initiated the delegation operation.
sender (str): The account address that is sending tokens.
target (str): The account address that is receiving tokens.
quote (float): The value of 1.0 tez denominated in the chosen currency.
nonce (int):
gas_limit (int): The maximum microtez to be spent to execute the operation.
gas_used (int): The microtez spent to execute the operation.
storage_limit (int): The maximum amount of storage to be used by the operation.
storage_used (int): The amount of storage used by the operation.
baker_fee (int): The microtez sent to the baker for executing the operation.
amount (int): The microtez sent from the sender to the target.
parameter (object): Parameter passed into the smart contract.
parameters (object): Parameters passed into the smart contract.
storage (object): Storage data about the operation.
diffs (object): The changes made to storage.
status (str): current status of the operation.
has_internals (bool): Indicates if the operation is internal or not.
"""
__slots__ = ('type', 'id', 'level', 'timestamp', 'block', 'hash', 'counter', 'initiator', 'sender', 'target', 'quote', 'nonce', 'gas_limit', 'gas_used', 'storage_limit', 'storage_used', 'baker_fee', 'storage_fee', 'allocation_fee', 'amount', 'parameter', 'parameters', 'storage', 'diffs', 'status', 'has_internals')
def __init__(self, type, id, level, timestamp, block, hash, counter, initiator, sender, target, quote, nonce, gas_limit, gas_used, storage_limit, storage_used, baker_fee, storage_fee, allocation_fee, amount, parameter, parameters, storage, diffs, status, has_internals):
super(Transaction, self).__init__(type, id, level, timestamp, block)
self.hash = hash
self.counter = counter
self.initiator = initiator
self.sender = sender
self.target = target
self.quote = quote
self.nonce = nonce
self.gas_limit = gas_limit
self.gas_used = gas_used
self.storage_limit = storage_limit
self.storage_used = storage_used
self.baker_fee = baker_fee
self.storage_fee = storage_fee
self.allocation_fee = allocation_fee
self.amount = amount
self.parameter = parameter
self.parameters = parameters
self.storage = storage
self.diffs = diffs
self.status = status
self.has_internals = has_internals
def __repr__(self):
return '<%s %s id=%r, level=%r, timestamp=%s, hash=%r, sender=%r, target=%r, amount=%r>' % (self.__class__.__name__, id(self), self.id, self.level, self.timestamp, self.hash, self.sender, self.target, self.amount)
@classmethod
def from_api(cls, data):
data = super(Transaction, cls).from_api(data)
type = data['type']
id = data['id']
level = data['level']
timestamp = data['timestamp']
if timestamp:
timestamp = cls.to_datetime(timestamp)
block = data['block']
hash = data['hash']
counter = data['counter']
initiator = data['initiator']
sender = data['sender']
target = data['target']
quote = data['quote']
nonce = data['nonce']
gas_limit = data['gasLimit']
gas_used = data['gasUsed']
storage_limit = data['storageLimit']
storage_used = data['storageUsed']
baker_fee = data['bakerFee']
storage_fee = data['storageFee']
allocation_fee = data['allocationFee']
amount = data['amount']
parameter = data['parameter']
parameters = data.get('parameters')
storage = data['storage']
diffs = data['diffs']
status = data['status']
has_internals = data['hasInternals']
return cls(type, id, level, timestamp, block, hash, counter, initiator, sender, target, quote, nonce, gas_limit, gas_used, storage_limit, storage_used, baker_fee, storage_fee, allocation_fee, amount, parameter, parameters, storage, diffs, status, has_internals)
@classmethod
def get(cls, **kwargs):
"""
Returns a list of transaction operations.
Keyword Parameters:
anyof (str): Filters operations by any of the specified fields. Example: `anyof__sender__target='tz1...'` will return operations where sender OR target is equal to the specified value. This parameter is useful when you need to retrieve all transactions associated with a specified account.
initiator (str): Filters operations by initiator. Support standard modifiers.
sender (str): Filters operations by sender. Support standard modifiers.
target (str): Filters operations by target. Support standard modifiers.
amount (int): Filters operations by amount (microtez). Support standard modifiers.
level (int): Filters operations by level. Supports standard modifiers.
timestamp (date|datetime): Filters operations by timestamp. Supports standard modifiers.
entrypoint (str): Filters transactions by entrypoint called on the target contract. Supports standard modifiers.
parameter (str): Filters transactions by parameter value. Note, this query parameter supports the following format: `?parameter{__path?}{__mode?}=...`, so you can specify a path to a particular field to filter by, for example: `?parameter__token_id=...` or `?parameter__sigs__0__ne=...`.
hasInternals (bool): Filters transactions by presence of internal operations.
status (str): Filters origination operations by operation status (applied, failed, backtracked, skipped).
sort (str): Sorts transactions by specified field. Supported fields: id (default), level, gasUsed, storageUsed, bakerFee, storageFee, allocationFee, amount. Supports sorting modifiers.
offset (int): Specifies which or how many items should be skipped. Supports standard offset modifiers.
limit (int): Maximum number of items to return.
domain (str, optional): The tzkt.io domain to use. The domains correspond to the different Tezos networks. Defaults to https://api.tzkt.io.
Returns:
list
Examples:
>>> level = 100000
>>> transactions = Transaction.get(level__gt=level)
"""
path = 'v1/operations/transactions/'
optional_base_params = ['anyof', 'initiator', 'sender', 'target', 'amount', 'level', 'entrypoint', 'parameter', 'status', 'timestamp'] + list(cls.pagination_parameters)
params, _ = cls.prepare_modifiers(kwargs, include=optional_base_params)
response = cls._request(path, params=params, **kwargs)
data = response.json()
output = [cls.from_api(item) for item in data]
return output
@classmethod
def by_hash(cls, hash, **kwargs):
"""
Returns a transaction operation with specified hash.
Parameters:
hash (str): Operation hash
Keyword Parameters:
quote (list|tuple|set): list of ticker symbols to inject historical prices into response
domain (str, optional): The tzkt.io domain to use. The domains correspond to the different Tezos networks. Defaults to https://api.tzkt.io.
Returns:
list
Examples:
>>> hash = 'dadfa...'
>>> transaction = Transaction.by_hash(hash)
"""
return cls._type_by_hash('transactions', hash, **kwargs)
@classmethod
def count(cls, **kwargs):
"""
Returns the total number of transaction operations.
Keyword Parameters:
level (int): Filters operations by level. Supports standard modifiers.
timestamp (date|datetime): Filters operations by timestamp. Supports standard modifiers.
status (str): Filters transactions by operation status (applied, failed, backtracked, skipped).
domain (str, optional): The tzkt.io domain to use. The domains correspond to the different Tezos networks. Defaults to https://api.tzkt.io.
Returns:
int
Examples:
>>> level = 100000
>>> count = Transaction.count(level__gt=level)
"""
return cls._type_count('transactions', **kwargs)
class Reveal(OperationBase):
"""
Attributes:
type (str): The type of operation.
id (str): The unique identifier of the operation.
level (int): The level at which the operation was executed.
timestamp (datetime): The time at which the operation was executed.
block (str): The hash representing the block that stores the operation.
hash (str): The hash representing the operations group containing the operation.
sender (str): The account address that is being revealed.
counter (int): The counter used to ensure the operation is not executed multiple times by the network.
gas_limit (int): The maximum microtez to be spent to execute the operation.
gas_used (int): The microtez spent to execute the operation.
baker_fee (int): The microtez sent to the baker for executing the operation.
status (str): current status of the operation.
errors (str): Errors that occur during the operation.
quote (float): The value of 1.0 tez denominated in the chosen currency.
"""
__slots__ = ('type', 'id', 'level', 'timestamp', 'block', 'hash', 'sender', 'counter', 'gas_limit', 'gas_used', 'baker_fee', 'status', 'errors', 'quote')
def __init__(self, type, id, level, timestamp, block, hash, sender, counter, gas_limit, gas_used, baker_fee, status, errors, quote):
super(Reveal, self).__init__(type, id, level, timestamp, block)
self.hash = hash
self.sender = sender
self.counter = counter
self.gas_limit = gas_limit
self.gas_used = gas_used
self.baker_fee = baker_fee
self.status = status
self.errors = errors
self.quote = quote
def __repr__(self):
return '<%s %s id=%r, level=%r, timestamp=%s, hash=%r, sender=%r, gas_used=%r>' % (self.__class__.__name__, id(self), self.id, self.level, self.timestamp, self.hash, self.sender, self.gas_used)
@classmethod
def from_api(cls, data):
data = super(Reveal, cls).from_api(data)
type = data['type']
id = data['id']
level = data['level']
timestamp = data['timestamp']
if timestamp:
timestamp = cls.to_datetime(timestamp)
block = data['block']
hash = data['hash']
sender = data['sender']
counter = data['counter']
gas_limit = data['gasLimit']
gas_used = data['gasUsed']
baker_fee = data['bakerFee']
status = data['status']
errors = data['errors']
quote = data['quote']
return cls(type, id, level, timestamp, block, hash, sender, counter, gas_limit, gas_used, baker_fee, status, errors, quote)
@classmethod
def get(cls, **kwargs):
"""
Returns a list of reveal operations.
Keyword Parameters:
sender (str): Filters operations by sender. Support standard modifiers.
level (int): Filters operations by level. Supports standard modifiers.
timestamp (date|datetime): Filters operations by timestamp. Supports standard modifiers.
status (str): Filters origination operations by operation status (applied, failed, backtracked, skipped).
sort (str): Sorts reveals by specified field. Supported fields: id (default), level, gasUsed, bakerFee. Supports sorting modifiers.
offset (int): Specifies which or how many items should be skipped. Supports standard offset modifiers.
limit (int): Maximum number of items to return.
domain (str, optional): The tzkt.io domain to use. The domains correspond to the different Tezos networks. Defaults to https://api.tzkt.io.
Returns:
list
Examples:
>>> level = 100000
>>> reveals = Reveal.get(level__gt=level)
"""
path = 'v1/operations/reveals/'
optional_base_params = ['sender', 'level', 'status', 'timestamp'] + list(cls.pagination_parameters)
params, _ = cls.prepare_modifiers(kwargs, include=optional_base_params)
response = cls._request(path, params=params, **kwargs)
data = response.json()
output = [cls.from_api(item) for item in data]
return output
@classmethod
def by_hash(cls, hash, **kwargs):
"""
Returns a reveal operation with specified hash.
Parameters:
hash (str): Operation hash
Keyword Parameters:
quote (list|tuple|set): list of ticker symbols to inject historical prices into response
domain (str, optional): The tzkt.io domain to use. The domains correspond to the different Tezos networks. Defaults to https://api.tzkt.io.
Returns:
list
Examples:
>>> hash = 'dadfa...'
>>> reveal = Reveal.by_hash(hash)
"""
return cls._type_by_hash('reveals', hash, **kwargs)
@classmethod
def count(cls, **kwargs):
"""
Returns the total number of reveal operations.
Keyword Parameters:
level (int): Filters operations by level. Supports standard modifiers.
timestamp (date|datetime): Filters operations by timestamp. Supports standard modifiers.
domain (str, optional): The tzkt.io domain to use. The domains correspond to the different Tezos networks. Defaults to https://api.tzkt.io.
Returns:
int
Examples:
>>> level = 100000
>>> count = Reveal.count(level__gt=level)
"""
return cls._type_count('reveals', **kwargs)
class Migration(OperationBase):
"""
Attributes:
type (str): The type of operation.
id (str): The unique identifier of the operation.
level (int): The level at which the operation was executed.
timestamp (datetime): The time at which the operation was executed.
block (str): The hash representing the block that stores the operation.
kind (str): The kind of migration of the operation.
account (str): The address of the account being migrated.
balance_change (int): The balance change of the account (denominated in microtez).
quote (float): The value of 1.0 tez denominated in the chosen currency.
"""
__slots__ = ('type', 'id', 'level', 'timestamp', 'block', 'kind', 'account', 'balance_change', 'quote')
def __init__(self, type, id, level, timestamp, block, kind, account, balance_change, quote):
super(Migration, self).__init__(type, id, level, timestamp, block)
self.kind = kind
self.account = account
self.balance_change = balance_change
self.quote = quote
def __repr__(self):
return '<%s %s id=%r, level=%r, timestamp=%s, kind=%r, account=%r, balance_change=%r,>' % (self.__class__.__name__, id(self), self.id, self.level, self.timestamp, self.kind, self.account, self.balance_change)
@classmethod
def from_api(cls, data):
data = super(Migration, cls).from_api(data)
type = data['type']
id = data['id']
level = data['level']
timestamp = data['timestamp']
if timestamp:
timestamp = cls.to_datetime(timestamp)
block = data['block']
kind = data['kind']
account = data['account']
balance_change = data['balanceChange']
quote = data['quote']
return cls(type, id, level, timestamp, block, kind, account, balance_change, quote)
@classmethod
def get(cls, **kwargs):
"""
Returns a list of migration operations.
Keyword Parameters:
account (str): Filters operations by account. Supports standard modifiers.
kind (str): Filters migration operations by kind (bootstrap, activate_delegate, airdrop, proposal_invoice). Support standard modifiers.
balanceChange (int): Filters migration operations by amount. Supports standard modifiers.
level (int): Filters operations by level. Supports standard modifiers.
timestamp (date|datetime): Filters operations by timestamp. Supports standard modifiers.
status (str): Filters origination operations by operation status (applied, failed, backtracked, skipped).
sort (str): Sorts migrations by specified field. Supported fields: id (default), level. Supports sorting modifiers.
offset (int): Specifies which or how many items should be skipped. Supports standard offset modifiers.
limit (int): Maximum number of items to return.
domain (str, optional): The tzkt.io domain to use. The domains correspond to the different Tezos networks. Defaults to https://api.tzkt.io.
Returns:
list
Examples:
>>> level = 100000
>>> migrations = Migration.get(level__gt=level)
"""
path = 'v1/operations/migrations/'
optional_base_params = ['account', 'kind', 'balanceChange', 'level', 'timestamp'] + list(cls.pagination_parameters)
params, _ = cls.prepare_modifiers(kwargs, include=optional_base_params)
response = cls._request(path, params=params, **kwargs)
data = response.json()
output = [cls.from_api(item) for item in data]
return output
@classmethod
def by_hash(cls, hash, **kwargs):
"""
Returns a migration operation with specified hash.
Parameters:
hash (str): Operation hash
Keyword Parameters:
quote (list|tuple|set): list of ticker symbols to inject historical prices into response
domain (str, optional): The tzkt.io domain to use. The domains correspond to the different Tezos networks. Defaults to https://api.tzkt.io.
Returns:
list
Examples:
>>> hash = 'dadfa...'
>>> migration = Migration.by_hash(hash)
"""
return cls._type_by_hash('migrations', hash, **kwargs)
@classmethod
def count(cls, **kwargs):
"""
Returns the total number of migration operations.
Keyword Parameters:
level (int): Filters operations by level. Supports standard modifiers.
timestamp (date|datetime): Filters operations by timestamp. Supports standard modifiers.
domain (str, optional): The tzkt.io domain to use. The domains correspond to the different Tezos networks. Defaults to https://api.tzkt.io.
Returns:
int
Examples:
>>> level = 100000
>>> count = Migration.count(level__gt=level)
"""
return cls._type_count('migrations', **kwargs)
class RevelationPenalty(OperationBase):
__slots__ = ('type', 'id', 'level', 'timestamp', 'block', 'baker', 'missed_level', 'lost_reward', 'lost_fees', 'quote')
def __init__(self, type, id, level, timestamp, block, baker, missed_level, lost_reward, lost_fees, quote):
super(RevelationPenalty, self).__init__(type, id, level, timestamp, block)
self.baker = baker
self.missed_level = missed_level
self.lost_reward = lost_reward
self.lost_fees = lost_fees
self.quote = quote
def __repr__(self):
return '<%s %s id=%r, level=%r, timestamp=%s baker=%r, missed_level=%r, lost_reward=%s>' % (self.__class__.__name__, id(self), self.id, self.level, self.timestamp, self.baker, self.missed_level, self.lost_reward)
@classmethod
def from_api(cls, data):
data = super(RevelationPenalty, cls).from_api(data)
type = data['type']
id = data['id']
level = data['level']
timestamp = data['timestamp']
if timestamp:
timestamp = cls.to_datetime(timestamp)
block = data['block']
baker = data['baker']
missed_level = data['missedLevel']
lost_reward = data['lostReward']
lost_fees = data['lostFees']
quote = data['quote']
return cls(type, id, level, timestamp, block, baker, missed_level, lost_reward, lost_fees, quote)
@classmethod
def get(cls, **kwargs):
"""
Returns a list of revelation penalty operations.
Keyword Parameters:
baker (str): Filters operations by baker. Supports standard modifiers.
level (int): Filters operations by level. Supports standard modifiers.
timestamp (date|datetime): Filters operations by timestamp. Supports standard modifiers.
status (str): Filters origination operations by operation status (applied, failed, backtracked, skipped).
sort (str): Sorts migrations by specified field. Supported fields: id (default), level. Supports sorting modifiers.
offset (int): Specifies which or how many items should be skipped. Supports standard offset modifiers.
limit (int): Maximum number of items to return.
domain (str, optional): The tzkt.io domain to use. The domains correspond to the different Tezos networks. Defaults to https://api.tzkt.io.
Returns:
list
Examples:
>>> level = 100000
>>> revelation_penalties = RevelationPenalty.get(level__gt=level)
"""
path = 'v1/operations/revelation_penalties/'
optional_base_params = ['baker', 'level', 'timestamp'] + list(cls.pagination_parameters)
params, _ = cls.prepare_modifiers(kwargs, include=optional_base_params)
response = cls._request(path, params=params, **kwargs)
data = response.json()
output = [cls.from_api(item) for item in data]
return output
@classmethod
def by_hash(cls, hash, **kwargs):
"""
Returns a revelation penalty operation with specified hash.
Parameters:
hash (str): Operation hash
Keyword Parameters:
quote (list|tuple|set): list of ticker symbols to inject historical prices into response
domain (str, optional): The tzkt.io domain to use. The domains correspond to the different Tezos networks. Defaults to https://api.tzkt.io.
Returns:
list
Examples:
>>> hash = 'dadfa...'
>>> revelation_penalty = RevelationPenalty.by_hash(hash)
"""
return cls._type_by_hash('revelation_penalties', hash, **kwargs)
@classmethod
def count(cls, **kwargs):
"""
Returns the total number of revelation penalty operations.
Keyword Parameters:
level (int): Filters operations by level. Supports standard modifiers.
timestamp (date|datetime): Filters operations by timestamp. Supports standard modifiers.
domain (str, optional): The tzkt.io domain to use. The domains correspond to the different Tezos networks. Defaults to https://api.tzkt.io.
Returns:
int
Examples:
>>> level = 100000
>>> count = RevelationPenalty.count(level__gt=level)
"""
return cls._type_count('revelation_penalties', **kwargs)
class Baking(OperationBase):
"""
Attributes:
type (str): The type of operation.
id (str): The unique identifier of the operation.
level (int): The level at which the operation was executed.
timestamp (datetime): The time at which the operation was executed.
block (str): The hash representing the block that stores the operation.
baker (str): The account address performing the baking.
priority (int): The priority of the baking operation.
reward (int): The reward for baking the block. Denominated in microtez.
fees (int): The fees for baking the block. Denominated in microtez.
quote (float): The value of 1.0 tez denominated in the chosen currency.
"""
__slots__ = ('type', 'id', 'level', 'timestamp', 'block', 'baker', 'priority', 'deposit', 'reward', 'fees', 'quote')
def __init__(self, type, id, level, timestamp, block, baker, priority, deposit, reward, fees, quote):
super(Baking, self).__init__(type, id, level, timestamp, block)
self.baker = baker
self.priority = priority
self.deposit = deposit
self.reward = reward
self.fees = fees
self.quote = quote
def __repr__(self):
return '<%s %s id=%r, level=%r, timestamp=%s baker=%r, priority=%r, reward=%r, fees=%r>' % (self.__class__.__name__, id(self), self.id, self.level, self.timestamp, self.baker, self.priority, self.reward, self.fees)
@classmethod
def from_api(cls, data):
data = super(Baking, cls).from_api(data)
type = data['type']
id = data['id']
level = data['level']
timestamp = data['timestamp']
if timestamp:
timestamp = cls.to_datetime(timestamp)
block = data['block']
baker = data['baker']
priority = data['priority']
deposit = data['deposit']
reward = data['reward']
fees = data['fees']
quote = data['quote']
return cls(type, id, level, timestamp, block, baker, priority, deposit, reward, fees, quote)
@classmethod
def get(cls, **kwargs):
"""
Returns a list of baking operations.
Keyword Parameters:
baker (str): Filters operations by baker. Supports standard modifiers.
level (int): Filters operations by level. Supports standard modifiers.
timestamp (date|datetime): Filters operations by timestamp. Supports standard modifiers.
status (str): Filters origination operations by operation status (applied, failed, backtracked, skipped).
sort (str): Sorts baking operations by specified field. Supported fields: id (default), level. Supports sorting modifiers.
offset (int): Specifies which or how many items should be skipped. Supports standard offset modifiers.
limit (int): Maximum number of items to return.
domain (str, optional): The tzkt.io domain to use. The domains correspond to the different Tezos networks. Defaults to https://api.tzkt.io.
Returns:
list
Examples:
>>> level = 100000
>>> bakings = Baking.get(level__gt=level)
"""
path = 'v1/operations/baking/'
optional_base_params = ['baker', 'level', 'timestamp'] + list(cls.pagination_parameters)
params, _ = cls.prepare_modifiers(kwargs, include=optional_base_params)
response = cls._request(path, params=params, **kwargs)
data = response.json()
output = [cls.from_api(item) for item in data]
return output
@classmethod
def by_hash(cls, hash, **kwargs):
"""
Returns a baking operation with specified hash.
Parameters:
hash (str): Operation group hash
Keyword Parameters:
quote (list|tuple|set): list of ticker symbols to inject historical prices into response
domain (str, optional): The tzkt.io domain to use. The domains correspond to the different Tezos networks. Defaults to https://api.tzkt.io.
Returns:
list
Examples:
>>> hash = 'dadfa...'
>>> baking = Baking.by_hash(hash)
"""
return cls._type_by_hash('baking', hash, **kwargs)
@classmethod
def count(cls, **kwargs):
"""
Returns the total number of baking operations.
Keyword Parameters:
level (int): Filters operations by level. Supports standard modifiers.
timestamp (date|datetime): Filters operations by timestamp. Supports standard modifiers.
domain (str, optional): The tzkt.io domain to use. The domains correspond to the different Tezos networks. Defaults to https://api.tzkt.io.
Returns:
int
Examples:
>>> level = 100000
>>> count = Baking.count(level__gt=level)
"""
return cls._type_count('baking', **kwargs)
if __name__ == '__main__':
import argparse
parser = argparse.ArgumentParser(description='Fetch Operations performed by/on a Tezos account address')
parser.add_argument('-a', '--address', type=str, required=True, help='Address of account to report on')
parser.add_argument('-l', '--limit', type=int, default=1000, help='Maximum number of operations to return')
parser.add_argument('--domain', type=str, default=Operation.domain, help='tzKT domain to fetch data from')
args = parser.parse_args()
kwargs = dict(anyof__sender__target=args.address, offset__pg=0, domain=args.domain, limit=args.limit)
# page through all pages of operations
operations = []
transactions_page = Transaction.get(**kwargs)
operations += transactions_page
while transactions_page:
kwargs['offset__pg'] += 1
transactions_page = Transaction.get(**kwargs)
operations += transactions_page
operations = sorted(operations, key=lambda x: x.timestamp)
for operation in operations:
print('%r' % operation)
| 46.460945 | 424 | 0.642071 | 11,117 | 96,360 | 5.455968 | 0.040748 | 0.03027 | 0.03792 | 0.020444 | 0.848303 | 0.83152 | 0.821809 | 0.807762 | 0.779058 | 0.766215 | 0 | 0.003932 | 0.260969 | 96,360 | 2,073 | 425 | 46.483357 | 0.847795 | 0.502096 | 0 | 0.712411 | 0 | 0.019093 | 0.146526 | 0.013225 | 0 | 0 | 0 | 0 | 0 | 1 | 0.115752 | false | 0 | 0.002387 | 0.02148 | 0.252983 | 0.001193 | 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 |
f3a3d606dfd9fccce9dba7613713e9d01173de48 | 223 | py | Python | src/recommendpy/api/__init__.py | recommend-pro/python | 8cee9442c431136b44ba260426fb377ea42b76d1 | [
"MIT"
] | null | null | null | src/recommendpy/api/__init__.py | recommend-pro/python | 8cee9442c431136b44ba260426fb377ea42b76d1 | [
"MIT"
] | null | null | null | src/recommendpy/api/__init__.py | recommend-pro/python | 8cee9442c431136b44ba260426fb377ea42b76d1 | [
"MIT"
] | 1 | 2020-09-28T12:12:47.000Z | 2020-09-28T12:12:47.000Z | from .authentication import * # NOQA
from .attribute import * # NOQA
from .catalog import * # NOQA
from .contact import * # NOQA
from .core import * # NOQA
from .messaging import * # NOQA
from .order import * # NOQA
| 27.875 | 37 | 0.686099 | 28 | 223 | 5.464286 | 0.357143 | 0.457516 | 0.54902 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.219731 | 223 | 7 | 38 | 31.857143 | 0.87931 | 0.152466 | 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 |
f3b4ad4265eea91266fcb6712971ab033426095d | 135 | py | Python | buaa/encryption/srun_md5.py | planetarian10/srun | f31949c052241f06a68ed9abef557ec391bc4642 | [
"MIT"
] | 2 | 2020-09-25T07:33:36.000Z | 2020-09-28T15:14:56.000Z | encryption/encryption/srun_md5.py | planetarian10/srun | f31949c052241f06a68ed9abef557ec391bc4642 | [
"MIT"
] | 1 | 2020-09-23T08:26:59.000Z | 2020-09-23T08:26:59.000Z | encryption/encryption/srun_md5.py | planetarian10/srun | f31949c052241f06a68ed9abef557ec391bc4642 | [
"MIT"
] | null | null | null | import hmac
import hashlib
def get_md5(password,token):
return hmac.new(token.encode(), password.encode(), hashlib.md5).hexdigest() | 33.75 | 76 | 0.762963 | 19 | 135 | 5.368421 | 0.631579 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016393 | 0.096296 | 135 | 4 | 76 | 33.75 | 0.819672 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.5 | 0.5 | 0.25 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 7 |
45ef43e01564ba3cc5a1402c87203403ef94e1d5 | 3,769 | py | Python | eda/dengue_infection_analyser.py | omiderfanmanesh/dengue-infections-prediction | 6b4e4aa4af6f6e2cc581fd7828634bbfdc446340 | [
"Apache-2.0"
] | null | null | null | eda/dengue_infection_analyser.py | omiderfanmanesh/dengue-infections-prediction | 6b4e4aa4af6f6e2cc581fd7828634bbfdc446340 | [
"Apache-2.0"
] | null | null | null | eda/dengue_infection_analyser.py | omiderfanmanesh/dengue-infections-prediction | 6b4e4aa4af6f6e2cc581fd7828634bbfdc446340 | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2021, Omid Erfanmanesh, All rights reserved.
import numpy as np
import pandas as pd
from eda.based import BasedAnalyzer
class DengueInfectionAnalyzer(BasedAnalyzer):
def __init__(self, dataset, cfg):
super(DengueInfectionAnalyzer, self).__init__(dataset, cfg)
def year(self):
pass
def week_of_year(self):
pass
def week_start_date(self):
pass
def persiann_precip_mm(self):
table = pd.pivot_table(self.df, values='PERSIANN_precip_mm', index=['year', 'month'],
columns=['city'], aggfunc=np.mean)
# print(table.query('year == "1990" & month =="5"'))
def ncep_air_temp_k(self):
table = pd.pivot_table(self.df, values='NCEP_air_temp_k', index=['year', 'month'],
columns=['city'], aggfunc=np.mean)
print(table)
def ncep_avg_temp_k(self):
table = pd.pivot_table(self.df, values='NCEP_avg_temp_k', index=['year', 'month'],
columns=['city'], aggfunc=np.mean)
print(table)
def ncep_dew_point_temp_k(self):
table = pd.pivot_table(self.df, values='NCEP_dew_point_temp_k', index=['year', 'month'],
columns=['city'], aggfunc=np.mean)
print(table)
def ncep_max_air_temp_k(self):
table = pd.pivot_table(self.df, values='NCEP_max_air_temp_k', index=['year', 'month'],
columns=['city'], aggfunc=np.mean)
print(table)
def ncep_min_air_temp_k(self):
table = pd.pivot_table(self.df, values='NCEP_min_air_temp_k', index=['year', 'month'],
columns=['city'], aggfunc=np.mean)
print(table)
def ncep_precip_kg_per_m2(self):
table = pd.pivot_table(self.df, values='NCEP_precip_kg_per_m2', index=['year', 'month'],
columns=['city'], aggfunc=np.mean)
print(table)
def ncep_humidity_percent(self):
table = pd.pivot_table(self.df, values='NCEP_humidity_percent', index=['year', 'month'],
columns=['city'], aggfunc=np.mean)
print(table)
def ncep_precip_mm(self):
table = pd.pivot_table(self.df, values='NCEP_precip_mm', index=['year', 'month'],
columns=['city'], aggfunc=np.mean)
print(table)
def ncep_humidity_g_per_kg(self):
pass
def ncep_diur_temp_rng_k(self):
pass
def avg_temp_c(self):
table = pd.pivot_table(self.df, values='avg_temp_c', index=['year', 'month'],
columns=['city'], aggfunc=np.mean)
print(table)
# avg_temp_c_is_nan = self.df[self.df['avg_temp_c'].isna()]
# ncep_avg_temp_k = avg_temp_c_is_nan.loc[:,['NCEP_avg_temp_c','avg_temp_c']]
# print(ncep_avg_temp_k)
def diur_temp_rng_c(self):
table = pd.pivot_table(self.df, values='avg_temp_c', index=['year', 'month'],
columns=['city'], aggfunc=np.mean)
print(table)
def max_temp_c(self):
table = pd.pivot_table(self.df, values='avg_temp_c', index=['year', 'month'],
columns=['city'], aggfunc=np.mean)
print(table)
def min_temp_c(self):
table = pd.pivot_table(self.df, values='avg_temp_c', index=['year', 'month'],
columns=['city'], aggfunc=np.mean)
print(table)
def precip_mm(self):
table = pd.pivot_table(self.df, values='avg_temp_c', index=['year', 'month'],
columns=['city'], aggfunc=np.mean)
print(table)
def total_cases(self):
pass
def city(self):
pass
| 35.224299 | 96 | 0.570708 | 486 | 3,769 | 4.154321 | 0.148148 | 0.047548 | 0.076275 | 0.110946 | 0.758791 | 0.70629 | 0.70629 | 0.70629 | 0.70629 | 0.687964 | 0 | 0.004094 | 0.287079 | 3,769 | 106 | 97 | 35.556604 | 0.747302 | 0.070576 | 0 | 0.52 | 0 | 0 | 0.112986 | 0.018021 | 0 | 0 | 0 | 0 | 0 | 1 | 0.293333 | false | 0.093333 | 0.04 | 0 | 0.346667 | 0.173333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 7 |
1b107493fa5745f6d1e4ea97e4696fa57c8fcf05 | 33,504 | py | Python | lib/shell.py | Mano99mano/HackerMode | 759d1c9fe73cb0dc30c535e830d020db0bc5b548 | [
"MIT"
] | null | null | null | lib/shell.py | Mano99mano/HackerMode | 759d1c9fe73cb0dc30c535e830d020db0bc5b548 | [
"MIT"
] | null | null | null | lib/shell.py | Mano99mano/HackerMode | 759d1c9fe73cb0dc30c535e830d020db0bc5b548 | [
"MIT"
] | null | null | null | # Encoded by HackerMode tool...
# Copyright: PSH-TEAM
# Follow us on telegram ( @psh_team )
import sys
import marshal
if sys.version[:3] == '3.9':
exec(marshal.loads(
b'\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x08\x00\x00\x00@\x00\x00\x00sl\x00\x00\x00d\x00Z\x00e\x00r\x10d\x01d\x02\x84!Z\x01e\x02e\x03d\x03\x83\x02\x8f(Z\x04e\x04\xa0\x05\xa1\x00Z\x06d\x04e\x06v\x01r4e\x07d\x05\x83\x01\x01\x00W\x00d\x06\x04\x00\x04\x00\x83\x03\x01\x00n\x101\x00sH0\x00\x01\x00\x01\x00\x01\x00Y\x00\x01\x00d\x02d\x06l\x08Z\x08e\te\x08\xa0\nd\x07\xa1\x01\x83\x01\x01\x00d\x06S\x00)\x08F\xe9\x01\x00\x00\x00\xe9\x00\x00\x00\x00\xda\x01rz[# Encoded by HackerMode tool...\n# Copyright: PSH-TEAM\n# Follow us on telegram ( @psh_team )z\x89please add the encode copyright to your file:\n# Encoded by HackerMode tool...\n# Copyright: PSH-TEAM\n# Follow us on telegram ( @psh_team )Ns\xb3\x1d\x00\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x08\x00\x00\x00@\x00\x00\x00sl\x00\x00\x00d\x00Z\x00e\x00r\x10d\x01d\x02\x84!Z\x01e\x02e\x03d\x03\x83\x02\x8f(Z\x04e\x04\xa0\x05\xa1\x00Z\x06d\x04e\x06v\x01r4e\x07d\x05\x83\x01\x01\x00W\x00d\x06\x04\x00\x04\x00\x83\x03\x01\x00n\x101\x00sH0\x00\x01\x00\x01\x00\x01\x00Y\x00\x01\x00d\x02d\x06l\x08Z\x08e\te\x08\xa0\nd\x07\xa1\x01\x83\x01\x01\x00d\x06S\x00)\x08F\xe9\x01\x00\x00\x00\xe9\x00\x00\x00\x00\xda\x01rz[# Encoded by HackerMode tool...\n# Copyright: PSH-TEAM\n# Follow us on telegram ( @psh_team )z\x89please add the encode copyright to your file:\n# Encoded by HackerMode tool...\n# Copyright: PSH-TEAM\n# Follow us on telegram ( @psh_team )Ns\x9c\x1b\x00\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x08\x00\x00\x00@\x00\x00\x00sl\x00\x00\x00d\x00Z\x00e\x00r\x10d\x01d\x02\x84!Z\x01e\x02e\x03d\x03\x83\x02\x8f(Z\x04e\x04\xa0\x05\xa1\x00Z\x06d\x04e\x06v\x01r4e\x07d\x05\x83\x01\x01\x00W\x00d\x06\x04\x00\x04\x00\x83\x03\x01\x00n\x101\x00sH0\x00\x01\x00\x01\x00\x01\x00Y\x00\x01\x00d\x02d\x06l\x08Z\x08e\te\x08\xa0\nd\x07\xa1\x01\x83\x01\x01\x00d\x06S\x00)\x08F\xe9\x01\x00\x00\x00\xe9\x00\x00\x00\x00\xda\x01rz[# Encoded by HackerMode tool...\n# Copyright: PSH-TEAM\n# Follow us on telegram ( @psh_team )z\x89please add the encode copyright to your file:\n# Encoded by HackerMode tool...\n# Copyright: PSH-TEAM\n# Follow us on telegram ( @psh_team )Ns\x85\x19\x00\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x08\x00\x00\x00@\x00\x00\x00sl\x00\x00\x00d\x00Z\x00e\x00r\x10d\x01d\x02\x84!Z\x01e\x02e\x03d\x03\x83\x02\x8f(Z\x04e\x04\xa0\x05\xa1\x00Z\x06d\x04e\x06v\x01r4e\x07d\x05\x83\x01\x01\x00W\x00d\x06\x04\x00\x04\x00\x83\x03\x01\x00n\x101\x00sH0\x00\x01\x00\x01\x00\x01\x00Y\x00\x01\x00d\x02d\x06l\x08Z\x08e\te\x08\xa0\nd\x07\xa1\x01\x83\x01\x01\x00d\x06S\x00)\x08F\xe9\x01\x00\x00\x00\xe9\x00\x00\x00\x00\xda\x01rz[# Encoded by HackerMode tool...\n# Copyright: PSH-TEAM\n# Follow us on telegram ( @psh_team )z\x89please add the encode copyright to your file:\n# Encoded by HackerMode tool...\n# Copyright: PSH-TEAM\n# Follow us on telegram ( @psh_team )Nsn\x17\x00\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x08\x00\x00\x00@\x00\x00\x00sl\x00\x00\x00d\x00Z\x00e\x00r\x10d\x01d\x02\x84!Z\x01e\x02e\x03d\x03\x83\x02\x8f(Z\x04e\x04\xa0\x05\xa1\x00Z\x06d\x04e\x06v\x01r4e\x07d\x05\x83\x01\x01\x00W\x00d\x06\x04\x00\x04\x00\x83\x03\x01\x00n\x101\x00sH0\x00\x01\x00\x01\x00\x01\x00Y\x00\x01\x00d\x02d\x06l\x08Z\x08e\te\x08\xa0\nd\x07\xa1\x01\x83\x01\x01\x00d\x06S\x00)\x08F\xe9\x01\x00\x00\x00\xe9\x00\x00\x00\x00\xda\x01rz[# Encoded by HackerMode tool...\n# Copyright: PSH-TEAM\n# Follow us on telegram ( @psh_team )z\x89please add the encode copyright to your file:\n# Encoded by HackerMode tool...\n# Copyright: PSH-TEAM\n# Follow us on telegram ( @psh_team )NsW\x15\x00\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x08\x00\x00\x00@\x00\x00\x00sl\x00\x00\x00d\x00Z\x00e\x00r\x10d\x01d\x02\x84!Z\x01e\x02e\x03d\x03\x83\x02\x8f(Z\x04e\x04\xa0\x05\xa1\x00Z\x06d\x04e\x06v\x01r4e\x07d\x05\x83\x01\x01\x00W\x00d\x06\x04\x00\x04\x00\x83\x03\x01\x00n\x101\x00sH0\x00\x01\x00\x01\x00\x01\x00Y\x00\x01\x00d\x02d\x06l\x08Z\x08e\te\x08\xa0\nd\x07\xa1\x01\x83\x01\x01\x00d\x06S\x00)\x08F\xe9\x01\x00\x00\x00\xe9\x00\x00\x00\x00\xda\x01rz[# Encoded by HackerMode tool...\n# Copyright: PSH-TEAM\n# Follow us on telegram ( @psh_team )z\x89please add the encode copyright to your file:\n# Encoded by HackerMode tool...\n# Copyright: PSH-TEAM\n# Follow us on telegram ( @psh_team )Ns@\x13\x00\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x08\x00\x00\x00@\x00\x00\x00sl\x00\x00\x00d\x00Z\x00e\x00r\x10d\x01d\x02\x84!Z\x01e\x02e\x03d\x03\x83\x02\x8f(Z\x04e\x04\xa0\x05\xa1\x00Z\x06d\x04e\x06v\x01r4e\x07d\x05\x83\x01\x01\x00W\x00d\x06\x04\x00\x04\x00\x83\x03\x01\x00n\x101\x00sH0\x00\x01\x00\x01\x00\x01\x00Y\x00\x01\x00d\x02d\x06l\x08Z\x08e\te\x08\xa0\nd\x07\xa1\x01\x83\x01\x01\x00d\x06S\x00)\x08F\xe9\x01\x00\x00\x00\xe9\x00\x00\x00\x00\xda\x01rz[# Encoded by HackerMode tool...\n# Copyright: PSH-TEAM\n# Follow us on telegram ( @psh_team )z\x89please add the encode copyright to your file:\n# Encoded by HackerMode tool...\n# Copyright: PSH-TEAM\n# Follow us on telegram ( @psh_team )Ns)\x11\x00\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x08\x00\x00\x00@\x00\x00\x00sl\x00\x00\x00d\x00Z\x00e\x00r\x10d\x01d\x02\x84!Z\x01e\x02e\x03d\x03\x83\x02\x8f(Z\x04e\x04\xa0\x05\xa1\x00Z\x06d\x04e\x06v\x01r4e\x07d\x05\x83\x01\x01\x00W\x00d\x06\x04\x00\x04\x00\x83\x03\x01\x00n\x101\x00sH0\x00\x01\x00\x01\x00\x01\x00Y\x00\x01\x00d\x02d\x06l\x08Z\x08e\te\x08\xa0\nd\x07\xa1\x01\x83\x01\x01\x00d\x06S\x00)\x08F\xe9\x01\x00\x00\x00\xe9\x00\x00\x00\x00\xda\x01rz[# Encoded by HackerMode tool...\n# Copyright: PSH-TEAM\n# Follow us on telegram ( @psh_team )z\x89please add the encode copyright to your file:\n# Encoded by HackerMode tool...\n# Copyright: PSH-TEAM\n# Follow us on telegram ( @psh_team )Ns\x12\x0f\x00\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x08\x00\x00\x00@\x00\x00\x00sl\x00\x00\x00d\x00Z\x00e\x00r\x10d\x01d\x02\x84!Z\x01e\x02e\x03d\x03\x83\x02\x8f(Z\x04e\x04\xa0\x05\xa1\x00Z\x06d\x04e\x06v\x01r4e\x07d\x05\x83\x01\x01\x00W\x00d\x06\x04\x00\x04\x00\x83\x03\x01\x00n\x101\x00sH0\x00\x01\x00\x01\x00\x01\x00Y\x00\x01\x00d\x02d\x06l\x08Z\x08e\te\x08\xa0\nd\x07\xa1\x01\x83\x01\x01\x00d\x06S\x00)\x08F\xe9\x01\x00\x00\x00\xe9\x00\x00\x00\x00\xda\x01rz[# Encoded by HackerMode tool...\n# Copyright: PSH-TEAM\n# Follow us on telegram ( @psh_team )z\x89please add the encode copyright to your file:\n# Encoded by HackerMode tool...\n# Copyright: PSH-TEAM\n# Follow us on telegram ( @psh_team )Ns\xfb\x0c\x00\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x08\x00\x00\x00@\x00\x00\x00sl\x00\x00\x00d\x00Z\x00e\x00r\x10d\x01d\x02\x84!Z\x01e\x02e\x03d\x03\x83\x02\x8f(Z\x04e\x04\xa0\x05\xa1\x00Z\x06d\x04e\x06v\x01r4e\x07d\x05\x83\x01\x01\x00W\x00d\x06\x04\x00\x04\x00\x83\x03\x01\x00n\x101\x00sH0\x00\x01\x00\x01\x00\x01\x00Y\x00\x01\x00d\x02d\x06l\x08Z\x08e\te\x08\xa0\nd\x07\xa1\x01\x83\x01\x01\x00d\x06S\x00)\x08F\xe9\x01\x00\x00\x00\xe9\x00\x00\x00\x00\xda\x01rz[# Encoded by HackerMode tool...\n# Copyright: PSH-TEAM\n# Follow us on telegram ( @psh_team )z\x89please add the encode copyright to your file:\n# Encoded by HackerMode tool...\n# Copyright: PSH-TEAM\n# Follow us on telegram ( @psh_team )Ns\xe4\n\x00\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x08\x00\x00\x00@\x00\x00\x00sl\x00\x00\x00d\x00Z\x00e\x00r\x10d\x01d\x02\x84!Z\x01e\x02e\x03d\x03\x83\x02\x8f(Z\x04e\x04\xa0\x05\xa1\x00Z\x06d\x04e\x06v\x01r4e\x07d\x05\x83\x01\x01\x00W\x00d\x06\x04\x00\x04\x00\x83\x03\x01\x00n\x101\x00sH0\x00\x01\x00\x01\x00\x01\x00Y\x00\x01\x00d\x02d\x06l\x08Z\x08e\te\x08\xa0\nd\x07\xa1\x01\x83\x01\x01\x00d\x06S\x00)\x08F\xe9\x01\x00\x00\x00\xe9\x00\x00\x00\x00\xda\x01rz[# Encoded by HackerMode tool...\n# Copyright: PSH-TEAM\n# Follow us on telegram ( @psh_team )z\x89please add the encode copyright to your file:\n# Encoded by HackerMode tool...\n# Copyright: PSH-TEAM\n# Follow us on telegram ( @psh_team )Ns\xcd\x08\x00\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x08\x00\x00\x00@\x00\x00\x00s"\x01\x00\x00d\x00Z\x00e\x00r\x10d\x01d\x02\x84!Z\x01e\x02e\x03d\x03\x83\x02\x8f(Z\x04e\x04\xa0\x05\xa1\x00Z\x06d\x04e\x06v\x01r4e\x07d\x05\x83\x01\x01\x00W\x00d\x06\x04\x00\x04\x00\x83\x03\x01\x00n\x101\x00sH0\x00\x01\x00\x01\x00\x01\x00Y\x00\x01\x00d\x02d\x06l\x08Z\x08d\x02d\x06l\tZ\td\x02d\x06l\nZ\nd\x02d\x06l\x0bZ\x0bd\x02d\x07l\x0cm\x0cZ\x0c\x01\x00d\x08Z\re\x08j\x0e\xa0\x0fe\rd\t\xa1\x02Z\x10e\x08j\x0e\xa0\x0fe\rd\n\xa1\x02Z\x11d\x0bZ\x12d\x0cd\r\x84\x00Z\x13d\x0ed\x0f\x84\x00Z\x14e\x15d\x10k\x02\x90\x01r\x1ee\x16e\tj\x17\x83\x01d\x01k\x04\x90\x01r\x1ee\x08j\x18\xa0\x19d\x11\xa1\x01d\x06k\x02r\xf0e\x1ae\tj\x17d\x01\x19\x00\x83\x01\x01\x00e\x07\x83\x00\x01\x00e\tj\x17d\x01\x19\x00d\rk\x02\x90\x01r\x08e\x13\x83\x00\x01\x00n\x16e\tj\x17d\x01\x19\x00d\x0fk\x02\x90\x01r\x1ee\x14\x83\x00\x01\x00d\x06S\x00)\x12F\xe9\x01\x00\x00\x00\xe9\x00\x00\x00\x00\xda\x01rz[# Encoded by HackerMode tool...\n# Copyright: PSH-TEAM\n# Follow us on telegram ( @psh_team )z\x89please add the encode copyright to your file:\n# Encoded by HackerMode tool...\n# Copyright: PSH-TEAM\n# Follow us on telegram ( @psh_team )N)\x01\xda\x08datetimez\x12/sdcard/HackerModez\x06.tokenz\x07.configi\x80Q\x01\x00c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x05\x00\x00\x00\n\x00\x00\x00C\x00\x00\x00s\x02\x01\x00\x00z\xb8t\x00t\x01d\x01\x83\x02\x8f\x1c}\x00|\x00\xa0\x02\xa1\x00\xa0\x03\xa1\x00}\x01W\x00d\x00\x04\x00\x04\x00\x83\x03\x01\x00n\x101\x00s.0\x00\x01\x00\x01\x00\x01\x00Y\x00\x01\x00|\x01\xa0\x04d\x02\xa1\x01d\x03\x19\x00d\x00d\x00d\x03\x85\x03\x19\x00}\x01t\x05\xa0\x06|\x01\xa1\x01\xa0\x07d\x04\xa1\x01}\x01t\x08\xa0\t|\x01d\x05\xa1\x02}\x02t\x08\xa0\n\xa1\x00|\x02\x18\x00}\x03t\x0b|\x03\xa0\x0c\xa1\x00k\x04r\x9et\x0b|\x03\xa0\x0c\xa1\x00\x18\x00t\x0bk\x00r\x9et\rd\x06\x83\x01\x01\x00n\x18t\rd\x07\x83\x01\x01\x00t\rd\x08\x83\x01\x01\x00t\rd\t\x83\x01\x01\x00W\x00nD\x04\x00t\x0ey\xfc\x01\x00}\x04\x01\x00z,t\r|\x04\x83\x01\x01\x00t\rd\x07\x83\x01\x01\x00t\rd\x08\x83\x01\x01\x00t\rd\t\x83\x01\x01\x00W\x00Y\x00d\x00}\x04~\x04n\nd\x00}\x04~\x040\x000\x00d\x00S\x00)\nNr\x03\x00\x00\x00z\x06token=\xe9\xff\xff\xff\xffz\x05utf-8z\x14%Y-%m-%d %H:%M:%S.%f\xda\x03tiUz\x0b# Time out!z=# Refresh the time from within the \'Hacker Mode\' application.\xfa3# https://github.com/Arab-developers/HackerMode-Apk)\x0f\xda\x04open\xda\nPATH_TOKEN\xda\x04read\xda\x05strip\xda\x05split\xda\x06base64Z\tb64decode\xda\x06decoder\x04\x00\x00\x00\xda\x08strptimeZ\x03now\xda\x0eDAY_IN_SECONDSZ\rtotal_seconds\xda\x05print\xda\tException)\x05\xda\x04file\xda\x04data\xda\x04date\xda\x04time\xda\x01e\xa9\x00r\x18\x00\x00\x00\xfa\n.shell.pyor\x06\x00\x00\x00\x1b\x00\x00\x00s&\x00\x00\x00\x00\x01\x02\x01\x0c\x01*\x01\x18\x01\x10\x01\x0c\x01\x0c\x01\x0c\x01\x0e\xff\x02\x02\n\x02\x08\x01\x08\x01\x0c\x01\x0e\x01\x08\x01\x08\x01\x08\x01r\x06\x00\x00\x00c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x06\x00\x00\x00\t\x00\x00\x00C\x00\x00\x00s\xf8\x00\x00\x00z\xb4t\x00\xa0\x01d\x01\xa1\x01\xa0\x02\xa1\x00}\x00t\x03t\x04d\x02\x83\x02\x8f\x18}\x01|\x01\xa0\x05\xa1\x00}\x02W\x00d\x00\x04\x00\x04\x00\x83\x03\x01\x00n\x101\x00s80\x00\x01\x00\x01\x00\x01\x00Y\x00\x01\x00i\x00}\x03|\x02D\x00]*}\x04d\x03|\x04v\x00rJ|\x04\xa0\x06d\x03\xa1\x01}\x05t\x07|\x05d\x04\x19\x00\x83\x01|\x03|\x05d\x05\x19\x00<\x00qJt\x00\xa0\x01d\x01\xa1\x01\xa0\x02\xa1\x00}\x00|\x00|\x03d\x06\x19\x00k\x02r\x9at\x08d\x07\x83\x01\x01\x00n\x18t\x08d\x08|\x00\x9b\x00d\t\x9d\x03\x83\x01\x01\x00t\x08d\n\x83\x01\x01\x00W\x00n>\x01\x00\x01\x00\x01\x00z\x1ct\x08d\x08|\x00\x9b\x00d\t\x9d\x03\x83\x01\x01\x00t\x08d\n\x83\x01\x01\x00W\x00n\x14\x01\x00\x01\x00\x01\x00t\x08d\x07\x83\x01\x01\x00Y\x00n\x020\x00Y\x00n\x020\x00d\x00S\x00)\x0bNzXhttps://hackermode-c542d-default-rtdb.europe-west1.firebasedatabase.app/app_version.jsonr\x03\x00\x00\x00\xfa\x01=r\x01\x00\x00\x00r\x02\x00\x00\x00\xda\x07version\xda\x04apVUz## please update HakcerMode app to \'z\x02\'!r\x07\x00\x00\x00)\t\xda\x08requests\xda\x03getZ\x04jsonr\x08\x00\x00\x00\xda\x0bPATH_CONFIG\xda\treadlinesr\x0c\x00\x00\x00\xda\x04evalr\x11\x00\x00\x00)\x06Z\x0bserver_datar\x13\x00\x00\x00r\x14\x00\x00\x00Z\x06config\xda\x04line\xda\x03rowr\x18\x00\x00\x00r\x18\x00\x00\x00r\x19\x00\x00\x00r\x1c\x00\x00\x001\x00\x00\x00s0\x00\x00\x00\x00\x01\x02\x01\x04\x01\x02\xff\x08\x03\x0c\x01&\x02\x04\x01\x08\x01\x08\x01\n\x01\x16\x01\x04\x01\x02\xff\x08\x02\x0c\x01\n\x02\x10\x01\x0c\x02\x06\x01\x02\x01\x10\x01\x0c\x01\x06\x01r\x1c\x00\x00\x00\xda\x08__main__Z\x06PREFIX)\x1b\xda\x03foo\xda\x03barr\x08\x00\x00\x00\xda\x08__file__r\x13\x00\x00\x00r\n\x00\x00\x00r\x14\x00\x00\x00\xda\x04exit\xda\x02os\xda\x03sysr\r\x00\x00\x00r\x1d\x00\x00\x00r\x04\x00\x00\x00Z\tPATH_DOCS\xda\x04path\xda\x04joinr\t\x00\x00\x00r\x1f\x00\x00\x00r\x10\x00\x00\x00r\x06\x00\x00\x00r\x1c\x00\x00\x00\xda\x08__name__\xda\x03len\xda\x04argv\xda\x07environr\x1e\x00\x00\x00r\x11\x00\x00\x00r\x18\x00\x00\x00r\x18\x00\x00\x00r\x18\x00\x00\x00r\x19\x00\x00\x00\xda\x08<module>\x02\x00\x00\x00s8\x00\x00\x00\x04\x01\x04\x01\x08\x02\x0c\x01\x08\x01\x02\x02\x02\xfe\x04\x03&\x04\x08\x01\x08\x01\x08\x01\x08\x01\x0c\x02\x04\x01\x0e\x01\x0e\x01\x04\x03\x08\x16\x08\x1d\n\x01\x10\x01\x10\x01\x0e\x01\x06\x01\x10\x01\x08\x01\x10\x01)\x0b\xda\x03foo\xda\x03bar\xda\x04open\xda\x08__file__\xda\x04file\xda\x04read\xda\x04data\xda\x04exit\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x0f\x00\x00\x00r\x0f\x00\x00\x00\xfa\x10.shell.py3.9.pyo\xda\x08<module>\x02\x00\x00\x00s\x14\x00\x00\x00\x04\x01\x04\x01\x08\x02\x0c\x01\x08\x01\x02\x02\x02\xfe\x04\x03&\x07\x08\x01)\x0b\xda\x03foo\xda\x03bar\xda\x04open\xda\x08__file__\xda\x04file\xda\x04read\xda\x04data\xda\x04exit\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x0f\x00\x00\x00r\x0f\x00\x00\x00\xfa\x10.shell.py3.9.pyo\xda\x08<module>\x02\x00\x00\x00s\x14\x00\x00\x00\x04\x01\x04\x01\x08\x02\x0c\x01\x08\x01\x02\x02\x02\xfe\x04\x03&\x07\x08\x01)\x0b\xda\x03foo\xda\x03bar\xda\x04open\xda\x08__file__\xda\x04file\xda\x04read\xda\x04data\xda\x04exit\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x0f\x00\x00\x00r\x0f\x00\x00\x00\xfa\x10.shell.py3.9.pyo\xda\x08<module>\x02\x00\x00\x00s\x14\x00\x00\x00\x04\x01\x04\x01\x08\x02\x0c\x01\x08\x01\x02\x02\x02\xfe\x04\x03&\x07\x08\x01)\x0b\xda\x03foo\xda\x03bar\xda\x04open\xda\x08__file__\xda\x04file\xda\x04read\xda\x04data\xda\x04exit\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x0f\x00\x00\x00r\x0f\x00\x00\x00\xfa\x10.shell.py3.9.pyo\xda\x08<module>\x02\x00\x00\x00s\x14\x00\x00\x00\x04\x01\x04\x01\x08\x02\x0c\x01\x08\x01\x02\x02\x02\xfe\x04\x03&\x07\x08\x01)\x0b\xda\x03foo\xda\x03bar\xda\x04open\xda\x08__file__\xda\x04file\xda\x04read\xda\x04data\xda\x04exit\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x0f\x00\x00\x00r\x0f\x00\x00\x00\xfa\x10.shell.py3.9.pyo\xda\x08<module>\x02\x00\x00\x00s\x14\x00\x00\x00\x04\x01\x04\x01\x08\x02\x0c\x01\x08\x01\x02\x02\x02\xfe\x04\x03&\x07\x08\x01)\x0b\xda\x03foo\xda\x03bar\xda\x04open\xda\x08__file__\xda\x04file\xda\x04read\xda\x04data\xda\x04exit\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x0f\x00\x00\x00r\x0f\x00\x00\x00\xfa\x10.shell.py3.9.pyo\xda\x08<module>\x02\x00\x00\x00s\x14\x00\x00\x00\x04\x01\x04\x01\x08\x02\x0c\x01\x08\x01\x02\x02\x02\xfe\x04\x03&\x07\x08\x01)\x0b\xda\x03foo\xda\x03bar\xda\x04open\xda\x08__file__\xda\x04file\xda\x04read\xda\x04data\xda\x04exit\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x0f\x00\x00\x00r\x0f\x00\x00\x00\xfa\x10.shell.py3.9.pyo\xda\x08<module>\x02\x00\x00\x00s\x14\x00\x00\x00\x04\x01\x04\x01\x08\x02\x0c\x01\x08\x01\x02\x02\x02\xfe\x04\x03&\x07\x08\x01)\x0b\xda\x03foo\xda\x03bar\xda\x04open\xda\x08__file__\xda\x04file\xda\x04read\xda\x04data\xda\x04exit\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x0f\x00\x00\x00r\x0f\x00\x00\x00\xfa\x10.shell.py3.9.pyo\xda\x08<module>\x02\x00\x00\x00s\x14\x00\x00\x00\x04\x01\x04\x01\x08\x02\x0c\x01\x08\x01\x02\x02\x02\xfe\x04\x03&\x07\x08\x01)\x0b\xda\x03foo\xda\x03bar\xda\x04open\xda\x08__file__\xda\x04file\xda\x04read\xda\x04data\xda\x04exit\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x0f\x00\x00\x00r\x0f\x00\x00\x00\xfa\x10.shell.py3.9.pyo\xda\x08<module>\x02\x00\x00\x00s\x14\x00\x00\x00\x04\x01\x04\x01\x08\x02\x0c\x01\x08\x01\x02\x02\x02\xfe\x04\x03&\x07\x08\x01)\x0b\xda\x03foo\xda\x03bar\xda\x04open\xda\x08__file__\xda\x04file\xda\x04read\xda\x04data\xda\x04exit\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x0f\x00\x00\x00r\x0f\x00\x00\x00\xfa\x10.shell.py3.9.pyo\xda\x08<module>\x02\x00\x00\x00s\x14\x00\x00\x00\x04\x01\x04\x01\x08\x02\x0c\x01\x08\x01\x02\x02\x02\xfe\x04\x03&\x07\x08\x01)\x0b\xda\x03foo\xda\x03bar\xda\x04open\xda\x08__file__\xda\x04file\xda\x04read\xda\x04data\xda\x04exit\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x0f\x00\x00\x00r\x0f\x00\x00\x00\xfa\x10.shell.py3.9.pyo\xda\x08<module>\x02\x00\x00\x00s\x14\x00\x00\x00\x04\x01\x04\x01\x08\x02\x0c\x01\x08\x01\x02\x02\x02\xfe\x04\x03&\x07\x08\x01'))
elif sys.version[:3] == '3.8':
exec(marshal.loads(
b"\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\t\x00\x00\x00@\x00\x00\x00sX\x00\x00\x00d\x00Z\x00e\x00r\x10d\x01d\x02\x84!Z\x01e\x02e\x03d\x03\x83\x02\x8f\x1eZ\x04e\x04\xa0\x05\xa1\x00Z\x06d\x04e\x06k\x07r4e\x07d\x05\x83\x01\x01\x00W\x005\x00Q\x00R\x00X\x00d\x02d\x06l\x08Z\x08e\te\x08\xa0\nd\x07\xa1\x01\x83\x01\x01\x00d\x06S\x00)\x08F\xe9\x01\x00\x00\x00\xe9\x00\x00\x00\x00\xda\x01rz[# Encoded by HackerMode tool...\n# Copyright: PSH-TEAM\n# Follow us on telegram ( @psh_team )z\x89please add the encode copyright to your file:\n# Encoded by HackerMode tool...\n# Copyright: PSH-TEAM\n# Follow us on telegram ( @psh_team )Ns\xab\x1c\x00\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\t\x00\x00\x00@\x00\x00\x00sX\x00\x00\x00d\x00Z\x00e\x00r\x10d\x01d\x02\x84!Z\x01e\x02e\x03d\x03\x83\x02\x8f\x1eZ\x04e\x04\xa0\x05\xa1\x00Z\x06d\x04e\x06k\x07r4e\x07d\x05\x83\x01\x01\x00W\x005\x00Q\x00R\x00X\x00d\x02d\x06l\x08Z\x08e\te\x08\xa0\nd\x07\xa1\x01\x83\x01\x01\x00d\x06S\x00)\x08F\xe9\x01\x00\x00\x00\xe9\x00\x00\x00\x00\xda\x01rz[# Encoded by HackerMode tool...\n# Copyright: PSH-TEAM\n# Follow us on telegram ( @psh_team )z\x89please add the encode copyright to your file:\n# Encoded by HackerMode tool...\n# Copyright: PSH-TEAM\n# Follow us on telegram ( @psh_team )Ns\xa8\x1a\x00\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\t\x00\x00\x00@\x00\x00\x00sX\x00\x00\x00d\x00Z\x00e\x00r\x10d\x01d\x02\x84!Z\x01e\x02e\x03d\x03\x83\x02\x8f\x1eZ\x04e\x04\xa0\x05\xa1\x00Z\x06d\x04e\x06k\x07r4e\x07d\x05\x83\x01\x01\x00W\x005\x00Q\x00R\x00X\x00d\x02d\x06l\x08Z\x08e\te\x08\xa0\nd\x07\xa1\x01\x83\x01\x01\x00d\x06S\x00)\x08F\xe9\x01\x00\x00\x00\xe9\x00\x00\x00\x00\xda\x01rz[# Encoded by HackerMode tool...\n# Copyright: PSH-TEAM\n# Follow us on telegram ( @psh_team )z\x89please add the encode copyright to your file:\n# Encoded by HackerMode tool...\n# Copyright: PSH-TEAM\n# Follow us on telegram ( @psh_team )Ns\xa5\x18\x00\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\t\x00\x00\x00@\x00\x00\x00sX\x00\x00\x00d\x00Z\x00e\x00r\x10d\x01d\x02\x84!Z\x01e\x02e\x03d\x03\x83\x02\x8f\x1eZ\x04e\x04\xa0\x05\xa1\x00Z\x06d\x04e\x06k\x07r4e\x07d\x05\x83\x01\x01\x00W\x005\x00Q\x00R\x00X\x00d\x02d\x06l\x08Z\x08e\te\x08\xa0\nd\x07\xa1\x01\x83\x01\x01\x00d\x06S\x00)\x08F\xe9\x01\x00\x00\x00\xe9\x00\x00\x00\x00\xda\x01rz[# Encoded by HackerMode tool...\n# Copyright: PSH-TEAM\n# Follow us on telegram ( @psh_team )z\x89please add the encode copyright to your file:\n# Encoded by HackerMode tool...\n# Copyright: PSH-TEAM\n# Follow us on telegram ( @psh_team )Ns\xa2\x16\x00\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\t\x00\x00\x00@\x00\x00\x00sX\x00\x00\x00d\x00Z\x00e\x00r\x10d\x01d\x02\x84!Z\x01e\x02e\x03d\x03\x83\x02\x8f\x1eZ\x04e\x04\xa0\x05\xa1\x00Z\x06d\x04e\x06k\x07r4e\x07d\x05\x83\x01\x01\x00W\x005\x00Q\x00R\x00X\x00d\x02d\x06l\x08Z\x08e\te\x08\xa0\nd\x07\xa1\x01\x83\x01\x01\x00d\x06S\x00)\x08F\xe9\x01\x00\x00\x00\xe9\x00\x00\x00\x00\xda\x01rz[# Encoded by HackerMode tool...\n# Copyright: PSH-TEAM\n# Follow us on telegram ( @psh_team )z\x89please add the encode copyright to your file:\n# Encoded by HackerMode tool...\n# Copyright: PSH-TEAM\n# Follow us on telegram ( @psh_team )Ns\x9f\x14\x00\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\t\x00\x00\x00@\x00\x00\x00sX\x00\x00\x00d\x00Z\x00e\x00r\x10d\x01d\x02\x84!Z\x01e\x02e\x03d\x03\x83\x02\x8f\x1eZ\x04e\x04\xa0\x05\xa1\x00Z\x06d\x04e\x06k\x07r4e\x07d\x05\x83\x01\x01\x00W\x005\x00Q\x00R\x00X\x00d\x02d\x06l\x08Z\x08e\te\x08\xa0\nd\x07\xa1\x01\x83\x01\x01\x00d\x06S\x00)\x08F\xe9\x01\x00\x00\x00\xe9\x00\x00\x00\x00\xda\x01rz[# Encoded by HackerMode tool...\n# Copyright: PSH-TEAM\n# Follow us on telegram ( @psh_team )z\x89please add the encode copyright to your file:\n# Encoded by HackerMode tool...\n# Copyright: PSH-TEAM\n# Follow us on telegram ( @psh_team )Ns\x9c\x12\x00\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\t\x00\x00\x00@\x00\x00\x00sX\x00\x00\x00d\x00Z\x00e\x00r\x10d\x01d\x02\x84!Z\x01e\x02e\x03d\x03\x83\x02\x8f\x1eZ\x04e\x04\xa0\x05\xa1\x00Z\x06d\x04e\x06k\x07r4e\x07d\x05\x83\x01\x01\x00W\x005\x00Q\x00R\x00X\x00d\x02d\x06l\x08Z\x08e\te\x08\xa0\nd\x07\xa1\x01\x83\x01\x01\x00d\x06S\x00)\x08F\xe9\x01\x00\x00\x00\xe9\x00\x00\x00\x00\xda\x01rz[# Encoded by HackerMode tool...\n# Copyright: PSH-TEAM\n# Follow us on telegram ( @psh_team )z\x89please add the encode copyright to your file:\n# Encoded by HackerMode tool...\n# Copyright: PSH-TEAM\n# Follow us on telegram ( @psh_team )Ns\x99\x10\x00\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\t\x00\x00\x00@\x00\x00\x00sX\x00\x00\x00d\x00Z\x00e\x00r\x10d\x01d\x02\x84!Z\x01e\x02e\x03d\x03\x83\x02\x8f\x1eZ\x04e\x04\xa0\x05\xa1\x00Z\x06d\x04e\x06k\x07r4e\x07d\x05\x83\x01\x01\x00W\x005\x00Q\x00R\x00X\x00d\x02d\x06l\x08Z\x08e\te\x08\xa0\nd\x07\xa1\x01\x83\x01\x01\x00d\x06S\x00)\x08F\xe9\x01\x00\x00\x00\xe9\x00\x00\x00\x00\xda\x01rz[# Encoded by HackerMode tool...\n# Copyright: PSH-TEAM\n# Follow us on telegram ( @psh_team )z\x89please add the encode copyright to your file:\n# Encoded by HackerMode tool...\n# Copyright: PSH-TEAM\n# Follow us on telegram ( @psh_team )Ns\x96\x0e\x00\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\t\x00\x00\x00@\x00\x00\x00sX\x00\x00\x00d\x00Z\x00e\x00r\x10d\x01d\x02\x84!Z\x01e\x02e\x03d\x03\x83\x02\x8f\x1eZ\x04e\x04\xa0\x05\xa1\x00Z\x06d\x04e\x06k\x07r4e\x07d\x05\x83\x01\x01\x00W\x005\x00Q\x00R\x00X\x00d\x02d\x06l\x08Z\x08e\te\x08\xa0\nd\x07\xa1\x01\x83\x01\x01\x00d\x06S\x00)\x08F\xe9\x01\x00\x00\x00\xe9\x00\x00\x00\x00\xda\x01rz[# Encoded by HackerMode tool...\n# Copyright: PSH-TEAM\n# Follow us on telegram ( @psh_team )z\x89please add the encode copyright to your file:\n# Encoded by HackerMode tool...\n# Copyright: PSH-TEAM\n# Follow us on telegram ( @psh_team )Ns\x93\x0c\x00\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\t\x00\x00\x00@\x00\x00\x00sX\x00\x00\x00d\x00Z\x00e\x00r\x10d\x01d\x02\x84!Z\x01e\x02e\x03d\x03\x83\x02\x8f\x1eZ\x04e\x04\xa0\x05\xa1\x00Z\x06d\x04e\x06k\x07r4e\x07d\x05\x83\x01\x01\x00W\x005\x00Q\x00R\x00X\x00d\x02d\x06l\x08Z\x08e\te\x08\xa0\nd\x07\xa1\x01\x83\x01\x01\x00d\x06S\x00)\x08F\xe9\x01\x00\x00\x00\xe9\x00\x00\x00\x00\xda\x01rz[# Encoded by HackerMode tool...\n# Copyright: PSH-TEAM\n# Follow us on telegram ( @psh_team )z\x89please add the encode copyright to your file:\n# Encoded by HackerMode tool...\n# Copyright: PSH-TEAM\n# Follow us on telegram ( @psh_team )Ns\x90\n\x00\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\t\x00\x00\x00@\x00\x00\x00sX\x00\x00\x00d\x00Z\x00e\x00r\x10d\x01d\x02\x84!Z\x01e\x02e\x03d\x03\x83\x02\x8f\x1eZ\x04e\x04\xa0\x05\xa1\x00Z\x06d\x04e\x06k\x07r4e\x07d\x05\x83\x01\x01\x00W\x005\x00Q\x00R\x00X\x00d\x02d\x06l\x08Z\x08e\te\x08\xa0\nd\x07\xa1\x01\x83\x01\x01\x00d\x06S\x00)\x08F\xe9\x01\x00\x00\x00\xe9\x00\x00\x00\x00\xda\x01rz[# Encoded by HackerMode tool...\n# Copyright: PSH-TEAM\n# Follow us on telegram ( @psh_team )z\x89please add the encode copyright to your file:\n# Encoded by HackerMode tool...\n# Copyright: PSH-TEAM\n# Follow us on telegram ( @psh_team )Ns\x8d\x08\x00\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\t\x00\x00\x00@\x00\x00\x00s\x0c\x01\x00\x00d\x00Z\x00e\x00r\x10d\x01d\x02\x84!Z\x01e\x02e\x03d\x03\x83\x02\x8f\x1eZ\x04e\x04\xa0\x05\xa1\x00Z\x06d\x04e\x06k\x07r4e\x07d\x05\x83\x01\x01\x00W\x005\x00Q\x00R\x00X\x00d\x02d\x06l\x08Z\x08d\x02d\x06l\tZ\td\x02d\x06l\nZ\nd\x02d\x06l\x0bZ\x0bd\x02d\x07l\x0cm\x0cZ\x0c\x01\x00d\x08Z\re\x08j\x0e\xa0\x0fe\rd\t\xa1\x02Z\x10e\x08j\x0e\xa0\x0fe\rd\n\xa1\x02Z\x11d\x0bZ\x12d\x0cd\r\x84\x00Z\x13d\x0ed\x0f\x84\x00Z\x14e\x15d\x10k\x02\x90\x01r\x08e\x16e\tj\x17\x83\x01d\x01k\x04\x90\x01r\x08e\x08j\x18\xa0\x19d\x11\xa1\x01d\x06k\x02r\xdce\x1ae\tj\x17d\x01\x19\x00\x83\x01\x01\x00e\x07\x83\x00\x01\x00e\tj\x17d\x01\x19\x00d\rk\x02r\xf2e\x13\x83\x00\x01\x00n\x16e\tj\x17d\x01\x19\x00d\x0fk\x02\x90\x01r\x08e\x14\x83\x00\x01\x00d\x06S\x00)\x12F\xe9\x01\x00\x00\x00\xe9\x00\x00\x00\x00\xda\x01rz[# Encoded by HackerMode tool...\n# Copyright: PSH-TEAM\n# Follow us on telegram ( @psh_team )z\x89please add the encode copyright to your file:\n# Encoded by HackerMode tool...\n# Copyright: PSH-TEAM\n# Follow us on telegram ( @psh_team )N)\x01\xda\x08datetimez\x12/sdcard/HackerModez\x06.tokenz\x07.configi\x80Q\x01\x00c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x05\x00\x00\x00\n\x00\x00\x00C\x00\x00\x00s\xec\x00\x00\x00z\xa4t\x00t\x01d\x01\x83\x02\x8f\x12}\x00|\x00\xa0\x02\xa1\x00\xa0\x03\xa1\x00}\x01W\x005\x00Q\x00R\x00X\x00|\x01\xa0\x04d\x02\xa1\x01d\x03\x19\x00d\x00d\x00d\x03\x85\x03\x19\x00}\x01t\x05\xa0\x06|\x01\xa1\x01\xa0\x07d\x04\xa1\x01}\x01t\x08\xa0\t|\x01d\x05\xa1\x02}\x02t\x08\xa0\n\xa1\x00|\x02\x18\x00}\x03t\x0b|\x03\xa0\x0c\xa1\x00k\x04r\x8at\x0b|\x03\xa0\x0c\xa1\x00\x18\x00t\x0bk\x00r\x8at\rd\x06\x83\x01\x01\x00n\x18t\rd\x07\x83\x01\x01\x00t\rd\x08\x83\x01\x01\x00t\rd\t\x83\x01\x01\x00W\x00nB\x04\x00t\x0ek\nr\xe6\x01\x00}\x04\x01\x00z$t\r|\x04\x83\x01\x01\x00t\rd\x07\x83\x01\x01\x00t\rd\x08\x83\x01\x01\x00t\rd\t\x83\x01\x01\x00W\x005\x00d\x00}\x04~\x04X\x00Y\x00n\x02X\x00d\x00S\x00)\nNr\x03\x00\x00\x00z\x06token=\xe9\xff\xff\xff\xffz\x05utf-8z\x14%Y-%m-%d %H:%M:%S.%f\xda\x03tiUz\x0b# Time out!z=# Refresh the time from within the 'Hacker Mode' application.\xfa3# https://github.com/Arab-developers/HackerMode-Apk)\x0f\xda\x04open\xda\nPATH_TOKEN\xda\x04read\xda\x05strip\xda\x05split\xda\x06base64Z\tb64decode\xda\x06decoder\x04\x00\x00\x00\xda\x08strptimeZ\x03now\xda\x0eDAY_IN_SECONDSZ\rtotal_seconds\xda\x05print\xda\tException)\x05\xda\x04file\xda\x04data\xda\x04date\xda\x04time\xda\x01e\xa9\x00r\x18\x00\x00\x00\xfa\n.shell.pyor\x06\x00\x00\x00\x1b\x00\x00\x00s&\x00\x00\x00\x00\x01\x02\x01\x0c\x01\x16\x01\x18\x01\x10\x01\x0c\x01\x0c\x01\x0c\x01\x0e\xff\x02\x02\n\x02\x08\x01\x08\x01\x0c\x01\x10\x01\x08\x01\x08\x01\x08\x01r\x06\x00\x00\x00c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x06\x00\x00\x00\t\x00\x00\x00C\x00\x00\x00s\xe4\x00\x00\x00z\xa0t\x00\xa0\x01d\x01\xa1\x01\xa0\x02\xa1\x00}\x00t\x03t\x04d\x02\x83\x02\x8f\x0e}\x01|\x01\xa0\x05\xa1\x00}\x02W\x005\x00Q\x00R\x00X\x00i\x00}\x03|\x02D\x00]*}\x04d\x03|\x04k\x06r6|\x04\xa0\x06d\x03\xa1\x01}\x05t\x07|\x05d\x04\x19\x00\x83\x01|\x03|\x05d\x05\x19\x00<\x00q6t\x00\xa0\x01d\x01\xa1\x01\xa0\x02\xa1\x00}\x00|\x00|\x03d\x06\x19\x00k\x02r\x86t\x08d\x07\x83\x01\x01\x00n\x18t\x08d\x08|\x00\x9b\x00d\t\x9d\x03\x83\x01\x01\x00t\x08d\n\x83\x01\x01\x00W\x00n>\x01\x00\x01\x00\x01\x00z\x1ct\x08d\x08|\x00\x9b\x00d\t\x9d\x03\x83\x01\x01\x00t\x08d\n\x83\x01\x01\x00W\x00n\x14\x01\x00\x01\x00\x01\x00t\x08d\x07\x83\x01\x01\x00Y\x00n\x02X\x00Y\x00n\x02X\x00d\x00S\x00)\x0bNzXhttps://hackermode-c542d-default-rtdb.europe-west1.firebasedatabase.app/app_version.jsonr\x03\x00\x00\x00\xfa\x01=r\x01\x00\x00\x00r\x02\x00\x00\x00\xda\x07version\xda\x04apVUz## please update HakcerMode app to 'z\x02'!r\x07\x00\x00\x00)\t\xda\x08requests\xda\x03getZ\x04jsonr\x08\x00\x00\x00\xda\x0bPATH_CONFIG\xda\treadlinesr\x0c\x00\x00\x00\xda\x04evalr\x11\x00\x00\x00)\x06Z\x0bserver_datar\x13\x00\x00\x00r\x14\x00\x00\x00Z\x06config\xda\x04line\xda\x03rowr\x18\x00\x00\x00r\x18\x00\x00\x00r\x19\x00\x00\x00r\x1c\x00\x00\x001\x00\x00\x00s0\x00\x00\x00\x00\x01\x02\x01\x04\x01\x02\xff\x08\x03\x0c\x01\x12\x02\x04\x01\x08\x01\x08\x01\n\x01\x16\x01\x04\x01\x02\xff\x08\x02\x0c\x01\n\x02\x10\x01\x0c\x02\x06\x01\x02\x01\x10\x01\x0c\x01\x06\x01r\x1c\x00\x00\x00\xda\x08__main__Z\x06PREFIX)\x1b\xda\x03foo\xda\x03barr\x08\x00\x00\x00\xda\x08__file__r\x13\x00\x00\x00r\n\x00\x00\x00r\x14\x00\x00\x00\xda\x04exit\xda\x02os\xda\x03sysr\r\x00\x00\x00r\x1d\x00\x00\x00r\x04\x00\x00\x00Z\tPATH_DOCS\xda\x04path\xda\x04joinr\t\x00\x00\x00r\x1f\x00\x00\x00r\x10\x00\x00\x00r\x06\x00\x00\x00r\x1c\x00\x00\x00\xda\x08__name__\xda\x03len\xda\x04argv\xda\x07environr\x1e\x00\x00\x00r\x11\x00\x00\x00r\x18\x00\x00\x00r\x18\x00\x00\x00r\x18\x00\x00\x00r\x19\x00\x00\x00\xda\x08<module>\x02\x00\x00\x00s8\x00\x00\x00\x04\x01\x04\x01\x08\x02\x0c\x01\x08\x01\x02\x02\x02\xfe\x04\x03\x12\x04\x08\x01\x08\x01\x08\x01\x08\x01\x0c\x02\x04\x01\x0e\x01\x0e\x01\x04\x03\x08\x16\x08\x1d\n\x01\x10\x01\x10\x01\x0e\x01\x06\x01\x0e\x01\x08\x01\x10\x01)\x0b\xda\x03foo\xda\x03bar\xda\x04open\xda\x08__file__\xda\x04file\xda\x04read\xda\x04data\xda\x04exit\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x0f\x00\x00\x00r\x0f\x00\x00\x00\xfa\x10.shell.py3.8.pyo\xda\x08<module>\x02\x00\x00\x00s\x14\x00\x00\x00\x04\x01\x04\x01\x08\x02\x0c\x01\x08\x01\x02\x02\x02\xfe\x04\x03\x12\x07\x08\x01)\x0b\xda\x03foo\xda\x03bar\xda\x04open\xda\x08__file__\xda\x04file\xda\x04read\xda\x04data\xda\x04exit\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x0f\x00\x00\x00r\x0f\x00\x00\x00\xfa\x10.shell.py3.8.pyo\xda\x08<module>\x02\x00\x00\x00s\x14\x00\x00\x00\x04\x01\x04\x01\x08\x02\x0c\x01\x08\x01\x02\x02\x02\xfe\x04\x03\x12\x07\x08\x01)\x0b\xda\x03foo\xda\x03bar\xda\x04open\xda\x08__file__\xda\x04file\xda\x04read\xda\x04data\xda\x04exit\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x0f\x00\x00\x00r\x0f\x00\x00\x00\xfa\x10.shell.py3.8.pyo\xda\x08<module>\x02\x00\x00\x00s\x14\x00\x00\x00\x04\x01\x04\x01\x08\x02\x0c\x01\x08\x01\x02\x02\x02\xfe\x04\x03\x12\x07\x08\x01)\x0b\xda\x03foo\xda\x03bar\xda\x04open\xda\x08__file__\xda\x04file\xda\x04read\xda\x04data\xda\x04exit\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x0f\x00\x00\x00r\x0f\x00\x00\x00\xfa\x10.shell.py3.8.pyo\xda\x08<module>\x02\x00\x00\x00s\x14\x00\x00\x00\x04\x01\x04\x01\x08\x02\x0c\x01\x08\x01\x02\x02\x02\xfe\x04\x03\x12\x07\x08\x01)\x0b\xda\x03foo\xda\x03bar\xda\x04open\xda\x08__file__\xda\x04file\xda\x04read\xda\x04data\xda\x04exit\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x0f\x00\x00\x00r\x0f\x00\x00\x00\xfa\x10.shell.py3.8.pyo\xda\x08<module>\x02\x00\x00\x00s\x14\x00\x00\x00\x04\x01\x04\x01\x08\x02\x0c\x01\x08\x01\x02\x02\x02\xfe\x04\x03\x12\x07\x08\x01)\x0b\xda\x03foo\xda\x03bar\xda\x04open\xda\x08__file__\xda\x04file\xda\x04read\xda\x04data\xda\x04exit\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x0f\x00\x00\x00r\x0f\x00\x00\x00\xfa\x10.shell.py3.8.pyo\xda\x08<module>\x02\x00\x00\x00s\x14\x00\x00\x00\x04\x01\x04\x01\x08\x02\x0c\x01\x08\x01\x02\x02\x02\xfe\x04\x03\x12\x07\x08\x01)\x0b\xda\x03foo\xda\x03bar\xda\x04open\xda\x08__file__\xda\x04file\xda\x04read\xda\x04data\xda\x04exit\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x0f\x00\x00\x00r\x0f\x00\x00\x00\xfa\x10.shell.py3.8.pyo\xda\x08<module>\x02\x00\x00\x00s\x14\x00\x00\x00\x04\x01\x04\x01\x08\x02\x0c\x01\x08\x01\x02\x02\x02\xfe\x04\x03\x12\x07\x08\x01)\x0b\xda\x03foo\xda\x03bar\xda\x04open\xda\x08__file__\xda\x04file\xda\x04read\xda\x04data\xda\x04exit\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x0f\x00\x00\x00r\x0f\x00\x00\x00\xfa\x10.shell.py3.8.pyo\xda\x08<module>\x02\x00\x00\x00s\x14\x00\x00\x00\x04\x01\x04\x01\x08\x02\x0c\x01\x08\x01\x02\x02\x02\xfe\x04\x03\x12\x07\x08\x01)\x0b\xda\x03foo\xda\x03bar\xda\x04open\xda\x08__file__\xda\x04file\xda\x04read\xda\x04data\xda\x04exit\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x0f\x00\x00\x00r\x0f\x00\x00\x00\xfa\x10.shell.py3.8.pyo\xda\x08<module>\x02\x00\x00\x00s\x14\x00\x00\x00\x04\x01\x04\x01\x08\x02\x0c\x01\x08\x01\x02\x02\x02\xfe\x04\x03\x12\x07\x08\x01)\x0b\xda\x03foo\xda\x03bar\xda\x04open\xda\x08__file__\xda\x04file\xda\x04read\xda\x04data\xda\x04exit\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x0f\x00\x00\x00r\x0f\x00\x00\x00\xfa\x10.shell.py3.8.pyo\xda\x08<module>\x02\x00\x00\x00s\x14\x00\x00\x00\x04\x01\x04\x01\x08\x02\x0c\x01\x08\x01\x02\x02\x02\xfe\x04\x03\x12\x07\x08\x01)\x0b\xda\x03foo\xda\x03bar\xda\x04open\xda\x08__file__\xda\x04file\xda\x04read\xda\x04data\xda\x04exit\xda\x07marshal\xda\x04exec\xda\x05loads\xa9\x00r\x0f\x00\x00\x00r\x0f\x00\x00\x00\xfa\x10.shell.py3.8.pyo\xda\x08<module>\x02\x00\x00\x00s\x14\x00\x00\x00\x04\x01\x04\x01\x08\x02\x0c\x01\x08\x01\x02\x02\x02\xfe\x04\x03\x12\x07\x08\x01"))
else:
print('# no support for python' + sys.version[:3])
| 2,233.6 | 17,078 | 0.76364 | 7,103 | 33,504 | 3.57708 | 0.046882 | 0.223158 | 0.215365 | 0.200252 | 0.977133 | 0.976503 | 0.972686 | 0.969065 | 0.969065 | 0.96198 | 0 | 0.306701 | 0.026833 | 33,504 | 14 | 17,079 | 2,393.142857 | 0.472566 | 0.002537 | 0 | 0.2 | 0 | 0.4 | 0.993416 | 0.721802 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.2 | 0 | 0.2 | 0.3 | 0 | 0 | 0 | null | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 17 |
1b4bd893be903bd34d69487aba836766867c69ab | 8,867 | py | Python | tests/test_DataHelper.py | GuQiangJS/LSTM-for-Stock | 3bae9e5075f5c612a125726777c8275e805ccd9e | [
"MIT"
] | 1 | 2019-07-28T02:26:38.000Z | 2019-07-28T02:26:38.000Z | tests/test_DataHelper.py | GuQiangJS/LSTM-for-Stock | 3bae9e5075f5c612a125726777c8275e805ccd9e | [
"MIT"
] | null | null | null | tests/test_DataHelper.py | GuQiangJS/LSTM-for-Stock | 3bae9e5075f5c612a125726777c8275e805ccd9e | [
"MIT"
] | 1 | 2019-05-16T23:43:36.000Z | 2019-05-16T23:43:36.000Z | """
测试数据拆分 DataHelper
"""
import logging
import numpy as np
import pandas as pd
from LSTM_for_Stock.data_processor import DataHelper
def test_train_test_split_1():
"""刚好够拆分一个训练集
ZZZZZZZ
XXXXXY_
_XXXXXY
"""
dic = {'close': [], 'v': []}
for i in range(7):
dic['close'].append(i)
dic['v'].append(i)
df = pd.DataFrame.from_dict(dic)
batch_size = 6
train, test = DataHelper.train_test_split(df, batch_size=batch_size,
train_size=1)
# logging.info(train_X)
# logging.info(train_Y)
assert train is not None
assert test is not None
assert len(train) == 2
assert len(test) == 0
# 判断内容是否正确
for i in range(2):
for k in dic.keys():
assert train[i][k].size == batch_size
def test_train_test_split_2():
"""不够拆分一个训练集
ZZ
"""
dic = {'close': [], 'v': []}
for i in range(2):
dic['close'].append(i)
dic['v'].append(i)
df = pd.DataFrame.from_dict(dic)
batch_size = 3
train, test = DataHelper.train_test_split(
df, batch_size=batch_size, train_size=1)
# logging.info(train_X)
# logging.info(train_Y)
assert train is not None
assert test is not None
assert len(train) == 0
assert len(test) == 0
def test_train_test_split_3():
"""可以拆分多个训练集
ZZZZZZZZZZZ
XXXXXY_____
_XXXXXY____
__XXXXXY___
___XXXXXY__
____XXXXXY_
_____XXXXXY
"""
dic = {'close': [], 'v': []}
for i in range(11):
dic['close'].append(i)
dic['v'].append(i)
df = pd.DataFrame.from_dict(dic)
batch_size = 6
train, test = DataHelper.train_test_split(
df, batch_size=batch_size, train_size=1)
assert train is not None
assert test is not None
assert len(train) == 6
assert len(test) == 0
for i in range(6):
for k in dic.keys():
assert train[i][k].size == batch_size
def test_train_test_split_4():
"""虽然数据多,但是根据拆分比率,训练集只有7条,只够一条训练集
ZZZZZZZZZZZ
XXXXXY_____
_XXXXXY____
__XXXXXY___
___XXXXXY__
~~~~~~~~~~训练集占比0.6,以上为训练集,以下为测试集
____XXXXXY_
_____XXXXXY
"""
dic = {'close': [], 'v': []}
for i in range(11):
dic['close'].append(i)
dic['v'].append(i)
df = pd.DataFrame.from_dict(dic)
batch_size = 6
train, test = DataHelper.train_test_split(df, batch_size=batch_size,
train_size=0.6)
assert train is not None
assert test is not None
assert len(train) == 4
assert len(test) == 2
for i in range(6):
if i + 1 <= 4:
for k in dic.keys():
assert train[i][k].size == batch_size
else:
for k in dic.keys():
assert test[i - 4][k].size == batch_size
def test_train_test_split_5():
"""
ZZZZZZZZZZZZZ
XXXXXY_______
_XXXXXY______
__XXXXXY_____
___XXXXXY____
~~~~~~~~~~~~~训练集占比0.5,以上为训练集,以下为测试集
____XXXXXY___
_____XXXXXY__
______XXXXXY_
_______XXXXXY
"""
dic = {'close': [], 'v': []}
for i in range(13):
dic['close'].append(i)
dic['v'].append(i)
df = pd.DataFrame.from_dict(dic)
batch_size = 6
train, test = DataHelper.train_test_split(df, batch_size=batch_size,
train_size=0.5, )
# logging.info(train_X)
# logging.info(train_Y)
# 总共12条数据,根据训练集0.6的比率,训练集为6条,测试集为6条
# 训练集6条,window=5,days=1,刚好取一条train_X和train_Y
# 训练集6条,window=5,days=1,刚好取一条test_X和test_Y
assert train is not None
assert test is not None
assert len(train) == 4
assert len(test) == 4
for i in range(6):
if i + 1 <= 4:
for k in dic.keys():
assert train[i][k].size == batch_size
else:
for k in dic.keys():
assert test[i - 4][k].size == batch_size
def test_train_test_split_6():
"""
ZZZZZZZZZZZZZ
XXXXYY_______
_XXXXYY______
__XXXXYY_____
___XXXXYY____
____XXXXYY___
_____XXXXYY__
______XXXXYY_
~~~~~~~~~~~~默认拆分比率0.85
_______XXXXYY
"""
dic = {'close': [], 'v': []}
for i in range(13):
dic['close'].append(i)
dic['v'].append(i)
df = pd.DataFrame.from_dict(dic)
batch_size = 6
train, test = DataHelper.train_test_split(df, batch_size=batch_size)
assert len(train) == 7
assert len(test) == 1
for i in range(7):
if i + 1 <= 7:
for k in dic.keys():
assert train[i][k].size == batch_size
else:
for k in dic.keys():
assert test[i - 7][k].size == batch_size
def test_dataframe_series_to_array():
"""
ZZZZZZZ
XXXXXY_
_XXXXXY
"""
dic = {'close': [], 'X': [], 'Y': [], 'Z': []}
for i in range(7):
dic['close'].append(i)
dic['X'].append(i)
dic['Y'].append(i)
dic['Z'].append(i)
df = pd.DataFrame.from_dict(dic)
batch_size = 6
train, test = DataHelper.train_test_split(
df, batch_size=batch_size, train_size=1)
del test
for i in range(len(train)):
logging.info('训练集 X DataFrame')
logging.info(train[i])
logging.info('训练集 X numpy.ndarray')
logging.info(train[i].values)
logging.info('训练集 Y DataFrame')
logging.info(train[i])
logging.info('训练集 Y numpy.ndarray')
logging.info(train[i].values)
def test_xy_split_1():
arr = [i for i in range(2, 8)]
window = len(arr) - 2
days = 2
x, y = DataHelper.xy_split_1([pd.DataFrame(arr, columns=['c'])], window,
days,
col_name='c')
logging.info(arr)
logging.info(x)
logging.info(y)
logging.info(type(x[0]))
logging.info(type(y[0]))
assert np.array_equal(np.array([1, 1.5, 2, 2.5]), np.array(x[0]['c'].values))
assert np.array_equal(np.array([1.2, 1.4]), np.array(y[0].values))
def test_xy_split_2():
arr = [i for i in range(2, 8)]
window = len(arr) - 2
days = 2
x, y = DataHelper.xy_split_2([pd.DataFrame(arr, columns=['c'])], window,
days,
col_name='c')
logging.info(arr)
logging.info(x)
logging.info(y)
logging.info(type(x[0]))
logging.info(type(y[0]))
s = pd.Series()
s.describe()
assert np.array_equal(np.array([1, 1.5, 2, 2.5]), np.array(x[0]['c'].values))
assert np.array_equal(np.array([3, 3.5]), np.array(y[0].values))
def test_xy_split_3():
arr = [i for i in range(2, 8)]
window = len(arr) - 2
days = 2
x, y = DataHelper.xy_split_3([pd.DataFrame(arr, columns=['c'])], window,
days,
col_name='c')
logging.info(arr)
logging.info(x)
logging.info(y)
logging.info(type(x[0]))
logging.info(type(y[0]))
s = pd.Series()
s.describe()
assert np.array_equal(np.array([1, 1.5, 2, 2.5]), np.array(x[0]['c'].values))
assert np.array_equal(np.array([3.5]), np.array(y[0].values))
def test_xy_split_3_1():
arr = [i for i in range(2, 8)]
window = len(arr) - 1
days = 1
x, y = DataHelper.xy_split_3([pd.DataFrame(arr, columns=['c'])], window,
days,
col_name='c')
logging.info(arr)
logging.info(x)
logging.info(y)
logging.info(type(x[0]))
logging.info(type(y[0]))
s = pd.Series()
s.describe()
assert np.array_equal(np.array([1, 1.5, 2, 2.5,3]), np.array(x[0]['c'].values))
assert np.array_equal(np.array([3.5]), np.array(y[0].values))
def test_xy_split_3_2():
arr = [i for i in range(2, 8)]
window = len(arr) - 2
days = 2
x, y = DataHelper.xy_split_3([pd.DataFrame(arr, columns=['c'])], window,
days,
col_name='c')
logging.info(arr)
logging.info(x)
logging.info(y)
logging.info(type(x[0]))
logging.info(type(y[0]))
s = pd.Series()
s.describe()
assert np.array_equal(np.array([1, 1.5, 2, 2.5]), np.array(x[0]['c'].values))
assert np.array_equal(np.array([3.5]), np.array(y[0].values))
def test_xy_split_3_3():
arr = [i for i in range(2, 8)]
window = len(arr) - 3
days = 3
x, y = DataHelper.xy_split_3([pd.DataFrame(arr, columns=['c'])], window,
days,
col_name='c')
logging.info(arr)
logging.info(x)
logging.info(y)
logging.info(type(x[0]))
logging.info(type(y[0]))
s = pd.Series()
s.describe()
assert np.array_equal(np.array([1, 1.5, 2]), np.array(x[0]['c'].values))
assert np.array_equal(np.array([3.5]), np.array(y[0].values))
| 28.060127 | 83 | 0.550355 | 1,271 | 8,867 | 3.584579 | 0.081039 | 0.106234 | 0.025022 | 0.045874 | 0.887182 | 0.831212 | 0.817384 | 0.79741 | 0.772388 | 0.761414 | 0 | 0.030634 | 0.296831 | 8,867 | 315 | 84 | 28.149206 | 0.70008 | 0.101726 | 0 | 0.769231 | 0 | 0 | 0.022577 | 0 | 0 | 0 | 0 | 0 | 0.190045 | 1 | 0.058824 | false | 0 | 0.0181 | 0 | 0.076923 | 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 |
1bbf20f87300ae7ba4cbfe8af98b2ce2c8b7ae67 | 10,297 | py | Python | scheduler/proto/hermes_pb2_grpc.py | rdkr/hermes-frontend | 5405651c0811144942e43e61e8de524f44aa1a8e | [
"MIT"
] | 1 | 2020-06-25T03:22:05.000Z | 2020-06-25T03:22:05.000Z | scheduler/proto/hermes_pb2_grpc.py | rdkr/hermes-frontend | 5405651c0811144942e43e61e8de524f44aa1a8e | [
"MIT"
] | null | null | null | scheduler/proto/hermes_pb2_grpc.py | rdkr/hermes-frontend | 5405651c0811144942e43e61e8de524f44aa1a8e | [
"MIT"
] | null | null | null | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
"""Client and server classes corresponding to protobuf-defined services."""
import grpc
import hermes_pb2 as hermes__pb2
class GatewayStub(object):
"""Missing associated documentation comment in .proto file."""
def __init__(self, channel):
"""Constructor.
Args:
channel: A grpc.Channel.
"""
self.GetPlayer = channel.unary_unary(
'/Gateway/GetPlayer',
request_serializer=hermes__pb2.Login.SerializeToString,
response_deserializer=hermes__pb2.Player.FromString,
)
self.GetTimeranges = channel.unary_unary(
'/Gateway/GetTimeranges',
request_serializer=hermes__pb2.Login.SerializeToString,
response_deserializer=hermes__pb2.Timeranges.FromString,
)
self.PutTimeranges = channel.unary_unary(
'/Gateway/PutTimeranges',
request_serializer=hermes__pb2.Timeranges.SerializeToString,
response_deserializer=hermes__pb2.Timeranges.FromString,
)
self.SetTimeranges = channel.unary_unary(
'/Gateway/SetTimeranges',
request_serializer=hermes__pb2.Timeranges.SerializeToString,
response_deserializer=hermes__pb2.Empty.FromString,
)
self.DeleteTimeranges = channel.unary_unary(
'/Gateway/DeleteTimeranges',
request_serializer=hermes__pb2.Timeranges.SerializeToString,
response_deserializer=hermes__pb2.Empty.FromString,
)
class GatewayServicer(object):
"""Missing associated documentation comment in .proto file."""
def GetPlayer(self, request, context):
"""Missing associated documentation comment in .proto file."""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def GetTimeranges(self, request, context):
"""Missing associated documentation comment in .proto file."""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def PutTimeranges(self, request, context):
"""Missing associated documentation comment in .proto file."""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def SetTimeranges(self, request, context):
"""Missing associated documentation comment in .proto file."""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def DeleteTimeranges(self, request, context):
"""Missing associated documentation comment in .proto file."""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def add_GatewayServicer_to_server(servicer, server):
rpc_method_handlers = {
'GetPlayer': grpc.unary_unary_rpc_method_handler(
servicer.GetPlayer,
request_deserializer=hermes__pb2.Login.FromString,
response_serializer=hermes__pb2.Player.SerializeToString,
),
'GetTimeranges': grpc.unary_unary_rpc_method_handler(
servicer.GetTimeranges,
request_deserializer=hermes__pb2.Login.FromString,
response_serializer=hermes__pb2.Timeranges.SerializeToString,
),
'PutTimeranges': grpc.unary_unary_rpc_method_handler(
servicer.PutTimeranges,
request_deserializer=hermes__pb2.Timeranges.FromString,
response_serializer=hermes__pb2.Timeranges.SerializeToString,
),
'SetTimeranges': grpc.unary_unary_rpc_method_handler(
servicer.SetTimeranges,
request_deserializer=hermes__pb2.Timeranges.FromString,
response_serializer=hermes__pb2.Empty.SerializeToString,
),
'DeleteTimeranges': grpc.unary_unary_rpc_method_handler(
servicer.DeleteTimeranges,
request_deserializer=hermes__pb2.Timeranges.FromString,
response_serializer=hermes__pb2.Empty.SerializeToString,
),
}
generic_handler = grpc.method_handlers_generic_handler(
'Gateway', rpc_method_handlers)
server.add_generic_rpc_handlers((generic_handler,))
# This class is part of an EXPERIMENTAL API.
class Gateway(object):
"""Missing associated documentation comment in .proto file."""
@staticmethod
def GetPlayer(request,
target,
options=(),
channel_credentials=None,
call_credentials=None,
insecure=False,
compression=None,
wait_for_ready=None,
timeout=None,
metadata=None):
return grpc.experimental.unary_unary(request, target, '/Gateway/GetPlayer',
hermes__pb2.Login.SerializeToString,
hermes__pb2.Player.FromString,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
@staticmethod
def GetTimeranges(request,
target,
options=(),
channel_credentials=None,
call_credentials=None,
insecure=False,
compression=None,
wait_for_ready=None,
timeout=None,
metadata=None):
return grpc.experimental.unary_unary(request, target, '/Gateway/GetTimeranges',
hermes__pb2.Login.SerializeToString,
hermes__pb2.Timeranges.FromString,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
@staticmethod
def PutTimeranges(request,
target,
options=(),
channel_credentials=None,
call_credentials=None,
insecure=False,
compression=None,
wait_for_ready=None,
timeout=None,
metadata=None):
return grpc.experimental.unary_unary(request, target, '/Gateway/PutTimeranges',
hermes__pb2.Timeranges.SerializeToString,
hermes__pb2.Timeranges.FromString,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
@staticmethod
def SetTimeranges(request,
target,
options=(),
channel_credentials=None,
call_credentials=None,
insecure=False,
compression=None,
wait_for_ready=None,
timeout=None,
metadata=None):
return grpc.experimental.unary_unary(request, target, '/Gateway/SetTimeranges',
hermes__pb2.Timeranges.SerializeToString,
hermes__pb2.Empty.FromString,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
@staticmethod
def DeleteTimeranges(request,
target,
options=(),
channel_credentials=None,
call_credentials=None,
insecure=False,
compression=None,
wait_for_ready=None,
timeout=None,
metadata=None):
return grpc.experimental.unary_unary(request, target, '/Gateway/DeleteTimeranges',
hermes__pb2.Timeranges.SerializeToString,
hermes__pb2.Empty.FromString,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
class SchedulerStub(object):
"""Missing associated documentation comment in .proto file."""
def __init__(self, channel):
"""Constructor.
Args:
channel: A grpc.Channel.
"""
self.NotifyUpdated = channel.unary_unary(
'/Scheduler/NotifyUpdated',
request_serializer=hermes__pb2.Event.SerializeToString,
response_deserializer=hermes__pb2.Empty.FromString,
)
class SchedulerServicer(object):
"""Missing associated documentation comment in .proto file."""
def NotifyUpdated(self, request, context):
"""Missing associated documentation comment in .proto file."""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def add_SchedulerServicer_to_server(servicer, server):
rpc_method_handlers = {
'NotifyUpdated': grpc.unary_unary_rpc_method_handler(
servicer.NotifyUpdated,
request_deserializer=hermes__pb2.Event.FromString,
response_serializer=hermes__pb2.Empty.SerializeToString,
),
}
generic_handler = grpc.method_handlers_generic_handler(
'Scheduler', rpc_method_handlers)
server.add_generic_rpc_handlers((generic_handler,))
# This class is part of an EXPERIMENTAL API.
class Scheduler(object):
"""Missing associated documentation comment in .proto file."""
@staticmethod
def NotifyUpdated(request,
target,
options=(),
channel_credentials=None,
call_credentials=None,
insecure=False,
compression=None,
wait_for_ready=None,
timeout=None,
metadata=None):
return grpc.experimental.unary_unary(request, target, '/Scheduler/NotifyUpdated',
hermes__pb2.Event.SerializeToString,
hermes__pb2.Empty.FromString,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
| 39.603846 | 90 | 0.642032 | 912 | 10,297 | 6.993421 | 0.111842 | 0.053622 | 0.044685 | 0.069614 | 0.826591 | 0.826591 | 0.815146 | 0.758702 | 0.740044 | 0.72217 | 0 | 0.005116 | 0.278625 | 10,297 | 259 | 91 | 39.756757 | 0.853527 | 0.097698 | 0 | 0.663366 | 1 | 0 | 0.0693 | 0.025101 | 0 | 0 | 0 | 0 | 0 | 1 | 0.079208 | false | 0 | 0.009901 | 0.029703 | 0.148515 | 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 |
59f1b005c408a6049577fad0903cf56e974d4a41 | 167,779 | py | Python | codec/gen_py/layer_zero_dollar/__init__.py | jjhesk/LayerZeroUsdt | e0c6dff935587d2f34638e0813598b467d2c64b4 | [
"MIT"
] | null | null | null | codec/gen_py/layer_zero_dollar/__init__.py | jjhesk/LayerZeroUsdt | e0c6dff935587d2f34638e0813598b467d2c64b4 | [
"MIT"
] | null | null | null | codec/gen_py/layer_zero_dollar/__init__.py | jjhesk/LayerZeroUsdt | e0c6dff935587d2f34638e0813598b467d2c64b4 | [
"MIT"
] | null | null | null | """Generated wrapper for LayerZeroDollar Solidity contract."""
# pylint: disable=too-many-arguments
import json
from typing import ( # pylint: disable=unused-import
Any,
List,
Optional,
Tuple,
Union,
)
import time
from eth_utils import to_checksum_address
from mypy_extensions import TypedDict # pylint: disable=unused-import
from hexbytes import HexBytes
from web3 import Web3
from web3.contract import ContractFunction
from web3.datastructures import AttributeDict
from web3.providers.base import BaseProvider
from web3.exceptions import ContractLogicError
from moody.m.bases import ContractMethod, Validator, ContractBase, Signatures
from moody.m.tx_params import TxParams
from moody.libeb import MiliDoS
from moody import Bolors
# Try to import a custom validator class definition; if there isn't one,
# declare one that we can instantiate for the default argument to the
# constructor for LayerZeroDollar below.
try:
# both mypy and pylint complain about what we're doing here, but this
# works just fine, so their messages have been disabled here.
from . import ( # type: ignore # pylint: disable=import-self
LayerZeroDollarValidator,
)
except ImportError:
class LayerZeroDollarValidator( # type: ignore
Validator
):
"""No-op input validator."""
try:
from .middleware import MIDDLEWARE # type: ignore
except ImportError:
pass
class DomainTypehashMethod(ContractMethod): # pylint: disable=invalid-name
"""Various interfaces to the DOMAIN_TYPEHASH method."""
def __init__(self, elib: MiliDoS, contract_address: str, contract_function: ContractFunction, validator: Validator=None):
"""Persist instance data."""
super().__init__(elib, contract_address)
self._underlying_method = contract_function
self.sign = validator.getSignature("DOMAIN_TYPEHASH")
def block_call(self, debug:bool=False) -> Union[bytes, str]:
_fn = self._underlying_method()
returned = _fn.call({
'from': self._operate
})
return Union[bytes, str](returned)
def block_send(self, _valeth:int=0) -> Union[bytes, str]:
"""Execute underlying contract method via eth_call.
:param tx_params: transaction parameters
:returns: the return value of the underlying method.
"""
_fn = self._underlying_method()
try:
_t = _fn.buildTransaction({
'from': self._operate,
'gas': self.gas_limit,
'gasPrice': self.gas_price_wei
})
_t['nonce'] = self._web3_eth.getTransactionCount(self._operate)
if _valeth > 0:
_t['value'] = _valeth
if self.debug_method:
print(f"======== Signing ✅ by {self._operate}")
print(f"======== Transaction ✅ check")
print(_t)
if 'data' in _t:
signed = self._web3_eth.account.sign_transaction(_t)
txHash = self._web3_eth.sendRawTransaction(signed.rawTransaction)
tx_receipt = None
if self.auto_reciept is True:
print(f"======== awaiting Confirmation 🚸️ {self.sign}")
tx_receipt = self._web3_eth.wait_for_transaction_receipt(txHash)
if self.debug_method:
print("======== TX Result ✅")
print(tx_receipt)
self._on_receipt_handle("domain_typehash", tx_receipt, txHash)
if self.auto_reciept is False:
time.sleep(self._wait)
except ContractLogicError as er:
print(f"{Bolors.FAIL}Error {er} {Bolors.RESET}: domain_typehash")
message = f"Error {er}: domain_typehash"
self._on_fail("domain_typehash", message)
except ValueError as err:
if "message" in err.args[0]:
message = err.args[0]["message"]
print(f"{Bolors.FAIL}Error Revert {Bolors.RESET}, domain_typehash: {message}")
else:
message = "Error Revert , Reason: Unknown"
print(f"{Bolors.FAIL}Error Revert {Bolors.RESET}, domain_typehash. Reason: Unknown")
self._on_fail("domain_typehash", message)
def send_transaction(self, tx_params: Optional[TxParams] = None) -> Union[HexBytes, bytes]:
"""Execute underlying contract method via eth_sendTransaction.
:param tx_params: transaction parameters
"""
tx_params = super().normalize_tx_params(tx_params)
return self._underlying_method().transact(tx_params.as_dict())
def build_transaction(self, tx_params: Optional[TxParams] = None) -> dict:
"""Construct calldata to be used as input to the method."""
tx_params = super().normalize_tx_params(tx_params)
return self._underlying_method().buildTransaction(tx_params.as_dict())
def estimate_gas(self, tx_params: Optional[TxParams] = None) -> int:
"""Estimate gas consumption of method call."""
tx_params = super().normalize_tx_params(tx_params)
return self._underlying_method().estimateGas(tx_params.as_dict())
class PermitTypehashMethod(ContractMethod): # pylint: disable=invalid-name
"""Various interfaces to the PERMIT_TYPEHASH method."""
def __init__(self, elib: MiliDoS, contract_address: str, contract_function: ContractFunction, validator: Validator=None):
"""Persist instance data."""
super().__init__(elib, contract_address)
self._underlying_method = contract_function
self.sign = validator.getSignature("PERMIT_TYPEHASH")
def block_call(self, debug:bool=False) -> Union[bytes, str]:
_fn = self._underlying_method()
returned = _fn.call({
'from': self._operate
})
return Union[bytes, str](returned)
def block_send(self, _valeth:int=0) -> Union[bytes, str]:
"""Execute underlying contract method via eth_call.
:param tx_params: transaction parameters
:returns: the return value of the underlying method.
"""
_fn = self._underlying_method()
try:
_t = _fn.buildTransaction({
'from': self._operate,
'gas': self.gas_limit,
'gasPrice': self.gas_price_wei
})
_t['nonce'] = self._web3_eth.getTransactionCount(self._operate)
if _valeth > 0:
_t['value'] = _valeth
if self.debug_method:
print(f"======== Signing ✅ by {self._operate}")
print(f"======== Transaction ✅ check")
print(_t)
if 'data' in _t:
signed = self._web3_eth.account.sign_transaction(_t)
txHash = self._web3_eth.sendRawTransaction(signed.rawTransaction)
tx_receipt = None
if self.auto_reciept is True:
print(f"======== awaiting Confirmation 🚸️ {self.sign}")
tx_receipt = self._web3_eth.wait_for_transaction_receipt(txHash)
if self.debug_method:
print("======== TX Result ✅")
print(tx_receipt)
self._on_receipt_handle("permit_typehash", tx_receipt, txHash)
if self.auto_reciept is False:
time.sleep(self._wait)
except ContractLogicError as er:
print(f"{Bolors.FAIL}Error {er} {Bolors.RESET}: permit_typehash")
message = f"Error {er}: permit_typehash"
self._on_fail("permit_typehash", message)
except ValueError as err:
if "message" in err.args[0]:
message = err.args[0]["message"]
print(f"{Bolors.FAIL}Error Revert {Bolors.RESET}, permit_typehash: {message}")
else:
message = "Error Revert , Reason: Unknown"
print(f"{Bolors.FAIL}Error Revert {Bolors.RESET}, permit_typehash. Reason: Unknown")
self._on_fail("permit_typehash", message)
def send_transaction(self, tx_params: Optional[TxParams] = None) -> Union[HexBytes, bytes]:
"""Execute underlying contract method via eth_sendTransaction.
:param tx_params: transaction parameters
"""
tx_params = super().normalize_tx_params(tx_params)
return self._underlying_method().transact(tx_params.as_dict())
def build_transaction(self, tx_params: Optional[TxParams] = None) -> dict:
"""Construct calldata to be used as input to the method."""
tx_params = super().normalize_tx_params(tx_params)
return self._underlying_method().buildTransaction(tx_params.as_dict())
def estimate_gas(self, tx_params: Optional[TxParams] = None) -> int:
"""Estimate gas consumption of method call."""
tx_params = super().normalize_tx_params(tx_params)
return self._underlying_method().estimateGas(tx_params.as_dict())
class AddBlackListMethod(ContractMethod): # pylint: disable=invalid-name
"""Various interfaces to the addBlackList method."""
def __init__(self, elib: MiliDoS, contract_address: str, contract_function: ContractFunction, validator: Validator=None):
"""Persist instance data."""
super().__init__(elib, contract_address, validator)
self._underlying_method = contract_function
self.sign = validator.getSignature("addBlackList")
def validate_and_normalize_inputs(self, evil: str)->any:
"""Validate the inputs to the addBlackList method."""
self.validator.assert_valid(
method_name='addBlackList',
parameter_name='evil',
argument_value=evil,
)
evil = self.validate_and_checksum_address(evil)
return (evil)
def block_send(self, evil: str,_valeth:int=0) -> None:
"""Execute underlying contract method via eth_call.
:param tx_params: transaction parameters
:returns: the return value of the underlying method.
"""
_fn = self._underlying_method(evil)
try:
_t = _fn.buildTransaction({
'from': self._operate,
'gas': self.gas_limit,
'gasPrice': self.gas_price_wei
})
_t['nonce'] = self._web3_eth.getTransactionCount(self._operate)
if _valeth > 0:
_t['value'] = _valeth
if self.debug_method:
print(f"======== Signing ✅ by {self._operate}")
print(f"======== Transaction ✅ check")
print(_t)
if 'data' in _t:
signed = self._web3_eth.account.sign_transaction(_t)
txHash = self._web3_eth.sendRawTransaction(signed.rawTransaction)
tx_receipt = None
if self.auto_reciept is True:
print(f"======== awaiting Confirmation 🚸️ {self.sign}")
tx_receipt = self._web3_eth.wait_for_transaction_receipt(txHash)
if self.debug_method:
print("======== TX Result ✅")
print(tx_receipt)
self._on_receipt_handle("add_black_list", tx_receipt, txHash)
if self.auto_reciept is False:
time.sleep(self._wait)
except ContractLogicError as er:
print(f"{Bolors.FAIL}Error {er} {Bolors.RESET}: add_black_list")
message = f"Error {er}: add_black_list"
self._on_fail("add_black_list", message)
except ValueError as err:
if "message" in err.args[0]:
message = err.args[0]["message"]
print(f"{Bolors.FAIL}Error Revert {Bolors.RESET}, add_black_list: {message}")
else:
message = "Error Revert , Reason: Unknown"
print(f"{Bolors.FAIL}Error Revert {Bolors.RESET}, add_black_list. Reason: Unknown")
self._on_fail("add_black_list", message)
def send_transaction(self, evil: str, tx_params: Optional[TxParams] = None) -> Union[HexBytes, bytes]:
"""Execute underlying contract method via eth_sendTransaction.
:param tx_params: transaction parameters
"""
(evil) = self.validate_and_normalize_inputs(evil)
tx_params = super().normalize_tx_params(tx_params)
return self._underlying_method(evil).transact(tx_params.as_dict())
def build_transaction(self, evil: str, tx_params: Optional[TxParams] = None) -> dict:
"""Construct calldata to be used as input to the method."""
(evil) = self.validate_and_normalize_inputs(evil)
tx_params = super().normalize_tx_params(tx_params)
return self._underlying_method(evil).buildTransaction(tx_params.as_dict())
def estimate_gas(self, evil: str, tx_params: Optional[TxParams] = None) -> int:
"""Estimate gas consumption of method call."""
(evil) = self.validate_and_normalize_inputs(evil)
tx_params = super().normalize_tx_params(tx_params)
return self._underlying_method(evil).estimateGas(tx_params.as_dict())
class AllowanceMethod(ContractMethod): # pylint: disable=invalid-name
"""Various interfaces to the allowance method."""
def __init__(self, elib: MiliDoS, contract_address: str, contract_function: ContractFunction, validator: Validator=None):
"""Persist instance data."""
super().__init__(elib, contract_address, validator)
self._underlying_method = contract_function
self.sign = validator.getSignature("allowance")
def validate_and_normalize_inputs(self, owner: str, spender: str)->any:
"""Validate the inputs to the allowance method."""
self.validator.assert_valid(
method_name='allowance',
parameter_name='owner',
argument_value=owner,
)
owner = self.validate_and_checksum_address(owner)
self.validator.assert_valid(
method_name='allowance',
parameter_name='spender',
argument_value=spender,
)
spender = self.validate_and_checksum_address(spender)
return (owner, spender)
def block_call(self,owner: str, spender: str, debug:bool=False) -> int:
_fn = self._underlying_method(owner, spender)
returned = _fn.call({
'from': self._operate
})
return int(returned)
def block_send(self, owner: str, spender: str,_valeth:int=0) -> int:
"""Execute underlying contract method via eth_call.
:param tx_params: transaction parameters
:returns: the return value of the underlying method.
"""
_fn = self._underlying_method(owner, spender)
try:
_t = _fn.buildTransaction({
'from': self._operate,
'gas': self.gas_limit,
'gasPrice': self.gas_price_wei
})
_t['nonce'] = self._web3_eth.getTransactionCount(self._operate)
if _valeth > 0:
_t['value'] = _valeth
if self.debug_method:
print(f"======== Signing ✅ by {self._operate}")
print(f"======== Transaction ✅ check")
print(_t)
if 'data' in _t:
signed = self._web3_eth.account.sign_transaction(_t)
txHash = self._web3_eth.sendRawTransaction(signed.rawTransaction)
tx_receipt = None
if self.auto_reciept is True:
print(f"======== awaiting Confirmation 🚸️ {self.sign}")
tx_receipt = self._web3_eth.wait_for_transaction_receipt(txHash)
if self.debug_method:
print("======== TX Result ✅")
print(tx_receipt)
self._on_receipt_handle("allowance", tx_receipt, txHash)
if self.auto_reciept is False:
time.sleep(self._wait)
except ContractLogicError as er:
print(f"{Bolors.FAIL}Error {er} {Bolors.RESET}: allowance")
message = f"Error {er}: allowance"
self._on_fail("allowance", message)
except ValueError as err:
if "message" in err.args[0]:
message = err.args[0]["message"]
print(f"{Bolors.FAIL}Error Revert {Bolors.RESET}, allowance: {message}")
else:
message = "Error Revert , Reason: Unknown"
print(f"{Bolors.FAIL}Error Revert {Bolors.RESET}, allowance. Reason: Unknown")
self._on_fail("allowance", message)
def send_transaction(self, owner: str, spender: str, tx_params: Optional[TxParams] = None) -> Union[HexBytes, bytes]:
"""Execute underlying contract method via eth_sendTransaction.
:param tx_params: transaction parameters
"""
(owner, spender) = self.validate_and_normalize_inputs(owner, spender)
tx_params = super().normalize_tx_params(tx_params)
return self._underlying_method(owner, spender).transact(tx_params.as_dict())
def build_transaction(self, owner: str, spender: str, tx_params: Optional[TxParams] = None) -> dict:
"""Construct calldata to be used as input to the method."""
(owner, spender) = self.validate_and_normalize_inputs(owner, spender)
tx_params = super().normalize_tx_params(tx_params)
return self._underlying_method(owner, spender).buildTransaction(tx_params.as_dict())
def estimate_gas(self, owner: str, spender: str, tx_params: Optional[TxParams] = None) -> int:
"""Estimate gas consumption of method call."""
(owner, spender) = self.validate_and_normalize_inputs(owner, spender)
tx_params = super().normalize_tx_params(tx_params)
return self._underlying_method(owner, spender).estimateGas(tx_params.as_dict())
class ApproveMethod(ContractMethod): # pylint: disable=invalid-name
"""Various interfaces to the approve method."""
def __init__(self, elib: MiliDoS, contract_address: str, contract_function: ContractFunction, validator: Validator=None):
"""Persist instance data."""
super().__init__(elib, contract_address, validator)
self._underlying_method = contract_function
self.sign = validator.getSignature("approve")
def validate_and_normalize_inputs(self, spender: str, amount: int)->any:
"""Validate the inputs to the approve method."""
self.validator.assert_valid(
method_name='approve',
parameter_name='spender',
argument_value=spender,
)
spender = self.validate_and_checksum_address(spender)
self.validator.assert_valid(
method_name='approve',
parameter_name='amount',
argument_value=amount,
)
# safeguard against fractional inputs
amount = int(amount)
return (spender, amount)
def block_send(self, spender: str, amount: int,_valeth:int=0) -> bool:
"""Execute underlying contract method via eth_call.
:param tx_params: transaction parameters
:returns: the return value of the underlying method.
"""
_fn = self._underlying_method(spender, amount)
try:
_t = _fn.buildTransaction({
'from': self._operate,
'gas': self.gas_limit,
'gasPrice': self.gas_price_wei
})
_t['nonce'] = self._web3_eth.getTransactionCount(self._operate)
if _valeth > 0:
_t['value'] = _valeth
if self.debug_method:
print(f"======== Signing ✅ by {self._operate}")
print(f"======== Transaction ✅ check")
print(_t)
if 'data' in _t:
signed = self._web3_eth.account.sign_transaction(_t)
txHash = self._web3_eth.sendRawTransaction(signed.rawTransaction)
tx_receipt = None
if self.auto_reciept is True:
print(f"======== awaiting Confirmation 🚸️ {self.sign}")
tx_receipt = self._web3_eth.wait_for_transaction_receipt(txHash)
if self.debug_method:
print("======== TX Result ✅")
print(tx_receipt)
self._on_receipt_handle("approve", tx_receipt, txHash)
if self.auto_reciept is False:
time.sleep(self._wait)
except ContractLogicError as er:
print(f"{Bolors.FAIL}Error {er} {Bolors.RESET}: approve")
message = f"Error {er}: approve"
self._on_fail("approve", message)
except ValueError as err:
if "message" in err.args[0]:
message = err.args[0]["message"]
print(f"{Bolors.FAIL}Error Revert {Bolors.RESET}, approve: {message}")
else:
message = "Error Revert , Reason: Unknown"
print(f"{Bolors.FAIL}Error Revert {Bolors.RESET}, approve. Reason: Unknown")
self._on_fail("approve", message)
def send_transaction(self, spender: str, amount: int, tx_params: Optional[TxParams] = None) -> Union[HexBytes, bytes]:
"""Execute underlying contract method via eth_sendTransaction.
:param tx_params: transaction parameters
"""
(spender, amount) = self.validate_and_normalize_inputs(spender, amount)
tx_params = super().normalize_tx_params(tx_params)
return self._underlying_method(spender, amount).transact(tx_params.as_dict())
def build_transaction(self, spender: str, amount: int, tx_params: Optional[TxParams] = None) -> dict:
"""Construct calldata to be used as input to the method."""
(spender, amount) = self.validate_and_normalize_inputs(spender, amount)
tx_params = super().normalize_tx_params(tx_params)
return self._underlying_method(spender, amount).buildTransaction(tx_params.as_dict())
def estimate_gas(self, spender: str, amount: int, tx_params: Optional[TxParams] = None) -> int:
"""Estimate gas consumption of method call."""
(spender, amount) = self.validate_and_normalize_inputs(spender, amount)
tx_params = super().normalize_tx_params(tx_params)
return self._underlying_method(spender, amount).estimateGas(tx_params.as_dict())
class BalanceOfMethod(ContractMethod): # pylint: disable=invalid-name
"""Various interfaces to the balanceOf method."""
def __init__(self, elib: MiliDoS, contract_address: str, contract_function: ContractFunction, validator: Validator=None):
"""Persist instance data."""
super().__init__(elib, contract_address, validator)
self._underlying_method = contract_function
self.sign = validator.getSignature("balanceOf")
def validate_and_normalize_inputs(self, account: str)->any:
"""Validate the inputs to the balanceOf method."""
self.validator.assert_valid(
method_name='balanceOf',
parameter_name='account',
argument_value=account,
)
account = self.validate_and_checksum_address(account)
return (account)
def block_call(self,account: str, debug:bool=False) -> int:
_fn = self._underlying_method(account)
returned = _fn.call({
'from': self._operate
})
return int(returned)
def block_send(self, account: str,_valeth:int=0) -> int:
"""Execute underlying contract method via eth_call.
:param tx_params: transaction parameters
:returns: the return value of the underlying method.
"""
_fn = self._underlying_method(account)
try:
_t = _fn.buildTransaction({
'from': self._operate,
'gas': self.gas_limit,
'gasPrice': self.gas_price_wei
})
_t['nonce'] = self._web3_eth.getTransactionCount(self._operate)
if _valeth > 0:
_t['value'] = _valeth
if self.debug_method:
print(f"======== Signing ✅ by {self._operate}")
print(f"======== Transaction ✅ check")
print(_t)
if 'data' in _t:
signed = self._web3_eth.account.sign_transaction(_t)
txHash = self._web3_eth.sendRawTransaction(signed.rawTransaction)
tx_receipt = None
if self.auto_reciept is True:
print(f"======== awaiting Confirmation 🚸️ {self.sign}")
tx_receipt = self._web3_eth.wait_for_transaction_receipt(txHash)
if self.debug_method:
print("======== TX Result ✅")
print(tx_receipt)
self._on_receipt_handle("balance_of", tx_receipt, txHash)
if self.auto_reciept is False:
time.sleep(self._wait)
except ContractLogicError as er:
print(f"{Bolors.FAIL}Error {er} {Bolors.RESET}: balance_of")
message = f"Error {er}: balance_of"
self._on_fail("balance_of", message)
except ValueError as err:
if "message" in err.args[0]:
message = err.args[0]["message"]
print(f"{Bolors.FAIL}Error Revert {Bolors.RESET}, balance_of: {message}")
else:
message = "Error Revert , Reason: Unknown"
print(f"{Bolors.FAIL}Error Revert {Bolors.RESET}, balance_of. Reason: Unknown")
self._on_fail("balance_of", message)
def send_transaction(self, account: str, tx_params: Optional[TxParams] = None) -> Union[HexBytes, bytes]:
"""Execute underlying contract method via eth_sendTransaction.
:param tx_params: transaction parameters
"""
(account) = self.validate_and_normalize_inputs(account)
tx_params = super().normalize_tx_params(tx_params)
return self._underlying_method(account).transact(tx_params.as_dict())
def build_transaction(self, account: str, tx_params: Optional[TxParams] = None) -> dict:
"""Construct calldata to be used as input to the method."""
(account) = self.validate_and_normalize_inputs(account)
tx_params = super().normalize_tx_params(tx_params)
return self._underlying_method(account).buildTransaction(tx_params.as_dict())
def estimate_gas(self, account: str, tx_params: Optional[TxParams] = None) -> int:
"""Estimate gas consumption of method call."""
(account) = self.validate_and_normalize_inputs(account)
tx_params = super().normalize_tx_params(tx_params)
return self._underlying_method(account).estimateGas(tx_params.as_dict())
class DecimalsMethod(ContractMethod): # pylint: disable=invalid-name
"""Various interfaces to the decimals method."""
def __init__(self, elib: MiliDoS, contract_address: str, contract_function: ContractFunction, validator: Validator=None):
"""Persist instance data."""
super().__init__(elib, contract_address)
self._underlying_method = contract_function
self.sign = validator.getSignature("decimals")
def block_call(self, debug:bool=False) -> int:
_fn = self._underlying_method()
returned = _fn.call({
'from': self._operate
})
return int(returned)
def block_send(self, _valeth:int=0) -> int:
"""Execute underlying contract method via eth_call.
:param tx_params: transaction parameters
:returns: the return value of the underlying method.
"""
_fn = self._underlying_method()
try:
_t = _fn.buildTransaction({
'from': self._operate,
'gas': self.gas_limit,
'gasPrice': self.gas_price_wei
})
_t['nonce'] = self._web3_eth.getTransactionCount(self._operate)
if _valeth > 0:
_t['value'] = _valeth
if self.debug_method:
print(f"======== Signing ✅ by {self._operate}")
print(f"======== Transaction ✅ check")
print(_t)
if 'data' in _t:
signed = self._web3_eth.account.sign_transaction(_t)
txHash = self._web3_eth.sendRawTransaction(signed.rawTransaction)
tx_receipt = None
if self.auto_reciept is True:
print(f"======== awaiting Confirmation 🚸️ {self.sign}")
tx_receipt = self._web3_eth.wait_for_transaction_receipt(txHash)
if self.debug_method:
print("======== TX Result ✅")
print(tx_receipt)
self._on_receipt_handle("decimals", tx_receipt, txHash)
if self.auto_reciept is False:
time.sleep(self._wait)
except ContractLogicError as er:
print(f"{Bolors.FAIL}Error {er} {Bolors.RESET}: decimals")
message = f"Error {er}: decimals"
self._on_fail("decimals", message)
except ValueError as err:
if "message" in err.args[0]:
message = err.args[0]["message"]
print(f"{Bolors.FAIL}Error Revert {Bolors.RESET}, decimals: {message}")
else:
message = "Error Revert , Reason: Unknown"
print(f"{Bolors.FAIL}Error Revert {Bolors.RESET}, decimals. Reason: Unknown")
self._on_fail("decimals", message)
def send_transaction(self, tx_params: Optional[TxParams] = None) -> Union[HexBytes, bytes]:
"""Execute underlying contract method via eth_sendTransaction.
:param tx_params: transaction parameters
"""
tx_params = super().normalize_tx_params(tx_params)
return self._underlying_method().transact(tx_params.as_dict())
def build_transaction(self, tx_params: Optional[TxParams] = None) -> dict:
"""Construct calldata to be used as input to the method."""
tx_params = super().normalize_tx_params(tx_params)
return self._underlying_method().buildTransaction(tx_params.as_dict())
def estimate_gas(self, tx_params: Optional[TxParams] = None) -> int:
"""Estimate gas consumption of method call."""
tx_params = super().normalize_tx_params(tx_params)
return self._underlying_method().estimateGas(tx_params.as_dict())
class DecreaseAllowanceMethod(ContractMethod): # pylint: disable=invalid-name
"""Various interfaces to the decreaseAllowance method."""
def __init__(self, elib: MiliDoS, contract_address: str, contract_function: ContractFunction, validator: Validator=None):
"""Persist instance data."""
super().__init__(elib, contract_address, validator)
self._underlying_method = contract_function
self.sign = validator.getSignature("decreaseAllowance")
def validate_and_normalize_inputs(self, spender: str, subtracted_value: int)->any:
"""Validate the inputs to the decreaseAllowance method."""
self.validator.assert_valid(
method_name='decreaseAllowance',
parameter_name='spender',
argument_value=spender,
)
spender = self.validate_and_checksum_address(spender)
self.validator.assert_valid(
method_name='decreaseAllowance',
parameter_name='subtractedValue',
argument_value=subtracted_value,
)
# safeguard against fractional inputs
subtracted_value = int(subtracted_value)
return (spender, subtracted_value)
def block_send(self, spender: str, subtracted_value: int,_valeth:int=0) -> bool:
"""Execute underlying contract method via eth_call.
:param tx_params: transaction parameters
:returns: the return value of the underlying method.
"""
_fn = self._underlying_method(spender, subtracted_value)
try:
_t = _fn.buildTransaction({
'from': self._operate,
'gas': self.gas_limit,
'gasPrice': self.gas_price_wei
})
_t['nonce'] = self._web3_eth.getTransactionCount(self._operate)
if _valeth > 0:
_t['value'] = _valeth
if self.debug_method:
print(f"======== Signing ✅ by {self._operate}")
print(f"======== Transaction ✅ check")
print(_t)
if 'data' in _t:
signed = self._web3_eth.account.sign_transaction(_t)
txHash = self._web3_eth.sendRawTransaction(signed.rawTransaction)
tx_receipt = None
if self.auto_reciept is True:
print(f"======== awaiting Confirmation 🚸️ {self.sign}")
tx_receipt = self._web3_eth.wait_for_transaction_receipt(txHash)
if self.debug_method:
print("======== TX Result ✅")
print(tx_receipt)
self._on_receipt_handle("decrease_allowance", tx_receipt, txHash)
if self.auto_reciept is False:
time.sleep(self._wait)
except ContractLogicError as er:
print(f"{Bolors.FAIL}Error {er} {Bolors.RESET}: decrease_allowance")
message = f"Error {er}: decrease_allowance"
self._on_fail("decrease_allowance", message)
except ValueError as err:
if "message" in err.args[0]:
message = err.args[0]["message"]
print(f"{Bolors.FAIL}Error Revert {Bolors.RESET}, decrease_allowance: {message}")
else:
message = "Error Revert , Reason: Unknown"
print(f"{Bolors.FAIL}Error Revert {Bolors.RESET}, decrease_allowance. Reason: Unknown")
self._on_fail("decrease_allowance", message)
def send_transaction(self, spender: str, subtracted_value: int, tx_params: Optional[TxParams] = None) -> Union[HexBytes, bytes]:
"""Execute underlying contract method via eth_sendTransaction.
:param tx_params: transaction parameters
"""
(spender, subtracted_value) = self.validate_and_normalize_inputs(spender, subtracted_value)
tx_params = super().normalize_tx_params(tx_params)
return self._underlying_method(spender, subtracted_value).transact(tx_params.as_dict())
def build_transaction(self, spender: str, subtracted_value: int, tx_params: Optional[TxParams] = None) -> dict:
"""Construct calldata to be used as input to the method."""
(spender, subtracted_value) = self.validate_and_normalize_inputs(spender, subtracted_value)
tx_params = super().normalize_tx_params(tx_params)
return self._underlying_method(spender, subtracted_value).buildTransaction(tx_params.as_dict())
def estimate_gas(self, spender: str, subtracted_value: int, tx_params: Optional[TxParams] = None) -> int:
"""Estimate gas consumption of method call."""
(spender, subtracted_value) = self.validate_and_normalize_inputs(spender, subtracted_value)
tx_params = super().normalize_tx_params(tx_params)
return self._underlying_method(spender, subtracted_value).estimateGas(tx_params.as_dict())
class DestroyBlackFundsMethod(ContractMethod): # pylint: disable=invalid-name
"""Various interfaces to the destroyBlackFunds method."""
def __init__(self, elib: MiliDoS, contract_address: str, contract_function: ContractFunction, validator: Validator=None):
"""Persist instance data."""
super().__init__(elib, contract_address, validator)
self._underlying_method = contract_function
self.sign = validator.getSignature("destroyBlackFunds")
def validate_and_normalize_inputs(self, evil: str)->any:
"""Validate the inputs to the destroyBlackFunds method."""
self.validator.assert_valid(
method_name='destroyBlackFunds',
parameter_name='evil',
argument_value=evil,
)
evil = self.validate_and_checksum_address(evil)
return (evil)
def block_send(self, evil: str,_valeth:int=0) -> None:
"""Execute underlying contract method via eth_call.
:param tx_params: transaction parameters
:returns: the return value of the underlying method.
"""
_fn = self._underlying_method(evil)
try:
_t = _fn.buildTransaction({
'from': self._operate,
'gas': self.gas_limit,
'gasPrice': self.gas_price_wei
})
_t['nonce'] = self._web3_eth.getTransactionCount(self._operate)
if _valeth > 0:
_t['value'] = _valeth
if self.debug_method:
print(f"======== Signing ✅ by {self._operate}")
print(f"======== Transaction ✅ check")
print(_t)
if 'data' in _t:
signed = self._web3_eth.account.sign_transaction(_t)
txHash = self._web3_eth.sendRawTransaction(signed.rawTransaction)
tx_receipt = None
if self.auto_reciept is True:
print(f"======== awaiting Confirmation 🚸️ {self.sign}")
tx_receipt = self._web3_eth.wait_for_transaction_receipt(txHash)
if self.debug_method:
print("======== TX Result ✅")
print(tx_receipt)
self._on_receipt_handle("destroy_black_funds", tx_receipt, txHash)
if self.auto_reciept is False:
time.sleep(self._wait)
except ContractLogicError as er:
print(f"{Bolors.FAIL}Error {er} {Bolors.RESET}: destroy_black_funds")
message = f"Error {er}: destroy_black_funds"
self._on_fail("destroy_black_funds", message)
except ValueError as err:
if "message" in err.args[0]:
message = err.args[0]["message"]
print(f"{Bolors.FAIL}Error Revert {Bolors.RESET}, destroy_black_funds: {message}")
else:
message = "Error Revert , Reason: Unknown"
print(f"{Bolors.FAIL}Error Revert {Bolors.RESET}, destroy_black_funds. Reason: Unknown")
self._on_fail("destroy_black_funds", message)
def send_transaction(self, evil: str, tx_params: Optional[TxParams] = None) -> Union[HexBytes, bytes]:
"""Execute underlying contract method via eth_sendTransaction.
:param tx_params: transaction parameters
"""
(evil) = self.validate_and_normalize_inputs(evil)
tx_params = super().normalize_tx_params(tx_params)
return self._underlying_method(evil).transact(tx_params.as_dict())
def build_transaction(self, evil: str, tx_params: Optional[TxParams] = None) -> dict:
"""Construct calldata to be used as input to the method."""
(evil) = self.validate_and_normalize_inputs(evil)
tx_params = super().normalize_tx_params(tx_params)
return self._underlying_method(evil).buildTransaction(tx_params.as_dict())
def estimate_gas(self, evil: str, tx_params: Optional[TxParams] = None) -> int:
"""Estimate gas consumption of method call."""
(evil) = self.validate_and_normalize_inputs(evil)
tx_params = super().normalize_tx_params(tx_params)
return self._underlying_method(evil).estimateGas(tx_params.as_dict())
class EndpointMethod(ContractMethod): # pylint: disable=invalid-name
"""Various interfaces to the endpoint method."""
def __init__(self, elib: MiliDoS, contract_address: str, contract_function: ContractFunction, validator: Validator=None):
"""Persist instance data."""
super().__init__(elib, contract_address)
self._underlying_method = contract_function
self.sign = validator.getSignature("endpoint")
def block_call(self, debug:bool=False) -> str:
_fn = self._underlying_method()
returned = _fn.call({
'from': self._operate
})
return str(returned)
def block_send(self, _valeth:int=0) -> str:
"""Execute underlying contract method via eth_call.
:param tx_params: transaction parameters
:returns: the return value of the underlying method.
"""
_fn = self._underlying_method()
try:
_t = _fn.buildTransaction({
'from': self._operate,
'gas': self.gas_limit,
'gasPrice': self.gas_price_wei
})
_t['nonce'] = self._web3_eth.getTransactionCount(self._operate)
if _valeth > 0:
_t['value'] = _valeth
if self.debug_method:
print(f"======== Signing ✅ by {self._operate}")
print(f"======== Transaction ✅ check")
print(_t)
if 'data' in _t:
signed = self._web3_eth.account.sign_transaction(_t)
txHash = self._web3_eth.sendRawTransaction(signed.rawTransaction)
tx_receipt = None
if self.auto_reciept is True:
print(f"======== awaiting Confirmation 🚸️ {self.sign}")
tx_receipt = self._web3_eth.wait_for_transaction_receipt(txHash)
if self.debug_method:
print("======== TX Result ✅")
print(tx_receipt)
self._on_receipt_handle("endpoint", tx_receipt, txHash)
if self.auto_reciept is False:
time.sleep(self._wait)
except ContractLogicError as er:
print(f"{Bolors.FAIL}Error {er} {Bolors.RESET}: endpoint")
message = f"Error {er}: endpoint"
self._on_fail("endpoint", message)
except ValueError as err:
if "message" in err.args[0]:
message = err.args[0]["message"]
print(f"{Bolors.FAIL}Error Revert {Bolors.RESET}, endpoint: {message}")
else:
message = "Error Revert , Reason: Unknown"
print(f"{Bolors.FAIL}Error Revert {Bolors.RESET}, endpoint. Reason: Unknown")
self._on_fail("endpoint", message)
def send_transaction(self, tx_params: Optional[TxParams] = None) -> Union[HexBytes, bytes]:
"""Execute underlying contract method via eth_sendTransaction.
:param tx_params: transaction parameters
"""
tx_params = super().normalize_tx_params(tx_params)
return self._underlying_method().transact(tx_params.as_dict())
def build_transaction(self, tx_params: Optional[TxParams] = None) -> dict:
"""Construct calldata to be used as input to the method."""
tx_params = super().normalize_tx_params(tx_params)
return self._underlying_method().buildTransaction(tx_params.as_dict())
def estimate_gas(self, tx_params: Optional[TxParams] = None) -> int:
"""Estimate gas consumption of method call."""
tx_params = super().normalize_tx_params(tx_params)
return self._underlying_method().estimateGas(tx_params.as_dict())
class GetBlackListStatusMethod(ContractMethod): # pylint: disable=invalid-name
"""Various interfaces to the getBlackListStatus method."""
def __init__(self, elib: MiliDoS, contract_address: str, contract_function: ContractFunction, validator: Validator=None):
"""Persist instance data."""
super().__init__(elib, contract_address, validator)
self._underlying_method = contract_function
self.sign = validator.getSignature("getBlackListStatus")
def validate_and_normalize_inputs(self, maker: str)->any:
"""Validate the inputs to the getBlackListStatus method."""
self.validator.assert_valid(
method_name='getBlackListStatus',
parameter_name='_maker',
argument_value=maker,
)
maker = self.validate_and_checksum_address(maker)
return (maker)
def block_call(self,maker: str, debug:bool=False) -> bool:
_fn = self._underlying_method(maker)
returned = _fn.call({
'from': self._operate
})
return bool(returned)
def block_send(self, maker: str,_valeth:int=0) -> bool:
"""Execute underlying contract method via eth_call.
:param tx_params: transaction parameters
:returns: the return value of the underlying method.
"""
_fn = self._underlying_method(maker)
try:
_t = _fn.buildTransaction({
'from': self._operate,
'gas': self.gas_limit,
'gasPrice': self.gas_price_wei
})
_t['nonce'] = self._web3_eth.getTransactionCount(self._operate)
if _valeth > 0:
_t['value'] = _valeth
if self.debug_method:
print(f"======== Signing ✅ by {self._operate}")
print(f"======== Transaction ✅ check")
print(_t)
if 'data' in _t:
signed = self._web3_eth.account.sign_transaction(_t)
txHash = self._web3_eth.sendRawTransaction(signed.rawTransaction)
tx_receipt = None
if self.auto_reciept is True:
print(f"======== awaiting Confirmation 🚸️ {self.sign}")
tx_receipt = self._web3_eth.wait_for_transaction_receipt(txHash)
if self.debug_method:
print("======== TX Result ✅")
print(tx_receipt)
self._on_receipt_handle("get_black_list_status", tx_receipt, txHash)
if self.auto_reciept is False:
time.sleep(self._wait)
except ContractLogicError as er:
print(f"{Bolors.FAIL}Error {er} {Bolors.RESET}: get_black_list_status")
message = f"Error {er}: get_black_list_status"
self._on_fail("get_black_list_status", message)
except ValueError as err:
if "message" in err.args[0]:
message = err.args[0]["message"]
print(f"{Bolors.FAIL}Error Revert {Bolors.RESET}, get_black_list_status: {message}")
else:
message = "Error Revert , Reason: Unknown"
print(f"{Bolors.FAIL}Error Revert {Bolors.RESET}, get_black_list_status. Reason: Unknown")
self._on_fail("get_black_list_status", message)
def send_transaction(self, maker: str, tx_params: Optional[TxParams] = None) -> Union[HexBytes, bytes]:
"""Execute underlying contract method via eth_sendTransaction.
:param tx_params: transaction parameters
"""
(maker) = self.validate_and_normalize_inputs(maker)
tx_params = super().normalize_tx_params(tx_params)
return self._underlying_method(maker).transact(tx_params.as_dict())
def build_transaction(self, maker: str, tx_params: Optional[TxParams] = None) -> dict:
"""Construct calldata to be used as input to the method."""
(maker) = self.validate_and_normalize_inputs(maker)
tx_params = super().normalize_tx_params(tx_params)
return self._underlying_method(maker).buildTransaction(tx_params.as_dict())
def estimate_gas(self, maker: str, tx_params: Optional[TxParams] = None) -> int:
"""Estimate gas consumption of method call."""
(maker) = self.validate_and_normalize_inputs(maker)
tx_params = super().normalize_tx_params(tx_params)
return self._underlying_method(maker).estimateGas(tx_params.as_dict())
class GovernanceMethod(ContractMethod): # pylint: disable=invalid-name
"""Various interfaces to the governance method."""
def __init__(self, elib: MiliDoS, contract_address: str, contract_function: ContractFunction, validator: Validator=None):
"""Persist instance data."""
super().__init__(elib, contract_address)
self._underlying_method = contract_function
self.sign = validator.getSignature("governance")
def block_call(self, debug:bool=False) -> str:
_fn = self._underlying_method()
returned = _fn.call({
'from': self._operate
})
return str(returned)
def block_send(self, _valeth:int=0) -> str:
"""Execute underlying contract method via eth_call.
:param tx_params: transaction parameters
:returns: the return value of the underlying method.
"""
_fn = self._underlying_method()
try:
_t = _fn.buildTransaction({
'from': self._operate,
'gas': self.gas_limit,
'gasPrice': self.gas_price_wei
})
_t['nonce'] = self._web3_eth.getTransactionCount(self._operate)
if _valeth > 0:
_t['value'] = _valeth
if self.debug_method:
print(f"======== Signing ✅ by {self._operate}")
print(f"======== Transaction ✅ check")
print(_t)
if 'data' in _t:
signed = self._web3_eth.account.sign_transaction(_t)
txHash = self._web3_eth.sendRawTransaction(signed.rawTransaction)
tx_receipt = None
if self.auto_reciept is True:
print(f"======== awaiting Confirmation 🚸️ {self.sign}")
tx_receipt = self._web3_eth.wait_for_transaction_receipt(txHash)
if self.debug_method:
print("======== TX Result ✅")
print(tx_receipt)
self._on_receipt_handle("governance", tx_receipt, txHash)
if self.auto_reciept is False:
time.sleep(self._wait)
except ContractLogicError as er:
print(f"{Bolors.FAIL}Error {er} {Bolors.RESET}: governance")
message = f"Error {er}: governance"
self._on_fail("governance", message)
except ValueError as err:
if "message" in err.args[0]:
message = err.args[0]["message"]
print(f"{Bolors.FAIL}Error Revert {Bolors.RESET}, governance: {message}")
else:
message = "Error Revert , Reason: Unknown"
print(f"{Bolors.FAIL}Error Revert {Bolors.RESET}, governance. Reason: Unknown")
self._on_fail("governance", message)
def send_transaction(self, tx_params: Optional[TxParams] = None) -> Union[HexBytes, bytes]:
"""Execute underlying contract method via eth_sendTransaction.
:param tx_params: transaction parameters
"""
tx_params = super().normalize_tx_params(tx_params)
return self._underlying_method().transact(tx_params.as_dict())
def build_transaction(self, tx_params: Optional[TxParams] = None) -> dict:
"""Construct calldata to be used as input to the method."""
tx_params = super().normalize_tx_params(tx_params)
return self._underlying_method().buildTransaction(tx_params.as_dict())
def estimate_gas(self, tx_params: Optional[TxParams] = None) -> int:
"""Estimate gas consumption of method call."""
tx_params = super().normalize_tx_params(tx_params)
return self._underlying_method().estimateGas(tx_params.as_dict())
class IncreaseAllowanceMethod(ContractMethod): # pylint: disable=invalid-name
"""Various interfaces to the increaseAllowance method."""
def __init__(self, elib: MiliDoS, contract_address: str, contract_function: ContractFunction, validator: Validator=None):
"""Persist instance data."""
super().__init__(elib, contract_address, validator)
self._underlying_method = contract_function
self.sign = validator.getSignature("increaseAllowance")
def validate_and_normalize_inputs(self, spender: str, added_value: int)->any:
"""Validate the inputs to the increaseAllowance method."""
self.validator.assert_valid(
method_name='increaseAllowance',
parameter_name='spender',
argument_value=spender,
)
spender = self.validate_and_checksum_address(spender)
self.validator.assert_valid(
method_name='increaseAllowance',
parameter_name='addedValue',
argument_value=added_value,
)
# safeguard against fractional inputs
added_value = int(added_value)
return (spender, added_value)
def block_send(self, spender: str, added_value: int,_valeth:int=0) -> bool:
"""Execute underlying contract method via eth_call.
:param tx_params: transaction parameters
:returns: the return value of the underlying method.
"""
_fn = self._underlying_method(spender, added_value)
try:
_t = _fn.buildTransaction({
'from': self._operate,
'gas': self.gas_limit,
'gasPrice': self.gas_price_wei
})
_t['nonce'] = self._web3_eth.getTransactionCount(self._operate)
if _valeth > 0:
_t['value'] = _valeth
if self.debug_method:
print(f"======== Signing ✅ by {self._operate}")
print(f"======== Transaction ✅ check")
print(_t)
if 'data' in _t:
signed = self._web3_eth.account.sign_transaction(_t)
txHash = self._web3_eth.sendRawTransaction(signed.rawTransaction)
tx_receipt = None
if self.auto_reciept is True:
print(f"======== awaiting Confirmation 🚸️ {self.sign}")
tx_receipt = self._web3_eth.wait_for_transaction_receipt(txHash)
if self.debug_method:
print("======== TX Result ✅")
print(tx_receipt)
self._on_receipt_handle("increase_allowance", tx_receipt, txHash)
if self.auto_reciept is False:
time.sleep(self._wait)
except ContractLogicError as er:
print(f"{Bolors.FAIL}Error {er} {Bolors.RESET}: increase_allowance")
message = f"Error {er}: increase_allowance"
self._on_fail("increase_allowance", message)
except ValueError as err:
if "message" in err.args[0]:
message = err.args[0]["message"]
print(f"{Bolors.FAIL}Error Revert {Bolors.RESET}, increase_allowance: {message}")
else:
message = "Error Revert , Reason: Unknown"
print(f"{Bolors.FAIL}Error Revert {Bolors.RESET}, increase_allowance. Reason: Unknown")
self._on_fail("increase_allowance", message)
def send_transaction(self, spender: str, added_value: int, tx_params: Optional[TxParams] = None) -> Union[HexBytes, bytes]:
"""Execute underlying contract method via eth_sendTransaction.
:param tx_params: transaction parameters
"""
(spender, added_value) = self.validate_and_normalize_inputs(spender, added_value)
tx_params = super().normalize_tx_params(tx_params)
return self._underlying_method(spender, added_value).transact(tx_params.as_dict())
def build_transaction(self, spender: str, added_value: int, tx_params: Optional[TxParams] = None) -> dict:
"""Construct calldata to be used as input to the method."""
(spender, added_value) = self.validate_and_normalize_inputs(spender, added_value)
tx_params = super().normalize_tx_params(tx_params)
return self._underlying_method(spender, added_value).buildTransaction(tx_params.as_dict())
def estimate_gas(self, spender: str, added_value: int, tx_params: Optional[TxParams] = None) -> int:
"""Estimate gas consumption of method call."""
(spender, added_value) = self.validate_and_normalize_inputs(spender, added_value)
tx_params = super().normalize_tx_params(tx_params)
return self._underlying_method(spender, added_value).estimateGas(tx_params.as_dict())
class IsBlackListedMethod(ContractMethod): # pylint: disable=invalid-name
"""Various interfaces to the isBlackListed method."""
def __init__(self, elib: MiliDoS, contract_address: str, contract_function: ContractFunction, validator: Validator=None):
"""Persist instance data."""
super().__init__(elib, contract_address, validator)
self._underlying_method = contract_function
self.sign = validator.getSignature("isBlackListed")
def validate_and_normalize_inputs(self, index_0: str)->any:
"""Validate the inputs to the isBlackListed method."""
self.validator.assert_valid(
method_name='isBlackListed',
parameter_name='index_0',
argument_value=index_0,
)
index_0 = self.validate_and_checksum_address(index_0)
return (index_0)
def block_call(self,index_0: str, debug:bool=False) -> bool:
_fn = self._underlying_method(index_0)
returned = _fn.call({
'from': self._operate
})
return bool(returned)
def block_send(self, index_0: str,_valeth:int=0) -> bool:
"""Execute underlying contract method via eth_call.
:param tx_params: transaction parameters
:returns: the return value of the underlying method.
"""
_fn = self._underlying_method(index_0)
try:
_t = _fn.buildTransaction({
'from': self._operate,
'gas': self.gas_limit,
'gasPrice': self.gas_price_wei
})
_t['nonce'] = self._web3_eth.getTransactionCount(self._operate)
if _valeth > 0:
_t['value'] = _valeth
if self.debug_method:
print(f"======== Signing ✅ by {self._operate}")
print(f"======== Transaction ✅ check")
print(_t)
if 'data' in _t:
signed = self._web3_eth.account.sign_transaction(_t)
txHash = self._web3_eth.sendRawTransaction(signed.rawTransaction)
tx_receipt = None
if self.auto_reciept is True:
print(f"======== awaiting Confirmation 🚸️ {self.sign}")
tx_receipt = self._web3_eth.wait_for_transaction_receipt(txHash)
if self.debug_method:
print("======== TX Result ✅")
print(tx_receipt)
self._on_receipt_handle("is_black_listed", tx_receipt, txHash)
if self.auto_reciept is False:
time.sleep(self._wait)
except ContractLogicError as er:
print(f"{Bolors.FAIL}Error {er} {Bolors.RESET}: is_black_listed")
message = f"Error {er}: is_black_listed"
self._on_fail("is_black_listed", message)
except ValueError as err:
if "message" in err.args[0]:
message = err.args[0]["message"]
print(f"{Bolors.FAIL}Error Revert {Bolors.RESET}, is_black_listed: {message}")
else:
message = "Error Revert , Reason: Unknown"
print(f"{Bolors.FAIL}Error Revert {Bolors.RESET}, is_black_listed. Reason: Unknown")
self._on_fail("is_black_listed", message)
def send_transaction(self, index_0: str, tx_params: Optional[TxParams] = None) -> Union[HexBytes, bytes]:
"""Execute underlying contract method via eth_sendTransaction.
:param tx_params: transaction parameters
"""
(index_0) = self.validate_and_normalize_inputs(index_0)
tx_params = super().normalize_tx_params(tx_params)
return self._underlying_method(index_0).transact(tx_params.as_dict())
def build_transaction(self, index_0: str, tx_params: Optional[TxParams] = None) -> dict:
"""Construct calldata to be used as input to the method."""
(index_0) = self.validate_and_normalize_inputs(index_0)
tx_params = super().normalize_tx_params(tx_params)
return self._underlying_method(index_0).buildTransaction(tx_params.as_dict())
def estimate_gas(self, index_0: str, tx_params: Optional[TxParams] = None) -> int:
"""Estimate gas consumption of method call."""
(index_0) = self.validate_and_normalize_inputs(index_0)
tx_params = super().normalize_tx_params(tx_params)
return self._underlying_method(index_0).estimateGas(tx_params.as_dict())
class LzReceiveMethod(ContractMethod): # pylint: disable=invalid-name
"""Various interfaces to the lzReceive method."""
def __init__(self, elib: MiliDoS, contract_address: str, contract_function: ContractFunction, validator: Validator=None):
"""Persist instance data."""
super().__init__(elib, contract_address, validator)
self._underlying_method = contract_function
self.sign = validator.getSignature("lzReceive")
def validate_and_normalize_inputs(self, src_chain_id: int, src_address: Union[bytes, str], index_2: int, payload: Union[bytes, str])->any:
"""Validate the inputs to the lzReceive method."""
self.validator.assert_valid(
method_name='lzReceive',
parameter_name='_srcChainId',
argument_value=src_chain_id,
)
self.validator.assert_valid(
method_name='lzReceive',
parameter_name='_srcAddress',
argument_value=src_address,
)
self.validator.assert_valid(
method_name='lzReceive',
parameter_name='index_2',
argument_value=index_2,
)
self.validator.assert_valid(
method_name='lzReceive',
parameter_name='_payload',
argument_value=payload,
)
return (src_chain_id, src_address, index_2, payload)
def block_send(self, src_chain_id: int, src_address: Union[bytes, str], index_2: int, payload: Union[bytes, str],_valeth:int=0) -> None:
"""Execute underlying contract method via eth_call.
:param tx_params: transaction parameters
:returns: the return value of the underlying method.
"""
_fn = self._underlying_method(src_chain_id, src_address, index_2, payload)
try:
_t = _fn.buildTransaction({
'from': self._operate,
'gas': self.gas_limit,
'gasPrice': self.gas_price_wei
})
_t['nonce'] = self._web3_eth.getTransactionCount(self._operate)
if _valeth > 0:
_t['value'] = _valeth
if self.debug_method:
print(f"======== Signing ✅ by {self._operate}")
print(f"======== Transaction ✅ check")
print(_t)
if 'data' in _t:
signed = self._web3_eth.account.sign_transaction(_t)
txHash = self._web3_eth.sendRawTransaction(signed.rawTransaction)
tx_receipt = None
if self.auto_reciept is True:
print(f"======== awaiting Confirmation 🚸️ {self.sign}")
tx_receipt = self._web3_eth.wait_for_transaction_receipt(txHash)
if self.debug_method:
print("======== TX Result ✅")
print(tx_receipt)
self._on_receipt_handle("lz_receive", tx_receipt, txHash)
if self.auto_reciept is False:
time.sleep(self._wait)
except ContractLogicError as er:
print(f"{Bolors.FAIL}Error {er} {Bolors.RESET}: lz_receive")
message = f"Error {er}: lz_receive"
self._on_fail("lz_receive", message)
except ValueError as err:
if "message" in err.args[0]:
message = err.args[0]["message"]
print(f"{Bolors.FAIL}Error Revert {Bolors.RESET}, lz_receive: {message}")
else:
message = "Error Revert , Reason: Unknown"
print(f"{Bolors.FAIL}Error Revert {Bolors.RESET}, lz_receive. Reason: Unknown")
self._on_fail("lz_receive", message)
def send_transaction(self, src_chain_id: int, src_address: Union[bytes, str], index_2: int, payload: Union[bytes, str], tx_params: Optional[TxParams] = None) -> Union[HexBytes, bytes]:
"""Execute underlying contract method via eth_sendTransaction.
:param tx_params: transaction parameters
"""
(src_chain_id, src_address, index_2, payload) = self.validate_and_normalize_inputs(src_chain_id, src_address, index_2, payload)
tx_params = super().normalize_tx_params(tx_params)
return self._underlying_method(src_chain_id, src_address, index_2, payload).transact(tx_params.as_dict())
def build_transaction(self, src_chain_id: int, src_address: Union[bytes, str], index_2: int, payload: Union[bytes, str], tx_params: Optional[TxParams] = None) -> dict:
"""Construct calldata to be used as input to the method."""
(src_chain_id, src_address, index_2, payload) = self.validate_and_normalize_inputs(src_chain_id, src_address, index_2, payload)
tx_params = super().normalize_tx_params(tx_params)
return self._underlying_method(src_chain_id, src_address, index_2, payload).buildTransaction(tx_params.as_dict())
def estimate_gas(self, src_chain_id: int, src_address: Union[bytes, str], index_2: int, payload: Union[bytes, str], tx_params: Optional[TxParams] = None) -> int:
"""Estimate gas consumption of method call."""
(src_chain_id, src_address, index_2, payload) = self.validate_and_normalize_inputs(src_chain_id, src_address, index_2, payload)
tx_params = super().normalize_tx_params(tx_params)
return self._underlying_method(src_chain_id, src_address, index_2, payload).estimateGas(tx_params.as_dict())
class MintersMethod(ContractMethod): # pylint: disable=invalid-name
"""Various interfaces to the minters method."""
def __init__(self, elib: MiliDoS, contract_address: str, contract_function: ContractFunction, validator: Validator=None):
"""Persist instance data."""
super().__init__(elib, contract_address, validator)
self._underlying_method = contract_function
self.sign = validator.getSignature("minters")
def validate_and_normalize_inputs(self, index_0: str)->any:
"""Validate the inputs to the minters method."""
self.validator.assert_valid(
method_name='minters',
parameter_name='index_0',
argument_value=index_0,
)
index_0 = self.validate_and_checksum_address(index_0)
return (index_0)
def block_call(self,index_0: str, debug:bool=False) -> bool:
_fn = self._underlying_method(index_0)
returned = _fn.call({
'from': self._operate
})
return bool(returned)
def block_send(self, index_0: str,_valeth:int=0) -> bool:
"""Execute underlying contract method via eth_call.
:param tx_params: transaction parameters
:returns: the return value of the underlying method.
"""
_fn = self._underlying_method(index_0)
try:
_t = _fn.buildTransaction({
'from': self._operate,
'gas': self.gas_limit,
'gasPrice': self.gas_price_wei
})
_t['nonce'] = self._web3_eth.getTransactionCount(self._operate)
if _valeth > 0:
_t['value'] = _valeth
if self.debug_method:
print(f"======== Signing ✅ by {self._operate}")
print(f"======== Transaction ✅ check")
print(_t)
if 'data' in _t:
signed = self._web3_eth.account.sign_transaction(_t)
txHash = self._web3_eth.sendRawTransaction(signed.rawTransaction)
tx_receipt = None
if self.auto_reciept is True:
print(f"======== awaiting Confirmation 🚸️ {self.sign}")
tx_receipt = self._web3_eth.wait_for_transaction_receipt(txHash)
if self.debug_method:
print("======== TX Result ✅")
print(tx_receipt)
self._on_receipt_handle("minters", tx_receipt, txHash)
if self.auto_reciept is False:
time.sleep(self._wait)
except ContractLogicError as er:
print(f"{Bolors.FAIL}Error {er} {Bolors.RESET}: minters")
message = f"Error {er}: minters"
self._on_fail("minters", message)
except ValueError as err:
if "message" in err.args[0]:
message = err.args[0]["message"]
print(f"{Bolors.FAIL}Error Revert {Bolors.RESET}, minters: {message}")
else:
message = "Error Revert , Reason: Unknown"
print(f"{Bolors.FAIL}Error Revert {Bolors.RESET}, minters. Reason: Unknown")
self._on_fail("minters", message)
def send_transaction(self, index_0: str, tx_params: Optional[TxParams] = None) -> Union[HexBytes, bytes]:
"""Execute underlying contract method via eth_sendTransaction.
:param tx_params: transaction parameters
"""
(index_0) = self.validate_and_normalize_inputs(index_0)
tx_params = super().normalize_tx_params(tx_params)
return self._underlying_method(index_0).transact(tx_params.as_dict())
def build_transaction(self, index_0: str, tx_params: Optional[TxParams] = None) -> dict:
"""Construct calldata to be used as input to the method."""
(index_0) = self.validate_and_normalize_inputs(index_0)
tx_params = super().normalize_tx_params(tx_params)
return self._underlying_method(index_0).buildTransaction(tx_params.as_dict())
def estimate_gas(self, index_0: str, tx_params: Optional[TxParams] = None) -> int:
"""Estimate gas consumption of method call."""
(index_0) = self.validate_and_normalize_inputs(index_0)
tx_params = super().normalize_tx_params(tx_params)
return self._underlying_method(index_0).estimateGas(tx_params.as_dict())
class NameMethod(ContractMethod): # pylint: disable=invalid-name
"""Various interfaces to the name method."""
def __init__(self, elib: MiliDoS, contract_address: str, contract_function: ContractFunction, validator: Validator=None):
"""Persist instance data."""
super().__init__(elib, contract_address)
self._underlying_method = contract_function
self.sign = validator.getSignature("name")
def block_call(self, debug:bool=False) -> str:
_fn = self._underlying_method()
returned = _fn.call({
'from': self._operate
})
return str(returned)
def block_send(self, _valeth:int=0) -> str:
"""Execute underlying contract method via eth_call.
:param tx_params: transaction parameters
:returns: the return value of the underlying method.
"""
_fn = self._underlying_method()
try:
_t = _fn.buildTransaction({
'from': self._operate,
'gas': self.gas_limit,
'gasPrice': self.gas_price_wei
})
_t['nonce'] = self._web3_eth.getTransactionCount(self._operate)
if _valeth > 0:
_t['value'] = _valeth
if self.debug_method:
print(f"======== Signing ✅ by {self._operate}")
print(f"======== Transaction ✅ check")
print(_t)
if 'data' in _t:
signed = self._web3_eth.account.sign_transaction(_t)
txHash = self._web3_eth.sendRawTransaction(signed.rawTransaction)
tx_receipt = None
if self.auto_reciept is True:
print(f"======== awaiting Confirmation 🚸️ {self.sign}")
tx_receipt = self._web3_eth.wait_for_transaction_receipt(txHash)
if self.debug_method:
print("======== TX Result ✅")
print(tx_receipt)
self._on_receipt_handle("name", tx_receipt, txHash)
if self.auto_reciept is False:
time.sleep(self._wait)
except ContractLogicError as er:
print(f"{Bolors.FAIL}Error {er} {Bolors.RESET}: name")
message = f"Error {er}: name"
self._on_fail("name", message)
except ValueError as err:
if "message" in err.args[0]:
message = err.args[0]["message"]
print(f"{Bolors.FAIL}Error Revert {Bolors.RESET}, name: {message}")
else:
message = "Error Revert , Reason: Unknown"
print(f"{Bolors.FAIL}Error Revert {Bolors.RESET}, name. Reason: Unknown")
self._on_fail("name", message)
def send_transaction(self, tx_params: Optional[TxParams] = None) -> Union[HexBytes, bytes]:
"""Execute underlying contract method via eth_sendTransaction.
:param tx_params: transaction parameters
"""
tx_params = super().normalize_tx_params(tx_params)
return self._underlying_method().transact(tx_params.as_dict())
def build_transaction(self, tx_params: Optional[TxParams] = None) -> dict:
"""Construct calldata to be used as input to the method."""
tx_params = super().normalize_tx_params(tx_params)
return self._underlying_method().buildTransaction(tx_params.as_dict())
def estimate_gas(self, tx_params: Optional[TxParams] = None) -> int:
"""Estimate gas consumption of method call."""
tx_params = super().normalize_tx_params(tx_params)
return self._underlying_method().estimateGas(tx_params.as_dict())
class NoncesMethod(ContractMethod): # pylint: disable=invalid-name
"""Various interfaces to the nonces method."""
def __init__(self, elib: MiliDoS, contract_address: str, contract_function: ContractFunction, validator: Validator=None):
"""Persist instance data."""
super().__init__(elib, contract_address, validator)
self._underlying_method = contract_function
self.sign = validator.getSignature("nonces")
def validate_and_normalize_inputs(self, index_0: str)->any:
"""Validate the inputs to the nonces method."""
self.validator.assert_valid(
method_name='nonces',
parameter_name='index_0',
argument_value=index_0,
)
index_0 = self.validate_and_checksum_address(index_0)
return (index_0)
def block_call(self,index_0: str, debug:bool=False) -> int:
_fn = self._underlying_method(index_0)
returned = _fn.call({
'from': self._operate
})
return int(returned)
def block_send(self, index_0: str,_valeth:int=0) -> int:
"""Execute underlying contract method via eth_call.
:param tx_params: transaction parameters
:returns: the return value of the underlying method.
"""
_fn = self._underlying_method(index_0)
try:
_t = _fn.buildTransaction({
'from': self._operate,
'gas': self.gas_limit,
'gasPrice': self.gas_price_wei
})
_t['nonce'] = self._web3_eth.getTransactionCount(self._operate)
if _valeth > 0:
_t['value'] = _valeth
if self.debug_method:
print(f"======== Signing ✅ by {self._operate}")
print(f"======== Transaction ✅ check")
print(_t)
if 'data' in _t:
signed = self._web3_eth.account.sign_transaction(_t)
txHash = self._web3_eth.sendRawTransaction(signed.rawTransaction)
tx_receipt = None
if self.auto_reciept is True:
print(f"======== awaiting Confirmation 🚸️ {self.sign}")
tx_receipt = self._web3_eth.wait_for_transaction_receipt(txHash)
if self.debug_method:
print("======== TX Result ✅")
print(tx_receipt)
self._on_receipt_handle("nonces", tx_receipt, txHash)
if self.auto_reciept is False:
time.sleep(self._wait)
except ContractLogicError as er:
print(f"{Bolors.FAIL}Error {er} {Bolors.RESET}: nonces")
message = f"Error {er}: nonces"
self._on_fail("nonces", message)
except ValueError as err:
if "message" in err.args[0]:
message = err.args[0]["message"]
print(f"{Bolors.FAIL}Error Revert {Bolors.RESET}, nonces: {message}")
else:
message = "Error Revert , Reason: Unknown"
print(f"{Bolors.FAIL}Error Revert {Bolors.RESET}, nonces. Reason: Unknown")
self._on_fail("nonces", message)
def send_transaction(self, index_0: str, tx_params: Optional[TxParams] = None) -> Union[HexBytes, bytes]:
"""Execute underlying contract method via eth_sendTransaction.
:param tx_params: transaction parameters
"""
(index_0) = self.validate_and_normalize_inputs(index_0)
tx_params = super().normalize_tx_params(tx_params)
return self._underlying_method(index_0).transact(tx_params.as_dict())
def build_transaction(self, index_0: str, tx_params: Optional[TxParams] = None) -> dict:
"""Construct calldata to be used as input to the method."""
(index_0) = self.validate_and_normalize_inputs(index_0)
tx_params = super().normalize_tx_params(tx_params)
return self._underlying_method(index_0).buildTransaction(tx_params.as_dict())
def estimate_gas(self, index_0: str, tx_params: Optional[TxParams] = None) -> int:
"""Estimate gas consumption of method call."""
(index_0) = self.validate_and_normalize_inputs(index_0)
tx_params = super().normalize_tx_params(tx_params)
return self._underlying_method(index_0).estimateGas(tx_params.as_dict())
class PermitMethod(ContractMethod): # pylint: disable=invalid-name
"""Various interfaces to the permit method."""
def __init__(self, elib: MiliDoS, contract_address: str, contract_function: ContractFunction, validator: Validator=None):
"""Persist instance data."""
super().__init__(elib, contract_address, validator)
self._underlying_method = contract_function
self.sign = validator.getSignature("permit")
def validate_and_normalize_inputs(self, owner: str, spender: str, raw_amount: int, deadline: int, v: int, r: Union[bytes, str], s: Union[bytes, str])->any:
"""Validate the inputs to the permit method."""
self.validator.assert_valid(
method_name='permit',
parameter_name='owner',
argument_value=owner,
)
owner = self.validate_and_checksum_address(owner)
self.validator.assert_valid(
method_name='permit',
parameter_name='spender',
argument_value=spender,
)
spender = self.validate_and_checksum_address(spender)
self.validator.assert_valid(
method_name='permit',
parameter_name='rawAmount',
argument_value=raw_amount,
)
# safeguard against fractional inputs
raw_amount = int(raw_amount)
self.validator.assert_valid(
method_name='permit',
parameter_name='deadline',
argument_value=deadline,
)
# safeguard against fractional inputs
deadline = int(deadline)
self.validator.assert_valid(
method_name='permit',
parameter_name='v',
argument_value=v,
)
self.validator.assert_valid(
method_name='permit',
parameter_name='r',
argument_value=r,
)
self.validator.assert_valid(
method_name='permit',
parameter_name='s',
argument_value=s,
)
return (owner, spender, raw_amount, deadline, v, r, s)
def block_send(self, owner: str, spender: str, raw_amount: int, deadline: int, v: int, r: Union[bytes, str], s: Union[bytes, str],_valeth:int=0) -> None:
"""Execute underlying contract method via eth_call.
:param tx_params: transaction parameters
:returns: the return value of the underlying method.
"""
_fn = self._underlying_method(owner, spender, raw_amount, deadline, v, r, s)
try:
_t = _fn.buildTransaction({
'from': self._operate,
'gas': self.gas_limit,
'gasPrice': self.gas_price_wei
})
_t['nonce'] = self._web3_eth.getTransactionCount(self._operate)
if _valeth > 0:
_t['value'] = _valeth
if self.debug_method:
print(f"======== Signing ✅ by {self._operate}")
print(f"======== Transaction ✅ check")
print(_t)
if 'data' in _t:
signed = self._web3_eth.account.sign_transaction(_t)
txHash = self._web3_eth.sendRawTransaction(signed.rawTransaction)
tx_receipt = None
if self.auto_reciept is True:
print(f"======== awaiting Confirmation 🚸️ {self.sign}")
tx_receipt = self._web3_eth.wait_for_transaction_receipt(txHash)
if self.debug_method:
print("======== TX Result ✅")
print(tx_receipt)
self._on_receipt_handle("permit", tx_receipt, txHash)
if self.auto_reciept is False:
time.sleep(self._wait)
except ContractLogicError as er:
print(f"{Bolors.FAIL}Error {er} {Bolors.RESET}: permit")
message = f"Error {er}: permit"
self._on_fail("permit", message)
except ValueError as err:
if "message" in err.args[0]:
message = err.args[0]["message"]
print(f"{Bolors.FAIL}Error Revert {Bolors.RESET}, permit: {message}")
else:
message = "Error Revert , Reason: Unknown"
print(f"{Bolors.FAIL}Error Revert {Bolors.RESET}, permit. Reason: Unknown")
self._on_fail("permit", message)
def send_transaction(self, owner: str, spender: str, raw_amount: int, deadline: int, v: int, r: Union[bytes, str], s: Union[bytes, str], tx_params: Optional[TxParams] = None) -> Union[HexBytes, bytes]:
"""Execute underlying contract method via eth_sendTransaction.
:param tx_params: transaction parameters
"""
(owner, spender, raw_amount, deadline, v, r, s) = self.validate_and_normalize_inputs(owner, spender, raw_amount, deadline, v, r, s)
tx_params = super().normalize_tx_params(tx_params)
return self._underlying_method(owner, spender, raw_amount, deadline, v, r, s).transact(tx_params.as_dict())
def build_transaction(self, owner: str, spender: str, raw_amount: int, deadline: int, v: int, r: Union[bytes, str], s: Union[bytes, str], tx_params: Optional[TxParams] = None) -> dict:
"""Construct calldata to be used as input to the method."""
(owner, spender, raw_amount, deadline, v, r, s) = self.validate_and_normalize_inputs(owner, spender, raw_amount, deadline, v, r, s)
tx_params = super().normalize_tx_params(tx_params)
return self._underlying_method(owner, spender, raw_amount, deadline, v, r, s).buildTransaction(tx_params.as_dict())
def estimate_gas(self, owner: str, spender: str, raw_amount: int, deadline: int, v: int, r: Union[bytes, str], s: Union[bytes, str], tx_params: Optional[TxParams] = None) -> int:
"""Estimate gas consumption of method call."""
(owner, spender, raw_amount, deadline, v, r, s) = self.validate_and_normalize_inputs(owner, spender, raw_amount, deadline, v, r, s)
tx_params = super().normalize_tx_params(tx_params)
return self._underlying_method(owner, spender, raw_amount, deadline, v, r, s).estimateGas(tx_params.as_dict())
class RemotesMethod(ContractMethod): # pylint: disable=invalid-name
"""Various interfaces to the remotes method."""
def __init__(self, elib: MiliDoS, contract_address: str, contract_function: ContractFunction, validator: Validator=None):
"""Persist instance data."""
super().__init__(elib, contract_address, validator)
self._underlying_method = contract_function
self.sign = validator.getSignature("remotes")
def validate_and_normalize_inputs(self, index_0: int)->any:
"""Validate the inputs to the remotes method."""
self.validator.assert_valid(
method_name='remotes',
parameter_name='index_0',
argument_value=index_0,
)
return (index_0)
def block_call(self,index_0: int, debug:bool=False) -> Union[bytes, str]:
_fn = self._underlying_method(index_0)
returned = _fn.call({
'from': self._operate
})
return Union[bytes, str](returned)
def block_send(self, index_0: int,_valeth:int=0) -> Union[bytes, str]:
"""Execute underlying contract method via eth_call.
:param tx_params: transaction parameters
:returns: the return value of the underlying method.
"""
_fn = self._underlying_method(index_0)
try:
_t = _fn.buildTransaction({
'from': self._operate,
'gas': self.gas_limit,
'gasPrice': self.gas_price_wei
})
_t['nonce'] = self._web3_eth.getTransactionCount(self._operate)
if _valeth > 0:
_t['value'] = _valeth
if self.debug_method:
print(f"======== Signing ✅ by {self._operate}")
print(f"======== Transaction ✅ check")
print(_t)
if 'data' in _t:
signed = self._web3_eth.account.sign_transaction(_t)
txHash = self._web3_eth.sendRawTransaction(signed.rawTransaction)
tx_receipt = None
if self.auto_reciept is True:
print(f"======== awaiting Confirmation 🚸️ {self.sign}")
tx_receipt = self._web3_eth.wait_for_transaction_receipt(txHash)
if self.debug_method:
print("======== TX Result ✅")
print(tx_receipt)
self._on_receipt_handle("remotes", tx_receipt, txHash)
if self.auto_reciept is False:
time.sleep(self._wait)
except ContractLogicError as er:
print(f"{Bolors.FAIL}Error {er} {Bolors.RESET}: remotes")
message = f"Error {er}: remotes"
self._on_fail("remotes", message)
except ValueError as err:
if "message" in err.args[0]:
message = err.args[0]["message"]
print(f"{Bolors.FAIL}Error Revert {Bolors.RESET}, remotes: {message}")
else:
message = "Error Revert , Reason: Unknown"
print(f"{Bolors.FAIL}Error Revert {Bolors.RESET}, remotes. Reason: Unknown")
self._on_fail("remotes", message)
def send_transaction(self, index_0: int, tx_params: Optional[TxParams] = None) -> Union[HexBytes, bytes]:
"""Execute underlying contract method via eth_sendTransaction.
:param tx_params: transaction parameters
"""
(index_0) = self.validate_and_normalize_inputs(index_0)
tx_params = super().normalize_tx_params(tx_params)
return self._underlying_method(index_0).transact(tx_params.as_dict())
def build_transaction(self, index_0: int, tx_params: Optional[TxParams] = None) -> dict:
"""Construct calldata to be used as input to the method."""
(index_0) = self.validate_and_normalize_inputs(index_0)
tx_params = super().normalize_tx_params(tx_params)
return self._underlying_method(index_0).buildTransaction(tx_params.as_dict())
def estimate_gas(self, index_0: int, tx_params: Optional[TxParams] = None) -> int:
"""Estimate gas consumption of method call."""
(index_0) = self.validate_and_normalize_inputs(index_0)
tx_params = super().normalize_tx_params(tx_params)
return self._underlying_method(index_0).estimateGas(tx_params.as_dict())
class RemoveBlackListMethod(ContractMethod): # pylint: disable=invalid-name
"""Various interfaces to the removeBlackList method."""
def __init__(self, elib: MiliDoS, contract_address: str, contract_function: ContractFunction, validator: Validator=None):
"""Persist instance data."""
super().__init__(elib, contract_address, validator)
self._underlying_method = contract_function
self.sign = validator.getSignature("removeBlackList")
def validate_and_normalize_inputs(self, noevil: str)->any:
"""Validate the inputs to the removeBlackList method."""
self.validator.assert_valid(
method_name='removeBlackList',
parameter_name='noevil',
argument_value=noevil,
)
noevil = self.validate_and_checksum_address(noevil)
return (noevil)
def block_send(self, noevil: str,_valeth:int=0) -> None:
"""Execute underlying contract method via eth_call.
:param tx_params: transaction parameters
:returns: the return value of the underlying method.
"""
_fn = self._underlying_method(noevil)
try:
_t = _fn.buildTransaction({
'from': self._operate,
'gas': self.gas_limit,
'gasPrice': self.gas_price_wei
})
_t['nonce'] = self._web3_eth.getTransactionCount(self._operate)
if _valeth > 0:
_t['value'] = _valeth
if self.debug_method:
print(f"======== Signing ✅ by {self._operate}")
print(f"======== Transaction ✅ check")
print(_t)
if 'data' in _t:
signed = self._web3_eth.account.sign_transaction(_t)
txHash = self._web3_eth.sendRawTransaction(signed.rawTransaction)
tx_receipt = None
if self.auto_reciept is True:
print(f"======== awaiting Confirmation 🚸️ {self.sign}")
tx_receipt = self._web3_eth.wait_for_transaction_receipt(txHash)
if self.debug_method:
print("======== TX Result ✅")
print(tx_receipt)
self._on_receipt_handle("remove_black_list", tx_receipt, txHash)
if self.auto_reciept is False:
time.sleep(self._wait)
except ContractLogicError as er:
print(f"{Bolors.FAIL}Error {er} {Bolors.RESET}: remove_black_list")
message = f"Error {er}: remove_black_list"
self._on_fail("remove_black_list", message)
except ValueError as err:
if "message" in err.args[0]:
message = err.args[0]["message"]
print(f"{Bolors.FAIL}Error Revert {Bolors.RESET}, remove_black_list: {message}")
else:
message = "Error Revert , Reason: Unknown"
print(f"{Bolors.FAIL}Error Revert {Bolors.RESET}, remove_black_list. Reason: Unknown")
self._on_fail("remove_black_list", message)
def send_transaction(self, noevil: str, tx_params: Optional[TxParams] = None) -> Union[HexBytes, bytes]:
"""Execute underlying contract method via eth_sendTransaction.
:param tx_params: transaction parameters
"""
(noevil) = self.validate_and_normalize_inputs(noevil)
tx_params = super().normalize_tx_params(tx_params)
return self._underlying_method(noevil).transact(tx_params.as_dict())
def build_transaction(self, noevil: str, tx_params: Optional[TxParams] = None) -> dict:
"""Construct calldata to be used as input to the method."""
(noevil) = self.validate_and_normalize_inputs(noevil)
tx_params = super().normalize_tx_params(tx_params)
return self._underlying_method(noevil).buildTransaction(tx_params.as_dict())
def estimate_gas(self, noevil: str, tx_params: Optional[TxParams] = None) -> int:
"""Estimate gas consumption of method call."""
(noevil) = self.validate_and_normalize_inputs(noevil)
tx_params = super().normalize_tx_params(tx_params)
return self._underlying_method(noevil).estimateGas(tx_params.as_dict())
class SendTokensMethod(ContractMethod): # pylint: disable=invalid-name
"""Various interfaces to the sendTokens method."""
def __init__(self, elib: MiliDoS, contract_address: str, contract_function: ContractFunction, validator: Validator=None):
"""Persist instance data."""
super().__init__(elib, contract_address, validator)
self._underlying_method = contract_function
self.sign = validator.getSignature("sendTokens")
def validate_and_normalize_inputs(self, chain_id: int, dst_omni_chain_token_addr: Union[bytes, str], qty: int)->any:
"""Validate the inputs to the sendTokens method."""
self.validator.assert_valid(
method_name='sendTokens',
parameter_name='_chainId',
argument_value=chain_id,
)
self.validator.assert_valid(
method_name='sendTokens',
parameter_name='_dstOmniChainTokenAddr',
argument_value=dst_omni_chain_token_addr,
)
self.validator.assert_valid(
method_name='sendTokens',
parameter_name='_qty',
argument_value=qty,
)
# safeguard against fractional inputs
qty = int(qty)
return (chain_id, dst_omni_chain_token_addr, qty)
def block_send(self, chain_id: int, dst_omni_chain_token_addr: Union[bytes, str], qty: int,_valeth:int=0) -> None:
"""Execute underlying contract method via eth_call.
:param tx_params: transaction parameters
:returns: the return value of the underlying method.
"""
_fn = self._underlying_method(chain_id, dst_omni_chain_token_addr, qty)
try:
_t = _fn.buildTransaction({
'from': self._operate,
'gas': self.gas_limit,
'gasPrice': self.gas_price_wei
})
_t['nonce'] = self._web3_eth.getTransactionCount(self._operate)
if _valeth > 0:
_t['value'] = _valeth
if self.debug_method:
print(f"======== Signing ✅ by {self._operate}")
print(f"======== Transaction ✅ check")
print(_t)
if 'data' in _t:
signed = self._web3_eth.account.sign_transaction(_t)
txHash = self._web3_eth.sendRawTransaction(signed.rawTransaction)
tx_receipt = None
if self.auto_reciept is True:
print(f"======== awaiting Confirmation 🚸️ {self.sign}")
tx_receipt = self._web3_eth.wait_for_transaction_receipt(txHash)
if self.debug_method:
print("======== TX Result ✅")
print(tx_receipt)
self._on_receipt_handle("send_tokens", tx_receipt, txHash)
if self.auto_reciept is False:
time.sleep(self._wait)
except ContractLogicError as er:
print(f"{Bolors.FAIL}Error {er} {Bolors.RESET}: send_tokens")
message = f"Error {er}: send_tokens"
self._on_fail("send_tokens", message)
except ValueError as err:
if "message" in err.args[0]:
message = err.args[0]["message"]
print(f"{Bolors.FAIL}Error Revert {Bolors.RESET}, send_tokens: {message}")
else:
message = "Error Revert , Reason: Unknown"
print(f"{Bolors.FAIL}Error Revert {Bolors.RESET}, send_tokens. Reason: Unknown")
self._on_fail("send_tokens", message)
def send_transaction(self, chain_id: int, dst_omni_chain_token_addr: Union[bytes, str], qty: int, tx_params: Optional[TxParams] = None) -> Union[HexBytes, bytes]:
"""Execute underlying contract method via eth_sendTransaction.
:param tx_params: transaction parameters
"""
(chain_id, dst_omni_chain_token_addr, qty) = self.validate_and_normalize_inputs(chain_id, dst_omni_chain_token_addr, qty)
tx_params = super().normalize_tx_params(tx_params)
return self._underlying_method(chain_id, dst_omni_chain_token_addr, qty).transact(tx_params.as_dict())
def build_transaction(self, chain_id: int, dst_omni_chain_token_addr: Union[bytes, str], qty: int, tx_params: Optional[TxParams] = None) -> dict:
"""Construct calldata to be used as input to the method."""
(chain_id, dst_omni_chain_token_addr, qty) = self.validate_and_normalize_inputs(chain_id, dst_omni_chain_token_addr, qty)
tx_params = super().normalize_tx_params(tx_params)
return self._underlying_method(chain_id, dst_omni_chain_token_addr, qty).buildTransaction(tx_params.as_dict())
def estimate_gas(self, chain_id: int, dst_omni_chain_token_addr: Union[bytes, str], qty: int, tx_params: Optional[TxParams] = None) -> int:
"""Estimate gas consumption of method call."""
(chain_id, dst_omni_chain_token_addr, qty) = self.validate_and_normalize_inputs(chain_id, dst_omni_chain_token_addr, qty)
tx_params = super().normalize_tx_params(tx_params)
return self._underlying_method(chain_id, dst_omni_chain_token_addr, qty).estimateGas(tx_params.as_dict())
class SetGovernanceMethod(ContractMethod): # pylint: disable=invalid-name
"""Various interfaces to the setGovernance method."""
def __init__(self, elib: MiliDoS, contract_address: str, contract_function: ContractFunction, validator: Validator=None):
"""Persist instance data."""
super().__init__(elib, contract_address, validator)
self._underlying_method = contract_function
self.sign = validator.getSignature("setGovernance")
def validate_and_normalize_inputs(self, governance: str)->any:
"""Validate the inputs to the setGovernance method."""
self.validator.assert_valid(
method_name='setGovernance',
parameter_name='_governance',
argument_value=governance,
)
governance = self.validate_and_checksum_address(governance)
return (governance)
def block_send(self, governance: str,_valeth:int=0) -> None:
"""Execute underlying contract method via eth_call.
:param tx_params: transaction parameters
:returns: the return value of the underlying method.
"""
_fn = self._underlying_method(governance)
try:
_t = _fn.buildTransaction({
'from': self._operate,
'gas': self.gas_limit,
'gasPrice': self.gas_price_wei
})
_t['nonce'] = self._web3_eth.getTransactionCount(self._operate)
if _valeth > 0:
_t['value'] = _valeth
if self.debug_method:
print(f"======== Signing ✅ by {self._operate}")
print(f"======== Transaction ✅ check")
print(_t)
if 'data' in _t:
signed = self._web3_eth.account.sign_transaction(_t)
txHash = self._web3_eth.sendRawTransaction(signed.rawTransaction)
tx_receipt = None
if self.auto_reciept is True:
print(f"======== awaiting Confirmation 🚸️ {self.sign}")
tx_receipt = self._web3_eth.wait_for_transaction_receipt(txHash)
if self.debug_method:
print("======== TX Result ✅")
print(tx_receipt)
self._on_receipt_handle("set_governance", tx_receipt, txHash)
if self.auto_reciept is False:
time.sleep(self._wait)
except ContractLogicError as er:
print(f"{Bolors.FAIL}Error {er} {Bolors.RESET}: set_governance")
message = f"Error {er}: set_governance"
self._on_fail("set_governance", message)
except ValueError as err:
if "message" in err.args[0]:
message = err.args[0]["message"]
print(f"{Bolors.FAIL}Error Revert {Bolors.RESET}, set_governance: {message}")
else:
message = "Error Revert , Reason: Unknown"
print(f"{Bolors.FAIL}Error Revert {Bolors.RESET}, set_governance. Reason: Unknown")
self._on_fail("set_governance", message)
def send_transaction(self, governance: str, tx_params: Optional[TxParams] = None) -> Union[HexBytes, bytes]:
"""Execute underlying contract method via eth_sendTransaction.
:param tx_params: transaction parameters
"""
(governance) = self.validate_and_normalize_inputs(governance)
tx_params = super().normalize_tx_params(tx_params)
return self._underlying_method(governance).transact(tx_params.as_dict())
def build_transaction(self, governance: str, tx_params: Optional[TxParams] = None) -> dict:
"""Construct calldata to be used as input to the method."""
(governance) = self.validate_and_normalize_inputs(governance)
tx_params = super().normalize_tx_params(tx_params)
return self._underlying_method(governance).buildTransaction(tx_params.as_dict())
def estimate_gas(self, governance: str, tx_params: Optional[TxParams] = None) -> int:
"""Estimate gas consumption of method call."""
(governance) = self.validate_and_normalize_inputs(governance)
tx_params = super().normalize_tx_params(tx_params)
return self._underlying_method(governance).estimateGas(tx_params.as_dict())
class SetRemoteMethod(ContractMethod): # pylint: disable=invalid-name
"""Various interfaces to the setRemote method."""
def __init__(self, elib: MiliDoS, contract_address: str, contract_function: ContractFunction, validator: Validator=None):
"""Persist instance data."""
super().__init__(elib, contract_address, validator)
self._underlying_method = contract_function
self.sign = validator.getSignature("setRemote")
def validate_and_normalize_inputs(self, chain_id: int, remote_address: Union[bytes, str])->any:
"""Validate the inputs to the setRemote method."""
self.validator.assert_valid(
method_name='setRemote',
parameter_name='_chainId',
argument_value=chain_id,
)
self.validator.assert_valid(
method_name='setRemote',
parameter_name='_remoteAddress',
argument_value=remote_address,
)
return (chain_id, remote_address)
def block_send(self, chain_id: int, remote_address: Union[bytes, str],_valeth:int=0) -> None:
"""Execute underlying contract method via eth_call.
:param tx_params: transaction parameters
:returns: the return value of the underlying method.
"""
_fn = self._underlying_method(chain_id, remote_address)
try:
_t = _fn.buildTransaction({
'from': self._operate,
'gas': self.gas_limit,
'gasPrice': self.gas_price_wei
})
_t['nonce'] = self._web3_eth.getTransactionCount(self._operate)
if _valeth > 0:
_t['value'] = _valeth
if self.debug_method:
print(f"======== Signing ✅ by {self._operate}")
print(f"======== Transaction ✅ check")
print(_t)
if 'data' in _t:
signed = self._web3_eth.account.sign_transaction(_t)
txHash = self._web3_eth.sendRawTransaction(signed.rawTransaction)
tx_receipt = None
if self.auto_reciept is True:
print(f"======== awaiting Confirmation 🚸️ {self.sign}")
tx_receipt = self._web3_eth.wait_for_transaction_receipt(txHash)
if self.debug_method:
print("======== TX Result ✅")
print(tx_receipt)
self._on_receipt_handle("set_remote", tx_receipt, txHash)
if self.auto_reciept is False:
time.sleep(self._wait)
except ContractLogicError as er:
print(f"{Bolors.FAIL}Error {er} {Bolors.RESET}: set_remote")
message = f"Error {er}: set_remote"
self._on_fail("set_remote", message)
except ValueError as err:
if "message" in err.args[0]:
message = err.args[0]["message"]
print(f"{Bolors.FAIL}Error Revert {Bolors.RESET}, set_remote: {message}")
else:
message = "Error Revert , Reason: Unknown"
print(f"{Bolors.FAIL}Error Revert {Bolors.RESET}, set_remote. Reason: Unknown")
self._on_fail("set_remote", message)
def send_transaction(self, chain_id: int, remote_address: Union[bytes, str], tx_params: Optional[TxParams] = None) -> Union[HexBytes, bytes]:
"""Execute underlying contract method via eth_sendTransaction.
:param tx_params: transaction parameters
"""
(chain_id, remote_address) = self.validate_and_normalize_inputs(chain_id, remote_address)
tx_params = super().normalize_tx_params(tx_params)
return self._underlying_method(chain_id, remote_address).transact(tx_params.as_dict())
def build_transaction(self, chain_id: int, remote_address: Union[bytes, str], tx_params: Optional[TxParams] = None) -> dict:
"""Construct calldata to be used as input to the method."""
(chain_id, remote_address) = self.validate_and_normalize_inputs(chain_id, remote_address)
tx_params = super().normalize_tx_params(tx_params)
return self._underlying_method(chain_id, remote_address).buildTransaction(tx_params.as_dict())
def estimate_gas(self, chain_id: int, remote_address: Union[bytes, str], tx_params: Optional[TxParams] = None) -> int:
"""Estimate gas consumption of method call."""
(chain_id, remote_address) = self.validate_and_normalize_inputs(chain_id, remote_address)
tx_params = super().normalize_tx_params(tx_params)
return self._underlying_method(chain_id, remote_address).estimateGas(tx_params.as_dict())
class SymbolMethod(ContractMethod): # pylint: disable=invalid-name
"""Various interfaces to the symbol method."""
def __init__(self, elib: MiliDoS, contract_address: str, contract_function: ContractFunction, validator: Validator=None):
"""Persist instance data."""
super().__init__(elib, contract_address)
self._underlying_method = contract_function
self.sign = validator.getSignature("symbol")
def block_call(self, debug:bool=False) -> str:
_fn = self._underlying_method()
returned = _fn.call({
'from': self._operate
})
return str(returned)
def block_send(self, _valeth:int=0) -> str:
"""Execute underlying contract method via eth_call.
:param tx_params: transaction parameters
:returns: the return value of the underlying method.
"""
_fn = self._underlying_method()
try:
_t = _fn.buildTransaction({
'from': self._operate,
'gas': self.gas_limit,
'gasPrice': self.gas_price_wei
})
_t['nonce'] = self._web3_eth.getTransactionCount(self._operate)
if _valeth > 0:
_t['value'] = _valeth
if self.debug_method:
print(f"======== Signing ✅ by {self._operate}")
print(f"======== Transaction ✅ check")
print(_t)
if 'data' in _t:
signed = self._web3_eth.account.sign_transaction(_t)
txHash = self._web3_eth.sendRawTransaction(signed.rawTransaction)
tx_receipt = None
if self.auto_reciept is True:
print(f"======== awaiting Confirmation 🚸️ {self.sign}")
tx_receipt = self._web3_eth.wait_for_transaction_receipt(txHash)
if self.debug_method:
print("======== TX Result ✅")
print(tx_receipt)
self._on_receipt_handle("symbol", tx_receipt, txHash)
if self.auto_reciept is False:
time.sleep(self._wait)
except ContractLogicError as er:
print(f"{Bolors.FAIL}Error {er} {Bolors.RESET}: symbol")
message = f"Error {er}: symbol"
self._on_fail("symbol", message)
except ValueError as err:
if "message" in err.args[0]:
message = err.args[0]["message"]
print(f"{Bolors.FAIL}Error Revert {Bolors.RESET}, symbol: {message}")
else:
message = "Error Revert , Reason: Unknown"
print(f"{Bolors.FAIL}Error Revert {Bolors.RESET}, symbol. Reason: Unknown")
self._on_fail("symbol", message)
def send_transaction(self, tx_params: Optional[TxParams] = None) -> Union[HexBytes, bytes]:
"""Execute underlying contract method via eth_sendTransaction.
:param tx_params: transaction parameters
"""
tx_params = super().normalize_tx_params(tx_params)
return self._underlying_method().transact(tx_params.as_dict())
def build_transaction(self, tx_params: Optional[TxParams] = None) -> dict:
"""Construct calldata to be used as input to the method."""
tx_params = super().normalize_tx_params(tx_params)
return self._underlying_method().buildTransaction(tx_params.as_dict())
def estimate_gas(self, tx_params: Optional[TxParams] = None) -> int:
"""Estimate gas consumption of method call."""
tx_params = super().normalize_tx_params(tx_params)
return self._underlying_method().estimateGas(tx_params.as_dict())
class TotalSupplyMethod(ContractMethod): # pylint: disable=invalid-name
"""Various interfaces to the totalSupply method."""
def __init__(self, elib: MiliDoS, contract_address: str, contract_function: ContractFunction, validator: Validator=None):
"""Persist instance data."""
super().__init__(elib, contract_address)
self._underlying_method = contract_function
self.sign = validator.getSignature("totalSupply")
def block_call(self, debug:bool=False) -> int:
_fn = self._underlying_method()
returned = _fn.call({
'from': self._operate
})
return int(returned)
def block_send(self, _valeth:int=0) -> int:
"""Execute underlying contract method via eth_call.
:param tx_params: transaction parameters
:returns: the return value of the underlying method.
"""
_fn = self._underlying_method()
try:
_t = _fn.buildTransaction({
'from': self._operate,
'gas': self.gas_limit,
'gasPrice': self.gas_price_wei
})
_t['nonce'] = self._web3_eth.getTransactionCount(self._operate)
if _valeth > 0:
_t['value'] = _valeth
if self.debug_method:
print(f"======== Signing ✅ by {self._operate}")
print(f"======== Transaction ✅ check")
print(_t)
if 'data' in _t:
signed = self._web3_eth.account.sign_transaction(_t)
txHash = self._web3_eth.sendRawTransaction(signed.rawTransaction)
tx_receipt = None
if self.auto_reciept is True:
print(f"======== awaiting Confirmation 🚸️ {self.sign}")
tx_receipt = self._web3_eth.wait_for_transaction_receipt(txHash)
if self.debug_method:
print("======== TX Result ✅")
print(tx_receipt)
self._on_receipt_handle("total_supply", tx_receipt, txHash)
if self.auto_reciept is False:
time.sleep(self._wait)
except ContractLogicError as er:
print(f"{Bolors.FAIL}Error {er} {Bolors.RESET}: total_supply")
message = f"Error {er}: total_supply"
self._on_fail("total_supply", message)
except ValueError as err:
if "message" in err.args[0]:
message = err.args[0]["message"]
print(f"{Bolors.FAIL}Error Revert {Bolors.RESET}, total_supply: {message}")
else:
message = "Error Revert , Reason: Unknown"
print(f"{Bolors.FAIL}Error Revert {Bolors.RESET}, total_supply. Reason: Unknown")
self._on_fail("total_supply", message)
def send_transaction(self, tx_params: Optional[TxParams] = None) -> Union[HexBytes, bytes]:
"""Execute underlying contract method via eth_sendTransaction.
:param tx_params: transaction parameters
"""
tx_params = super().normalize_tx_params(tx_params)
return self._underlying_method().transact(tx_params.as_dict())
def build_transaction(self, tx_params: Optional[TxParams] = None) -> dict:
"""Construct calldata to be used as input to the method."""
tx_params = super().normalize_tx_params(tx_params)
return self._underlying_method().buildTransaction(tx_params.as_dict())
def estimate_gas(self, tx_params: Optional[TxParams] = None) -> int:
"""Estimate gas consumption of method call."""
tx_params = super().normalize_tx_params(tx_params)
return self._underlying_method().estimateGas(tx_params.as_dict())
class TransferMethod(ContractMethod): # pylint: disable=invalid-name
"""Various interfaces to the transfer method."""
def __init__(self, elib: MiliDoS, contract_address: str, contract_function: ContractFunction, validator: Validator=None):
"""Persist instance data."""
super().__init__(elib, contract_address, validator)
self._underlying_method = contract_function
self.sign = validator.getSignature("transfer")
def validate_and_normalize_inputs(self, recipient: str, amount: int)->any:
"""Validate the inputs to the transfer method."""
self.validator.assert_valid(
method_name='transfer',
parameter_name='recipient',
argument_value=recipient,
)
recipient = self.validate_and_checksum_address(recipient)
self.validator.assert_valid(
method_name='transfer',
parameter_name='amount',
argument_value=amount,
)
# safeguard against fractional inputs
amount = int(amount)
return (recipient, amount)
def block_send(self, recipient: str, amount: int,_valeth:int=0) -> bool:
"""Execute underlying contract method via eth_call.
:param tx_params: transaction parameters
:returns: the return value of the underlying method.
"""
_fn = self._underlying_method(recipient, amount)
try:
_t = _fn.buildTransaction({
'from': self._operate,
'gas': self.gas_limit,
'gasPrice': self.gas_price_wei
})
_t['nonce'] = self._web3_eth.getTransactionCount(self._operate)
if _valeth > 0:
_t['value'] = _valeth
if self.debug_method:
print(f"======== Signing ✅ by {self._operate}")
print(f"======== Transaction ✅ check")
print(_t)
if 'data' in _t:
signed = self._web3_eth.account.sign_transaction(_t)
txHash = self._web3_eth.sendRawTransaction(signed.rawTransaction)
tx_receipt = None
if self.auto_reciept is True:
print(f"======== awaiting Confirmation 🚸️ {self.sign}")
tx_receipt = self._web3_eth.wait_for_transaction_receipt(txHash)
if self.debug_method:
print("======== TX Result ✅")
print(tx_receipt)
self._on_receipt_handle("transfer", tx_receipt, txHash)
if self.auto_reciept is False:
time.sleep(self._wait)
except ContractLogicError as er:
print(f"{Bolors.FAIL}Error {er} {Bolors.RESET}: transfer")
message = f"Error {er}: transfer"
self._on_fail("transfer", message)
except ValueError as err:
if "message" in err.args[0]:
message = err.args[0]["message"]
print(f"{Bolors.FAIL}Error Revert {Bolors.RESET}, transfer: {message}")
else:
message = "Error Revert , Reason: Unknown"
print(f"{Bolors.FAIL}Error Revert {Bolors.RESET}, transfer. Reason: Unknown")
self._on_fail("transfer", message)
def send_transaction(self, recipient: str, amount: int, tx_params: Optional[TxParams] = None) -> Union[HexBytes, bytes]:
"""Execute underlying contract method via eth_sendTransaction.
:param tx_params: transaction parameters
"""
(recipient, amount) = self.validate_and_normalize_inputs(recipient, amount)
tx_params = super().normalize_tx_params(tx_params)
return self._underlying_method(recipient, amount).transact(tx_params.as_dict())
def build_transaction(self, recipient: str, amount: int, tx_params: Optional[TxParams] = None) -> dict:
"""Construct calldata to be used as input to the method."""
(recipient, amount) = self.validate_and_normalize_inputs(recipient, amount)
tx_params = super().normalize_tx_params(tx_params)
return self._underlying_method(recipient, amount).buildTransaction(tx_params.as_dict())
def estimate_gas(self, recipient: str, amount: int, tx_params: Optional[TxParams] = None) -> int:
"""Estimate gas consumption of method call."""
(recipient, amount) = self.validate_and_normalize_inputs(recipient, amount)
tx_params = super().normalize_tx_params(tx_params)
return self._underlying_method(recipient, amount).estimateGas(tx_params.as_dict())
class TransferFromMethod(ContractMethod): # pylint: disable=invalid-name
"""Various interfaces to the transferFrom method."""
def __init__(self, elib: MiliDoS, contract_address: str, contract_function: ContractFunction, validator: Validator=None):
"""Persist instance data."""
super().__init__(elib, contract_address, validator)
self._underlying_method = contract_function
self.sign = validator.getSignature("transferFrom")
def validate_and_normalize_inputs(self, sender: str, recipient: str, amount: int)->any:
"""Validate the inputs to the transferFrom method."""
self.validator.assert_valid(
method_name='transferFrom',
parameter_name='sender',
argument_value=sender,
)
sender = self.validate_and_checksum_address(sender)
self.validator.assert_valid(
method_name='transferFrom',
parameter_name='recipient',
argument_value=recipient,
)
recipient = self.validate_and_checksum_address(recipient)
self.validator.assert_valid(
method_name='transferFrom',
parameter_name='amount',
argument_value=amount,
)
# safeguard against fractional inputs
amount = int(amount)
return (sender, recipient, amount)
def block_send(self, sender: str, recipient: str, amount: int,_valeth:int=0) -> bool:
"""Execute underlying contract method via eth_call.
:param tx_params: transaction parameters
:returns: the return value of the underlying method.
"""
_fn = self._underlying_method(sender, recipient, amount)
try:
_t = _fn.buildTransaction({
'from': self._operate,
'gas': self.gas_limit,
'gasPrice': self.gas_price_wei
})
_t['nonce'] = self._web3_eth.getTransactionCount(self._operate)
if _valeth > 0:
_t['value'] = _valeth
if self.debug_method:
print(f"======== Signing ✅ by {self._operate}")
print(f"======== Transaction ✅ check")
print(_t)
if 'data' in _t:
signed = self._web3_eth.account.sign_transaction(_t)
txHash = self._web3_eth.sendRawTransaction(signed.rawTransaction)
tx_receipt = None
if self.auto_reciept is True:
print(f"======== awaiting Confirmation 🚸️ {self.sign}")
tx_receipt = self._web3_eth.wait_for_transaction_receipt(txHash)
if self.debug_method:
print("======== TX Result ✅")
print(tx_receipt)
self._on_receipt_handle("transfer_from", tx_receipt, txHash)
if self.auto_reciept is False:
time.sleep(self._wait)
except ContractLogicError as er:
print(f"{Bolors.FAIL}Error {er} {Bolors.RESET}: transfer_from")
message = f"Error {er}: transfer_from"
self._on_fail("transfer_from", message)
except ValueError as err:
if "message" in err.args[0]:
message = err.args[0]["message"]
print(f"{Bolors.FAIL}Error Revert {Bolors.RESET}, transfer_from: {message}")
else:
message = "Error Revert , Reason: Unknown"
print(f"{Bolors.FAIL}Error Revert {Bolors.RESET}, transfer_from. Reason: Unknown")
self._on_fail("transfer_from", message)
def send_transaction(self, sender: str, recipient: str, amount: int, tx_params: Optional[TxParams] = None) -> Union[HexBytes, bytes]:
"""Execute underlying contract method via eth_sendTransaction.
:param tx_params: transaction parameters
"""
(sender, recipient, amount) = self.validate_and_normalize_inputs(sender, recipient, amount)
tx_params = super().normalize_tx_params(tx_params)
return self._underlying_method(sender, recipient, amount).transact(tx_params.as_dict())
def build_transaction(self, sender: str, recipient: str, amount: int, tx_params: Optional[TxParams] = None) -> dict:
"""Construct calldata to be used as input to the method."""
(sender, recipient, amount) = self.validate_and_normalize_inputs(sender, recipient, amount)
tx_params = super().normalize_tx_params(tx_params)
return self._underlying_method(sender, recipient, amount).buildTransaction(tx_params.as_dict())
def estimate_gas(self, sender: str, recipient: str, amount: int, tx_params: Optional[TxParams] = None) -> int:
"""Estimate gas consumption of method call."""
(sender, recipient, amount) = self.validate_and_normalize_inputs(sender, recipient, amount)
tx_params = super().normalize_tx_params(tx_params)
return self._underlying_method(sender, recipient, amount).estimateGas(tx_params.as_dict())
class SignatureGenerator(Signatures):
"""
The signature is generated for this and it is installed.
"""
def __init__(self, abi: any):
super().__init__(abi)
def domain_typehash(self) -> str:
return self._function_signatures["DOMAIN_TYPEHASH"]
def permit_typehash(self) -> str:
return self._function_signatures["PERMIT_TYPEHASH"]
def add_black_list(self) -> str:
return self._function_signatures["addBlackList"]
def allowance(self) -> str:
return self._function_signatures["allowance"]
def approve(self) -> str:
return self._function_signatures["approve"]
def balance_of(self) -> str:
return self._function_signatures["balanceOf"]
def decimals(self) -> str:
return self._function_signatures["decimals"]
def decrease_allowance(self) -> str:
return self._function_signatures["decreaseAllowance"]
def destroy_black_funds(self) -> str:
return self._function_signatures["destroyBlackFunds"]
def endpoint(self) -> str:
return self._function_signatures["endpoint"]
def get_black_list_status(self) -> str:
return self._function_signatures["getBlackListStatus"]
def governance(self) -> str:
return self._function_signatures["governance"]
def increase_allowance(self) -> str:
return self._function_signatures["increaseAllowance"]
def is_black_listed(self) -> str:
return self._function_signatures["isBlackListed"]
def lz_receive(self) -> str:
return self._function_signatures["lzReceive"]
def minters(self) -> str:
return self._function_signatures["minters"]
def name(self) -> str:
return self._function_signatures["name"]
def nonces(self) -> str:
return self._function_signatures["nonces"]
def permit(self) -> str:
return self._function_signatures["permit"]
def remotes(self) -> str:
return self._function_signatures["remotes"]
def remove_black_list(self) -> str:
return self._function_signatures["removeBlackList"]
def send_tokens(self) -> str:
return self._function_signatures["sendTokens"]
def set_governance(self) -> str:
return self._function_signatures["setGovernance"]
def set_remote(self) -> str:
return self._function_signatures["setRemote"]
def symbol(self) -> str:
return self._function_signatures["symbol"]
def total_supply(self) -> str:
return self._function_signatures["totalSupply"]
def transfer(self) -> str:
return self._function_signatures["transfer"]
def transfer_from(self) -> str:
return self._function_signatures["transferFrom"]
# pylint: disable=too-many-public-methods,too-many-instance-attributes
class LayerZeroDollar(ContractBase):
"""Wrapper class for LayerZeroDollar Solidity contract.
All method parameters of type `bytes`:code: should be encoded as UTF-8,
which can be accomplished via `str.encode("utf_8")`:code:.
"""
_fn_domain_typehash: DomainTypehashMethod
"""Constructor-initialized instance of
:class:`DomainTypehashMethod`.
"""
_fn_permit_typehash: PermitTypehashMethod
"""Constructor-initialized instance of
:class:`PermitTypehashMethod`.
"""
_fn_add_black_list: AddBlackListMethod
"""Constructor-initialized instance of
:class:`AddBlackListMethod`.
"""
_fn_allowance: AllowanceMethod
"""Constructor-initialized instance of
:class:`AllowanceMethod`.
"""
_fn_approve: ApproveMethod
"""Constructor-initialized instance of
:class:`ApproveMethod`.
"""
_fn_balance_of: BalanceOfMethod
"""Constructor-initialized instance of
:class:`BalanceOfMethod`.
"""
_fn_decimals: DecimalsMethod
"""Constructor-initialized instance of
:class:`DecimalsMethod`.
"""
_fn_decrease_allowance: DecreaseAllowanceMethod
"""Constructor-initialized instance of
:class:`DecreaseAllowanceMethod`.
"""
_fn_destroy_black_funds: DestroyBlackFundsMethod
"""Constructor-initialized instance of
:class:`DestroyBlackFundsMethod`.
"""
_fn_endpoint: EndpointMethod
"""Constructor-initialized instance of
:class:`EndpointMethod`.
"""
_fn_get_black_list_status: GetBlackListStatusMethod
"""Constructor-initialized instance of
:class:`GetBlackListStatusMethod`.
"""
_fn_governance: GovernanceMethod
"""Constructor-initialized instance of
:class:`GovernanceMethod`.
"""
_fn_increase_allowance: IncreaseAllowanceMethod
"""Constructor-initialized instance of
:class:`IncreaseAllowanceMethod`.
"""
_fn_is_black_listed: IsBlackListedMethod
"""Constructor-initialized instance of
:class:`IsBlackListedMethod`.
"""
_fn_lz_receive: LzReceiveMethod
"""Constructor-initialized instance of
:class:`LzReceiveMethod`.
"""
_fn_minters: MintersMethod
"""Constructor-initialized instance of
:class:`MintersMethod`.
"""
_fn_name: NameMethod
"""Constructor-initialized instance of
:class:`NameMethod`.
"""
_fn_nonces: NoncesMethod
"""Constructor-initialized instance of
:class:`NoncesMethod`.
"""
_fn_permit: PermitMethod
"""Constructor-initialized instance of
:class:`PermitMethod`.
"""
_fn_remotes: RemotesMethod
"""Constructor-initialized instance of
:class:`RemotesMethod`.
"""
_fn_remove_black_list: RemoveBlackListMethod
"""Constructor-initialized instance of
:class:`RemoveBlackListMethod`.
"""
_fn_send_tokens: SendTokensMethod
"""Constructor-initialized instance of
:class:`SendTokensMethod`.
"""
_fn_set_governance: SetGovernanceMethod
"""Constructor-initialized instance of
:class:`SetGovernanceMethod`.
"""
_fn_set_remote: SetRemoteMethod
"""Constructor-initialized instance of
:class:`SetRemoteMethod`.
"""
_fn_symbol: SymbolMethod
"""Constructor-initialized instance of
:class:`SymbolMethod`.
"""
_fn_total_supply: TotalSupplyMethod
"""Constructor-initialized instance of
:class:`TotalSupplyMethod`.
"""
_fn_transfer: TransferMethod
"""Constructor-initialized instance of
:class:`TransferMethod`.
"""
_fn_transfer_from: TransferFromMethod
"""Constructor-initialized instance of
:class:`TransferFromMethod`.
"""
SIGNATURES:SignatureGenerator = None
def __init__(
self,
core_lib: MiliDoS,
contract_address: str,
validator: LayerZeroDollarValidator = None,
):
"""Get an instance of wrapper for smart contract.
"""
# pylint: disable=too-many-statements
super().__init__(contract_address, LayerZeroDollar.abi())
web3 = core_lib.w3
if not validator:
validator = LayerZeroDollarValidator(web3, contract_address)
# if any middleware was imported, inject it
try:
MIDDLEWARE
except NameError:
pass
else:
try:
for middleware in MIDDLEWARE:
web3.middleware_onion.inject(
middleware['function'], layer=middleware['layer'],
)
except ValueError as value_error:
if value_error.args == ("You can't add the same un-named instance twice",):
pass
self._web3_eth = web3.eth
functions = self._web3_eth.contract(address=to_checksum_address(contract_address), abi=LayerZeroDollar.abi()).functions
self._signatures = SignatureGenerator(LayerZeroDollar.abi())
validator.bindSignatures(self._signatures)
self._fn_domain_typehash = DomainTypehashMethod(core_lib, contract_address, functions.DOMAIN_TYPEHASH, validator)
self._fn_permit_typehash = PermitTypehashMethod(core_lib, contract_address, functions.PERMIT_TYPEHASH, validator)
self._fn_add_black_list = AddBlackListMethod(core_lib, contract_address, functions.addBlackList, validator)
self._fn_allowance = AllowanceMethod(core_lib, contract_address, functions.allowance, validator)
self._fn_approve = ApproveMethod(core_lib, contract_address, functions.approve, validator)
self._fn_balance_of = BalanceOfMethod(core_lib, contract_address, functions.balanceOf, validator)
self._fn_decimals = DecimalsMethod(core_lib, contract_address, functions.decimals, validator)
self._fn_decrease_allowance = DecreaseAllowanceMethod(core_lib, contract_address, functions.decreaseAllowance, validator)
self._fn_destroy_black_funds = DestroyBlackFundsMethod(core_lib, contract_address, functions.destroyBlackFunds, validator)
self._fn_endpoint = EndpointMethod(core_lib, contract_address, functions.endpoint, validator)
self._fn_get_black_list_status = GetBlackListStatusMethod(core_lib, contract_address, functions.getBlackListStatus, validator)
self._fn_governance = GovernanceMethod(core_lib, contract_address, functions.governance, validator)
self._fn_increase_allowance = IncreaseAllowanceMethod(core_lib, contract_address, functions.increaseAllowance, validator)
self._fn_is_black_listed = IsBlackListedMethod(core_lib, contract_address, functions.isBlackListed, validator)
self._fn_lz_receive = LzReceiveMethod(core_lib, contract_address, functions.lzReceive, validator)
self._fn_minters = MintersMethod(core_lib, contract_address, functions.minters, validator)
self._fn_name = NameMethod(core_lib, contract_address, functions.name, validator)
self._fn_nonces = NoncesMethod(core_lib, contract_address, functions.nonces, validator)
self._fn_permit = PermitMethod(core_lib, contract_address, functions.permit, validator)
self._fn_remotes = RemotesMethod(core_lib, contract_address, functions.remotes, validator)
self._fn_remove_black_list = RemoveBlackListMethod(core_lib, contract_address, functions.removeBlackList, validator)
self._fn_send_tokens = SendTokensMethod(core_lib, contract_address, functions.sendTokens, validator)
self._fn_set_governance = SetGovernanceMethod(core_lib, contract_address, functions.setGovernance, validator)
self._fn_set_remote = SetRemoteMethod(core_lib, contract_address, functions.setRemote, validator)
self._fn_symbol = SymbolMethod(core_lib, contract_address, functions.symbol, validator)
self._fn_total_supply = TotalSupplyMethod(core_lib, contract_address, functions.totalSupply, validator)
self._fn_transfer = TransferMethod(core_lib, contract_address, functions.transfer, validator)
self._fn_transfer_from = TransferFromMethod(core_lib, contract_address, functions.transferFrom, validator)
def event_added_black_list(
self, tx_hash: Union[HexBytes, bytes]
) -> Tuple[AttributeDict]:
"""
Implementation of event added_black_list in contract LayerZeroDollar
Get log entry for AddedBlackList event.
:param tx_hash: hash of transaction emitting AddedBlackList event
"""
tx_receipt = self._web3_eth.getTransactionReceipt(tx_hash)
return self._web3_eth.contract(address=to_checksum_address(self.contract_address), abi=LayerZeroDollar.abi()).events.AddedBlackList().processReceipt(tx_receipt)
def event_approval(
self, tx_hash: Union[HexBytes, bytes]
) -> Tuple[AttributeDict]:
"""
Implementation of event approval in contract LayerZeroDollar
Get log entry for Approval event.
:param tx_hash: hash of transaction emitting Approval event
"""
tx_receipt = self._web3_eth.getTransactionReceipt(tx_hash)
return self._web3_eth.contract(address=to_checksum_address(self.contract_address), abi=LayerZeroDollar.abi()).events.Approval().processReceipt(tx_receipt)
def event_destroyed_black_funds(
self, tx_hash: Union[HexBytes, bytes]
) -> Tuple[AttributeDict]:
"""
Implementation of event destroyed_black_funds in contract LayerZeroDollar
Get log entry for DestroyedBlackFunds event.
:param tx_hash: hash of transaction emitting DestroyedBlackFunds event
"""
tx_receipt = self._web3_eth.getTransactionReceipt(tx_hash)
return self._web3_eth.contract(address=to_checksum_address(self.contract_address), abi=LayerZeroDollar.abi()).events.DestroyedBlackFunds().processReceipt(tx_receipt)
def event_removed_black_list(
self, tx_hash: Union[HexBytes, bytes]
) -> Tuple[AttributeDict]:
"""
Implementation of event removed_black_list in contract LayerZeroDollar
Get log entry for RemovedBlackList event.
:param tx_hash: hash of transaction emitting RemovedBlackList event
"""
tx_receipt = self._web3_eth.getTransactionReceipt(tx_hash)
return self._web3_eth.contract(address=to_checksum_address(self.contract_address), abi=LayerZeroDollar.abi()).events.RemovedBlackList().processReceipt(tx_receipt)
def event_transfer(
self, tx_hash: Union[HexBytes, bytes]
) -> Tuple[AttributeDict]:
"""
Implementation of event transfer in contract LayerZeroDollar
Get log entry for Transfer event.
:param tx_hash: hash of transaction emitting Transfer event
"""
tx_receipt = self._web3_eth.getTransactionReceipt(tx_hash)
return self._web3_eth.contract(address=to_checksum_address(self.contract_address), abi=LayerZeroDollar.abi()).events.Transfer().processReceipt(tx_receipt)
def domain_typehash(self) -> Union[bytes, str]:
"""
Implementation of domain_typehash in contract LayerZeroDollar
Method of the function
"""
self._fn_domain_typehash.callback_onfail = self._callback_onfail
self._fn_domain_typehash.callback_onsuccess = self._callback_onsuccess
self._fn_domain_typehash.auto_reciept = self.call_contract_enforce_tx_receipt
self._fn_domain_typehash.gas_limit = self.call_contract_fee_amount
self._fn_domain_typehash.gas_price_wei = self.call_contract_fee_price
self._fn_domain_typehash.debug_method = self.call_contract_debug_flag
return self._fn_domain_typehash.block_call()
def permit_typehash(self) -> Union[bytes, str]:
"""
Implementation of permit_typehash in contract LayerZeroDollar
Method of the function
"""
self._fn_permit_typehash.callback_onfail = self._callback_onfail
self._fn_permit_typehash.callback_onsuccess = self._callback_onsuccess
self._fn_permit_typehash.auto_reciept = self.call_contract_enforce_tx_receipt
self._fn_permit_typehash.gas_limit = self.call_contract_fee_amount
self._fn_permit_typehash.gas_price_wei = self.call_contract_fee_price
self._fn_permit_typehash.debug_method = self.call_contract_debug_flag
return self._fn_permit_typehash.block_call()
def add_black_list(self, evil: str) -> None:
"""
Implementation of add_black_list in contract LayerZeroDollar
Method of the function
"""
self._fn_add_black_list.callback_onfail = self._callback_onfail
self._fn_add_black_list.callback_onsuccess = self._callback_onsuccess
self._fn_add_black_list.auto_reciept = self.call_contract_enforce_tx_receipt
self._fn_add_black_list.gas_limit = self.call_contract_fee_amount
self._fn_add_black_list.gas_price_wei = self.call_contract_fee_price
self._fn_add_black_list.debug_method = self.call_contract_debug_flag
return self._fn_add_black_list.block_send(evil)
def allowance(self, owner: str, spender: str) -> int:
"""
Implementation of allowance in contract LayerZeroDollar
Method of the function
"""
self._fn_allowance.callback_onfail = self._callback_onfail
self._fn_allowance.callback_onsuccess = self._callback_onsuccess
self._fn_allowance.auto_reciept = self.call_contract_enforce_tx_receipt
self._fn_allowance.gas_limit = self.call_contract_fee_amount
self._fn_allowance.gas_price_wei = self.call_contract_fee_price
self._fn_allowance.debug_method = self.call_contract_debug_flag
return self._fn_allowance.block_call(owner, spender)
def approve(self, spender: str, amount: int) -> bool:
"""
Implementation of approve in contract LayerZeroDollar
Method of the function
"""
self._fn_approve.callback_onfail = self._callback_onfail
self._fn_approve.callback_onsuccess = self._callback_onsuccess
self._fn_approve.auto_reciept = self.call_contract_enforce_tx_receipt
self._fn_approve.gas_limit = self.call_contract_fee_amount
self._fn_approve.gas_price_wei = self.call_contract_fee_price
self._fn_approve.debug_method = self.call_contract_debug_flag
return self._fn_approve.block_send(spender, amount)
def balance_of(self, account: str) -> int:
"""
Implementation of balance_of in contract LayerZeroDollar
Method of the function
"""
self._fn_balance_of.callback_onfail = self._callback_onfail
self._fn_balance_of.callback_onsuccess = self._callback_onsuccess
self._fn_balance_of.auto_reciept = self.call_contract_enforce_tx_receipt
self._fn_balance_of.gas_limit = self.call_contract_fee_amount
self._fn_balance_of.gas_price_wei = self.call_contract_fee_price
self._fn_balance_of.debug_method = self.call_contract_debug_flag
return self._fn_balance_of.block_call(account)
def decimals(self) -> int:
"""
Implementation of decimals in contract LayerZeroDollar
Method of the function
"""
self._fn_decimals.callback_onfail = self._callback_onfail
self._fn_decimals.callback_onsuccess = self._callback_onsuccess
self._fn_decimals.auto_reciept = self.call_contract_enforce_tx_receipt
self._fn_decimals.gas_limit = self.call_contract_fee_amount
self._fn_decimals.gas_price_wei = self.call_contract_fee_price
self._fn_decimals.debug_method = self.call_contract_debug_flag
return self._fn_decimals.block_call()
def decrease_allowance(self, spender: str, subtracted_value: int) -> bool:
"""
Implementation of decrease_allowance in contract LayerZeroDollar
Method of the function
"""
self._fn_decrease_allowance.callback_onfail = self._callback_onfail
self._fn_decrease_allowance.callback_onsuccess = self._callback_onsuccess
self._fn_decrease_allowance.auto_reciept = self.call_contract_enforce_tx_receipt
self._fn_decrease_allowance.gas_limit = self.call_contract_fee_amount
self._fn_decrease_allowance.gas_price_wei = self.call_contract_fee_price
self._fn_decrease_allowance.debug_method = self.call_contract_debug_flag
return self._fn_decrease_allowance.block_send(spender, subtracted_value)
def destroy_black_funds(self, evil: str) -> None:
"""
Implementation of destroy_black_funds in contract LayerZeroDollar
Method of the function
"""
self._fn_destroy_black_funds.callback_onfail = self._callback_onfail
self._fn_destroy_black_funds.callback_onsuccess = self._callback_onsuccess
self._fn_destroy_black_funds.auto_reciept = self.call_contract_enforce_tx_receipt
self._fn_destroy_black_funds.gas_limit = self.call_contract_fee_amount
self._fn_destroy_black_funds.gas_price_wei = self.call_contract_fee_price
self._fn_destroy_black_funds.debug_method = self.call_contract_debug_flag
return self._fn_destroy_black_funds.block_send(evil)
def endpoint(self) -> str:
"""
Implementation of endpoint in contract LayerZeroDollar
Method of the function
"""
self._fn_endpoint.callback_onfail = self._callback_onfail
self._fn_endpoint.callback_onsuccess = self._callback_onsuccess
self._fn_endpoint.auto_reciept = self.call_contract_enforce_tx_receipt
self._fn_endpoint.gas_limit = self.call_contract_fee_amount
self._fn_endpoint.gas_price_wei = self.call_contract_fee_price
self._fn_endpoint.debug_method = self.call_contract_debug_flag
return self._fn_endpoint.block_call()
def get_black_list_status(self, maker: str) -> bool:
"""
Implementation of get_black_list_status in contract LayerZeroDollar
Method of the function
"""
self._fn_get_black_list_status.callback_onfail = self._callback_onfail
self._fn_get_black_list_status.callback_onsuccess = self._callback_onsuccess
self._fn_get_black_list_status.auto_reciept = self.call_contract_enforce_tx_receipt
self._fn_get_black_list_status.gas_limit = self.call_contract_fee_amount
self._fn_get_black_list_status.gas_price_wei = self.call_contract_fee_price
self._fn_get_black_list_status.debug_method = self.call_contract_debug_flag
return self._fn_get_black_list_status.block_call(maker)
def governance(self) -> str:
"""
Implementation of governance in contract LayerZeroDollar
Method of the function
"""
self._fn_governance.callback_onfail = self._callback_onfail
self._fn_governance.callback_onsuccess = self._callback_onsuccess
self._fn_governance.auto_reciept = self.call_contract_enforce_tx_receipt
self._fn_governance.gas_limit = self.call_contract_fee_amount
self._fn_governance.gas_price_wei = self.call_contract_fee_price
self._fn_governance.debug_method = self.call_contract_debug_flag
return self._fn_governance.block_call()
def increase_allowance(self, spender: str, added_value: int) -> bool:
"""
Implementation of increase_allowance in contract LayerZeroDollar
Method of the function
"""
self._fn_increase_allowance.callback_onfail = self._callback_onfail
self._fn_increase_allowance.callback_onsuccess = self._callback_onsuccess
self._fn_increase_allowance.auto_reciept = self.call_contract_enforce_tx_receipt
self._fn_increase_allowance.gas_limit = self.call_contract_fee_amount
self._fn_increase_allowance.gas_price_wei = self.call_contract_fee_price
self._fn_increase_allowance.debug_method = self.call_contract_debug_flag
return self._fn_increase_allowance.block_send(spender, added_value)
def is_black_listed(self, index_0: str) -> bool:
"""
Implementation of is_black_listed in contract LayerZeroDollar
Method of the function
"""
self._fn_is_black_listed.callback_onfail = self._callback_onfail
self._fn_is_black_listed.callback_onsuccess = self._callback_onsuccess
self._fn_is_black_listed.auto_reciept = self.call_contract_enforce_tx_receipt
self._fn_is_black_listed.gas_limit = self.call_contract_fee_amount
self._fn_is_black_listed.gas_price_wei = self.call_contract_fee_price
self._fn_is_black_listed.debug_method = self.call_contract_debug_flag
return self._fn_is_black_listed.block_call(index_0)
def lz_receive(self, src_chain_id: int, src_address: Union[bytes, str], index_2: int, payload: Union[bytes, str]) -> None:
"""
Implementation of lz_receive in contract LayerZeroDollar
Method of the function
"""
self._fn_lz_receive.callback_onfail = self._callback_onfail
self._fn_lz_receive.callback_onsuccess = self._callback_onsuccess
self._fn_lz_receive.auto_reciept = self.call_contract_enforce_tx_receipt
self._fn_lz_receive.gas_limit = self.call_contract_fee_amount
self._fn_lz_receive.gas_price_wei = self.call_contract_fee_price
self._fn_lz_receive.debug_method = self.call_contract_debug_flag
return self._fn_lz_receive.block_send(src_chain_id, src_address, index_2, payload)
def minters(self, index_0: str) -> bool:
"""
Implementation of minters in contract LayerZeroDollar
Method of the function
"""
self._fn_minters.callback_onfail = self._callback_onfail
self._fn_minters.callback_onsuccess = self._callback_onsuccess
self._fn_minters.auto_reciept = self.call_contract_enforce_tx_receipt
self._fn_minters.gas_limit = self.call_contract_fee_amount
self._fn_minters.gas_price_wei = self.call_contract_fee_price
self._fn_minters.debug_method = self.call_contract_debug_flag
return self._fn_minters.block_call(index_0)
def name(self) -> str:
"""
Implementation of name in contract LayerZeroDollar
Method of the function
"""
self._fn_name.callback_onfail = self._callback_onfail
self._fn_name.callback_onsuccess = self._callback_onsuccess
self._fn_name.auto_reciept = self.call_contract_enforce_tx_receipt
self._fn_name.gas_limit = self.call_contract_fee_amount
self._fn_name.gas_price_wei = self.call_contract_fee_price
self._fn_name.debug_method = self.call_contract_debug_flag
return self._fn_name.block_call()
def nonces(self, index_0: str) -> int:
"""
Implementation of nonces in contract LayerZeroDollar
Method of the function
"""
self._fn_nonces.callback_onfail = self._callback_onfail
self._fn_nonces.callback_onsuccess = self._callback_onsuccess
self._fn_nonces.auto_reciept = self.call_contract_enforce_tx_receipt
self._fn_nonces.gas_limit = self.call_contract_fee_amount
self._fn_nonces.gas_price_wei = self.call_contract_fee_price
self._fn_nonces.debug_method = self.call_contract_debug_flag
return self._fn_nonces.block_call(index_0)
def permit(self, owner: str, spender: str, raw_amount: int, deadline: int, v: int, r: Union[bytes, str], s: Union[bytes, str]) -> None:
"""
Implementation of permit in contract LayerZeroDollar
Method of the function
"""
self._fn_permit.callback_onfail = self._callback_onfail
self._fn_permit.callback_onsuccess = self._callback_onsuccess
self._fn_permit.auto_reciept = self.call_contract_enforce_tx_receipt
self._fn_permit.gas_limit = self.call_contract_fee_amount
self._fn_permit.gas_price_wei = self.call_contract_fee_price
self._fn_permit.debug_method = self.call_contract_debug_flag
return self._fn_permit.block_send(owner, spender, raw_amount, deadline, v, r, s)
def remotes(self, index_0: int) -> Union[bytes, str]:
"""
Implementation of remotes in contract LayerZeroDollar
Method of the function
"""
self._fn_remotes.callback_onfail = self._callback_onfail
self._fn_remotes.callback_onsuccess = self._callback_onsuccess
self._fn_remotes.auto_reciept = self.call_contract_enforce_tx_receipt
self._fn_remotes.gas_limit = self.call_contract_fee_amount
self._fn_remotes.gas_price_wei = self.call_contract_fee_price
self._fn_remotes.debug_method = self.call_contract_debug_flag
return self._fn_remotes.block_call(index_0)
def remove_black_list(self, noevil: str) -> None:
"""
Implementation of remove_black_list in contract LayerZeroDollar
Method of the function
"""
self._fn_remove_black_list.callback_onfail = self._callback_onfail
self._fn_remove_black_list.callback_onsuccess = self._callback_onsuccess
self._fn_remove_black_list.auto_reciept = self.call_contract_enforce_tx_receipt
self._fn_remove_black_list.gas_limit = self.call_contract_fee_amount
self._fn_remove_black_list.gas_price_wei = self.call_contract_fee_price
self._fn_remove_black_list.debug_method = self.call_contract_debug_flag
return self._fn_remove_black_list.block_send(noevil)
def send_tokens(self, chain_id: int, dst_omni_chain_token_addr: Union[bytes, str], qty: int, wei:int=0) -> None:
"""
Implementation of send_tokens in contract LayerZeroDollar
Method of the function
"""
self._fn_send_tokens.callback_onfail = self._callback_onfail
self._fn_send_tokens.callback_onsuccess = self._callback_onsuccess
self._fn_send_tokens.auto_reciept = self.call_contract_enforce_tx_receipt
self._fn_send_tokens.gas_limit = self.call_contract_fee_amount
self._fn_send_tokens.gas_price_wei = self.call_contract_fee_price
self._fn_send_tokens.debug_method = self.call_contract_debug_flag
self._fn_send_tokens.wei_value = wei
return self._fn_send_tokens.block_send(chain_id, dst_omni_chain_token_addr, qty, wei)
def set_governance(self, governance: str) -> None:
"""
Implementation of set_governance in contract LayerZeroDollar
Method of the function
"""
self._fn_set_governance.callback_onfail = self._callback_onfail
self._fn_set_governance.callback_onsuccess = self._callback_onsuccess
self._fn_set_governance.auto_reciept = self.call_contract_enforce_tx_receipt
self._fn_set_governance.gas_limit = self.call_contract_fee_amount
self._fn_set_governance.gas_price_wei = self.call_contract_fee_price
self._fn_set_governance.debug_method = self.call_contract_debug_flag
return self._fn_set_governance.block_send(governance)
def set_remote(self, chain_id: int, remote_address: Union[bytes, str]) -> None:
"""
Implementation of set_remote in contract LayerZeroDollar
Method of the function
"""
self._fn_set_remote.callback_onfail = self._callback_onfail
self._fn_set_remote.callback_onsuccess = self._callback_onsuccess
self._fn_set_remote.auto_reciept = self.call_contract_enforce_tx_receipt
self._fn_set_remote.gas_limit = self.call_contract_fee_amount
self._fn_set_remote.gas_price_wei = self.call_contract_fee_price
self._fn_set_remote.debug_method = self.call_contract_debug_flag
return self._fn_set_remote.block_send(chain_id, remote_address)
def symbol(self) -> str:
"""
Implementation of symbol in contract LayerZeroDollar
Method of the function
"""
self._fn_symbol.callback_onfail = self._callback_onfail
self._fn_symbol.callback_onsuccess = self._callback_onsuccess
self._fn_symbol.auto_reciept = self.call_contract_enforce_tx_receipt
self._fn_symbol.gas_limit = self.call_contract_fee_amount
self._fn_symbol.gas_price_wei = self.call_contract_fee_price
self._fn_symbol.debug_method = self.call_contract_debug_flag
return self._fn_symbol.block_call()
def total_supply(self) -> int:
"""
Implementation of total_supply in contract LayerZeroDollar
Method of the function
"""
self._fn_total_supply.callback_onfail = self._callback_onfail
self._fn_total_supply.callback_onsuccess = self._callback_onsuccess
self._fn_total_supply.auto_reciept = self.call_contract_enforce_tx_receipt
self._fn_total_supply.gas_limit = self.call_contract_fee_amount
self._fn_total_supply.gas_price_wei = self.call_contract_fee_price
self._fn_total_supply.debug_method = self.call_contract_debug_flag
return self._fn_total_supply.block_call()
def transfer(self, recipient: str, amount: int) -> bool:
"""
Implementation of transfer in contract LayerZeroDollar
Method of the function
"""
self._fn_transfer.callback_onfail = self._callback_onfail
self._fn_transfer.callback_onsuccess = self._callback_onsuccess
self._fn_transfer.auto_reciept = self.call_contract_enforce_tx_receipt
self._fn_transfer.gas_limit = self.call_contract_fee_amount
self._fn_transfer.gas_price_wei = self.call_contract_fee_price
self._fn_transfer.debug_method = self.call_contract_debug_flag
return self._fn_transfer.block_send(recipient, amount)
def transfer_from(self, sender: str, recipient: str, amount: int) -> bool:
"""
Implementation of transfer_from in contract LayerZeroDollar
Method of the function
"""
self._fn_transfer_from.callback_onfail = self._callback_onfail
self._fn_transfer_from.callback_onsuccess = self._callback_onsuccess
self._fn_transfer_from.auto_reciept = self.call_contract_enforce_tx_receipt
self._fn_transfer_from.gas_limit = self.call_contract_fee_amount
self._fn_transfer_from.gas_price_wei = self.call_contract_fee_price
self._fn_transfer_from.debug_method = self.call_contract_debug_flag
return self._fn_transfer_from.block_send(sender, recipient, amount)
def CallContractWait(self, t_long:int)-> "LayerZeroDollar":
self._fn_domain_typehash.setWait(t_long)
self._fn_permit_typehash.setWait(t_long)
self._fn_add_black_list.setWait(t_long)
self._fn_allowance.setWait(t_long)
self._fn_approve.setWait(t_long)
self._fn_balance_of.setWait(t_long)
self._fn_decimals.setWait(t_long)
self._fn_decrease_allowance.setWait(t_long)
self._fn_destroy_black_funds.setWait(t_long)
self._fn_endpoint.setWait(t_long)
self._fn_get_black_list_status.setWait(t_long)
self._fn_governance.setWait(t_long)
self._fn_increase_allowance.setWait(t_long)
self._fn_is_black_listed.setWait(t_long)
self._fn_lz_receive.setWait(t_long)
self._fn_minters.setWait(t_long)
self._fn_name.setWait(t_long)
self._fn_nonces.setWait(t_long)
self._fn_permit.setWait(t_long)
self._fn_remotes.setWait(t_long)
self._fn_remove_black_list.setWait(t_long)
self._fn_send_tokens.setWait(t_long)
self._fn_set_governance.setWait(t_long)
self._fn_set_remote.setWait(t_long)
self._fn_symbol.setWait(t_long)
self._fn_total_supply.setWait(t_long)
self._fn_transfer.setWait(t_long)
self._fn_transfer_from.setWait(t_long)
return self
@staticmethod
def abi():
"""Return the ABI to the underlying contract."""
return json.loads(
'[{"inputs":[{"internalType":"address","name":"_layerZeroEndpoint","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_user","type":"address"}],"name":"AddedBlackList","type":"event"},{"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":false,"internalType":"address","name":"_blackListedUser","type":"address"},{"indexed":false,"internalType":"uint256","name":"_balance","type":"uint256"}],"name":"DestroyedBlackFunds","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_user","type":"address"}],"name":"RemovedBlackList","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"},{"inputs":[],"name":"DOMAIN_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PERMIT_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"evil","type":"address"}],"name":"addBlackList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"evil","type":"address"}],"name":"destroyBlackFunds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"endpoint","outputs":[{"internalType":"contract ILayerZeroEndpoint","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_maker","type":"address"}],"name":"getBlackListStatus","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"governance","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"index_0","type":"address"}],"name":"isBlackListed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_srcChainId","type":"uint16"},{"internalType":"bytes","name":"_srcAddress","type":"bytes"},{"internalType":"uint64","name":"index_2","type":"uint64"},{"internalType":"bytes","name":"_payload","type":"bytes"}],"name":"lzReceive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"index_0","type":"address"}],"name":"minters","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"index_0","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"rawAmount","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"permit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"index_0","type":"uint16"}],"name":"remotes","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"noevil","type":"address"}],"name":"removeBlackList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_chainId","type":"uint16"},{"internalType":"bytes","name":"_dstOmniChainTokenAddr","type":"bytes"},{"internalType":"uint256","name":"_qty","type":"uint256"}],"name":"sendTokens","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_governance","type":"address"}],"name":"setGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_chainId","type":"uint16"},{"internalType":"bytes","name":"_remoteAddress","type":"bytes"}],"name":"setRemote","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"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"}],"stateMutability":"nonpayable","type":"function"}]' # noqa: E501 (line-too-long)
)
# pylint: disable=too-many-lines
| 42.811687 | 7,265 | 0.635747 | 18,723 | 167,779 | 5.405437 | 0.021471 | 0.037705 | 0.030631 | 0.01328 | 0.885125 | 0.837806 | 0.807452 | 0.773768 | 0.752317 | 0.69571 | 0 | 0.004008 | 0.253506 | 167,779 | 3,918 | 7,266 | 42.822614 | 0.802932 | 0.105973 | 0 | 0.636211 | 1 | 0.000419 | 0.146394 | 0.051185 | 0 | 0 | 0 | 0 | 0.016345 | 1 | 0.100587 | false | 0.001257 | 0.007963 | 0.011735 | 0.209975 | 0.105616 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
94581ed1eba24a13744a1e60b1f7d79136f5d43b | 208 | py | Python | project_receipt/receipt/admin.py | Guilouf/django-receipt | fb42de12311cd1a20cc28c74a732d818f28ef551 | [
"Apache-2.0"
] | null | null | null | project_receipt/receipt/admin.py | Guilouf/django-receipt | fb42de12311cd1a20cc28c74a732d818f28ef551 | [
"Apache-2.0"
] | 8 | 2021-02-01T12:47:02.000Z | 2021-12-13T09:34:38.000Z | project_receipt/receipt/admin.py | Guilouf/django-receipt | fb42de12311cd1a20cc28c74a732d818f28ef551 | [
"Apache-2.0"
] | null | null | null | from django.contrib import admin
from receipt import models
admin.site.register(models.Company)
admin.site.register(models.Establishment)
admin.site.register(models.Receipt)
admin.site.register(models.Tag)
| 23.111111 | 41 | 0.831731 | 29 | 208 | 5.965517 | 0.413793 | 0.208092 | 0.393064 | 0.531792 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.067308 | 208 | 8 | 42 | 26 | 0.891753 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 7 |
945c37438281b14a03f824d21e4b47197da37566 | 558,716 | py | Python | Frontend/qt/Predictor/images_qr.py | ricorx7/rti-python | 1316323b782ddb8df357e55404f507a9573e172c | [
"BSD-3-Clause"
] | 1 | 2017-06-10T13:27:44.000Z | 2017-06-10T13:27:44.000Z | Frontend/qt/Predictor/images_qr.py | ricorx7/rti-python | 1316323b782ddb8df357e55404f507a9573e172c | [
"BSD-3-Clause"
] | 10 | 2019-12-28T18:06:18.000Z | 2022-03-25T18:48:20.000Z | Frontend/qt/Predictor/images_qr.py | ricorx7/rti_python | 1316323b782ddb8df357e55404f507a9573e172c | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# Resource object code
#
# Created by: The Resource Compiler for PyQt5 (Qt v5.8.0)
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore
qt_resource_data = b"\
\x00\x02\x10\x24\
\x00\
\x00\x01\x00\x06\x00\x10\x10\x00\x00\x01\x00\x20\x00\x68\x04\x00\
\x00\x66\x00\x00\x00\x20\x20\x00\x00\x01\x00\x20\x00\xa8\x10\x00\
\x00\xce\x04\x00\x00\x30\x30\x00\x00\x01\x00\x20\x00\xa8\x25\x00\
\x00\x76\x15\x00\x00\x40\x40\x00\x00\x01\x00\x20\x00\x28\x42\x00\
\x00\x1e\x3b\x00\x00\x80\x80\x00\x00\x01\x00\x20\x00\x28\x08\x01\
\x00\x46\x7d\x00\x00\x00\x00\x00\x00\x01\x00\x20\x00\xb6\x8a\x00\
\x00\x6e\x85\x01\x00\x28\x00\x00\x00\x10\x00\x00\x00\x20\x00\x00\
\x00\x01\x00\x20\x00\x00\x00\x00\x00\x00\x04\x00\x00\xc2\x0e\x00\
\x00\xc2\x0e\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xff\x00\x00\x00\xff\
\x00\x00\x00\xff\x00\x00\x00\xff\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x27\x16\xe3\x00\x1f\x10\xed\x01\x44\x3a\xa9\x07\x5d\x5c\x70\
\x06\x6f\x71\x64\x03\x58\x55\x79\x0b\x4e\x47\x89\x1f\x49\x41\x91\
\x35\x45\x3c\x99\x48\x42\x39\x9f\x52\x3a\x2e\xaf\x4b\x2e\x1d\xc8\
\x34\x27\x13\xdf\x17\x25\x0f\xec\x02\x26\x10\xe8\x00\x2b\x18\xdb\
\x07\x33\x24\xc5\x33\x46\x3f\x8d\x5b\x49\x47\x63\x3f\x3c\x3f\x2c\
\x14\x0c\x12\x00\x07\x1c\x21\x0b\x0b\x2d\x30\x1c\x0e\x36\x37\x31\
\x17\x40\x40\x47\x21\x4f\x4e\x69\x32\x61\x60\x78\x8a\x62\x5f\x88\
\xce\x47\x3d\xa1\xaf\x31\x21\xc9\x77\x2e\x1c\xd3\x22\x2f\x1e\xcf\
\x7d\x4a\x43\x8f\xbb\x5f\x5b\x8d\xaa\x58\x50\xa8\x7c\x58\x4f\xaf\
\x79\x51\x48\xa7\x71\x50\x48\xa4\x66\x55\x4c\xae\x6b\x50\x48\x9f\
\x72\x57\x4f\xa8\x75\x8d\x8d\x9d\x4e\xa2\xa4\xa0\xca\xa9\xab\xa7\
\xfe\x85\x87\x86\xe8\x4e\x47\x90\xd4\x2f\x1f\xce\xbb\x31\x20\xcc\
\xd4\x55\x52\x74\xd2\x59\x50\xb2\xda\x56\x48\xdc\xe1\x5f\x52\xdb\
\xd3\x5f\x52\xda\xc6\x5b\x4e\xda\xd7\x59\x4c\xd9\xe1\x63\x56\xdb\
\xd0\x67\x5b\xdb\xbb\x99\x99\xa5\xa4\xa8\xaa\xa7\xed\xad\xaf\xad\
\xfb\x9f\xa1\x9c\xe9\x60\x5e\x7c\xdc\x31\x20\xc9\xcb\x2e\x1d\xd1\
\x70\x3d\x31\xaf\xc1\x58\x52\x96\xdf\x60\x59\xa4\xa5\x68\x5e\xc2\
\x64\x6c\x61\xd8\x59\x72\x67\xdf\x4f\x6c\x61\xdf\x4a\x7b\x71\xe2\
\x51\x6f\x64\xe0\x4f\x8f\x8d\xaa\x27\x97\x99\x96\xa6\x9c\x9e\x9e\
\xed\x73\x72\x87\xc5\x41\x37\xa6\x8b\x2e\x1c\xd2\x3c\x2f\x1d\xd1\
\x03\x2c\x1b\xd6\x2c\x35\x27\xbc\x68\x42\x39\x9c\x8a\x48\x42\x8b\
\x7e\x4c\x47\x81\x5e\x4d\x49\x7a\x3f\x4e\x4a\x78\x2b\x4b\x48\x71\
\x1a\x55\x59\x40\x09\x46\x4a\x31\x03\x65\x66\x69\x1c\x5f\x5c\x81\
\x3e\x3f\x34\xac\x26\x22\x0d\xe9\x0a\x2d\x1b\xb7\x00\x00\x00\x00\
\x00\x04\x00\xff\x00\x00\x00\xff\x00\x1e\x09\xf3\x07\x2f\x1d\xd0\
\x15\x38\x2b\xb8\x1f\x3e\x34\xa8\x20\x43\x3a\x9d\x1b\x47\x3f\x95\
\x10\x55\x52\x75\x05\x5f\x62\x56\x01\x4b\x4d\x4a\x00\x5f\x62\x5f\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xff\xff\x00\
\x00\xff\xff\x00\x00\xff\xff\x00\x00\xff\xff\x00\x00\xff\xff\x00\
\x00\xc0\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x01\x00\x00\xe0\x1f\x00\x00\xff\xff\x00\
\x00\xff\xff\x00\x00\xff\xff\x00\x00\xff\xff\x00\x00\x28\x00\x00\
\x00\x20\x00\x00\x00\x40\x00\x00\x00\x01\x00\x20\x00\x00\x00\x00\
\x00\x00\x10\x00\x00\xc2\x0e\x00\x00\xc2\x0e\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x41\x2c\xcf\x00\x31\x27\xac\x00\x39\x29\xc2\x02\x38\x29\xc0\
\x08\x37\x26\xc3\x0f\x33\x22\xc8\x18\x30\x1f\xcd\x1e\x2e\x1c\xd3\
\x21\x2c\x18\xd9\x22\x2a\x17\xdd\x1f\x29\x16\xdf\x18\x2a\x17\xdc\
\x10\x2c\x19\xd9\x05\x2d\x1a\xd6\x00\x2c\x19\xd8\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\xff\x00\x1b\x01\xff\x00\x00\x00\xff\
\x01\x24\x14\xe3\x04\x50\x4c\x7d\x06\x5e\x60\x5c\x08\x61\x61\x61\
\x04\x5f\x60\x5f\x08\x5d\x5e\x5d\x10\x54\x50\x75\x21\x50\x4c\x7e\
\x39\x51\x4c\x7c\x48\x4f\x4a\x7f\x5d\x4d\x48\x82\x6f\x4b\x45\x89\
\x7c\x48\x41\x90\x8c\x46\x3d\x96\x94\x40\x35\xa5\x93\x38\x2b\xb7\
\x90\x32\x22\xc8\x82\x2e\x1c\xd3\x71\x2d\x1b\xd4\x52\x2e\x1d\xd2\
\x28\x2f\x1e\xcf\x07\x2e\x1e\xce\x00\x31\x1d\xd6\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x30\x1e\xb2\x00\x2c\x1a\xd6\
\x00\x2c\x1a\xd5\x05\x2b\x18\xda\x20\x33\x23\xc5\x3a\x45\x3d\x98\
\x4f\x53\x4f\x78\x4b\x5b\x5b\x63\x2e\x5e\x60\x5d\x14\x66\x66\x66\
\x03\x6b\x6c\x6b\x02\x68\x69\x68\x04\x67\x69\x60\x05\x6a\x6d\x57\
\x05\x6a\x6e\x4f\x06\x69\x6d\x4b\x09\x66\x6a\x4c\x0d\x63\x66\x51\
\x17\x60\x62\x55\x27\x5e\x5f\x59\x44\x5c\x5d\x5c\x69\x59\x59\x62\
\x90\x56\x54\x6e\xac\x4d\x48\x86\xb6\x3e\x33\xac\xb3\x31\x21\xc9\
\xb7\x2e\x1d\xd2\xa3\x2f\x1e\xd1\x5b\x2f\x1f\xd0\x13\x2d\x1e\xd2\
\x00\x2e\x1c\xcf\x00\x2f\x1e\xcf\x00\x30\x1f\xce\x03\x2e\x1d\xd1\
\x37\x2f\x1e\xcf\x7b\x41\x37\xa2\x91\x53\x51\x6f\x9d\x56\x56\x5c\
\x64\x49\x4a\x47\x23\x1e\x1f\x1b\x0b\x00\x00\x00\x03\x00\x00\x00\
\x04\x07\x08\x08\x05\x08\x09\x09\x08\x01\x02\x01\x08\x05\x07\x07\
\x08\x01\x01\x01\x07\x03\x04\x04\x07\x02\x02\x02\x07\x00\x00\x00\
\x06\x00\x00\x00\x05\x00\x00\x00\x01\x4c\x4e\x49\x00\x74\x76\x71\
\x21\x6d\x6f\x6b\x9f\x70\x72\x6d\xf3\x6c\x6e\x6a\xed\x5e\x5d\x6f\
\xc9\x43\x3a\x9e\xb4\x30\x20\xcd\xd4\x2f\x1e\xd1\xc0\x2f\x1e\xcf\
\x44\x2e\x1d\xd1\x02\x30\x1e\xd0\x0a\x2f\x1e\xd1\x76\x30\x20\xcc\
\xbe\x4d\x47\x84\xae\x60\x61\x61\xc9\x56\x57\x58\x65\x27\x28\x29\
\x3a\x2a\x2b\x32\x40\x2c\x2d\x2f\x3a\x2d\x2d\x35\x3c\x28\x27\x33\
\x48\x21\x22\x21\x3d\x16\x17\x17\x38\x2d\x2d\x32\x41\x22\x23\x23\
\x2b\x2d\x2e\x32\x3c\x22\x23\x24\x40\x24\x24\x28\x53\x28\x28\x31\
\x4a\x28\x28\x35\x46\x2c\x2c\x37\x10\x8d\x8e\x8b\x10\x7c\x7e\x7b\
\xb1\xa2\xa4\xa1\xfe\xae\xb0\xae\xff\xac\xae\xac\xff\x7f\x81\x7d\
\xff\x63\x64\x60\xee\x52\x4f\x75\xb5\x32\x22\xc8\xce\x2f\x1e\xd0\
\xe6\x2f\x1e\xd0\x5b\x2f\x1e\xd0\x7f\x2e\x1d\xd1\xe7\x47\x40\x92\
\xa5\x5d\x5e\x58\xeb\x72\x6f\x95\xb4\x5e\x52\xd1\xc2\x7a\x72\xc9\
\x92\x5b\x4f\xcb\xc8\x7a\x72\xd0\xad\x5a\x4d\xce\xc5\x60\x54\xcb\
\xc9\x5d\x52\xcc\x9e\x79\x72\xc2\x60\x55\x49\xcd\xc8\x84\x7b\xd6\
\x6f\x57\x4b\xca\xc1\x6f\x66\xc9\x89\x67\x5c\xc7\xa2\x58\x4c\xc9\
\xcf\x70\x66\xcf\xb1\x93\x8f\xbb\x61\x97\x99\x94\x7b\xa7\xa9\xa7\
\xc5\xb0\xb2\xb0\xf9\xba\xbb\xba\xff\xb2\xb4\xb2\xfc\xad\xae\xad\
\xd1\x86\x88\x86\xda\x67\x69\x64\xf9\x4d\x49\x82\xaa\x2f\x1e\xd1\
\xe9\x2f\x1e\xd0\xe0\x2f\x1e\xd0\xe1\x2f\x1e\xd0\xd9\x56\x55\x6c\
\xb1\x5c\x5e\x59\xf5\x66\x61\xa2\x97\x45\x36\xd8\xf0\x55\x48\xd9\
\xe1\x4d\x3e\xd7\xe8\x68\x5c\xdd\xd2\x52\x44\xd8\xcd\x79\x6e\xe1\
\x9a\x49\x3b\xd6\xe2\x70\x64\xdf\xa8\x41\x31\xd4\xff\x71\x65\xdf\
\xd5\x41\x31\xd4\xfb\x65\x58\xdc\xc2\x5a\x4d\xda\xbe\x52\x43\xd8\
\xe4\x8f\x86\xe9\x93\x8f\x8f\x9f\x8d\xa0\xa3\xa0\xfb\xae\xb0\xae\
\xf1\xa9\xaa\xa9\xf8\xa0\xa2\xa0\xff\xab\xad\xab\xfa\xa6\xa8\xa6\
\xed\xb1\xb3\xb1\xfb\x69\x6b\x68\xff\x59\x59\x67\xbf\x30\x1f\xcd\
\xd5\x2f\x1e\xd0\xf9\x2f\x1e\xd0\xd5\x2e\x1d\xd1\xec\x4c\x47\x85\
\xab\x5d\x5e\x58\xf6\x65\x61\x90\xd6\x43\x34\xd7\xf4\x5f\x52\xdb\
\xcb\x49\x3a\xd6\xf4\x67\x5b\xdc\xeb\x50\x43\xd7\xcd\x72\x67\xde\
\x9c\x4f\x41\xd7\xee\x5d\x51\xda\xe0\x5e\x51\xda\xdc\x56\x49\xd8\
\xed\x4b\x3d\xd6\xec\x80\x75\xe1\xc8\x5e\x51\xda\xdd\x4e\x3f\xd7\
\xe3\x82\x78\xe5\x94\x93\x92\xa7\x6d\x94\x96\x92\xbc\xa4\xa6\xa4\
\xcc\xa2\xa4\xa2\xf6\xb6\xb7\xb6\xff\xa8\xa9\xa7\xfa\xa3\xa5\xa2\
\xcf\x9a\x9c\x9a\xd6\x69\x6b\x66\xf9\x4f\x4a\x80\xaa\x2f\x1e\xd1\
\xe5\x2f\x1e\xd0\x9f\x2f\x1e\xd0\x5c\x2f\x1e\xd1\xe8\x33\x23\xc6\
\xcf\x54\x51\x70\xbf\x6e\x6c\x81\xf7\x5f\x57\xb6\xf7\x67\x5c\xd0\
\xb7\x63\x57\xdf\x9c\x7f\x75\xe3\x75\x60\x53\xdb\xaa\x65\x58\xdc\
\xa8\x75\x6a\xdf\x9e\x72\x66\xdf\xab\x7f\x74\xe2\x74\x6b\x60\xdd\
\x8f\x6d\x61\xde\x8a\x96\x8d\xe6\x77\x78\x6d\xe0\xb0\x60\x53\xdb\
\xab\x78\x6e\xe1\x94\xac\xa6\xe8\x2e\x85\x87\x7f\x22\x8b\x8d\x8a\
\xcc\xb3\xb4\xb3\xff\xb4\xb6\xb4\xff\xb8\xba\xb8\xff\x94\x96\x93\
\xf6\x68\x69\x66\xde\x55\x53\x76\xba\x33\x23\xc6\xbd\x2f\x1e\xd1\
\x94\x2f\x1e\xd0\x17\x30\x1e\xd1\x02\x2f\x1e\xd0\x4c\x2f\x1d\xd1\
\xc9\x31\x21\xca\xd5\x49\x42\x95\xbe\x5d\x5d\x68\xd5\x60\x62\x5e\
\xb6\x65\x67\x5d\x5b\x6a\x6d\x56\x18\xe3\xe6\xc6\x05\xff\xff\xff\
\x01\xf1\xee\xff\x01\xf7\xf5\xff\x03\xff\xff\xff\x02\xff\xff\xff\
\x03\xff\xff\xff\x03\xef\xef\xfc\x03\xea\xea\xfa\x05\xe3\xe2\xf9\
\x05\xcb\xc9\xf4\x06\xee\xee\xff\x01\xff\xff\xff\x01\x76\x78\x75\
\x48\x82\x84\x81\xbe\x8b\x8d\x8a\xeb\x82\x84\x82\xf1\x67\x67\x74\
\xcc\x4b\x44\x94\x9f\x31\x21\xc9\x89\x2e\x1d\xd2\x51\x30\x1e\xd0\
\x09\x30\x1e\xd0\x00\x31\x1f\xce\x00\x2b\x1d\xd4\x00\x2f\x1e\xd0\
\x18\x2f\x1d\xd1\x6a\x2e\x1d\xd1\xb0\x34\x25\xc3\xbe\x43\x3a\x9d\
\xc0\x50\x4d\x7a\xc5\x57\x57\x68\xaf\x5b\x5c\x5e\x80\x5d\x5f\x59\
\x51\x5e\x61\x54\x2e\x60\x63\x4e\x18\x63\x68\x42\x0b\x69\x73\x26\
\x04\x7e\x94\x00\x01\xb2\xd4\x00\x00\x65\x7d\x03\x00\x4f\x57\x29\
\x01\x4e\x50\x45\x02\x59\x5b\x58\x01\x58\x5c\x58\x03\x5f\x60\x5e\
\x0d\x68\x69\x6b\x38\x61\x60\x75\x68\x56\x50\x91\x63\x39\x2b\xbe\
\x48\x2b\x19\xd6\x2e\x2d\x1b\xd6\x0c\x27\x0f\xe2\x00\x33\x24\xcb\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x2f\x21\xcd\
\x00\x2b\x10\xde\x00\x2e\x1e\xd0\x0c\x2e\x1c\xd3\x33\x2d\x1c\xd4\
\x62\x2f\x1e\xcf\x83\x35\x27\xc0\x97\x3d\x32\xab\xa0\x44\x3c\x99\
\xa5\x4a\x44\x8b\x9f\x4d\x49\x81\x90\x4e\x4a\x7e\x7a\x50\x4b\x7c\
\x6c\x51\x4c\x7b\x5e\x4f\x4b\x7e\x4c\x50\x4d\x7c\x37\x58\x57\x6c\
\x22\x5d\x5e\x5e\x18\x5d\x5e\x5d\x0c\x5e\x63\x5e\x04\x5e\x5f\x5c\
\x0a\x4f\x4d\x68\x09\x21\x13\xc9\x07\x01\x00\xff\x04\x00\x00\xff\
\x00\x00\x00\xff\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x15\x18\xd0\x00\x2d\x18\xda\
\x00\x2b\x19\xd9\x02\x2a\x17\xdb\x0c\x2a\x16\xde\x17\x2a\x17\xdc\
\x23\x2d\x1a\xd6\x2a\x30\x1f\xcd\x2c\x33\x24\xc5\x2a\x37\x29\xbb\
\x29\x3a\x2d\xb4\x24\x3d\x30\xae\x1c\x40\x36\xa7\x11\x4b\x43\x92\
\x06\x5e\x5c\x62\x02\x5d\x5f\x5a\x00\x54\x5e\x54\x00\x64\x64\x64\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\
\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\
\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xf8\x00\
\xff\xfc\x00\x00\x0f\xe0\x00\x00\x03\x80\x00\x04\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x01\xc0\x00\xc0\x07\xf0\x00\x00\x3f\xfe\x00\x0f\
\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\
\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\
\xff\xff\xff\xff\xff\x28\x00\x00\x00\x30\x00\x00\x00\x60\x00\x00\
\x00\x01\x00\x20\x00\x00\x00\x00\x00\x00\x24\x00\x00\xc2\x0e\x00\
\x00\xc2\x0e\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\xff\x00\x00\x00\xff\x00\x04\x00\xff\
\x01\x14\x00\xff\x02\x1e\x07\xf8\x02\x24\x0e\xe9\x02\x27\x14\xdd\
\x02\x2b\x15\xda\x01\x00\x00\xff\x00\x25\x07\xe3\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x5e\x5e\x5e\x00\x62\x62\x62\
\x00\x5b\x5c\x5b\x00\x63\x65\x56\x01\x4f\x49\x89\x03\x41\x36\xa8\
\x11\x3f\x34\xab\x21\x40\x33\xab\x2c\x3e\x30\xaf\x39\x3a\x2d\xb5\
\x4a\x38\x2a\xba\x57\x35\x27\xc0\x60\x33\x23\xc6\x66\x30\x1f\xcd\
\x6b\x2f\x1d\xd1\x70\x2e\x1c\xd3\x6e\x2e\x1c\xd4\x65\x2d\x1c\xd4\
\x5e\x2d\x1c\xd2\x52\x2f\x1d\xd1\x3b\x2f\x1e\xd0\x21\x30\x1d\xd1\
\x0f\x34\x1f\xd2\x02\x32\x1f\xd1\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x24\x08\xef\
\x00\x2a\x0f\xe1\x00\x21\x08\xf3\x02\x13\x00\xff\x04\x24\x12\xe0\
\x02\x5d\x5f\x5b\x05\x5e\x5f\x5e\x0a\x5f\x5f\x5f\x07\x66\x67\x66\
\x05\x5e\x5f\x5e\x11\x5e\x5f\x5e\x19\x5b\x5c\x60\x20\x57\x54\x6d\
\x32\x55\x53\x71\x43\x58\x56\x6a\x4c\x59\x57\x67\x55\x58\x58\x66\
\x64\x58\x58\x66\x72\x58\x57\x66\x7e\x57\x55\x6a\x86\x55\x52\x6f\
\x91\x52\x4f\x75\x9c\x4f\x4b\x7d\xa0\x4a\x44\x8c\x9a\x41\x37\xa2\
\x9b\x38\x2b\xb7\x9d\x32\x22\xc8\xa5\x2f\x1e\xd0\xae\x2e\x1d\xd2\
\xb0\x2f\x1d\xd1\x96\x2f\x1e\xd0\x6a\x2f\x1d\xd0\x35\x2f\x1e\xcf\
\x0f\x2d\x21\xcf\x01\x2e\x1f\xcf\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x31\x1f\xcf\x00\x34\x22\xcc\x01\x2f\x1e\xd2\x0e\x2d\x19\xd8\
\x26\x2e\x1d\xd3\x35\x3d\x31\xad\x3c\x4e\x48\x82\x47\x59\x59\x64\
\x42\x5d\x5e\x5c\x30\x5d\x5f\x5d\x1c\x5f\x5f\x5f\x07\x6b\x6b\x6b\
\x01\x5e\x5f\x5e\x02\x5e\x5e\x5e\x03\x5d\x5f\x5a\x03\x64\x69\x44\
\x02\x72\x7b\x24\x02\x6a\x71\x37\x02\x64\x67\x4a\x02\x60\x63\x53\
\x04\x5f\x61\x56\x06\x5f\x60\x59\x0a\x5e\x5f\x58\x16\x5d\x5f\x58\
\x24\x5d\x5f\x58\x38\x5d\x5f\x59\x5b\x5d\x5f\x59\x7f\x5d\x5f\x59\
\xa5\x5c\x5e\x5b\xba\x5b\x5b\x5f\xba\x54\x52\x6e\xa5\x47\x40\x90\
\x94\x37\x2a\xb8\xa0\x2f\x1f\xce\xc3\x2e\x1d\xd2\xdb\x2f\x1e\xd0\
\xc3\x2f\x1e\xd0\x7b\x2f\x1e\xd0\x30\x2d\x1f\xd0\x06\x32\x21\xcd\
\x00\x23\x17\xd8\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x2f\x1e\xcf\x00\x2f\x1e\xce\
\x04\x2e\x1e\xd0\x2b\x2e\x1c\xd3\x67\x30\x20\xcc\x75\x42\x38\xa0\
\x77\x54\x51\x72\x8d\x5b\x5b\x62\x7d\x5d\x5d\x5d\x47\x5f\x60\x5d\
\x19\x63\x64\x63\x04\x37\x40\x36\x00\x77\x74\x77\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x5f\x62\x60\x00\x5f\x66\x61\x00\x5d\x5e\x5d\
\x0b\x5a\x5c\x5a\x26\x5e\x5f\x5d\x59\x63\x64\x62\xad\x64\x65\x61\
\xe7\x65\x66\x63\xd7\x5f\x5e\x6e\xac\x47\x40\x94\x91\x33\x23\xc6\
\xae\x2f\x1d\xd1\xe8\x2f\x1e\xd0\xe8\x2f\x1e\xd0\x9c\x2f\x1e\xcf\
\x37\x32\x1c\xce\x03\x30\x1e\xd0\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x31\x1e\xce\x00\x32\x1e\xcc\x02\x2f\x1e\xcf\x2c\x2f\x1e\xd1\
\x8f\x2f\x1e\xd0\xaf\x3e\x33\xaa\x8a\x57\x56\x69\xa7\x5c\x5d\x5a\
\xb8\x5b\x5c\x58\x60\x42\x44\x41\x1a\x02\x03\x03\x05\x04\x04\x04\
\x08\x0c\x0c\x0c\x05\x10\x0f\x0f\x00\x0b\x0d\x0d\x03\x0c\x10\x10\
\x01\x0f\x0f\x0f\x05\x0e\x10\x10\x08\x0d\x0f\x0f\x08\x0c\x10\x10\
\x08\x0d\x10\x10\x08\x0d\x0f\x0f\x09\x0e\x0e\x0e\x07\x0e\x0f\x0f\
\x07\x0f\x11\x11\x07\x10\x12\x12\x05\x0d\x10\x10\x09\x0d\x0f\x0f\
\x07\x0f\x10\x10\x07\x0f\x13\x13\x01\x10\x13\x13\x00\x90\x92\x8f\
\x00\xaa\xac\xaa\x07\x7b\x7d\x79\x53\x6b\x6d\x69\xc0\x6c\x6f\x6b\
\xf3\x6d\x6f\x6c\xff\x68\x6b\x67\xff\x68\x6a\x65\xf0\x5f\x5f\x62\
\xbc\x48\x40\x90\x8d\x30\x20\xcc\xbc\x2f\x1e\xd1\xfb\x2f\x1e\xd0\
\xe5\x2f\x1e\xcf\x78\x2f\x1d\xd0\x0f\x2f\x1e\xd0\x00\x2f\x1e\xd1\
\x00\x30\x1e\xd1\x09\x2f\x1e\xd0\x6a\x2f\x1e\xd0\xdc\x31\x20\xcc\
\xb3\x50\x4c\x7c\x8b\x5c\x5d\x5a\xdc\x5b\x5c\x59\xb6\x37\x38\x33\
\x47\x03\x05\x05\x25\x03\x05\x03\x3d\x03\x06\x00\x36\x02\x03\x01\
\x28\x06\x08\x06\x46\x02\x03\x02\x20\x07\x08\x05\x4a\x04\x05\x02\
\x26\x08\x0b\x0a\x4c\x0c\x0e\x0e\x3b\x06\x07\x03\x35\x06\x07\x03\
\x40\x09\x0a\x0a\x2c\x07\x08\x08\x2b\x04\x06\x02\x3a\x06\x07\x03\
\x37\x09\x0a\x09\x49\x07\x08\x04\x50\x04\x06\x02\x3f\x04\x07\x02\
\x3b\x05\x08\x01\x3e\x06\x07\x03\x13\x3d\x3e\x3a\x00\xbb\xbb\xba\
\x08\x75\x78\x74\x88\x71\x73\x6f\xf4\xa2\xa5\xa2\xff\xb4\xb6\xb4\
\xff\xb6\xb8\xb7\xff\xa2\xa4\xa2\xff\x70\x72\x6f\xff\x6a\x6b\x69\
\xff\x5f\x60\x5d\xee\x57\x56\x68\xa0\x34\x26\xc2\x9e\x2f\x1e\xd1\
\xf7\x2f\x1e\xd0\xfb\x2f\x1e\xd0\x97\x30\x1f\xd0\x10\x30\x1e\xd0\
\x0a\x2f\x1e\xd0\x82\x2f\x1e\xd0\xf7\x30\x1f\xce\xbd\x54\x52\x71\
\x8b\x5c\x5d\x5a\xf1\x67\x67\x68\xe3\x85\x81\xad\x70\x62\x5d\x91\
\x72\x63\x62\x72\x59\x5b\x58\x7b\x6c\x60\x5b\x90\x77\x7c\x79\x96\
\x5a\x5b\x59\x79\x6e\x6c\x65\xa9\x62\x50\x4b\x7d\x8a\x63\x5e\x92\
\x6f\x55\x55\x68\x4a\x1d\x1f\x1e\x32\x61\x5e\x85\x63\x6a\x64\x9a\
\x6e\x7a\x78\x95\x2c\x64\x62\x7b\x48\x60\x5b\x8f\x78\x60\x5d\x81\
\x5e\x53\x52\x5c\x50\x59\x55\x7f\x86\x58\x53\x86\x7d\x58\x52\x8a\
\x7b\x5c\x57\x8d\x78\x89\x85\xac\x28\xf8\xfc\xda\x03\x96\x97\x95\
\x28\x7a\x7c\x79\xd8\xb8\xba\xb9\xff\xbe\xc0\xbf\xff\xab\xad\xab\
\xff\xac\xae\xac\xff\xc3\xc5\xc4\xff\xb4\xb6\xb4\xfe\x71\x73\x70\
\xea\x65\x66\x65\xf6\x5e\x5f\x5d\xfb\x59\x59\x63\xa3\x32\x23\xc7\
\xa4\x2f\x1e\xd0\xff\x2f\x1e\xd0\xf8\x2f\x1e\xd0\x80\x2f\x1e\xd0\
\x68\x2f\x1e\xd0\xf4\x2e\x1d\xd1\xee\x43\x3a\x9d\x7b\x5d\x5e\x5a\
\xe3\x5b\x5c\x5b\xff\x78\x78\x7f\x98\x67\x5b\xde\xd7\x50\x42\xd5\
\xf7\xa4\x9e\xe7\x80\x5d\x50\xd8\xdb\x50\x42\xd6\xf6\x9c\x95\xe5\
\xbe\x52\x44\xd7\xe8\x56\x48\xd9\xf0\x67\x5b\xdc\xe6\x4a\x3c\xd6\
\xf8\x6a\x5e\xdd\xb4\xce\xcb\xec\x33\x61\x55\xd9\xd5\x48\x39\xd5\
\xfc\x8f\x87\xe5\x7e\x7d\x73\xde\x97\x45\x36\xd4\xff\x6a\x5e\xdb\
\xc7\xbd\xb8\xec\x4e\x5a\x4d\xd9\xe8\x4c\x3d\xd5\xf9\x67\x5a\xdb\
\xe1\x6c\x60\xdc\xde\xa8\xa2\xe5\x77\x7d\x7f\x79\x8f\xa5\xa7\xa5\
\xa0\xaf\xb1\xaf\x9f\xb0\xb2\xb0\xdb\xa0\xa2\x9f\xfd\xc8\xc9\xc8\
\xff\xc3\xc5\xc4\xff\x9f\xa1\x9f\xfa\xb3\xb5\xb4\xcc\xaf\xb0\xaf\
\x97\x90\x91\x8f\xe4\x6d\x6f\x6d\xff\x60\x61\x5e\xf4\x4d\x49\x81\
\x84\x2e\x1d\xd1\xdf\x2f\x1e\xd0\xff\x2f\x1e\xd0\xe5\x2f\x1e\xd0\
\xc7\x2f\x1e\xd0\xff\x2e\x1d\xd2\xcd\x55\x53\x6f\x86\x5c\x5d\x5b\
\xff\x5c\x5d\x5b\xf9\x72\x72\x7b\x6c\x54\x46\xdb\xd2\x3e\x2f\xd3\
\xfb\x7f\x75\xe1\xbe\x37\x27\xd2\xfc\x58\x4b\xd9\xdd\x92\x8a\xe6\
\xa3\x34\x23\xd1\xff\x69\x5d\xdc\xbf\xba\xb5\xef\x69\x44\x34\xd4\
\xf6\x4a\x3b\xd6\xe1\xaa\xa3\xeb\x6e\x42\x33\xd4\xf2\x34\x24\xd1\
\xff\x77\x6d\xe0\xc4\x65\x59\xdc\xd2\x2e\x1d\xd0\xff\x4d\x3f\xd6\
\xea\xab\xa5\xeb\x64\x48\x39\xd5\xe8\x49\x3a\xd6\xf5\xa6\x9f\xea\
\x7d\xb9\xb4\xf0\x66\xc1\xc0\xd1\x5c\x72\x75\x71\xe1\xb7\xb9\xb7\
\xff\xb8\xba\xb8\xf6\x9d\x9f\x9d\xee\xb4\xb5\xb4\xfc\xa4\xa5\xa4\
\xff\xa5\xa6\xa4\xff\xb8\xba\xb8\xf8\x9a\x9c\x9a\xea\xc0\xc2\xc1\
\xf7\xab\xad\xab\xff\x69\x6b\x68\xff\x61\x62\x61\xff\x58\x58\x64\
\xa0\x2f\x1e\xcf\xc4\x2f\x1e\xd0\xff\x2f\x1e\xd0\xfb\x2f\x1e\xd0\
\xd9\x2f\x1e\xd0\xff\x2e\x1d\xd2\xd3\x53\x50\x74\x86\x5c\x5d\x5b\
\xfd\x5b\x5d\x5b\xfe\x6d\x6d\x74\x8e\x56\x49\xda\xd4\x36\x26\xd2\
\xff\x52\x44\xd8\xec\x38\x27\xd2\xfa\x4c\x3d\xd6\xf2\x8e\x85\xe5\
\xcf\x36\x25\xd1\xff\x6a\x5f\xdd\xb1\xc8\xc3\xf2\x4a\x47\x38\xd5\
\xf3\x4c\x3e\xd6\xe4\x91\x89\xe5\xa4\x36\x26\xd2\xfe\x62\x56\xdb\
\xf6\x70\x64\xde\xf5\x4c\x3e\xd6\xfc\x47\x38\xd5\xfc\x6e\x63\xdd\
\xf4\x95\x8c\xe6\x93\x4b\x3d\xd6\xe7\x3b\x2b\xd3\xfd\x5d\x51\xda\
\xdc\x75\x6a\xe0\xd3\xac\xaa\xcd\x62\x71\x74\x70\xe0\xb5\xb7\xb5\
\xff\xb2\xb4\xb3\xf9\x94\x95\x93\xf1\xa8\xaa\xa8\xfc\x98\x9a\x98\
\xff\x98\x99\x98\xff\xad\xaf\xad\xf9\x91\x93\x90\xee\xbb\xbd\xbb\
\xfa\xa9\xab\xa9\xff\x67\x6a\x67\xff\x61\x63\x61\xff\x56\x55\x69\
\x95\x2f\x1d\xd0\xcb\x2f\x1e\xd0\xff\x2f\x1e\xd0\xcb\x2f\x1e\xd0\
\xaf\x2f\x1e\xd0\xff\x2f\x1d\xd1\xf5\x3d\x32\xab\x8a\x5d\x5e\x5a\
\xd9\x5c\x5d\x5b\xff\x67\x67\x6b\xe3\x55\x49\xcc\xef\x3b\x2b\xd4\
\xfc\x8d\x83\xe5\x95\x59\x4b\xd9\xd9\x3b\x2b\xd2\xfe\x8b\x81\xe4\
\xe1\x34\x24\xd1\xff\x64\x57\xdb\xc1\xa7\xa0\xea\x6d\x42\x32\xd4\
\xf6\x53\x45\xd8\xea\x76\x6c\xe0\xd5\x32\x21\xd1\xff\x8a\x81\xe4\
\xb3\x5a\x4c\xd9\xe0\x2e\x1d\xd0\xff\x5a\x4d\xd9\xd9\x84\x7a\xe2\
\xb9\x82\x78\xe2\xc9\x4c\x3e\xd6\xec\x47\x37\xd5\xf5\x93\x8a\xe6\
\x7f\xa2\x9a\xea\x67\xcd\xcb\xe6\x40\x74\x76\x72\x96\x98\x99\x97\
\xa6\xa1\xa2\xa0\xa2\xa3\xa5\xa3\xda\x9c\x9e\x9c\xfd\xc9\xcb\xc9\
\xff\xc4\xc6\xc5\xff\x9b\x9d\x9b\xfa\xa6\xa7\xa5\xcb\xa5\xa7\xa5\
\x94\x8d\x8e\x8c\xd3\x6a\x6b\x69\xff\x60\x62\x5e\xd9\x40\x36\xa3\
\x81\x2e\x1d\xd1\xf1\x2f\x1e\xd0\xe7\x2f\x1e\xd0\x52\x2f\x1e\xd0\
\x3f\x2f\x1e\xd0\xdb\x2f\x1e\xd0\xff\x2f\x1e\xd0\xd4\x4c\x46\x85\
\x90\x5c\x5d\x59\xe5\x6e\x6f\x72\xff\x6d\x64\xc8\xff\x4f\x42\xd2\
\xfa\x61\x54\xdc\xdc\x56\x49\xda\xe7\x5c\x4f\xda\xd8\xa0\x98\xe9\
\x81\x59\x4c\xd9\xd8\x58\x4b\xd9\xe8\x62\x56\xdc\xde\x51\x42\xd7\
\xeb\x82\x78\xe2\xc7\x7a\x70\xe1\xdc\x54\x46\xd8\xed\xa2\x9a\xe9\
\x69\x78\x6d\xe0\xac\x4d\x3f\xd7\xf4\x7d\x73\xe1\x9f\x9d\x95\xe8\
\x76\x88\x7f\xe3\xe5\x68\x5c\xdc\xe9\x51\x43\xd8\xec\x62\x55\xdb\
\xd9\x6f\x63\xde\xd4\xb3\xac\xed\x54\xff\xff\xda\x05\x98\x99\x97\
\x29\x7c\x7e\x7b\xd7\xbd\xbf\xbd\xff\xbb\xbc\xbb\xff\xa8\xaa\xa8\
\xff\xa8\xaa\xa8\xff\xbf\xc1\xbf\xff\xb7\xb9\xb7\xfe\x74\x77\x74\
\xe0\x66\x67\x65\xe9\x60\x62\x5e\xe1\x4b\x46\x86\x87\x2f\x1e\xd0\
\xcf\x2f\x1e\xd0\xe5\x2f\x1e\xd0\x5e\x2e\x1f\xd4\x03\x25\x1b\xd2\
\x00\x2f\x1e\xd0\x4a\x2f\x1e\xd0\xd9\x2f\x1e\xd0\xff\x2f\x1e\xcf\
\xd2\x45\x3d\x95\x94\x64\x65\x67\xcc\x6c\x6c\x74\xfb\x69\x69\x77\
\xf2\x70\x6f\x89\x90\x8f\x8a\xc6\x3d\xbe\xb8\xf9\x1e\xfc\xfb\xff\
\x06\xb9\xb4\xee\x20\x9f\x98\xe9\x2e\x9b\x94\xe9\x2e\xa7\xa0\xeb\
\x2b\xd6\xd3\xf5\x1c\xaf\xaa\xed\x2b\xa8\xa2\xec\x2d\xd0\xcd\xf4\
\x13\xbe\xba\xf0\x1c\xa6\x9f\xeb\x2f\xc0\xbc\xf0\x1a\xd1\xcd\xf4\
\x16\xb5\xb0\xee\x2e\xaa\xa5\xec\x2d\xa0\x9a\xea\x2d\x9a\x93\xe8\
\x2e\xa4\x9e\xeb\x2e\xc9\xc6\xf3\x0e\xb3\xb2\xcc\x00\xb8\xb8\xb8\
\x09\x79\x7a\x78\x8d\x76\x79\x75\xf7\xaa\xac\xaa\xff\xb9\xbb\xb9\
\xff\xbb\xbd\xbb\xff\xa8\xab\xa8\xff\x74\x76\x73\xff\x6d\x6e\x6a\
\xf8\x5e\x5f\x62\xbf\x42\x39\x9b\x8a\x2f\x1e\xd0\xc8\x2f\x1e\xd0\
\xb5\x2f\x1e\xd0\x3b\x30\x22\xd1\x02\x30\x20\xd1\x00\x32\x1b\xce\
\x00\x3e\x0d\xc8\x00\x30\x1e\xd0\x31\x2f\x1e\xd0\xa6\x2f\x1e\xd0\
\xf3\x2f\x1d\xd1\xeb\x36\x28\xbc\xab\x4e\x4b\x78\xa4\x5a\x5b\x5b\
\xd3\x5c\x5d\x59\xec\x5b\x5c\x59\xba\x5a\x5b\x59\x60\x5b\x5b\x5b\
\x1d\x4f\x4f\x4f\x02\x54\x55\x54\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x96\x97\x95\
\x00\xad\xae\xac\x0c\x78\x7a\x77\x5e\x73\x76\x72\xc3\x72\x74\x70\
\xde\x71\x73\x6f\xf4\x6f\x71\x6d\xef\x68\x68\x6d\xc1\x53\x4e\x8a\
\x91\x34\x26\xc1\x90\x2e\x1d\xd2\x9b\x2f\x1f\xd0\x58\x30\x1e\xd1\
\x10\x2f\x21\xd3\x00\x30\x1d\xcf\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x3a\x21\xcd\x00\x2c\x1c\xd0\x00\x2f\x1d\xcf\x0a\x2f\x1e\xd0\
\x4b\x2f\x1e\xd0\xaa\x2f\x1e\xd1\xe8\x2f\x1e\xd0\xdf\x36\x27\xbe\
\xb1\x49\x42\x8d\xa3\x58\x57\x68\xbd\x5c\x5d\x5c\xd8\x5d\x5e\x5a\
\xcb\x5d\x5e\x5a\x95\x5d\x5e\x5b\x58\x5d\x5e\x5c\x29\x5b\x5d\x5b\
\x0e\x5f\x60\x60\x01\x4f\x4a\x4f\x00\x6d\x75\x6d\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x5d\x5e\x5d\x00\x60\x62\x60\
\x00\x3f\x3f\x3f\x02\x68\x69\x68\x10\x73\x74\x73\x41\x6d\x6d\x70\
\x79\x68\x66\x7c\x8b\x57\x50\x9a\x6f\x37\x28\xc1\x63\x2d\x1b\xd3\
\x5d\x2e\x1c\xd2\x37\x31\x1e\xd0\x0b\x2d\x15\xcb\x00\x35\x2f\xdb\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x2d\x1e\xcf\
\x00\x30\x20\xcf\x08\x2f\x1e\xd0\x31\x2f\x1e\xd0\x73\x2f\x1d\xd1\
\xb2\x2e\x1d\xd2\xcd\x30\x20\xcd\xc6\x38\x2a\xba\xb3\x44\x3c\x9a\
\xab\x50\x4c\x7c\xb1\x57\x56\x69\xba\x5b\x5b\x60\xb6\x5c\x5d\x5b\
\xa2\x5d\x5e\x5a\x88\x5d\x5f\x58\x69\x5e\x60\x57\x4c\x5e\x61\x56\
\x35\x5e\x61\x54\x26\x60\x62\x53\x1b\x61\x63\x51\x14\x62\x66\x4d\
\x0f\x64\x68\x4b\x0b\x61\x64\x52\x0a\x5e\x60\x59\x0b\x5d\x5f\x5c\
\x0b\x5d\x5e\x5d\x0c\x5e\x5f\x5e\x09\x5d\x62\x5d\x04\x5f\x63\x60\
\x0a\x5e\x5f\x5d\x1a\x5c\x5d\x5c\x26\x54\x54\x67\x28\x42\x39\x96\
\x24\x2c\x1a\xcb\x20\x28\x12\xdb\x1a\x2c\x18\xd8\x0d\x31\x1f\xd4\
\x01\x2e\x1b\xd3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x39\x1f\xd3\x00\x1c\x1c\xc8\x00\x30\x1e\xd0\
\x09\x2f\x1e\xd0\x24\x2f\x1d\xd0\x4f\x2e\x1d\xd2\x76\x2e\x1c\xd3\
\x98\x2e\x1d\xd2\xa0\x31\x20\xcc\xa1\x35\x26\xc0\xa3\x3a\x2e\xb2\
\xa4\x42\x39\x9e\xa1\x48\x41\x8f\xa1\x4a\x45\x88\x9d\x4c\x47\x84\
\x94\x4e\x49\x7f\x92\x50\x4c\x7c\x8d\x50\x4c\x7c\x81\x4f\x4b\x7f\
\x74\x4e\x49\x82\x64\x50\x4d\x7d\x4b\x56\x54\x71\x32\x5c\x5c\x63\
\x24\x5d\x5e\x5d\x1c\x5d\x5e\x5d\x12\x5c\x5d\x5c\x04\x5e\x66\x5e\
\x02\x5f\x60\x5e\x01\x5f\x5f\x5c\x00\x54\x54\x6f\x00\x00\x00\xff\
\x00\x00\x00\xff\x00\x00\x00\xff\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x2f\x1c\xcf\x00\x2e\x1f\xcf\
\x02\x30\x1e\xcf\x0c\x2f\x1d\xd2\x1a\x2d\x1b\xd3\x27\x2d\x1b\xd5\
\x33\x2c\x1a\xd7\x3a\x2c\x19\xd7\x3c\x2c\x1b\xd6\x3a\x2d\x1c\xd4\
\x37\x2f\x1e\xd0\x34\x30\x1f\xcc\x31\x32\x21\xc9\x2a\x33\x24\xc6\
\x21\x34\x25\xc3\x18\x36\x28\xc1\x0e\x39\x27\xc5\x05\x42\x22\xd4\
\x01\x40\x23\xce\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xff\xff\xff\
\xff\xff\xff\x00\x00\xff\xff\xff\xff\xff\xff\x00\x00\xff\xff\xff\
\xff\xff\xff\x00\x00\xff\xff\xff\xff\xff\xff\x00\x00\xff\xff\xff\
\xff\xff\xff\x00\x00\xff\xff\xff\xff\xff\xff\x00\x00\xff\xff\xff\
\xff\xff\xff\x00\x00\xff\xff\xff\xff\xff\xff\x00\x00\xff\xff\xff\
\xff\xff\xff\x00\x00\xff\xff\xff\xff\xff\xff\x00\x00\xff\xff\xff\
\xff\xff\xff\x00\x00\xff\xff\xff\xff\xff\xff\x00\x00\xff\xff\xff\
\xff\xff\xff\x00\x00\xff\xff\xff\xff\xff\xff\x00\x00\xff\xff\xff\
\xff\xff\xff\x00\x00\xff\xff\xff\x03\xff\xff\x00\x00\xff\xff\xc0\
\x00\x03\xff\x00\x00\xff\xc0\x00\x00\x00\x3f\x00\x00\xfc\x00\x00\
\x00\x00\x0f\x00\x00\xf0\x03\xff\xff\x00\x03\x00\x00\xc0\x02\x00\
\x01\x80\x01\x00\x00\x80\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80\x00\x00\
\x01\x00\x01\x00\x00\xc0\x03\xff\xff\x80\x07\x00\x00\xe0\x00\x3f\
\xff\x80\x1f\x00\x00\xf8\x00\x00\x00\x00\x7f\x00\x00\xff\x00\x00\
\x00\x3f\xff\x00\x00\xff\xf0\x00\x07\xff\xff\x00\x00\xff\xff\xff\
\xff\xff\xff\x00\x00\xff\xff\xff\xff\xff\xff\x00\x00\xff\xff\xff\
\xff\xff\xff\x00\x00\xff\xff\xff\xff\xff\xff\x00\x00\xff\xff\xff\
\xff\xff\xff\x00\x00\xff\xff\xff\xff\xff\xff\x00\x00\xff\xff\xff\
\xff\xff\xff\x00\x00\xff\xff\xff\xff\xff\xff\x00\x00\xff\xff\xff\
\xff\xff\xff\x00\x00\xff\xff\xff\xff\xff\xff\x00\x00\xff\xff\xff\
\xff\xff\xff\x00\x00\xff\xff\xff\xff\xff\xff\x00\x00\xff\xff\xff\
\xff\xff\xff\x00\x00\xff\xff\xff\xff\xff\xff\x00\x00\x28\x00\x00\
\x00\x40\x00\x00\x00\x80\x00\x00\x00\x01\x00\x20\x00\x00\x00\x00\
\x00\x00\x40\x00\x00\xc2\x0e\x00\x00\xc2\x0e\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xff\x00\x00\x00\xff\
\x00\xac\x0f\xf7\x00\x17\x01\xff\x02\x26\x0d\xf2\x08\x2a\x13\xe7\
\x0f\x2c\x16\xdf\x17\x2c\x18\xdb\x20\x2c\x19\xd8\x28\x2c\x1a\xd7\
\x2f\x2d\x1b\xd5\x35\x2e\x1b\xd3\x38\x2e\x1c\xd2\x39\x2f\x1d\xd0\
\x39\x2f\x1d\xd0\x35\x2f\x1e\xd0\x2f\x30\x1e\xd0\x26\x2f\x1f\xcf\
\x1b\x2e\x1f\xd0\x10\x2d\x1d\xcf\x07\x34\x12\xc0\x01\x2e\x17\xc6\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x72\x72\x72\x00\x74\x74\x74\x00\x62\x62\x62\
\x01\x5b\x5d\x5b\x02\x60\x61\x60\x04\x5d\x5f\x5b\x06\x4e\x47\x8b\
\x10\x46\x3d\x9b\x2d\x45\x3c\x9c\x43\x48\x40\x96\x4c\x49\x40\x92\
\x53\x47\x3f\x94\x5d\x45\x3c\x98\x6a\x43\x3a\x9c\x73\x41\x37\xa2\
\x79\x3e\x34\xa8\x7c\x3b\x2e\xb3\x7f\x37\x28\xbd\x83\x33\x22\xc7\
\x8a\x31\x20\xcb\x96\x30\x1f\xce\x9b\x2f\x1e\xd0\x9d\x2e\x1d\xd2\
\xa2\x2e\x1c\xd2\xac\x2e\x1d\xd1\xaa\x2f\x1d\xd0\x99\x2f\x1e\xd0\
\x76\x2f\x1e\xd0\x53\x30\x1d\xd0\x38\x31\x1f\xd1\x19\x31\x1f\xd0\
\x05\x24\x13\xdb\x00\x25\x16\xdd\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x2f\x17\xd2\x00\x30\x17\xd0\x00\x2d\x18\xdb\
\x03\x26\x12\xef\x05\x1e\x06\xfe\x03\x63\x65\x4d\x01\x5d\x5f\x5c\
\x05\x5f\x60\x5f\x0b\x5e\x5e\x5e\x0b\x6c\x6c\x6c\x03\x62\x62\x62\
\x0c\x5d\x5f\x5d\x1a\x5e\x5e\x5e\x21\x5d\x5f\x5d\x25\x5c\x5b\x5e\
\x2c\x5b\x5b\x60\x36\x5b\x5b\x61\x3e\x5c\x5d\x5e\x45\x5c\x5d\x5c\
\x4c\x5d\x5e\x5b\x54\x5d\x5e\x5a\x62\x5d\x5f\x59\x6f\x5d\x5e\x59\
\x7c\x5d\x5e\x59\x89\x5d\x5e\x5a\x91\x5c\x5d\x5b\x9b\x5c\x5c\x5c\
\xa3\x5b\x5c\x5e\xa7\x5a\x5a\x63\xa3\x57\x55\x6b\x94\x51\x4c\x7c\
\x84\x46\x3e\x94\x7f\x3c\x31\xad\x81\x34\x24\xc5\x8f\x2f\x1f\xce\
\xaf\x2e\x1d\xd1\xca\x2e\x1d\xd1\xdc\x2f\x1e\xd0\xcf\x2f\x1e\xd0\
\xae\x30\x1e\xd0\x7b\x2f\x1d\xd0\x44\x2f\x1e\xcf\x1a\x2f\x20\xcf\
\x03\x2f\x1f\xcf\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x34\x1a\xd2\x00\x34\x1c\xd0\
\x03\x30\x1b\xd1\x11\x2d\x1b\xd5\x28\x2c\x1a\xd7\x34\x34\x24\xc7\
\x2e\x44\x39\x9e\x36\x57\x56\x69\x3c\x5c\x5e\x5c\x3f\x5d\x5e\x5c\
\x36\x5e\x60\x5e\x24\x5f\x5e\x5f\x0a\x68\x68\x68\x02\x69\x6a\x69\
\x01\x5d\x5f\x5d\x01\x5d\x5e\x5d\x01\x5d\x5f\x5c\x01\x5d\x5e\x57\
\x01\x59\x5e\x55\x00\x68\x00\x71\x00\x5d\x43\x59\x00\x00\x00\x00\
\x00\x5c\x6c\x69\x00\x60\x36\x28\x00\x5d\x61\x5d\x00\x5e\x5e\x5d\
\x01\x61\x60\x61\x05\x5d\x5d\x5d\x11\x5b\x5d\x5b\x1f\x5c\x5d\x5c\
\x30\x5c\x5c\x5c\x47\x5c\x5d\x5c\x70\x5c\x5d\x5b\x97\x5d\x5e\x5b\
\xba\x5d\x5e\x5a\xd3\x5d\x5e\x5a\xd3\x5c\x5d\x5b\xc3\x5a\x5b\x60\
\x99\x52\x4e\x77\x7e\x42\x38\xa1\x73\x33\x24\xc6\x90\x2f\x1e\xd1\
\xbf\x2e\x1d\xd1\xec\x2f\x1e\xd0\xf2\x2f\x1e\xd0\xd3\x2f\x1e\xd0\
\x94\x2f\x1e\xd0\x4b\x30\x1d\xd0\x13\x30\x1f\xca\x01\x30\x1f\xcc\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x30\x20\xcd\
\x00\x31\x21\xcb\x01\x2f\x1d\xcf\x15\x2f\x1e\xd0\x46\x2e\x1d\xd2\
\x6c\x2f\x1e\xcf\x6d\x3c\x30\xb0\x5e\x50\x4c\x7c\x71\x5a\x59\x63\
\x81\x5c\x5c\x5d\x73\x5d\x5e\x5c\x46\x5d\x5e\x5d\x1e\x5d\x5d\x5d\
\x06\x5b\x5e\x5b\x00\x5c\x5d\x5c\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x57\x56\x57\x00\x68\x69\x68\x00\x5d\x5d\x5d\x02\x5d\x5f\x5d\
\x0f\x5c\x5d\x5c\x2e\x5c\x5d\x5c\x5a\x5c\x5d\x5c\x99\x5c\x5d\x5c\
\xce\x5c\x5d\x5b\xec\x5c\x5d\x5a\xdf\x5b\x5c\x5b\xb9\x55\x54\x69\
\x89\x44\x3b\x98\x75\x32\x22\xc8\x93\x2e\x1d\xd1\xd3\x2f\x1e\xd0\
\xfc\x2f\x1e\xd0\xf4\x2f\x1e\xd0\xc3\x2f\x1e\xd0\x6f\x2e\x1f\xd0\
\x1f\x35\x26\xcd\x01\x32\x22\xcf\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x2d\x1d\xd1\x00\x2c\x1d\xd2\x03\x2f\x1e\xcf\
\x28\x2e\x1e\xd0\x78\x2e\x1d\xd1\xad\x30\x1f\xce\x8f\x43\x39\x9e\
\x6c\x58\x58\x66\x90\x5c\x5d\x5b\xb8\x5d\x5e\x5b\x8d\x5e\x5f\x5d\
\x3c\x60\x5f\x60\x0a\x41\x43\x41\x00\xdc\xd7\xd6\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x7b\x79\x7b\x00\x67\x62\x6a\x01\x80\x80\x80\
\x25\x73\x74\x73\x87\x6e\x6f\x6d\xe3\x6b\x6c\x6a\xfe\x6e\x6f\x6d\
\xfd\x68\x69\x65\xe6\x5f\x60\x60\xaf\x4f\x4b\x7a\x75\x36\x26\xc1\
\x82\x2f\x1d\xd2\xd2\x2f\x1e\xd0\xfe\x2f\x1e\xd0\xfb\x2f\x1e\xd0\
\xd0\x2f\x1e\xcf\x6a\x31\x1d\xcf\x11\x2e\x1e\xd3\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x34\x1e\xce\
\x00\x36\x1f\xcb\x01\x2f\x1e\xcf\x23\x2f\x1e\xd0\x83\x2f\x1e\xd0\
\xd6\x2f\x1d\xd1\xb7\x3f\x33\xa9\x6e\x5a\x5a\x63\x8f\x5c\x5e\x5a\
\xda\x5c\x5c\x5b\xc1\x5b\x5c\x5b\x4c\x38\x3a\x38\x0e\x00\x00\x00\
\x07\x08\x0a\x0a\x04\x0e\x10\x10\x0a\x0f\x0f\x0f\x07\x13\x11\x11\
\x02\x0f\x12\x12\x00\x09\x0c\x0c\x03\x08\x0e\x0e\x02\x1f\x1b\x1b\
\x00\x0f\x0e\x0e\x04\x0e\x10\x10\x06\x0e\x0f\x0f\x0b\x0d\x10\x10\
\x05\x0c\x11\x11\x09\x0d\x10\x10\x09\x0c\x10\x10\x06\x0e\x0f\x0f\
\x0b\x0f\x0e\x0e\x04\x0e\x0f\x0f\x06\x0e\x10\x10\x09\x12\x13\x13\
\x03\x10\x13\x13\x05\x0d\x10\x10\x0a\x0c\x10\x10\x07\x0f\x0f\x0f\
\x08\x0e\x10\x10\x07\x06\x11\x11\x00\x0c\x10\x10\x00\x00\x00\x00\
\x00\xa6\xa8\xa5\x00\xc2\xc3\xc2\x02\x97\x98\x96\x31\x72\x75\x71\
\xa4\x63\x66\x62\xe8\x69\x6b\x67\xf7\x65\x67\x64\xfe\x69\x6c\x68\
\xff\x65\x67\x64\xff\x6d\x6f\x6d\xff\x64\x65\x62\xf2\x5c\x5d\x5b\
\xb6\x4d\x48\x83\x72\x30\x21\xcb\x97\x2e\x1e\xd1\xee\x2f\x1e\xd0\
\xff\x2f\x1e\xd0\xf7\x2f\x1e\xcf\xab\x2f\x1e\xd0\x2e\x7b\x49\xff\
\x00\x31\x1e\xd2\x00\x00\x00\x00\x00\x30\x1e\xd4\x00\x30\x1f\xd3\
\x08\x2f\x1e\xd0\x5d\x2f\x1e\xd0\xd2\x2f\x1e\xd0\xf2\x30\x20\xcd\
\x91\x53\x50\x75\x6f\x5d\x5e\x5a\xd0\x5c\x5d\x5c\xf9\x5c\x5d\x5c\
\x99\x2f\x30\x2f\x41\x07\x09\x09\x17\x0b\x0e\x0e\x3f\x0d\x0e\x0e\
\x3b\x0c\x0f\x0f\x3a\x0d\x0e\x0e\x2f\x0d\x0e\x0e\x40\x0c\x0e\x0e\
\x3f\x0c\x0c\x0c\x10\x0d\x0d\x0d\x4a\x0c\x0e\x0e\x2b\x0d\x0e\x0e\
\x23\x0c\x0e\x0e\x57\x0d\x0f\x0f\x41\x0d\x0e\x0e\x30\x0d\x0e\x0e\
\x47\x0d\x0e\x0e\x44\x0c\x0e\x0e\x30\x0c\x0f\x0f\x39\x0d\x0e\x0e\
\x2e\x0c\x0e\x0e\x44\x0d\x0e\x0e\x3a\x0d\x0e\x0e\x3f\x0e\x0f\x0f\
\x4d\x0e\x0f\x0f\x4f\x0c\x0e\x0e\x44\x0d\x0e\x0e\x37\x0d\x0f\x0e\
\x41\x0e\x0f\x0f\x42\x0e\x0f\x0f\x17\x0e\x0f\x0f\x00\xbb\xbb\xba\
\x00\xff\xff\xff\x01\x8b\x8c\x8a\x59\x65\x68\x64\xdf\x6c\x6e\x6a\
\xff\xa0\xa2\x9f\xff\xb3\xb5\xb3\xff\xad\xaf\xad\xff\xb2\xb4\xb3\
\xff\x8e\x90\x8e\xff\x62\x64\x61\xff\x6d\x6f\x6d\xff\x66\x67\x65\
\xff\x5c\x5d\x5a\xeb\x5a\x5b\x60\x94\x38\x2b\xb9\x75\x2f\x1d\xd1\
\xe0\x2f\x1e\xd0\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\xcf\x30\x1e\xd0\
\x39\x2c\x1b\xcf\x00\x31\x1e\xd0\x00\x30\x1e\xd1\x0c\x2f\x1e\xd0\
\x7f\x2f\x1e\xd0\xf1\x2f\x1e\xd0\xf8\x32\x21\xca\x88\x59\x59\x64\
\x7a\x5c\x5e\x5b\xeb\x5c\x5d\x5c\xff\x5e\x5f\x5d\xa1\x53\x56\x43\
\x1b\x13\x15\x0e\x44\x13\x14\x12\x35\x0d\x0f\x0d\x51\x16\x17\x10\
\x42\x16\x18\x10\x45\x17\x18\x13\x20\x0d\x0f\x0b\x3c\x12\x14\x0e\
\x5d\x1c\x1d\x0f\x28\x13\x14\x0f\x6d\x14\x15\x0f\x5c\x16\x18\x0d\
\x31\x09\x0d\x0a\x58\x0d\x0f\x0e\x47\x11\x13\x0d\x1e\x14\x15\x0f\
\x56\x18\x19\x10\x38\x16\x19\x0f\x11\x0d\x0e\x0e\x39\x1c\x1e\x10\
\x1b\x14\x17\x10\x52\x13\x14\x0e\x3d\x0d\x0e\x0d\x3d\x12\x13\x11\
\x5f\x13\x14\x0f\x69\x14\x16\x0f\x4e\x16\x18\x10\x42\x14\x17\x10\
\x4e\x15\x17\x0f\x49\x15\x16\x10\x19\x15\x16\x10\x00\x9e\x9f\x9d\
\x00\xa4\xa5\xa2\x24\x6e\x70\x6d\xd5\x7c\x7e\x7b\xff\xbe\xc0\xbe\
\xff\xce\xd0\xcf\xff\xc8\xca\xc8\xff\xb4\xb6\xb4\xff\xd3\xd4\xd3\
\xff\xcd\xcf\xce\xff\xa7\xa9\xa7\xff\x69\x6c\x68\xff\x6c\x6e\x6b\
\xff\x5f\x60\x5f\xff\x5b\x5c\x5b\xfc\x5c\x5d\x5c\xa7\x39\x2c\xb6\
\x6d\x2f\x1e\xd0\xe6\x2f\x1e\xd0\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\
\xc2\x31\x1f\xd0\x27\x31\x1d\xcf\x07\x2f\x1e\xd0\x80\x2f\x1e\xd0\
\xf7\x2f\x1e\xd0\xff\x2f\x1e\xd0\xa8\x56\x55\x6b\x6e\x5c\x5d\x5b\
\xee\x5b\x5c\x5b\xff\x67\x68\x66\xdd\xa5\xa0\xce\xa1\x7b\x71\xd3\
\xad\x75\x6d\xbf\xc4\x9e\x9b\xbc\x7a\x91\x8e\xb5\x6f\x76\x6d\xc4\
\xbc\x75\x6c\xc8\xb8\x9d\x98\xc7\xa2\x97\x93\xbf\x81\x7b\x72\xce\
\xab\x80\x74\xe0\xa1\x72\x68\xc9\xb6\x70\x67\xc3\xbc\x8c\x83\xe0\
\x96\x9b\x98\xc2\x4b\x15\x17\x09\x19\x84\x80\xae\x67\x79\x70\xc8\
\xb9\x82\x78\xd6\xad\xb5\xb0\xea\x52\x88\x88\x8d\x2d\x85\x7f\xc3\
\xab\x72\x69\xc8\xb9\x86\x7f\xc9\xa4\x85\x84\x8c\x39\xa2\x9d\xcb\
\x80\x76\x6d\xc5\xbc\x6f\x66\xc0\xbe\x71\x68\xc6\xb8\x6f\x66\xc3\
\xbc\x75\x6c\xc8\xb9\xb1\xab\xe5\x56\xbf\xc2\xac\x0d\x9b\x9c\x9a\
\x25\xab\xac\xaa\x31\x7f\x81\x7e\xbb\xb7\xb9\xb7\xf9\xd3\xd5\xd4\
\xff\x9d\x9f\x9d\xff\x9d\x9f\x9d\xff\x9f\xa1\x9e\xff\x98\x9a\x97\
\xff\xb6\xb8\xb7\xff\xd3\xd5\xd4\xfe\x97\x99\x97\xde\x72\x73\x71\
\xb8\x68\x68\x67\xf7\x65\x66\x65\xff\x5d\x5e\x5d\xfc\x5c\x5d\x5d\
\x94\x32\x22\xc8\x83\x2f\x1e\xd0\xfc\x2f\x1e\xd0\xff\x2f\x1e\xd0\
\xfc\x2f\x1e\xd0\x95\x2f\x1e\xcf\x50\x2f\x1e\xd0\xea\x2f\x1e\xd0\
\xff\x2f\x1e\xd1\xed\x3c\x31\xaf\x5e\x5d\x5e\x5a\xc8\x5c\x5d\x5c\
\xff\x5c\x5d\x5c\xff\x66\x67\x62\x8c\x8a\x81\xe4\x9d\x3c\x2c\xd3\
\xff\x48\x39\xd7\xff\xa7\xa1\xec\x71\x7d\x73\xe2\xb5\x37\x27\xd3\
\xff\x45\x36\xd6\xfc\xad\xa7\xed\xb7\x60\x53\xdc\xe6\x35\x24\xd2\
\xff\x52\x43\xd7\xf8\x65\x58\xdc\xeb\x48\x39\xd6\xfb\x37\x27\xd2\
\xff\x74\x69\xe0\xc4\xff\xff\xff\x1c\x88\x7e\xe5\xa2\x3a\x2a\xd3\
\xff\x39\x29\xd2\xff\x83\x7a\xe2\xa6\xc7\xc3\xf2\x49\x55\x47\xd9\
\xf1\x31\x20\xd1\xff\x59\x4b\xda\xf6\xc4\xbf\xf1\x45\x92\x8a\xe6\
\x7d\x42\x32\xd5\xff\x38\x28\xd3\xff\x5b\x4e\xda\xf3\x63\x56\xdc\
\xe5\x65\x58\xdc\xec\xa9\xa2\xee\x94\x8c\x8f\x87\x6d\x7a\x7c\x79\
\xe1\xb2\xb4\xb2\xb5\xba\xbb\xb9\x8d\xae\xae\xad\xb0\x9a\x9c\x99\
\xeb\xa2\xa4\xa2\xff\xd6\xd8\xd7\xff\xd8\xda\xd8\xff\xc5\xc7\xc5\
\xff\x91\x93\x91\xf7\xad\xaf\xad\xc8\xb0\xb1\xb0\x86\xbd\xbe\xbd\
\x9f\x94\x95\x93\xf7\x6f\x71\x6e\xff\x66\x67\x66\xff\x5c\x5d\x5a\
\xeb\x4c\x47\x85\x62\x2e\x1d\xd1\xd6\x2f\x1e\xd0\xff\x2f\x1e\xd0\
\xff\x2f\x1e\xd0\xe6\x2f\x1e\xd0\xab\x2f\x1e\xd0\xff\x2f\x1e\xd0\
\xff\x2e\x1c\xd2\xc8\x52\x4f\x78\x5b\x5c\x5d\x5b\xf5\x5c\x5d\x5c\
\xff\x5c\x5d\x5c\xfc\x62\x64\x5d\x6a\x86\x7c\xe7\x8b\x38\x28\xd2\
\xff\x44\x35\xd5\xfc\xa6\xa0\xea\x9b\x54\x46\xd8\xea\x2d\x1c\xd0\
\xff\x64\x58\xdb\xd9\xbc\xb7\xef\x80\x43\x34\xd5\xf6\x33\x22\xd1\
\xff\x89\x7f\xe3\xb3\xf5\xf3\xfc\x4a\x6e\x62\xdd\xda\x2c\x1b\xcf\
\xff\x56\x49\xd9\xe2\xde\xdb\xf6\x44\x68\x5c\xdc\xce\x2f\x1e\xd0\
\xff\x31\x20\xd0\xff\x68\x5c\xdc\xd1\xa8\xa1\xea\x92\x3d\x2d\xd3\
\xfd\x2e\x1d\xd0\xff\x3d\x2e\xd3\xff\xa0\x98\xe8\x78\x97\x90\xe6\
\x75\x3e\x2f\xd3\xff\x3c\x2d\xd3\xff\xa5\x9d\xe9\x9d\xec\xea\xf9\
\x37\xe1\xdf\xf7\x4d\xeb\xea\xfa\x49\x81\x83\x80\xab\x73\x76\x72\
\xff\xca\xcc\xcb\xff\xc7\xc9\xc8\xfc\x86\x88\x85\xec\xb0\xb1\xb0\
\xec\xad\xae\xad\xfe\xb0\xb1\xb0\xff\xb6\xb8\xb6\xff\xad\xae\xad\
\xff\xb4\xb5\xb4\xf4\xa0\xa2\xa0\xe2\x99\x9b\x99\xf4\xdc\xde\xdd\
\xff\x9c\x9e\x9c\xff\x65\x68\x64\xff\x6a\x6b\x6a\xff\x5b\x5c\x5b\
\xff\x5a\x59\x63\x7e\x2e\x1d\xd1\xb7\x2f\x1e\xd0\xff\x2f\x1e\xd0\
\xff\x2f\x1e\xd0\xfe\x2f\x1e\xd0\xca\x2f\x1e\xd0\xff\x2f\x1e\xd0\
\xff\x2e\x1c\xd2\xc2\x55\x53\x71\x61\x5c\x5d\x5c\xfc\x5c\x5d\x5c\
\xff\x5c\x5d\x5c\xff\x61\x63\x5d\x7a\x86\x7c\xe6\x8d\x39\x28\xd2\
\xff\x3a\x2a\xd2\xfe\x61\x55\xdb\xf1\x36\x25\xd1\xfe\x30\x1f\xd0\
\xff\x68\x5c\xdc\xe2\xb6\xb1\xee\x9d\x44\x35\xd5\xf8\x34\x24\xd1\
\xff\x86\x7d\xe3\xa1\xff\xff\xff\x22\x70\x64\xde\xd1\x2d\x1c\xcf\
\xff\x56\x48\xd8\xe3\xc9\xc6\xf2\x6e\x50\x42\xd7\xec\x2e\x1d\xd0\
\xff\x5d\x51\xda\xff\x65\x59\xdc\xf4\x8f\x86\xe5\xe6\x32\x21\xd1\
\xff\x40\x31\xd4\xff\x58\x4b\xd8\xff\x7d\x72\xe1\xa8\x9d\x96\xe8\
\x7c\x3e\x2f\xd3\xff\x35\x24\xd1\xff\x69\x5d\xdd\xe4\x71\x66\xde\
\xc7\x89\x80\xe4\xd1\xcb\xc8\xf1\x4e\x7a\x7c\x78\xb0\x73\x75\x72\
\xff\xcd\xcf\xcd\xff\xcc\xce\xcd\xff\x7f\x82\x7f\xff\xc8\xca\xc8\
\xff\xb1\xb3\xb1\xff\x7b\x7d\x7a\xff\x6f\x70\x6d\xff\x93\x95\x93\
\xff\xc9\xcb\xca\xfe\xa5\xa7\xa5\xff\x94\x96\x93\xff\xe2\xe4\xe4\
\xff\x94\x97\x93\xff\x66\x69\x65\xff\x68\x69\x67\xff\x5c\x5d\x5b\
\xff\x5a\x5a\x61\x80\x2f\x1d\xd0\xb6\x2f\x1e\xd0\xff\x2f\x1e\xd0\
\xff\x2f\x1e\xd0\xdf\x2f\x1e\xd0\xc2\x2f\x1e\xd0\xff\x2f\x1e\xd0\
\xff\x2e\x1d\xd1\xdf\x47\x3e\x94\x5f\x5d\x5e\x5b\xe3\x5c\x5d\x5c\
\xff\x5c\x5d\x5c\xff\x5f\x61\x5c\xb8\x80\x78\xd3\xa3\x39\x28\xd3\
\xff\x38\x28\xd2\xff\x5e\x50\xda\xcf\x5c\x4f\xda\xd7\x34\x24\xd1\
\xff\x3b\x2b\xd3\xfc\xa5\x9e\xea\xdc\x45\x36\xd5\xf7\x34\x24\xd1\
\xff\x87\x7e\xe3\xa1\xff\xff\xff\x22\x70\x64\xde\xd1\x2d\x1c\xcf\
\xff\x58\x4b\xd9\xe4\xac\xa6\xeb\x9b\x40\x31\xd4\xfc\x35\x25\xd1\
\xff\x90\x87\xe5\xdb\x61\x54\xdb\xf5\x53\x45\xd8\xff\x2c\x1b\xcf\
\xff\x5c\x4f\xda\xf2\x91\x88\xe5\xe7\x6b\x5f\xdd\xd3\xa7\xa1\xea\
\x96\x3d\x2e\xd3\xff\x34\x24\xd1\xff\x5c\x4f\xda\xdc\x59\x4b\xda\
\xb7\x7b\x70\xe1\xc5\xcb\xc8\xf4\x48\x7e\x80\x7c\x9d\x73\x75\x72\
\xff\xbf\xc1\xbf\xfd\xb5\xb7\xb5\xed\x7e\x7f\x7c\xd3\x94\x95\x93\
\xe6\x9b\x9d\x9b\xfd\xbb\xbd\xbb\xff\xc8\xca\xc9\xff\xa9\xaa\xa9\
\xff\x9d\x9f\x9d\xf2\x8a\x8b\x88\xcf\x95\x97\x95\xda\xc7\xc9\xc7\
\xf5\x9f\xa1\x9f\xfe\x62\x65\x61\xff\x6a\x6b\x6a\xff\x5c\x5d\x5a\
\xee\x4f\x4b\x7f\x63\x2e\x1d\xd1\xd1\x2f\x1e\xd0\xff\x2f\x1e\xd0\
\xfa\x2f\x1e\xd0\x88\x2f\x1e\xd0\x86\x2f\x1e\xd0\xfc\x2f\x1e\xd0\
\xff\x2f\x1e\xd0\xfe\x31\x21\xca\x8c\x5c\x5c\x5e\x9b\x5c\x5d\x5c\
\xff\x5c\x5d\x5c\xff\x5f\x60\x5c\xf6\x76\x70\xb1\xe7\x36\x26\xd4\
\xff\x43\x34\xd4\xff\xa2\x9b\xe9\x81\x9b\x93\xe8\x98\x3a\x2a\xd2\
\xff\x39\x29\xd2\xfd\xa6\x9f\xe9\xda\x45\x36\xd5\xf5\x31\x20\xd0\
\xff\x7f\x75\xe1\xb7\xd0\xcd\xf4\x50\x68\x5b\xdc\xdc\x2b\x1a\xcf\
\xff\x5d\x51\xda\xe6\x93\x8b\xe6\xce\x2f\x1e\xd0\xff\x42\x33\xd4\
\xfa\xb9\xb3\xee\x8a\x65\x58\xdc\xd8\x2e\x1d\xd0\xff\x2f\x1d\xd0\
\xff\x6a\x5e\xdd\xc9\xa1\x99\xe9\x8e\x61\x54\xdb\xef\x9c\x95\xe7\
\xb5\x3c\x2c\xd3\xfe\x3b\x2b\xd2\xff\x9d\x95\xe8\xa1\xcc\xc7\xf3\
\x3f\xc8\xc4\xf2\x52\xe9\xe7\xfe\x3d\x87\x89\x85\x4d\x75\x76\x73\
\xb2\x99\x9b\x99\x80\x9d\x9e\x9c\x7e\xac\xae\xac\xc0\xa1\xa3\xa1\
\xf5\x9b\x9d\x9b\xff\xcb\xcd\xcc\xff\xcf\xd1\xd0\xff\xb8\xba\xb9\
\xff\x90\x93\x90\xfc\xaf\xb1\xaf\xdc\xa6\xa8\xa6\x8d\xa1\xa2\xa0\
\x71\x81\x82\x80\xdc\x6d\x6e\x6c\xff\x63\x64\x63\xfe\x5c\x5d\x5b\
\x9b\x33\x24\xc6\x7a\x2f\x1e\xd0\xfa\x2f\x1e\xd0\xff\x2f\x1e\xd0\
\xb4\x2f\x1e\xcf\x1d\x30\x1e\xd0\x26\x2f\x1e\xd0\xc6\x2f\x1e\xd0\
\xff\x2f\x1e\xd0\xff\x2f\x1d\xd1\xe6\x3d\x32\xab\x74\x5c\x5d\x5b\
\xbd\x5c\x5d\x5b\xfe\x63\x65\x61\xff\x80\x7b\xb7\xff\x46\x36\xd9\
\xff\x42\x33\xd6\xff\x54\x46\xd9\xf2\x53\x45\xd8\xf6\x41\x31\xd4\
\xff\x54\x46\xd8\xf2\xb6\xb0\xee\x89\x65\x59\xdc\xd6\x40\x31\xd4\
\xff\x4f\x41\xd7\xfa\x58\x4b\xd9\xf1\x4a\x3b\xd6\xfd\x42\x33\xd4\
\xfe\x8c\x83\xe4\xd6\x84\x7b\xe2\xea\x3d\x2d\xd3\xff\x5b\x4d\xda\
\xee\xcd\xc8\xf2\x47\x85\x7a\xe3\xb0\x42\x33\xd4\xff\x43\x34\xd4\
\xff\x8f\x86\xe5\x9d\xbe\xb9\xef\x56\x6b\x5f\xdd\xf7\x99\x91\xe7\
\xef\x4b\x3c\xd6\xff\x41\x31\xd4\xff\x54\x46\xd8\xf7\x55\x47\xd9\
\xec\x65\x58\xdc\xf1\xb4\xae\xed\x79\xff\xff\xff\x03\xff\xff\xff\
\x09\xa1\xa2\xa0\x30\x72\x75\x71\xd8\xae\xb0\xae\xff\xd9\xdb\xda\
\xff\xa8\xaa\xa8\xff\x9b\x9d\x9b\xff\x99\x9b\x98\xff\x9c\x9e\x9c\
\xff\xc1\xc3\xc1\xff\xd3\xd5\xd3\xff\x88\x8a\x88\xf6\x70\x72\x70\
\xc8\x63\x64\x63\xef\x62\x63\x61\xfe\x5c\x5d\x5b\xb3\x3d\x32\xab\
\x67\x2f\x1e\xd1\xde\x2f\x1e\xd0\xff\x2f\x1e\xd0\xbe\x2f\x1f\xd1\
\x2b\x32\x20\xce\x00\x31\x19\xcb\x00\x2f\x1e\xd0\x3e\x2f\x1e\xd0\
\xd3\x2f\x1e\xd0\xff\x2f\x1e\xd0\xff\x2f\x1d\xd1\xda\x3e\x31\xac\
\x78\x5b\x5b\x5d\xad\x65\x66\x63\xf8\x83\x82\x95\xff\x76\x73\x9e\
\xff\x77\x73\xa4\xe8\x83\x7d\xca\x97\x8e\x85\xe8\x76\x91\x89\xe8\
\x76\xaa\xa3\xeb\x59\xea\xe9\xfa\x0f\xbb\xb6\xee\x3c\x97\x8f\xe7\
\x74\x8d\x85\xe6\x78\x8c\x84\xe5\x79\x8e\x86\xe5\x78\x9d\x95\xe8\
\x6a\xda\xd8\xf6\x48\xa8\xa2\xeb\x72\x8e\x85\xe6\x79\xa2\x9b\xea\
\x71\xe1\xdf\xf8\x1e\xbb\xb6\xef\x42\x94\x8c\xe7\x7a\x94\x8d\xe7\
\x78\xc4\xc0\xf1\x3b\xe0\xde\xf7\x27\xa5\x9f\xeb\x76\xb1\xac\xec\
\x78\x93\x8c\xe7\x78\x8f\x87\xe6\x78\x8d\x84\xe5\x78\x8c\x83\xe5\
\x79\x99\x91\xe8\x79\xc8\xc5\xf2\x2e\xa5\x9f\xea\x00\xa4\xa5\xa4\
\x00\xaf\xb0\xaf\x17\x75\x77\x74\xbb\x73\x75\x72\xff\xac\xad\xac\
\xff\xcf\xd0\xcf\xff\xd1\xd3\xd2\xff\xbe\xc0\xbe\xff\xda\xdc\xdb\
\xff\xc4\xc6\xc5\xff\x94\x96\x94\xff\x68\x6b\x67\xff\x6d\x6f\x6d\
\xff\x5e\x5f\x5d\xf1\x5a\x5b\x5c\x9b\x3b\x2f\xb1\x70\x2e\x1d\xd1\
\xda\x2f\x1e\xd0\xf1\x2f\x1e\xd0\x95\x30\x1f\xd0\x20\x29\x1a\xd0\
\x00\x3e\x29\xcc\x00\x33\x1c\xd7\x00\x00\x5a\x00\x00\x30\x1d\xd0\
\x38\x2f\x1e\xd0\xbe\x2f\x1e\xd0\xfc\x2f\x1e\xd0\xff\x2f\x1d\xd1\
\xe7\x35\x26\xc1\x8e\x54\x53\x6e\x8c\x5c\x5d\x58\xd8\x5c\x5e\x59\
\xfe\x5c\x5d\x5a\xfb\x5c\x5d\x59\xc1\x5c\x5d\x56\x57\x5b\x5f\x46\
\x10\x5d\x5c\x5e\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xf0\xef\xf0\
\x00\x02\x06\x00\x00\x9e\xa0\x9e\x33\x6e\x70\x6c\xb7\x66\x68\x65\
\xf8\x8c\x8e\x8b\xff\x9c\x9e\x9b\xff\x9b\x9d\x9b\xff\x98\x9a\x97\
\xff\x7e\x81\x7e\xff\x60\x62\x5f\xff\x72\x73\x70\xf8\x64\x65\x62\
\xc4\x51\x4e\x76\x76\x32\x22\xc8\x8b\x2e\x1e\xd1\xde\x2f\x1e\xd0\
\xbe\x2f\x1e\xd0\x53\x31\x1e\xd3\x09\x32\x1f\xd1\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x3a\x1c\xd3\x00\x2c\x20\xce\
\x00\x30\x1f\xd0\x1c\x2f\x1e\xcf\x7e\x2f\x1e\xd0\xdf\x2f\x1e\xd0\
\xff\x2f\x1e\xd0\xf9\x30\x1e\xcf\xc1\x3e\x32\xaa\x86\x56\x55\x6a\
\x98\x5c\x5d\x5b\xd5\x5c\x5d\x5b\xfa\x5c\x5d\x5c\xf8\x5c\x5d\x5c\
\xc0\x5c\x5d\x5c\x6a\x5d\x5d\x5d\x25\x5b\x5b\x5b\x05\x5c\x5c\x5c\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\xff\xff\xff\x00\x00\x00\x00\x00\xb5\xb6\xb4\x13\x86\x88\x85\
\x71\x72\x74\x71\xc6\x68\x6b\x66\xd5\x69\x6b\x68\xe2\x68\x6b\x67\
\xfe\x72\x74\x6f\xec\x6f\x70\x6f\xba\x58\x55\x7b\x7e\x37\x2a\xb7\
\x7a\x2f\x1d\xd1\xac\x2f\x1d\xd0\xa8\x2f\x1f\xd0\x59\x2f\x21\xd1\
\x13\x09\x21\xbb\x00\x44\x1e\xd8\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x31\x1c\xcc\x00\x31\x1c\xcc\x02\x2e\x1d\xd0\x30\x2f\x1e\xd0\
\x8c\x2f\x1e\xd0\xda\x2f\x1e\xd0\xfd\x2f\x1d\xd1\xf6\x2f\x1e\xcf\
\xc0\x3a\x2d\xb3\x8a\x50\x4c\x7a\x8c\x5b\x5c\x5e\xb7\x5d\x5e\x5b\
\xe5\x5c\x5e\x5b\xf7\x5c\x5d\x5c\xdd\x5c\x5d\x5c\xa0\x5d\x5e\x5c\
\x59\x5c\x5d\x5c\x28\x61\x61\x61\x08\x5b\x5f\x5c\x01\x5c\x5e\x5c\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x28\x27\x2a\x00\xff\xff\xff\x00\x7c\x7c\x7d\
\x08\x82\x83\x81\x39\x79\x7a\x77\x79\x6e\x6e\x6f\x9d\x73\x73\x7e\
\x92\x56\x50\x95\x6a\x35\x27\xc0\x69\x2e\x1d\xd2\x80\x2e\x1d\xd1\
\x72\x2f\x1e\xcf\x37\x32\x1e\xcf\x09\x2d\x1e\xce\x00\x34\x1e\xd0\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x31\x1d\xce\x00\x32\x1c\xce\
\x03\x30\x1f\xcf\x27\x2f\x1e\xd0\x6b\x2f\x1e\xd0\xb4\x2f\x1e\xd0\
\xe6\x2f\x1e\xd1\xf7\x2e\x1d\xd1\xd9\x32\x22\xc9\xac\x3f\x34\xa8\
\x8d\x4e\x4a\x7f\x90\x59\x59\x63\xad\x5c\x5d\x5c\xcc\x5d\x5e\x5a\
\xdf\x5d\x5e\x5b\xd6\x5d\x5e\x5b\xb2\x5c\x5e\x5b\x87\x5c\x5d\x5b\
\x55\x5c\x5e\x5c\x37\x5d\x5d\x5c\x1c\x5d\x5e\x5d\x08\x5d\x5d\x5d\
\x03\x5c\x56\x5b\x00\x5c\x59\x5c\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x60\x60\x60\x00\x5a\x5c\x5a\x00\x5d\x5f\x5d\x00\x67\x79\x67\
\x00\x60\x62\x60\x07\x5e\x5f\x5d\x15\x5d\x5d\x5d\x29\x5c\x5e\x5c\
\x49\x58\x58\x61\x4e\x50\x4d\x72\x49\x3f\x33\xa4\x3e\x2d\x1c\xca\
\x40\x2d\x19\xd5\x3d\x2f\x1c\xd2\x2f\x30\x1f\xd0\x0f\x34\x22\xd5\
\x01\x32\x21\xd4\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x29\x26\xd3\x00\x36\x11\xcb\x00\x2e\x1f\xd0\x0a\x2f\x1e\xd0\
\x2d\x2f\x1e\xd0\x64\x2f\x1e\xd0\x9f\x2f\x1e\xd0\xcd\x2e\x1d\xd1\
\xe3\x2f\x1d\xd1\xd9\x30\x1f\xce\xc0\x35\x27\xc1\xa0\x3e\x33\xa9\
\x90\x4b\x44\x89\x91\x55\x52\x70\x9f\x58\x58\x65\xaf\x5b\x5b\x5f\
\xbc\x5c\x5d\x5c\xc0\x5c\x5e\x5a\xb8\x5c\x5e\x59\xa6\x5d\x5e\x59\
\x8a\x5d\x5f\x59\x72\x5d\x5f\x58\x60\x5d\x5f\x58\x51\x5e\x5f\x58\
\x45\x5e\x60\x58\x39\x5f\x61\x57\x2e\x60\x62\x56\x26\x5f\x61\x56\
\x21\x5e\x60\x5a\x1f\x5d\x5f\x5c\x1f\x5c\x5f\x5d\x1e\x5d\x5e\x5d\
\x1f\x5d\x5e\x5d\x1f\x5d\x5e\x5d\x18\x5f\x60\x5f\x0c\x5a\x64\x5a\
\x05\x60\x64\x60\x0c\x5e\x5f\x5d\x12\x5e\x5e\x5d\x11\x58\x5b\x5e\
\x06\x2b\x1d\xd5\x04\x26\x0d\xf3\x09\x2d\x18\xdf\x0a\x31\x1d\xd4\
\x03\x30\x1d\xcb\x00\x30\x1c\xce\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x35\x22\xce\x00\x32\x21\xd0\x03\x2f\x1e\xcf\x18\x2f\x1e\xd0\
\x34\x2f\x1e\xd0\x58\x2f\x1e\xd0\x86\x2e\x1d\xd1\xa2\x2e\x1d\xd2\
\xb0\x2f\x1d\xd2\xb6\x2f\x1d\xd0\xb6\x2f\x1e\xce\xb0\x33\x24\xc5\
\xa2\x39\x2c\xb7\x97\x3e\x33\xa9\x92\x42\x38\x9f\x92\x44\x3d\x97\
\x91\x48\x41\x90\x92\x4b\x44\x88\x97\x4d\x48\x83\x9b\x4e\x49\x81\
\x98\x4e\x49\x81\x91\x4e\x49\x84\x89\x4c\x46\x87\x81\x4c\x47\x87\
\x70\x4f\x4b\x81\x55\x53\x50\x79\x39\x59\x57\x6c\x28\x5e\x5d\x5f\
\x1d\x5d\x5f\x5d\x17\x5c\x5d\x5c\x10\x5e\x5e\x5e\x05\x33\x37\x33\
\x00\x5a\x66\x5a\x00\x78\x72\x78\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x2f\x19\xce\x00\x1d\x00\xcc\x00\x33\x1e\xcd\x04\x30\x1f\xd0\
\x0d\x30\x1e\xd0\x1a\x2f\x1d\xcf\x28\x2f\x1e\xd0\x36\x2e\x1d\xd2\
\x42\x2e\x1d\xd3\x4c\x2e\x1b\xd3\x51\x2d\x1b\xd4\x4f\x2c\x1c\xd5\
\x4b\x2c\x1c\xd5\x47\x2d\x1b\xd5\x44\x2d\x1b\xd5\x40\x2d\x1b\xd4\
\x3a\x2f\x1b\xd4\x32\x2e\x1d\xd4\x28\x2e\x1b\xd4\x1e\x2e\x1c\xd4\
\x15\x2e\x1c\xd9\x0c\x28\x11\xee\x04\x26\x00\xff\x01\x33\x05\xff\
\x00\x00\x00\xff\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\
\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\
\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\
\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\
\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\
\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\
\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\
\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\
\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\
\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\
\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\
\xf0\x00\x03\xff\xff\xff\xff\xfc\x00\x00\x00\x1f\xff\xff\xfc\x00\
\x00\x00\x00\x01\xff\xff\xc0\x00\x1f\xc0\x00\x00\x3f\xfe\x00\x1f\
\xff\xff\x80\x00\x0f\xf8\x00\xff\xff\xff\xf8\x00\x07\xe0\x00\x12\
\x00\x00\xf0\x00\x03\xc0\x00\x00\x00\x00\x60\x00\x01\x80\x00\x00\
\x00\x00\x60\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x80\x00\x00\
\x00\x00\x60\x00\x03\xc0\x01\xff\xff\xff\xf0\x00\x07\xe0\x00\x3f\
\xff\xff\xf8\x00\x1f\xf0\x00\x03\xff\xff\xfc\x00\x7f\xfc\x00\x00\
\x1f\xff\xe0\x01\xff\xff\x80\x00\x00\x00\x00\x1f\xff\xff\xf0\x00\
\x00\x00\x3f\xff\xff\xff\xff\x80\x00\x03\xff\xff\xff\xff\xff\xff\
\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\
\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\
\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\
\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\
\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\
\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\
\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\
\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\
\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\
\xff\xff\xff\xff\xff\x28\x00\x00\x00\x80\x00\x00\x00\x00\x01\x00\
\x00\x01\x00\x20\x00\x00\x00\x00\x00\x00\x00\x01\x00\xc2\x0e\x00\
\x00\xc2\x0e\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x2b\x40\xcf\x00\x27\x52\xcc\
\x00\x30\x2b\xd1\x03\x34\x1b\xd2\x0b\x32\x20\xd0\x12\x32\x1e\xd0\
\x19\x31\x1f\xd1\x1f\x32\x1d\xd0\x28\x32\x1d\xd1\x31\x31\x1e\xd1\
\x3a\x2f\x1e\xd1\x41\x2f\x1e\xd0\x48\x2f\x1d\xd0\x4f\x30\x1e\xd1\
\x55\x2e\x1d\xd1\x5a\x2e\x1e\xd0\x5f\x2f\x1e\xd0\x62\x2f\x1d\xd0\
\x63\x2f\x1d\xcf\x64\x2f\x1d\xd0\x62\x2e\x1e\xd0\x60\x2f\x1d\xcf\
\x5e\x2f\x1d\xcf\x59\x30\x1d\xd0\x55\x2f\x1d\xd0\x4f\x2f\x1e\xcf\
\x49\x2f\x1e\xd1\x41\x30\x1d\xd1\x39\x30\x1d\xd0\x30\x30\x1f\xcf\
\x26\x2f\x20\xcf\x1c\x2f\x20\xcf\x15\x2d\x1f\xd1\x0e\x2c\x1e\xd4\
\x08\x1b\x12\xb4\x01\x00\x00\x32\x00\x00\x00\x83\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xff\x00\x1e\x13\xf0\
\x00\x39\x23\xe2\x09\x2b\x19\xdc\x14\x2e\x18\xde\x1c\x2d\x19\xdb\
\x24\x2c\x1d\xdc\x2a\x2d\x19\xde\x2e\x2e\x19\xdf\x32\x2f\x18\xdd\
\x37\x2e\x19\xdd\x3c\x2e\x18\xda\x46\x2e\x19\xd9\x52\x2e\x1a\xd8\
\x5e\x2d\x1b\xd7\x69\x2c\x1b\xd6\x72\x2d\x1b\xd5\x7d\x2e\x1b\xd6\
\x86\x2d\x1b\xd5\x8e\x2d\x1c\xd4\x97\x2e\x1c\xd3\x9f\x2e\x1c\xd2\
\xa9\x2f\x1d\xd2\xb3\x2f\x1d\xd2\xba\x2f\x1d\xd1\xc4\x2f\x1d\xd0\
\xcd\x30\x1d\xd0\xd4\x2f\x1d\xd0\xdd\x2f\x1e\xd0\xe0\x2e\x1e\xd0\
\xdc\x2f\x1e\xd0\xd5\x2f\x1e\xd0\xcd\x2f\x1e\xd0\xc4\x2f\x1e\xd0\
\xb7\x2f\x1e\xcf\xa6\x2f\x1e\xd0\x97\x2f\x1e\xd0\x8a\x2e\x1e\xd0\
\x7c\x2e\x1e\xcf\x6f\x2f\x1d\xce\x5f\x2f\x1e\xcf\x4a\x31\x1e\xd0\
\x34\x31\x1e\xcf\x1d\x33\x21\xd3\x0c\x27\x14\xd7\x04\x27\x15\xd7\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x5d\x5d\x5d\
\x00\x5d\x5d\x5d\x01\x5c\x5a\x5c\x03\x5a\x58\x5b\x04\x4e\x4d\x88\
\x08\x4f\x43\x95\x1d\x47\x3f\x95\x36\x49\x41\x94\x4c\x49\x3f\x95\
\x5e\x49\x44\x8f\x66\x4d\x49\x85\x66\x51\x4d\x7e\x66\x54\x4f\x77\
\x67\x55\x51\x72\x66\x56\x54\x6e\x65\x56\x55\x6b\x66\x56\x55\x69\
\x66\x57\x56\x68\x64\x57\x56\x67\x62\x58\x57\x68\x5e\x57\x57\x69\
\x58\x57\x55\x6a\x53\x55\x56\x6c\x4c\x53\x52\x73\x46\x50\x4b\x83\
\x43\x4a\x41\x94\x42\x43\x38\xa4\x42\x3b\x2c\xb5\x44\x34\x23\xcb\
\x45\x2f\x1c\xd0\x4f\x2e\x1d\xd1\x5f\x2f\x1d\xd3\x6c\x2e\x1c\xd4\
\x77\x2d\x1c\xd4\x83\x2d\x1c\xd3\x91\x2e\x1d\xd2\xa2\x2f\x1d\xd1\
\xb8\x2f\x1e\xd0\xd2\x2f\x1d\xd0\xec\x2f\x1d\xcf\xfd\x2e\x1e\xd0\
\xff\x2e\x1e\xd0\xfd\x2f\x1e\xd0\xf7\x2f\x1e\xd0\xe0\x30\x1e\xd0\
\xc4\x2f\x1e\xd0\xa8\x2f\x1e\xd0\x91\x2e\x1d\xd0\x7d\x30\x1d\xd0\
\x69\x30\x1d\xd1\x51\x31\x1e\xd1\x31\x37\x22\xd4\x10\xff\xff\xff\
\x00\x44\x4d\xff\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x73\x73\x73\x00\x78\x78\x78\x02\x67\x67\x67\
\x0b\x5f\x5f\x5f\x16\x5e\x60\x5e\x21\x5c\x5e\x5c\x28\x5e\x5d\x5e\
\x2c\x60\x60\x60\x2f\x5d\x5f\x5d\x33\x5c\x5e\x5c\x36\x5c\x5c\x5f\
\x3c\x5e\x5b\x5c\x43\x5c\x60\x59\x4b\x5d\x5f\x59\x55\x60\x5f\x5b\
\x5b\x5e\x5f\x59\x62\x5d\x5f\x59\x6c\x5e\x5f\x5b\x75\x5d\x5e\x5a\
\x7c\x5c\x5d\x5a\x82\x5d\x5e\x5b\x88\x5d\x5e\x5c\x92\x5c\x5d\x5b\
\x9e\x5c\x5d\x5b\xa8\x5c\x5d\x5b\xb0\x5d\x5e\x5c\xb8\x5c\x5e\x5b\
\xc0\x5c\x5d\x5b\xc9\x5c\x5d\x5b\xd1\x5b\x5d\x5a\xcc\x5c\x5d\x5b\
\xc1\x5d\x5e\x5b\xb7\x5d\x5e\x5a\xad\x5d\x5e\x59\xa2\x5d\x5f\x59\
\x94\x5d\x5e\x56\x86\x5e\x60\x56\x79\x5f\x60\x57\x6d\x5d\x5d\x5c\
\x66\x5a\x5a\x65\x5d\x55\x53\x71\x50\x4e\x49\x83\x42\x41\x35\xac\
\x39\x31\x1e\xd5\x3c\x2c\x19\xd9\x51\x2c\x1a\xd4\x6b\x2d\x1c\xd4\
\x81\x2d\x1d\xd3\x97\x2f\x1e\xd1\xb3\x2f\x1e\xd0\xd9\x2f\x1e\xcf\
\xfb\x2f\x1e\xcf\xff\x2f\x1e\xcf\xff\x2f\x1e\xd0\xfd\x2f\x1e\xd0\
\xf1\x2f\x1e\xd0\xde\x2f\x1e\xd0\xc1\x30\x1e\xd0\xa1\x2f\x1e\xcf\
\x83\x2f\x1e\xd0\x67\x30\x1e\xd0\x45\x33\x1f\xce\x1b\x37\x20\xc7\
\x03\x35\x20\xca\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x33\x27\xd9\x00\x33\x27\xd9\x08\x32\x1f\xcf\
\x0f\x35\x1c\xda\x08\x39\x1b\xea\x01\x38\x1b\xe4\x00\x00\x00\x00\
\x00\x61\x61\x61\x00\x61\x61\x61\x04\x60\x60\x60\x1a\x5d\x5d\x5d\
\x1d\x5d\x5d\x5d\x12\x66\x66\x66\x08\x7e\x7e\x7e\x03\x69\x69\x69\
\x09\x5f\x5f\x5f\x11\x5e\x60\x5e\x19\x5d\x5f\x5d\x1e\x5d\x5d\x5d\
\x20\x5f\x5f\x5f\x21\x5d\x5f\x5d\x22\x5c\x5f\x5c\x23\x5c\x5c\x5c\
\x25\x5e\x5b\x5b\x24\x5a\x5f\x5a\x22\x5c\x5c\x5c\x20\x5e\x5e\x5e\
\x1f\x5d\x5d\x5d\x1e\x5b\x5e\x5b\x1e\x5d\x5d\x5e\x1e\x5d\x5e\x5d\
\x1f\x5c\x5e\x5a\x21\x5d\x5d\x5b\x23\x5d\x5d\x5d\x28\x5d\x5e\x5d\
\x2f\x5c\x5e\x5c\x37\x5c\x5d\x5c\x3f\x5d\x5e\x5c\x46\x5c\x5d\x5c\
\x50\x5b\x5c\x5b\x5b\x5d\x5d\x5d\x67\x5c\x5d\x5c\x76\x5c\x5d\x5c\
\x88\x5d\x5d\x5d\x9b\x5b\x5d\x5b\xb0\x5c\x5d\x5c\xc3\x5c\x5d\x5c\
\xd8\x5c\x5d\x5c\xe9\x5c\x5d\x5c\xf6\x5c\x5c\x5b\xf8\x5c\x5d\x5c\
\xee\x5c\x5e\x5c\xe2\x5d\x5d\x5c\xd2\x5d\x5e\x5b\xbf\x5d\x5f\x5a\
\xab\x5f\x5f\x58\x95\x5f\x61\x56\x7a\x5e\x60\x58\x61\x57\x56\x66\
\x50\x4d\x48\x82\x42\x3e\x32\xad\x39\x2d\x1a\xd8\x3d\x2b\x1a\xd5\
\x59\x2f\x1d\xd2\x7c\x2f\x1e\xd0\xa2\x2f\x1e\xd0\xca\x2f\x1e\xd0\
\xef\x2f\x1e\xd0\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\
\xfa\x2f\x1e\xd0\xeb\x2f\x1e\xd0\xd3\x2f\x1e\xd0\xb4\x2f\x1d\xd1\
\x8f\x2f\x1d\xd0\x63\x2f\x1d\xcf\x36\x2e\x21\xd0\x0c\x2b\x2e\xd3\
\x00\x2d\x27\xd1\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x32\x1c\xcc\x00\x32\x1d\xcc\x05\x30\x1c\xcd\x18\x31\x1e\xcf\
\x2a\x31\x1f\xd1\x3b\x31\x1d\xd2\x3e\x2f\x1d\xd4\x25\x21\x0f\xec\
\x0c\x0d\x02\xfa\x02\x59\x62\x5b\x0f\x5e\x5e\x5a\x28\x5d\x5f\x5d\
\x43\x5c\x5e\x5c\x53\x5d\x5f\x5d\x4d\x61\x61\x61\x2a\x5e\x5e\x5e\
\x14\x5c\x5c\x5c\x0c\x67\x67\x67\x05\x86\x86\x86\x01\x8a\x8a\x8a\
\x00\x88\x88\x88\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\xb4\xa6\xb4\x00\x8d\x85\x8d\x01\x62\x61\x62\
\x0a\x5f\x5b\x5f\x15\x59\x5e\x59\x21\x5c\x5d\x5c\x2d\x5c\x5d\x5c\
\x3b\x5d\x5d\x5d\x4b\x5c\x5c\x5c\x5d\x5b\x5c\x5b\x78\x5c\x5d\x5c\
\x9d\x5c\x5d\x5c\xc5\x5c\x5d\x5c\xe3\x5c\x5d\x5c\xf8\x5c\x5d\x5c\
\xff\x5c\x5d\x5c\xff\x5c\x5d\x5c\xf7\x5c\x5d\x5c\xe7\x5c\x5d\x5b\
\xd5\x5c\x5d\x5b\xc1\x5c\x5d\x59\xad\x5e\x5f\x57\x8e\x5e\x60\x57\
\x60\x57\x55\x6a\x3f\x46\x3c\x9b\x37\x34\x23\xc6\x3a\x2c\x1b\xd5\
\x4e\x30\x1d\xd2\x7a\x2f\x1e\xd1\xb5\x2f\x1e\xd0\xe2\x2f\x1e\xd0\
\xf9\x2f\x1e\xd0\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\
\xfc\x2f\x1e\xd0\xe6\x2e\x1e\xcf\xc9\x2f\x1e\xcf\xa9\x2f\x1e\xcf\
\x75\x2e\x1f\xd0\x34\x31\x1d\xd8\x0c\x32\x1c\xdb\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x37\x19\xc6\x00\x3b\x18\xc3\x02\x32\x1a\xcc\x0e\x2f\x1d\xd0\
\x2e\x2f\x1e\xd0\x65\x2e\x1e\xd0\x80\x2f\x1f\xcf\x64\x2f\x1f\xd1\
\x36\x2f\x1d\xd8\x25\x3a\x26\xbf\x26\x4c\x44\x85\x2a\x5a\x5a\x5f\
\x51\x5c\x5d\x5c\x81\x5c\x5e\x5c\x8b\x5d\x5d\x5c\x61\x5d\x5e\x5d\
\x3c\x5c\x5e\x5c\x30\x5c\x5f\x5c\x23\x62\x62\x62\x0b\x7e\x7e\x7e\
\x00\x22\x22\x22\x00\x27\x27\x27\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x5b\x59\x5b\x00\x58\x53\x58\x00\x5d\x5c\x5d\x08\x5d\x5d\x5d\
\x19\x5c\x5d\x5c\x2d\x5c\x5d\x5c\x41\x5c\x5d\x5c\x55\x5c\x5e\x5c\
\x71\x5d\x5e\x5d\xa0\x5c\x5d\x5c\xd9\x5c\x5d\x5c\xf4\x5c\x5d\x5c\
\xfe\x5c\x5d\x5c\xff\x5c\x5d\x5c\xff\x5c\x5d\x5c\xfb\x5c\x5d\x5c\
\xe6\x5c\x5d\x5b\xce\x5d\x5e\x5a\xb5\x5d\x5d\x59\x97\x5e\x5e\x5a\
\x65\x55\x54\x72\x36\x39\x2c\xb7\x31\x2f\x1e\xcf\x44\x2f\x1e\xd1\
\x68\x2f\x1e\xd0\xad\x2f\x1e\xd0\xe7\x2f\x1e\xd0\xfc\x2f\x1e\xd0\
\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\
\xed\x2e\x1e\xcf\xcc\x2f\x1e\xd0\xa5\x30\x1e\xce\x65\x32\x1e\xd2\
\x1c\x2d\x11\xd1\x03\x2d\x11\xd1\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x4f\x5e\xaf\x00\x5d\x7a\xa0\x00\x43\x46\xbc\x02\x31\x24\xcd\
\x15\x2f\x1e\xcf\x52\x30\x1c\xcf\x8f\x2f\x1d\xd0\xa8\x2f\x1e\xd1\
\x8f\x2f\x1e\xd1\x58\x2f\x1f\xcf\x3b\x33\x25\xc1\x23\x52\x4f\x76\
\x34\x5c\x5b\x5e\x73\x5d\x5c\x5b\xa1\x5d\x5e\x5b\xb4\x5c\x5e\x5c\
\x8d\x5d\x5e\x5d\x5c\x5d\x5e\x5d\x38\x5d\x5d\x5d\x1c\x5e\x5d\x5e\
\x08\x5d\x56\x5d\x01\x5c\x4d\x5c\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x0d\x00\x0d\x00\xbf\xcd\xbf\x00\x62\x61\x62\x02\x5d\x62\x5d\
\x09\x5e\x5f\x5e\x1a\x5c\x5d\x5c\x31\x5d\x5d\x5d\x4d\x5c\x5e\x5c\
\x6e\x5b\x5d\x5b\xa4\x5b\x5d\x5b\xe3\x5c\x5d\x5c\xfb\x5c\x5d\x5c\
\xff\x5c\x5d\x5c\xff\x5c\x5d\x5c\xff\x5c\x5d\x5c\xf9\x5c\x5d\x5c\
\xe8\x5c\x5e\x5b\xcd\x5d\x5e\x5a\xad\x5c\x5d\x5b\x82\x57\x57\x69\
\x45\x3c\x2d\xb3\x2a\x2f\x1e\xd0\x42\x2f\x1e\xd0\x70\x2f\x1e\xd0\
\xbe\x2f\x1d\xcf\xf4\x2f\x1e\xd0\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\
\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\xfb\x2f\x1e\xd0\xe6\x2f\x1d\xd0\
\xc2\x2f\x1e\xcf\x8d\x30\x20\xce\x3a\x2d\x3e\xd1\x03\x2e\x33\xd0\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x33\x19\xcc\x00\x33\x19\xcc\x00\x2f\x1f\xcb\x00\x20\x15\x95\
\x02\x2c\x1f\xd2\x16\x30\x1e\xd0\x58\x2e\x1e\xd0\x98\x2f\x1e\xd0\
\xc7\x2e\x1e\xcf\xc5\x2f\x1e\xcf\x84\x2e\x1f\xcf\x49\x32\x26\xc5\
\x26\x54\x50\x77\x35\x5e\x5e\x5d\x74\x5d\x5e\x5b\xac\x5c\x5d\x5c\
\xd3\x5d\x5d\x5c\xc4\x5d\x5c\x5d\x7f\x5d\x5d\x5d\x43\x5c\x5e\x5c\
\x1e\x5f\x60\x5f\x0a\x64\x62\x64\x01\x62\x61\x62\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x63\x61\x63\x00\x63\x61\x63\x02\x5c\x61\x5c\
\x0a\x5b\x5d\x5b\x19\x5d\x5f\x5d\x30\x5c\x5d\x5c\x58\x5e\x5e\x5e\
\x8f\x5d\x5d\x5c\xd3\x5c\x5d\x5c\xfb\x5c\x5d\x5c\xff\x5c\x5d\x5c\
\xff\x5c\x5d\x5c\xff\x5c\x5d\x5c\xfd\x5c\x5d\x5c\xf1\x5c\x5d\x5b\
\xdc\x5c\x5e\x5a\xb5\x5b\x5d\x5b\x7f\x56\x55\x72\x3d\x3b\x2c\xc1\
\x27\x30\x1d\xd0\x4f\x2f\x1e\xcf\x9a\x2f\x1e\xcf\xe9\x2f\x1e\xd0\
\xfe\x2f\x1e\xd0\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\
\xfe\x2f\x1e\xd0\xf4\x2f\x1e\xd0\xd8\x2e\x1d\xd0\x9e\x2d\x1e\xd1\
\x44\x30\x37\xce\x05\x1e\xbb\xcb\x00\x29\x1c\xd5\x00\x2d\x1e\xd2\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\xff\x00\xff\xd2\x00\x00\x2e\x1b\xd0\
\x00\x2f\x1e\xcf\x02\x31\x1b\xce\x0b\x30\x1f\xd1\x3d\x2f\x1d\xcf\
\x8b\x2f\x1d\xcf\xcf\x2f\x1e\xd0\xe4\x2f\x1d\xd0\xcd\x30\x1e\xd0\
\x7e\x33\x23\xcb\x30\x47\x40\x92\x25\x5a\x5b\x60\x53\x5d\x5e\x5b\
\x9d\x5c\x5d\x5b\xda\x5c\x5d\x5c\xea\x5c\x5d\x5c\xcd\x5d\x5d\x5d\
\x7a\x5d\x5e\x5d\x2e\x5e\x5c\x5e\x0e\x5f\x5a\x5f\x02\x5f\x5b\x5f\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x5c\x5b\x5c\x00\x5c\x5b\x5c\x00\x5d\x5c\x5d\x06\x5f\x5e\x5e\
\x11\x5d\x5d\x5c\x24\x60\x60\x60\x52\x5e\x5f\x5e\xa0\x5d\x5e\x5d\
\xe2\x5c\x5d\x5c\xfe\x5d\x5e\x5d\xff\x5d\x5e\x5d\xff\x5d\x5e\x5d\
\xff\x5d\x5e\x5d\xfc\x5d\x5e\x5d\xf1\x5d\x5e\x5c\xe0\x5d\x5e\x5b\
\xa9\x59\x5a\x60\x5b\x44\x3d\x94\x27\x33\x21\xc8\x3a\x31\x1e\xcf\
\x8d\x30\x1e\xd1\xdf\x2f\x1e\xd0\xfb\x2f\x1e\xd0\xff\x2f\x1e\xd0\
\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\xf8\x2f\x1e\xd0\
\xe1\x2f\x1f\xcf\xa0\x31\x20\xcf\x3c\x2c\x1d\xd2\x07\x52\x14\xc1\
\x00\x00\x49\xff\x00\x55\x00\xaa\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x2e\x22\xd0\x00\x32\x27\xcc\x00\x27\x1a\xd7\x04\x2e\x1c\xd0\
\x17\x2f\x1e\xcf\x4e\x2e\x1e\xd0\xae\x2e\x1d\xd0\xe1\x2f\x1e\xd0\
\xef\x2f\x1e\xd0\xda\x2f\x1f\xd0\x86\x35\x26\xc2\x2d\x4e\x49\x80\
\x29\x5d\x5d\x5c\x62\x5c\x5d\x5b\xc1\x5c\x5d\x5c\xe8\x5c\x5d\x5c\
\xf4\x5b\x5c\x5b\xdc\x5c\x5e\x5c\x80\x5b\x5f\x5b\x28\x5d\x5c\x5d\
\x0b\x63\x62\x63\x01\x60\x60\x60\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\xff\xff\xff\x00\xff\xff\xff\x00\xeb\xeb\xeb\
\x02\xcf\xcf\xcf\x12\xb3\xb4\xb3\x41\x9c\x9e\x9c\x83\x96\x97\x94\
\xba\x88\x89\x87\xdb\x7c\x7d\x7b\xf8\x84\x86\x84\xfe\x8b\x8c\x8a\
\xff\x83\x84\x83\xff\x77\x78\x77\xff\x67\x68\x67\xff\x5e\x5f\x5e\
\xf9\x5b\x5c\x5b\xea\x5c\x5d\x5b\xc1\x5c\x5d\x5d\x60\x4e\x48\x89\
\x2a\x33\x24\xc7\x38\x30\x1e\xd0\x9e\x2e\x1d\xd0\xe9\x2f\x1e\xd0\
\xfc\x2f\x1e\xd0\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\
\xff\x2f\x1e\xd0\xf8\x2f\x1e\xcf\xdd\x2f\x1d\xd0\x7e\x33\x1d\xcf\
\x1d\x3f\x10\xb8\x02\x00\x3e\xf9\x00\x27\x1a\xc8\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x30\x1e\xd0\
\x00\x31\x1d\xd0\x03\x2f\x20\xd0\x14\x2e\x1e\xd0\x59\x2f\x1e\xd0\
\xb8\x2f\x1e\xcf\xea\x2f\x1e\xd0\xf9\x2e\x1e\xd0\xeb\x2f\x1d\xd1\
\x9d\x34\x24\xc9\x3a\x50\x4b\x84\x25\x5e\x5e\x5f\x5d\x5b\x5d\x5b\
\xc7\x5b\x5c\x5b\xef\x5c\x5d\x5c\xfb\x5c\x5d\x5c\xf0\x5c\x5c\x5c\
\xa8\x5d\x5d\x5d\x37\x5a\x5c\x5a\x0a\x64\x72\x64\x01\x60\x67\x5f\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\xff\xff\xff\x00\xff\xff\xff\x00\xe9\xeb\xe9\x08\xc1\xc1\xc0\
\x3b\x94\x95\x93\xb6\x58\x5b\x57\xe6\x61\x64\x61\xf3\x64\x67\x63\
\xf8\x5e\x61\x5c\xfa\x59\x5a\x56\xfc\x61\x63\x60\xff\x62\x65\x61\
\xff\x62\x65\x61\xff\x5b\x5f\x5a\xff\x7f\x81\x7e\xff\x79\x7a\x79\
\xff\x62\x63\x62\xff\x5d\x5e\x5d\xfc\x5c\x5d\x5c\xee\x5d\x5d\x5d\
\xc5\x5c\x5c\x5f\x5d\x49\x42\x93\x29\x30\x20\xcc\x50\x2f\x1d\xcf\
\xc2\x2e\x1e\xcf\xf4\x2f\x1e\xd0\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\
\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\xf3\x2f\x1e\xcf\
\xb5\x2f\x1e\xcd\x44\x2a\x1b\xcd\x08\x4a\x3b\xfb\x00\x30\x21\xd4\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x33\x1e\xcf\x00\x35\x1d\xd2\x02\x2f\x21\xc7\
\x0c\x30\x1e\xce\x46\x2f\x1e\xd0\xaf\x2f\x1e\xd0\xee\x2f\x1e\xd0\
\xfd\x2f\x1e\xd0\xf9\x2f\x1d\xd0\xd0\x31\x20\xcf\x59\x46\x3e\x99\
\x22\x5c\x5c\x60\x4f\x5c\x5c\x5c\xb9\x5c\x5d\x5c\xf1\x5c\x5d\x5c\
\xfd\x5c\x5d\x5c\xfb\x5c\x5d\x5c\xd5\x5c\x5a\x5c\x6f\x5b\x5c\x5b\
\x14\x52\x51\x51\x02\x0b\x0e\x0e\x04\x0d\x10\x10\x08\x0d\x10\x10\
\x08\x0d\x10\x10\x08\x0f\x11\x11\x03\x0f\x13\x13\x04\x0d\x10\x10\
\x07\x0f\x0f\x0f\x08\x0d\x0d\x0d\x07\x15\x14\x14\x02\x10\x0f\x0f\
\x04\x07\x07\x07\x01\x00\x00\x00\x00\x00\x00\x00\x00\x07\x07\x07\
\x01\x0a\x0c\x0c\x04\x09\x0f\x0f\x03\x00\x00\x00\x00\x24\x21\x21\
\x00\x00\x00\x00\x00\x0f\x0e\x0e\x04\x0f\x0f\x0f\x03\x13\x12\x12\
\x03\x0e\x10\x10\x07\x0f\x0f\x0f\x08\x0d\x0f\x0f\x08\x0f\x0f\x0f\
\x05\x13\x14\x14\x01\x0a\x11\x11\x06\x0d\x10\x10\x08\x0d\x10\x10\
\x08\x0d\x10\x10\x07\x10\x12\x12\x02\x0c\x10\x10\x07\x0e\x10\x10\
\x08\x0e\x0e\x0e\x08\x0e\x0e\x0e\x05\x14\x12\x12\x01\x0e\x0e\x0e\
\x02\x0d\x0f\x0f\x07\x0e\x0f\x0f\x08\x0e\x10\x10\x08\x0e\x10\x10\
\x04\x15\x15\x15\x02\x17\x17\x17\x02\x0e\x11\x11\x07\x0d\x10\x10\
\x08\x0d\x10\x10\x08\x0d\x10\x10\x07\x0a\x11\x11\x03\x0e\x0d\x0d\
\x06\x0f\x0f\x0f\x08\x0f\x10\x10\x08\x0d\x11\x11\x04\xdb\xb1\xb1\
\x00\x2f\x2c\x2c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xff\xff\xff\
\x00\xe9\xe9\xe9\x04\xa8\xa9\xa7\x1d\xba\xbc\xb9\x65\x85\x86\x83\
\xd4\x5c\x5f\x5b\xfb\x63\x66\x62\xff\x66\x69\x65\xff\x68\x6b\x67\
\xff\x5b\x5d\x59\xff\x4d\x4f\x4b\xff\x5b\x5d\x5a\xff\x68\x6b\x67\
\xff\x67\x6a\x66\xff\x65\x68\x64\xff\x5b\x5e\x5a\xff\x78\x7a\x77\
\xff\x88\x8a\x88\xff\x6b\x6c\x6b\xff\x5e\x5f\x5e\xff\x5c\x5d\x5c\
\xfd\x5c\x5d\x5c\xef\x5c\x5d\x5c\xaf\x5b\x5b\x65\x40\x3b\x32\xac\
\x2b\x2f\x1f\xcf\x7c\x2e\x1e\xd0\xe6\x2f\x1e\xd0\xfd\x2f\x1e\xd0\
\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\xff\x2f\x1e\xcf\
\xfc\x2f\x1d\xcf\xdc\x2f\x1e\xd0\x68\x30\x1f\xd2\x13\x32\x1d\xd0\
\x01\x30\x1e\xd1\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x2c\x22\xff\
\x00\x2f\x1b\xbc\x00\x2c\x1e\xd7\x05\x30\x1e\xd0\x30\x30\x1e\xcf\
\x94\x2f\x1e\xd0\xe9\x2f\x1e\xd0\xfd\x2f\x1e\xd0\xff\x2e\x1e\xd0\
\xf2\x2e\x1e\xd1\xa1\x36\x23\xc7\x33\x58\x5a\x67\x2d\x5b\x5c\x5b\
\x9b\x5c\x5d\x5c\xec\x5c\x5d\x5c\xfc\x5c\x5d\x5c\xff\x5c\x5d\x5c\
\xf7\x5c\x5d\x5c\xb8\x4f\x51\x4f\x44\x17\x17\x17\x2b\x11\x11\x11\
\x0d\x0c\x0e\x0e\x06\x0d\x0f\x0f\x2f\x0d\x10\x10\x4c\x0d\x10\x10\
\x46\x0d\x10\x10\x47\x0e\x10\x10\x25\x0e\x11\x11\x2f\x0d\x10\x10\
\x44\x0e\x0f\x0f\x49\x0d\x0d\x0d\x45\x10\x11\x11\x2e\x0e\x0f\x0f\
\x3a\x09\x0a\x0a\x07\x06\x06\x06\x00\x00\x00\x00\x01\x0a\x0a\x0a\
\x12\x0c\x0d\x0d\x3e\x0b\x0e\x0e\x2d\x00\x00\x00\x00\x0f\x0c\x0c\
\x00\x11\x13\x13\x0d\x0d\x0e\x0e\x3e\x0e\x0f\x0e\x30\x0f\x10\x10\
\x2b\x0d\x10\x10\x44\x0e\x0f\x0f\x49\x0d\x0f\x0f\x49\x0d\x0f\x0f\
\x3d\x10\x10\x10\x1d\x0b\x10\x10\x4b\x0d\x10\x10\x47\x0d\x10\x10\
\x47\x0d\x10\x10\x3e\x0d\x10\x10\x22\x0c\x10\x10\x42\x0e\x10\x10\
\x48\x0e\x0e\x0e\x49\x0d\x0e\x0e\x3e\x0d\x0f\x0f\x1d\x0d\x0e\x0e\
\x23\x0d\x0f\x0f\x42\x0e\x0f\x0f\x47\x0e\x10\x10\x45\x0e\x0f\x0f\
\x35\x12\x11\x11\x24\x14\x14\x14\x1e\x0d\x10\x10\x4e\x0d\x10\x10\
\x48\x0d\x10\x10\x46\x0d\x10\x10\x41\x0b\x10\x10\x25\x0d\x0e\x0e\
\x40\x0f\x0f\x0f\x47\x0f\x10\x10\x44\x0d\x10\x10\x31\x11\x12\x12\
\x0f\x11\x12\x12\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\xfc\xfc\xfc\x00\xf1\xf2\xf2\
\x04\xc1\xc2\xc1\x40\x7e\x80\x7d\xc5\x58\x5b\x57\xf6\x2f\x32\x2d\
\xfe\x52\x56\x50\xff\x5e\x61\x5d\xff\x6f\x71\x6d\xff\x98\x9a\x98\
\xff\xad\xae\xad\xff\x9f\xa0\x9e\xff\xb1\xb3\xb1\xff\x9d\x9f\x9d\
\xff\x77\x79\x76\xff\x67\x69\x66\xff\x57\x59\x56\xff\x35\x38\x34\
\xff\x4e\x51\x4e\xff\x77\x79\x77\xff\x74\x75\x74\xff\x60\x61\x60\
\xff\x5c\x5d\x5c\xff\x5c\x5d\x5c\xfc\x5d\x5e\x5b\xe3\x5b\x5e\x5c\
\x82\x50\x4e\x79\x26\x2f\x21\xcd\x50\x2e\x1e\xd0\xcb\x2f\x1e\xd0\
\xfb\x2f\x1e\xd0\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\
\xff\x2f\x1e\xd0\xfe\x2e\x1d\xd0\xf2\x2f\x1d\xd0\x89\x30\x1e\xd0\
\x1b\x3d\x24\xca\x00\x33\x1f\xcf\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x2f\x20\xce\x00\x34\x16\xf7\
\x00\x30\x1e\xd6\x0d\x30\x1f\xd2\x57\x2f\x1e\xd0\xc9\x2f\x1e\xd0\
\xfe\x2f\x1e\xd0\xff\x2f\x1e\xd0\xff\x2f\x1e\xcf\xea\x2f\x1e\xd0\
\x82\x3b\x2f\xb1\x21\x5e\x5e\x5d\x48\x5d\x5d\x5d\xca\x5c\x5d\x5c\
\xfb\x5c\x5d\x5c\xff\x5c\x5d\x5c\xff\x5c\x5d\x5c\xf6\x5b\x5c\x5b\
\xa8\x65\x66\x65\x1e\x0f\x11\x11\x1d\x0d\x0f\x0f\x63\x0e\x0e\x0e\
\x20\x08\x0e\x0e\x11\x0b\x0e\x0e\x52\x0c\x0e\x0e\x53\x0c\x0c\x0c\
\x32\x0d\x0d\x0d\x32\x0c\x0e\x0e\x48\x0c\x0e\x0e\x5b\x0e\x0f\x0f\
\x32\x0c\x0c\x0c\x24\x0d\x0d\x0d\x30\x0c\x0e\x0e\x7c\x0b\x0e\x0e\
\x9c\x0e\x0f\x0f\x25\x0d\x0d\x0d\x11\x0d\x0d\x0d\x13\x0e\x0e\x0e\
\x3d\x0e\x0e\x0e\x9f\x0c\x0d\x0d\x71\x57\x63\x63\x01\x0e\x0f\x0f\
\x19\x0d\x0e\x0e\x56\x0c\x0e\x0e\x97\x0b\x0f\x0e\x7b\x0c\x0f\x0e\
\x74\x0b\x0f\x0f\x43\x0b\x0d\x0d\x23\x0f\x0f\x0f\x26\x0c\x0d\x0d\
\x6b\x0e\x0e\x0e\x64\x0e\x0e\x0e\x81\x0c\x0d\x0d\x2a\x0c\x0c\x0c\
\x23\x0c\x0d\x0d\x31\x0b\x0d\x0d\x67\x0d\x0f\x0f\x3c\x0f\x0f\x0f\
\x24\x0d\x0d\x0d\x23\x0c\x0e\x0e\x5a\x0c\x0e\x0e\x7c\x0d\x0e\x0e\
\x5b\x0d\x0f\x0f\x3e\x0d\x0d\x0d\x31\x0d\x0d\x0d\x40\x0e\x0e\x0e\
\x83\x0f\x0f\x0f\x71\x10\x10\x10\x4d\x0c\x0d\x0d\x98\x0c\x0d\x0d\
\x40\x0c\x0c\x0c\x34\x0d\x0d\x0d\x34\x0e\x0f\x0f\x45\x0d\x0f\x0f\
\x62\x0d\x0f\x0e\x32\x0e\x11\x0e\x3a\x0e\x0e\x0f\x64\x0d\x0f\x0f\
\x4c\x0d\x0f\x0f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\xff\xff\xff\x00\xff\xff\xff\x01\xc0\xc0\xc0\
\x3a\x7c\x7d\x7b\xd0\x60\x63\x5e\xfd\x62\x66\x61\xff\x62\x64\x61\
\xff\xa0\xa2\xa0\xff\xd7\xd9\xd7\xff\xdd\xdf\xde\xff\xdf\xe1\xe0\
\xff\xcb\xcd\xcc\xff\xaa\xac\xaa\xff\xc9\xcb\xca\xff\xdf\xe1\xe0\
\xff\xdd\xdf\xde\xff\xd8\xda\xd9\xff\xac\xad\xab\xff\x71\x73\x70\
\xff\x65\x68\x64\xff\x5f\x61\x5e\xff\x79\x7a\x79\xff\x76\x76\x75\
\xff\x5e\x5f\x5e\xff\x5c\x5d\x5c\xff\x5c\x5d\x5c\xff\x5c\x5d\x5c\
\xf7\x5c\x5d\x5c\xb2\x5c\x5f\x62\x36\x31\x1f\xcb\x3d\x2f\x1d\xcf\
\xbc\x2f\x1e\xcf\xfb\x2f\x1e\xd0\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\
\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\xff\x2e\x1d\xd0\xf9\x30\x1e\xcf\
\x87\x31\x1f\xd0\x16\x27\x1f\xe4\x00\x2f\x1f\xd3\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x38\x1c\xce\x00\x96\x01\xc1\x00\x31\x1e\xcf\
\x14\x2f\x1e\xd0\x73\x2f\x1e\xd0\xe6\x2f\x1e\xcf\xff\x2f\x1e\xd0\
\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\xeb\x30\x1e\xd0\x76\x49\x3a\x9e\
\x20\x5c\x5e\x5b\x60\x5c\x5d\x5c\xdc\x5c\x5d\x5c\xff\x5c\x5d\x5c\
\xff\x5c\x5d\x5c\xff\x5c\x5d\x5c\xfa\x5d\x5d\x5d\xb0\x5a\x5a\x5a\
\x1e\x00\x00\x00\x00\x0d\x0f\x0f\x1f\x0d\x0f\x0f\x66\x0e\x0e\x0e\
\x22\x09\x0d\x0d\x12\x0b\x0e\x0e\x5c\x0c\x0e\x0e\x6b\x0d\x0d\x0d\
\x4e\x0e\x0e\x0e\x4a\x0d\x0e\x0e\x5e\x0c\x0d\x0d\x3f\x0b\x0b\x0b\
\x0b\x01\x01\x01\x01\x0e\x0f\x0f\x03\x0d\x0f\x0f\x2a\x0b\x0e\x0e\
\x9f\x0e\x0e\x0e\x5b\x0d\x0d\x0d\x4e\x0d\x0d\x0d\x4f\x0e\x0e\x0e\
\x6b\x0d\x0e\x0e\xa7\x0c\x0d\x0d\x77\x0e\x10\x10\x22\x0d\x0e\x0e\
\x5e\x0e\x0d\x0d\x42\x0b\x0f\x0f\x50\x0b\x0f\x0e\x7e\x0e\x0f\x0f\
\x5f\x10\x10\x10\x1a\x98\x67\x67\x00\x0c\x0a\x0a\x02\x0e\x0e\x0e\
\x3f\x0e\x0e\x0e\x73\x0e\x0e\x0e\x76\x0e\x0e\x0e\x08\x0c\x0e\x0e\
\x00\x0c\x0e\x0e\x17\x0c\x0e\x0e\x66\x0f\x0f\x0f\x0e\x0a\x08\x08\
\x01\x13\x19\x19\x00\x0c\x0e\x0e\x35\x0d\x0e\x0e\x7c\x0d\x0d\x0d\
\x4e\x0c\x0c\x0c\x0f\x0d\x0d\x0d\x39\x0c\x0c\x0c\x6b\x0d\x0e\x0e\
\x84\x0e\x0f\x0f\x6d\x10\x10\x10\x4f\x0c\x0d\x0d\xa5\x0d\x0d\x0d\
\x5a\x0d\x0d\x0d\x4f\x0e\x0e\x0e\x48\x0d\x0d\x0d\x38\x0d\x0e\x0e\
\x67\x0c\x0f\x0e\x59\x0d\x0f\x0e\x5e\x0e\x0e\x0e\x66\x0f\x0f\x0f\
\x36\x0f\x0f\x0f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\xde\xde\xdc\x00\xe0\xe0\xde\x13\x90\x90\x8f\
\xb1\x63\x65\x62\xfa\x65\x68\x64\xff\x67\x69\x65\xff\xb8\xba\xb8\
\xff\xb1\xb3\xb2\xff\xc3\xc5\xc3\xff\xe0\xe2\xe1\xff\xe1\xe3\xe2\
\xff\xd2\xd4\xd2\xff\xb6\xb8\xb6\xff\xce\xd0\xce\xff\xe1\xe3\xe2\
\xff\xe0\xe2\xe1\xff\xc6\xc7\xc6\xff\xc3\xc5\xc4\xff\xb0\xb2\xb0\
\xff\x70\x72\x6f\xff\x65\x68\x64\xff\x60\x63\x5f\xff\x7f\x7f\x7d\
\xff\x6a\x6b\x6a\xff\x5d\x5e\x5d\xff\x5c\x5d\x5c\xff\x5c\x5d\x5c\
\xff\x5c\x5d\x5c\xfd\x5c\x5d\x5c\xc3\x5d\x5d\x5f\x3c\x32\x20\xcc\
\x3b\x2f\x1e\xcf\xbb\x2f\x1e\xd0\xfc\x2f\x1e\xd0\xff\x2f\x1e\xd0\
\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\xff\x2f\x1e\xcf\
\xf3\x31\x1f\xd0\x6f\x33\x20\xce\x0c\x1b\x21\xf7\x00\x00\x00\x00\
\x00\x29\x1c\xd7\x00\x19\x18\xe3\x01\x2f\x1e\xd2\x19\x31\x1e\xd0\
\x80\x2f\x1e\xd0\xf1\x2f\x1e\xd0\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\
\xff\x2f\x1e\xd0\xf4\x2e\x1d\xd1\x85\x43\x37\xa6\x21\x5d\x5f\x5b\
\x6c\x5c\x5d\x5c\xe2\x5c\x5d\x5c\xff\x5c\x5d\x5c\xff\x5c\x5d\x5c\
\xff\x5c\x5d\x5c\xfc\x5a\x5b\x5a\xc6\x5c\x5c\x56\x2b\x14\x16\x12\
\x05\x00\x02\x00\x18\x06\x09\x05\x36\x0a\x0c\x08\x6b\x06\x06\x03\
\x39\x07\x07\x07\x2a\x0b\x0c\x0c\x50\x07\x09\x07\x49\x03\x05\x00\
\x2c\x04\x07\x00\x2d\x07\x0a\x05\x3d\x08\x0a\x05\x43\x05\x05\x01\
\x28\x00\x00\x00\x21\x08\x08\x08\x27\x05\x07\x06\x67\x07\x0b\x09\
\x86\x02\x03\x03\x1c\x00\x00\x00\x0a\x00\x00\x00\x0c\x07\x07\x05\
\x32\x0a\x0b\x08\x89\x09\x0a\x08\x79\x09\x0a\x06\x54\x08\x09\x05\
\x38\x0e\x12\x0f\x00\x0a\x0e\x0e\x41\x0b\x0f\x0f\x63\x0e\x0f\x0f\
\x5e\x0f\x0f\x0f\x38\x0d\x0e\x0e\x23\x03\x03\x03\x22\x08\x09\x05\
\x4d\x09\x0b\x07\x53\x0a\x0a\x07\x61\x0a\x0a\x07\x07\x0d\x0f\x0f\
\x00\x0d\x0f\x0f\x11\x0e\x0f\x0f\x55\x0c\x0c\x0c\x2e\x00\x01\x00\
\x21\x00\x03\x00\x1f\x07\x0a\x06\x43\x09\x0c\x08\x60\x09\x09\x04\
\x43\x05\x05\x02\x2f\x0a\x0a\x0a\x22\x10\x10\x10\x22\x06\x07\x06\
\x49\x08\x08\x05\x52\x0a\x0b\x05\x40\x09\x0b\x08\x85\x05\x08\x02\
\x39\x04\x07\x00\x2e\x05\x07\x00\x2f\x08\x09\x04\x44\x08\x0a\x07\
\x5c\x04\x06\x00\x27\x01\x06\x00\x2a\x03\x05\x00\x35\x05\x05\x00\
\x22\x05\x05\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\xbc\xbd\xba\x00\xbd\xbe\xbb\x4d\x65\x67\x64\
\xe3\x63\x66\x63\xff\x68\x6b\x67\xff\x98\x99\x97\xff\xda\xdc\xdb\
\xff\xd4\xd6\xd4\xff\xb4\xb5\xb4\xff\xd5\xd7\xd6\xff\xce\xd0\xcf\
\xff\xba\xbc\xbb\xff\xa4\xa6\xa4\xff\xb3\xb5\xb3\xff\xce\xd0\xce\
\xff\xd3\xd4\xd3\xff\xc2\xc4\xc3\xff\xd3\xd5\xd4\xff\xdf\xe1\xe0\
\xff\x9f\xa1\x9f\xff\x6e\x70\x6d\xff\x63\x65\x61\xff\x51\x54\x4f\
\xff\x86\x87\x86\xff\x5f\x60\x5f\xff\x5c\x5d\x5c\xff\x5c\x5d\x5c\
\xff\x5c\x5d\x5c\xff\x5c\x5d\x5c\xfe\x5c\x5d\x5c\xc1\x5d\x5d\x5e\
\x39\x2e\x1d\xd1\x40\x2f\x1e\xd0\xc7\x2f\x1e\xd0\xff\x2f\x1e\xd0\
\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\
\xff\x30\x1e\xd1\xe2\x31\x1f\xcf\x4a\x32\x1f\xcd\x05\x34\x1c\xd6\
\x00\xb3\x00\xff\x00\x2f\x1d\xd2\x15\x2f\x1e\xd0\x86\x2f\x1e\xd0\
\xf5\x2f\x1e\xd0\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\
\xfe\x2f\x1e\xd0\xa8\x35\x25\xc3\x27\x5e\x60\x58\x5d\x5b\x5d\x5b\
\xdf\x5c\x5d\x5c\xff\x5c\x5d\x5c\xff\x5c\x5d\x5c\xff\x5c\x5d\x5c\
\xff\x62\x62\x62\xed\xa4\xa4\xa7\x8e\xbf\xb9\xed\x51\xb0\xab\xdb\
\x56\x7b\x78\x98\x81\x6f\x6d\x8a\x90\x6c\x69\x85\x97\x7a\x79\x8a\
\x8e\x74\x75\x74\x5c\x31\x33\x32\x3e\x6a\x6b\x77\x77\x77\x75\x90\
\x8e\x70\x6e\x8c\x8e\x8e\x89\xaf\x6e\x80\x7b\x9d\x7c\x70\x6e\x8d\
\x8e\x83\x82\x89\x84\x43\x43\x40\x4d\x94\x95\x92\x51\x81\x81\x97\
\x7a\xb2\xad\xdc\x56\xc0\xb9\xee\x4f\xbf\xb8\xed\x4f\xa3\x9d\xc9\
\x5f\x7b\x76\x96\x83\x75\x71\x90\x89\x89\x85\xa9\x73\xcd\xc8\xf6\
\x4b\xea\xe8\xfe\x3a\x83\x84\x7f\x2f\x14\x14\x11\x1c\x0e\x0e\x0e\
\x28\x0e\x10\x10\x3d\x1c\x1e\x1e\x44\x73\x74\x80\x7c\x79\x76\x93\
\x87\x9a\x95\xbf\x65\x88\x83\xa7\x74\xbd\xb7\xe7\x52\xe4\xe2\xf8\
\x44\x9a\x99\x9f\x05\x07\x07\x07\x18\x3b\x3b\x3b\x4b\x79\x79\x84\
\x80\x71\x6f\x8b\x90\x78\x74\x94\x86\x96\x93\xbb\x67\x8e\x8b\xb0\
\x71\x72\x70\x80\x78\x38\x38\x39\x4e\x11\x11\x11\x3f\x8b\x8c\x8f\
\x68\x99\x96\xb4\x6e\x96\x91\xb9\x69\x6e\x6b\x87\x93\x70\x6e\x8b\
\x8e\x71\x6f\x8d\x8d\x75\x73\x91\x88\x91\x8c\xb2\x6d\x7a\x77\x97\
\x82\x74\x70\x8e\x8a\x72\x6f\x8d\x8b\x84\x81\xa1\x7c\xbf\xbd\xd7\
\x47\xff\xff\xff\x10\xfe\xfe\xfe\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\xb6\xb8\xb6\x00\xb7\xb8\xb7\x64\x70\x73\x70\
\xe6\x65\x68\x65\xff\x99\x9b\x98\xff\xda\xdc\xdb\xff\xdf\xe1\xe0\
\xff\xdd\xdf\xde\xff\xbf\xc1\xbf\xff\x98\x99\x97\xff\x8c\x8f\x8d\
\xff\x7e\x80\x7e\xff\x7a\x7c\x79\xff\x7a\x7c\x78\xff\x8c\x8e\x8b\
\xff\x9b\x9d\x9b\xff\xbf\xc1\xbf\xff\xdd\xdf\xde\xff\xe0\xe2\xe1\
\xff\xdd\xdf\xde\xff\xa2\xa4\xa2\xff\x6b\x6d\x69\xfe\x59\x5c\x57\
\xeb\x85\x85\x84\xf1\x5e\x5f\x5e\xfe\x5b\x5c\x5b\xff\x5b\x5c\x5b\
\xff\x5b\x5c\x5b\xff\x5c\x5d\x5c\xff\x5c\x5d\x5c\xfd\x5c\x5d\x5c\
\xb4\x5f\x60\x5b\x2a\x2d\x1d\xd1\x58\x2f\x1e\xcf\xe1\x2f\x1e\xd0\
\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\
\xff\x2f\x1e\xd0\xfd\x2f\x1e\xd0\xb6\x2f\x1c\xd0\x1d\x2c\x24\xd4\
\x00\x32\x1c\xcf\x0c\x30\x1e\xd0\x73\x2f\x1e\xd0\xf4\x2f\x1e\xd0\
\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\
\xd2\x2d\x1b\xd5\x42\x62\x62\x53\x39\x5c\x5d\x5c\xcc\x5c\x5d\x5c\
\xff\x5c\x5d\x5c\xff\x5c\x5d\x5c\xff\x5c\x5d\x5c\xff\x5c\x5d\x5c\
\xfb\x6e\x6e\x6d\xa9\xea\xe9\xf3\xb5\x9b\x94\xe7\xf9\x81\x76\xe1\
\xfc\x81\x76\xe2\xfb\x81\x75\xe2\xfa\x8c\x81\xe5\xfc\xbd\xb7\xf1\
\xd9\xff\xff\xff\x50\xff\xff\xff\x33\xb5\xaf\xf0\xc3\x88\x7d\xe4\
\xfe\x81\x76\xe2\xfa\x81\x76\xe1\xfb\x81\x75\xe2\xfb\xa0\x99\xea\
\xfc\xe9\xe7\xfa\xb1\xea\xe7\xfd\x73\xa4\x9e\xeb\xbd\x89\x80\xe5\
\xef\x81\x76\xe1\xfc\x80\x75\xe0\xfd\x80\x74\xe0\xfd\x80\x74\xe1\
\xfc\x81\x75\xe2\xfa\x81\x76\xe2\xfa\x81\x76\xe2\xfb\x83\x79\xe1\
\xf9\x95\x8d\xe6\xdc\xc2\xbd\xf2\x8f\xf3\xf3\xff\x27\xd5\xd1\xfa\
\x00\xff\xff\xff\x00\xff\xff\xff\x1a\xb2\xac\xee\xc9\x89\x7e\xe4\
\xfc\x81\x75\xe1\xfc\x81\x76\xe2\xfb\x86\x7c\xe2\xfd\xbb\xb6\xee\
\xdf\xf6\xf6\xfc\x26\xdf\xde\xfa\x00\xf2\xf3\xfe\x33\xc2\xbe\xf3\
\xd6\x81\x76\xe2\xfc\x81\x76\xe2\xfa\x81\x75\xe1\xfc\x83\x78\xe2\
\xfe\xb6\xb0\xf0\xcf\xf1\xef\xfe\x3a\xdc\xd9\xfa\x00\xfb\xfa\xff\
\x7d\xa9\xa1\xec\xec\x84\x79\xe2\xfd\x82\x76\xe3\xfa\x82\x76\xe2\
\xfa\x82\x76\xe2\xfa\x81\x75\xe2\xfa\x80\x75\xe1\xfb\x81\x75\xe2\
\xfb\x81\x75\xe2\xfa\x80\x75\xe2\xfa\x85\x7b\xe3\xff\xaf\xa8\xec\
\xca\xff\xff\xff\x3c\xdb\xdc\xda\x00\xb5\xb7\xb5\x24\x9f\xa0\x9e\
\x4a\xa3\xa3\xa1\x36\xdb\xda\xda\x15\xee\xed\xee\x1e\x91\x93\x8f\
\x79\x8f\x91\x8e\xca\xbd\xbe\xbc\xf8\xce\xd0\xce\xff\xdf\xe1\xe0\
\xff\xcf\xd0\xcf\xff\x90\x92\x90\xff\x72\x75\x71\xff\x98\x9a\x97\
\xff\xb3\xb5\xb3\xff\xb9\xbb\xb9\xff\xaf\xb1\xaf\xff\x9e\xa0\x9e\
\xff\x76\x77\x75\xff\x86\x88\x85\xff\xc6\xc8\xc7\xff\xde\xe0\xdf\
\xff\xcd\xcf\xce\xff\xbb\xbd\xbc\xf2\x96\x99\x96\xbe\x9c\x9e\x9c\
\x6e\x71\x72\x71\x8c\x67\x68\x67\xf6\x6b\x6b\x6a\xff\x70\x71\x70\
\xff\x6c\x6d\x6c\xff\x5b\x5c\x5b\xff\x5c\x5d\x5c\xff\x5c\x5d\x5c\
\xf7\x5d\x5e\x5a\x8e\x46\x40\x97\x1d\x2f\x1e\xd0\x93\x2f\x1e\xd0\
\xfe\x2f\x1e\xd0\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\
\xff\x2f\x1e\xd0\xff\x2f\x1d\xd0\xf2\x2f\x1d\xd0\x5d\x30\x1d\xce\
\x03\x2f\x1e\xcf\x3e\x2f\x1e\xcf\xe1\x2f\x1e\xd0\xff\x2f\x1e\xd0\
\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\xfc\x2e\x1e\xd1\
\x8b\x49\x45\x93\x16\x5c\x5d\x5b\x94\x5c\x5d\x5c\xfd\x5c\x5d\x5c\
\xff\x5c\x5d\x5c\xff\x5c\x5d\x5c\xff\x5c\x5d\x5c\xff\x5c\x5c\x5c\
\xeb\x67\x67\x66\x43\xdd\xdb\xf3\x5f\x75\x6b\xdf\xf7\x2d\x1c\xd0\
\xff\x2b\x1a\xcf\xff\x29\x18\xcf\xff\x47\x38\xd6\xff\x93\x8b\xe7\
\xb3\xff\xff\xff\x0f\xd3\xd2\xf4\x6d\x78\x6e\xe0\xf6\x2b\x1a\xcf\
\xff\x2b\x1a\xcf\xff\x2b\x1a\xcf\xff\x2e\x1d\xd0\xff\x90\x88\xe5\
\xef\xe5\xe3\xf8\x80\x9f\x97\xe9\xe2\x44\x36\xd4\xff\x2c\x1b\xcf\
\xff\x2b\x1a\xcf\xff\x2b\x1a\xcf\xff\x30\x1f\xd0\xff\x34\x23\xd1\
\xff\x32\x21\xd0\xff\x2d\x1c\xd0\xff\x2b\x19\xcf\xff\x2a\x19\xcf\
\xff\x32\x21\xd1\xff\x76\x6b\xdf\xff\xc4\xbf\xf0\x89\xff\xff\xff\
\x10\xf7\xf6\xfc\x00\xf4\xf2\xfb\x55\x71\x65\xde\xe4\x33\x23\xd1\
\xff\x2b\x19\xcf\xff\x2b\x1a\xcf\xff\x31\x20\xd0\xff\x70\x65\xdd\
\xed\xf8\xf7\xfd\x60\xff\xff\xff\x03\xcf\xcc\xf3\x52\x85\x7c\xe3\
\xf3\x28\x16\xce\xff\x2b\x1a\xcf\xff\x2b\x1a\xcf\xff\x2a\x19\xcf\
\xff\x86\x7c\xe3\xfe\xd2\xce\xf3\x5b\xbd\xb8\xef\x00\xff\xff\xff\
\x2c\x7b\x70\xdf\xd5\x37\x27\xd2\xff\x2a\x19\xcf\xff\x2b\x1a\xcf\
\xff\x2b\x1a\xcf\xff\x2f\x1e\xd0\xff\x33\x22\xd1\xff\x33\x23\xd1\
\xff\x33\x23\xd1\xff\x33\x22\xd1\xff\x31\x20\xd0\xff\x6f\x64\xde\
\xdb\xff\xff\xff\x4e\xf0\xef\xec\x0b\x8f\x90\x8e\x8d\x72\x74\x70\
\xeb\x94\x95\x92\xca\xa4\xa5\xa3\x95\xa6\xa7\xa5\x68\xc6\xc7\xc6\
\x3d\xdb\xdb\xd8\x55\x9e\x9e\x9c\x93\xb1\xb2\xb0\xd9\xb2\xb4\xb2\
\xfd\x93\x95\x92\xff\x78\x7a\x77\xff\xb4\xb7\xb5\xff\xd4\xd5\xd4\
\xff\xdf\xe1\xe0\xff\xd5\xd7\xd5\xff\xd5\xd7\xd6\xff\xdb\xdd\xdc\
\xff\xb4\xb6\xb5\xff\x76\x78\x75\xff\x90\x92\x90\xff\xb2\xb4\xb3\
\xfc\xaf\xb0\xaf\xcf\xa3\xa4\xa3\x87\xda\xda\xd8\x3c\xd1\xd0\xd0\
\x32\xa3\xa4\xa3\x76\x8a\x8b\x8a\xf2\x8f\x90\x8d\xff\x7a\x7c\x79\
\xff\x7b\x7d\x7b\xff\x67\x68\x67\xff\x5c\x5d\x5c\xff\x5c\x5d\x5c\
\xff\x5c\x5d\x5c\xd8\x5e\x62\x52\x46\x2c\x1a\xd7\x49\x2f\x1e\xcf\
\xda\x2f\x1e\xd0\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\
\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\xfb\x2f\x1e\xd1\xab\x2f\x21\xcf\
\x0f\x2f\x1e\xd0\x9f\x2f\x1e\xd0\xfd\x2f\x1e\xd0\xff\x2f\x1e\xd0\
\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\xdd\x2d\x1b\xd6\
\x4e\x60\x65\x51\x38\x5c\x5d\x5c\xcc\x5c\x5d\x5c\xff\x5c\x5d\x5c\
\xff\x5c\x5d\x5c\xff\x5c\x5d\x5c\xff\x5c\x5d\x5c\xfe\x5c\x5d\x5c\
\xd2\x64\x65\x63\x21\xd3\xcf\xf4\x34\x88\x7e\xe4\xf5\x32\x21\xd1\
\xff\x2f\x1e\xd0\xff\x2d\x1c\xd0\xff\x51\x43\xd7\xff\xa1\x9c\xe9\
\xa4\xff\xff\xff\x18\xa2\x9c\xe9\xa4\x52\x44\xd7\xff\x2c\x1b\xcf\
\xff\x2f\x1e\xd0\xff\x2d\x1c\xd0\xff\x52\x44\xd7\xff\xba\xb5\xef\
\xa6\xeb\xea\xfa\x8d\x4f\x41\xd7\xee\x30\x1f\xd0\xff\x2f\x1e\xd0\
\xff\x30\x1f\xd0\xff\x44\x35\xd4\xfd\x86\x7c\xe3\xed\x85\x7b\xe2\
\xd8\x89\x7f\xe3\xdf\x6d\x61\xde\xf7\x31\x21\xd0\xff\x2f\x1e\xd0\
\xff\x2e\x1c\xd0\xff\x39\x29\xd2\xff\x9a\x92\xe7\xc2\xff\xff\xff\
\x30\xe5\xe3\xf9\x00\xe7\xe5\xf9\x8f\x5d\x51\xda\xf5\x31\x20\xd0\
\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\xff\x30\x1f\xd0\xff\x4b\x3d\xd6\
\xf5\xe5\xe3\xf8\x8a\xff\xff\xff\x0c\xb1\xab\xed\x71\x60\x53\xda\
\xff\x2d\x1c\xd0\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\xff\x2c\x1b\xcf\
\xff\x6d\x61\xdd\xff\xbb\xb6\xee\x82\xff\xff\xff\x0b\xff\xff\xff\
\x20\x95\x8d\xe5\xce\x40\x30\xd3\xff\x2e\x1d\xd0\xff\x2f\x1e\xd0\
\xff\x34\x24\xd1\xff\x6d\x60\xdd\xfa\x88\x7e\xe2\xdf\x86\x7b\xe2\
\xd8\x86\x7b\xe2\xd8\x86\x7c\xe3\xd9\x81\x77\xe2\xe9\xa6\xa0\xeb\
\xe9\xf6\xf5\xff\x65\xbf\xc0\xbd\x3a\x76\x79\x76\xce\x50\x53\x4f\
\xff\x87\x89\x86\xff\xad\xae\xac\xff\xba\xbb\xba\xf8\xbf\xc1\xbf\
\xcf\xab\xad\xaa\x9a\x9a\x9b\x9a\x82\xbf\xbe\xbf\xa6\x99\x9a\x98\
\xc2\x7d\x7f\x7c\xf0\x89\x8b\x88\xff\xd8\xda\xd9\xff\xdb\xdd\xdc\
\xff\xd9\xdb\xda\xff\xd9\xdb\xd9\xff\xd4\xd6\xd5\xff\xdb\xdd\xdc\
\xff\xd8\xda\xd8\xff\x97\x98\x96\xff\x86\x88\x85\xe6\x9c\x9e\x9c\
\xb8\xc1\xc1\xc1\x91\xa0\xa1\x9f\x79\xac\xae\xac\x91\xc5\xc6\xc5\
\xc1\xc5\xc6\xc5\xf0\xb8\xba\xb8\xfe\x8e\x90\x8c\xff\x5b\x5e\x5a\
\xff\x61\x63\x60\xff\x80\x81\x80\xff\x5b\x5c\x5b\xff\x5c\x5d\x5c\
\xff\x5c\x5d\x5c\xff\x5d\x5e\x5a\x89\x3c\x2b\xbe\x20\x2f\x1e\xd0\
\xac\x2f\x1e\xd0\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\
\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\xfe\x2f\x1e\xd0\xe9\x31\x1e\xd0\
\x36\x2f\x1e\xd0\xea\x2f\x1e\xd0\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\
\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\xff\x2e\x1e\xd0\xb5\x22\x0d\xf2\
\x1a\x5d\x5f\x59\x6a\x5c\x5d\x5c\xf3\x5c\x5d\x5c\xff\x5c\x5d\x5c\
\xff\x5c\x5d\x5c\xff\x5c\x5d\x5c\xff\x5c\x5d\x5c\xfe\x5c\x5e\x5c\
\xba\x6a\x6c\x69\x14\xd3\xcf\xf6\x30\x89\x80\xe4\xf5\x32\x21\xd1\
\xff\x2f\x1e\xd0\xff\x2d\x1c\xd0\xff\x51\x43\xd7\xff\xa4\x9e\xe9\
\xa3\xf5\xf2\xfb\x48\x8d\x83\xe5\xe1\x34\x24\xd1\xff\x2e\x1d\xd0\
\xff\x2f\x1e\xd0\xff\x30\x1f\xd0\xff\x8d\x85\xe4\xf3\xd3\xd1\xf4\
\x52\xd7\xd4\xf5\xa1\x45\x36\xd5\xf7\x2e\x1d\xd0\xff\x2f\x1e\xd0\
\xff\x32\x22\xd1\xff\x63\x57\xdb\xf4\xef\xee\xfa\x9a\xf6\xf5\xfb\
\x47\xff\xff\xff\x65\xb3\xac\xed\xcf\x3f\x2f\xd3\xff\x2e\x1d\xd0\
\xff\x2f\x1e\xd0\xff\x2a\x19\xcf\xff\x8b\x82\xe4\xd8\xf5\xf4\xfb\
\x3e\xff\xff\xff\x0a\xc0\xbc\xef\xb1\x4b\x3d\xd6\xfd\x2e\x1d\xd0\
\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\xff\x2e\x1d\xd0\xff\x40\x31\xd4\
\xfd\xba\xb6\xee\xb9\xff\xff\xfe\x1f\xad\xa6\xeb\xac\x43\x34\xd4\
\xff\x2e\x1d\xd0\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\xff\x2d\x1c\xd0\
\xff\x47\x37\xd5\xff\xa9\xa2\xeb\xae\xff\xff\xff\x22\xff\xff\xff\
\x1e\x96\x8f\xe6\xcd\x40\x31\xd3\xff\x2e\x1d\xd0\xff\x2f\x1e\xd0\
\xff\x39\x29\xd2\xff\xa5\x9e\xe9\xe5\xf4\xf2\xfa\x68\xf8\xf6\xfc\
\x49\xf8\xf6\xfc\x48\xf6\xf5\xfc\x49\xe9\xe9\xf9\x55\xe9\xe8\xfa\
\x74\xfd\xfc\xff\x40\xaa\xab\xa9\x66\x7b\x7e\x7a\xf2\x62\x65\x61\
\xff\x7b\x7d\x79\xff\xca\xcb\xca\xff\xdd\xdf\xde\xff\xd2\xd4\xd3\
\xff\xc1\xc3\xc1\xff\x71\x73\x70\xf5\x8e\x8f\x8d\xda\xb6\xb7\xb6\
\xc8\x97\x99\x96\xe8\x97\x99\x96\xfd\xb4\xb5\xb4\xff\xbd\xbf\xbe\
\xff\xde\xdf\xdf\xff\xdf\xe1\xe0\xff\xdc\xdd\xdc\xff\xc1\xc3\xc2\
\xff\xb2\xb4\xb2\xff\xa1\xa2\xa0\xfc\x9b\x9c\x9a\xdf\xbb\xbb\xba\
\xbf\x94\x95\x93\xd4\x75\x76\x74\xf2\xb9\xbb\xba\xfe\xd3\xd5\xd3\
\xff\xdc\xde\xdc\xff\xd5\xd7\xd6\xff\x70\x72\x6f\xff\x63\x66\x62\
\xff\x61\x63\x60\xff\x81\x82\x81\xff\x5b\x5c\x5b\xff\x5c\x5d\x5c\
\xff\x5c\x5d\x5c\xff\x5c\x5d\x5c\xb3\x5a\x58\x65\x27\x2e\x1d\xd2\
\x91\x2f\x1e\xd0\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\
\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\xff\x30\x1d\xd0\
\x6c\x2f\x1e\xd0\xf8\x2f\x1e\xd0\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\
\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\xff\x2e\x1d\xd0\xa0\x33\x1e\xdb\
\x0e\x5d\x5e\x5b\x89\x5c\x5d\x5c\xff\x5c\x5d\x5c\xff\x5c\x5d\x5c\
\xff\x5c\x5d\x5c\xff\x5c\x5d\x5c\xff\x5c\x5d\x5c\xfe\x5d\x5e\x5d\
\xb2\x6c\x6e\x6b\x13\xd3\xd0\xf6\x30\x89\x80\xe4\xf5\x32\x21\xd1\
\xff\x2f\x1e\xd0\xff\x2d\x1b\xcf\xff\x51\x43\xd7\xff\xb0\xac\xed\
\xb4\xbc\xb7\xef\x7f\x68\x5c\xdc\xff\x2c\x1b\xcf\xff\x2f\x1e\xd0\
\xff\x2e\x1d\xd0\xff\x4c\x3d\xd6\xff\xae\xa8\xec\xa7\xff\xff\xfe\
\x1b\xce\xca\xf2\xa6\x47\x38\xd5\xfa\x2f\x1d\xd0\xff\x2f\x1e\xd0\
\xff\x34\x23\xd1\xff\x6a\x5e\xdc\xee\xf7\xf6\xfd\x69\xff\xff\xfe\
\x00\xff\xff\xff\x25\xb6\xaf\xed\xb6\x48\x39\xd4\xff\x2e\x1c\xd0\
\xff\x2f\x1e\xd0\xff\x2b\x19\xcf\xff\x8a\x80\xe3\xe1\xe9\xe8\xf8\
\x43\xff\xff\xff\x1f\x87\x7f\xe2\xca\x3f\x2f\xd3\xff\x2e\x1d\xd0\
\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\xff\x35\x25\xd1\xff\x3c\x2c\xd3\
\xff\x8f\x86\xe5\xd6\xec\xea\xf9\x4e\xa6\x9f\xea\xe5\x34\x23\xd1\
\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\xff\x30\x1f\xd0\xff\x31\x20\xd0\
\xff\x30\x1e\xd0\xff\x95\x8c\xe6\xd5\xf3\xf4\xfb\x37\xff\xff\xff\
\x1e\x96\x8f\xe5\xcd\x40\x31\xd3\xff\x2e\x1d\xd0\xff\x2f\x1e\xd0\
\xff\x3a\x29\xd2\xff\xa5\x9d\xe9\xda\xf3\xf2\xfc\x29\xff\xff\xff\
\x00\xff\xff\xff\x00\xff\xff\xff\x03\xff\xff\xff\x30\xff\xff\xff\
\x44\xff\xff\xff\x01\x99\x9a\x98\x7a\x78\x7a\x77\xfd\x65\x68\x64\
\xff\x72\x74\x70\xff\xc3\xc5\xc3\xff\xe1\xe3\xe2\xff\xe0\xe2\xe1\
\xff\xcf\xd1\xd0\xff\x65\x68\x64\xff\x78\x7a\x78\xff\xc4\xc6\xc5\
\xfe\xbf\xc1\xc0\xfa\xb9\xbb\xba\xfe\x9c\x9d\x9b\xff\x87\x88\x86\
\xff\x95\x96\x95\xff\xb1\xb2\xb1\xff\x93\x94\x92\xff\x84\x86\x83\
\xff\x9d\x9f\x9d\xff\xba\xbb\xba\xfc\xc3\xc4\xc3\xfb\xcb\xcd\xcc\
\xfe\x7b\x7c\x7a\xff\x65\x67\x64\xff\xc5\xc7\xc6\xff\xdf\xe1\xe0\
\xff\xe0\xe2\xe1\xff\xd0\xd2\xd1\xff\x58\x5a\x56\xff\x67\x6a\x66\
\xff\x6b\x6d\x6a\xff\x78\x79\x77\xff\x5c\x5d\x5c\xff\x5c\x5d\x5c\
\xff\x5c\x5d\x5c\xff\x5c\x5d\x5c\xc8\x64\x66\x4c\x32\x2d\x1c\xd3\
\x80\x2f\x1e\xd0\xfb\x2f\x1e\xd0\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\
\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\xff\x2f\x1d\xcf\xfd\x2f\x1e\xcf\
\x89\x2f\x1e\xd0\xfa\x2f\x1e\xd0\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\
\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\xff\x2e\x1d\xd1\x9c\x42\x37\xb1\
\x12\x5d\x5e\x5c\x92\x5c\x5d\x5c\xff\x5c\x5d\x5c\xff\x5c\x5d\x5c\
\xff\x5c\x5d\x5c\xff\x5c\x5d\x5c\xff\x5c\x5d\x5c\xfe\x5c\x5e\x5c\
\xc4\x6b\x6c\x6a\x18\xd2\xcf\xf5\x30\x89\x80\xe4\xf5\x32\x21\xd1\
\xff\x2f\x1e\xd0\xff\x2d\x1c\xd0\xff\x47\x39\xd5\xff\x98\x91\xe7\
\xe9\x88\x7f\xe3\xdb\x3c\x2c\xd3\xff\x2e\x1d\xd0\xff\x2f\x1e\xd0\
\xff\x2c\x1b\xcf\xff\x67\x5b\xdc\xff\xc1\xbb\xf0\xc3\xf2\xf0\xfb\
\x37\xcf\xcb\xf3\xaa\x47\x37\xd5\xfa\x2f\x1d\xd0\xff\x2f\x1e\xd0\
\xff\x34\x23\xd1\xff\x69\x5e\xdc\xee\xf4\xf4\xfc\x6b\xfd\xfd\xfe\
\x00\xff\xff\xff\x25\xb6\xaf\xed\xb8\x48\x39\xd4\xff\x2e\x1c\xd0\
\xff\x2f\x1e\xd0\xff\x2b\x19\xcf\xff\x89\x80\xe4\xe1\xe8\xe8\xf8\
\x41\xf2\xf2\xfb\x55\x6a\x5e\xdd\xe2\x35\x25\xd1\xff\x2f\x1e\xd0\
\xff\x2f\x1e\xd0\xff\x3a\x2b\xd2\xff\x6d\x62\xdd\xff\x38\x27\xd2\
\xff\x73\x68\xde\xed\xe6\xe4\xf9\xae\x88\x7e\xe3\xf7\x2d\x1c\xd0\
\xff\x2f\x1e\xd0\xff\x2e\x1d\xd0\xff\x3e\x2e\xd3\xff\x4d\x3f\xd6\
\xff\x35\x25\xd1\xff\x80\x75\xe1\xfa\xc0\xba\xee\x4c\xff\xff\xff\
\x1d\x96\x8f\xe5\xcd\x40\x31\xd3\xff\x2e\x1d\xd0\xff\x2f\x1e\xd0\
\xff\x37\x27\xd2\xff\x8d\x83\xe4\xf2\xb9\xb4\xee\xb5\xb4\xb0\xed\
\xa6\xb4\xaf\xed\xa6\xb0\xaa\xec\xa9\xc3\xbf\xf0\xce\xe4\xe3\xf8\
\x8c\x8a\x8b\x9a\x00\x90\x92\x90\x7e\x74\x76\x73\xfe\x66\x69\x65\
\xff\x72\x74\x71\xff\xc2\xc4\xc3\xff\xe1\xe3\xe2\xff\xdf\xe1\xe0\
\xff\xc1\xc3\xc1\xff\x66\x69\x66\xff\x80\x82\x80\xff\xda\xdc\xdb\
\xff\xe1\xe3\xe2\xff\xda\xdc\xdb\xff\xc6\xc9\xc7\xff\x9f\xa0\x9e\
\xff\x5f\x60\x5e\xff\x43\x45\x41\xff\x5e\x5f\x5c\xff\x9c\x9e\x9c\
\xff\xc8\xca\xc9\xff\xd9\xdb\xda\xff\xe1\xe3\xe2\xff\xe3\xe5\xe4\
\xff\x7b\x7d\x7a\xff\x64\x67\x64\xff\xbf\xc0\xbf\xff\xde\xe0\xdf\
\xff\xdf\xe1\xe0\xff\xcf\xd1\xcf\xff\x51\x53\x4e\xff\x68\x6b\x67\
\xff\x6d\x70\x6c\xff\x73\x74\x72\xff\x5c\x5d\x5d\xff\x5c\x5d\x5c\
\xff\x5c\x5d\x5c\xff\x5c\x5d\x5c\xca\x62\x66\x49\x33\x2e\x1b\xd2\
\x7f\x2f\x1e\xcf\xfa\x2f\x1e\xd0\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\
\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\xfd\x2f\x1e\xcf\xde\x30\x1f\xd0\
\x8f\x2f\x1e\xd0\xfa\x2f\x1e\xd0\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\
\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\xff\x2e\x1e\xd0\xa6\x2f\x19\xe9\
\x0f\x5d\x5e\x5b\x87\x5c\x5d\x5c\xff\x5c\x5d\x5c\xff\x5c\x5d\x5c\
\xff\x5c\x5d\x5c\xff\x5c\x5d\x5c\xff\x5c\x5d\x5c\xff\x5c\x5c\x5c\
\xdd\x65\x65\x65\x2a\xd0\xcc\xf2\x32\x89\x80\xe4\xf5\x32\x21\xd1\
\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\xff\x34\x24\xd1\xff\x49\x3b\xd6\
\xff\x45\x36\xd5\xff\x2e\x1d\xd0\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\
\xff\x2e\x1d\xd0\xff\x41\x32\xd4\xff\x68\x5b\xdc\xfd\xbc\xb7\xef\
\x9c\xd3\xd0\xf4\xbe\x46\x37\xd5\xf9\x2f\x1d\xd0\xff\x2f\x1e\xd0\
\xff\x34\x23\xd1\xff\x69\x5e\xdc\xee\xf4\xf4\xfc\x6b\xfd\xfd\xfe\
\x00\xff\xff\xff\x25\xb6\xaf\xed\xb8\x48\x38\xd4\xff\x2e\x1c\xd0\
\xff\x2f\x1e\xd0\xff\x2b\x19\xcf\xff\x89\x80\xe4\xe1\xea\xea\xf9\
\x3f\xdd\xdc\xf7\x8e\x60\x54\xdb\xf8\x30\x1f\xd0\xff\x2f\x1e\xd0\
\xff\x30\x1f\xd0\xff\x4e\x41\xd7\xff\xb0\xab\xec\xff\x3a\x2a\xd2\
\xff\x5b\x4e\xda\xfc\xd5\xd2\xf5\xf2\x5a\x4e\xd9\xfd\x2e\x1d\xd0\
\xff\x2f\x1e\xd0\xff\x2c\x1b\xcf\xff\x5b\x4e\xd9\xff\x87\x7d\xe2\
\xff\x4b\x3b\xd5\xff\x63\x56\xdb\xff\xaf\xa8\xec\x74\xff\xff\xff\
\x2b\x95\x8f\xe5\xcc\x40\x31\xd3\xff\x2e\x1d\xd0\xff\x2f\x1e\xd0\
\xff\x31\x20\xd0\xff\x47\x38\xd5\xff\x57\x49\xd9\xff\x58\x4a\xd9\
\xff\x58\x4a\xd9\xff\x54\x46\xd8\xff\x7d\x74\xe1\xff\xca\xc8\xf2\
\x97\x88\x86\xa7\x00\x94\x95\x93\x7c\x75\x77\x74\xfe\x66\x69\x65\
\xff\x72\x74\x71\xff\xc3\xc5\xc3\xff\xe1\xe3\xe2\xff\xdf\xe1\xe0\
\xff\xca\xcc\xcb\xff\x64\x67\x64\xff\x81\x83\x80\xff\xd2\xd4\xd3\
\xff\xc6\xc8\xc6\xff\xaa\xab\xa9\xff\x89\x8a\x88\xff\x75\x76\x73\
\xff\x66\x67\x64\xff\x83\x84\x81\xff\x6c\x6d\x6b\xff\x6f\x70\x6e\
\xff\x8d\x8f\x8c\xff\xa7\xa9\xa7\xff\xc6\xc7\xc6\xff\xda\xdc\xdb\
\xff\x81\x82\x7f\xff\x64\x66\x63\xff\xc2\xc3\xc2\xff\xde\xe0\xdf\
\xff\xdf\xe1\xe0\xff\xcf\xd2\xd0\xff\x54\x58\x52\xff\x67\x6b\x67\
\xff\x6b\x6e\x6b\xff\x75\x76\x74\xff\x5c\x5d\x5c\xff\x5c\x5d\x5c\
\xff\x5c\x5d\x5c\xff\x5c\x5d\x5b\xb9\x5c\x5e\x5a\x2a\x2e\x1c\xd1\
\x8c\x2f\x1e\xd0\xfe\x2f\x1e\xd0\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\
\xff\x2f\x1e\xd0\xff\x2f\x1e\xcf\xfa\x2f\x1f\xd0\x99\x30\x1f\xcf\
\x8a\x2f\x1e\xd0\xfa\x2f\x1e\xd0\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\
\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\xc0\x2b\x12\xe6\
\x27\x5d\x5f\x58\x68\x5c\x5d\x5c\xf2\x5c\x5d\x5c\xff\x5c\x5d\x5c\
\xff\x5c\x5d\x5c\xff\x5c\x5d\x5c\xff\x5c\x5d\x5c\xff\x5b\x5c\x5b\
\xf3\x5f\x61\x5f\x5e\xc6\xc3\xe6\x36\x89\x80\xe4\xf4\x32\x21\xd1\
\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\xff\x31\x20\xd0\xff\x39\x28\xd2\
\xff\x40\x2f\xd3\xff\x3f\x2e\xd3\xff\x35\x24\xd1\xff\x2f\x1e\xd0\
\xff\x2f\x1e\xd0\xff\x2d\x1c\xd0\xff\x36\x25\xd1\xff\xac\xa5\xeb\
\xd8\xd2\xcf\xf4\xce\x46\x36\xd5\xf8\x2f\x1d\xd0\xff\x2f\x1e\xd0\
\xff\x34\x23\xd1\xff\x69\x5e\xdc\xee\xf4\xf4\xfc\x6b\xfd\xfd\xfe\
\x00\xff\xff\xff\x25\xb6\xaf\xed\xb8\x48\x38\xd4\xff\x2e\x1c\xd0\
\xff\x2f\x1e\xd0\xff\x2b\x19\xcf\xff\x89\x80\xe3\xe0\xf2\xf2\xfb\
\x52\xba\xb6\xee\xad\x51\x44\xd7\xff\x2d\x1c\xd0\xff\x2f\x1e\xd0\
\xff\x31\x21\xd0\xff\x68\x5e\xdc\xfc\xd1\xce\xf4\xe3\x4f\x40\xd6\
\xfe\x49\x3b\xd6\xff\xa1\x9a\xe8\xff\x3c\x2c\xd3\xff\x2f\x1e\xd0\
\xff\x2f\x1e\xd0\xff\x2a\x19\xcf\xff\x76\x6c\xe0\xf7\xc6\xc2\xf0\
\xef\x61\x54\xda\xf9\x44\x35\xd4\xff\xb1\xab\xed\xad\xff\xff\xff\
\x41\x95\x8e\xe5\xcb\x40\x31\xd3\xff\x2e\x1d\xd0\xff\x2f\x1e\xd0\
\xff\x2f\x1e\xd0\xff\x33\x23\xd1\xff\x36\x26\xd2\xff\x37\x27\xd2\
\xff\x37\x26\xd2\xff\x34\x23\xd1\xff\x6a\x5f\xdc\xff\xc6\xc4\xf0\
\x96\xa7\xa6\xc2\x00\xa2\xa3\xa1\x75\x7a\x7c\x79\xfa\x64\x67\x63\
\xff\x77\x7a\x76\xff\xc6\xc8\xc6\xff\xe1\xe3\xe3\xff\xdf\xe1\xe0\
\xff\xd3\xd5\xd4\xff\x64\x66\x63\xff\x55\x56\x52\xff\x8e\x90\x8d\
\xf8\xaf\xb0\xae\xf1\xa2\xa3\xa2\xfb\x71\x73\x70\xff\x99\x9a\x98\
\xff\xbc\xbe\xbd\xff\xd3\xd4\xd4\xff\xbc\xbe\xbd\xff\x95\x97\x95\
\xff\x79\x7a\x78\xff\x9d\x9e\x9d\xf7\xb5\xb6\xb4\xed\x95\x97\x94\
\xf5\x5d\x5f\x5a\xfe\x65\x66\x63\xff\xc7\xc9\xc7\xff\xdf\xe1\xe0\
\xff\xe0\xe2\xe1\xff\xd2\xd4\xd3\xff\x65\x67\x64\xff\x65\x69\x65\
\xff\x64\x67\x64\xff\x7c\x7d\x7c\xff\x5c\x5d\x5c\xff\x5c\x5d\x5c\
\xff\x5c\x5d\x5c\xff\x5e\x5f\x5b\x94\x41\x36\xaa\x1d\x2f\x1d\xd0\
\xa5\x2f\x1e\xd0\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\
\xff\x2f\x1e\xd0\xff\x2f\x1e\xcf\xec\x30\x1d\xd1\x4b\x30\x1f\xd0\
\x70\x2f\x1e\xcf\xf8\x2f\x1e\xd0\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\
\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\xea\x2d\x1b\xd4\
\x63\x60\x60\x54\x38\x5c\x5d\x5c\xca\x5c\x5d\x5c\xff\x5c\x5d\x5c\
\xff\x5c\x5d\x5c\xff\x5c\x5d\x5c\xff\x5c\x5d\x5c\xff\x5c\x5d\x5c\
\xfd\x5d\x5f\x5d\xc1\xa6\xa4\xbc\x4d\x89\x80\xe4\xf5\x32\x21\xd1\
\xff\x2f\x1e\xd0\xff\x2d\x1c\xd0\xff\x49\x3b\xd6\xff\x95\x8d\xe7\
\xd2\xb3\xab\xed\x7a\xbc\xb7\xef\x98\x81\x76\xe2\xe0\x3c\x2c\xd3\
\xff\x2e\x1d\xd0\xff\x2f\x1e\xd0\xff\x35\x24\xd1\xff\xaa\xa3\xea\
\xe2\xd1\xce\xf3\xd1\x46\x36\xd5\xf8\x2f\x1d\xd0\xff\x2f\x1e\xd0\
\xff\x34\x23\xd1\xff\x69\x5e\xdc\xee\xf4\xf4\xfc\x6b\xfd\xfd\xfe\
\x00\xff\xff\xff\x25\xb6\xaf\xed\xb8\x48\x38\xd4\xff\x2e\x1c\xd0\
\xff\x2f\x1e\xd0\xff\x2b\x19\xcf\xff\x88\x7f\xe3\xdf\xf9\xf9\xfc\
\x6e\x86\x7e\xe2\xc3\x40\x31\xd4\xff\x2e\x1d\xd0\xff\x2f\x1e\xd0\
\xff\x34\x23\xd1\xfe\x94\x8c\xe5\xea\xd6\xd3\xf5\x88\x6d\x61\xde\
\xfa\x39\x29\xd2\xff\x56\x4a\xd8\xff\x33\x22\xd1\xff\x2f\x1e\xd0\
\xff\x2e\x1d\xd0\xff\x34\x23\xd1\xff\x86\x7d\xe3\xdf\xf1\xf0\xfb\
\xc1\x76\x6b\xdf\xeb\x32\x20\xd0\xff\xa2\x9a\xe9\xd3\xfe\xfe\xfe\
\x54\x95\x8e\xe5\xcb\x40\x31\xd3\xff\x2e\x1d\xd0\xff\x2f\x1e\xd0\
\xff\x37\x27\xd2\xff\x8e\x85\xe5\xec\xb5\xaf\xee\x94\xab\xa4\xec\
\x7e\xab\xa4\xec\x7e\xaa\xa3\xec\x86\xca\xc6\xf2\xc0\xea\xea\xf9\
\x8d\xce\xce\xd7\x00\xb4\xb6\xb4\x57\x79\x7b\x78\xe3\x5a\x5c\x59\
\xff\x8c\x8d\x8b\xff\xca\xcc\xca\xff\xb2\xb4\xb1\xff\x89\x8b\x88\
\xfe\x9a\x9b\x99\xf8\x89\x8b\x88\xc4\x95\x95\x92\x8e\xae\xaf\xae\
\xb7\x75\x77\x74\xeb\x96\x98\x96\xfe\xc1\xc3\xc2\xff\xd4\xd6\xd5\
\xff\xd7\xda\xd8\xff\xda\xdc\xdb\xff\xd7\xd8\xd8\xff\xd4\xd5\xd4\
\xff\xc2\xc4\xc3\xff\x9e\xa0\x9e\xfd\x89\x8a\x87\xe4\xac\xac\xaa\
\xa5\x9a\x9b\x99\x86\x8c\x8e\x8b\xb7\x9f\xa1\x9f\xf0\x8e\x90\x8d\
\xfe\xb2\xb3\xb1\xff\xd1\xd3\xd2\xff\x8c\x8e\x8c\xff\x5c\x5f\x5b\
\xff\x53\x55\x51\xff\x87\x87\x87\xff\x5b\x5c\x5b\xff\x5c\x5d\x5c\
\xff\x5c\x5d\x5c\xdf\x5f\x62\x56\x51\x2c\x1b\xda\x3c\x2f\x1e\xd0\
\xce\x2f\x1e\xd0\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\
\xff\x2f\x1e\xcf\xfc\x2e\x1e\xd0\x9c\x2f\x1d\xd2\x14\x30\x1e\xd2\
\x38\x2f\x1e\xd0\xee\x2f\x1e\xd0\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\
\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\xff\x2f\x1d\xd0\
\xa4\x3b\x2c\xb4\x25\x5d\x5e\x5a\x8e\x5c\x5d\x5c\xfb\x5c\x5d\x5c\
\xff\x5c\x5d\x5c\xff\x5c\x5d\x5c\xff\x5c\x5d\x5c\xff\x5c\x5d\x5c\
\xff\x5d\x5e\x5d\xf5\x80\x7f\x8a\xa8\x88\x7f\xe1\xfa\x32\x21\xd1\
\xff\x2f\x1e\xd0\xff\x2d\x1b\xd0\xff\x51\x44\xd7\xff\xa8\xa3\xea\
\xac\xff\xff\xff\x07\xff\xff\xff\x3c\x96\x8f\xe7\xc2\x44\x35\xd4\
\xff\x2d\x1c\xd0\xff\x2f\x1e\xd0\xff\x35\x24\xd1\xff\xaa\xa3\xea\
\xe2\xd3\xcf\xf3\xcf\x46\x36\xd5\xf7\x2f\x1d\xd0\xff\x2f\x1e\xd0\
\xff\x34\x23\xd1\xff\x69\x5d\xdc\xee\xf4\xf4\xfc\x6c\xfc\xfc\xfe\
\x00\xff\xff\xff\x26\xb5\xaf\xed\xb8\x48\x38\xd4\xff\x2e\x1c\xd0\
\xff\x2f\x1e\xd0\xff\x2b\x19\xcf\xff\x88\x7f\xe3\xdc\xf1\xf0\xfa\
\x98\x63\x57\xdc\xda\x33\x22\xd1\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\
\xff\x38\x29\xd2\xfd\xc2\xbd\xf0\xcb\xdc\xd9\xf6\x44\x97\x8f\xe6\
\xea\x32\x21\xd1\xff\x32\x22\xd1\xff\x30\x1f\xd0\xff\x2f\x1e\xd0\
\xff\x2d\x1c\xd0\xff\x44\x35\xd4\xff\x8a\x81\xe4\xb4\xff\xff\xff\
\x71\x87\x7d\xe3\xd2\x3a\x29\xd2\xff\x84\x7a\xe2\xf3\xdc\xd9\xf5\
\x6b\x97\x91\xe6\xcd\x40\x30\xd3\xff\x2e\x1d\xd0\xff\x2f\x1e\xd0\
\xff\x3a\x29\xd2\xff\xa6\x9e\xe9\xdc\xf6\xf6\xfd\x38\xff\xff\xff\
\x0f\xff\xff\xff\x0f\xff\xff\xff\x11\xfb\xfb\xfd\x1f\xf7\xf7\xfc\
\x1b\xc3\xc4\xc6\x00\xe0\xe0\xe1\x23\x6e\x71\x6d\xb0\x39\x3b\x37\
\xff\x68\x6a\x67\xfd\x89\x8a\x88\xe8\x99\x9b\x99\xb1\xb2\xb3\xb1\
\x75\xab\xac\xaa\x43\xc1\xc1\xc0\x69\x93\x94\x92\xc0\x8b\x8d\x8a\
\xed\x72\x74\x72\xfc\x84\x86\x83\xff\xcf\xd1\xd0\xff\xd6\xd8\xd7\
\xff\xdb\xdd\xdc\xff\xd6\xd8\xd7\xff\xd2\xd4\xd3\xff\xd9\xda\xd9\
\xff\xd1\xd3\xd1\xff\x8c\x8e\x8b\xff\x78\x7a\x77\xfa\x8a\x8d\x8a\
\xeb\x9b\x9d\x9b\xb1\xbc\xbd\xbc\x57\xaf\xb0\xae\x3a\xb7\xb8\xb6\
\x66\xa8\xaa\xa8\xa0\x96\x97\x95\xde\x7f\x81\x7e\xfe\x49\x4c\x48\
\xff\x6d\x6f\x6c\xff\x71\x72\x71\xff\x5b\x5c\x5b\xff\x5c\x5d\x5c\
\xfb\x5d\x5e\x5b\x9a\x52\x4b\x82\x1c\x2e\x1d\xd1\x88\x2f\x1e\xd0\
\xfb\x2f\x1e\xd0\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\
\xfe\x30\x1d\xd0\xd0\x30\x1e\xcf\x34\x30\x20\xce\x02\x30\x1d\xd1\
\x12\x30\x1d\xd0\xa6\x2f\x1e\xd0\xfd\x2f\x1e\xd0\xff\x2f\x1e\xd0\
\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\
\xeb\x2e\x1c\xd2\x66\x5e\x5f\x62\x36\x5c\x5d\x5b\xc2\x5c\x5d\x5c\
\xff\x5c\x5d\x5c\xff\x5c\x5d\x5c\xff\x5c\x5d\x5c\xff\x5c\x5d\x5c\
\xff\x5d\x5e\x5d\xfe\x76\x76\x7d\xf6\x88\x7e\xdf\xfe\x32\x21\xd1\
\xff\x2f\x1e\xd0\xff\x2d\x1c\xd0\xff\x4f\x41\xd7\xff\xaa\xa4\xea\
\xc0\xf1\xef\xfb\x43\xee\xed\xfb\x6e\x92\x88\xe6\xd5\x3f\x30\xd3\
\xff\x2e\x1d\xd0\xff\x2f\x1e\xd0\xff\x36\x25\xd1\xff\xab\xa4\xea\
\xe0\xda\xd7\xf5\xbf\x46\x37\xd5\xf4\x2f\x1e\xd0\xff\x2f\x1e\xd0\
\xff\x32\x21\xd1\xff\x5d\x51\xda\xf5\xe2\xe0\xf8\x9f\xe7\xe5\xf9\
\x47\xf0\xef\xfb\x67\xa8\xa1\xea\xd2\x3b\x2b\xd2\xff\x2e\x1d\xd0\
\xff\x2f\x1e\xd0\xff\x2c\x1a\xcf\xff\x8a\x82\xe5\xcd\xe0\xe0\xf7\
\xc8\x5f\x53\xda\xf5\x2e\x1d\xd0\xff\x2f\x1e\xd0\xff\x30\x1f\xd0\
\xff\x4d\x3e\xd6\xfb\xd7\xd4\xf5\xa6\xf0\xef\xfb\x25\xc0\xbb\xf0\
\xc4\x35\x24\xd1\xfe\x2f\x1e\xd0\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\
\xff\x2c\x1b\xcf\xff\x59\x4c\xd9\xff\xa1\x9b\xe9\x90\xff\xff\xff\
\x1a\x95\x8a\xe6\xa9\x4b\x3c\xd6\xff\x61\x54\xdb\xff\xc1\xbc\xf0\
\x88\x9b\x95\xe7\xd4\x3f\x30\xd3\xff\x2e\x1d\xd0\xff\x2f\x1e\xd0\
\xff\x39\x29\xd2\xff\xa2\x9a\xe8\xe5\xe9\xe7\xf9\x68\xe7\xe5\xf9\
\x49\xe6\xe4\xf9\x49\xe2\xe1\xf8\x49\xde\xdd\xf7\x6b\xea\xe9\xfa\
\x8f\xff\xff\xff\x3c\xcc\xcd\xcb\x00\xbc\xbc\xbb\x4f\xae\xae\xac\
\x9b\xb2\xb3\xb1\x6c\x9d\x9e\x9d\x2d\xaa\xab\xaa\x1c\xd0\xd0\xcf\
\x3c\xa7\xa8\xa7\x9d\x88\x89\x87\xe1\xbc\xbe\xbc\xfa\xcf\xd1\xd0\
\xff\xb7\xb9\xb7\xff\x74\x76\x73\xff\x92\x94\x92\xff\xc4\xc6\xc4\
\xff\xd9\xda\xd9\xff\xcf\xd1\xd0\xff\xd0\xd2\xd0\xff\xcf\xd1\xcf\
\xff\x93\x95\x93\xff\x6d\x70\x6c\xff\xa9\xad\xaa\xff\xd0\xd2\xd1\
\xff\xb2\xb4\xb2\xf8\x93\x95\x92\xdd\xa9\xab\xa9\x81\xd8\xd8\xd8\
\x2c\x97\x99\x97\x23\x6a\x6b\x69\xa6\x7b\x7c\x7a\xfc\x8c\x8d\x8c\
\xff\x79\x7a\x78\xff\x5d\x5e\x5d\xff\x5c\x5d\x5c\xff\x5c\x5d\x5c\
\xbf\x60\x62\x58\x33\x30\x1d\xd4\x46\x2f\x1e\xd0\xd3\x2f\x1e\xd0\
\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\
\xe5\x2f\x1e\xd0\x50\x30\x1f\xcf\x06\x28\x17\xd6\x00\x31\x1e\xcd\
\x04\x30\x1e\xcf\x46\x2f\x1e\xd0\xe6\x2f\x1e\xd0\xff\x2f\x1e\xd0\
\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\
\xff\x2f\x1e\xd0\xc6\x31\x1f\xcd\x3f\x5d\x5e\x5c\x61\x5c\x5d\x5c\
\xdd\x5c\x5d\x5c\xff\x5c\x5d\x5c\xff\x5c\x5d\x5c\xff\x5c\x5d\x5c\
\xff\x5e\x5f\x5e\xff\x7a\x7a\x81\xff\x84\x7b\xde\xff\x31\x21\xd1\
\xff\x2f\x1e\xd0\xff\x2e\x1d\xd0\xff\x36\x25\xd2\xff\x4c\x3d\xd7\
\xf9\x52\x43\xd8\xed\x53\x45\xd8\xf2\x45\x35\xd5\xfb\x31\x20\xd1\
\xff\x2f\x1e\xd0\xff\x2e\x1d\xd0\xff\x3e\x2e\xd3\xff\xb0\xa9\xec\
\xc2\xef\xee\xfc\x84\x59\x4d\xd9\xea\x33\x22\xd1\xff\x2f\x1e\xd0\
\xff\x2f\x1e\xd0\xff\x37\x27\xd2\xfe\x51\x44\xd8\xf6\x51\x43\xd8\
\xee\x52\x44\xd8\xf1\x47\x38\xd5\xfb\x30\x1e\xd0\xff\x2f\x1e\xd0\
\xff\x2e\x1d\xd0\xff\x42\x33\xd4\xff\xa8\xa2\xeb\xc1\xc7\xc3\xf1\
\xd5\x54\x46\xd8\xff\x2d\x1b\xcf\xff\x2f\x1e\xd0\xff\x30\x1f\xd0\
\xff\x61\x54\xdb\xf8\xd3\xce\xf4\x60\xff\xff\xff\x14\xd8\xd4\xf5\
\x9c\x50\x41\xd6\xfd\x2f\x1e\xd0\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\
\xff\x2b\x1a\xcf\xff\x6b\x60\xdd\xf5\xd5\xd3\xf3\x75\xff\xff\xff\
\x04\xbb\xb6\xed\x93\x5c\x4f\xd9\xff\x45\x36\xd5\xff\xc3\xbd\xf1\
\xce\xa0\x98\xe8\xea\x3e\x2e\xd3\xff\x2e\x1d\xd0\xff\x2f\x1e\xd0\
\xff\x31\x20\xd0\xff\x49\x3b\xd6\xfd\x53\x45\xd8\xf1\x52\x43\xd8\
\xee\x51\x43\xd8\xee\x4f\x41\xd8\xee\x5f\x52\xdb\xf6\xa2\x9a\xe8\
\xca\xff\xff\xff\x3f\xfc\xfc\xfc\x00\xea\xea\xea\x06\xe2\xe2\xe1\
\x0e\xeb\xeb\xea\x08\x39\x39\x37\x00\xcc\xcc\xcc\x4c\x5e\x60\x5d\
\xcc\x7c\x7f\x7b\xf8\xbe\xc0\xbf\xff\xdb\xdd\xdc\xff\xdf\xe1\xe0\
\xff\xda\xdc\xdb\xff\xb1\xb3\xb1\xff\x6d\x6f\x6b\xff\x76\x78\x75\
\xff\x8a\x8c\x89\xff\xa0\xa2\xa0\xff\x88\x8b\x88\xff\x75\x78\x74\
\xff\x6d\x6f\x6d\xff\xa1\xa3\xa1\xff\xd7\xd9\xd8\xff\xe0\xe2\xe1\
\xff\xda\xdc\xdb\xff\xc2\xc4\xc3\xff\x7f\x81\x7e\xf3\x7d\x7f\x7c\
\xce\x94\x96\x94\x80\x5e\x5f\x5e\xe9\x5f\x60\x5f\xfe\x63\x63\x62\
\xff\x5f\x60\x5f\xff\x5c\x5d\x5c\xff\x5b\x5c\x5b\xd3\x5c\x5e\x5a\
\x53\x33\x23\xcc\x2e\x2f\x1e\xd0\xae\x2f\x1e\xd0\xff\x2f\x1e\xd0\
\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\xeb\x2f\x1f\xd1\
\x64\x2c\x1e\xd5\x0c\x65\x46\xad\x00\x22\x17\xdc\x00\x2c\x1d\xd8\
\x00\x2f\x1e\xd1\x0e\x2f\x1e\xd1\x7b\x2e\x1d\xd0\xf4\x2f\x1e\xd0\
\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\
\xff\x2f\x1e\xd0\xfe\x2f\x1e\xd0\xaa\x36\x2b\xbb\x34\x5c\x5d\x5c\
\x72\x5b\x5c\x5b\xe0\x5c\x5d\x5c\xfe\x5c\x5d\x5c\xff\x5c\x5d\x5c\
\xff\x61\x62\x61\xff\x9b\x9b\xa3\xff\x79\x6f\xdd\xff\x3c\x2c\xd3\
\xff\x3a\x2a\xd3\xff\x3a\x2a\xd3\xff\x3a\x2a\xd3\xff\x3b\x2b\xd3\
\xff\x3c\x2c\xd3\xff\x3c\x2c\xd3\xff\x3b\x2b\xd3\xff\x3a\x2a\xd2\
\xff\x3a\x2a\xd2\xff\x3d\x2c\xd3\xff\x77\x6c\xe0\xf4\xc9\xc4\xf2\
\x75\xff\xff\xff\x2d\xb3\xae\xed\xc6\x52\x44\xd8\xf9\x3d\x2d\xd3\
\xff\x3a\x2a\xd2\xff\x3a\x2a\xd3\xff\x3b\x2c\xd3\xff\x3c\x2c\xd3\
\xff\x3c\x2c\xd3\xff\x3b\x2b\xd3\xff\x3a\x2a\xd2\xff\x3b\x2b\xd2\
\xff\x40\x30\xd4\xfd\x86\x7d\xe3\xef\xe7\xe6\xf9\xaa\x97\x8e\xe5\
\xd4\x4a\x3b\xd5\xff\x39\x28\xd2\xff\x3a\x2a\xd2\xff\x3b\x2b\xd3\
\xff\x76\x69\xe0\xf6\xc7\xc1\xef\x37\xff\xff\xff\x08\xd7\xd4\xf5\
\x5f\x7d\x72\xe1\xfc\x3a\x2a\xd2\xff\x3a\x2a\xd2\xff\x39\x29\xd2\
\xff\x3c\x2d\xd3\xff\x82\x79\xe2\xdf\xff\xff\xfe\x55\x2e\x1c\xc4\
\x00\xd6\xd2\xf3\x88\x6c\x60\xdd\xf9\x3a\x29\xd3\xff\xb8\xb2\xee\
\xfa\x8f\x87\xe4\xfd\x43\x34\xd4\xff\x39\x29\xd2\xff\x3a\x2a\xd2\
\xff\x3a\x2a\xd2\xff\x3b\x2b\xd3\xff\x3c\x2c\xd3\xff\x3c\x2c\xd3\
\xff\x3c\x2c\xd3\xff\x3a\x2a\xd3\xff\x57\x49\xd9\xff\xa4\x9d\xe9\
\xbd\xff\xff\xff\x29\xfe\xfe\xfe\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\xb6\xb8\xb6\x00\xb6\xb8\xb6\x69\x67\x6a\x66\
\xea\x62\x64\x60\xff\x79\x7b\x78\xff\xcb\xcd\xcc\xff\xde\xe0\xdf\
\xff\xda\xdc\xdb\xff\xbe\xc0\xbf\xff\xba\xbc\xbb\xff\xb0\xb2\xb1\
\xff\x92\x94\x91\xff\x82\x84\x80\xff\x8a\x8d\x8a\xff\xae\xb0\xad\
\xff\xbe\xc0\xbe\xff\xc8\xc9\xc8\xff\xdb\xdc\xdb\xff\xe0\xe2\xe1\
\xff\xce\xd0\xcf\xff\x7e\x80\x7d\xff\x60\x63\x5f\xff\x4b\x4e\x49\
\xfd\x88\x8a\x88\xf5\x5f\x60\x5f\xfe\x5c\x5d\x5c\xff\x5c\x5d\x5c\
\xff\x5c\x5d\x5c\xfe\x5c\x5d\x5c\xd4\x5d\x5d\x5d\x5b\x34\x25\xc4\
\x29\x2f\x1e\xd0\x9c\x2f\x1e\xd0\xf9\x2f\x1e\xd0\xff\x2f\x1e\xd0\
\xff\x2f\x1e\xd0\xfc\x2e\x1e\xd0\xe2\x30\x1f\xd0\x64\x32\x21\xd0\
\x0d\x3c\x1c\xbd\x00\x2f\x21\xd5\x00\x00\x00\x00\x00\x2c\x24\xd3\
\x00\x20\x47\xe6\x00\x2e\x1f\xd0\x1c\x2f\x1d\xcf\x98\x2f\x1e\xd0\
\xf6\x2f\x1e\xd0\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\
\xff\x2f\x1e\xd0\xff\x2e\x1e\xcf\xfb\x2f\x1e\xd0\xa4\x3a\x26\xc2\
\x34\x5c\x5a\x5f\x63\x5c\x5d\x5c\xd6\x5c\x5d\x5c\xfd\x5c\x5d\x5c\
\xff\x6a\x6b\x6a\xff\xc5\xc6\xca\xff\xa4\xa0\xda\xff\x98\x93\xd9\
\xff\x98\x92\xd9\xff\x98\x93\xd9\xfd\x9a\x95\xdf\xf2\x9f\x98\xe8\
\xe2\xa0\x99\xea\xdf\xa0\x99\xea\xe0\xa0\x99\xea\xe0\xa0\x99\xea\
\xe0\xa4\x9d\xea\xdf\xb7\xb1\xee\xd5\xd8\xd5\xf5\x7f\xf2\xf2\xfc\
\x17\xff\xff\xff\x01\xed\xec\xfa\x2d\xd0\xcd\xf3\xa1\xb1\xaa\xec\
\xd9\xa1\x9b\xea\xdf\xa0\x99\xea\xe0\xa0\x99\xea\xe0\xa0\x99\xea\
\xe0\xa0\x99\xea\xe0\xa0\x99\xea\xe0\x9f\x99\xe9\xe0\xa8\xa1\xeb\
\xdf\xc3\xbd\xf1\xc1\xe0\xdd\xf7\x5d\xfa\xfb\xfd\x84\xc0\xbb\xf0\
\xda\x9f\x99\xea\xe0\xa0\x99\xea\xe0\xa0\x99\xea\xe0\xa0\x9a\xea\
\xe0\xba\xb5\xf0\xda\xf0\xef\xfb\x65\xff\xff\xff\x05\xdc\xda\xf6\
\x21\xcb\xc7\xf2\xd7\xa0\x99\xea\xe0\xa0\x99\xea\xe0\x9f\x99\xea\
\xe0\xa6\xa0\xeb\xe3\xc6\xc3\xf1\xaf\xff\xff\xff\x2f\xff\xff\xff\
\x02\xe6\xe4\xf9\x86\xb7\xb3\xef\xe2\x9d\x97\xe9\xe0\xc3\xbf\xf0\
\xdf\xb6\xb2\xee\xe0\xa2\x9c\xea\xe0\xa0\x99\xea\xe0\xa0\x99\xea\
\xe0\xa0\x99\xea\xe0\xa0\x99\xea\xe0\xa0\x99\xea\xe0\xa0\x99\xea\
\xe0\xa0\x99\xea\xe0\x9e\x98\xea\xe0\xb1\xac\xee\xe5\xd6\xd4\xf6\
\x92\xff\xff\xff\x09\xff\xff\xff\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\xd2\xd2\xd2\x00\xd4\xd4\xd4\x2a\x70\x71\x6e\
\xcb\x67\x6a\x66\xfe\x66\x68\x65\xff\x7c\x7e\x7b\xff\xd1\xd3\xd1\
\xff\xc9\xcb\xca\xff\xb3\xb4\xb3\xff\xde\xe0\xdf\xff\xde\xe0\xdf\
\xff\xd0\xd2\xd1\xff\xb8\xb9\xb8\xff\xca\xcc\xcb\xff\xde\xe0\xdf\
\xff\xdc\xde\xdd\xff\xbc\xbe\xbd\xff\xca\xcc\xcb\xff\xd6\xd8\xd7\
\xff\x7d\x7f\x7b\xff\x63\x66\x63\xff\x65\x68\x64\xff\x6f\x71\x6e\
\xff\x78\x79\x78\xff\x5e\x5f\x5e\xff\x5c\x5d\x5c\xff\x5c\x5d\x5c\
\xf8\x5b\x5d\x5b\xc7\x5b\x5c\x5e\x4a\x31\x20\xca\x2d\x30\x1e\xd0\
\xa0\x2f\x1e\xcf\xf9\x2f\x1e\xd0\xff\x2f\x1e\xd0\xff\x2f\x1e\xcf\
\xf7\x2f\x1e\xcf\xbf\x30\x1f\xd0\x47\x34\x23\xd3\x08\x2b\x25\xec\
\x00\x33\x21\xcf\x00\x00\x00\x00\x00\x00\x00\x00\x00\x2a\x2a\xd4\
\x00\x2d\x23\xd1\x00\x00\xb3\xe8\x00\x2e\x20\xd2\x1e\x2f\x1f\xd0\
\x96\x2f\x1e\xcf\xf3\x2f\x1e\xd0\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\
\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\xff\x2f\x1d\xd0\xfc\x30\x1e\xd0\
\xb2\x30\x1f\xce\x3e\x59\x57\x68\x4b\x5c\x5d\x5c\xbe\x5c\x5d\x5c\
\xf5\x5d\x5e\x5d\xff\x65\x66\x65\xff\x65\x66\x67\xff\x65\x66\x67\
\xff\x65\x66\x66\xff\x65\x66\x66\xf7\x68\x69\x6a\xb5\x77\x76\x7c\
\x4b\xab\xaa\xbc\x19\xe0\xde\xfb\x0e\xe1\xdf\xfc\x0e\xdb\xd9\xf7\
\x0f\xca\xc7\xf3\x0a\xc0\xba\xef\x06\xe1\xde\xf7\x03\xfd\xff\xfe\
\x01\xeb\xeb\xfa\x00\xfa\xf9\xfd\x01\xdb\xd9\xf5\x04\xc5\xc0\xf1\
\x07\xd9\xd7\xf6\x0e\xdb\xd9\xf7\x0f\xdb\xd9\xf7\x0f\xdb\xd9\xf7\
\x0f\xdb\xd9\xf7\x0f\xdb\xd9\xf7\x0f\xda\xd7\xf6\x0e\xcf\xcb\xf3\
\x0a\xc8\xc3\xf2\x05\xed\xeb\xfa\x02\xfd\xfd\xfe\x09\xe7\xe5\xf9\
\x0f\xda\xd8\xf6\x0f\xdb\xd9\xf7\x0f\xdb\xd9\xf7\x0f\xdb\xd9\xf7\
\x0f\xe4\xe3\xf9\x0e\xf9\xf9\xfe\x07\xff\xff\xff\x00\xef\xed\xfb\
\x02\xe9\xe8\xfa\x0c\xdb\xd9\xf7\x0f\xdb\xd9\xf7\x0f\xdb\xd8\xf6\
\x0f\xde\xdc\xf7\x0f\xe7\xe5\xf9\x0a\xff\xff\xff\x01\xff\xff\xff\
\x00\xf5\xf4\xfc\x09\xe4\xe2\xf8\x0f\xda\xd8\xf6\x0f\xe7\xe5\xf9\
\x0f\xe2\xe1\xf8\x0f\xdc\xd9\xf7\x0f\xdb\xd9\xf7\x0f\xdb\xd9\xf7\
\x0f\xdb\xd9\xf7\x0f\xdb\xd9\xf7\x0f\xdb\xd9\xf7\x0f\xdb\xd9\xf7\
\x0f\xdb\xd9\xf7\x0f\xda\xd8\xf6\x0f\xe2\xe0\xf8\x0f\xef\xee\xfb\
\x09\xa5\xa1\xe8\x00\xff\xff\xff\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\xf3\xf3\xf3\x00\xf9\xf9\xf9\x03\xba\xba\xba\
\x72\x6f\x71\x6e\xe8\x66\x69\x65\xff\x62\x65\x60\xff\x95\x98\x95\
\xff\x9e\x9f\x9e\xff\xcd\xce\xcd\xff\xdd\xdf\xde\xff\xe1\xe3\xe2\
\xff\xcf\xd0\xcf\xff\xb0\xb2\xb1\xff\xcb\xcd\xcc\xff\xe1\xe3\xe2\
\xff\xdf\xe1\xe0\xff\xcb\xcd\xcb\xff\xb7\xb9\xb7\xff\x92\x93\x91\
\xff\x6a\x6d\x6a\xff\x65\x68\x65\xff\x68\x6a\x67\xff\x83\x83\x83\
\xff\x61\x61\x61\xff\x5c\x5d\x5c\xfe\x5c\x5d\x5c\xe7\x5c\x5d\x5b\
\x99\x56\x57\x6a\x2f\x30\x20\xce\x3c\x2e\x1e\xd0\xb3\x2f\x1d\xd0\
\xfd\x2f\x1e\xd0\xff\x2f\x1e\xd0\xfc\x2f\x1e\xd0\xe4\x2f\x1d\xd0\
\x8f\x2f\x1e\xd1\x25\x27\x38\xd4\x01\x00\x40\xbb\x00\x34\x23\xd3\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x2a\x2a\xd4\x00\x51\x02\xf9\x00\x1b\x30\xb4\x00\x33\x1d\xd3\
\x19\x30\x1e\xcf\x87\x2f\x1d\xcf\xe9\x2f\x1e\xd0\xff\x2f\x1e\xd0\
\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\
\xfe\x2f\x1e\xd0\xcf\x31\x1f\xcf\x5d\x50\x4a\x87\x36\x5c\x5e\x5c\
\x97\x5b\x5d\x5b\xdf\x5c\x5d\x5c\xfc\x5c\x5d\x5c\xff\x5c\x5d\x5c\
\xff\x5c\x5d\x5c\xff\x5c\x5d\x5c\xff\x5c\x5d\x5c\xff\x5c\x5c\x5c\
\xd8\x5d\x5d\x5d\x72\x5e\x5e\x5e\x26\x5d\x5c\x5d\x06\x5d\x5d\x5d\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\xff\xff\xff\x00\xff\xff\xff\
\x00\xff\xff\xff\x00\xfe\xfe\xfe\x00\xfe\xfe\xfe\x00\xfe\xfe\xfe\
\x00\xfe\xfe\xfe\x00\xfe\xfe\xfe\x00\xfe\xfe\xfe\x00\xfe\xfe\xfe\
\x00\xfe\xfe\xfe\x00\xff\xff\xff\x00\xfe\xfe\xfe\x00\xfe\xfe\xfe\
\x00\xfe\xfe\xfe\x00\xfe\xfe\xfe\x00\xfe\xfe\xfe\x00\xfe\xfe\xfe\
\x00\xfe\xfe\xfe\x00\xff\xff\xff\x00\xff\xff\xff\x00\xff\xff\xff\
\x00\xff\xff\xff\x00\xfe\xfe\xfe\x00\xfe\xfe\xfe\x00\xfe\xfe\xfe\
\x00\xfe\xfe\xfe\x00\xfe\xfe\xfe\x00\xff\xff\xff\x00\xff\xff\xff\
\x00\xfe\xfe\xfe\x00\xfe\xfe\xfe\x00\xfe\xfe\xfe\x00\xfe\xfe\xfe\
\x00\xfe\xfe\xfe\x00\xfe\xfe\xfe\x00\xfe\xfe\xfe\x00\xfe\xfe\xfe\
\x00\xfe\xfe\xfe\x00\xfe\xfe\xfe\x00\xfe\xfe\xfe\x00\xfe\xfe\xfe\
\x00\xfe\xfe\xfe\x00\xfe\xfe\xfe\x00\xfe\xfe\xfe\x00\xfe\xfe\xfe\
\x00\xfe\xfe\xfe\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\xff\xff\xff\x00\xd9\xd9\xd9\x00\xe1\xe1\xe1\
\x0d\x9a\x9c\x9a\x88\x70\x73\x6f\xe7\x61\x64\x5f\xfe\x43\x44\x3f\
\xff\x84\x85\x83\xff\xaa\xac\xaa\xff\xb5\xb7\xb5\xff\xc9\xcb\xc9\
\xff\xc4\xc6\xc5\xff\xa7\xa9\xa7\xff\xc4\xc6\xc4\xff\xcb\xcd\xcb\
\xff\xb9\xbb\xb9\xff\xb0\xb2\xb0\xff\x89\x8b\x88\xff\x52\x54\x51\
\xff\x5d\x60\x5c\xff\x6b\x6e\x6a\xff\x88\x89\x87\xff\x67\x68\x67\
\xff\x5c\x5d\x5c\xf3\x5c\x5e\x5b\xc3\x5c\x5e\x5b\x66\x42\x37\xa4\
\x22\x30\x1e\xcf\x5a\x2f\x1e\xd0\xcc\x2e\x1e\xd0\xff\x2f\x1e\xd0\
\xfe\x2f\x1e\xd0\xee\x2f\x1d\xd0\xbc\x30\x1f\xd1\x56\x35\x20\xda\
\x0a\x66\x3f\xb6\x00\x0d\x00\xf4\x00\x2a\x2a\xd4\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x46\x00\xb7\x00\x22\x32\xe2\
\x00\x33\x1a\xce\x12\x30\x1e\xd0\x6c\x2f\x1e\xd0\xd4\x2f\x1e\xd0\
\xfa\x2f\x1e\xd0\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\
\xff\x2f\x1e\xd0\xff\x2f\x1d\xd0\xec\x2f\x1f\xd0\x84\x39\x2b\xba\
\x3e\x59\x5a\x64\x5d\x5c\x5f\x5a\xb3\x5c\x5d\x5c\xe6\x5c\x5d\x5c\
\xfe\x5c\x5d\x5c\xff\x5c\x5d\x5c\xff\x5c\x5d\x5c\xff\x5c\x5d\x5c\
\xff\x5c\x5d\x5c\xf7\x5c\x5d\x5c\xba\x5c\x5c\x5c\x5f\x5c\x5d\x5c\
\x27\x5c\x5f\x5c\x08\x5c\x5e\x5c\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xff\xff\xff\
\x00\xeb\xeb\xea\x0d\xb4\xb5\xb2\x70\x62\x64\x60\xbd\x4c\x4e\x4a\
\xf1\x5e\x61\x5d\xff\x64\x67\x63\xff\x61\x63\x5f\xff\x70\x72\x6e\
\xff\x8d\x90\x8d\xff\x82\x83\x81\xff\x91\x93\x90\xff\x75\x77\x73\
\xff\x5d\x60\x5c\xff\x65\x67\x64\xff\x5a\x5d\x59\xff\x4b\x4c\x49\
\xff\x5e\x60\x5d\xff\x82\x83\x82\xff\x69\x69\x68\xf3\x5c\x5d\x5b\
\xcd\x5d\x5f\x5a\x8c\x54\x54\x74\x2e\x30\x21\xcc\x3b\x2f\x1e\xd0\
\x8e\x2f\x1e\xd0\xed\x2f\x1e\xd0\xfe\x2f\x1e\xd0\xed\x2f\x1f\xd0\
\xc2\x30\x1f\xd1\x75\x32\x1c\xd0\x1d\x39\x0f\xc0\x01\x34\x18\xcb\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x31\x1f\xd4\x00\x32\x20\xd6\x06\x31\x1e\xd1\x43\x2f\x1e\xcf\
\xa6\x2f\x1e\xcf\xe5\x2f\x1e\xd0\xfe\x2f\x1e\xd0\xff\x2f\x1e\xd0\
\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\xff\x2e\x1d\xcf\xfc\x30\x1d\xd0\
\xc7\x30\x1e\xd1\x62\x40\x35\xa6\x42\x5c\x5a\x60\x6b\x5c\x5d\x5a\
\xb9\x5c\x5d\x5b\xe4\x5c\x5d\x5c\xff\x5c\x5d\x5c\xff\x5c\x5d\x5c\
\xff\x5c\x5d\x5c\xff\x5c\x5d\x5c\xff\x5c\x5d\x5c\xf5\x5c\x5d\x5c\
\xbc\x5c\x5d\x5c\x66\x5b\x5d\x5b\x31\x5d\x5e\x5d\x0e\x71\x6c\x71\
\x01\x65\x63\x65\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\xff\xff\xff\x00\xff\xff\xff\x01\xe7\xe8\xe7\x1f\xa9\xab\xa8\
\x8c\x70\x72\x6f\xdb\x73\x75\x72\xfd\x66\x69\x65\xff\x5d\x60\x5b\
\xff\x52\x54\x50\xff\x4d\x4e\x4b\xff\x54\x56\x53\xff\x5b\x5f\x5a\
\xff\x64\x67\x63\xff\x70\x73\x6f\xff\x6b\x6e\x6a\xff\x80\x81\x7f\
\xff\x79\x79\x79\xeb\x60\x61\x5f\xc5\x5d\x5e\x59\x87\x57\x56\x6b\
\x3b\x34\x25\xc8\x33\x30\x1f\xd0\x6f\x2f\x1e\xd0\xd5\x2e\x1d\xd0\
\xfb\x2f\x1e\xd0\xe2\x2e\x1e\xd0\xba\x2f\x1f\xcf\x75\x2e\x25\xd3\
\x21\x17\x4a\xdd\x01\x25\x33\xd6\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x33\x1f\xcf\x00\x33\x20\xcf\
\x13\x30\x1d\xcf\x61\x2f\x1d\xd0\xb8\x2f\x1e\xd0\xee\x2f\x1e\xd0\
\xfe\x2f\x1e\xd0\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\
\xff\x30\x1d\xd0\xf7\x2f\x1e\xd1\xb9\x2e\x1c\xd1\x63\x42\x39\xa2\
\x44\x58\x5a\x61\x6a\x5c\x5e\x59\xa9\x5c\x5d\x5c\xd9\x5c\x5d\x5c\
\xf7\x5c\x5d\x5c\xff\x5c\x5d\x5c\xff\x5c\x5d\x5c\xff\x5c\x5d\x5c\
\xff\x5c\x5d\x5c\xf8\x5c\x5d\x5c\xcb\x5d\x5e\x5d\x84\x5d\x5d\x5d\
\x49\x5c\x5c\x5c\x22\x5b\x59\x5b\x06\x51\x4a\x51\x00\x58\x55\x58\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\xff\xff\xff\x00\xff\xff\xff\x00\xdd\xdc\xdd\
\x0b\xba\xba\xba\x52\x91\x92\x91\x9b\x75\x77\x74\xbd\x6b\x6e\x68\
\xc9\x78\x7c\x77\xb9\x8b\x8d\x8a\xb1\x76\x78\x75\xdf\x6b\x6d\x6a\
\xfd\x6d\x6f\x6c\xff\x7c\x7d\x7b\xf7\x85\x86\x84\xdd\x6c\x6d\x6b\
\xb4\x5d\x5e\x57\x6e\x52\x4e\x77\x37\x2f\x20\xcd\x36\x2e\x1d\xd2\
\x70\x2e\x1d\xd0\xc4\x2f\x1e\xd0\xec\x2f\x1e\xd0\xd0\x30\x1c\xcf\
\x9f\x31\x1e\xd0\x5c\x30\x22\xd2\x1c\x30\x21\xd2\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x2e\x1d\xd0\x00\x2e\x1d\xd0\x25\x2e\x1d\xd0\x73\x2f\x1e\xd0\
\xbb\x2f\x1e\xd0\xed\x2f\x1e\xd0\xfe\x2f\x1e\xd0\xff\x2f\x1e\xd0\
\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\xff\x2f\x1d\xcf\xf7\x2e\x1d\xd0\
\xb2\x2c\x1b\xd3\x6b\x3b\x2e\xb4\x45\x57\x55\x6b\x5c\x5c\x5e\x59\
\x8a\x5d\x5e\x5a\xc2\x5c\x5d\x5c\xed\x5c\x5d\x5c\xfd\x5c\x5d\x5c\
\xff\x5c\x5d\x5c\xff\x5c\x5d\x5c\xff\x5c\x5d\x5c\xff\x5c\x5d\x5c\
\xe4\x5c\x5d\x5c\xac\x5c\x5d\x5c\x75\x5c\x5f\x5c\x44\x5f\x60\x5f\
\x1a\x62\x61\x62\x07\x62\x61\x62\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\xff\xff\xff\x00\xff\xff\xff\x03\xff\xff\xff\x1e\xec\xec\xec\
\x45\xa4\xa4\xa4\x5e\x6f\x70\x6f\x83\x7e\x7e\x7e\xcb\x8a\x8b\x8a\
\xe3\x86\x87\x85\xbe\x6e\x6f\x69\x87\x58\x5a\x58\x54\x45\x40\x8c\
\x2b\x2d\x1d\xd4\x44\x2f\x1e\xd2\x80\x2f\x1e\xd0\xba\x2f\x1d\xcf\
\xd5\x2f\x1d\xcf\xac\x2f\x1e\xcf\x77\x2f\x1e\xcf\x3b\x42\x28\xd1\
\x06\x45\x29\xd1\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x33\x30\xcb\x00\x3c\x4b\xbf\x01\x2e\x1e\xd3\
\x2c\x2e\x1e\xd0\x6f\x2f\x1e\xd0\xa9\x2f\x1e\xd0\xe6\x2f\x1e\xd0\
\xfd\x2f\x1e\xd0\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\
\xff\x2f\x1e\xd0\xf6\x2f\x1e\xd0\xc2\x2d\x1c\xd3\x82\x31\x23\xc8\
\x58\x4c\x46\x85\x4e\x5c\x5d\x5b\x6e\x5d\x5f\x59\x93\x5d\x5e\x5b\
\xc4\x5c\x5d\x5c\xf1\x5c\x5d\x5c\xff\x5c\x5d\x5c\xff\x5c\x5d\x5c\
\xff\x5c\x5d\x5c\xff\x5c\x5d\x5c\xfc\x5c\x5e\x5c\xd8\x5d\x5e\x5d\
\xa0\x5c\x5d\x5c\x7a\x5b\x5c\x5b\x55\x5e\x5e\x5e\x28\x69\x69\x6a\
\x07\x69\x69\x69\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x55\x4e\x55\x00\x49\x38\x49\
\x00\x5b\x58\x5c\x06\x5c\x5d\x5b\x25\x59\x5a\x58\x59\x58\x59\x58\
\x84\x5a\x5b\x5a\xab\x5b\x5c\x5b\xb0\x5a\x5b\x57\x8d\x57\x59\x55\
\x61\x4b\x49\x6d\x35\x2f\x20\xc6\x36\x2c\x1b\xd4\x5f\x2f\x1d\xd1\
\x84\x2e\x1f\xd0\xa1\x2f\x1e\xd0\x9c\x2f\x1e\xd0\x7d\x2f\x1e\xcf\
\x4d\x35\x1c\xd0\x14\x38\x1b\xd1\x01\x37\x1c\xd0\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x40\x0c\xc2\
\x00\x43\x07\xbe\x02\x33\x20\xce\x1d\x2f\x1f\xcf\x5c\x2e\x1f\xd0\
\x90\x2f\x1e\xd0\xc4\x2f\x1e\xd0\xf6\x2f\x1e\xd0\xff\x2f\x1e\xd0\
\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\xfc\x2f\x1e\xd0\
\xdf\x2e\x1d\xd2\xa4\x2e\x1d\xd1\x76\x36\x28\xbe\x5d\x4f\x48\x84\
\x53\x5e\x5e\x5c\x68\x5d\x5f\x57\x8a\x5c\x5e\x59\xb1\x5c\x5e\x5b\
\xde\x5c\x5d\x5c\xfb\x5c\x5d\x5c\xff\x5c\x5d\x5c\xff\x5c\x5d\x5c\
\xff\x5c\x5d\x5c\xfa\x5c\x5d\x5c\xe4\x5d\x5d\x5c\xb6\x5e\x5e\x5d\
\x8c\x5c\x5e\x5d\x70\x5b\x5e\x5b\x53\x5a\x5e\x5a\x2c\x5c\x5b\x5c\
\x0b\x5c\x5c\x5c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x6d\x6d\x70\x00\x64\x64\x66\x04\x5b\x5b\x5b\x2a\x5c\x5e\x5c\
\x58\x5c\x5e\x5c\x66\x5d\x5d\x5c\x6f\x5c\x5d\x5a\x80\x5c\x5d\x5b\
\x7a\x5d\x5d\x5c\x59\x55\x50\x7a\x34\x37\x28\xbf\x3d\x2e\x1d\xd3\
\x52\x2f\x1c\xd4\x55\x30\x1d\xd1\x65\x30\x1d\xcf\x76\x30\x1d\xd0\
\x6c\x2f\x1d\xd0\x3e\x30\x1f\xcd\x14\x40\x2d\xcd\x02\x09\x00\xc1\
\x00\xff\xff\xff\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x31\x22\xcd\x00\x31\x22\xcd\
\x10\x2f\x1e\xcf\x35\x2e\x1e\xd0\x66\x2e\x1e\xd0\x93\x2f\x1e\xd0\
\xc4\x2f\x1e\xd0\xf1\x2f\x1e\xd0\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\
\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\xf6\x2f\x1e\xd1\xd8\x2e\x1c\xd3\
\xab\x2f\x1c\xd2\x81\x36\x26\xc2\x69\x42\x3b\x9c\x5b\x58\x57\x69\
\x56\x5e\x61\x55\x6b\x5e\x60\x59\x8d\x5d\x5e\x5b\xb0\x5c\x5d\x5b\
\xd4\x5c\x5d\x5b\xf7\x5c\x5d\x5c\xff\x5c\x5d\x5c\xff\x5c\x5d\x5c\
\xfe\x5c\x5d\x5c\xf4\x5c\x5d\x5c\xdf\x5c\x5d\x5c\xbf\x5c\x5d\x5c\
\x9d\x5c\x5d\x5c\x81\x5c\x5e\x5c\x68\x5c\x5d\x5c\x4e\x5c\x5c\x5c\
\x31\x60\x5f\x60\x14\x67\x67\x67\x02\x64\x64\x64\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x72\x70\x72\x00\x76\x73\x76\x02\x60\x5f\x60\x18\x5c\x60\x5c\
\x2c\x5e\x5e\x5e\x33\x60\x60\x5e\x38\x5c\x5c\x5c\x48\x5c\x5d\x5c\
\x56\x5c\x5f\x5c\x4d\x58\x5a\x62\x3a\x4a\x41\x89\x29\x38\x28\xc2\
\x20\x2a\x14\xe5\x1f\x30\x1b\xda\x2d\x30\x1e\xd3\x3e\x30\x1e\xcf\
\x47\x30\x1e\xce\x3c\x32\x1d\xd0\x22\x39\x1c\xd1\x0b\x4a\x1a\xce\
\x01\x43\x1b\xcf\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x2f\x1e\xcf\x00\x30\x1e\xce\x01\x2f\x1e\xcf\x13\x2e\x1e\xd0\
\x32\x2f\x1d\xd0\x58\x30\x1e\xd0\x86\x2f\x1e\xd0\xb8\x2f\x1e\xcf\
\xe0\x2f\x1e\xd0\xf9\x2f\x1e\xd0\xff\x2f\x1e\xd0\xff\x2f\x1e\xd0\
\xff\x2f\x1e\xd0\xf8\x2f\x1e\xd1\xe2\x2e\x1d\xd2\xc4\x2e\x1b\xd4\
\xa4\x30\x1e\xd1\x80\x38\x2a\xbd\x64\x46\x3c\x9c\x55\x52\x4f\x77\
\x52\x5b\x5e\x5b\x57\x5e\x60\x57\x72\x5e\x5f\x5a\x9a\x5d\x5e\x5b\
\xbe\x5c\x5d\x5b\xd7\x5c\x5d\x5c\xed\x5b\x5c\x5b\xfd\x5c\x5d\x5c\
\xff\x5c\x5d\x5c\xfb\x5c\x5d\x5c\xee\x5c\x5d\x5c\xdb\x5c\x5d\x5c\
\xc7\x5c\x5d\x5c\xb3\x5c\x5d\x5c\x9f\x5b\x5e\x5b\x85\x5d\x5d\x5d\
\x69\x5c\x5c\x5c\x4e\x5c\x5f\x5c\x38\x5b\x5f\x5b\x29\x59\x5d\x59\
\x1d\x5e\x5e\x5e\x10\x67\x66\x67\x05\x67\x66\x67\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x62\x62\x62\x00\x62\x62\x62\x04\x5e\x5e\x5e\x09\x51\x67\x51\
\x05\x68\x71\x68\x07\x60\x66\x60\x12\x60\x62\x60\x16\x5d\x60\x5d\
\x1e\x5e\x5e\x5e\x22\x60\x60\x5d\x22\x5d\x5d\x5d\x16\x57\x56\x57\
\x04\xff\xff\x00\x00\x28\x0a\xee\x01\x2d\x14\xe3\x0a\x32\x1f\xd5\
\x13\x32\x1f\xd0\x18\x32\x1f\xd1\x18\x31\x21\xd2\x09\x31\x21\xd2\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x3f\x20\xd7\
\x00\x46\x21\xda\x01\x37\x1f\xd3\x0d\x2f\x1e\xcf\x2a\x2e\x1e\xcf\
\x45\x2f\x1e\xd0\x62\x30\x1e\xd0\x8f\x2f\x1e\xcf\xc3\x2f\x1e\xcf\
\xe4\x2f\x1e\xd0\xf6\x2f\x1e\xd0\xfe\x2f\x1e\xd0\xff\x2f\x1e\xd0\
\xff\x2f\x1e\xd0\xf4\x2f\x1e\xd1\xdc\x2e\x1c\xd2\xc2\x2d\x1b\xd3\
\xab\x2d\x1b\xd3\x95\x32\x20\xca\x77\x3c\x31\xb1\x60\x4a\x41\x8f\
\x51\x51\x4c\x79\x52\x57\x55\x68\x57\x5c\x5d\x5a\x5d\x5d\x60\x57\
\x72\x5d\x5f\x5a\x94\x5c\x5e\x5b\xb3\x5c\x5d\x5b\xd1\x5c\x5d\x5b\
\xe4\x5b\x5d\x5b\xef\x5b\x5d\x5b\xf4\x5b\x5d\x5b\xef\x5b\x5c\x5b\
\xe6\x5c\x5d\x5c\xdc\x5c\x5d\x5c\xd2\x5c\x5d\x5c\xc6\x5b\x5c\x5b\
\xbb\x5c\x5d\x5c\xb1\x5b\x5c\x5b\xa7\x5c\x5d\x5c\x9d\x5c\x5d\x5c\
\x8f\x5c\x5d\x5c\x81\x5c\x5e\x5c\x74\x5d\x5d\x5d\x66\x5d\x5d\x5d\
\x58\x5b\x5e\x5b\x4d\x5c\x5f\x5c\x45\x5e\x5e\x5e\x3e\x5d\x5d\x5d\
\x3a\x5b\x5e\x5b\x38\x5e\x5e\x5d\x36\x5c\x5f\x5c\x37\x5d\x5e\x5c\
\x3a\x5d\x60\x5a\x3d\x5c\x5f\x5c\x3c\x5d\x60\x5d\x3e\x5c\x5e\x5c\
\x41\x5e\x5e\x5e\x43\x5d\x5e\x5d\x47\x5c\x5f\x5c\x49\x5c\x5d\x5c\
\x3e\x5d\x5d\x5d\x30\x60\x60\x60\x1e\x5d\x5d\x5d\x0d\x3f\x4e\x3f\
\x04\x62\x6a\x62\x04\x5e\x65\x5e\x09\x5a\x63\x5a\x02\x5b\x64\x5b\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xff\
\x00\x00\x00\xff\x00\x00\x00\xff\x01\x00\x00\xff\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x35\x23\xcf\
\x00\x37\x24\xcf\x03\x32\x20\xd0\x14\x2e\x1d\xcf\x2a\x2f\x1d\xd0\
\x41\x2f\x1d\xcf\x57\x2f\x1e\xd0\x72\x2f\x1e\xd0\x9a\x30\x1d\xd0\
\xc5\x2f\x1e\xd0\xea\x2e\x1d\xd0\xf8\x2e\x1e\xd0\xfd\x2e\x1e\xcf\
\xff\x2f\x1e\xd0\xfd\x2f\x1e\xd0\xed\x2f\x1e\xd1\xd8\x2e\x1d\xd1\
\xc5\x2e\x1c\xd2\xb4\x2f\x1e\xd1\xa5\x30\x1e\xcf\x95\x33\x22\xc7\
\x83\x39\x2c\xb7\x70\x41\x35\xa5\x60\x4a\x43\x8c\x50\x52\x51\x74\
\x4a\x55\x55\x6a\x51\x58\x58\x65\x58\x59\x5b\x61\x60\x5a\x5b\x5d\
\x68\x5c\x5d\x5c\x6e\x5e\x5f\x5a\x75\x5d\x5e\x5a\x81\x5c\x5d\x5a\
\x8e\x5d\x5e\x5b\x9b\x5c\x5d\x5b\xa7\x5e\x5e\x5c\xac\x5d\x5e\x5c\
\xae\x5d\x5e\x5c\xac\x5d\x5e\x5b\xa9\x5e\x5d\x5c\xa5\x5d\x5f\x5c\
\x9e\x5d\x60\x5b\x97\x5d\x5f\x5b\x90\x5d\x5e\x5b\x86\x5e\x5f\x5b\
\x7d\x5c\x5e\x5c\x75\x5b\x5d\x5f\x6c\x5a\x5b\x63\x62\x5b\x59\x67\
\x56\x5a\x5b\x65\x48\x5b\x5c\x63\x3f\x5c\x5d\x61\x39\x5e\x5c\x5e\
\x33\x5f\x5f\x5f\x2b\x5e\x5e\x5e\x25\x5d\x60\x5d\x20\x5c\x5d\x5c\
\x1b\x5c\x5c\x5c\x15\x5f\x5f\x5f\x0c\x5c\x5c\x5c\x03\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x67\x00\xff\x00\xc2\x00\xff\
\x00\x2c\x1f\xcb\x03\x30\x20\xcf\x0a\x2f\x1d\xcf\x17\x30\x1d\xd1\
\x26\x2f\x1f\xd0\x35\x2e\x1d\xd0\x49\x30\x1e\xcf\x5e\x2f\x1f\xcf\
\x72\x2f\x1e\xd0\x89\x30\x1e\xd0\xa9\x30\x1e\xd0\xc6\x2f\x1d\xcf\
\xe2\x2e\x1e\xcf\xf4\x2f\x1d\xd0\xf7\x2e\x1d\xd0\xf4\x2e\x1e\xd0\
\xec\x2e\x1e\xd0\xe1\x2f\x1d\xd1\xd6\x2e\x1d\xd1\xcd\x2e\x1d\xd1\
\xc3\x2f\x1d\xd0\xb9\x30\x1f\xce\xaf\x30\x1f\xcc\xa7\x31\x20\xcb\
\x9f\x30\x21\xca\x98\x32\x23\xc8\x93\x33\x25\xc4\x8f\x36\x26\xc0\
\x89\x38\x28\xbb\x86\x39\x2a\xb6\x83\x3b\x2e\xb4\x80\x3c\x2f\xb0\
\x7f\x3c\x30\xb0\x7f\x3c\x30\xaf\x80\x3d\x30\xaf\x84\x3d\x30\xaf\
\x87\x3b\x30\xb0\x8a\x3a\x2d\xb3\x90\x39\x2b\xb5\x95\x3a\x2d\xb5\
\x89\x3b\x2f\xb2\x74\x3c\x31\xb1\x5e\x40\x35\xae\x45\x41\x36\xa8\
\x2e\x41\x35\xaa\x21\x4a\x3a\xa3\x17\x54\x46\x91\x0d\x60\x56\x61\
\x06\x62\x62\x62\x03\x56\x56\x56\x01\x57\x57\x57\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x31\x1a\xcd\x00\x31\x1b\xcd\x02\x34\x1e\xcc\x06\x32\x1f\xd0\
\x0b\x2e\x1f\xd0\x10\x30\x1d\xd0\x18\x30\x1f\xd1\x20\x2f\x1d\xcf\
\x27\x2e\x1d\xcf\x2e\x30\x1d\xcf\x3b\x30\x1f\xd0\x4b\x2f\x1e\xd0\
\x59\x2f\x1e\xd0\x66\x30\x1e\xd0\x71\x30\x1f\xd0\x7b\x30\x1e\xcf\
\x83\x2f\x1d\xcf\x87\x2f\x1d\xcf\x86\x2e\x1e\xd0\x84\x2e\x1e\xd0\
\x82\x2e\x1e\xd1\x80\x2e\x1e\xd1\x7e\x2e\x1e\xd1\x7b\x2e\x1e\xd1\
\x78\x2e\x1d\xd1\x76\x2e\x1d\xd1\x73\x2e\x1c\xd2\x70\x2e\x1c\xd1\
\x6a\x2e\x1b\xd2\x62\x2f\x1b\xd2\x59\x2f\x1d\xd4\x4f\x2e\x1d\xd5\
\x43\x2c\x1c\xd5\x38\x2f\x1a\xd6\x2c\x2d\x18\xd8\x1f\x2c\x19\xda\
\x19\x2b\x19\xd9\x14\x2b\x1a\xdc\x10\x2f\x1b\xe1\x0a\x26\x13\xe6\
\x06\x2a\x11\xec\x04\x33\x0d\xf0\x02\x39\x01\xfe\x01\x39\x00\xff\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x41\x2e\xd2\x00\x44\x30\xd3\x01\x3a\x28\xd2\x03\x31\x1f\xd1\
\x05\x2f\x1e\xd1\x08\x30\x1e\xd0\x0a\x30\x20\xd0\x0b\x30\x1d\xcf\
\x0d\x2f\x1d\xce\x0f\x2f\x1d\xcf\x0f\x2e\x1f\xd0\x0f\x2e\x1f\xd0\
\x10\x2e\x1f\xd0\x10\x2e\x1f\xd0\x10\x2e\x1f\xd0\x10\x2e\x1f\xd0\
\x10\x2e\x1f\xd0\x10\x2f\x1f\xcf\x10\x2f\x1d\xd1\x10\x2f\x1d\xcf\
\x0f\x2f\x1c\xcf\x0d\x31\x1c\xce\x0c\x31\x1e\xd1\x0a\x2f\x20\xd1\
\x07\x2d\x1f\xd1\x05\x3b\x20\xd1\x02\x68\x25\xcb\x00\x57\x23\xce\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xff\xff\xff\
\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\
\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\
\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\
\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\
\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\
\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\
\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\
\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\
\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\
\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\
\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\
\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\
\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\
\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\
\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\
\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\
\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\
\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\
\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\
\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\
\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\
\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\
\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\
\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\
\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\
\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\
\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\
\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\
\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\
\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\
\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\
\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\
\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\
\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\
\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\
\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\
\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\
\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\
\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\
\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\
\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\
\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\
\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\
\xff\xff\xff\xff\x80\x00\x00\x00\x3f\xff\xff\xff\xff\xff\xff\xff\
\xff\xff\xff\xf8\x00\x00\x00\x00\x00\xff\xff\xff\xff\xff\xff\xff\
\xff\xff\xff\x80\x00\x00\x00\x00\x00\x0f\xff\xff\xff\xff\xff\xff\
\xff\xff\xe0\x00\x00\x00\x00\x00\x00\x00\x7f\xff\xff\xff\xff\xff\
\xfe\x1c\x00\x00\x00\x00\x00\x00\x00\x00\x0f\xff\xff\xff\xff\xff\
\xc0\x00\x0f\xff\xff\xfe\x00\x00\x00\x00\x01\xff\xff\xff\xff\xfc\
\x00\x00\xff\xff\xff\xff\xfe\x00\x00\x00\x00\x3f\xff\xff\xff\xe0\
\x00\x03\xff\xff\xff\xff\xff\xe0\x00\x00\x00\x0f\xff\xff\xff\x00\
\x00\x1f\xff\xff\xff\xff\xff\xfe\x00\x00\x00\x03\xff\xff\xf8\x00\
\x00\xff\xff\xff\xff\xff\xff\xff\xe0\x00\x00\x00\xff\xff\xe0\x00\
\x03\xff\xff\xff\xff\xff\xff\xff\xf0\x00\x00\x00\x3f\xff\x80\x00\
\x0f\xff\xff\xff\xff\xff\xff\xff\xe0\x00\x00\x00\x1f\xfe\x00\x00\
\x00\x03\x1c\x00\x00\x00\x00\xff\x80\x00\x00\x00\x07\xfc\x00\x00\
\x00\x02\x18\x00\x00\x00\x00\x7f\x00\x00\x00\x00\x07\xf8\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x7e\x00\x00\x00\x00\x03\xf0\x00\x04\
\x00\x00\x00\x20\x84\x00\x00\x7e\x00\x00\x00\x00\x01\xc0\x00\x00\
\x00\x00\x04\x00\x80\x00\x00\x7e\x00\x00\x00\x00\x00\xc0\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x3e\x00\x00\x00\x00\x00\x80\x00\x00\
\x00\x00\x00\xc0\x20\x10\x00\x20\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x40\x00\x10\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x40\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x80\x00\x00\x00\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x80\x00\x00\x00\x00\x40\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x80\x00\x00\x00\x00\x40\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x80\x00\x00\x00\x00\x40\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x80\x00\x00\x00\x00\x40\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x80\x00\x00\x00\x00\x40\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x20\x00\x00\x00\x00\x01\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x22\x00\x00\x00\x00\x03\x80\x00\x00\
\x00\x00\x00\x00\x00\x80\x00\x3e\x00\x00\x00\x00\x07\xc0\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x3e\x00\x00\x00\x00\x0f\xe0\x00\x00\
\x00\x40\x00\x01\x00\x80\x00\x7e\x00\x00\x00\x00\x1f\xf0\x00\x00\
\x0f\xff\xff\xff\xff\xff\xff\xff\x00\x00\x00\x00\x7f\xf8\x00\x00\
\x03\xff\xff\xff\xff\xff\xff\xff\x80\x00\x00\x00\xff\xfc\x00\x00\
\x00\x7f\xff\xff\xff\xff\xff\xff\xc0\x00\x00\x03\xff\xff\x00\x00\
\x00\x1f\xff\xff\xff\xff\xff\xff\xf0\x00\x00\x1f\xff\xff\xc0\x00\
\x00\x03\xff\xff\xff\xff\xff\xff\xfc\x00\x00\x7f\xff\xff\xe0\x00\
\x00\x00\x7f\xff\xff\xff\xff\xff\xf8\x00\x01\xff\xff\xff\xf8\x00\
\x00\x00\x07\xff\xff\xff\xff\xff\xc0\x00\x0f\xff\xff\xff\xff\x00\
\x00\x00\x00\x1f\xff\xff\xff\xfc\x00\x00\x7f\xff\xff\xff\xff\xc0\
\x00\x00\x00\x00\x1f\xff\xff\xc0\x04\x0f\xff\xff\xff\xff\xff\xf8\
\x00\x00\x00\x00\x00\x00\x00\x00\xfd\xff\xff\xff\xff\xff\xff\xff\
\x80\x00\x00\x00\x00\x00\x00\x0f\xff\xff\xff\xff\xff\xff\xff\xff\
\xf8\x00\x00\x00\x00\x00\x01\xff\xff\xff\xff\xff\xff\xff\xff\xff\
\xff\xc0\x00\x00\x00\x00\x0f\xff\xff\xff\xff\xff\xff\xff\xff\xff\
\xff\xff\xc0\x00\x00\x1f\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\
\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\
\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\
\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\
\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\
\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\
\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\
\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\
\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\
\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\
\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\
\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\
\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\
\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\
\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\
\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\
\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\
\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\
\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\
\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\
\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\
\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\
\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\
\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\
\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\
\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\
\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\
\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\
\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\
\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\
\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\
\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\
\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\
\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\
\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\
\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\
\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\
\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\
\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\x89\x50\x4e\
\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\x00\x01\
\x00\x00\x00\x01\x00\x08\x06\x00\x00\x00\x5c\x72\xa8\x66\x00\x00\
\x80\x00\x49\x44\x41\x54\x78\xda\xec\xfd\x69\xb0\x64\x49\x76\xdf\
\x89\xfd\x8f\xbb\xdf\x2d\xf6\x78\xf1\xf6\x2d\xf7\xac\xcc\xac\xac\
\xbd\x7a\xa9\x6e\x34\xd0\x0d\xa0\x41\x62\x23\x38\xa4\x6c\x48\x9a\
\x34\xa2\x48\x90\x43\x8a\xc3\x19\xd9\x50\xfa\xa4\xa1\xcc\x44\x19\
\x45\xa3\x34\x43\x70\xcc\x44\x1b\x49\x66\xc3\x19\xcc\x90\x20\x38\
\x00\x89\xa1\x51\x43\x90\x68\x34\xba\x1b\x68\x74\x77\x75\xd7\xbe\
\xe5\xbe\xbc\x7d\x8d\x7d\xb9\x71\x17\x77\x3f\xfa\x70\x23\x5e\xbe\
\xcc\xca\xcc\xca\x6a\x76\xa3\x08\x22\x7e\x69\x61\xef\x65\xbc\x88\
\xbb\xf8\x75\x3f\x7e\xce\xf1\x73\x8e\x03\x13\x26\x4c\x98\x30\x61\
\xc2\x84\x09\x13\x26\x4c\x98\x30\x61\xc2\x84\x09\x13\x26\x4c\x98\
\x30\x61\xc2\x84\x09\x13\x26\x4c\x98\x30\x61\xc2\x84\x09\x13\x26\
\x4c\x98\x30\x61\xc2\x84\x09\x13\x26\x4c\x98\x30\x61\xc2\x84\x09\
\x13\x26\x4c\x98\x30\x61\xc2\x84\x09\x13\x26\x4c\x98\x30\x61\xc2\
\x84\x09\x13\x26\x4c\x98\x30\x61\xc2\x84\x09\x13\x26\x4c\x98\x30\
\x61\xc2\x84\x09\x13\x26\x4c\x98\x30\x61\xc2\x84\x09\x13\x26\x4c\
\x98\x30\x61\xc2\x84\x09\x13\x26\x4c\x98\x30\x61\xc2\x84\x09\x13\
\x26\x4c\x98\x30\x61\xc2\x84\x09\x13\x26\x4c\x98\x30\x61\xc2\x84\
\x09\x13\x26\x4c\x98\x30\x61\xc2\x84\x09\x13\x26\x4c\x98\x30\x61\
\xc2\x84\x09\x13\x26\x4c\x98\x30\x61\xc2\x84\x09\x13\x26\x4c\x98\
\x30\x61\xc2\x84\x09\x13\x26\x4c\x98\x30\x61\xc2\x84\x09\x13\x26\
\x4c\x98\x30\x61\xc2\x84\x09\x13\x26\x4c\x98\x30\x61\xc2\x84\x09\
\x13\x26\x4c\x98\x30\x61\xc2\x84\x09\x13\x26\x4c\x98\x30\x61\xc2\
\x84\x09\x13\x26\x4c\x98\x30\x61\xc2\x84\x09\x13\x26\x4c\x98\x30\
\x61\xc2\x84\x09\x13\x26\x4c\x98\x30\x61\xc2\x84\x09\x13\x26\x4c\
\x98\x30\x61\xc2\x84\x09\x13\x26\x4c\x98\x30\x61\xc2\x84\x09\x13\
\x26\x4c\x98\x30\x61\xc2\x84\x09\x13\x26\x4c\x98\x30\x61\xc2\x84\
\x09\x13\x26\x4c\x98\x30\x61\xc2\x84\x09\x13\x26\x4c\x98\x30\x61\
\xc2\x84\x09\x13\x26\x4c\x98\x30\x61\xc2\x84\x09\x13\x26\x4c\x98\
\x30\x61\xc2\x84\x09\x13\x26\x4c\x98\x30\x61\xc2\x84\x09\x13\x26\
\x4c\x98\x30\x61\xc2\x84\x09\x13\x26\x4c\x98\x30\x61\xc2\x84\x09\
\x13\xfe\xc8\x40\x9f\xf4\x05\xfc\xfb\xc2\xbb\xcf\xfe\x38\x00\x80\
\x08\x00\x09\xc1\x69\x22\x91\xc4\x8a\xb5\x96\x6c\xb4\x04\x43\x92\
\x20\x01\x40\x5a\x86\x20\x82\x24\x82\x60\x0b\x61\x2d\x04\x00\x41\
\xc4\x84\xd1\x33\x21\x62\x80\x1e\xfb\x7c\x1e\xfa\x37\x06\x81\x18\
\x20\x06\x18\x60\x26\x30\x31\x33\x18\x96\x41\x96\x41\x96\x40\x86\
\x08\x46\x08\xb6\x20\x36\x0c\x36\x60\x36\xc4\x30\x44\xae\xd6\x72\
\x4e\x1b\xb9\x6c\x89\xfb\x4c\x6c\xf1\xe2\xed\x7f\xfa\x49\x37\xef\
\x84\x1f\x12\x7f\xe4\x05\xc0\xeb\x2f\xbd\x04\x10\xc0\x39\x01\x51\
\xd7\x10\x7d\x0b\xb6\x04\x26\x22\x22\x02\x11\x83\xc0\x00\x2c\xc0\
\x04\x30\x11\x28\x1b\xe8\xcc\x00\x33\x08\x64\x19\x4c\x64\x8d\x50\
\x24\x84\x2b\x1c\xe1\x93\x60\x1f\xcc\x3e\xac\xf5\xd8\x5a\x0f\xcc\
\x1e\x09\xe1\x32\xe0\x30\xc3\x25\x82\x43\x04\xc5\x16\x8e\xb5\x70\
\x00\x28\x22\x16\x78\xb8\x00\xe0\x27\xbc\x1d\x1e\x09\x00\x26\x06\
\x98\x60\x19\xb0\xc4\xac\xc1\xd0\x0c\x4a\x19\x94\x12\x51\x4a\x84\
\x84\x88\x63\x22\x24\x96\x39\x01\x38\x26\xe6\x18\x50\x11\x23\x88\
\x88\x29\xf6\xd3\x56\xa2\x4c\xdf\xf6\x83\x2a\x2c\x11\x83\x19\x24\
\x80\xac\x5d\x24\x00\x02\x5b\xc3\xb0\x06\x12\x12\x04\x09\x0b\x17\
\x20\x07\x8e\x74\x21\xa5\x03\x66\x3e\xba\xfc\xf3\xb7\xfe\xcd\x27\
\xfd\xb8\x27\x3c\xc0\x1f\x79\x01\x00\x00\x6f\x2e\x3d\x9f\xfd\xc2\
\x20\x00\x82\x85\x90\x4c\xc2\x25\x62\x47\x10\x3b\x04\x76\x00\xe3\
\x81\xc9\x07\x53\x40\x84\x00\x04\x9f\x39\x7b\x81\xd8\x07\xd8\x03\
\x93\x0b\xc0\x23\xc0\x05\xc1\x05\xc6\x2f\x1e\xfd\x24\x07\xc8\x06\
\x3b\x00\x05\x82\x62\x86\x1c\x9d\x97\x09\xb0\xc8\x5e\x26\x7b\xb1\
\x05\xc1\xd0\xbd\xf7\x2c\x00\x4b\x80\x01\xf3\xe8\x3d\xd2\xc4\x47\
\x7f\x33\x00\x0c\xf1\xe8\xf7\x07\x04\x00\x01\x1a\xa3\xd9\x1f\x80\
\x06\x60\xb2\xf7\x58\x83\x59\x03\x6c\xc0\xa4\xc1\x64\x28\x3b\xbf\
\x26\x82\x06\x51\xca\xcc\x29\x81\x53\x22\x24\x92\x28\x15\x24\x12\
\xc1\x94\x88\x34\x4d\xa4\xd6\x5a\x42\xb2\x80\xb2\x64\x1d\x96\x5a\
\xd9\x5c\x2c\x8d\x9b\x2a\x06\xec\x91\xf0\x22\x7c\xeb\x93\x7e\xd4\
\x13\x1e\xe0\xdf\x3b\x01\xf0\xe0\x54\xb9\x51\xbb\x84\xd0\xcd\x51\
\xa2\x34\xb4\x30\x20\x08\x12\x10\x60\x66\x02\x33\x11\x13\x91\x00\
\x59\x17\x12\x0c\x07\x29\xe7\xc0\xc8\x33\x89\x3c\x80\x3c\x11\x72\
\x04\xce\x03\xb6\x00\xa6\x0a\x98\xa6\x40\xa8\x12\xa1\xc2\x9c\xbd\
\x00\x2e\x83\xb8\x08\x26\x0f\x80\x22\x40\x00\x3c\x9e\xbf\xc7\x6d\
\x4c\x7c\xff\x1b\x34\xba\x56\x03\x20\x05\x90\x12\x23\x66\xa2\x04\
\x40\xca\x40\x02\x70\x0a\x20\x05\x21\xcd\x06\x2a\x52\x00\x9a\xb3\
\xdf\x47\xff\xa7\x84\x99\x8e\xde\x67\x40\x83\xa0\x89\xc8\x30\xc1\
\x30\xc0\x23\x61\x61\x69\x2c\xe2\x40\x04\x02\x31\x67\x06\x4b\xa6\
\xe1\xb0\x60\xb0\xa0\x4c\x20\x29\x02\xe4\xe8\x73\x09\x88\x42\x06\
\x0f\x18\xe8\x13\x21\x24\x21\xfa\x20\xd1\x63\x12\x7d\x6b\x4d\x9f\
\xd9\x46\x0a\x42\x03\x52\x1b\x72\xb5\x15\x8e\xb6\x8e\x9b\x0e\x7d\
\x4f\xbf\x3d\xe5\x9b\x5f\xbf\x50\xe5\x8b\xbd\x18\x0c\x0b\x6b\x2c\
\xbb\xae\x8b\xf9\xf9\x79\x2c\x2c\x2c\xe0\xf0\xf0\x10\x00\xf0\xb7\
\xfe\xd6\xdf\xfa\xa4\xbb\xce\x1f\x49\xfe\xbd\x13\x00\x63\x1a\xc5\
\x9f\x06\x00\x4c\x85\x65\xb4\x83\xae\xd8\x2a\xef\xc9\xa1\x13\xbb\
\x12\xd2\x93\x2c\x03\x66\x2e\x81\xb9\x42\xa0\x32\x01\x25\x26\x2e\
\x01\x5c\x00\x23\x07\x20\x00\x51\xc0\x80\x0f\x20\x00\xe0\x53\xf6\
\x33\x07\xa0\x08\xa0\x00\x20\x0f\x20\xcf\x40\x0e\x0c\x9f\xb2\x59\
\x9d\x30\x9a\x89\x09\x9c\x72\x36\x60\x87\x44\xe8\x83\xd1\x07\xd0\
\x27\x60\x40\x8c\x90\x80\x10\xe0\x21\x03\x31\x13\xa5\x96\x48\x5b\
\x90\xb5\x82\x8c\x21\x61\x2c\xc1\x66\x2f\xb2\x56\xc0\xf2\xe8\x77\
\x23\x04\x1b\x21\x28\x15\x24\xb4\x10\xa4\x49\x90\x16\x82\xb4\x10\
\x52\x0b\x12\x5a\x90\xb0\x82\xc0\x42\x90\x15\x20\x03\x08\x10\x11\
\x03\x82\xb3\xa7\x2d\x00\x08\x30\x65\x7e\x87\x4c\x00\x10\x65\xf6\
\x8d\x10\x16\x42\x58\x16\x82\x19\xc4\x60\x10\x12\x16\x34\xb4\x84\
\xa1\x05\x86\x4c\x14\xb2\xa0\x01\x93\x18\x30\x89\xbe\x21\xf4\x2d\
\x10\x0a\x20\x02\x28\xd6\x52\xa6\xa9\x54\x69\xec\xc8\x74\x20\x55\
\xda\x96\x2a\x4d\x1c\xa9\x95\x47\xd6\xc2\x9a\x24\x4e\x8c\xd6\x9a\
\xa5\x94\x0c\x00\xbf\xfa\xab\xbf\xfa\x49\x77\x95\x3f\xd2\xfc\xa1\
\x14\x00\xef\x5f\xba\x94\xfd\x22\x19\x48\x04\x38\x06\x59\x56\xb0\
\x42\x12\x18\x82\x98\x85\xb0\x5a\x0a\x93\x0a\x90\xe3\x32\x39\x39\
\x43\x36\xb0\x64\xf2\x20\x51\x14\xa0\x2a\x33\xe6\xc1\xbc\x4c\xa0\
\x45\x02\xe6\x99\x78\x0e\xe0\x0a\x18\x3e\x32\xf5\x5c\x02\x50\x0c\
\x48\x00\x92\x40\xe2\xd8\x25\x8c\x0d\x5b\xe6\x6c\xc0\xa7\xc4\x48\
\x40\x88\x81\xa3\x57\xc4\xc0\x90\x41\x5d\x2b\xa8\xc1\x84\xa6\x25\
\x6a\x1a\xa2\x36\x43\x74\xb4\x10\x9d\xd8\xa5\xce\xd0\x95\x71\xe8\
\x2a\x1b\x2a\x25\x86\x52\xca\x44\x49\x91\xbd\x84\x4c\x05\x89\x54\
\x90\xd0\x44\xc2\x0a\x21\x4c\xf6\x92\x56\x90\x6b\x01\x8f\x01\xdf\
\x82\x3c\x26\xf8\x20\xf2\x19\xf0\x19\xf0\x41\xe4\x10\x91\x64\xb0\
\x02\x43\x81\xb2\xc1\xce\x94\x69\x3d\x60\x22\xc2\x91\x3a\xc2\xa0\
\x23\xd3\x23\xd3\x14\x18\x16\x99\xd9\x90\x82\x8e\x34\x90\x14\xcc\
\x29\x01\x09\x31\xc7\x92\x11\x0b\x46\x2c\x40\x43\x30\x42\xc0\x86\
\x4c\x88\xad\x10\x29\x13\x69\x4b\x94\x1a\xa6\x54\xb3\xd0\x2c\x28\
\x25\x45\x29\x83\x53\x6b\x6d\x2a\xa5\xd4\xd2\x91\xc6\x18\x63\xb5\
\xd6\x80\xcd\xda\x32\xf3\x2d\xd0\x58\x38\x70\xa7\xd3\xe1\xab\x57\
\xaf\xe2\xe0\xe0\x00\x8d\x46\xe3\x93\xee\x76\xff\x5e\xa2\x3e\xe9\
\x0b\xf8\x7e\xb8\x7c\xe5\x0a\x6e\xad\x9e\xc9\x6e\x80\x53\x9c\x18\
\x6c\xf0\xfb\xe5\xe7\x94\x15\x32\x07\x6b\xcb\x60\x9e\x35\x24\x66\
\x8c\x72\xa7\x01\x54\x00\x53\x02\xa3\x40\x2c\xf2\x04\x14\x00\x2e\
\x12\x50\x06\xa1\x0c\x70\x99\x81\x12\x80\x22\x40\x39\xd0\x48\x7d\
\x7f\xc0\x96\x60\x00\x04\x0c\x01\xb4\x08\x68\x80\xb8\x4e\x8c\x06\
\x31\x5a\x60\xf4\x00\x0c\x99\x10\xb1\xa0\xd8\x12\xc5\x96\x28\xd1\
\x42\x24\xa1\x23\x4d\x27\x70\x45\xc7\x77\x44\xcf\x77\x44\xdf\x75\
\xc4\xc0\x71\x4a\xa1\xa3\xaa\xa1\x2b\x45\xac\x84\x30\x82\x94\x05\
\x1c\x26\x72\x18\x70\x40\xa4\x18\xc8\x7e\xcf\x7e\x2a\x02\x29\x10\
\x24\x83\x14\x00\x49\x80\x1a\x0d\x70\x09\x40\x11\x21\x1b\xec\x60\
\x05\x90\x20\x22\x02\xd8\x82\x61\x01\xd2\x00\x34\x13\x6b\x00\x29\
\x65\x26\x43\x0a\x20\x01\x21\x65\xca\x7e\x8e\xde\x4b\x01\xd2\xcc\
\xa3\xbf\x03\x7a\xe4\x0f\x30\xc4\x6c\x08\xd0\x82\x61\x04\xd8\x12\
\x33\x04\x93\x0b\x86\xb4\x42\xf8\x23\xf3\xc3\x10\xc8\x32\xc1\x32\
\x13\x33\x33\x03\x6c\x89\x29\x13\x2e\x44\x6c\xd8\xc0\x24\xc6\x32\
\x38\xf3\x45\x10\x12\x30\x12\x66\x4e\x88\x28\x02\x30\x00\x10\x31\
\x73\xd2\xe9\x74\x32\x21\xf1\xe4\x8e\xd0\x09\x1f\x83\x3f\x14\x1a\
\xc0\x7b\x27\x3e\x3b\xba\x58\x41\x0c\x23\x2c\x6b\xc5\x30\x8a\x85\
\x75\x08\xec\x12\xc3\x63\x88\x3c\x93\xa8\x82\xb1\x40\xcc\xa7\x18\
\x7c\x0a\xe0\x55\x06\x66\x09\x54\x04\x90\xa7\x4c\xbd\xf7\x47\x0e\
\x3a\x39\xba\xff\x71\x1b\x1c\x77\xc0\x69\x70\x66\x7f\x67\xb6\x38\
\x12\x80\x12\x00\x6d\x26\xda\xb3\x82\xf6\x8c\xa4\xdd\x54\x8a\xdd\
\x44\xa8\x7a\xa4\x44\x3f\x54\x22\x1d\xb8\x8e\xee\x7b\x8e\xed\x7a\
\xae\xe9\xf9\x0e\x0f\x3c\x87\x86\xae\xf4\xb5\x40\xcd\x12\x4d\x33\
\xa8\xc6\xc0\x14\x80\x2a\x83\xaa\x20\x54\x18\x9c\x47\x36\x9b\xbb\
\x38\xee\x20\x3c\x52\xd5\xc7\x4b\x84\xf7\x69\x20\x47\x0e\x3f\x1e\
\x39\x03\x89\xe8\xf8\xff\xed\xe8\xff\x31\x80\x08\x8c\x08\xc0\x90\
\x89\x23\x10\x86\xc4\x14\x11\x68\x88\x4c\xa0\x45\x4c\x3c\x04\x10\
\x33\x38\xa1\xd1\x2a\x01\x00\x4d\x4c\x1a\x0c\xc3\x60\xcb\xc4\x96\
\xc1\x56\x40\x70\xe6\x3e\x60\x80\x59\x20\xf3\x23\x08\x2b\xb2\x35\
\x0b\x62\xb6\x23\x37\x03\x81\x21\x98\x59\xd0\x68\xdd\x60\xd4\xd6\
\x82\x89\x25\x67\x42\x36\xbb\x46\xc6\x10\x8c\x21\x11\x0d\x89\xa8\
\x27\xa5\xec\x00\xe8\xf7\x7a\xbd\xe1\xe6\xce\xa6\xae\x0f\xea\x5c\
\xa9\x56\xf8\x85\xf3\x2f\x80\x25\x53\x9c\xc6\x20\x41\xbc\x34\xbb\
\xc4\x7f\xf7\x6f\xff\x5d\xfc\xd2\x2f\xfd\x12\x00\xe0\x6f\xfc\x8d\
\xbf\xf1\xd0\xfe\xf3\x38\xc9\xf1\x87\x62\x00\xfc\x10\xf9\x43\x71\
\xff\x1f\x9c\xfc\x3c\x00\x40\x40\xb9\x86\xd3\xbc\xe1\x78\x96\x61\
\x16\x99\xed\x1c\x03\x33\x44\xa8\x11\xa8\x3a\x1e\x5c\x04\x54\x01\
\x54\x18\x28\x03\xc8\x11\xe0\xe1\xde\xe0\xfa\xf0\x3d\x33\x2c\x08\
\x03\x00\x4d\x02\xf6\x89\xb1\x4f\xe0\x3a\x31\x37\x89\xd1\x16\x96\
\x3b\x92\xb9\x9b\x0a\x0a\xbb\x9e\x97\x1e\x16\x03\xda\x2f\x05\x6e\
\x3d\xef\x3b\x6d\xdf\x75\x43\x47\x7a\x89\x14\xbe\x26\xf2\x8d\x10\
\xbe\x16\xf0\x0d\x91\xcf\x44\x3e\x08\x01\x8d\x7c\x06\xc4\xc8\x67\
\xd7\xc3\xb9\x91\xaf\x21\x87\xfb\x07\xfe\x78\x19\xd0\x02\x3c\x04\
\xa1\x0f\xa6\x3e\x65\x33\x62\x1f\xd9\xcf\x10\x84\x10\xd9\x0c\x19\
\x21\x1b\x40\x11\x11\x1d\x37\x3f\x92\xfb\x5e\x8c\xb1\x06\x90\x82\
\xb2\x81\x4d\xc8\x06\x39\xee\x69\x06\x7a\x34\x23\x5b\x41\xc2\x12\
\x28\xd3\x1e\x18\xcc\xe0\xec\x45\x0c\xca\x04\x00\x98\x98\x18\x99\
\x13\x95\x01\x62\x31\x72\x2f\x32\x23\xb3\x2f\x88\x98\x91\x39\x5a\
\xef\x09\x80\xec\x23\xc4\x62\x24\x00\x32\x41\xc6\x48\x09\xa4\x85\
\x10\x5a\x4a\xa9\x01\x68\x6b\xad\x4e\xe2\x44\x87\x1c\xea\x4e\xb1\
\xa3\x17\xf3\x8b\x54\xd6\x65\x15\xa5\x91\x13\x9b\x58\x30\x38\x26\
\x50\x04\x80\x7f\xe5\xbf\xfd\x95\xc7\xf6\x9f\x07\x04\xc0\x7d\x4b\
\xab\x7f\x28\x06\xc0\x0f\x91\x7f\xa7\xee\xff\xad\xd5\xe7\xc6\xbf\
\x0a\x64\x33\xb4\x43\x60\x87\x98\x1d\x30\x79\x10\xb2\x0a\x88\x39\
\x86\x3d\x09\xf0\x19\x66\x5e\x05\x78\x09\x44\xb3\x04\x4c\x8d\x54\
\x79\x9f\x8e\x79\xde\x8f\x1d\xfe\xde\xec\x7e\xdc\x8b\x9e\xa9\xba\
\x21\x88\x0e\x99\x68\xdb\x08\xda\xd6\x52\xec\x24\x52\x1c\x0e\x1d\
\xd5\x1c\xb8\x4e\xaf\xe5\x3b\xbd\xfd\xa2\x3b\xd8\x2d\x06\xd4\x77\
\xdc\xa2\x91\x72\x1a\x44\x8b\x00\x16\x18\x98\x03\x78\x8a\x81\x0a\
\x78\x6c\x4a\x70\x91\xef\x39\x0a\xdd\x4c\x1d\x07\xe3\xd8\x52\x1e\
\x8e\x96\xfa\x3e\xf4\x4a\x91\xcd\xd6\x6d\x00\x4d\x62\x6a\x10\xa8\
\xc9\xcc\x4d\x00\x6d\x08\x74\x40\xe8\x31\x78\xc8\xcc\x43\x66\x8e\
\x08\x34\x14\x10\x91\x20\x11\x09\x21\x22\x6b\x6d\x9c\xa4\x49\x62\
\xad\xd5\x8e\xe3\x58\x41\x22\x1b\xc2\x59\x6c\x01\x13\xd3\x7d\x31\
\x46\x3c\x5a\x8f\xc8\x7c\x7e\xa3\xe1\x0a\x3a\xf2\x74\xf0\xf8\x1f\
\x31\x04\xb2\xa9\x9e\x29\x7b\x8f\xec\xc8\x7d\x38\x7a\x09\xce\x8e\
\x95\x59\x20\x00\xf3\xe8\x98\x0f\x9c\x8f\xc1\x47\x7f\x4f\xe2\x04\
\xcf\x3f\xf7\x3c\x7e\xe1\x17\x7e\x01\xbf\xf6\x6b\xbf\x26\xf7\xf6\
\xf6\x9c\x24\x4e\xa4\x36\x1a\x89\x4c\x4c\xaf\xd6\xd3\x73\x72\x8e\
\xf2\x51\xde\x1d\x26\x43\x2f\xb1\x89\x12\x10\x89\x0b\x37\xd2\x46\
\x43\x5b\x9d\xad\xe6\x64\xee\x8d\x2c\x88\xc2\x5a\x86\xb5\xc6\x58\
\x6b\x22\x86\x95\x6c\xf9\xd7\xfe\xe9\x3f\x05\x83\xe8\xa0\xb8\x40\
\xcd\xc2\x0c\x19\x47\x11\x0b\x08\x1e\xb7\xc0\x28\xe4\x83\x04\xb3\
\x20\xb2\x0e\x1c\x73\x96\xcf\x5b\x69\x2f\xa1\x23\xbe\x0b\x00\xa8\
\xac\xfd\x8b\x4f\x7a\x98\xfc\x40\xf9\x77\xd2\x07\xc0\x20\x97\xc0\
\x55\x80\xe7\x00\x2c\x31\x68\x05\x44\x2b\x60\xbb\xc0\xc4\x33\xd9\
\xdf\x50\x22\x42\x91\x41\x79\xca\x66\x52\x8f\xee\xa9\xf5\x0f\x1c\
\x90\x81\x4c\x8d\xef\x00\x68\x10\xe1\x80\x18\xbb\xc4\xbc\x23\x2d\
\xef\x08\xa6\xc3\xd4\xa1\x6e\xc7\x57\xc9\x5e\x31\x27\x0f\x0a\x39\
\xb7\x91\x73\xbd\x8e\xe7\xcc\x0c\x1c\x79\x3a\x52\xa2\x98\x48\x51\
\xb2\x44\x65\x10\x95\x88\x91\x99\x14\xe3\x41\xce\x08\x00\x78\x44\
\xf0\x90\xad\xf7\x7b\xf4\xe1\xb6\xcd\x04\x0d\xd0\x03\xd0\x05\xd0\
\x01\xd0\x01\xa3\x05\x42\x0b\x40\x93\x88\xda\x60\x74\x19\xdc\x07\
\x63\x08\xc2\x10\x94\xa9\xf0\x04\x8a\x19\x1c\x21\xb3\xdb\x13\x8c\
\xd6\xf1\x01\x68\x66\x36\x04\xd2\x4a\x28\x93\xcf\xe5\x75\xb1\x58\
\xe4\x38\x8e\x19\x00\xfe\xde\x7f\xfd\xf7\x3e\xe9\xc7\xf9\x44\x14\
\x0b\xc5\xb1\x2a\x6f\xb2\x2e\x00\x31\x12\x46\x4c\x82\x2c\x32\x0d\
\x23\x96\x52\x1a\x87\x1d\x8f\x35\xe7\x52\x9b\xd6\x2c\x6c\x0e\x99\
\x86\x27\x71\x4f\x83\x1a\xb5\x35\x75\x01\xb4\x65\x9a\x0e\x89\x48\
\xff\xa3\x17\xbe\xc8\x3f\x7b\xeb\x80\x43\x57\x29\x57\xc3\xd7\xd2\
\xfa\x9a\xc8\xb7\x94\xf9\x59\x90\x69\x62\x00\x10\x33\xd0\x37\x44\
\x1d\xb5\xf5\x8f\x86\xbf\xb9\x00\xfc\xb4\xf7\x5b\xa3\x3f\xfd\x8b\
\x4f\xba\xa9\x7e\xa0\x7c\x22\x1a\xc0\x1b\xa7\x5f\x38\x7e\x7e\x49\
\x96\x5d\xb2\xec\x01\x1c\x10\xa1\x00\x60\x0a\x8c\x45\x00\xab\x00\
\x4e\x01\x74\x16\x8c\xd3\x20\xcc\x33\x50\xca\xd6\xd9\x1f\xc9\x78\
\x96\x4f\x00\xc4\x04\x44\x60\x1e\x30\xd0\x62\xd0\x81\x11\xe2\xc0\
\x28\x71\x10\x29\xb1\xdf\x73\xd5\xde\x61\x21\xb7\x7f\x7b\xba\xd2\
\xd9\x29\xfb\x14\x39\xa2\x40\x4c\x33\xc2\x62\x96\xc1\x73\x60\x9e\
\x63\x60\x01\xe0\x05\x00\x0b\x00\xaa\x04\xca\x21\xeb\x6c\xc7\xb9\
\xdf\x7f\x70\xbf\x0a\x1e\xe1\xde\xc0\x6f\x01\x68\x8f\x06\x7c\x0b\
\x16\x0d\x00\x75\x00\x87\x44\x54\x97\x52\xd6\x89\xa8\x1d\x0e\xc2\
\xf0\xc4\xa9\x13\xf6\xcd\xef\xbd\x09\x00\xf8\xea\xd7\xbf\xfa\x49\
\x3c\xa6\x7f\xa7\xf8\xcf\xfe\xd3\xff\x0c\x00\x50\x2a\x97\xa8\xd1\
\x68\xb8\x51\x14\x55\xad\xb5\x35\x4b\xb6\xc8\xe0\x80\x98\x14\x31\
\x09\x16\x42\x00\xb0\xb0\x56\xb3\xb5\x11\x83\x87\x00\x42\x12\x14\
\x93\xb0\xa9\xa7\x13\xbb\xd4\x1c\x8a\x13\xf5\x48\xcd\x0d\x13\x55\
\x4e\x53\x27\x48\xb4\x70\xb5\x91\x60\xb8\x0c\x48\x12\x30\x99\x63\
\x92\x86\xcc\x88\xcd\x28\x5c\x9a\x2c\x19\x00\xa9\x00\xa5\x80\xd4\
\xcc\x8e\x61\x76\x2c\x60\x2c\x08\x78\x61\xeb\xf7\x3f\xe9\x66\xfa\
\xd8\x7c\x22\x1a\xc0\xd8\xc5\xce\x20\x89\x4c\x6d\x9f\x03\xe1\x04\
\x98\xce\x80\xf9\x29\x00\x4b\xc8\xec\xf8\x32\x32\x07\x5e\x09\x99\
\x60\xf0\xe8\xd1\x42\x6b\xac\x57\x46\x20\x1a\xdb\xf2\x1b\x04\xbe\
\x23\x2d\x6e\x5a\x12\x07\xa1\xab\x86\x87\x79\x1f\xbb\xa5\xc0\xdb\
\x2f\xb8\xb9\x7a\xde\xab\xf4\x3c\xf7\x74\xe4\xa8\x69\x03\xcc\xc0\
\xf0\x14\x80\xbc\xbd\xb7\xe6\x3f\x7a\x51\x6e\x14\x07\xe0\xe2\x43\
\xe7\x27\x06\x38\xc1\xd8\x4e\x27\xb4\x19\x7c\x00\xc6\x0e\x81\xb6\
\x01\xec\x82\x71\x08\xa0\x0b\x42\x4c\x44\x31\x28\xb3\xdb\x19\x9c\
\x39\xe9\x80\x88\x40\x91\x94\x32\x76\x94\xa3\x1d\xe5\xd8\x76\xb3\
\x3d\x19\xf8\xc7\x70\x64\x36\x39\x2f\x4f\x2f\x73\xbb\xd9\x4e\xc1\
\xe8\x20\x6b\x3b\x07\x80\x1c\xad\x86\x08\x41\x24\xd8\xda\xbc\xb5\
\x76\x0e\xc0\x09\x22\x5a\x02\x21\x0f\x82\x65\x16\x61\x4c\x5e\x7b\
\xbd\xe2\x1c\xee\x07\xb9\xc3\x52\xac\x3b\xf3\x61\x3c\xb8\x78\xd8\
\x1e\x7c\x7a\xe3\x20\x55\x56\x89\x76\xce\x0b\x86\x1e\x4d\xa5\xc0\
\xac\x65\xbb\x68\x81\x72\xe6\xd5\x40\x8c\x4c\x6b\x6b\x00\x38\x00\
\xb8\x05\xa0\x37\xf2\xd5\x24\xf8\x43\xba\x4a\xf1\x43\xd7\x00\xbe\
\x3d\xf5\x39\x00\xc0\xa0\x99\x47\x69\xae\x2b\x1d\xdf\xb8\x44\x36\
\x07\x36\x15\x00\x35\x00\xf3\x00\x56\xc0\x38\x43\xc0\x79\x80\x2f\
\x8e\xde\xf3\x01\x88\x8f\xb8\xc4\xb1\xa7\x7b\x00\xa0\x4b\xcc\x2d\
\x06\x1a\x4c\xd4\x30\x42\xec\x25\x4a\x6c\x77\x7d\x6f\x7b\xad\x56\
\xd9\xbd\x3d\x5d\x8e\x9b\x81\xe3\x47\x02\x25\x0b\x9e\x06\x78\x81\
\xc0\x2b\x04\x3a\x45\xc0\x89\x51\x5c\x40\xe9\x01\x6f\xfb\x71\xc6\
\x36\x7c\x8a\xac\xe3\x0d\x00\x1a\x3b\xe7\x3a\x00\xb7\x41\xe8\x00\
\x68\x32\x78\x97\xc1\xdb\xc4\xb4\x41\x96\x76\x8d\x31\x87\x9b\x1b\
\x9b\x03\x5f\xfa\xfc\xd5\x6f\x66\x83\x9a\x8f\xdb\xca\x13\xbe\x2f\
\x7e\xe2\x27\x7e\x02\x00\x10\x86\x21\x5a\xed\x36\x5e\x7c\xfe\x79\
\x9a\xae\xd5\x44\xa7\xd7\x2b\x69\xad\x57\x40\x38\x4d\x44\xe7\x40\
\x98\x06\x41\x82\x91\x82\xd1\x67\xa0\xcf\xcc\x3d\x80\xfa\x44\xe8\
\x13\x73\x4f\x31\xf7\x1c\xa6\xfe\x89\x4e\x64\x9f\xde\x6f\xe4\x67\
\xbb\xe1\xac\x97\xa4\x27\xa4\xb5\xb5\x51\x54\x64\x0a\xa6\x10\x40\
\x48\xe0\x90\x41\x11\x83\x22\x02\x0f\x88\x6d\x1f\x84\x3e\x13\xf7\
\x19\x34\xb4\x42\xc6\xae\xe3\xea\xcb\xf3\x4b\x8c\x2f\x7c\x99\xf1\
\xcd\xdf\x06\x00\xd0\x37\xff\xf9\x27\xdd\x64\x1f\xe2\x87\xde\xfb\
\xbe\x37\xf7\x29\x00\x80\x49\x84\x54\xbe\xcd\x49\xd7\xce\x12\xf1\
\x29\xb0\x7d\x11\xcc\x4f\x53\xa6\x5e\x4f\x01\x54\xc1\xd1\x7a\x3c\
\x5c\x3c\x5e\xcd\x07\xc0\x7a\x34\x00\x0f\x00\x5c\x27\xf0\x55\xb2\
\xb8\xa6\x05\xed\x76\x03\x37\x3e\x28\xf8\xd8\x29\xe6\x9d\x9d\x72\
\x7e\xaa\x95\xf3\x57\x62\x25\x56\x2c\xb0\x60\x33\xff\x41\x1e\x40\
\x81\x32\x3b\x3e\x8f\x91\x0f\x01\x8f\xd6\x88\x0c\x32\x75\x7e\x00\
\xa0\x0d\x60\x9b\x40\xb7\x40\xb8\x43\x24\x36\x00\xb4\x00\x1e\x30\
\x73\xc8\xe0\x90\xc1\x43\x06\x0f\x89\x29\x24\xa6\x68\x14\x50\x63\
\x00\xe0\x1f\xff\xe3\x7f\xfc\xc3\x6e\xf2\x3f\x72\xfc\x1f\xfe\xfa\
\x5f\x07\x00\x2c\xcf\xcf\xc3\x51\x0a\x6f\x5d\xb9\xe2\x68\x63\x02\
\x22\xca\x93\xa0\x22\x80\x80\xc1\x3e\x80\xfc\x68\xb5\x68\x95\x81\
\xd3\x60\xae\x8d\x56\x88\x34\x80\x36\x81\xee\x38\x8c\xbb\xa5\x28\
\xd9\x5d\xee\xf4\xbb\x27\x1b\x3d\xb3\xd0\x0b\x51\x8e\x35\x94\x65\
\x57\x43\x14\x0d\xf1\x02\x83\x4f\x23\x73\x00\x57\x00\x12\x04\x74\
\x01\xbe\x0b\xe2\x1b\x0c\x5a\xb7\x24\xf6\x5c\xa9\xfa\x65\xcf\x8b\
\x7c\xa5\x4c\xa4\xb5\x05\x80\xd5\xab\xff\xee\x99\x08\x3f\x70\x01\
\xf0\xbd\x17\x5e\x06\x00\x7c\xea\xad\xd7\xf1\xc6\xb3\x2f\x09\xaf\
\x93\xe4\x61\x31\x65\x41\xd3\x16\x34\x07\xa2\x15\x10\xce\x82\xf9\
\x05\x00\x4f\x11\x78\x0a\x80\x0f\xd0\x47\x0c\x78\x30\xb2\x99\xb7\
\x07\x70\x83\x18\x75\x00\x75\x26\xda\x4d\x94\xb8\xd3\x0a\xbc\xcd\
\x9b\x53\xa5\xc6\x8d\x99\x72\xda\x09\x9c\x20\x95\xb2\xcc\xc0\x0c\
\x01\x27\x05\xe3\x22\xc0\xa7\x90\xd9\xf1\x05\x66\x56\xf4\xf8\xa9\
\x57\x23\x5b\x23\xef\x61\xec\xac\xcb\x5e\x6d\x64\x2a\xe0\x26\x81\
\x6e\x0b\x12\x77\x95\xa3\xb6\x3d\xcf\xeb\x3a\xca\x49\x5d\xd7\xd5\
\x7a\xf4\xb0\xff\xfe\x7f\xfd\xf7\xff\xc0\x1e\xe2\x84\x87\xf3\xe7\
\xfe\xcc\x9f\x03\x00\x18\x6d\x84\x54\xd2\x51\x8e\x2a\x92\xa0\x39\
\xc3\x7c\x8e\xc1\x97\xc0\xbc\x0c\xe6\x1a\x80\xc2\x28\xf7\xb3\x07\
\xc2\x21\x33\xb6\x0d\xb0\x6b\xc0\x75\xb2\xb6\x9d\x8f\xd3\xfe\x4a\
\x67\x90\x3c\x7d\xd8\xa5\xd5\x4e\x38\x13\x18\x73\x96\x18\xab\x00\
\x16\x98\xa8\x98\xe5\x4c\x70\x1f\xe0\x3a\x83\x0e\x00\xaa\x13\xa1\
\x4d\x40\x9b\xc1\x6d\x66\xb4\xc1\xb2\x23\xac\x17\x02\x94\x02\x86\
\x01\xe0\xb9\xed\xef\x7e\xd2\x4d\xf4\x83\xf7\x01\xa8\xbe\x06\x00\
\xbc\x76\xf9\x25\xa9\x86\x26\xcf\xa0\xd3\x20\x3c\x07\xe0\x32\x81\
\x9f\x02\xb0\x08\x46\x0d\xa3\x35\xfa\x51\x86\xdc\x23\x07\xff\xc8\
\xb0\xb2\xc4\x1c\x81\x68\x97\x81\x9b\x04\x7a\xcf\x82\xaf\xb0\xc0\
\x76\x3b\x70\x7a\xb7\x6b\x65\xba\x35\x55\xaa\x36\xf2\xfe\xb3\x89\
\x14\x67\xac\xa0\x05\xc1\x3c\xcd\x59\x4c\x40\x09\x99\xb7\x7e\x6c\
\xc3\xcb\xc7\x0c\x7e\x46\x36\xf8\xbb\x20\x6c\x02\xb8\x45\xa0\xab\
\x04\x5a\x63\x70\x9d\x99\x9b\xd6\xda\x0e\x80\x9e\x20\x11\x42\x60\
\x48\x44\xb1\x92\x52\x07\x7e\xc0\x53\xd5\x1a\xf7\xfb\xbd\x4f\xe4\
\x41\x4e\xf8\x30\x3c\x4a\x44\xb4\xda\x5a\x21\x44\x02\xa0\xc3\xcc\
\x43\x00\x07\x60\x7e\x97\x99\x2b\x60\x9e\x21\xd0\x2a\x80\x33\x4c\
\x7c\x11\x8c\x57\x00\x52\x12\x88\x24\xd0\x66\x21\xf6\x13\xdf\x5d\
\x5f\x73\x9d\x5b\x07\x95\xdc\xf5\xd3\xcd\xde\xf6\xe5\xfd\xce\xe6\
\x42\x6f\xe8\x49\xe6\x32\x11\xd5\x2c\x61\x09\xc0\x25\x00\xcf\x10\
\xa3\x34\x8a\x24\xed\x33\x50\x67\x60\x13\xc0\x4d\x00\xef\x5b\x32\
\xeb\x29\xcb\x6e\x07\x41\x0c\xc0\xfe\xee\xd2\x17\x18\x00\x7e\x6c\
\xfb\x9b\x9f\x58\x1b\xfd\xc0\x34\x80\x77\x96\x9f\x19\xff\x9a\x03\
\x30\xcd\x44\x73\x20\xac\x00\xb8\x40\xc0\x65\x06\xce\x03\x58\x05\
\xa8\x8c\xcc\x71\xf3\x24\xe7\x1e\x00\x38\x04\xf3\x01\x31\xef\x12\
\x68\x4d\x4b\x71\xa7\x9e\xf7\x77\x6f\xd5\x4a\x9d\xdb\x53\x79\x73\
\x58\xf0\x83\x44\xaa\x59\x02\x4e\x09\xc6\xd3\x04\x3e\x03\x60\x06\
\x99\x80\x19\x2f\x0f\x3d\x0a\x46\xe6\x43\xe8\x23\xf3\xd0\x37\x47\
\x3f\x0f\x40\xd8\x00\xe1\xae\x80\xb8\x25\x20\x76\x40\xe8\x50\x66\
\x72\x44\xc8\x3c\xfe\xf8\xef\x7f\xf9\xbf\xff\x83\x7a\x4e\x13\x7e\
\x00\x8c\xfd\x2e\x00\x44\x1c\xc7\x5e\xa7\xdd\x29\xef\xec\xec\xcc\
\xdc\xbc\x79\x63\x69\x7d\x63\x63\x65\x6b\x7b\xeb\x64\xbf\xdf\x3f\
\x41\x24\x96\x5d\xc7\x99\xf6\x7c\x2f\xef\x38\x4e\x2a\xa5\x3c\x20\
\x21\xd6\x0c\xdb\xeb\xc3\x24\x59\x6b\x76\xba\xfb\xba\xd7\x6b\xcf\
\x0e\x06\xf1\xa5\x7a\xcf\x3c\x53\xef\xe7\x0a\x71\x72\x9e\x98\x2f\
\x01\x74\x82\x41\x33\x9c\x99\xb2\x92\xb3\x40\xac\x03\x00\xd7\x01\
\xba\xcb\xc0\x3e\x08\x75\x02\x37\x40\xd4\x24\x27\xd7\x7e\xee\xe6\
\xb7\x92\x0f\x5e\xf9\xf3\xe0\x74\x08\x00\x78\xe6\x8d\x5f\xff\x03\
\x6b\x93\x8f\x2d\x00\x5e\x7f\xe9\x25\x00\x80\x99\x22\xb0\x0f\x24\
\xaf\xb9\x60\x41\xa8\x63\x96\x66\xc4\xa1\x2a\x50\x7f\x55\xc0\xbe\
\x0c\xe0\x25\x00\xcf\x82\x70\x02\xa0\x1a\x32\x5b\x3b\xf3\xd8\x7e\
\xa4\x7d\x0f\xcb\x8c\x04\xc0\x3a\x11\xbf\x09\xe0\x1d\x0b\xbe\x32\
\x54\x72\xe7\x76\xad\x1c\xbf\xbf\x34\x3d\xdf\x0e\xbc\xf3\xb1\xa0\
\x73\x9a\x70\x1a\x44\xab\xc8\xd4\xfd\xe3\xb6\xfc\x38\xea\xef\x71\
\xf7\x98\x00\xd8\x23\xd0\x5d\x06\x5f\x03\xe3\x3a\x80\xdb\x00\xb6\
\x21\xd0\x04\xa1\x2f\x20\x22\x01\x31\xb6\xe1\xb3\x35\xea\x91\x62\
\xf2\xcb\xbf\xfc\xcb\x7f\x60\x0f\x6a\xc2\x93\x73\x6c\xa0\x3f\x0c\
\x09\xa0\xc2\xcc\xf3\x69\x9a\xce\x25\x49\x32\x15\xc7\xb1\xdf\xed\
\x76\xcd\x9d\x3b\x77\x9a\xef\xbd\xf7\x1e\x85\xc3\xe1\x53\x8e\xe3\
\xbc\x10\x04\xfe\x0b\x4a\xaa\x25\x06\xab\x24\x49\xd2\x7e\xbf\x3f\
\xe8\x76\xbb\xf5\x56\xbb\xbd\x19\x45\xd1\x9a\x60\x7b\xdb\xd5\xfa\
\xfa\x42\x67\xb8\xf6\xdc\x6e\x63\xb8\xda\x19\x04\xae\xe6\x79\x06\
\xce\x00\xfc\x34\x98\x2f\x72\xb6\x84\x5d\x1d\xad\x14\xb5\x40\xb4\
\x0d\xe0\x2e\x80\x1b\x00\x5d\x21\xe1\x5c\x85\xf2\x0f\x61\x75\x02\
\x12\x56\xd8\x01\x58\x10\xc2\xb2\x8f\xcf\xbe\xf9\x1e\xbe\xf1\x63\
\xd9\x78\xfb\xd2\xef\xfe\xee\x0f\xa5\xad\xbe\x6f\x0d\xe0\xad\x13\
\x2f\x8d\x8e\x40\x0e\x80\x22\xac\x99\x63\xe6\x93\x04\xbe\x48\xc0\
\x73\x23\x6f\xfe\x29\x10\x95\xf1\xa8\x10\xdc\x0f\x13\x01\x68\x10\
\x63\x9b\x98\xd7\x2c\xd1\xad\xd8\x91\xb7\xb7\x2b\xc1\xe1\xfb\x73\
\x95\x68\xad\x5c\xf0\x07\xae\x33\x43\x24\x4e\x49\xe6\xa7\xc0\x7c\
\x0a\xc0\x22\xb2\x25\xc3\xe0\x23\x4e\x30\x56\xef\x7b\x00\x0e\x47\
\xaf\x5d\x02\x6d\x02\x58\x07\xb0\xce\xcc\x9b\xcc\xbc\xc3\x96\x5b\
\xd6\xd8\x44\x48\xc1\x00\xf0\x4f\x7e\xf5\x9f\xfc\x50\x1a\x7f\xc2\
\x0f\x87\xb1\x00\xf8\xfd\x6f\x7e\x13\xbf\xf7\x7b\xdf\xc4\x9f\xfa\
\x53\x7f\xaa\x30\x8c\x86\xb3\xdb\xdb\xdb\xf3\x87\x87\x87\x0b\xc3\
\x61\x38\x9f\x1a\x3d\xcb\x40\x15\x84\x3c\x11\x91\x10\x22\x74\x1d\
\x77\x07\xa0\x78\x30\x18\x2c\xc7\x51\x74\xde\x68\x7d\xc9\x5a\xbb\
\x60\x99\x1d\x63\x8d\xd0\xa9\x86\xb5\x36\x4b\x08\x23\xda\x27\xa2\
\xcd\x30\x1a\xde\x6d\x75\x3a\xb7\x07\x5a\xdf\x55\x96\xf7\x2f\xd4\
\x7b\xf1\x4b\xbb\x0d\x6f\xb9\xd3\x9f\xf5\x52\x7d\xd2\x42\x5c\xb0\
\x84\x73\xc8\x1c\x8f\x95\x51\x44\x74\x87\x80\x0d\x06\xee\x80\xe9\
\x36\x40\x5b\x44\xd8\x23\xc2\x3e\x09\x34\x48\xa0\x37\xca\xdf\xe0\
\x67\xee\xbc\xf5\x43\x6d\xab\x27\x16\x00\xef\x9d\xc8\x82\x77\xc8\
\x00\xce\x90\x31\x9c\x21\x32\x3e\x09\xd1\x43\x15\x06\x67\x60\xf9\
\x25\xb0\xfd\x12\x80\x4b\x44\x98\x41\x66\x77\x8f\x67\xfc\xc7\x9d\
\x27\x5b\x5e\x63\x8a\x90\xa9\x47\x57\x98\xf0\xba\x01\x7d\x77\xb7\
\x94\xdb\xbd\xb2\x38\xe5\xac\x57\x72\x4b\xa1\x12\x97\x35\xd1\x73\
\x0c\xba\x04\xa2\xe9\x63\xeb\xf2\x0a\x8f\xd6\x2a\xf8\xd8\xcf\x21\
\x33\xb7\x40\x58\x23\xa2\x2b\x04\x7a\x87\x88\xde\x07\x63\x87\x99\
\xdb\xcc\x1c\x03\x18\x95\xce\x62\xc3\xcc\x9c\xa5\xd1\x03\xbf\xf2\
\x2b\x8f\x8f\x35\x9f\xf0\xc9\xf2\x98\x19\x5f\xf6\x07\x7d\xff\xea\
\x95\xab\x27\xdb\xed\xf6\x8b\x8d\x66\xe3\x53\xad\x56\xeb\xf9\x7a\
\xbd\xbe\x78\xd8\xa8\xe7\xdb\xdd\x8e\x1b\x0e\x87\x64\xd9\x92\xef\
\x7b\x66\x7e\x76\x3e\xaa\x94\x2a\x5a\xa7\xa9\xdb\xeb\xf7\xfc\x56\
\xbb\x95\x1b\x0e\x87\x2e\x03\xe4\x38\x0e\x72\x41\x80\x4a\xb9\x62\
\xa7\xaa\x53\xc6\x75\x5d\xad\xd3\x34\x6d\xb7\xdb\x49\xb3\xd9\xec\
\xc4\x71\x7c\x03\x96\xdf\x15\xc6\xbc\x9f\x8b\xd3\xdb\x4b\x9d\xfe\
\xfe\xa7\xb6\x0e\xd3\x6a\x94\x54\xa5\xe5\xb3\xc4\xf8\x0c\x80\xe7\
\x01\x3a\x8f\x2c\x67\x85\xc1\xd0\xcc\x18\x80\x68\x83\x88\xae\x12\
\xe1\x3d\x22\xfe\x80\x25\xdd\x89\x3d\xb5\x1f\x07\x2a\x2e\x75\x42\
\x76\x8c\x86\x0d\x98\xc9\xd1\xe0\x34\x73\xdb\x5d\xbe\x72\xe5\x07\
\xd2\x76\x4f\x2c\x00\x3e\x38\xf9\xe2\xe8\x0b\x44\x12\x50\x31\xdb\
\xaa\x05\x9f\x05\xf0\x14\x33\x5f\x04\xf0\x34\x80\xcb\x04\xcc\x21\
\x1b\xf8\x1f\xa5\xe6\x03\xa3\xe5\x17\x30\x6d\x09\xe6\x6b\x20\xba\
\x99\x28\xb1\xb1\x53\xca\x1d\xbe\xb1\x38\x3d\xb8\x33\x55\x28\xa7\
\x92\x4e\x11\xe1\x0c\x31\x9f\x21\xc6\x59\x00\xcb\x74\x2f\x64\xf3\
\x71\x58\x64\x2a\x7e\x13\xc0\x36\xb2\x19\xfe\x2e\x08\xeb\x00\x36\
\x88\xe8\xae\x23\x9d\x2d\x57\xb9\x7d\x6d\xb2\x7c\xd3\x7f\xf8\xdf\
\xfd\xc3\x1f\x48\xa3\x4e\xf8\x64\x38\x26\x08\x08\x80\x73\xfd\xe6\
\x8d\xf9\x46\xa3\xfe\xf4\x9d\x3b\x77\x9e\xdb\xdc\xda\x7a\x3e\x49\
\x92\x8b\x60\x3e\x19\x0e\xc3\x42\xb7\xdb\xa3\xc1\x30\xa4\x28\x8e\
\xa0\xb5\x06\x18\x70\x1d\x17\x8e\x72\x40\x00\x8c\x35\x88\xd3\x18\
\xd6\x32\x94\x94\x70\x5c\x17\x81\xef\xa3\x50\x28\xa0\x58\x28\x82\
\xc1\x48\x93\x04\x42\x48\x28\xa1\x6c\x92\xc4\x07\x83\x41\xb8\x11\
\x0e\xc3\xbb\xc3\x38\xbe\xa3\x89\xee\x48\x12\x9b\xb5\x28\xde\xff\
\xdc\xc6\xbe\xbd\x70\xd0\x99\xf5\x53\x73\xca\x12\x5d\x60\xe0\x22\
\x03\x4f\x81\x31\x8f\xcc\x64\xed\x83\x68\x07\xe0\x0d\x10\xee\x02\
\x58\x67\x60\x9d\x04\xee\x48\x89\x2d\x12\x68\xb2\xc5\x10\x00\x9e\
\xb9\xf5\xce\x0f\xb4\xcd\x1e\x2b\x00\xbe\x8e\x1f\x03\x00\xfc\xc8\
\x5f\x79\x13\x6f\xfd\xfa\x45\x58\x61\x29\xc8\x19\x4f\x10\xa6\x2c\
\xf3\x53\x0c\xfc\x24\xc0\xaf\x70\xe6\x78\x9b\xa6\xcc\xa3\xff\x24\
\xea\xbe\xe5\x2c\xdd\xb6\x05\x88\x5b\x4c\xf4\xa6\x95\xe2\x1b\xfb\
\xe5\xdc\xad\xf7\x67\x4b\xb4\x56\x2e\x2e\x86\x8e\x7a\xce\x08\xbc\
\xc4\xe0\x17\x00\xcc\x12\xd1\x38\x56\xfb\x71\x3e\x04\x1e\x1d\xdb\
\x00\x08\x89\xe8\x10\xc0\x4d\x10\x5e\x07\xf0\xa6\x20\xf1\x01\x5b\
\xae\xc7\x69\xac\x99\x39\xf5\x3d\x5f\xfb\xae\x6f\x53\x9d\x4e\x6c\
\xfa\x3f\x84\x3c\x38\xf3\xdf\xbc\x75\x4b\x74\x3a\x1d\x55\x2e\x97\
\x03\xd7\x71\xa6\xd6\x36\xd6\x9f\x3b\xac\x1f\xfe\xf4\xda\xda\xda\
\xcb\xb7\x6e\xdf\x5a\x4d\x92\xa4\xec\x79\x9e\x20\x22\xc1\x59\xb1\
\x02\x58\x6b\x61\xad\x45\x14\xc5\x68\x34\x1a\x18\xf4\x07\xec\x79\
\x1e\xf2\xf9\x1c\xe5\xf2\x39\x78\xbe\x0f\x25\x25\x84\x10\xa3\x9c\
\xc6\xec\x15\x45\x11\xe2\x24\xc1\xdc\xec\x1c\x16\xe7\x17\x38\x89\
\x63\xd3\x6a\xb5\x74\xbf\xdf\xd7\x51\x14\xf5\x8c\xb1\xdb\x60\xbe\
\x4a\xcc\xdf\xf5\x8c\x7d\x7f\x76\x18\x6f\xbf\xb4\xd3\x4c\xe7\xbb\
\x61\xc5\x8f\xd3\x67\x85\x31\x3f\x0e\xe0\x39\x30\xaf\x02\x94\x1f\
\x8d\x98\x2c\x0b\x14\xd4\x66\x60\x8d\x04\xbe\x2d\x04\xbe\x0b\xc1\
\xb7\x88\x78\x9f\x2d\x0d\x39\x56\xa9\x35\xc4\x29\x13\xb3\x05\x46\
\x85\x95\xf0\xf2\xee\x1b\xdf\x57\x1b\x3e\x91\x06\xf0\xf6\xca\x0b\
\x40\x16\xb6\x5b\x06\x78\x15\xc4\x2f\x02\xfc\x29\x00\xcf\x03\x38\
\x0d\xa0\x82\x4c\x1d\xff\xc8\x67\x36\x7a\x75\xc0\x7c\x85\x80\x77\
\x00\xba\xda\x0e\xfc\xcd\x37\x56\xa6\x7b\xef\x2d\x94\x73\x43\x25\
\x4e\x83\xe9\x29\x69\x71\x9e\xc0\xa7\x19\x58\x1a\x05\x6b\x3c\xc9\
\xb1\x53\x00\x0d\x66\xbe\x03\xe0\x16\x11\xdd\x05\x70\x07\x84\x3b\
\x00\x36\x00\xec\x23\xd3\x0a\xf0\x8f\xff\xc7\x49\x40\xce\x1f\x76\
\x8e\x0b\x80\xbf\xfb\x5f\xfe\x57\xf8\x99\x3f\xfe\xc7\x4b\x49\x9a\
\x3e\x75\xe7\xee\xed\xf3\xef\xbf\xff\xde\xc9\x46\xa3\x71\x51\x1b\
\xfd\x5c\x9a\xa6\x2b\x49\x92\xe6\x05\x91\x52\x8e\x02\x65\x71\xc1\
\xb0\xd6\x40\x08\x89\xa9\xa9\x2a\xf2\xb9\x3c\xda\xad\x36\x06\x83\
\x01\x72\xb9\x1c\x72\xb9\x1c\x94\xab\x90\x24\x09\x5a\xad\x16\xe2\
\x38\x81\x94\x22\x13\x04\x00\xe2\x24\xc1\x30\x8a\xe0\x28\x07\xf9\
\x20\x07\xc7\x71\xe0\x38\x0a\xb9\x20\x07\x21\x84\xe9\x75\x7b\xfd\
\x5e\xbf\x77\x60\xac\xbd\x65\x81\x9b\x56\x8a\xdb\x92\x70\x7b\x61\
\x10\xdd\xfd\x63\xd7\xb6\xc4\x5c\x7b\x70\x5a\x58\xfb\x94\x25\x7a\
\x9a\x89\x9e\x06\x70\x0e\xd9\x92\x35\x90\xf5\xe3\x0e\x08\xb7\x01\
\xbe\x49\x44\xeb\x00\xdd\x01\xd3\x55\x58\x5a\x07\xa3\x39\xaa\x3e\
\x85\xe7\x36\xdf\xfc\xb7\x6a\xc3\x47\xd4\x96\xff\x5f\x03\x00\x7e\
\x67\xf9\x4d\x2c\x0e\xa6\xa9\x63\x8c\x70\xf3\x71\x59\x48\x7b\x96\
\x88\x3f\xcd\xc4\x3f\x05\xe0\xe5\x51\xde\xfd\x13\x44\xed\x8d\x0e\
\x9b\xe5\xae\x77\x01\xdc\x61\x41\x5f\x89\x7c\xe7\x5b\x6b\xd5\xc2\
\xee\xf7\x96\xa7\xfd\x96\xef\x5e\xd6\x84\x97\x99\xf0\x29\x00\xa7\
\x88\x29\x7f\xec\xd8\x8f\x13\x54\xe3\x19\x7f\x40\x44\x4d\x00\x37\
\xc1\xf8\x7d\x00\x6f\x00\xb8\xc9\xe0\x43\x22\x8a\x48\x90\x96\x42\
\x5a\x45\x8a\xdf\x7c\xfb\x4d\xbc\xf9\xe6\xbf\x5d\xc3\x4d\xf8\x64\
\xe9\x74\x3a\xc8\xe5\x72\xf8\x9b\xff\x97\xbf\x89\xbf\xfc\x97\xff\
\xb2\x12\x44\xc1\xe6\xd6\xf6\x99\x41\x18\xfe\xd4\xfa\xc6\xfa\xe7\
\xdf\x7b\xef\xdd\xf3\xeb\x1b\xeb\x73\x87\xf5\x46\xce\xf7\x7d\x67\
\x79\x71\x51\x14\x8b\x45\x48\x25\x01\x06\xac\xb5\x48\xb5\x86\xe3\
\xba\x38\x73\xea\x14\x96\x16\x17\x10\x86\x43\x0c\x87\x11\xf2\xf9\
\x3c\x7c\xdf\x83\x31\x06\x8d\x66\x13\x77\xee\xde\x45\xb7\xdb\x85\
\xa3\x14\x1c\xa5\x20\xa4\x40\x92\x24\xe8\x76\x7b\xa8\xd7\xeb\xe8\
\xf6\x7a\xa8\x54\x2a\x58\x5e\x5a\xc2\xca\xf2\x32\x0a\x85\x02\x37\
\x1b\x4d\x6e\x34\x1a\x36\x8a\xe2\xd4\x58\xdd\x25\xd0\x0e\x08\x6f\
\x0a\xe0\xab\xbe\xd1\x1f\x9c\x6c\x74\x3b\x9f\x59\x6f\x14\x2a\x51\
\x7a\x56\x1a\xfb\x39\x80\x7f\x14\xc0\x29\xdc\x9b\x4c\x79\x54\x9f\
\x61\x48\x44\x2d\x02\xdd\x04\xe3\x77\xc1\x78\x9d\x99\x6e\x5b\xe0\
\x50\x0a\x1a\xe6\x5c\x27\x95\x69\xcc\x9b\xb5\x93\xf8\xf3\xff\xb7\
\xff\x19\x77\x7f\xee\xfe\x4a\xb4\x1f\xc5\x63\x3f\xf7\xf6\xea\x0b\
\x00\x20\x41\x58\x04\xf3\x25\x66\x7c\x0e\xe0\xcf\x82\x70\x89\xb2\
\xa8\x3a\xf9\x44\x67\xc9\x06\x7f\x17\xc0\xa6\x60\xbc\x01\xd0\x6b\
\xbd\x9c\x77\xf5\xd5\x53\xb3\xfd\x2b\xd3\xa5\x93\xa1\x14\x97\x89\
\xf9\x69\x62\x3e\x87\x2c\x03\xb0\x74\xac\x80\xc4\xa3\x0f\x9a\xcd\
\x00\x31\x80\x35\x00\xd7\x08\x74\x05\x84\xab\xcc\x7c\x9d\x2d\x6f\
\x22\xb3\xff\x63\x00\xf8\x27\xff\x64\xe2\xc9\xff\xf7\x89\xe3\xb9\
\x14\x5f\xfd\x9d\xaf\x56\x3a\xed\xce\xcb\xcd\x76\xeb\xf3\xf5\x7a\
\xfd\xf3\xed\x4e\xfb\x62\xbb\xd3\x9e\xde\xdf\xdf\xf7\xb7\xb7\x77\
\x91\xcf\xe7\x71\xf1\xc2\x05\x2c\x2e\xcc\xa3\x58\x2a\xc1\x75\x5d\
\x08\x22\x28\xa5\xe0\x07\x01\x66\x67\x66\x90\xcf\xe7\x70\x78\x58\
\x47\xb7\xdb\x45\x10\xe4\x50\x2c\x16\x10\x04\x01\xd2\x34\x45\xa3\
\xd1\x40\x7f\x30\x80\xd1\x1a\xcc\x0c\xcb\x16\xad\x56\x0b\xdb\xdb\
\x3b\xd8\xde\xde\x46\xb3\xd9\x44\xb1\x54\xc2\xdc\xdc\x2c\x4a\xc5\
\x12\x72\x41\x00\xcf\xf3\x61\xb4\x41\xbd\x7e\x88\x5e\xaf\x67\x98\
\x79\x00\x60\x9b\x09\x57\x98\xe8\x7d\x43\xb8\x52\x1b\x26\x6b\x5f\
\xbe\xb9\xdb\x3e\x77\xd0\x99\xb5\x84\x67\x19\xf8\x14\x13\x5e\x04\
\xb0\x02\x70\x05\xc8\x6a\x2c\x21\xd3\x08\x5a\x60\xdc\x01\x70\x0b\
\xc0\x4d\x10\xbd\xa7\x84\x7c\xbb\xe0\xe6\x77\x19\x9c\xa6\x26\x8b\
\x40\x3d\x7f\xfb\x3b\x1f\xab\x1d\xef\x1b\x64\xd7\x5e\x3e\x9f\xbd\
\x79\x63\x16\x3c\xdf\xa5\xa0\x53\x90\x03\x27\xae\xa6\xc2\xbe\xc4\
\xc4\x5f\x64\xe6\x2f\x82\xf1\x0c\x11\x02\x3c\x99\x90\x19\x27\xd0\
\xf4\xc0\xb8\xc3\xc0\x5b\x46\x8a\x6f\xac\xcd\x54\xde\x7d\xf5\xc4\
\x9c\xaa\x07\xce\x39\x9d\x69\x13\xaf\x30\xf3\x22\x18\x45\xa2\x71\
\x3d\xbb\xc7\x62\x01\xa4\x23\xcf\xfd\x2e\x81\xbe\x47\x42\x7c\x5b\
\x08\xf1\xba\xeb\x79\x77\xf3\xe5\x52\xff\xd9\x1f\xfd\x42\x7a\xf9\
\x73\x9f\xe3\xa5\xca\x14\xaa\x00\xfc\x07\xb2\xb5\x9e\x24\x09\xe7\
\x21\xde\xe5\xef\x67\xd9\xf4\x07\x5d\x91\xea\xa3\xb2\xce\x9e\xf4\
\xb9\xfc\xa0\xae\xe7\x07\xc1\x3d\xef\xdd\x47\x3c\x97\xf1\x33\x79\
\xf7\xdd\x77\x51\x2e\x97\xe5\x89\x13\x27\x82\xaf\x7c\xe5\x2b\xe7\
\x36\xb7\x36\xff\x74\xbd\x51\xff\xf2\xf6\xee\xce\xd9\xc1\x60\x50\
\x15\x42\xd0\x30\x8a\xd0\x6a\xb6\x51\x2c\x16\x71\xfe\xec\x59\x9c\
\x38\x71\x02\x0b\x0b\xf3\x28\x14\x0a\x70\x1c\x07\xf9\x5c\x0e\x41\
\x10\xc0\x75\x5d\xc4\x71\x8c\x8d\x8d\x0d\xd4\x1b\x0d\x78\x9e\x87\
\x4a\xa5\x32\x12\x0c\x79\x18\x63\x10\xc7\x31\x86\xc3\x21\x92\x24\
\x41\x14\xc7\xd8\xdb\xdb\xc3\xda\xda\x1a\xb6\x46\x02\x20\x13\x26\
\x3e\x8c\x31\x70\x94\x83\xc5\xc5\x45\xe4\x73\x79\x1c\x1e\x1c\xa2\
\xd5\x6a\x22\x8e\x63\xb6\xd6\x1a\x64\x4b\xdd\x1b\x4c\x78\x0b\xc0\
\xb7\x1d\xc3\xaf\x9e\x6c\xf6\xf7\x3f\xbd\x71\x18\xcc\xf7\x87\x2f\
\x4a\xe6\x2f\x02\xfc\x32\x67\x0e\xf6\xe2\xc8\xf4\xce\xaa\x44\x65\
\x37\xdf\x01\xd1\x06\x80\xd7\x04\x89\xaf\x08\xd0\x7b\xb0\xe6\x90\
\x4c\xda\x27\x07\x69\xba\xe7\x73\xfe\xf3\x2d\xd8\xa1\xc4\xf9\xef\
\xdc\xfa\xc8\x86\xbf\x2f\x14\xf8\xc2\xeb\x37\xb2\xc6\x3d\x91\x03\
\x62\x41\x89\x1f\xae\x30\xf0\x22\x33\x7f\x31\x9b\xfd\x71\xea\x63\
\x0c\xfe\x71\x25\xcd\x3d\x80\xde\x55\xd6\x7e\xcb\x12\xbf\xfe\xee\
\x7c\xad\xf3\x9d\x93\xf3\xf3\x7d\x47\xbe\xc4\xc0\x67\x88\x71\x11\
\xc0\x12\x81\x82\x51\x25\xde\xec\x6b\xe2\x58\x0c\xcf\xa8\x9e\xce\
\x38\x2c\x18\x84\x3e\x81\xf6\x00\xbc\xc7\xc0\x9b\x50\xea\x5d\xf8\
\xfe\x8d\xc4\xf7\x77\x7f\xf9\xff\xf9\x5f\xf6\xfe\xaf\x9f\x7e\x19\
\x7f\xe1\xef\xfe\x3f\xc6\x3d\xea\xfb\xee\x95\x0f\xe9\x8c\x3f\xe8\
\x94\xcf\x1f\x46\x0a\xe9\xbf\xcd\x31\xff\xd0\xa4\xb4\x0e\xfa\x7d\
\x58\x6b\xdd\x38\x8a\x2f\x69\xa3\xbf\xb0\x7f\xb0\xff\xd9\x83\xc3\
\xc3\x73\x49\x9c\x14\x99\x99\xe2\x24\x41\x2e\x08\xb0\x74\x79\x11\
\xc5\x7c\x01\xb9\x20\x87\x20\xf0\x51\x2a\x95\x50\x2e\x95\xe1\xba\
\x0e\x5c\xd7\x85\x52\x0a\x42\x08\x68\xad\xe1\x38\xf7\xde\x93\x52\
\x42\x4a\x09\xa5\xd4\xd1\xcb\xf3\x3c\x84\xc3\x21\x98\x19\x95\x4a\
\x05\xab\x27\x4e\xc0\x75\x5d\xe4\x73\x39\xf4\xc3\x01\xd2\x34\x05\
\x11\xc1\xb2\x45\xa3\xd1\x40\x18\x86\xf0\x7d\x1f\x33\xd3\x33\x38\
\xac\x1f\xd2\x60\x30\x50\x44\x54\x20\xa2\x13\xc4\x08\x18\x98\x49\
\x84\x38\x71\x63\xba\xf4\xda\x61\xc1\xfb\xe0\xa7\x6f\x6c\xbf\x7d\
\xb2\xd9\xaf\x33\xec\x96\x21\xfa\x11\x00\xcf\x80\x79\x69\xd4\x87\
\xc5\xe8\x67\x09\x99\xa9\x10\x58\xb6\x73\x96\xe9\x1d\x02\xbd\x4e\
\xd2\xbd\x02\x8b\x4d\x9a\xb5\x71\x78\xb3\x8c\x67\x37\xdf\x7e\xa2\
\x76\x24\x00\xb8\xfa\xf9\xac\xc2\xee\xf0\x76\x09\xde\xf2\x00\x69\
\xc3\x73\xc1\x54\x23\xa6\xcf\x02\xf8\x29\x66\x7c\x9e\xb3\x90\xde\
\x27\x59\x7e\x1b\x13\x83\xd1\x04\xe8\x4d\x26\xf1\x8d\xa1\xab\x5e\
\xfb\xc6\x99\x99\x9d\x6b\xb3\xd5\x93\x0c\x7c\x9e\x19\x3f\x01\xe0\
\x79\x10\xf2\x00\x88\x88\xe0\x79\x1e\x8a\xc5\x22\x3c\xa5\x00\xad\
\x01\x63\xef\x3f\x62\x26\xfd\x8d\x10\xd4\x51\x52\xad\x15\x7d\xff\
\xdb\xcb\xe5\xea\x77\xcf\xce\xcd\x6f\x9c\x9d\x9d\xeb\x28\x21\xac\
\x79\xf0\x3b\xe3\xaf\x1a\x63\x58\x1b\x4d\x81\x6f\x65\xa5\x6c\xd4\
\x54\x75\xe8\xae\x2c\x86\xd2\xf7\x23\x66\x9b\x64\x0b\x9c\x59\x81\
\x4b\xdd\xef\xbb\xa6\x3f\xc8\x9b\x4e\x37\x48\xf7\xea\x0e\x87\xa1\
\x03\xb0\xa2\x27\xf3\x75\x1c\xbb\xdc\xec\x7a\x41\x42\xcb\x7c\x3e\
\x55\x0b\xb3\xa9\x9a\xaa\x0e\x45\x2e\x08\x85\xef\xfa\x36\x4e\xa6\
\xd3\xdd\x3d\x2f\xb9\xbb\x41\x76\x18\x11\x09\xf1\x90\x01\xc8\x80\
\x54\x24\xf3\x01\x44\xa1\x90\x3a\x73\xb3\x3d\x67\x7e\xb6\x07\x60\
\x90\x36\x9a\x9a\xb5\x01\x27\x49\x89\xb5\x99\x35\xed\x76\xa0\xeb\
\x0d\x70\xaa\x69\x1c\xc3\x70\x74\x0c\x21\x41\x81\x47\x22\x17\xa4\
\xce\xcc\x4c\xc7\x3b\xb1\xd2\x45\x36\x1b\x69\x00\x52\xb7\xda\x25\
\x8e\xe3\x19\xdd\x6c\xfb\xe9\xee\x1e\xdb\x28\x02\x49\x05\x51\x2a\
\x42\x14\xf2\xe0\x24\x86\x1d\x84\xe0\x24\x05\xb4\xf9\xb7\x19\xbb\
\x60\x66\x08\xd7\x81\x9a\x9e\x12\xb2\x54\x8a\xc8\xf7\x0e\xdd\xc5\
\x85\x0e\x32\x6d\x31\xeb\x98\x8f\x10\xdc\xdb\xdb\xdb\x00\x40\x8b\
\x8b\x8b\xfc\xad\x6f\x7d\x6b\xbe\xd3\xed\xfe\xdc\xc1\xc1\xfe\xcf\
\x5f\xbd\x76\xf5\xa5\xc3\x46\x7d\x49\xca\xcc\x2a\x8d\xa2\x08\x33\
\x33\x33\x78\xee\x99\x67\x50\x2a\x96\x30\x18\x84\xc8\xe5\x72\x98\
\x9d\x9d\x45\xa5\x52\x46\x3e\x9f\x87\x94\x32\xbb\x16\x91\xd9\xf4\
\x7b\x7b\x7b\x68\xb7\xdb\x90\x52\xa2\x50\x28\x60\xba\x56\x43\x2e\
\x9f\x3f\xea\x7b\x0c\xa0\xd7\xeb\xa1\xd1\x6c\xc2\x18\x03\x41\x84\
\x76\xa7\x83\xdd\xdd\x5d\x6c\x6e\x6d\xe1\xe0\xf0\x00\x00\x20\x85\
\x40\x9c\x24\x99\x26\xb0\xb0\x00\xd7\x71\xb1\xbf\xbf\x8f\x6e\xb7\
\x0b\x6b\x6c\x56\xb6\x22\xa3\x07\xc6\x16\x08\xaf\x32\xf1\xd7\x8d\
\xa4\x77\x9e\xdd\x6b\x37\x7e\xfc\xc6\xf6\x49\x3f\x35\x9f\x05\xe3\
\x4b\x00\x5e\x04\xd1\x14\x3e\x5c\x8b\xc2\x32\x63\x88\x2c\x37\xe6\
\x5b\x20\x7c\x1b\xc4\x6f\x41\xf0\x8e\x10\x4e\x18\xe4\xaa\x3a\x8e\
\xba\x0c\x00\x97\x6f\x7e\xef\x91\xcf\x42\x01\x80\x73\x22\x4b\x60\
\x09\xaf\x57\x20\xca\x31\xf1\x41\xb0\x04\xc6\xa7\x41\xf8\x12\x80\
\x1f\x45\xb6\xf6\xfe\xc4\x89\x43\x0c\x66\x02\x6d\x11\xe8\x3b\xd2\
\xe2\x77\x87\xae\xf3\xd6\x57\xce\x2d\x39\x77\xa7\x72\xaf\x18\xd0\
\x2b\x04\xfe\x34\x08\xa7\x80\x7b\x83\x5f\x08\x81\x5a\xad\x86\xe7\
\x9f\x7f\x1e\x0b\xc5\x12\x68\xff\x10\x3c\x08\x01\xcb\xc7\x1b\x0c\
\x94\x15\x7d\xc8\xb9\x52\xae\x14\x5c\xef\xc7\xca\x9e\x7f\xc1\x77\
\x9c\x01\xba\x3d\x9d\x66\xf5\xeb\xc4\x7d\xf3\xd8\xb8\xc9\x84\x60\
\x48\x65\x49\x08\x0d\x21\x7b\x10\xe2\x1a\x11\xbd\x05\xe0\x06\x91\
\xd8\x45\x66\x56\x10\xb2\x4d\x41\x96\x21\xe5\x67\x20\xe4\x25\x08\
\x9a\x65\x63\x0a\x1c\x45\x02\x46\xd3\xc7\x99\x23\x19\x00\x94\xb4\
\x32\xc8\x59\x08\xd1\x23\x29\x77\x20\xe5\x15\x22\x7a\x1b\x8c\x79\
\x58\xfb\x33\x1c\xc5\xab\xa6\xd3\x55\x36\x1c\x12\x49\xf9\xf0\xa3\
\x28\x05\x58\x2b\x21\x65\x9d\x75\xfa\x16\x80\xb7\x00\x5c\x61\x63\
\x5a\x30\x06\xac\xf5\x65\xd6\xfa\xcf\xd9\x28\x5e\xb5\xdd\x9e\xb1\
\x49\x02\x7a\x70\x1b\x03\x29\x41\x3a\x90\x00\x1a\x6c\xf4\xeb\x00\
\xde\x04\x70\x0d\x59\x86\xa3\xcf\x5a\x3f\xc7\x69\xfa\x27\xed\x70\
\x78\xc2\x74\x7b\x6c\xc3\x21\x48\x49\xb0\x20\x40\x10\x6c\x14\xc1\
\xf6\xfa\xe0\x38\xf9\x01\x08\x00\x0b\x76\x5d\x88\x5c\xe0\x90\xef\
\x6d\x09\x25\x7f\x03\xc0\xab\xc8\x72\x3f\xec\xe3\xbe\x3b\x1c\x0e\
\xc7\x4f\xb5\x30\x18\x0c\x96\xde\x7e\xe7\x9d\xa7\x3b\x9d\xf6\xe5\
\x41\x18\xd6\xa4\x94\x47\x3a\x8c\xe7\x79\xa8\x94\x2b\x58\x58\x58\
\xc4\xcc\xf4\x34\x86\xc3\x21\xfa\x83\x10\xad\x56\x0b\x44\x84\x7c\
\x3e\x0f\x21\x04\xac\xb5\x20\x22\x48\x29\xe1\x79\x1e\x7c\x3f\x00\
\x11\x32\xcd\x60\xb4\xfc\xc7\xa3\xc1\x6f\x47\xa6\x40\xbf\xdf\x87\
\xef\xfb\x98\xaa\xd5\x30\x35\x35\x85\x72\xa9\x84\x41\x18\x62\x7b\
\x67\x07\xcc\x16\xfe\x68\xe9\x90\x04\x61\x10\x86\xd0\xae\x46\x10\
\x04\x00\x03\xfd\x41\x1f\x49\x92\x8c\x05\x5c\x6e\x94\x2f\x13\x80\
\xb1\x4a\x16\xbf\x7f\x65\xa6\xf2\x2d\xa1\xcd\xd6\xcf\x5e\xd9\xf8\
\x6d\x01\xd1\x4a\xa5\x6c\x64\x4b\xed\x38\xf3\x40\x31\x1c\x41\xd9\
\xe4\x79\x86\xc1\x01\xb2\x9a\x1a\xe7\x60\xc5\xab\x10\xf4\x86\x50\
\x68\x11\x09\x8b\x8f\xd0\xea\x14\x00\x0c\xbf\x33\x0f\x00\x08\x2a\
\x89\xd2\xb7\xcb\x15\x02\x9e\x66\xe0\x8b\x00\x5e\x01\x70\x06\x4f\
\xb6\xc4\x37\x26\x42\x56\xe6\xea\x2d\x2b\xe8\xeb\xbb\xe5\xc2\xfb\
\xff\xe6\xa9\xe5\x64\x3f\xe7\x5e\x92\xd6\x7c\x99\x98\x3f\x0d\xc2\
\x19\x3c\xe0\x40\x64\x66\xb8\x9e\x87\x99\xd9\x59\x9c\x2a\x57\xe1\
\x0f\x35\x28\x32\xb0\x51\x08\xd6\xfa\xb8\x2a\x4f\x00\x67\x7b\xf2\
\x61\x38\x03\xe0\x99\x71\x41\xfb\x47\x92\x15\x8a\x04\x29\x05\x0a\
\x02\x23\x0a\x85\xae\xaa\x96\xdf\x35\xcd\x56\x45\x96\x4b\xc2\x9d\
\x9b\x1b\xca\x72\xa1\x93\x1e\xd6\xf3\x36\x4e\xce\xea\x7a\xe3\xe5\
\xf4\xb0\xf1\xe3\xa6\xd3\x7d\xd1\x74\x7a\x8b\x76\x10\xe6\x39\x8e\
\x00\xf3\xf1\x3a\x3e\x03\x20\x29\x21\xfc\x00\x22\x9f\xeb\xa6\xfb\
\x07\x1b\xb2\x5c\x5c\x55\x73\x33\x25\xff\xf4\x89\x2a\x88\x5e\xb6\
\x51\x7c\x41\xb7\xda\x35\xdd\x6c\x3b\x30\x66\xac\xe5\x1c\x6f\x18\
\x90\xeb\x42\xd5\xa6\xc0\xda\x6c\xc9\x72\xb9\x8b\x2c\xbb\x4c\x74\
\x7e\xeb\xeb\x98\xf9\x8f\xfe\xc3\xdc\xe0\xed\xf7\x9e\xb2\xe1\xf0\
\x67\xd2\xdd\xfd\xd3\xc9\xfa\x26\x38\x8a\x01\x21\xee\x3b\x06\xa4\
\x84\xc8\xf9\x90\xd5\x4a\x5d\x96\x8a\x01\x03\x03\x02\xb6\xbe\x4e\
\xd4\xfe\x12\xb3\x64\x6d\x96\x6c\x92\xfe\x98\x69\x77\x9e\x4b\x36\
\xb6\x61\xba\x3d\x12\xbe\x07\x57\x2a\xc8\x52\x09\x1c\xc7\xd0\xf5\
\x06\x4c\xa7\x97\x1d\x9f\xf9\xfb\x36\xaf\xd8\x5a\x08\xdf\x03\x33\
\xc3\xb1\x76\x5d\x55\xed\x75\x00\xd7\x31\x2a\xe3\xf6\xb8\xef\x8e\
\x36\x08\x11\x41\xe0\x4f\x0f\xa3\xe1\x99\x66\xab\x79\xa6\xd9\x6c\
\x2e\x0a\x49\xfe\x78\xb0\xba\xae\x8b\xa9\xea\x14\x56\x96\x97\x51\
\x1b\x0d\xd2\x34\x4d\x41\x87\x87\x18\xf4\xfb\x18\x0e\x87\x88\xa2\
\xf8\x28\x06\x60\x6c\xe3\xf7\x7a\x7d\x0c\x06\x03\x30\x5b\xa4\x69\
\x0a\x21\x25\xb4\x31\x70\x94\x02\x11\x41\x6b\x8d\x54\x6b\x08\x22\
\xb8\x8e\x83\x5c\x3e\x8f\xc0\xf7\xe1\x7a\x1e\x96\xf6\xf7\xb1\x7f\
\x70\x80\x6e\xa7\x03\x6b\x0d\x68\x54\x88\xb5\xd9\x6e\xc1\x73\x5d\
\xd4\xaa\x35\x38\xca\x41\x14\x47\x48\x92\x64\x7c\x3b\x12\x59\xc4\
\x6c\x01\xc0\x92\xb0\x5c\x04\x91\xfb\xd6\xd2\xf4\x37\xf6\x73\xc1\
\x8d\x5f\xb8\xb6\xf3\x7a\x35\x8a\x13\x66\x1e\xe7\xb6\xcc\x21\xcb\
\x77\x39\x4e\x11\xc0\x53\x00\xa6\x01\xcc\x12\x73\x81\xb5\x96\xfd\
\x56\xe3\x9a\x25\xb1\x6f\xa4\x33\x7c\xeb\xf4\xcb\x16\x00\x5e\xb8\
\xf3\xfa\x87\xda\x53\x01\x00\x9b\xec\x41\x1a\x4b\x55\x66\x5c\x22\
\xe6\x57\x00\xbc\x02\xa6\x53\xa0\x8f\x93\x32\xcc\x00\xb0\x0f\xd0\
\xef\x03\xfc\xf5\x6e\x20\x5f\xfb\xd7\x17\xe6\x2b\xcd\x40\xfe\x18\
\xc1\x7c\x86\x89\x5f\x20\xd0\x1c\x1e\x50\xa5\xc7\x01\x19\xfd\x7e\
\x1f\x9b\x5b\x5b\x08\x1a\x2d\xcc\xaf\xed\xc2\xbd\xbb\x81\x78\x7d\
\x13\x66\x10\x02\xa3\xf5\x57\x7e\xf0\x6c\x0f\xf9\x1d\x38\x26\x2a\
\xe9\xd8\xff\x84\x00\x84\x90\xc2\xf7\x4b\xee\x89\xe5\x67\xfd\xa7\
\xce\x16\xbd\x93\xab\xe4\xce\xcc\x46\x00\xee\xda\x61\x54\x49\xeb\
\x8d\x9f\x4d\xd6\x36\xff\x78\xff\x3b\xdf\x3b\x11\xdf\x59\xaf\x72\
\x94\x78\xac\x35\x60\x2d\xc0\xf6\xe8\x44\x1f\xe9\x45\x1b\x15\xd5\
\x25\x12\xd9\xec\xab\x54\x5e\x78\xee\x49\xf7\xe4\x4a\xb1\xf8\x63\
\x9f\x3b\xa7\x2a\xe5\x7d\x55\x2d\x6f\xa5\x07\x75\x39\xbc\xb9\x56\
\x4a\xd6\x37\x1d\xd3\x68\x80\x53\x3d\xf2\x7f\x64\x27\x61\x6b\x21\
\x0b\x79\x78\xa7\x4e\xc2\x59\x5a\x0c\xad\x36\xb7\xfd\x8b\xe7\x6f\
\x10\x30\x98\xf9\x8f\xfe\xc3\x1c\x80\x93\xfa\xa0\xb1\x1c\xaf\x6d\
\xf8\xf1\xad\x3b\x18\x7e\x70\x1d\x36\x0c\x41\xf2\xb8\x00\x00\x20\
\x05\xc8\x73\xe1\x2c\x2d\x38\xb2\x5a\x9d\x0d\x9e\xb5\x0b\x24\x44\
\x70\xee\x1f\xfc\x43\x00\x30\x26\x8a\x63\xd3\xed\x0f\x86\xb7\xd6\
\x86\xbd\xdf\xfd\xb6\x9f\x1e\x36\x48\x55\xca\x28\x7a\x3e\xdc\x93\
\xab\xd0\xbd\x01\xc2\xab\x37\x91\xae\x6d\xc2\x34\xdb\x60\x6b\xef\
\x5d\xe7\x43\x1e\xc2\x63\xa7\x1d\x63\x20\xf2\x79\xf8\x97\xce\xc3\
\x3f\x7b\xca\xf1\x9f\x3a\x37\x13\x64\x39\x1d\xdd\x91\x63\xf7\x91\
\x34\xdb\x4d\x00\x90\xa9\x49\x97\xe2\x24\xbe\x2c\xa5\x58\x30\xd6\
\xb8\xda\x72\x66\xb7\x0b\x89\x4a\xa5\x8a\xcb\x97\x9f\xc6\xa9\x93\
\x27\x51\x2a\x16\x41\x23\x8f\x7f\x2e\x97\x43\xb9\x5c\x02\x91\x40\
\xb7\xdb\x81\x94\x12\x69\x9a\xa2\xdf\xef\xa3\xd5\x6e\xa3\xd5\x6a\
\xa3\x3f\xe8\xc3\x18\x03\xcf\x75\x31\x35\x35\x95\xcd\xf2\xd5\x2a\
\x3c\xcf\x83\xd1\x06\x04\x42\xad\x36\x8d\x20\x08\x20\x47\x02\xc7\
\x73\x5d\x9c\x3b\x7b\x16\x9e\xe7\xe1\x83\x2b\x57\xb0\xbe\xbe\x06\
\xad\x35\xb4\xd1\x68\x75\x3a\x08\x7c\x1f\xd3\x53\xd3\x08\x72\xc1\
\x91\xd9\xf1\xa0\x89\x43\xd9\x86\x2f\x4f\x81\xe1\x2b\x8b\x6a\xbd\
\x94\xff\xe6\xbf\xbe\xb8\xf2\xde\x9f\x7d\xe7\xf6\xf7\x54\xca\x5a\
\x0b\xea\x31\xf0\x25\x00\x67\x1f\x34\x45\x47\x47\x2a\x21\x13\x04\
\x25\x66\x7b\x1a\xa0\xdf\x06\x89\xaf\x0b\xe6\x2d\x64\x35\x29\x1f\
\xfa\x48\xd4\xeb\x27\x5f\xc0\x33\x6b\x6f\xe1\xf5\x93\x2f\x3a\xae\
\x35\x4b\x00\x3e\x0b\xa2\x4f\x81\xf9\x34\x08\x45\x3c\x39\x1a\x59\
\xd1\x8c\xab\x00\x7e\x6f\xa7\x9c\xff\xe0\xdf\x5c\x58\x92\x07\x79\
\xff\x82\x32\xfc\x45\x01\x3c\xcb\xc0\xc2\xd8\xd1\xf7\x20\xcc\x8c\
\x30\x0c\xb1\xb3\xb3\x83\x82\x97\x43\xa9\xd3\x03\xd5\x9b\x08\x6f\
\xaf\xc1\xb4\x3b\xc0\x87\xd4\xe3\x2c\x22\x0b\x82\x40\x52\x8e\x66\
\x79\x1c\x6d\xd8\xc5\xd6\x02\xd6\x8e\x72\xc2\x8f\xf7\x4c\x06\xb9\
\xae\xb4\x83\xb0\x0a\x21\x02\xe1\xfb\x3b\x26\x1c\xec\xca\x6a\xd1\
\xe1\x28\x2a\xc6\x77\xd6\x5e\x8a\x6f\xaf\x7d\x3a\xba\x7a\x53\x45\
\xd7\x6e\x82\x93\x34\x3b\xd6\xf1\x33\x67\x82\x24\xfb\xf9\xc8\xf3\
\x1e\xfb\x0e\x11\x48\x08\x49\xae\x53\xb0\x51\x5c\x70\x16\xe7\x97\
\x64\xa9\xf8\x81\xb8\x74\xe1\xdb\x6c\xb9\xc1\x5a\x6b\xdd\x6c\x21\
\xbe\x79\x17\x3c\x8c\x80\xe3\x83\xd7\x58\xc8\x52\xe6\x0c\x66\x86\
\xa5\x5c\x10\x8e\x66\x6f\x8d\xac\xa4\xda\x69\x13\x86\xcb\xd1\xad\
\xbb\x4e\x74\xf5\x06\xa2\xeb\x37\x61\x07\xc3\xfb\x8f\x81\x91\x4d\
\x2d\x25\x4c\x3f\x54\xba\xde\xac\x99\x4e\x77\x96\x8b\x85\xdc\x7f\
\xf3\xd7\x7f\x11\x7f\xe7\x3f\xf9\x8b\x6c\xc2\x50\xeb\x6e\x2f\x4e\
\x76\xf7\x75\x74\xf3\x0e\xeb\xc3\x06\xec\xfc\x1c\xdb\xfe\x20\x26\
\xcf\x8b\x61\xad\x63\xda\x1d\x2f\xde\xd8\x12\xe9\xf6\x1e\xc1\xd8\
\x6c\x67\xc1\x07\xcf\x21\x44\xf6\x4c\x48\x3c\x52\x43\x60\x63\x20\
\xf3\x79\x50\xe0\x83\x3c\x5f\x39\x2b\xcb\x35\x64\x29\xdc\x6b\x1f\
\xd5\xc9\x8e\xca\x8b\x33\x02\x22\x2a\x5b\x6b\x7d\xad\x53\x92\x4a\
\x21\x17\x04\xa8\x56\xa6\x70\xf2\xc4\x09\x9c\x3a\x79\x0a\xf3\xf3\
\x73\xf7\x5d\x9b\x3f\x0a\xe5\x6d\xb5\xda\x38\xac\x1f\xc2\x18\x03\
\x6b\x2d\xba\xdd\x2e\x7a\xfd\x3e\xd2\x34\x85\x31\x26\x13\x0a\x44\
\xe8\x0f\x06\x99\x60\xa8\x56\xe1\xfb\x7e\x36\xca\x8a\x25\xcc\xce\
\xce\x22\x08\xfc\xcc\xe1\x67\x2d\x84\x10\x98\x99\x99\x81\xe7\x79\
\x88\xe3\x18\x49\x1c\xa3\xd9\x6a\xa1\xd7\xef\x41\x0a\x61\xa5\x94\
\x91\xeb\xba\x2d\xe5\x28\x8c\x9e\x99\xff\xb0\x15\x26\xca\x12\xe7\
\x2e\x12\xb3\x64\xc0\x59\x2f\x07\xd1\xff\xf0\xc2\xa9\x77\x7f\xf6\
\xea\xe6\x7b\x33\xfd\x08\x20\x2a\x73\x16\x14\x37\x87\xac\x64\xde\
\x71\x1c\x64\x71\x39\x25\x00\xb3\x60\x30\x59\x93\x12\xdb\xd7\x14\
\xd9\xdb\x79\xd7\x0c\x3f\x38\xfd\x9c\x05\x80\xa7\xef\xdc\x0b\x27\
\x56\xc4\xc0\x6b\x27\x5f\x72\x04\xdb\xaa\x05\x5d\x24\xf0\x17\x01\
\x3c\x0b\xa2\xe0\x63\x0c\x7e\x00\xe8\x82\xe9\x03\xc1\xf8\x96\x96\
\xf4\xda\xef\x9c\x5b\xa2\xb6\xe7\xff\x88\xb4\xf8\x51\x00\xcf\x20\
\x0b\xe7\x7d\xa4\x13\x8d\x88\x90\xea\x14\xed\x76\x1b\x9d\x02\x83\
\x7d\x0f\xb2\x90\x07\x29\x95\x0d\xa0\x07\x3b\x13\x11\xc8\x75\x20\
\x5c\x0f\xe4\xb9\x20\xc7\x39\x1a\xe0\x6c\x2d\x38\x49\x61\x87\x43\
\x20\x49\x31\x2a\x40\x7f\xf4\x3d\x58\x8b\x74\xef\x00\x90\x42\xaa\
\xe9\xda\x92\x19\xf4\x5f\x00\x10\x70\x14\xc9\xf0\x8d\xb7\xa7\x87\
\x57\x6f\xaa\x64\x7b\x17\x9c\xea\x4c\x60\x1c\x3f\x37\x11\xc8\x73\
\x21\x72\x01\xc8\x71\x32\x21\x70\xac\x63\x73\xaa\x61\xc3\x21\x10\
\x8f\xeb\x44\xd2\xbd\xeb\x4a\x52\xa4\xbb\x7b\x18\xbc\xfa\x86\x82\
\xd6\x39\x77\x79\xa9\xec\xad\x2c\x06\xfe\xb9\x53\xac\x0f\x0e\x91\
\xdc\x59\x07\xd3\x48\x6b\x18\x17\x4e\x15\x99\x74\xb1\x69\x02\xd6\
\xa9\x2b\x8b\x85\x39\xca\x6a\x26\xf6\x91\xf9\x50\x4e\xc2\x98\xc5\
\x74\xff\xd0\xd5\x8d\x76\xb6\x1b\xb7\x10\x1f\xf6\x01\x80\xc0\x69\
\x0a\x8e\x62\x65\x7a\xbd\xa9\x64\xef\x60\x46\x0e\xc2\xfc\xdf\xc9\
\xd4\x4b\x69\x07\x03\xc7\xf6\xfb\x01\x27\x89\x0b\x22\x12\xb9\x00\
\xb2\x5a\x66\x91\x0b\x3a\x32\xf0\x9b\xb2\x50\x28\xcb\x4a\x65\x5a\
\x04\x81\xa0\xd1\x56\xa2\xf7\xce\x31\x6a\x5b\xa5\x20\x3c\x77\xf4\
\x3c\xdc\xfb\xda\xe6\xbe\xcf\x19\x0b\xf2\x32\x9f\x16\x27\x89\x04\
\x51\x11\x59\x00\xcc\x47\x3a\x99\x8b\xc5\x22\x00\x70\x6d\x6a\x6a\
\xd0\x6c\x36\x1b\x71\x1c\xf7\x93\x24\x49\x2b\xb9\xbc\x3b\x3f\x3f\
\x8f\xa7\xce\x9f\xc7\x89\x95\x55\x54\x2a\x95\xa3\x76\x1f\x0b\xa2\
\xb1\x57\xbf\xd9\x6a\xe2\xca\xd5\xab\x18\x46\x11\x94\x92\x30\xda\
\x1c\xf9\xa0\xaa\xd5\x2a\x92\x38\xc6\x20\x0c\xd1\xef\xf7\xd0\x6c\
\x35\xb1\xb5\xb5\x09\x41\x02\x4a\x39\x58\x5d\x59\x41\xbe\x90\x47\
\x2e\x77\xbf\x26\x3e\xf6\x2b\x9c\x3d\x7b\x16\xbe\xef\xe3\xea\xb5\
\x6b\xd8\xd9\xd9\xb1\xa5\x62\x39\xca\xe7\xf3\x5b\xe5\x72\xe9\xcd\
\xe1\x70\x28\x8d\x31\x9f\x43\x56\xf4\xf6\x51\x48\x00\xa7\x98\xd9\
\x11\xd6\x98\x46\xce\xf3\x7e\xf3\xe2\xca\x5b\xff\x9b\xb7\xee\xbc\
\xe5\x18\x9b\xb3\xd9\x13\xfe\x31\x64\x11\xb2\x8f\xf8\x3e\x95\x01\
\xbc\x92\x6d\x7e\xcb\x39\x10\xe2\x48\x8b\xad\x6a\xb7\x31\xa8\x97\
\x67\x8f\xa6\x43\x02\xa0\xb2\x5d\x60\x6d\x81\x32\x27\xc3\x65\x64\
\x6a\xc4\x1c\xf0\xb1\x96\x84\x0c\x80\x3d\x80\x5e\x8d\x1c\xf9\xe6\
\x77\xcf\xcc\x75\x37\x2b\xf9\x8b\x6e\x6a\x5e\xa1\xac\xf4\xd7\x1c\
\x9e\xc0\x8f\x60\x8d\xcd\x62\xac\xbd\x00\x9c\x0b\xb2\xce\x34\x9e\
\x65\x8f\x77\x26\x6b\x41\x4a\x41\xcd\xce\xc0\x99\xa9\x25\xe4\x79\
\x7b\x24\x44\x03\x0c\x0b\x29\x5c\xe1\xb9\x45\x33\x08\x4b\xe9\xd6\
\x4e\x51\xb7\x3a\x0e\x47\x11\xd8\x98\xec\x38\xe3\xb5\xc4\xc1\x00\
\xba\xde\x14\x36\x0c\xa7\x6c\x14\x9f\x36\x61\x48\x76\x18\x71\xba\
\x7b\x50\x49\xee\xae\xc3\xf4\xc3\xac\xf3\x1c\x3f\xaf\x10\x20\xcf\
\x81\x33\x3b\x13\x7b\xab\xcb\x03\x72\x9c\x8e\x8d\xa2\x2e\x8c\x4d\
\x21\x48\x51\x10\x94\x58\x9b\x4a\xb2\xbe\x99\x4f\x77\x0f\x3c\x4e\
\x93\xfb\x6d\x7a\x66\x98\x4e\x0f\xf1\xed\xbb\x50\xd5\xb2\x63\x7a\
\xbd\x9c\x9a\xa9\xb9\xee\xd2\xbc\x56\x53\x15\x43\xae\x23\x20\x04\
\xe1\xd8\x12\x28\x8d\xfa\x30\x47\x11\x6c\x92\xf8\x22\x1f\xac\xb2\
\xe5\x93\x24\x68\x07\x40\x60\x93\x74\xde\x46\xf1\xb4\xae\x37\xa5\
\xe9\x76\x33\xf5\x52\x3e\x38\xfb\x8e\x7e\x37\x0c\xd6\x5a\x99\x76\
\xb7\x9c\x6c\x6f\xd7\x54\xb9\x1c\xf8\xcb\x8b\x0a\x80\x32\xcd\x8e\
\xa7\xeb\xcd\xc0\xf6\x07\x1e\x00\x88\x42\x1e\x72\xaa\xc2\xe4\x3a\
\xfb\xa4\xd4\x1d\x28\x75\x52\x04\x41\x95\x5c\xc7\x81\x10\x20\xe6\
\x7b\x1a\xc0\xe8\x16\x65\x21\x0f\x67\x79\xc1\xca\x72\xb9\x27\x1c\
\x55\x07\x63\xc0\x5a\x9b\xfb\x03\x2a\x18\xb0\x4c\xe4\x79\x8e\x9a\
\x9b\x99\x72\x96\xe6\x23\x35\x55\x55\xc8\x84\x99\x1a\xdb\xe5\xed\
\x56\x2b\x60\xe6\xa9\x24\x4d\xf3\x49\x9a\x4a\x29\x55\x58\xad\x56\
\xda\xbe\xe7\xf5\xaf\x5f\xbf\xce\x95\x72\x65\xcf\xf7\xfc\xf7\x94\
\x54\xe5\x7c\xae\x90\xd6\xa6\xa6\x56\x2b\xe5\x4a\x4d\x0a\x19\x24\
\x49\x22\xe3\x24\x86\x52\xd9\x52\x5e\x96\xdc\x63\xd1\xeb\xf5\xb0\
\xbb\xb7\x8b\xdd\xbd\x3d\xb4\xda\x6d\x08\x22\x04\x7e\x19\xc5\x42\
\x11\x85\x7c\x1e\xd3\xd3\xd3\xc8\xe7\x0b\x48\x92\x18\xfd\x41\x1f\
\x83\x7e\x11\x83\x30\xcc\x1c\x88\xfd\x3e\xda\xed\x36\x88\x80\x62\
\xb9\x08\x22\x60\xba\x36\x7d\xa4\x19\x44\x51\x84\x30\x0c\x91\x26\
\x09\x3c\xd7\xd5\x95\x72\xb9\x1d\xc7\xf1\xbe\x52\x6a\xbb\x90\xcb\
\x5f\x2b\x16\x4b\x6f\x74\x3a\x9d\xa2\x31\xa6\x22\xa5\x74\x1d\xc7\
\xa9\x78\x9e\xe7\x78\xae\x07\xcb\x16\x49\x92\x8c\x5f\x82\x99\x73\
\x00\x4e\x10\xf0\x19\x4b\x42\x6f\x97\xf3\x8d\x7f\xfd\xf4\xea\xd5\
\x2f\x5f\xdf\x79\x2b\x88\x53\xcf\x66\x75\x34\xc7\xbe\x83\x87\x69\
\xd4\x0e\x32\x93\xca\x07\xa3\x6d\x2c\x06\xd6\xe2\xd5\x96\x5f\xbc\
\xfd\xcc\xed\x37\xe3\x2b\x4b\x17\xb2\x4f\x6d\x5f\xcb\x34\x80\xd1\
\x46\x1b\x2f\x82\xf0\x0c\xb2\x4a\x3a\xc7\x7a\xcd\x47\xa2\x19\xe8\
\x12\x70\x8b\xc0\xdf\x7c\x77\x65\xfa\xe6\x07\x0b\x53\x8b\x8e\xb1\
\x2f\x33\xf3\x0b\x04\x5a\xfd\x38\x7e\x84\xd1\x26\x54\x78\x5c\x2d\
\x0f\xb6\x0c\x52\x12\xee\x89\x65\xe4\x9e\xbd\x14\x3a\x73\xb3\xdf\
\x76\x66\xa6\xbf\x0b\xa2\x88\x94\x9a\x12\xf9\xdc\x53\xd1\x8d\xdb\
\x17\xbb\x5f\xff\xfd\xf3\x7c\xeb\x6e\x59\x6b\x7d\xcf\x81\x47\xc7\
\xce\x63\x2d\x8d\x06\x51\x4d\x77\xfb\x5a\x0f\x63\xe6\x24\x2d\xd8\
\x30\xca\x96\x21\x1f\xb4\xd3\x94\x82\x2c\x15\xe1\x5f\x38\xd7\x2b\
\xff\xf4\x4f\xde\x76\xe7\x67\xdf\xd7\x8d\xd6\x35\x4e\xd3\x2e\x39\
\xaa\x20\xa7\xa7\x2e\xe9\x46\xeb\xd9\xf6\xff\xef\x2b\xa7\x4c\xbf\
\xef\xd9\x8e\xc9\x1c\x98\x47\x07\xc8\x66\x61\xd3\xee\x42\x37\xdb\
\xd2\x76\x7b\x1e\x2d\xcc\x42\x55\x2b\xa1\xc8\xe7\x02\x52\xd2\xff\
\xb0\x71\x98\x69\x2c\xa6\x1f\x82\xa3\xd8\x27\x47\x9d\xe6\x34\x39\
\xcb\x9e\xf7\x3e\x6b\x1d\x98\x76\x67\xca\xf6\x07\x65\xdb\x6e\x4b\
\xdb\x1f\xdc\xfb\xce\xc3\x20\x02\x8c\x91\xba\xd9\x2a\xa6\x1b\xdb\
\x65\x9e\x89\x03\x64\x2a\x65\x60\xea\xad\x5c\xba\xb5\x1f\x98\x66\
\x87\xd8\x58\xc8\x62\x01\xaa\x52\xb1\x20\xb1\x6d\x8d\x7e\x87\xe3\
\xc8\x81\xc0\x39\x1a\x1b\xfe\x0f\x4e\x0f\xcc\x90\x95\x12\x82\xe7\
\x2e\x1b\xff\xdc\xe9\x4d\x77\x61\xfe\x5b\x22\x17\xac\xdb\xfe\x20\
\x64\x63\x4c\xb6\x57\x20\x67\x0b\x44\xd6\x0a\x72\x9d\x92\x28\x16\
\x2e\xc8\x52\xa9\xea\x2c\xcd\xf7\x46\xf3\x34\x85\x61\x88\xc3\xc3\
\x43\x48\x21\x66\x8c\xb5\x2f\x27\x69\xba\x9a\x24\x89\xaf\x1c\x67\
\x47\x49\xf1\x81\x2c\x97\x37\x97\x96\x96\x3a\x04\xda\x2d\x95\xcb\
\xd1\x4b\x2f\xbe\xb4\x3f\x8c\x86\xd7\x95\x94\x5f\x48\xd3\xf4\xc5\
\xb5\xbb\x6b\xcb\xfb\xfb\x07\xa5\xb3\x67\xcf\x60\x61\x61\x01\xf9\
\x5c\x0e\x44\x84\xe1\x70\x88\xad\xed\x6d\xbc\xf7\xfe\x7b\x68\xb5\
\xda\x28\x16\x0a\x98\x9d\x9d\xc5\xf2\xd2\x12\x6a\xb5\x69\x14\x0b\
\x05\x28\x25\x61\xad\x45\x1c\xc7\x30\xd6\xc2\x75\x1c\x18\x63\xd0\
\xe9\x76\xb1\xb1\xb1\x81\x6b\xd7\xae\xa1\xde\xa8\xe3\xca\xd5\x2b\
\xd0\x5a\xc3\xf3\x3c\x38\x8e\x93\x09\xac\x76\x1b\xbb\x7b\x7b\xdc\
\x6c\xb5\x30\x1c\x0e\xbb\x8e\xeb\xbe\x77\xee\xec\xd9\xd7\x1c\xc7\
\x7d\xc3\x73\xbd\xeb\xbe\xef\xed\xbf\xf3\xce\xdb\x2b\xcc\xbc\x1c\
\x04\x41\x31\x97\xcb\x3d\x5d\x2e\x97\x9d\x6a\xb5\x9a\x9d\xa3\xdd\
\x41\xb3\xd5\x82\xd6\x1a\xa3\xe6\x72\x00\x9c\x05\xc0\x8e\xe5\xbd\
\xdb\x53\xc5\x9e\x38\xb7\xba\xf6\x0b\xef\xde\xf9\x1e\x04\x4e\x59\
\xe2\x12\x18\xe7\x81\xc7\x9a\xe9\x05\x06\x3e\x03\x86\xcf\xa0\xc4\
\x0a\xa7\xf1\xce\xea\xe5\x26\x20\x8e\x7c\xe6\x6a\x89\x72\x62\x87\
\xc3\x19\xce\x8a\x78\x3c\x85\x0f\x7b\x19\x3f\x8a\x3e\x80\xab\x60\
\xbc\x61\x04\xdd\xfc\x9d\x73\x0b\x42\x69\xfb\x12\xb1\xfd\x14\x67\
\xb5\xd2\x3e\xce\x0a\x42\x02\xa0\xa3\x84\x24\x49\x54\x06\xc1\x79\
\x54\xb6\x02\x91\x80\x2c\xe6\xa1\x66\x6b\x91\xb3\xb2\x78\xb5\xf2\
\x13\x3f\xf6\x35\x08\x31\x40\x16\xa2\x1c\xb1\xd1\x05\xf9\xd6\xbb\
\xab\x22\xe7\x97\xa9\x9d\x39\x6b\xee\x1b\x18\x3c\xde\xf7\x8a\x25\
\xac\x09\x6c\x9c\x94\x39\x4d\x09\xcc\x3e\xb4\x19\xa9\xd2\x74\xec\
\xb3\x59\xa5\x38\x91\xcb\x41\xd5\xa6\x06\xc1\xd3\x4f\x6d\x06\xe7\
\xcf\xbe\x03\xe6\xef\x82\xa8\x09\xe6\x0a\x88\xd2\x78\x73\xbb\x36\
\xf8\xee\x9b\xb3\x22\x9f\xaf\xd9\x70\x48\xd0\xfa\x3e\x35\x34\x33\
\x4f\x12\x70\x92\x28\x13\x45\x01\xa4\x8c\x44\x21\xbf\x4d\x4a\x31\
\x09\xb9\x48\xe2\x43\x7a\x33\xd8\x1a\xd8\xc1\x00\x36\x0c\x5d\x18\
\x33\xc7\x51\xbc\xc0\x4a\x15\x93\x9d\xbd\x82\x69\xb5\x67\x4d\xaf\
\x5f\xb1\x51\xac\x38\x49\x32\x93\xe9\x51\x42\x80\x08\xac\x0d\x4c\
\xa3\x49\xe9\xce\x5e\x41\xe6\xf3\x53\xc8\x66\x8a\x1a\xd8\x2e\x9a\
\x46\x33\x67\xda\x1d\xc0\x5a\x88\x42\x1e\x6a\x76\x3a\x95\xa5\x42\
\x13\xcc\xdb\x36\x49\xce\x67\x0d\xff\xb0\xc7\x91\x09\xed\xd1\x6a\
\x85\x75\x96\x16\xea\xc1\xd3\x17\xdf\xf6\x56\x16\x3f\x40\xe6\x17\
\x4a\xf1\xc0\x76\x6d\x6c\x4c\xde\x86\xc3\x6b\xcc\x5c\x13\x9e\x17\
\x83\x79\x0b\x44\xfd\x62\xb1\x48\x83\xfe\xa0\xf0\x8d\xdf\xfb\xc6\
\xe9\x56\xbb\xfd\x85\xfe\xa0\x7f\xa1\xdf\x1f\xb8\x9e\xe7\x1d\x4e\
\x55\xab\xe7\x86\xc3\xe1\xd6\xc1\xc1\xc1\x7e\xb1\x50\x68\x5c\xbe\
\x7c\x79\xf0\xe5\x9f\xfc\xc9\x50\x4a\x79\xed\xda\xb5\xab\xc9\xfa\
\xc6\xc6\x56\xa7\xdb\x3d\x17\xc7\xf1\xa9\x46\xa3\xb1\xac\x53\x5d\
\x71\x5d\x47\x31\x20\x86\xc3\x21\x36\x36\x37\x51\x6f\x34\xe0\x7b\
\x3e\x56\x56\x56\xb0\x30\x3f\x8f\xd9\x99\x19\x54\xa7\xa6\x90\x0b\
\x72\xb0\x36\x9b\x89\x9d\x91\x39\x99\x1b\x09\x8f\x42\x21\x73\x24\
\x26\x49\x82\xed\x9d\x6d\xb4\xdb\x1d\x6c\x6e\x6d\xa2\x90\x2f\xa0\
\xdd\x6e\xc3\x58\xcb\xe1\x20\x0c\xbb\xdd\x6e\x73\x38\x1c\x6e\x6b\
\xad\x6f\x56\x2a\x95\xb7\xcf\x9d\x3d\xfb\xc1\xea\xca\xea\x56\xe0\
\x07\xbd\x2b\x57\x3f\x28\x2c\x2e\x2e\xce\x08\x21\x3d\x31\x8a\x79\
\x31\x36\x0b\x18\x12\x32\xf3\x27\x79\x9e\x0b\xd7\x75\x91\x24\x09\
\xac\xb5\x02\x23\x13\x8f\x98\x3f\x9b\x10\xf5\x5e\x5d\x9e\x6a\x7e\
\xfe\xce\xfe\x6e\x75\x38\x78\x8d\x98\xa7\xb2\x4d\x6b\x1e\x2b\x00\
\xc6\x9a\x00\x00\x6c\x82\x45\x17\x24\xde\x6c\x57\xab\xdb\x73\x3b\
\xbb\xfc\x9d\xa7\x5e\x81\x6a\x20\x2e\x81\xb0\x00\xf0\x05\x00\x27\
\xf0\x71\x82\x7d\xb2\x71\xd1\x20\xe0\x3b\x16\xf4\xea\x7a\xb5\x38\
\x80\xb6\x97\xd8\xda\x2f\x02\x78\x91\xf0\xb1\xfd\x08\x7d\x21\xe5\
\xcd\x9c\xe3\x0a\x25\xc4\x45\xbe\xa7\x8d\x3c\xfc\xe4\x96\xc1\xa9\
\x36\xa6\xd3\x69\xb0\x36\x6b\xe4\x8a\x3e\x80\x04\xcc\x4b\x1c\xc5\
\x4d\x10\x52\x28\xf9\xe8\x19\xf1\x78\xb9\x10\x63\x5c\x36\x56\x8e\
\x42\x2f\x1f\x8e\x94\x20\xdf\x03\x84\x88\xd8\x98\x03\x00\x1b\xcc\
\x7c\x87\x88\xea\x0c\x4c\x11\xb0\x02\xa0\x0e\xa5\x22\x11\x04\x20\
\xa5\x3e\xbc\x3a\x31\xbe\x16\x21\x1c\xd6\x26\x00\x89\x86\xcc\xe5\
\x0f\xc8\x32\x93\x23\xe7\x48\x29\xc5\x66\x24\x80\x08\x47\x1a\x80\
\x1d\x0e\x61\xfa\x7d\x65\xc3\x61\xd1\xf4\x07\x55\x72\x54\x29\xdd\
\x3b\xac\xa6\x07\x87\x73\xba\xd3\xad\xc2\x5a\x99\x85\x8e\x3f\x5a\
\x71\x23\x22\xb0\xd6\xd0\x8d\x16\x64\xb9\x18\xe0\xdc\x99\x25\x00\
\x7d\x1b\x45\xcb\xe4\xc8\x73\xa6\xdb\xf1\x4d\xb7\x9b\x09\x80\x62\
\x1e\x6a\x71\x2e\x52\x73\xb3\x03\x08\x31\x40\xaa\x93\xc7\xaf\x7d\
\x64\x7e\x16\xd6\xc6\x72\x9c\x84\x76\x38\x3c\x40\x96\x81\xd9\x42\
\x26\xd8\xef\x17\x6c\xcc\x92\xad\xbd\x03\xb6\x8a\xd9\x1a\x91\x6d\
\x0b\x1e\xf6\x3a\xdd\x5c\x7f\xd0\x5f\xde\xd8\xdc\x7c\xe6\xea\xf5\
\x6b\x9f\xdf\xdd\xdb\x7d\xaa\xd1\x68\x60\x61\x7e\xc1\x3c\x7d\xe9\
\xd2\x17\x1c\xc7\xe9\x30\xf3\x81\x52\x6a\x7d\x38\x1c\xde\xd9\xdc\
\xdc\xdc\x5c\x5d\x5d\xdd\x59\x5e\x5e\x79\x07\x44\xef\xad\xac\xac\
\x9e\x6e\x34\xea\x2f\xee\xef\xef\x7f\x7e\x7f\x7f\xff\x29\xcb\x5c\
\xd1\x5a\xbb\x71\x14\x61\x10\x86\x20\x10\x16\x46\xbe\x82\x72\xa9\
\x04\xe5\x38\x10\x44\x30\x46\x8f\xda\x08\xa3\x68\x3e\x46\x9a\xa6\
\x90\x52\xc2\x71\x1c\xcc\xcd\xcd\xc1\xf7\x7d\x04\xb9\x00\x1f\x5c\
\xb9\x82\x46\xbd\x81\x5b\xf2\x16\x94\x52\xb0\x6c\xb5\xe7\x79\x07\
\xf9\x5c\xfe\x83\xd9\x99\x99\x6f\xcd\x4c\xcf\xbc\x91\x2f\x14\xb6\
\x6a\x53\x53\x49\x3e\x9f\xaf\xd5\xeb\xf5\xb3\xbd\x7e\x7f\x65\x7a\
\x7a\xfa\xbc\x65\x5c\xd6\x69\xba\x00\xc0\xdd\xdf\xdf\xc7\xfa\xe6\
\x3a\x82\x20\xc0\xe2\xfc\x22\x94\x52\xc8\xe7\xf3\x47\xe9\xc6\xa3\
\x18\x85\x3c\x18\x2f\x11\x33\x17\xe2\x78\xfd\xf7\xce\xcc\xbe\xf6\
\x13\x37\xb6\xdf\xc9\x47\xd1\x14\x13\xbf\x0c\x60\x91\x1e\xad\xac\
\x8f\xd5\xe8\x29\x30\x7e\x04\x59\x8d\xc2\x41\xa1\xdf\x6d\xee\xae\
\xce\x0c\x4b\xad\x90\x55\x4a\x76\x65\xb4\x0d\xd7\x0c\x9e\x2c\xed\
\x76\x8c\x05\x21\x05\xe3\x80\x18\xef\x6f\x97\xf3\x1b\xdf\x38\x3d\
\x5f\x1e\x25\xf4\x9c\x41\x66\xf7\x3f\x29\xe3\x9c\x81\x43\xc7\x71\
\xde\xaa\xe5\xf3\xae\xc7\x72\xe5\xf1\x02\x60\xb4\x02\xa0\xa4\x10\
\xb9\x5c\x1e\x52\xd6\x90\x79\x46\xa7\x40\x54\xa2\xc0\x0f\x88\x84\
\x80\xe5\x27\xf0\x66\x30\x81\xad\x00\xdb\xc7\xd7\x2b\x24\x02\x09\
\x09\x10\x69\x64\x3b\xd3\x0e\x01\x0e\xd9\x18\x40\xca\x10\xc0\x10\
\x42\x24\x24\x84\x85\x94\x1f\x55\xe9\x5c\xb0\xb5\x12\x44\x7d\x11\
\xf8\xeb\xe4\xaa\x92\xac\x94\x8c\x1d\x46\x30\xbd\x3e\xee\x77\x20\
\x02\xac\x35\x38\x8a\xa5\x6e\x77\x8a\xe9\xfe\xe1\x0c\x49\x39\x67\
\x7b\xbd\x5a\xba\xb5\x5b\x31\x8d\x96\xcf\xc6\x80\x1c\x05\x11\xf8\
\x99\x96\x31\x72\x60\x3e\x18\x57\xc0\x5a\xc3\x74\xba\x30\xdd\x7e\
\x8e\x5c\xe7\x34\x1b\xed\x71\xaa\xe7\xc0\x58\x32\xdd\x9e\x67\x3a\
\xdd\x6c\xe9\x31\x97\x1b\xba\x0b\xf3\x4d\x67\x69\xbe\x4d\x42\x84\
\x6c\x8c\x1e\xad\x6b\x3e\xe2\xf1\x8d\xda\x47\x4a\x22\xc7\x71\x85\
\xe7\x16\x91\x79\xa5\x05\xee\x09\x00\x1e\xfd\xf4\x20\x65\x51\xe4\
\x73\xf3\x9c\x2d\xd3\xbc\x77\xf7\xce\xed\xc3\x41\x18\x42\x6b\x5d\
\x18\x84\xe1\x79\x10\x2e\x25\x49\xb2\xac\xb5\x2e\x49\x29\x91\x0b\
\x02\x94\x4b\xe5\x6a\xb5\x5a\x99\x15\x42\x2e\x09\x41\x4b\xdd\x5e\
\xef\xd4\xab\xdf\xfb\xee\xee\xef\x7d\xeb\xf7\x77\x01\xec\x14\xf3\
\x85\xee\xe2\xd2\xa2\xe3\x79\xde\x30\x08\x82\x2b\x42\x88\x0e\x88\
\x16\x9b\xad\xe6\x4c\xbd\xd1\xa8\x24\x49\x12\x14\x8b\x45\x59\x28\
\x16\xa9\x52\xa9\xa0\x54\x2c\x1e\xb9\x27\xb4\xd6\x47\x39\xff\x52\
\x4a\x90\xb5\x47\x7f\xf3\x3c\x17\x8e\x93\x85\x0c\x57\xca\x15\xe4\
\x82\x1c\x06\x83\x41\xd2\xed\xf5\x06\xc5\x62\xb1\x59\x2a\x95\xf6\
\x72\x41\x6e\x23\xf0\xfd\x8d\xc0\x0f\xfa\xe1\x30\x9c\xdb\xdc\xda\
\x5a\xec\x76\xbb\x25\x63\xed\xbc\xeb\x38\xf3\xb9\x5c\x30\x9f\xcf\
\x17\xe6\xce\x96\x4a\x33\x71\x1c\x57\xda\xed\xb6\x6a\x77\xda\x00\
\x80\x6e\xaf\x07\x21\xf6\x30\x3b\x3d\x8b\x4a\xb9\x0c\x42\x26\x00\
\x46\x28\x00\xb3\x00\xce\x09\xb6\xcf\xdd\x9a\xca\xed\xd3\x99\x85\
\xdb\xff\xc1\x7b\xb7\xaf\xa7\x92\xae\x03\x34\x83\x2c\x06\xe0\x71\
\x9a\xb6\x07\xc2\xc9\xac\xcc\x18\x5f\x93\x5a\xef\x57\xeb\x9d\x35\
\x80\xfa\xca\x82\x4f\x33\x78\x7e\xb4\xbc\xf0\x71\xb2\x41\x34\x83\
\x5b\x04\x6c\x0b\xc6\xda\xd7\xce\x2e\xf5\x9b\x81\xfb\xbc\x60\xbe\
\x80\xcc\xa3\xfb\x71\xa2\x44\xc6\xa5\xb8\xd7\x72\x85\xc2\x1b\xa7\
\xa6\xa6\x4b\x6e\xab\xfb\xa3\x8f\x0d\xee\x01\x83\x53\x0d\xd6\xc6\
\x15\x9e\x77\xc6\x74\xbb\xaf\x90\xef\x0f\x39\x8e\xa7\x01\x5c\xb2\
\xc3\x68\xd1\x26\xa9\xc7\x49\x0a\xe6\x71\x90\xdf\x63\x0e\xf6\x84\
\x64\x31\x61\xe3\xbd\x70\x41\x47\x4a\x71\xa6\xe6\x13\xf8\xde\x5e\
\xbb\x8f\x3d\xec\x48\x6c\x13\x51\x0f\xbe\xb7\x49\x85\xfc\xa2\x9a\
\x9f\xd3\x36\x8c\x60\xfb\x83\xfb\x4d\x96\xd1\x40\xe6\x24\x95\xe9\
\x61\xa3\x90\x6c\xef\xcc\xaa\x72\xf1\x14\xd2\xb4\xa4\xf7\xf6\x0b\
\xba\xde\x00\x1b\x03\x91\xcf\x41\xd6\x2a\xe0\x28\x86\x69\xf7\xc0\
\xe9\x03\x2d\x48\x04\x18\x0b\xd3\xeb\xc3\x0e\xa3\x80\x94\x3a\x6b\
\xa3\x78\xca\x46\x71\xd1\xa6\xe9\xb4\xe9\xf5\x95\x1d\x84\x00\x09\
\x16\x41\x30\x70\x17\xe6\x0e\xfc\x95\xa5\x96\x6e\xb6\x12\x7e\x54\
\x8c\x35\xc6\xbd\x86\xb3\xe5\x4f\x9d\x0a\x58\x5b\x65\x63\x2f\xda\
\x38\x76\xed\x30\x1a\x80\x59\x63\x9c\xd9\x66\xad\xb4\xc3\x61\x19\
\xcc\x4b\x94\xcf\xbd\x4c\x8e\x4a\x40\xf4\x0f\x84\xe5\x2d\x36\x06\
\x87\xf5\x7a\x31\x49\x93\x8b\x8e\xe3\x9c\x0f\x7c\x3f\xa8\x96\x2b\
\x98\x9e\xaa\x61\x75\x75\x15\x0b\x0b\xf3\x58\x5e\x5e\x96\xf9\x7c\
\x3e\xdf\x68\x34\x56\x37\x37\xb7\x16\x0f\x0e\x0f\x74\x18\x0e\x75\
\xb9\x5c\x4e\x95\x94\xdd\xb5\xb5\xbb\x9b\xae\xe7\xad\x55\x2a\xd5\
\xcd\x53\xa7\x4e\xef\x05\x81\x5f\xbf\x76\xfd\xfa\xe9\xdd\xdd\xdd\
\x53\x42\x08\x99\xcb\xe5\x7c\x25\x25\xe9\x34\x85\x31\x16\x4a\xc9\
\xa3\x35\x7b\xa5\x14\xa4\xc8\x1c\x87\xe3\x47\xc4\x36\x33\x6f\x8c\
\x31\x48\xe2\x18\x82\x08\xe5\x72\x99\x85\x10\x91\xe3\x38\xf5\xd9\
\x99\xd9\x6b\xcf\x3d\xfb\xec\x35\xb6\x7c\xb8\xb9\xb9\xc9\xf5\x46\
\xfd\x54\x1c\xc7\x27\x99\xf9\x64\xaa\xf5\x6c\xb3\xd5\xf4\x08\xe4\
\x2c\x2e\x2c\xa8\xa9\xa9\x9a\x9a\x9f\x9f\x93\x51\x14\xc9\xdb\xb7\
\x6f\x53\xa9\x54\xc2\xdc\xdc\x1c\x76\xf7\x76\x71\x70\x70\x88\x52\
\xb1\x84\x52\x69\x25\x0b\x5a\x6a\xd1\x38\x5e\x60\xdc\x71\xa7\x00\
\xbc\xa0\x05\x1d\xbc\xbf\x50\xda\xfe\x33\xef\xd8\x6d\x23\xe5\x5b\
\x36\x1b\xfc\x2f\xe1\xf1\x02\x40\x32\x50\x00\xf1\x0a\x80\x97\x89\
\xb9\x01\xa0\x6b\xc9\xf6\x95\x05\xe6\x40\x54\x05\xb3\xf3\x31\xe3\
\xba\x12\x02\xad\x11\xf8\x9a\xa7\xed\xde\xdd\x5a\x41\xe5\xd2\xf4\
\xac\x00\x9f\x43\x66\xbb\x3c\x31\xa3\x0d\x1c\xaf\x09\x21\xde\xaa\
\xce\x4c\xdf\x9d\x2d\x16\x57\x74\xbb\xa7\x1f\x29\x00\x48\x80\x8d\
\x41\xba\xb3\x8f\xe1\xdb\xef\x07\xf1\xcd\xb5\x17\xbb\xbf\xfd\xcd\
\x29\x00\x9a\x94\xcc\x89\xc0\x9f\xd5\x8d\xe6\x7c\xb2\xbe\x99\x33\
\xdd\x5e\x16\xba\xfa\x44\x37\xc7\x7f\x80\xd9\x70\x44\x00\x88\xad\
\x0d\x49\x88\x43\x55\x9b\x6a\xbb\xab\xcb\xa9\x69\x77\x90\xee\xec\
\x8d\xb6\xd5\x3e\xfa\x2c\x40\x04\x9b\x24\x94\xee\xef\xbb\xc9\xee\
\xfe\xac\x7f\xf6\xd4\xf3\x70\x9c\x40\xb7\x3b\x05\xdd\x6a\x03\xc6\
\x40\xcd\x4e\xc3\x3b\x7f\x1a\xba\xde\x82\x0d\xef\x64\x0e\xc8\xfb\
\x34\x00\x02\x1b\x03\xdb\x1f\xc0\x0e\x42\x9f\x53\xbd\x68\x7a\xfd\
\xb2\xe9\xf6\x3c\xdb\x1f\x94\xed\x20\x54\x6c\x2c\x64\x29\x07\x51\
\xc8\x85\xaa\x5a\x6e\xc8\x42\xbe\xab\x5b\xed\x14\xd6\x3e\x5a\x00\
\x50\x36\x58\x4c\xb7\x8f\xe8\x83\xeb\xd2\xd4\x1b\x0b\x83\x6f\x7f\
\xf7\x73\x60\x5c\xb4\x71\x9c\xc0\xb2\xcd\x46\xd3\xc8\x79\x03\xe4\
\xd4\xec\xf4\x54\xfe\xd3\x2f\x9c\x73\x4e\x2c\xef\x92\xe3\x14\xa2\
\x46\x03\xd1\x30\x44\x7f\x30\xc8\x69\xad\x4f\x80\xb1\xa2\x94\xf2\
\x3c\xdf\x83\xef\x79\x90\x52\x8e\x67\x45\x2a\x97\xcb\xd2\x51\x4a\
\x0a\x21\xdc\x52\xb9\x88\x38\x4e\x90\xcf\xe5\x60\x8d\xad\xae\x6f\
\x6c\xe4\x77\x6f\xde\x2a\xc7\x49\x3a\x53\xad\x54\xd2\xd5\x95\xe5\
\x0a\x5b\x5b\x9e\x99\x9e\x21\xc7\x71\x74\xa5\x52\x31\xd6\x5a\xba\
\x75\xfb\x36\x95\xcb\x65\x4c\x55\xab\xc8\x17\xf2\xf0\xbd\x2c\x7c\
\x17\x74\x34\xf0\x40\x20\xc4\x71\x8c\xc3\x46\x1d\xbd\x6e\x17\xfd\
\xfe\x00\x71\x12\x9b\xd9\x99\xd9\xa4\x52\xae\x24\x71\x1c\x53\x38\
\x1c\x4e\xbd\xf6\xfa\xeb\x67\xf7\x0f\x0e\x96\x0f\xeb\x87\xae\xeb\
\xb8\x73\x53\x53\xd5\xa5\x95\xe5\xe5\x99\xb9\xb9\xb9\xc2\xec\xcc\
\x34\x18\x40\xb5\x52\xc1\x74\xad\x86\x72\xa9\x84\x24\x8e\xd1\xed\
\x76\x11\x0e\x06\x70\x94\x42\xe0\xfb\x47\x4b\x91\xcc\x7c\x4c\xa1\
\xba\xaf\x3b\x16\x90\x95\xdd\xdb\x37\x52\xbe\x1a\x05\xde\x0e\x8c\
\xb9\x06\xc6\x29\x00\x17\xf1\x58\x6d\xf9\x48\x44\x17\x01\x5c\x06\
\xa8\x49\x8c\x9b\x85\x44\xd6\x15\x03\x65\x02\x72\xf4\xe4\xb9\xfd\
\x63\x86\x00\xdd\x12\x4c\x57\xca\x71\xd2\x76\xd8\xcc\x10\xf1\x59\
\x30\x4e\xe2\xc3\x41\x0a\x8f\x64\xa4\x66\xf5\x18\xfc\x8e\x74\x9d\
\xd7\x17\x57\x57\x0e\x1d\xad\x16\xcd\xa8\x19\x1e\x36\x87\x92\xc8\
\x9c\x59\xc9\xe6\x36\x74\xbd\x19\x90\xeb\x3e\x4b\x52\x5d\xca\x92\
\x26\x99\xc0\x46\xd8\x38\x91\x76\x10\x4a\x9b\x24\x59\x14\xdf\x43\
\xe2\x08\x46\x4e\x3e\x4d\x24\x52\x10\xec\x27\x91\x0d\xcb\xc6\x44\
\xc4\xdc\x72\xe6\x66\x3a\x1c\x27\x71\xba\xb9\x93\xe5\x2d\x7c\x68\
\xfc\x13\x38\x49\x29\xdd\x3f\x90\xba\x5e\x9f\xe6\x24\x79\x1e\x04\
\x65\xfa\x83\xbc\x69\x77\xc0\xc6\x42\xcd\xcd\x20\x78\xf6\x69\x24\
\x77\x37\x90\x6e\xed\x82\x87\x51\x26\xd2\x8e\x2f\xfc\x5a\x0b\x3b\
\x8c\x60\xc3\xa1\x63\xc3\xb0\xa6\x1b\xcd\x62\xda\x6c\x0b\xdd\x6a\
\xfb\x36\x8a\x24\x29\x09\x59\x29\x43\x14\xf2\x03\x11\xf8\x07\x00\
\x3a\x44\x64\x70\x4f\xad\x79\xc8\x03\xc9\x04\x94\x69\x77\x30\x7c\
\xe7\x7d\x19\xb9\xce\x1c\x49\x51\x03\xc8\xde\xeb\xd1\x34\x12\x46\
\x04\x6b\x34\xa9\x99\x69\x41\xbe\xeb\xe5\x1c\x79\x20\x82\x00\x83\
\xfd\x03\x74\x06\x03\x44\x02\x9e\xd6\x7a\xc6\x58\x53\x13\x52\x38\
\x4a\x29\x48\xa5\x10\x27\x31\x1a\xcd\x26\xe6\xfb\x7d\x28\x29\x31\
\x3d\x3d\x8d\x72\xb9\x7c\x14\xce\x4b\x44\xd8\xdd\xdb\x73\xae\xdd\
\xb8\x3e\xb7\xb9\xb5\x35\xdd\xef\xf7\x2f\xe5\xf3\x79\x13\x45\xa1\
\x5d\x5c\x58\x34\x4b\x8b\x4b\xa6\x5c\x2e\xb3\x52\xd2\xee\xec\xee\
\xf0\x8d\x9b\x37\xa9\x58\x28\x60\x65\x65\x05\xf3\xf3\xf3\xa8\x4d\
\x4d\x21\xf0\x03\x08\x21\x60\xac\xc9\xb4\x02\xad\xd1\x6a\xb5\xb0\
\xbe\xb1\x89\x7a\xbd\x8e\x24\x8e\x51\x2e\x57\xec\xca\xea\x4a\xa2\
\x94\xe2\x6e\xb7\x5b\x38\x38\x38\x28\x6d\x6c\x6e\x5c\xda\xde\xd9\
\x91\xdd\x6e\x57\xe5\x82\x40\x2a\x29\x65\xe1\xa9\x82\x38\x77\xee\
\x1c\x9c\x91\x53\x56\x08\x71\x94\x79\x18\x86\x43\xec\xed\xed\xa3\
\xde\x68\x40\x39\x32\xab\x3e\x24\x15\x5c\xc7\x41\x1c\xc7\x48\x1f\
\x3e\xf5\x79\x00\x9d\x22\xc6\x45\xcf\xf0\xc2\x5b\x2b\x73\x3b\x17\
\x37\xf7\xd7\x9d\xd4\xac\x73\x16\xe9\xf7\x91\x91\xd9\x04\x78\x0c\
\x9c\x61\xa0\x4d\xc0\x77\x52\xc9\xbb\x6a\x54\x6e\xeb\x21\xbb\xde\
\x7e\x24\x31\x01\xdb\x92\x69\x7d\x66\xa8\x43\xc9\x9c\x03\x63\x19\
\x59\x90\xca\x93\x7a\xfe\x99\x40\xcc\xe0\x36\x81\x6e\x7b\xb9\xdc\
\xad\x95\xd3\x67\x7a\xb8\xbe\xfe\x78\x9d\x9c\xb2\xce\x64\x07\x21\
\x46\x49\x34\x2e\xa4\x74\xc7\x81\x27\x6c\x0c\x60\x0c\xd8\xd8\x91\
\x6a\x7e\xec\xbb\xd6\x66\x6f\x09\x02\x09\xc1\x24\xc4\x90\x5c\xa7\
\x4d\x52\xd1\xf7\xd9\x0e\xdf\x1f\x63\xcf\x8d\x31\x91\x35\xa6\xa9\
\xa6\x6b\x6d\x4e\x75\x24\xcb\x45\x4b\x4a\x3d\x24\x64\x2a\x73\xe0\
\xd9\x76\x17\xb6\xd5\x09\xec\x60\xb8\x64\x87\x31\xd9\x6e\xcf\x35\
\x9d\x1e\xc0\x16\x4e\x6d\x0a\xfe\xf9\xb3\x59\xee\xcf\x7b\x57\x60\
\xfb\x7d\x70\x34\x0a\x61\x3e\xde\x3b\xb2\x40\x29\xa9\xeb\xcd\x42\
\xbc\xb1\x65\x75\xb3\x03\xdd\x68\x49\x4e\xb5\x10\x81\x0f\x55\xab\
\xb2\xf0\xbd\x16\xb2\x92\x6a\x87\x0c\x36\xa0\x8f\x6e\x17\x4e\x53\
\x98\x24\x01\x88\x64\xf6\xc2\x43\xbf\x66\xb5\x06\x49\x01\xd3\x1f\
\xc0\xc6\x89\x20\xa5\xa8\x77\x58\xc7\xda\xfa\x1a\x9c\x73\x67\xdc\
\x28\x8a\x82\x34\x4d\x7d\x22\x12\x72\x94\x54\x63\x8c\xc1\xb8\x80\
\x27\x11\xc1\x71\x1c\xc8\x51\x8c\xc8\x38\x94\x5c\x4a\x41\x5a\x6b\
\x09\xb0\x2c\x97\x4b\x58\x98\x9f\xc7\xd9\xb3\x67\x79\x6e\x76\x56\
\x7b\xae\xa7\x01\xa2\x30\x0c\x65\xa7\xdd\xa1\x46\xa3\x81\x4e\xa7\
\x83\x41\x18\xe2\xf6\x9d\x3b\x28\x16\x8b\x38\x7b\xe6\x0c\x16\xe6\
\xe7\xa1\xb5\x46\xbd\xd1\xc0\xda\xdd\x35\x1c\xd4\x0f\x91\xc4\x09\
\x92\x34\x85\x31\x1a\x96\x59\xd4\xa6\xa7\xbc\x72\xa9\xac\x4a\xa5\
\x12\x82\xc0\x57\xe5\x4a\xd9\x15\x42\xd0\xdd\xbb\x77\xc1\xcc\x48\
\x75\x0a\x06\xe0\x3a\x0e\x7c\x7f\xbc\xb2\xcb\x47\xf9\x01\xa9\x4e\
\xd1\xed\xf7\x30\x08\x43\x14\x8b\x05\x38\x8e\x0b\x41\x02\x42\x0a\
\xa4\x3a\x8b\x46\x7c\x68\x8f\x61\x26\x10\x4d\xc1\xd8\x95\x37\x66\
\xcb\x77\x2a\x9d\x5e\xf7\x44\xa3\x7b\xc8\x99\x3f\x0a\xb8\xcf\x71\
\xf4\x50\x24\xb2\x55\xbe\x39\x26\x9c\x34\x12\x75\x45\xf7\xca\x76\
\x7f\x8c\x8e\xcf\x40\xe6\xd8\xa9\x83\xa8\xde\x98\x2a\x69\xc1\xc8\
\x13\x8e\xb6\xfc\xfa\x38\x07\x8a\x09\xd4\x66\xe6\x9d\xda\xec\xfc\
\xfe\xd9\xa7\x2e\x30\x5f\x5f\x7f\xa2\xeb\x21\x29\x01\x25\xb3\x9f\
\x0c\xb0\x4e\xc1\xe3\x4c\xb5\xa3\xc8\xbf\x07\xbe\xa4\x14\xa4\xeb\
\x40\xe4\xf3\x70\xa6\x6b\x5a\x04\xc1\x21\x79\xde\x3a\xa4\xac\x00\
\x28\x3f\x49\x47\xff\xc1\x90\xad\x86\xb1\x31\x09\xb4\xee\xaa\xa9\
\x4a\x9b\x93\xa4\x2b\x0b\xb9\x88\x3c\x27\x40\x28\x3f\xfc\x71\x63\
\x60\x7b\x03\x98\x4e\x4f\xe9\x76\xbb\x98\x39\xf3\x7a\x82\xa3\x08\
\x22\xf0\x21\xcb\x65\xe3\x2d\x2f\x6a\x3b\x08\x85\x9c\x99\x96\xba\
\xd5\x21\xc4\x09\x7d\xa8\x5b\x90\x00\xa7\xa9\x48\xf6\x0e\x5c\x56\
\x0a\xa6\xd3\x83\x3e\x6c\x10\xb4\xce\x96\xff\xa6\x6b\x2c\x7c\xbf\
\xc9\x69\x7a\x0b\xc0\x01\x18\xc5\x27\xaa\xa0\x22\x25\x68\xfc\x3c\
\xc4\x43\x42\x81\x47\x7e\x0d\xa9\x35\x44\x10\x40\x38\x0e\x48\x4a\
\x86\x10\xdc\x3e\x3c\xc4\x57\xff\xf9\x6f\xe0\xcb\xff\xa7\xff\x5c\
\x46\x51\x24\xd3\x24\x15\xc0\x48\x0d\x1e\x95\xf0\xb2\x26\x9b\xed\
\xc7\x03\xde\x8c\x66\x7e\x63\xb2\x19\x3b\x49\xb2\xc1\xe3\xba\x0e\
\x6a\xb5\x1a\xce\x9c\x39\x83\xcb\x4f\x3f\x4d\xe5\x72\xd9\xe9\xf7\
\x7a\xaa\xdb\xed\x21\x4d\x53\x22\x21\x90\x0b\x02\xa4\x5a\xa3\xd5\
\x6a\xa3\xd9\x6c\xc2\xb2\xc5\x30\x0c\x31\x18\x0c\xa0\xb5\xc1\xee\
\xee\x2e\x3e\xf8\xe0\x7d\x74\x7b\x3d\xcc\xce\xce\x22\x9f\x2f\xc0\
\x71\x1d\x08\x29\x64\x9a\x66\xd7\x56\x2a\x16\x51\x2a\x95\xc0\x6c\
\x49\xa7\x29\x9a\x8d\x26\x06\x83\x3e\xac\xb5\xd0\x26\x4b\x1c\x72\
\x46\x21\x10\xc0\xb8\x49\x08\xda\x18\x0c\xe3\x21\xa2\x24\x46\x81\
\xf3\x47\xc1\x4a\x04\x3a\x8a\x03\x78\xf4\x88\x61\x1f\xe0\xe5\x96\
\x2b\x67\x6f\x4d\x97\xee\x9c\xac\x77\x3b\x20\x44\xc8\x9c\xe8\x4f\
\x9a\xae\x9e\x07\x70\xca\x12\x22\x35\xd2\x35\x3f\x4e\xa7\xcf\x9e\
\x22\x23\x06\x21\x8c\x3c\x91\xfc\x2f\x67\x96\x5c\x91\x1d\xf4\xe3\
\x2e\xfb\x59\x10\x86\xa3\x3a\x81\x9d\xf3\xcf\x3f\xdf\x9f\x05\x79\
\xed\x8f\xb2\xc5\x39\x0b\x04\x92\x53\x15\x38\xb3\xd3\x90\xb5\x29\
\x80\x19\xf1\xed\x35\xa4\xbb\xfb\x99\xca\xff\xe0\x5d\x8d\x3a\x9f\
\xaa\x4d\xc1\x3d\xb9\x0a\x6f\x75\x09\xce\xd2\x42\xe8\x9d\x58\xb9\
\x2e\x7c\xff\x7b\x00\x5f\x46\xb6\x75\xd9\x1f\xac\x1d\xc0\xcc\x6c\
\xad\x51\x53\xd5\xae\xe9\xf6\xf7\xc8\x71\xe7\x85\xe7\x7b\xd6\x09\
\xe5\x91\x27\x7f\x7c\x49\x96\x61\xa3\x18\xa6\xd5\xa6\x64\x6b\x87\
\x6c\xaf\x0f\xdb\x1f\x00\x42\x8c\xf2\xf6\x73\x43\x59\x28\xf4\x9c\
\xe9\x9a\xe7\xad\x2c\x16\xcc\x41\xdd\xb1\xad\xf6\xb1\xc0\x2a\x60\
\x9c\x43\x61\xa3\x08\xe9\xf6\x0e\xd9\x28\x82\x1d\x0c\xa1\xeb\x0d\
\xb0\xd6\x10\xf9\x1c\xd4\xcc\x34\x8b\x42\xbe\x69\x06\xc3\x3b\xc8\
\xb6\x66\xcb\x3f\x76\x49\x63\x24\x6c\x45\x2e\x80\xb3\x30\x07\x67\
\x66\x1a\xb2\x5a\x06\xb9\xce\x43\xb2\x1b\x01\x1b\xc7\xd9\x67\x97\
\x17\x21\x73\x81\x24\xcf\xa3\xfe\x60\x80\xff\xe9\xca\xfb\xf8\x49\
\xcb\x42\x6b\x2d\x8c\x31\x63\x27\xe9\xd1\xf7\xc6\x0e\xb9\x0f\xc7\
\x20\x31\xe2\x24\x41\x14\x45\x60\xb6\x50\x52\x42\x09\x79\x64\x5f\
\x17\x0b\x05\x38\x4a\x51\x10\x04\x28\x95\x4a\x98\x9e\xa9\xe1\xf4\
\xe9\x53\x08\xc3\x2c\xc2\x6f\x6f\x6f\x0f\x07\x87\x07\xb8\x76\xfd\
\x3a\xde\xff\xe0\x0a\x84\x14\xf0\x5c\x17\xf9\x7c\x01\x2b\xcb\x2b\
\x58\x58\x5c\x44\xa5\x52\x81\xe7\x67\xc5\x3f\x0a\x85\x02\x05\x41\
\x0e\xbe\xe7\x21\x9f\xcf\x1f\x65\x0e\x1a\xa3\x8f\xfc\x07\x7c\x24\
\xb0\x18\x52\xd2\x7d\xd7\x6a\x6d\x96\x6f\xa0\x47\x25\xc6\x84\x18\
\x15\xdb\x27\x1c\xe5\x27\xdc\x77\xef\xf7\xe3\x30\x73\x2d\x11\x28\
\xdf\x9a\xca\xa7\x3f\x65\x31\x30\x12\xd9\x9e\x16\x4f\xb0\xe5\xde\
\xe8\x8f\x39\x06\x4e\x82\xd9\x51\x00\x0c\x33\x0c\x7d\x0c\x4f\x38\
\x18\x16\x80\x06\xb3\x8e\x1c\xe2\xfd\xbc\xe7\x8e\xec\x8b\x8f\xeb\
\x47\xb0\x00\x86\x20\xf4\x00\x84\x3f\xfb\x93\x5f\x4e\xf0\x04\xe6\
\x03\x5b\x06\x09\x09\x67\xa6\x06\xef\xfc\x19\xeb\x9e\x5c\x1d\xc0\
\x18\x63\xa3\x28\x30\xbd\x9e\xc7\xe1\x28\xf4\xf7\xc1\x4e\x2a\x04\
\x64\xb9\x08\xef\xf4\x09\x0e\x9e\xb9\xd8\x0d\xce\x9f\xbd\xa3\x66\
\x6a\x6f\x89\x42\xee\x0d\x1b\x86\xb5\xd1\xd3\xfb\x58\x45\x3f\x7e\
\x00\x08\x90\x60\x59\x2e\x35\xc5\x41\xfd\x0e\x84\x58\x12\xb9\xdc\
\x34\xf5\xfa\x99\x36\x73\x2c\x87\x81\xad\x05\xd2\x04\xba\xd5\x46\
\x7c\x7b\x0d\x36\x1c\x66\x99\x7f\xbe\x07\x39\x55\x01\x79\x5e\x0b\
\x52\x6e\xc8\x4a\xa9\xe2\xae\x2c\x9d\x88\xef\x6c\x48\xac\x6d\xca\
\xfb\x1c\x0a\xa3\xd8\x02\x8e\x13\xa4\x3b\x7b\x59\x7a\x6f\x9a\x42\
\x37\xdb\x99\x00\x08\x02\xa8\xe9\x5a\x24\xab\xd5\x96\x6e\xb6\xf7\
\x00\x74\x32\x89\x8b\x8f\x14\xca\x22\x9f\x83\x77\x72\x95\xbd\xb3\
\xa7\x22\x67\x61\xae\x2f\x02\x2f\x5b\x3d\x38\x3e\x66\x99\xb3\xe2\
\x27\x4a\x3a\xee\xf2\x62\x45\x96\x4a\x43\x52\xca\x0c\x8f\xc6\x39\
\x93\xb5\x96\x8e\x3b\xc3\xee\x3f\xcd\x43\x96\x36\x01\xe8\x34\x45\
\x92\x26\xa3\xa6\x12\xf7\x22\x4a\xc7\xe6\x82\xcc\x6c\x6d\x6b\xb3\
\x01\x98\x24\x09\x7a\xfd\x3e\x1a\x8d\x06\x1c\x47\x21\x49\x13\x6c\
\x6e\x6e\x61\x7b\x7b\x1b\x8e\xeb\x60\x7e\x7e\x1e\x17\x2f\x5c\xc0\
\x89\x13\x27\xb0\xbc\xbc\x8c\x5a\x6d\x0a\xb9\x5c\x0e\xae\xe7\x42\
\x8a\x7b\x65\xc2\x95\x52\x59\x12\xd1\x28\x55\xd8\x32\x43\x1c\xd3\
\x5a\x1e\x76\x13\xcc\x80\x35\x7c\x94\x30\x96\x0d\xf4\xac\x01\xac\
\xe5\xd1\x6a\xeb\x23\x9b\x5b\x81\x50\xb4\x82\xf2\xdb\x05\xdf\x0a\
\xe6\x08\x10\x09\x00\x03\xf0\x93\x46\xdc\x7a\xc8\x62\x56\x8a\x6a\
\xb4\x05\x51\x8a\x8f\x23\x00\x46\xf2\x18\x0c\x6b\x0c\xb1\x66\x02\
\x7f\x7f\xb6\xb3\x05\x61\x80\x2c\x0d\x74\x58\xce\xa4\x18\x7f\xe4\
\x95\x8c\xe2\xd0\x65\xa5\x0c\x77\x79\x21\xf4\x4f\x9f\x78\x9d\xad\
\xad\xc7\x1b\x9b\x2f\x98\x6e\xf7\x6c\xba\xbd\x0f\xee\xf5\x31\x6a\
\xdd\xfb\x2f\xdb\x5a\x70\x1c\x1b\x4e\xd2\x6b\xb2\x5a\xfa\x8a\x7b\
\x72\xf5\x3b\xe9\xf6\xce\x0e\x6b\x93\xed\xcc\xf8\x7d\x98\x00\x1f\
\x65\x78\x3d\x86\xf1\x93\x67\x21\xe4\x2e\x94\x7a\x97\x2d\x9f\x12\
\x85\xdc\x79\xd1\xf1\x94\x0d\x87\x1f\xba\x6f\x4e\x0d\x74\xbd\x89\
\xe8\x83\xeb\xe0\x24\x81\x0d\x87\x90\xf9\x1c\x9c\xa9\x2a\x13\xb0\
\xc5\x3a\xfd\x7d\x91\xcf\x9d\x76\x17\xe6\x67\x54\xa5\x1c\x20\xab\
\x32\xf4\x60\xee\x29\x38\x49\xa1\xeb\x2d\x50\xb7\x0f\x18\x0b\x1b\
\x0e\xc1\xda\x80\x3c\x37\x55\x33\x53\x2d\x67\x69\xae\x2b\x94\x4a\
\x00\xd8\x27\xed\x19\xc2\xf7\xa0\xe6\x66\xb4\xb3\x30\x77\xd3\x5d\
\x5a\xf8\x5d\x91\xcf\xad\x99\x7e\x7f\x90\x85\x02\x83\xc0\xc4\x04\
\x48\xb6\x36\x90\x85\xfc\x9c\xbb\xba\xfc\x69\x59\x2c\x24\x10\x14\
\xd9\xea\x3d\xcb\x91\x88\xf8\xb8\x51\x7a\x34\x18\x1e\xe1\x53\xc8\
\x64\x9a\x80\x38\x9e\x9c\x34\x72\x9c\x4a\x21\x20\x47\x85\x3d\x8c\
\xd6\x48\x4d\x96\xfe\xdb\xe9\x74\xd0\xef\xf7\xd1\x6c\xb5\xb0\xb1\
\xb1\x81\xbd\xdd\x3d\x4c\x4d\x55\x31\x3d\x5d\x83\x31\x59\xfa\xc2\
\xde\xde\x3e\xd8\x32\xd4\xc8\x91\x37\x18\x0c\x50\x28\x16\x50\x2e\
\x95\x47\x0e\x3d\x3a\x3a\xb6\x10\x02\x82\xe8\x58\xca\xfa\x23\xfc\
\xa5\x47\xd7\x7b\x2f\x68\xeb\xf8\x7e\x26\xe3\xb2\xe3\x8f\xd9\xed\
\x48\x10\xc8\x21\x12\x8e\x56\x0e\x46\x39\xea\x7a\xb4\x77\xe5\x93\
\xe2\x82\x31\x03\xa0\xa4\xc0\x68\x13\xd0\xff\x78\x07\x60\x02\x20\
\x18\x90\x8e\x66\x14\x62\xad\x91\x09\x91\x8f\x5b\x2a\x86\x09\x14\
\x83\x30\xc4\x3d\x21\xc4\x1f\xdd\xdf\x32\x35\x4b\xe4\x02\xc8\x72\
\x69\xe8\xcc\xcd\xbc\x23\xf2\xf9\x5b\xf1\xda\xc6\x34\x47\xf1\x29\
\xdb\xed\x4b\x3b\x16\x00\xc7\x9b\x9e\x01\x3b\x8c\xa0\xeb\x0d\xd6\
\x87\xf5\x1e\x5b\xbb\x2b\x04\x1d\x9a\x5e\x7f\x40\x8e\x7a\x22\x21\
\x78\x4c\x91\x1e\x5d\xc8\xa8\x6e\xeb\xf7\x07\x8f\x0e\xc5\x00\x9a\
\xe4\x38\xb7\xc9\x77\x0f\xe4\xf4\x94\x36\xed\x8e\x87\x66\xfb\xc3\
\x85\x37\x8c\x85\xed\x0d\x90\xac\x6f\x65\x4b\x7a\x71\x02\x35\x3b\
\x0d\x35\x5d\x63\x72\xd4\x8e\x19\x84\xaf\xa9\x5a\x35\x56\xd3\x53\
\xcf\xcb\x62\xa1\x44\x8e\xe3\x51\xfc\x40\x8a\x3d\xdd\x5b\x0e\x84\
\xa0\x91\xff\xc4\x00\x82\x20\x5c\x37\x54\xd3\xd5\x7d\x77\x79\xa1\
\x05\x6d\x0c\x9e\x44\xb6\x71\xd6\x61\x49\x29\x88\x62\x41\x8b\x4a\
\x79\xcb\x5d\x5d\xfe\x7a\x70\xfe\xcc\x9b\xc8\x2a\x33\x1f\x8f\x04\
\x94\x00\xf2\x9c\xcd\x40\x0d\x64\x3e\xa3\xce\x7f\xfc\x9f\xff\x0d\
\xf9\x57\xfe\xc6\xff\xd1\x08\x21\xac\x72\x14\xcb\xd1\x8e\x17\xf7\
\x66\xf2\x07\x1e\xc0\x7d\xb7\x43\x70\x5d\x07\x9e\xe7\x81\x48\xc0\
\x8c\xd4\x6f\xad\x35\xa2\x28\xc2\x60\x30\xe0\x34\x4d\x59\x6b\x8d\
\x38\x8e\xa9\xdd\xc9\x9c\x80\xbd\x5e\x1f\xbd\x5e\x17\x61\x38\x84\
\xef\xfb\x58\x59\x5e\xc6\xcc\xec\x0c\xa2\x28\x42\xb3\xd9\xc2\xee\
\xde\x2e\xfa\x83\x01\x0e\xeb\x87\x00\x01\xb9\x20\x40\x9c\xc4\xcc\
\x0c\x04\xbe\xcf\x42\x08\xb8\xae\x4b\x51\x14\x91\xb1\x36\x0b\xe9\
\x1d\x39\xfc\x84\x10\x90\x47\xff\xbf\xbf\xed\xc7\x2b\x02\x4a\xaa\
\x63\x29\x12\x7c\x14\x84\x34\x8e\x06\x7f\x58\xdd\x80\xac\xb5\x89\
\x09\x82\x15\xee\xed\x55\xf2\x31\xbb\xa0\x44\xb6\x24\x98\x57\x04\
\xb1\x0d\xf0\x22\xb2\xdd\x4b\x9f\x84\x6c\xfd\x1a\x70\x89\xe0\xe4\
\x4d\x4a\x7f\x62\xbb\x31\x7c\x7d\xae\xd8\xc7\x47\x54\x73\x79\xc4\
\x00\xd0\x60\xa4\x4f\x30\xef\x3f\xec\xc9\x83\x99\xb5\x6e\xb7\xb7\
\xdc\x62\xe9\xba\xff\xd4\xf9\x03\x30\xe2\x64\x6d\x2b\x97\xee\x1e\
\xdc\x2f\x4a\xc6\x09\x71\xdd\x1e\xd2\xed\x3d\xe1\x9d\x3e\x79\x8a\
\xe3\xf8\x47\xf4\x60\x70\x17\x82\xde\x86\x10\x16\x59\x1d\xbd\x8f\
\xbe\x0e\x02\x43\x64\x9f\x25\x21\xf9\x58\xd0\x0e\x03\x64\x89\x9f\
\xe8\x6e\x18\x44\x9c\x99\xd6\x16\x00\x62\x72\x54\xd7\x59\x9c\xef\
\xdb\x28\x4e\x74\xbd\x99\xc7\xd6\xee\x03\xf1\x00\xd9\x7d\xb0\x31\
\x59\x7d\x3e\x9b\xad\x72\x88\x5c\x0e\x6a\x7e\x46\x8b\x6a\xb9\x69\
\x06\x83\x3b\xee\xca\x52\x49\x14\x0a\x87\x94\x0b\x6a\x22\xf0\x5d\
\x1b\x45\x84\x87\x98\x44\xd9\x6a\xc9\xbd\xb6\x24\xd7\x05\x79\x6e\
\x57\x55\xab\xeb\xde\xca\xd2\xbe\xe9\xf6\xd3\x8f\xbc\x8b\x0f\x77\
\x0d\x80\x39\xe5\x24\x1d\x20\xcb\x13\x19\x22\xd3\xec\x8e\x13\x52\
\xb6\x49\x6b\x13\x59\x47\x1c\x02\xa8\x31\x73\xeb\x7f\xf8\x47\xff\
\x63\x9a\x0b\x72\x26\x1a\x46\x96\x40\x47\x33\xe1\xd8\x22\x18\xab\
\xc7\xf7\xd5\xc6\x12\x02\xb9\xcc\x36\x87\x54\x0a\xda\x58\x44\x49\
\x82\x5e\xaf\x87\x83\x83\x03\x0c\x06\xa1\xed\xf5\x7b\x29\x00\x72\
\x1c\x47\x25\x49\x22\x92\x38\xa1\x2c\xdc\x96\xf1\xd4\xf9\xf3\x98\
\x9e\x9e\x46\xb5\x5a\x41\xe0\x07\xd0\xc6\x20\x0c\x43\x74\x7b\x5d\
\xb4\xdb\x6d\xb4\xdb\x1d\x74\x3a\x5d\xb8\x8e\x83\x68\x18\xf3\xfe\
\xfe\x81\x66\xb6\xd6\x5a\x4b\xb9\x5c\x4e\x0a\x12\x6a\x18\x0e\x21\
\x8e\x99\x06\x8e\x93\x09\x24\xf9\x90\x32\x6f\x52\x48\xf8\xae\x07\
\xcf\x71\x32\x27\xa6\x35\x30\xa3\xa4\x49\x75\x4c\x00\x3c\x02\x0b\
\x70\x04\xb6\x71\x2e\xb5\x00\xb1\x02\xd8\x1d\xed\xca\xf5\xa4\x8a\
\x28\x51\x56\x97\x43\x2a\x82\xd8\x60\x32\xab\xa3\x87\xf5\x44\x8c\
\xcb\xae\x81\x50\x52\xd6\x14\x4e\xbd\xfb\xe6\x9e\x7d\xf1\x44\x5f\
\x64\x0f\xb4\x8f\xcc\x19\xf8\x24\xfe\x00\x62\xb0\x1c\x55\x43\xf9\
\xd8\xb6\x37\x03\x80\xb5\x46\xb7\xbb\x6d\xff\xbc\xbf\xeb\x9f\x39\
\xb5\x65\x7b\x83\x03\x59\x2c\xce\x93\xe7\xfa\x9c\xa4\xf7\xd7\x01\
\x00\x60\xc3\x21\x74\xa3\x29\x4c\xa7\xbb\x94\xee\x1d\xbc\x48\x4a\
\x7d\x4f\x96\x4b\xeb\x20\x21\x48\x88\x14\xfc\x18\x2d\x66\x1c\x62\
\x6b\xd8\x63\x63\xa7\x00\x2c\xe9\x5e\xff\x04\xa7\xba\x45\x8e\xaa\
\xa8\x62\x61\x01\x5a\x57\xb3\xf0\xda\xf4\xc3\x45\x4d\x71\x9f\xb9\
\x60\x49\xc8\x94\x1c\x47\x67\x0f\x15\x31\x49\xd9\x75\x96\x16\xba\
\xac\xcd\x20\xbe\x79\xa7\x44\x44\xf2\xa1\x72\x64\x34\x78\xd9\x18\
\x90\x10\x20\xdf\x65\x35\x53\xeb\x3b\x73\xd3\x6d\x8e\xe3\x86\x2c\
\x16\x37\x29\xf0\x6f\x93\x94\xb3\x94\x0b\xca\x34\x18\x80\x87\xe6\
\xc3\xda\xc4\x31\x7b\x9a\x82\x00\xaa\x5a\x81\x2c\x16\xfb\xb2\x58\
\xd8\x11\x52\x35\xa9\x52\x7e\x32\x0d\xe0\xf8\xdd\x59\x4b\x20\x51\
\x80\xeb\x2e\x01\x68\xe8\x7e\xd8\x86\x31\xe9\x51\x91\x03\xce\xf6\
\xb4\x62\x9d\x4a\x1e\x84\x0e\x49\xa9\x44\xa9\x74\x46\xf9\x7e\x0c\
\xd7\x79\xc7\x75\xdd\x44\x08\xd1\x77\x1c\x67\xc8\x60\x77\x94\x14\
\x03\x29\x45\xb6\xfb\xce\xa8\x3c\x57\x96\xbe\x61\x8e\xe2\x00\x00\
\x40\x6b\xcd\x52\x4a\xeb\x7b\x9e\xce\x05\xb9\xc4\x71\xdc\x24\x49\
\x75\x6a\xba\x5d\xd4\x9b\x0d\xa5\xb5\xf6\x3c\xd7\x95\x9e\xe7\xc3\
\xf3\x7c\x94\x4b\x59\x65\xcd\xd5\x95\x65\xac\x2c\xaf\xc0\x75\xdd\
\x91\x0a\x3a\x76\xd4\x69\x34\x1a\x0d\xdc\xb9\x7b\x07\x71\x9c\xc0\
\xf3\x7d\x68\xad\xb9\xd5\x6a\xd9\x54\xeb\x48\x4a\x39\xd4\xa9\xd1\
\xbe\xef\x41\x39\xca\x2b\x97\xca\xbe\x14\xc2\x51\x52\x39\xc6\x18\
\x19\xc7\x31\x31\xb2\xe2\x7d\x24\x44\x56\x27\x70\x24\x1c\x8a\x85\
\x02\xc2\x70\x90\xd5\xc1\x48\x52\x24\xa3\xc2\x33\x63\x7f\xc5\x63\
\x48\x01\xb4\xa5\xe5\xde\x89\x56\x5f\xd8\xac\x6e\x87\x97\xd9\xff\
\x1f\xcb\x10\x25\x00\x50\xec\xd2\x06\x34\xb6\xc1\x68\x20\x0b\x28\
\xf0\x3f\x6a\x30\x8e\xd4\x12\x0f\xc0\x9c\x81\x58\x88\x72\xb5\x6d\
\x4d\x18\x38\x84\x4d\x62\xec\x00\xa3\x42\x87\x1f\x8d\x00\x90\x63\
\x70\x91\xc1\x47\x12\xec\x43\x06\xeb\x63\xee\x80\x19\xcc\x69\x6a\
\x64\x21\xdf\x13\x9e\x77\x2b\x2e\xe4\xaf\x89\x42\x2e\x27\x4b\x45\
\xdf\x74\xba\x59\x11\xcb\xfb\x54\x68\x03\x1b\x45\x94\xee\x1f\xf8\
\xc3\xab\x37\x6a\x36\x8e\x57\x8b\x9f\xfb\xcc\x09\xf2\x3c\x8f\x94\
\xea\x83\x6d\xf2\x88\x33\x65\xc5\x3e\x06\x21\x38\xd5\x55\x1b\x27\
\x4f\xeb\x6e\x5f\xd8\x38\x5e\x01\x51\x1f\x71\x9c\x33\x42\x9c\xb7\
\xc3\xe1\x53\x1c\xc7\x15\xdb\xef\x11\xa7\xc9\x43\xef\x61\x34\xa7\
\x6b\xe1\x38\x7d\x55\xc8\x0f\x6d\x38\xb4\x5b\x7f\xfb\x97\xcc\xdc\
\x7f\xfc\xbf\x6d\x79\x4b\x8b\x4d\xd2\xb6\x33\x2c\x14\xa6\x20\xc5\
\x47\x97\x60\xcf\x54\xef\xa1\xaa\xd5\xf6\x9d\x95\xe5\x36\x01\xa9\
\x10\xb4\x2d\x95\x7a\x1b\xd6\xac\x88\x5c\x70\x42\xb8\xae\x34\xe3\
\x3a\x7e\x8f\x40\xe6\x73\x70\x56\x16\xa1\xe6\xa6\x23\x52\xaa\x0e\
\xa0\x3b\xaa\x2c\x7c\xcf\x00\xff\x08\xd8\x32\xd8\x5a\x49\x52\x2c\
\x92\x14\x5f\xd0\xbd\xc1\x29\x4e\x92\x10\xcc\xc7\x42\x31\x99\x98\
\xad\x64\xad\x73\xac\x75\x8d\xb5\x2e\x53\x14\x05\x96\xe8\x86\x90\
\x72\x3f\x08\x82\xd8\x18\x5d\x97\x4a\x36\x8d\x35\x39\x63\x8c\xb2\
\xd6\xc2\x75\x5c\x94\x8a\x45\x04\xd9\xd6\x5b\x18\xa9\xf3\x59\xbd\
\xfe\x51\x2e\xfe\xe1\xe1\xa1\x95\x24\xc2\xf9\xd9\xb9\xce\xea\xea\
\x6a\x7d\x65\x79\xf9\x70\x6a\x6a\xaa\x35\x8c\xa2\x42\x18\x45\x67\
\x9a\xcd\xc6\x6c\xaf\xd7\xe3\xd9\x99\x19\x5a\x5a\x5c\x44\x2e\x97\
\x83\x94\x02\xbe\xe7\x1f\x85\xfb\xd2\xa8\x50\xa8\xb5\x99\x77\xbe\
\x5c\x2e\xe3\xc2\x85\x0b\x48\xe2\x04\x69\x9a\xe2\xb0\x5e\x17\x9d\
\x4e\x47\x92\x10\x83\xb9\xd9\xb9\x8d\x6a\xb5\xba\x59\x2c\x14\x3a\
\x24\xc4\x94\xeb\xb8\x2b\xbb\xbb\xbb\x33\x46\xeb\x72\x7f\x30\x28\
\xec\x1f\x1c\xb8\xe3\x5d\x86\x5c\xd7\x03\x3c\x0f\x0e\x11\x3c\xdf\
\x43\xb5\x5a\x45\x38\x0c\x91\xa4\xd9\x3e\x03\xf1\x30\xca\x52\x90\
\x5d\xf7\x28\x78\xe8\x11\x24\x00\xf6\x73\xa9\x69\x5c\xda\xef\x7a\
\x16\xa2\x08\xd0\x93\xec\xa0\xf5\xa1\xc7\x05\x80\x95\x7b\x7b\xd8\
\x4b\x4e\xa8\x5d\x64\x45\x19\x17\x90\x65\x04\x3e\xc9\xe0\xf5\x00\
\xac\x5a\xc2\x99\xfd\x42\x70\x3d\x55\xa2\xaf\x2c\xdf\x26\xf0\x59\
\x30\x66\x9f\xf0\x18\x04\x46\x0e\x99\x1a\x18\xbc\x13\x87\xce\x73\
\x5e\x4e\x8e\x0c\xa3\x7b\x29\xbb\x8f\x3d\x40\x56\x82\x4b\x15\xf3\
\x03\xf2\xfd\x9b\x22\xf0\x3e\x50\xd3\xd5\x53\x6a\x7e\x66\xd6\x46\
\x51\x56\xc0\xf2\x81\x25\x41\xd6\x1a\xe9\xfe\x21\xa2\xeb\xb7\xf3\
\x22\xf0\x4f\x73\x92\x5c\x56\xd5\x8a\x2f\x3c\xf7\x90\xa4\xec\x93\
\xe7\xce\x32\xf3\xb1\x8c\xbc\xd1\x00\xd0\x1a\xb6\x1f\x22\xdd\xdb\
\xcf\x87\x6f\xbe\x7b\x22\xd9\xd8\xce\x73\x1c\x9f\x04\x90\x80\xe0\
\x08\xdf\x9f\x36\xad\xf6\x4c\xba\xb3\x97\xb7\x83\xf0\x5e\x2d\x80\
\xa3\xbe\xcf\x20\x29\x41\x81\x0f\x91\x0b\x62\x11\x78\x1d\x59\xc8\
\xf7\x09\x30\xd3\x7f\xf6\x3f\x00\x98\x43\x77\x66\xba\xcd\x83\xb0\
\x25\x0a\xb9\x05\xe1\xfb\xc1\xd1\x52\xe0\xc3\xee\x5d\x88\x2c\x01\
\xc8\xf3\x06\x6a\xaa\xb2\xeb\x2d\x2f\x36\x39\x8a\x35\x80\xa6\x70\
\xd4\x6d\xf2\xfd\x43\x55\xab\x1a\xdb\xed\x39\xa6\xdb\x7b\xac\xb7\
\x52\x14\x72\x70\x97\x17\xa0\x66\x6a\x3d\x80\x37\x01\x1c\x22\x33\
\x10\xdc\xf1\xb5\x3f\x22\x19\xf8\xc8\x39\xc7\x51\x84\x74\x77\x4f\
\x46\xf9\x60\xc6\xf4\xfa\x2f\x49\xdf\x3f\xc7\x5a\xa7\x0f\x78\xb4\
\x08\x04\x09\xe6\x1c\xa7\xc9\x8c\x08\x82\xc0\x3f\x7f\xa6\x4f\x4b\
\x8b\x03\xa1\xd3\xc0\xcf\x05\x4d\x9b\xea\x75\x02\xb6\x8c\x31\x33\
\x49\x92\x04\xc6\x18\x94\x8a\x25\xe4\x73\x79\x68\xad\xb1\xb7\xbf\
\x0f\x47\x29\x6b\xac\xd5\xc6\x98\x41\x1c\xc7\xbd\x5e\xbf\xdf\x0d\
\x87\x51\x37\x08\x82\x6e\xb9\x58\x1c\x9e\x5c\x3d\xc1\x95\x4a\x25\
\x0d\xc3\x30\xa9\x37\x1b\x85\x6e\xb7\x23\x7b\xbd\x9e\x8c\xa2\x48\
\xcc\xce\xcc\xa0\x5c\x2e\xa1\x52\xa9\x64\xce\x41\x93\xa9\xe0\xc6\
\x5a\x08\x00\xc6\x68\x18\x63\x41\x84\xac\xee\x7f\x3e\x07\x63\x0c\
\xba\xdd\x2e\x1a\xcd\x06\x0d\xc2\x50\x00\xac\x8a\xc5\xa2\xec\x74\
\x3b\xa4\xb5\x8e\x8a\x85\xe2\xde\xe9\x93\xa7\x7a\x04\xf2\x9a\xcd\
\x46\x60\x8c\x2d\x87\x61\x58\x96\x52\x96\x08\x54\x30\xda\x16\xe2\
\x38\xf6\x09\x90\x71\x1c\x53\xb1\x54\x44\xa1\x5b\xc0\x61\xa3\x9e\
\x2d\x07\x3e\x30\x32\xb3\x26\x7f\xa8\x0f\xa0\xc7\x44\xdb\x73\x61\
\xdc\x5a\x69\x87\x79\x4b\x34\xc5\xa3\x49\xfb\x63\xac\xe4\x19\x64\
\xe6\xba\x56\xe9\xac\x04\x67\x0f\xfb\x3b\x00\x2a\x00\xcf\x10\x10\
\x3c\x81\x30\xf1\x01\x9c\xb3\x44\x9b\xa1\xab\x5e\x65\x45\x3b\x48\
\x71\x9d\x2d\xce\x82\xf9\x32\x80\xca\x13\xc4\x8e\x08\x64\x82\xa2\
\x08\x46\xe1\x3b\xff\xe2\x5f\xe6\x2e\xfd\x99\x3f\xeb\x93\x20\x07\
\x6c\x45\x66\xe3\x3e\xe6\xdb\x6c\x33\x95\x93\xad\x24\xcf\x4b\x00\
\xdc\x86\xab\xae\x38\x27\x96\x5f\x31\x51\x6c\xf5\x7e\x5d\x98\x76\
\x17\xf7\x4f\x64\x59\x33\xe9\x7a\x13\xc9\xed\xbb\x8e\xb7\xb2\x78\
\xce\xf6\xfa\x09\xcd\xcf\xad\x8b\x5c\xb0\x25\xf2\xb9\x73\xb2\x5a\
\x01\x9a\x2d\xd8\x61\x34\x36\x3a\x47\xa7\xb3\xb0\x83\x01\xa2\x6b\
\x37\x5d\xd3\xee\x56\x44\xe0\xe5\x39\xcb\xa4\xb4\x00\x88\x88\x5c\
\x8e\x63\x27\xdd\xdd\x57\x3c\x8c\x32\x01\x72\x74\xad\xa3\xb5\xf2\
\xc0\x87\x9a\x9f\x83\x9a\x9d\x89\x45\x3e\xdf\x00\xd0\x11\x85\xbc\
\x51\xb5\x2a\x58\x6b\x2d\x0a\xb9\x9e\xc8\xf9\x0d\x91\xcf\x85\xb2\
\x5c\xaa\x70\x92\x92\x8d\xa2\x0f\xab\xef\x00\xc8\x71\x20\x8a\x79\
\x88\x7c\x30\x90\xe5\xd2\x8e\x53\xa9\x34\x6c\x9c\xa4\x00\x2c\x94\
\x6a\xaa\xd9\xe9\x9e\xdb\xeb\xa7\xa6\xd1\xf2\xd3\xdd\x7d\x3c\x54\
\x02\x8c\x8e\x2b\xf2\x79\x38\x0b\xf3\x50\xb5\xa9\x96\x1d\xc6\x37\
\x01\xec\x20\xb3\xdd\x7d\x66\x26\x36\x26\x7b\x8d\xef\xe9\xbe\xc0\
\xa2\x51\x50\x63\xa7\x8b\xe8\xbd\xab\x94\xac\x6f\x95\x85\xef\xfb\
\x90\x42\xc3\x1e\x15\x65\xbc\xbf\x44\x51\x96\x14\xe4\xa9\x5a\x35\
\xae\xfe\xfc\x1f\xdf\x77\xe7\x66\x9b\x20\x4a\xf2\xf9\x62\x4f\xc7\
\xf1\x75\x63\xcc\x19\x36\x7c\x21\x8e\xe3\x4a\x9c\x24\xa8\xd5\x6a\
\xf0\x3c\x0f\xed\x76\xcb\xee\xec\xee\xe8\x42\x3e\x9f\x94\x4a\xe5\
\x4e\x10\xf8\x6b\x4a\xa9\x9b\xb9\x7c\xfe\x86\x94\x6a\x67\xba\x56\
\x1b\xf8\xae\x57\xf5\x3c\xef\x99\x7a\xa3\xfe\xd4\xe6\xd6\xd6\x52\
\xa3\xd9\x98\xee\xf7\xfb\x85\x34\x4d\x3d\xcf\xf3\x84\x18\x95\x06\
\x63\x00\x49\x9a\x42\x10\x41\x2a\x79\xb4\xa9\xc7\xd8\xb4\xc8\x6c\
\x71\x1e\x05\x1f\x01\x4a\x39\x10\x24\x10\x27\xb1\x88\xa3\xa8\x4a\
\x82\xfc\x66\xb3\xb1\xe0\x3a\xee\xe1\xc2\xc2\xc2\xb5\x93\x27\x4e\
\x5e\xb9\x74\xe9\xd2\xdd\x83\xc3\x83\x8e\x20\xf2\x7d\xcf\x9f\x73\
\x94\x73\xca\x18\x73\x6e\x38\x1c\x9e\x1b\x46\xc3\x85\xc1\x60\x90\
\x8f\xe2\xd8\xf5\x3c\x1f\x41\x2e\x07\xb3\x6f\x46\xe5\xc4\x72\x90\
\x42\x22\x1a\x46\x48\x93\xe4\x61\x83\xdf\x64\x39\x33\x74\x60\x05\
\x6d\xfd\xe8\x56\xa3\x53\x8e\xe3\x73\x4c\x34\x07\x70\x0e\x1f\x7e\
\x2a\x8f\x43\x13\xa8\x05\xa0\xaf\xac\x4f\x00\xa3\x0d\xe0\x3d\x00\
\x2b\x00\x3d\x37\xca\x0f\x90\x1f\x71\x40\x17\xc0\x02\xc0\xa7\xb5\
\xa0\xf9\x9f\xba\xb9\xb3\xfb\xda\x42\x6d\x2d\x81\xb8\x09\xa0\x45\
\x59\x48\xf0\x47\x5d\x54\x26\x00\x18\x65\xb6\x5c\x49\x7b\xbd\xa9\
\x81\xd1\x65\x72\xd4\x94\x09\x87\x2a\x5b\x9a\xca\x2a\xf2\xde\xb7\
\xae\x6f\xb2\xff\xdb\x61\x0c\xdb\x0f\xa5\x08\x82\x02\x1b\x13\x90\
\x52\x2d\x91\xcf\xad\x7b\x67\x4e\x1d\xf2\x30\x0e\xa3\xf7\xaf\xe5\
\x00\x12\x1f\x2a\xea\xc9\x0c\xdb\xed\x21\x95\x42\xea\xc3\xc6\x52\
\xbc\xb1\x65\x45\xb9\x74\x20\x4b\xa5\x7d\xff\xc2\xf9\x01\x1b\x6b\
\xa3\xab\x37\x44\xba\xb3\x97\xd5\xd1\x3b\xf6\x7d\x4e\x35\xf8\xa0\
\x2e\x4c\xbb\xe3\x92\x72\xdc\xa3\x7a\x03\xcc\x80\xce\x2a\x00\x71\
\x92\x7c\x28\x0e\x81\x84\x00\xb9\x0e\xd4\xec\x34\x82\xa7\x2f\x58\
\xef\xcc\xc9\x06\xf9\xde\x0d\x00\x5b\x00\x52\xf2\x5c\x30\xb3\x11\
\x9e\x77\x08\xa9\xee\x90\xe3\x9c\x14\xa5\xe2\x22\x75\xba\xc0\x20\
\xcc\x32\x1a\xef\xb3\xdf\xb3\xc0\x1b\x35\x53\x83\xac\x54\x42\xe9\
\xfb\x07\x00\xda\xc2\x73\x35\x80\x84\xa5\x6c\x3b\x0b\x73\x1d\x8e\
\xe3\x61\x7c\xf3\x4e\x01\xd6\x12\x6b\xfd\xe1\xe2\xaa\xa3\x92\xe1\
\xe4\xb9\x50\xb5\x6a\xa2\x6a\x53\x1d\x1b\x27\x07\xb7\xfe\x77\xff\
\xe9\xe0\xec\x2f\xff\xbf\x24\x00\x05\x63\x5c\xd3\xed\x3b\xa6\xdd\
\x15\x3c\x8c\x46\x61\xd6\x1f\x2e\x61\x6e\x07\x21\xd2\x64\x97\x70\
\x70\xe8\x90\x52\xce\xa3\xeb\x30\x8c\xb2\x1b\xe3\x18\x66\x76\x3a\
\xd6\xcd\x76\x8f\x1c\xa7\x05\xd7\x4d\x2a\xd5\xa9\x7e\x3c\xe8\xdf\
\x72\x1d\xf7\x7a\xb5\x52\x7d\x09\x40\x79\x30\x0c\xe1\xfb\xc1\xd0\
\x71\x9c\x96\xb5\xb6\x13\x86\x61\x9b\x99\xdb\x8e\xe3\x1e\x3a\x8e\
\x73\xb7\x50\x28\x6e\xcd\x96\xcb\xbd\x24\xd1\xbc\xb3\xbd\x5d\x1c\
\x0c\xc3\x69\x6d\xf4\x02\x33\x2f\x97\x4a\xc5\x15\x22\x14\x1d\xc7\
\x41\xb7\xdb\x45\x9a\xa6\xe8\x76\x3b\xa8\xd7\xb3\x99\xd7\x75\x5d\
\xf8\xbe\x0f\xa9\x54\xa6\xa8\x68\x9d\x99\x00\xcc\x50\xa3\xe5\x3d\
\x63\x0c\x06\x83\x10\xf5\x7a\x1d\xfb\x07\x07\xe8\xf7\xfb\xe4\x38\
\x8e\x5b\xc8\x17\xdc\x20\x17\x14\x94\x54\x25\x00\x69\xb3\xd9\xec\
\x01\xe8\x79\x8e\xdb\x9b\x9e\x99\xd9\xa9\x56\xab\x5b\xd1\x70\x78\
\xbb\xdd\x6e\xdf\x18\x0c\x06\x17\x5a\xad\xd6\x33\xed\x76\xfb\x39\
\xcb\x3c\xeb\x38\x2e\x5c\xc7\x41\xb1\x58\x84\xef\xfb\xf0\x5c\x17\
\x4a\x2a\x74\x7b\xdd\xf1\xde\x07\x0f\x12\x03\x58\x63\xe2\xab\xb1\
\xc0\xee\xe5\xb5\x5d\x59\xcf\xfb\x67\x4d\x56\x62\x3f\xf7\x71\x13\
\xf9\x00\xec\x02\x38\x50\x6c\x05\xac\xa1\x81\x90\x7c\x97\x04\x5f\
\x03\x70\x07\x59\x89\xb0\x1a\x1e\x5f\x1c\x44\x02\x5c\x42\x36\xd0\
\x4f\x7d\xf6\xee\xc1\x5d\x0d\xb1\xff\x9d\xc5\xe9\x9b\x92\xb1\x89\
\x7b\xd5\x4a\x1e\x67\xd0\x88\xac\x5c\x11\x57\x00\xcc\xb2\xd6\xab\
\x69\x18\xce\xfa\x9e\xb7\x6a\xc3\xa1\x6f\xc2\xf0\x5e\x07\x3d\x16\
\x5a\xca\xa3\x59\xd9\x0e\x23\x98\xee\x40\x39\xb3\xb3\x33\xb0\x76\
\x1e\xc0\x9a\x33\x3d\x55\x57\xf9\xfc\x1e\x77\x7a\x0d\x59\x2a\x29\
\x11\xf8\x3e\xa7\xe9\xbd\x84\xa0\x71\x5e\x8a\xb5\xe0\x38\x11\x69\
\xab\x5d\x89\xee\xae\x6b\x51\xc8\xe7\xfd\x73\x67\x74\xf1\x47\x3e\
\xdb\x57\x95\x72\xdf\x46\x51\xc1\xf4\x7b\xc2\xf6\x06\x40\x3a\x76\
\x62\x1f\x5b\xe5\xd5\x3a\x73\xc2\xc5\x74\xaf\x1e\xc6\xd1\xc5\x21\
\xab\x1b\x30\x1e\xa9\x00\xc8\x75\x20\x2b\x25\x78\x27\x57\x4d\xfe\
\x33\x2f\x74\xfd\x73\x67\xee\x0a\xdf\x7f\x0b\xc0\x6d\x00\x09\x98\
\x40\x52\x59\x00\xdb\x6c\xec\x7b\x10\xe2\x69\x55\x2d\x5f\x36\x8d\
\x26\x4c\xb7\x07\xb2\xb8\x57\x9f\xd0\x32\x40\x0c\x51\x28\xc0\x59\
\x5e\x82\x9a\x9b\x19\x42\x88\x43\x64\xd5\x77\x2c\x11\x25\xf1\xce\
\x6e\xd7\x5d\x9a\x6f\x23\x4d\x7b\xb2\x98\x2f\x43\x08\x0f\x42\xe0\
\x68\xf3\x91\x71\xaa\x15\x51\x66\x46\xf8\xbe\x91\xa5\x52\x57\x55\
\x2b\x5d\x66\x3b\x9c\xff\x6b\x7f\x31\x2b\xa3\x26\x65\x40\x8c\x0a\
\xf7\x06\x39\xd3\x6c\x4b\x8e\xe3\xa3\x12\xed\x78\x88\xb7\x3a\x2b\
\x66\x62\xb3\x62\xac\x8f\x28\x1d\xc0\x18\xe5\x62\x28\x05\x11\xe4\
\xac\xf0\xbd\xbe\x28\x97\x7a\x00\xf4\x33\x17\x9e\x1a\xd6\xeb\xf5\
\xcd\xbb\x6b\x77\xaf\xba\xbe\xf7\x41\xbf\xdf\x97\x83\xc1\xc0\xcf\
\xe5\xf2\x7b\x8e\xe3\x5c\xa9\x94\x2b\x77\x57\x57\x56\x37\x01\xde\
\x49\xd2\xb4\x91\x0b\x82\x5e\xb1\x58\x0c\x5c\xc7\xbd\xd8\xa8\x37\
\x5e\xd8\xde\xde\x7a\x2e\x49\x92\x33\xb5\xda\xd4\x6c\x6d\x6a\xaa\
\xb8\xb4\xb4\xe8\x32\x03\xad\x56\x0b\x77\xee\xde\xc1\xad\x3b\xb7\
\xb1\xb7\xb7\x07\xa5\x14\x96\x16\x97\x30\x37\x3b\x07\xc7\x71\xb2\
\xb5\xfe\x91\x1f\x40\x8f\x4c\x37\xe1\x79\x20\x22\xc4\x71\x82\xfd\
\xfd\x7d\x5c\xbb\x76\x0d\x5b\xdb\x5b\x08\xc3\x10\xab\x2b\x2b\x38\
\x73\xe6\x0c\xa6\xa6\xa6\x04\x98\xf3\xdd\x6e\xf7\x72\xb3\xd9\x5c\
\x1e\x0c\x06\x2f\x30\xf3\x35\x26\xfa\xf6\xf2\xea\x89\x77\x2a\xd5\
\xea\x95\xbb\x77\xef\x7e\xb0\xbb\xbb\xfb\x4e\xbb\xdd\xde\x8b\xe2\
\x68\x81\x48\xcc\x2a\x95\xf9\xec\x66\x67\x66\x21\x47\xed\xd9\x6e\
\xb7\xd1\xa8\x37\x10\x27\xf1\xc3\x34\x80\x1e\x80\xb7\x99\xe8\xf5\
\xa1\xab\x5a\x5d\x5f\x4d\x5b\xe2\x17\x00\x7a\x9a\x3e\x7e\x15\xaf\
\x08\xe0\x75\x10\x6e\xab\x34\x72\x91\xaf\x0e\x4c\x7b\xb7\xd2\xcd\
\x57\x07\x37\x40\xfc\x7b\xd9\x92\x02\x7f\x0a\x59\x41\x87\x47\x41\
\x00\x29\x80\x67\x2c\xe8\x05\x27\x31\xfb\x5f\xba\xb6\xfb\xfb\x5f\
\x5f\x5d\xb8\x9d\x4b\xd3\x57\x09\x5c\x00\xf0\x1c\xb2\x34\xc6\xc7\
\x42\xa0\x8a\x52\xea\xb2\x8e\xe3\x20\x1a\x0c\xaa\xa5\x99\xe9\x33\
\xce\xdc\x4c\xce\xf4\x06\x20\xe5\x80\xa3\x18\xf7\x6d\x9b\x65\x2d\
\x0b\xd7\x85\xb3\xbc\x20\xdc\xb9\x59\xc7\x3b\x75\xe2\x1c\x39\xce\
\x0b\x00\xda\xde\x74\xad\x05\x63\xaf\x99\xa5\x85\x53\xf9\x67\x2e\
\xe5\x9d\x72\xc9\xb7\x51\x04\xd6\x86\x8f\x04\x48\x96\x92\x06\xe1\
\xba\xec\xcd\xcf\x92\x50\x2a\x2f\xa4\x5c\x56\xc5\x62\x53\x9d\x3d\
\x7d\x9d\xa2\xa8\xa3\xf7\xf7\x4f\xcb\x7c\xb0\x68\x7b\x83\x12\x27\
\x89\x6f\x2d\x4b\x30\xd3\xb1\x31\x8e\x7b\x46\x31\xe1\x3e\xfb\xeb\
\xf8\x79\x08\x0c\x22\x2b\x3c\x2f\x92\x95\x52\xc7\x3f\xb5\xba\x1b\
\x9c\x3a\x71\xc3\x5f\x5d\xfe\x5d\x38\xea\xf6\x68\xd0\x92\xcc\x07\
\x40\x66\x4a\xd4\x55\xe0\xdf\xf6\x57\x96\x0e\x84\x94\xb1\x2a\x95\
\x72\xe9\xfe\x21\xb3\xb5\x84\xe3\x41\x22\xcc\x50\xf3\xb3\xf0\x2f\
\x9e\x83\xbb\xb2\xd8\x85\x94\x6b\x00\xf6\x01\xe8\xf0\xad\xb7\x21\
\x84\xe8\xfa\x0b\x73\x4d\xc9\xdc\x48\x2e\x9e\xaf\x71\x18\x39\x9c\
\x6a\x81\x7b\xed\x98\x45\xdb\x09\x82\x74\x1c\xf8\xe7\xcf\xf4\xbc\
\x99\xda\x9a\x3b\x55\xdd\xe6\x34\x8d\x29\x2b\x61\xad\x00\x9c\x54\
\xe5\xd2\xcb\xfe\xa9\x13\xab\xb6\x3f\x10\xc2\x75\xe1\x2e\x2e\x00\
\xcc\x3c\x76\x12\x7e\xc8\x4a\xcb\xc2\x75\xc7\x9e\x93\x87\x87\xc2\
\x49\x09\x11\x78\xa4\x66\x67\x8d\x9a\x9b\xed\x13\x51\x0f\x80\x7e\
\xef\xfd\xf7\xf0\xcc\xe5\x67\xba\xe5\x72\xe9\x86\x52\xf2\xb7\x03\
\x3f\xb8\xe1\xfb\x81\xab\xa4\x6a\x4a\xa9\xee\x94\xcb\xe5\x9d\x67\
\x2e\x5f\xae\xe7\xf3\xf9\xfe\xfa\xfa\xba\xfa\x9d\x6f\x7c\x7d\x69\
\x38\x1c\x5e\xc8\xe5\x72\x2f\x7a\xae\xfb\x5c\xa9\x54\x3c\xef\xb9\
\xee\x5c\xbe\x90\x77\x2a\xe5\x32\x4d\x4d\x4d\x1d\x45\x01\x6a\xad\
\x11\x86\x21\x1a\xcd\x06\x36\x37\x37\x11\x8e\x62\xff\xab\xd5\x2a\
\x0a\x85\x02\x5c\xd7\xcd\x42\xca\x93\x04\x5a\x6b\x74\xba\x5d\x68\
\xad\xd1\x6e\x77\xb0\xb3\xb3\x83\xed\x9d\x1d\x68\xad\xb1\x30\x3f\
\x8f\xd5\xd5\x55\xcc\xcf\xcd\xa1\x5c\x2e\x93\x31\x46\x49\x29\x15\
\x33\x82\x20\x08\x8a\x69\x9a\x96\xda\x9d\x56\xf0\xd5\xaf\xfe\xd6\
\x94\x92\xf2\xbd\x76\xbb\xdd\x5a\xbb\xbb\x56\x1b\x86\xc3\x0a\x09\
\x72\x05\x65\xc1\x49\xd2\x19\xed\x3b\x38\xda\x2b\x60\x38\x1c\x22\
\x8a\xa3\x6c\xdb\xb1\x7b\xc2\xd5\x22\xf3\xfc\xef\x32\xd1\xdb\xbe\
\x36\xd7\x7e\xe1\xea\xa6\x4c\xa4\x3c\xc1\x59\x01\xdf\x65\x7c\xbc\
\xb2\x7b\x00\x30\x60\xe0\x2e\x18\xef\x2b\xa1\x0c\x90\x2a\xc4\x96\
\x6d\x09\xb4\xce\x8c\xdf\x62\x62\xc5\xc0\x22\x65\x76\xbe\x87\xc7\
\xae\x0a\x50\x95\x81\xcf\x18\xa2\x2e\x03\xb7\xf2\x29\x76\x21\xc4\
\xd7\xc0\x36\x00\xf3\xf2\x48\x00\x3c\xda\xfd\x94\x39\x90\x8a\x42\
\x88\x4f\x25\x51\x74\x3a\xec\xf5\x59\x56\xca\x25\xef\xf4\xc9\x84\
\x0a\x85\xae\x97\xa4\xcc\x66\x5c\xd0\x83\x47\x1d\x17\x20\x29\x20\
\x02\x5f\xc8\xa9\x4a\x2a\x16\xe6\x4e\x69\x63\x5e\x84\x52\xd7\xa2\
\x24\xb9\xe3\x4a\xf5\x01\x4f\x55\x16\xfc\xcf\xbe\xb4\xe8\x5c\x3a\
\x9f\xb3\xe1\xd0\xb0\x36\x63\xe3\x95\x8f\x4a\xed\x0a\x22\xe1\xb9\
\x42\x54\x8a\x31\x0a\xf9\x79\x4b\xa8\x73\xde\xff\x2a\x2f\xcc\x7e\
\xa5\xf0\x33\x3f\xf9\x99\xa0\xd3\x7d\x39\x3d\xa8\x9f\x34\xbd\x41\
\x8d\x93\xd4\x81\xb1\x0f\xd4\xc1\x1e\x1f\xf0\x48\x2a\x1c\x4b\xe1\
\xa5\xac\x62\x88\x92\x86\x3c\x37\x96\xc5\x42\xc3\x9d\x9b\xbd\xa3\
\xaa\x95\x77\xe0\xbb\xdf\x49\x04\x5d\x4b\x92\xa4\x5e\x25\xc2\x53\
\x17\x2e\xe0\xfa\xb5\x6b\xf8\x3b\xff\xf7\xbf\x8d\xbf\xf0\x7f\xfe\
\x2f\x06\x39\xb6\x75\xf5\xd4\x99\x43\xb1\xb4\xd0\x94\x27\x57\x8d\
\xdb\xea\xda\xf1\x6c\x8d\x7b\xe7\x82\x53\x2d\x4b\x77\x65\x31\x55\
\xa5\xe2\xb6\xf0\xdc\x1b\x00\x76\x6f\x6d\xac\xeb\xb3\xcf\x3f\x87\
\x9d\x9b\xb7\xd2\xe9\xf9\xd9\x16\xcd\xce\xec\xba\x2f\x3c\x3b\x85\
\xe9\x1a\x71\x6a\xc6\x55\x79\x78\xec\x18\x25\x22\x22\x25\x48\x4d\
\x55\x77\x69\xba\xf6\xbe\x0d\xfc\xb5\x6e\x1c\xe9\x99\x95\x13\x68\
\xd6\xeb\xb9\x52\xb9\x7c\x9e\x95\xfa\xac\x7b\xee\xf4\x1c\x2b\xd9\
\x77\xfb\xa1\xb0\x5a\xf3\xb8\xf0\xc9\x23\x8b\xad\x1d\x55\x60\x3e\
\x16\xe6\x76\x1c\x21\x20\x03\x4f\xa9\x52\xb1\xed\xae\x2e\x35\x90\
\x95\x0e\x4b\x4f\x9f\x3a\x85\x6f\x7f\xe7\xdb\xcc\xcc\x9b\xc6\x98\
\x86\x31\xc6\x35\xc6\x90\x20\x61\x18\x9c\x30\x73\x3c\x1c\x0e\x49\
\xa7\x69\x6d\x6b\x7b\xeb\x42\x14\x47\x7f\xac\xdd\x69\x7f\x61\x77\
\x77\x67\xb9\x5c\x2a\x97\x9e\x7d\xe6\x19\x7f\x65\x65\x59\x2a\xa5\
\x68\xbc\xc1\x27\x11\x21\x97\xcb\x61\x61\x61\x01\xd6\x5a\xdc\xb8\
\x79\x03\x77\xd6\xee\xa2\x3f\x18\xa0\xdb\xed\xa1\x54\x2a\xa1\x58\
\x2c\xa2\x52\x2e\x67\xb5\xfd\x93\x04\x71\x14\x21\x49\x53\x0c\x06\
\x03\xb4\xdb\x6d\xf4\xba\x3d\x24\x49\x82\xd9\xd9\x59\x5c\xbc\x78\
\x01\xcb\xcb\xcb\x28\x16\x8b\x47\x1b\x89\x4e\x4d\xd5\x50\x2c\x16\
\xc5\x70\x38\xcc\x37\x5b\xcd\x93\xb7\x6f\xdf\x5e\x38\x38\x3c\x7c\
\xae\x58\x28\xbe\xa7\x94\x53\xf7\x7d\xbf\x12\x86\xe1\x89\x41\x7f\
\x30\x3b\xce\x68\x1c\xbf\xc6\x8c\x23\x10\x1f\x88\x03\x48\x01\xda\
\x07\x70\x83\x89\x3e\x78\x79\xfb\x60\xef\xa5\xed\xe6\x82\x15\xe2\
\x69\x30\xaf\x22\x2b\xbe\xf3\xa4\xf0\x28\x8c\xbf\x05\xe0\x2e\x33\
\x7d\xa0\x3e\xb5\xf7\x3a\x3e\x58\x79\x09\xf3\xb5\x08\x45\x9d\xef\
\xf7\x54\x78\x27\x85\x7e\x15\x99\x09\xf0\x23\x00\x2e\xe1\xf1\xb3\
\x78\x40\xc0\x49\x00\xcf\x11\xe1\xc5\xbf\xf4\xda\x95\xef\xfd\xab\
\x8b\x2b\x77\x37\x2a\xb9\x57\x1d\x63\x4e\x8c\xd6\xd5\x1f\x2b\xa5\
\x18\xec\x33\x78\xb5\xd9\x6c\xba\x37\xae\x5d\xbb\x15\x9c\x3c\x75\
\x3b\x1f\xf8\xdf\xf4\x67\xa6\x53\xcd\x10\xad\x7e\xaf\xd0\xe8\x76\
\x2a\xc3\x38\xf1\x8d\x35\xd2\x18\xa3\x2c\x40\x22\xea\x91\x88\x7a\
\xa9\xd4\xc3\x9e\xde\xbc\x1b\xde\xb8\x75\xab\xf0\xaf\x7f\xf3\x37\
\xa7\x5e\x78\xe1\x79\x3e\x3f\xb7\xb0\x3b\x1f\xe4\xdf\x74\x0c\x6f\
\xd9\x38\xb2\x56\x1b\x10\x11\x17\x83\x5c\xbf\x52\x28\x76\xc3\x38\
\xf6\x3b\x83\x5e\x49\x0f\x7b\x0e\xf5\xdb\x56\xe8\x38\x4a\xb7\x37\
\x0f\xaf\xdc\xba\x19\xde\x5d\x5b\xeb\xfc\xec\xcf\xfe\xec\xfb\xb3\
\x41\x10\x0e\x59\xaf\x2b\x85\xdc\x74\xb1\xd2\xcf\x3b\x5e\x2c\x88\
\x8e\x3a\x37\x83\x29\xd5\x5a\x76\xfa\xbd\x42\x67\x30\x28\x68\x63\
\x14\x33\x93\xb1\x46\x3a\x4a\xa5\xf3\x53\xb5\xc6\x4c\xad\xd6\x46\
\xe0\x6b\x51\x2a\xf6\xfc\x95\xc5\xdd\xc3\x34\xd9\xf9\xd5\x5f\xfb\
\xb5\xbd\xff\xe9\x9f\xfd\xb3\x68\x7b\x6d\x4d\x3a\xca\xa9\xee\xed\
\xee\x94\x4a\xa5\x82\xfb\x4b\x7f\xff\xef\x89\x7f\xf0\xff\xfd\x7f\
\xcb\x2f\xbd\xf2\xf9\xa9\x9f\xff\xe2\x8f\x1f\xcc\x95\x2b\xdf\x15\
\x61\xe4\x29\xe8\xb8\x5a\x28\x74\x5d\xc7\x4d\xfb\xc3\x61\x20\x08\
\x5c\x2d\x96\xba\xf9\x99\x69\xed\xcc\xd4\x8c\xcc\xe7\xde\x81\x94\
\xdb\x44\x94\x2e\xaf\xac\xf8\x5b\x9b\x9b\xc1\xa5\x8b\x17\x67\xff\
\xda\x7f\xf2\xd7\xf8\xcc\xd2\xca\x2d\xa7\xd3\x8d\x30\xec\x97\x60\
\x2d\x49\x92\xda\x73\x9d\xa8\xe0\x07\x61\x29\x9f\x1f\x18\x6b\x55\
\xa3\xdf\xab\xf4\x1a\x07\x61\xf7\xf5\xe6\x9d\xdb\xfb\x7b\xe6\x9f\
\xfd\xf3\x7f\x76\xe2\xd5\xef\x7d\xaf\xf6\xe5\x2f\x7f\xb9\xf8\xd7\
\xfe\xea\x5f\xa1\xb3\x2b\x27\x6e\xb8\xfd\xfe\x16\x04\x69\xca\xfb\
\x36\x4e\x53\xa7\xd9\xed\x54\x86\x71\x9c\x93\x42\x18\x21\xc4\x51\
\x38\x11\x00\xf8\xae\x37\x2c\xe7\xf2\x7d\xcb\x4c\x61\x14\xf9\x89\
\x4e\x5d\x63\xac\xb4\x23\x0d\x8a\xc0\x70\x5c\x37\xad\x7a\xf9\xb0\
\x52\x2a\xec\x2a\xcf\x7d\x1b\xd9\x76\x67\xfd\x5c\x2e\x8f\x57\x3e\
\xfb\x0a\x84\x10\x31\x1e\x12\x58\xf6\xb5\xaf\x7f\x0d\xef\xbd\xff\
\x9e\x5b\x28\x14\xe6\xea\x8d\xc6\x73\x9d\x76\xfb\xc5\x46\xa3\xfe\
\x74\x34\x8c\xf2\x49\x92\xd0\xf6\xce\x36\xfc\xc0\xc7\xc2\xfc\x3c\
\x3c\xcf\x3b\x8a\x11\x50\x4a\x22\x3f\x2a\xfd\xdd\x1f\xf4\x11\x8f\
\xca\x70\x2b\x25\x31\x1c\x66\xa5\xbf\xc7\x1b\x83\xa6\x69\x0a\x3d\
\x1a\x8c\x04\x40\x49\x89\xb1\x26\xb1\xb0\x30\x8f\xc5\xc5\x45\x54\
\x2b\x15\x38\xa3\x40\x9e\x71\x4e\x00\x11\xd0\x68\x36\xe4\xde\xde\
\xbe\xdc\x3f\x38\xf0\x0f\x0e\x0e\xfd\x9d\xdd\x5d\xcf\xf7\xfc\x7e\
\xa9\x58\x0a\x8a\xc5\x62\x31\x0c\xc3\x5c\x9a\x3e\x3c\xbe\xea\x01\
\x81\x30\x96\x9c\x6d\x00\xdf\x03\xd1\xd7\x98\xe8\xd6\x2b\xeb\xfb\
\xae\xb0\xfc\x32\x83\x3e\x0b\x60\xe6\x63\xda\xfe\x29\x08\x87\x60\
\xdc\x02\x70\x97\x0d\x6f\x10\x00\xbc\xb7\xf2\x22\x00\x20\x91\x3d\
\xb8\xa6\x28\x99\xd2\x1a\x83\x9e\x62\xa2\x9f\x03\xe8\x4f\x8c\x24\
\xcd\x47\xc5\x07\xac\x81\xe8\x1b\x60\xfe\x4a\xd3\x53\xdf\xfc\xff\
\x7c\xfe\x62\xce\xb5\xf8\x02\x33\xbe\x0c\xe6\x2f\x12\xd1\x0c\x1e\
\x9f\x76\xcc\x4a\xa9\xb5\x52\xb1\xf4\xb5\x99\xa9\xa9\x6f\x5e\x5e\
\x58\x7e\xe3\x4f\x7e\xe6\x73\x07\x9d\x46\x43\xfc\x37\xbf\xf1\x6b\
\x73\xef\xdc\xba\x7e\xb2\x3f\x1c\x56\x52\xad\xfd\x54\xeb\xbc\x36\
\xd6\x13\x42\x18\x92\x2a\x21\x47\xc6\x29\x9b\xde\xc1\x61\x7d\xbf\
\xd5\x6c\xa7\x41\xe0\xce\x96\xf2\x85\x52\xad\x54\x96\xbe\xeb\x12\
\x67\x0f\x93\x88\xc8\x96\xf2\x85\xc3\xe5\x99\xb9\xbd\x7a\xa7\x53\
\xaa\xb7\x5b\x0b\xc6\x5a\x8f\x84\x80\x91\x92\x23\xa3\xf5\xe1\xe1\
\x61\x38\x18\x0c\x06\xb3\x33\x33\xfd\xa9\x72\x49\x41\xa7\x73\x79\
\xcf\x8f\x3f\x7d\xf1\xe9\x1b\x7f\xf2\x0b\x5f\xaa\x97\xf3\x05\x9b\
\xf3\x3c\x4e\xb5\x46\x67\x30\x10\xef\xdc\xba\x11\xfc\xce\x1b\xaf\
\x2d\x6f\x1f\x1c\xac\xc4\x69\x1a\x30\x5b\x01\x80\x7c\xcf\xed\x3f\
\xb5\x7a\xf2\xd6\x9f\xfe\xf1\x2f\xef\x9c\x3a\xb1\x9a\xd4\x16\x16\
\x52\xe7\xc2\xd9\xe4\x2f\xfd\xe2\x2f\x96\xbe\xf6\xf5\xaf\x2d\xf7\
\xfb\x7d\x6b\x2d\x1f\x1a\x63\xf2\xcc\xbc\x48\xc4\x7e\xf6\xec\x49\
\xf8\x9e\xa7\xe6\x67\x67\x73\x53\xa5\x92\x2f\x98\xc8\x95\x6a\xb0\
\x58\x9b\xd9\x2e\xe6\x72\xd1\x4e\xfd\xb0\xa6\xa4\x4a\x7f\xfc\xa5\
\x97\xef\xfe\x85\x3f\xfb\xe7\x3a\x3a\xe7\x93\x2a\x15\xa3\x76\xaf\
\xdb\x3f\xf9\xc2\x73\x8e\x12\xb2\x9a\x24\xc9\xbc\xe3\x38\xf3\xd3\
\xd3\xd3\xa5\x5a\xa5\x12\xf8\x52\xb8\x32\x0b\xf4\x85\x10\x42\xbb\
\x8e\x1a\x96\xf3\x41\xeb\xcc\xd2\xf2\x5e\x94\xa4\xea\xc6\xe6\xd6\
\x89\xf6\x60\x50\xe8\xc5\x91\x6e\x77\xbb\x49\xb3\xd5\x4a\xd2\x34\
\x35\x41\xe0\x63\x69\x69\x49\xac\x2c\x2d\xa2\xec\x05\x71\x20\xd4\
\x30\xef\x7a\x71\x67\xd0\xcf\x6d\xec\xed\x9c\x8b\x92\x78\xda\x51\
\xaa\xe7\x28\x35\x04\x32\xab\x00\x00\x72\x7e\xd0\x99\xad\xd6\xf6\
\x93\x34\x71\x5a\xbd\x4e\x2d\x49\x8d\xc7\xcc\xc2\x32\xc4\x58\x01\
\x71\x1d\x15\xcd\xd6\xa6\xf7\x4f\xaf\x9e\xdc\xbd\xf8\xdc\x73\x07\
\x7f\xfa\x2f\xfc\xf9\x0e\x80\x84\xb3\xfa\x6d\x8f\x8c\x86\xfb\x97\
\xff\xcb\xbf\x04\x00\x3f\x97\xcb\x7d\xe9\xe0\xe0\xe0\xe7\xdf\x79\
\xf7\x9d\x1f\xdd\xdd\xdd\x7d\xca\x5a\xab\x3c\xcf\x47\xa5\x52\xc1\
\xc9\x13\x27\xf1\xdc\x73\xcf\x61\x71\x61\x01\x52\x8a\xa3\x4a\x3b\
\x51\x14\xa1\xdb\xeb\xa1\xdf\xeb\x67\x42\x20\x8a\x30\x8c\x86\xa3\
\x48\xbf\xac\x36\x40\x92\x24\x30\xc6\x1c\x99\x0d\x95\x4a\x05\x73\
\xb3\xb3\x59\x94\xa1\x94\x28\x14\x8a\xa8\x4d\x55\xb3\x22\x1e\xa3\
\x02\x1f\xe3\xfd\x05\xbb\xdd\x2e\xae\x5e\xbb\x86\x6b\xd7\xaf\xe3\
\xf0\xf0\x10\xad\x76\x9b\x5b\x9d\xb6\xce\xe7\xf2\xf6\xd9\x4b\x97\
\x45\xe0\xfb\x62\x7d\x7d\x5d\x74\xba\x1d\xfa\x88\x68\x3f\x20\x8b\
\x90\xed\x03\xb8\x02\xa2\x5f\x29\x68\xf3\x3b\x9f\xde\x3a\x68\xbf\
\xb0\x71\x70\x89\x19\x7f\x89\x80\x1f\x23\xd0\x34\x3e\x5e\x1d\xcf\
\x0e\x40\x6f\x82\xf0\x55\x62\xfe\x17\xcf\x6e\xbc\x73\xf5\xbe\xc1\
\xf8\xfe\xca\xd3\x99\xb4\xe4\xd4\xd1\xe4\x56\x8d\x50\x2f\x32\xe8\
\x4b\x60\xfe\x91\x51\xba\x6c\xf1\x31\x03\xb8\x0f\x60\x8d\x98\xbf\
\x21\x80\x7f\xfe\xd6\xd2\xf4\xfa\xef\x9d\x9e\x2f\x0f\x1c\xf9\x59\
\x61\xf9\xa7\x29\xf3\x07\x2c\xe1\x31\x4e\x41\x66\x6e\x33\xf3\x07\
\xd6\xf2\xd7\x22\xe2\xdf\xb8\x9d\x0f\xae\xd2\x60\x90\xbe\xfb\xab\
\xbf\x96\x87\x43\x33\x00\x02\x22\x11\x28\xa9\x4e\x10\x89\x05\xcb\
\x1c\x1a\x63\xeb\xac\x4d\x5b\x82\x23\xcf\xf3\xa5\x10\xa2\x68\xad\
\xae\x59\x6b\x91\x5a\x73\x60\xc0\x61\xe6\x71\x3a\x3a\x8d\x01\x60\
\x01\xe1\x03\xe4\x03\x88\x61\xed\x10\xda\x30\x31\x8b\x91\x54\xf7\
\xd2\x34\xad\x82\x30\x2d\x1d\x39\x4d\x44\x07\xd6\xda\x6f\xe9\x58\
\xaf\xdf\xfb\x3e\x08\x80\x24\x21\x8a\xca\xf3\x9e\x06\xd1\x65\x80\
\xcb\x60\x36\x4c\xa8\x33\xd0\xb0\xd6\x46\x6c\xb9\x09\xe0\x8e\x2b\
\x65\x53\x0a\x82\x24\x5a\x26\xc2\xa7\x41\x14\x08\x21\xf6\x01\xf2\
\xc0\xa8\x00\x34\x10\x82\x0f\xad\x65\x6d\x8c\x15\x49\x9c\xe8\xd4\
\x68\x09\xe5\x54\x48\x0a\x9f\x61\xbb\x60\x30\x11\xd5\x08\xd4\x45\
\xb6\xbb\x6f\x1d\x00\x8a\x9e\x8b\xd1\xf5\x2c\x01\x38\x0b\x90\x67\
\x2d\x27\x49\x92\xc4\x71\x1c\xa7\x2c\xc0\x90\x04\x90\x60\x22\xe1\
\x4b\x49\x73\x04\x48\x63\xed\x9e\x65\x44\x00\x15\x60\x01\x32\x26\
\x72\x94\xd2\x9e\xeb\x92\x94\xd2\x66\x35\xf2\xa3\x42\x92\xa6\x79\
\x16\xa4\x21\x55\x04\xc2\x40\x10\x05\x92\xe8\x59\x02\xca\x86\xed\
\x35\xc3\x76\x77\xd4\xb6\x63\xe7\x87\x01\xc8\x08\xa2\x0a\x09\x4c\
\x83\xd1\x37\x86\x0f\x01\x9b\x02\x9c\x15\x5e\x65\x00\x86\x53\x58\
\xee\x21\xf3\x5d\x74\x9f\xa4\x07\xff\xab\x7f\xfd\x9b\x00\xe0\x95\
\x4a\xa5\x4f\x6d\x6e\x6d\xfe\xd4\xeb\xaf\xbd\xf6\x33\x7b\xfb\xfb\
\x2f\x48\x29\x84\xe3\xba\x23\x75\x7c\x0a\xe7\xce\x9c\xc5\xa9\x93\
\xa7\xb0\xb8\xb8\x80\x7c\x3e\x0f\x6b\x2d\x5a\xad\x16\x0e\xeb\x0d\
\x28\x25\x51\x2c\x14\xc1\x6c\x11\xc5\x11\xc2\x41\x88\x6e\xaf\x97\
\x09\x81\xc1\x00\xd6\x32\x5c\xcf\x45\xb9\x94\xc5\x0a\x54\x2a\x15\
\x78\x9e\x37\xde\x4b\x02\xcc\x8c\x5c\x2e\x87\x62\xb1\x08\xc7\x71\
\x90\x24\x09\x76\xf7\xf6\x70\xf7\xee\x5d\xac\xaf\xaf\x63\x6f\x7f\
\x1f\xc3\x68\x88\x30\x1c\xa2\xd9\x6a\x21\x97\x0b\xf0\xec\xa5\xcb\
\x08\x82\x00\xeb\xeb\xeb\xe8\x74\x3a\x1f\x15\xee\x0b\x64\x33\xff\
\x1b\x00\x7d\x83\x89\xfe\xcd\xff\xea\xfd\xbb\xbb\xa7\xea\xdd\x0b\
\x60\x7c\x91\x89\xff\x04\x40\x17\x29\x1b\x4b\x4f\xa2\x04\x8c\x8b\
\xee\xae\x01\xf4\x2f\x98\xe8\xb7\x00\xbc\x0d\xa0\x7e\xdf\x60\xcc\
\xc5\x21\x00\xe0\xd4\xc1\xdd\xf4\xe6\xfc\x53\xcd\xd0\xf1\x5f\x63\
\xe2\x26\xc1\xa4\xc8\x3c\x8d\x27\x91\x99\x03\x0f\x1b\xc4\x05\x30\
\x9f\x67\x60\x68\x84\xd8\x7d\x76\xaf\xad\xf3\x31\xdd\xfe\x97\x97\
\x97\xbe\x6b\x09\x2e\x67\x9e\x21\x0f\x99\x69\xf1\xd0\x0b\x27\xa2\
\x32\x11\xbd\x24\x25\xb1\x4b\xb4\xf5\x29\x4d\x31\x05\xc5\x8d\xbd\
\x99\x99\xa1\xeb\xba\x07\xd6\x32\xd2\x34\x09\xb4\x4e\x6b\x00\x5c\
\x66\xf4\x01\xea\x08\x21\x36\x01\x0e\xd3\x54\xd7\x00\xce\x39\x8e\
\x23\x00\x18\x9f\x44\x9f\x48\xb4\xb3\xe4\xa5\xb1\xc9\x6a\x6b\x44\
\x98\x63\x26\x0d\x50\x8b\x88\xf6\xa5\x94\x4d\x22\xd2\xd6\x5a\xb2\
\xd6\x5a\xad\xd3\x69\xd7\x55\x8b\x44\x38\x0d\x60\x99\x88\xa6\x88\
\xc4\x3a\xe5\x54\xc4\x6c\x35\xdf\xab\x32\xaa\x90\x25\xb3\x9c\x04\
\xf8\x02\x33\x4f\x01\x18\x12\x51\x48\x24\x9a\xcc\x7c\x9a\x99\x4f\
\x11\x11\xbb\xae\x97\x96\x4a\x33\x83\x7a\x7d\x2d\x40\xb6\x47\xe2\
\x14\x88\x0b\x60\x98\xcc\x9c\xe6\x1d\x66\x71\x5b\x4a\x0a\xa5\x84\
\xf4\x7d\xdf\x5a\xcb\x39\x63\x8c\x03\x60\x8a\x68\xbc\xa7\x1c\x4a\
\x00\x76\x84\x10\x7e\xab\xd5\xca\x7a\xca\x30\xc2\xe2\xe2\x3c\x06\
\x83\x41\x2d\x13\x00\xdc\x02\xe8\x8a\xef\xfb\xad\x7c\x3e\x9f\x88\
\x91\xe3\x8f\x88\x6c\x9a\x26\x33\xcc\xf6\x5c\x26\x2c\x68\x1a\xa0\
\x3a\x11\xb5\x00\x1c\x12\xd1\x01\x33\x27\xcc\xac\x46\xb1\x3b\xae\
\xe7\xf9\x39\xcf\xf3\x67\x88\x48\x11\x51\x34\x6a\x4f\xcf\x18\xb3\
\x0c\xb0\x0f\xd0\xfb\x42\x88\x26\x8d\xbd\xa1\x59\xfc\xbe\xcf\xcc\
\x55\x80\x67\x01\x9e\x26\xa2\x54\x08\xd9\x15\x82\x87\xcc\x46\x1a\
\x03\xd7\x5a\x0a\x46\x7b\xe1\xe5\x88\xa8\xdb\x6e\xb7\xbb\x41\x10\
\x20\x0c\xc3\x71\x5f\x78\x68\x4f\x2e\x16\x4b\x00\x60\xe6\xe6\x17\
\x77\xf6\xf6\x0f\xae\x92\x90\x2f\xf8\xbe\xff\xb4\x10\xc2\x17\x32\
\x5b\xb2\x6b\xb7\xdb\xb8\x76\xfd\x06\xd2\x24\x45\xa1\x50\x80\xe7\
\x79\x48\x92\x14\xbd\xd1\xee\x3e\x95\x4a\x19\xa5\x52\x11\xae\xeb\
\x1e\x99\x08\x49\x92\x64\xfb\xf9\xf5\x7a\x60\xe6\x6c\xfb\xef\x6a\
\xf5\xa8\x4c\x37\x8f\xca\x84\x77\xbb\x5d\x74\x3a\x1d\x18\x63\x10\
\x04\xc1\xa8\xc4\x57\x88\xf5\xf5\x75\xbc\xff\xc1\x07\xe8\x74\x3b\
\x47\x4e\xbc\x20\xf0\x51\xb1\xe5\xa3\x3d\x00\xa2\x28\x1a\x6f\xfa\
\xf1\xb8\xc1\x6a\x90\x6d\x93\xbe\x06\xa2\xaf\xe7\xb4\xfd\xca\xd3\
\xfb\xcd\xbd\x13\xf5\xee\x22\x31\x7e\x82\x81\x1f\x27\xd0\x0a\x3e\
\x4e\xf9\x7e\x20\x25\x50\x03\xc0\x75\x06\xbd\x9e\x42\xbe\xab\x49\
\x74\x88\x1e\xd8\xb1\xe7\xf4\xc1\x5d\x00\xc0\x9b\xcb\x9f\x05\x00\
\xcd\xba\xd0\x16\xaa\x73\x0b\x64\xbe\x8a\x2c\x61\xe3\x47\x01\x3c\
\x8f\xcc\xf1\xf0\x61\x9b\x9e\xc8\x05\x70\x92\x99\x7f\x52\xb0\x11\
\xe7\xea\xad\xe4\x95\x75\xff\xf0\xd5\x13\xb5\xdf\x8f\x05\x0d\x25\
\xdb\x3e\x80\x4f\x01\x1f\xde\x1e\x7c\x7c\x84\xac\x93\xf3\x19\x30\
\xfe\x58\x6a\x53\xc9\xcc\xbf\xf5\xd2\x8b\x2f\x6f\xae\xaf\xaf\x0f\
\xcb\x15\xdf\xbc\xfb\xee\x75\xad\x94\x88\x90\x05\xa9\xa4\xcc\x34\
\x34\xc6\xf6\xad\xd5\xa1\x10\x28\x00\x24\x98\x51\x46\xb6\xcd\xd4\
\x10\xb0\xe3\x70\x5a\x4b\x44\x4c\xc4\x15\x80\x4b\xcc\xd4\x62\x46\
\x8f\x19\xed\x24\xe9\xb7\x93\x24\x31\xbe\xef\x53\x10\x94\x98\x28\
\x35\x00\xbd\x3b\xca\x7a\xac\x31\xf3\x14\x33\x9f\x04\xb4\xb4\x96\
\x75\x16\x81\x04\x22\x22\x05\xa0\x48\x44\x0b\x00\x17\x98\x11\x8c\
\x92\xaa\x9a\x00\xdf\x65\x36\x43\x66\xcc\x02\x74\x29\x8e\xa3\xa9\
\xfd\xfd\x8d\xf7\x84\x60\x45\x44\x0a\x0c\x8f\xc1\x05\x80\xfa\x44\
\xd4\x05\xa8\x03\x88\x4e\xb3\xd9\x1c\xce\xce\x2e\x88\x52\x69\xd7\
\xee\xee\x16\x52\x21\xa8\x4b\x44\x11\x33\x2a\xc8\x36\x7e\xf4\x01\
\x08\x63\x0c\x4a\xa5\xd2\xa8\xd9\xb2\x9d\x95\x47\xcf\x24\x07\x50\
\x13\x40\xd7\x5a\x6e\xa7\x69\x9c\xc6\xb1\x66\x63\x0c\xce\x9c\x99\
\xb7\xfb\xfb\x03\x8f\x88\x62\x00\x02\xa0\x02\x33\x06\x00\xf6\x90\
\x39\x86\xda\x44\x54\x61\xe6\xb3\x00\xca\xcc\xec\x13\x61\x96\x88\
\xaa\x9c\xe5\x9d\x5b\xc0\xca\x4c\x40\xd8\xfc\xe8\x33\x73\xd6\x72\
\xf7\x9e\x00\x00\x23\xf3\x5a\x87\x00\xba\x44\x28\x31\x73\xd1\xda\
\xf4\x14\x08\x29\x08\x92\x2d\x79\x60\x76\x47\x7d\xa0\xcd\xcc\x6a\
\x7c\x2f\x1f\x15\x3c\x56\x2a\x95\x01\xc0\x9e\x3b\x7d\xaa\x7e\xfd\
\xfa\xd5\xdb\xb3\x33\x33\x9b\xae\xeb\xb4\x5a\xed\xd6\xcc\x70\x38\
\x54\x52\x66\x55\x7e\x1b\xcd\x06\xf2\xf9\x1c\x5a\xed\x16\xa4\x14\
\xe8\xf7\x07\x18\x0e\x87\xc8\x05\x01\xf2\xf9\x7c\xe6\x7d\x1f\xad\
\xfd\x8f\xd3\x79\x9d\x51\x55\x60\x1a\x6d\xdc\xe1\xfb\xfe\xbd\x99\
\x7f\xf4\xb9\xb1\xdd\x9f\xa6\xfa\xc8\x41\x78\x58\xaf\x63\x67\x77\
\x07\xad\x56\x0b\xda\xe8\x23\x3f\x82\x20\x81\xb9\xd9\x59\x78\x9e\
\x8f\x38\x8a\xd0\x8d\x63\x3c\xca\xfe\x3f\xc6\x00\xc0\x9b\x20\xfa\
\x86\x11\xe2\x77\x9f\xdb\xad\xef\x7f\xe6\xee\xde\x19\xc1\x78\x85\
\x81\xcf\x82\x70\x16\x4f\xb0\xb2\xf6\x00\x21\x67\xc7\xfc\x6d\x06\
\x7d\x30\x84\xd7\xfc\x51\xf3\x2d\xfd\x2d\xf1\xd9\xfb\x05\xc0\xd8\
\xeb\xf0\x9b\xd5\x45\xbc\xb0\xf1\x3d\xec\xd5\x4a\x06\xda\xeb\x58\
\xe2\x37\x04\x50\x27\x26\x0d\x40\x31\xf8\x1c\x03\xd3\xf4\xf0\x15\
\x82\x1a\x80\x4f\x65\x86\x1c\xf7\x3e\xbb\xb6\xf7\xea\x5c\x77\xb8\
\xf9\xaf\x2e\xce\x7d\x3b\x52\x22\x64\x90\x1d\x7d\x6f\xbc\x0f\xc1\
\xc3\x04\xc1\x34\x32\x07\xa4\x05\xb0\x3b\x55\x9b\xd2\x53\xb5\xa9\
\xc3\x5f\xff\xf5\x7f\x3a\x2c\x14\x4a\xc6\x18\xad\x47\x02\x40\x03\
\xd0\x44\x64\xa4\x64\x83\xa3\xdc\x36\xf2\x91\x55\x28\x1a\xd7\x4b\
\x27\x22\xb2\x44\x64\x00\x04\xd9\x7e\xeb\x3c\x4a\xcb\x26\x0a\x82\
\x40\xf8\xbe\xcf\xd6\x5a\x4a\xd3\x10\x52\x4a\xad\x94\xd8\x33\x46\
\x4f\x31\xdb\x01\x40\x53\x44\x54\x02\xa8\x46\xc4\xfa\x9e\x36\x01\
\x49\x44\x39\x64\x91\x93\xa3\x68\x20\xa4\x00\x5a\x9e\xe7\xac\xa7\
\xa9\xa9\x5b\x8b\x33\xcc\xf4\x02\x80\x2a\x11\x7a\xd9\xd2\x29\x3c\
\x06\x44\x96\xe5\xca\x0c\x82\x26\xb0\x65\x4e\x29\x9f\x57\x62\x38\
\xec\x8b\x24\xa9\x42\x29\x23\x1e\x88\xb5\x19\xfb\x50\x04\x00\xd9\
\xed\x76\x91\xcf\xe7\x65\x92\x90\xf5\xbc\x2c\x6e\x65\xfc\x24\x33\
\x7f\x12\x09\x21\x94\x90\x52\x30\x33\x63\x67\x27\x65\xa5\x8e\x76\
\x1e\x1d\xfb\xb8\xc6\x29\x7c\x44\x24\x04\x33\x97\x00\x9c\x62\xc6\
\x3c\x80\x80\x88\x8a\xd9\x44\x41\x0d\x00\x6d\x80\x78\xb4\x79\x86\
\x1c\x09\x88\xca\xe8\x59\x62\xdc\xce\xd9\xe7\x70\x08\xa0\x97\x09\
\x1b\xeb\x33\xf3\x22\x40\x16\x10\x82\x08\x01\x00\x45\x04\x0d\x90\
\xc1\xc7\x98\xcd\xce\x9d\x3d\x33\xee\xaa\xdd\x4a\xb1\xb4\xbd\xba\
\xb2\x7a\x23\x17\xe4\x6e\x86\x61\x28\x07\xfd\xc1\xb4\x94\xd9\xb6\
\xc8\x71\x12\xa3\xd5\x69\x63\x7b\x7b\x1b\x83\xc1\x00\x71\x1c\x23\
\x17\xe4\x30\x3d\x5d\x3b\xda\x32\xdc\x1e\xab\xfd\xaf\x8d\x19\xe5\
\x15\x0c\x21\xa5\x84\xeb\xb9\xf7\x55\xe7\x01\x32\xbf\x84\xeb\x7a\
\xf0\xfd\x20\x2b\x18\xda\xce\xca\x89\xed\xec\xec\xe0\xe0\xf0\x10\
\xa9\x4e\xef\xab\x60\xa4\x94\x44\xb5\x5c\x85\xe3\x38\xd8\xdf\xdf\
\x43\xa7\xd3\x39\x2a\x60\xfa\x00\xe3\x7e\xd3\x07\x70\x77\x34\xf3\
\xff\xd6\xa5\xfd\xc6\xee\xa7\xef\xee\xd5\x94\xe5\xcf\x33\xd1\x4f\
\x02\x7c\x09\xd9\x06\x34\x4f\xea\xfb\x33\x9c\x4d\xdc\x6b\x20\x7c\
\x0b\x42\x7c\x03\x44\x1b\x3f\xfa\xdf\x7e\x4b\xbf\xfb\x8b\x2f\xc2\
\xb1\xe6\x7e\x01\x70\x74\xd4\xf7\x7e\x03\x00\xf0\x66\xf5\x39\xb0\
\xb0\xa6\xed\x9a\xfe\x54\x2c\xd7\x05\xf0\xdb\x0c\xd4\x19\xf4\x0a\
\x81\x9f\x07\x70\x1a\xcc\xd5\x07\x22\xbe\x04\x65\x7b\x92\x5d\x04\
\x5b\x4b\x6c\x2b\x67\x9a\xcd\x6f\xfe\xf4\x75\xbd\xfe\xeb\xcf\xae\
\xbe\x6a\x49\xf6\x5d\x63\x0f\x88\xf1\x05\x00\x97\x38\x0b\x63\x7c\
\x50\x88\x38\x0c\x9e\x02\xf0\x3c\x83\x87\x44\x54\x56\x4a\x7d\x23\
\x8e\xf5\xe6\xe9\xd3\xa7\xa8\xd1\xa8\xd3\x68\xa7\xe1\xe3\x09\x10\
\x3c\x52\xf5\x2d\xb2\x90\xc9\x04\xe0\x03\x66\x6a\x8f\x3a\x38\x33\
\x83\x89\x78\xbc\x95\x52\x8e\x08\x2b\xa3\x63\x28\x66\xd6\xcc\x2c\
\x88\x48\x58\x6b\x2b\xcc\xf6\x2c\xc0\x17\x01\xcc\x02\xdc\x05\x78\
\x0d\xa0\xdb\x44\x64\x8e\x99\x00\x12\x40\x99\x88\x02\x80\x97\x00\
\x48\xe6\x2c\x82\xd2\x75\xbd\x44\xca\x34\x0a\x43\x33\xbe\xce\x79\
\x22\xbe\x00\xd0\x1c\x33\x4e\x83\x38\x26\xe0\x00\x80\xc7\x6c\x57\
\x00\x24\x80\xe9\x0a\xe1\xf6\x99\x59\x58\x6b\x2d\x11\x15\x01\x73\
\x82\x19\x4b\xd9\x9a\x3b\x0d\x91\x49\xff\x12\x33\xd7\xf2\xf9\xfc\
\x00\x20\xe9\xba\xb0\xa3\x7b\xc8\x8d\x46\x61\x11\xe0\x15\x80\x03\
\x80\x06\xcc\x30\xcc\x4c\x52\x86\x0c\xd0\x02\x60\x17\x00\xaa\x10\
\x61\x67\xa4\x1c\xcd\xe3\x9e\x46\x23\xac\xb5\x3b\xc8\x92\x81\xf2\
\x00\x4e\x33\xd3\x12\x11\x7c\x00\x6a\x64\xc3\xd3\x48\xd8\x0e\x01\
\x34\x98\xb1\x97\x9d\x17\x62\x94\x1b\xad\x89\x10\x10\xa1\x04\xb0\
\x07\x60\x00\xd0\x1e\x88\x12\x10\x1c\x30\x0a\xc8\xb4\xc8\x59\x80\
\x67\xf0\x31\x4a\xc9\xe5\x82\x00\x00\xf8\xbf\xf8\x9b\x7f\x13\x3f\
\xf7\x73\x3f\xd7\x5e\x98\x5f\xf8\x9e\xd6\x3a\x28\x15\x4b\x8e\xd6\
\xba\x1c\x0e\x87\x5e\x9a\x66\xde\xfd\x30\x1c\xe0\xbd\x0f\xde\x47\
\xb5\x52\xc5\xdc\xec\x2c\x2a\xe5\xcc\x9e\x2f\x16\x8b\x47\xcb\x83\
\x3c\x0a\x10\xa3\x91\x10\x18\x6f\x0d\xc6\xa3\x81\x3a\x4e\xef\x1d\
\xb5\x2b\x0a\x85\xcc\x24\xa8\x37\x1a\xd8\xdd\xdd\xc5\xf6\xf6\x36\
\xf6\xf6\xf7\xd0\x1f\xf4\xb3\x99\x3f\x49\x61\x8d\x45\x21\x9f\x47\
\x3e\x5f\x80\xe5\x4c\x3b\x8b\xa2\xf8\x71\xea\xff\xa8\xbe\x26\xde\
\x04\xd1\xef\x69\x25\xbe\x75\x71\xbb\xb9\xf3\xf9\x9b\xbb\x67\x1c\
\x6b\x3f\xc7\x84\x2f\x82\x70\x11\x40\xf5\x63\x95\xef\x63\xd6\x44\
\xf4\x01\x83\xbe\x01\xd0\x77\x09\xbc\x4e\x42\x0c\xde\xf9\xc5\xcc\
\xe9\xff\x99\xf5\xd7\x1e\xbf\x69\xe7\x38\xc2\xe3\x6c\x2c\x39\x01\
\xfa\x65\xb2\xef\xd5\x21\xf6\x13\xa0\xcd\x4c\x7d\x30\x27\xc8\xd4\
\xf9\x02\xee\x69\x03\xe3\x00\x90\x39\x06\x8a\x96\xe0\x13\xb1\x3c\
\x7f\xd8\xfe\xe6\x5f\xff\x76\x78\xf5\x37\x2f\x9d\x7c\x6b\xaf\x10\
\xf4\xd2\xac\x00\x09\x03\x18\xaf\x65\x3e\xa8\x4d\x28\x8c\xb3\x0a\
\x09\xd2\x5a\xdb\xfb\xab\xff\xfb\xbf\x2a\x2e\x5e\xba\xd8\x7e\xf5\
\xd5\x57\xb5\xd1\xba\xcf\x8c\x70\xd4\x78\x23\x31\x4d\x1a\x40\x04\
\x8c\x07\x3d\x5a\x44\xdc\xbd\x27\x24\x18\x00\x34\x65\xe7\x2e\x33\
\xa3\x4c\x84\x74\x34\xa3\xe9\x4c\xa8\x90\x04\x30\x8d\x6c\x7f\x83\
\x65\x64\x92\x79\x1b\xe0\xdb\x52\xba\x37\x98\x8d\x26\x82\x4d\xd3\
\x94\x8c\x31\x52\x4a\x59\x21\xa2\x2a\x40\x8b\xa3\xe3\xb7\x01\xc4\
\xcc\xcc\xbb\xbb\x9d\xb8\x5c\x2e\xef\x11\x61\x00\xd8\x1e\x33\x5e\
\xca\x8e\x0d\x07\x4c\x6d\x08\xae\x83\xe1\x82\x79\x9e\x81\x29\x22\
\x9a\x23\x42\x31\x1b\x8b\x6c\x47\xed\x5a\x1b\xb5\xcd\xc1\x68\xd0\
\x05\x00\x24\x11\xaa\x42\xd0\x03\x3b\xee\x90\x04\xb8\x9d\x99\x28\
\x94\x9d\x07\xdc\xcf\xee\xf7\xa8\xee\xd4\xe8\x7d\x0c\x88\x70\x00\
\xa0\xc7\x4c\xe5\x6c\x30\x22\x25\x42\x08\xa0\x41\x44\x0d\x21\xc8\
\x67\x86\x9b\x09\x29\x74\x88\xd0\x27\xa2\x21\x33\x1b\x64\xa9\xdf\
\x11\x80\x26\x11\x8f\xdb\x7b\x54\xc7\x0f\x8a\x88\xc6\x02\xc3\x80\
\xd1\x03\xe8\x10\x44\x11\x04\x14\x18\x05\x30\x92\xcc\x87\x00\x7d\
\xef\xf9\x3d\x39\xbf\xf8\x17\xff\x22\x3c\xcf\x8b\x96\x96\x96\xae\
\x7c\xe5\xb7\xbf\x82\x7a\xa3\x3e\xc7\xcc\xe5\x54\xeb\x25\x6d\x74\
\x41\x29\x25\xc2\x30\xa4\xad\xad\x2d\x54\xca\x15\x10\x21\x5b\xef\
\x6f\x65\xfb\x08\x80\x90\x55\x0b\x52\x0a\x9e\xeb\x22\x4d\x75\x56\
\xfd\x37\x49\x8e\xc2\x7f\x93\x24\x41\x98\xed\x56\x04\x6d\x0c\xac\
\x31\x47\x5b\x86\x35\x9a\x0d\xac\x6f\x6c\x60\x63\x63\x03\xf5\xfa\
\x21\x94\x52\x08\x72\x01\x48\x10\x04\x65\xf5\x09\x02\xdf\xc7\x60\
\x30\x40\xbf\xdf\x47\x9a\x26\x0f\x1b\xfc\x1a\x99\xa9\xb4\x07\xe0\
\x3a\x01\x5f\xad\xe8\xf4\xf7\x3e\x73\xe7\xa0\x75\x71\xa3\x31\x2f\
\x2d\xff\x08\x13\x7d\x19\xc0\x05\x64\x4b\x7e\x4f\x3a\xf8\x2d\x98\
\x23\x64\x61\xe6\xdf\x01\x89\xaf\x12\x70\x75\xbe\xb9\xd3\xb9\x39\
\x77\x9e\x9f\xd9\x79\xf7\xbe\x41\xf6\x48\x5e\x58\x7f\x27\x1b\x36\
\x67\x2f\x01\xc2\xf2\x57\xc2\x5c\x7a\x42\x99\x43\x62\x7c\x77\x94\
\x40\x74\x0b\x44\x2f\x30\xf0\x22\x7d\xd8\x41\x48\xa3\x10\xc5\x8b\
\x60\xf6\x19\x98\x2d\x0f\x93\xef\xfc\xfc\xfb\xeb\xef\xfe\xe6\xa5\
\x53\x37\x6f\xd5\x82\x3e\x59\x7b\x93\x2c\x7e\x04\xc0\x0b\xa3\xef\
\x97\x1e\xb8\x04\x77\xb4\x7c\xf8\x59\xcb\x36\x37\x1c\x0e\x57\x4b\
\xe5\xf2\x77\xe6\xe6\xe6\xe2\xad\xad\xad\xeb\x3a\xd5\x7d\x29\x55\
\x93\x40\x09\x65\x6b\xd1\x7d\x22\x6a\x66\xc7\xa1\x7c\x36\x98\x8e\
\x4a\x7d\x8f\xed\xd3\x1e\x11\x36\x00\x14\x47\x8e\x35\x02\xb8\x96\
\xa5\x6c\x0b\x1a\xab\x84\x44\xe2\x03\x00\xb7\x00\xce\x33\x73\xc3\
\x5a\xd4\x3b\x9d\x66\x4a\x44\xec\x79\x0a\x36\x73\xb3\x1b\xdf\xf7\
\x43\xc7\x71\xd6\x01\x38\x44\x5c\x22\xe2\x10\xc0\x6e\x18\x0e\x4d\
\xb6\xc7\x24\x99\xec\x9c\xb4\x4e\x44\x29\x33\xef\x32\x63\x05\x40\
\x87\x40\x57\x41\xa4\x00\x3e\x44\x96\x36\x5e\x06\xa8\x74\x4c\xa9\
\x11\x99\xa3\x12\x87\x44\xb4\x9b\xa5\xc1\xdb\x98\x19\x79\x80\x72\
\x44\x34\xff\xc0\xbd\x0d\x99\xf1\x3e\x11\xfc\xec\xde\x39\x07\x20\
\xa0\xf1\xb0\x44\x96\x90\x48\x24\xae\x12\x21\xe4\x2c\x75\x9b\x01\
\x2c\x64\x33\x36\x17\x99\x91\x17\x42\x30\x11\x78\xd4\x5f\x77\x99\
\xb1\x4f\x44\x03\x21\x44\x5f\x08\x11\x32\x5b\x9f\x99\x72\x99\x3f\
\x85\x08\xf7\x4c\x80\xb1\x30\x1a\x12\xd9\x1e\x33\xe9\xff\x7f\x7b\
\x67\x12\x64\xd7\x75\xde\xf7\xdf\x77\xee\xbd\x6f\xea\x01\x3d\xa1\
\x01\x34\x40\x02\x20\x09\x52\x9c\x07\xc9\xb2\x23\xc5\x96\xa3\x38\
\xe5\x6c\x12\x57\x59\xf6\x22\x1e\x52\x25\xbb\xca\x8b\x54\x76\xca\
\x22\x5e\x49\x5e\x78\x93\x8d\x57\x59\xc4\xa9\xd8\x51\x4a\x4e\x39\
\x76\xca\x95\x38\xb2\x2b\x8a\x15\x29\x92\x4b\xa2\x48\x8a\x24\xc4\
\x19\x24\x48\x10\x43\xa3\xe7\xf9\xf5\x1b\xee\x70\xfe\x59\x9c\xfb\
\x1a\x03\x07\x51\x0a\x45\x90\xce\xf9\xb1\x6e\xf5\x7d\x8f\x78\xd3\
\xb9\xf7\x9c\xef\x3b\xdf\x28\x31\xac\x77\x5a\x73\x08\x6f\x1e\x29\
\x54\x83\xef\x99\xd9\x0b\xc0\x2e\xd8\xea\x7b\x4d\x64\x1b\x4d\xa2\
\xfa\x3a\x79\x60\xef\xf0\xe1\xf9\xf3\x77\x0e\xf3\xbf\x6e\xb7\xdb\
\xbb\x38\xfb\x87\x3b\xdb\xdb\xf7\xef\x75\xf7\xc6\x76\xb6\x77\xd2\
\xa5\xa5\x65\x36\x36\xb7\xf0\x88\x95\xb5\x35\xc6\xc7\x9e\x0b\x29\
\xb7\x59\xc6\xc4\xf8\x04\x33\xd3\x41\x3b\x18\x1b\x1b\xab\x27\x7b\
\xe8\x48\x31\xea\x09\x30\xcc\x73\x36\x37\x37\x43\x30\xd0\xde\xde\
\x81\x9b\x70\x77\x6f\x8f\xd5\xb5\x35\x96\x96\x96\xd8\xde\xda\x62\
\xf2\xd0\x24\x47\x8f\x1c\x65\x7a\x7a\x9a\xb1\xce\x18\x69\x92\xd0\
\xeb\xf5\xe8\x76\xbb\xf4\xfb\xfd\xb7\x54\xfa\x0d\x83\xab\x0d\xe0\
\x25\xc1\x93\x32\xfb\xde\x78\x59\x9e\xff\xd9\xd7\xaf\x0e\xee\x5a\
\xde\x79\x34\x91\x7e\x56\xc6\x27\xcd\xb8\x87\x60\x68\xfe\x51\x24\
\x7f\x0e\xbc\x08\xf6\x6d\xb0\x6f\x02\x2f\x78\x97\x6c\x2e\x4d\x1d\
\xd7\xf8\x70\x9f\xa9\xde\xf6\x7b\x5b\x00\x0e\x06\xfd\xfc\x4b\x07\
\xe7\xcf\xde\xfe\x58\x0e\x5c\x01\xdb\xc0\x58\x06\xbf\x04\x7e\x57\
\xf0\x90\x05\x69\x3e\x47\x90\x52\x59\x7d\x43\xcc\x00\x93\xde\x98\
\x30\xec\xd0\xd8\x30\xef\xfc\xf2\xd9\xf3\xdf\xdf\x9a\x68\x5c\xfd\
\xeb\x8f\x2d\x6c\xad\xb4\x5b\x7d\x6f\xb6\x57\x4b\xed\x93\x04\x6d\
\x60\xf4\x7a\xab\x27\xf0\x29\x60\xc6\xcb\xb7\x92\x24\x49\xcf\x9c\
\xb9\xfb\xb5\xa9\xc9\xe9\xe5\x9d\x9d\x9d\xbd\xdd\xbd\xdd\x6e\xaf\
\xd7\x2b\xaa\xca\x7b\x49\x3d\xd0\x86\x99\xda\xdc\x58\x9e\x7c\xb4\
\x67\xf7\xc1\xe8\xe6\x56\x82\xd4\x52\x4f\xd2\xb8\xa4\x16\x58\x5a\
\xdf\x5c\x5e\xd2\xbe\x73\xc9\x4a\x92\x24\xfd\xb2\x2c\x27\x40\x55\
\x55\x55\x7b\x50\x21\xc1\x60\x70\xad\xc0\x4d\x9e\xe7\xa5\x99\x2d\
\x3b\xe7\x06\xce\xa9\xe1\x1c\xa5\xe4\xd7\x77\x76\xf6\xab\xdf\xff\
\xfd\x7f\xc6\x1f\xfc\xc1\x37\xe4\x9c\x2b\x17\x16\x8e\x6d\x76\xbb\
\xdd\x9d\xb5\xb5\xb5\x95\xb2\x2c\x97\xcc\x2c\x4f\x5c\x7a\xd9\xcc\
\xac\xaa\xaa\x4d\xf0\x87\x80\xf1\xa0\x86\x9b\x81\x37\xd0\xd0\xcc\
\xd6\xc0\x6d\x3b\x97\x6c\x38\x57\x99\xf7\xbe\x0c\x46\x39\xae\x15\
\x95\xbb\xf6\xdb\x36\x93\x24\xbd\x2a\x95\x63\x92\x46\x59\x62\x19\
\x98\x33\x33\xab\xb7\x2e\x7d\x70\xeb\x66\xb6\xe9\x7d\xb5\x27\xf9\
\xcc\x39\x97\x87\x71\x57\x27\xb4\xa5\x0e\xff\x3a\xd8\x3b\x58\x31\
\x73\x5b\xce\x25\x79\x92\x24\x3e\x49\x92\xaa\xaa\xca\x96\x54\x49\
\xb2\xa9\x9b\x6e\xcc\xba\x0a\xa6\x06\x66\x7e\x53\x32\x93\xdc\xbe\
\x19\xe3\x40\xc7\x30\x87\xa8\x0c\x0d\x31\x75\x9d\x73\x2b\xad\xd6\
\xf8\x66\xa7\x33\x51\xf4\xfb\x7b\x00\x6c\x6f\xbf\x27\x6f\xe0\xc8\
\x32\x2f\xa0\x7a\xf4\x91\x47\x36\x1f\x7d\xe4\x91\xef\x3f\xfe\xbd\
\xc7\xf7\x87\xf9\x30\x91\xf7\xfd\xa2\x28\x8e\x37\x1a\x8d\xd9\x76\
\xbb\x3d\x5e\x79\xdf\x5c\x5f\x5f\xb7\xdd\xdd\x5d\x73\x16\xca\x71\
\x35\x9b\x4d\xa6\x0e\x1d\xe2\xf0\xdc\x1c\xbb\xbb\xbb\x4c\x4e\x4e\
\xb2\xb7\xb7\x47\xbf\x3f\xa0\x3b\x3e\x46\x7b\xaf\x8d\x01\xfb\x75\
\xbb\xf2\x8d\xcd\x4d\x76\xb6\xb7\xeb\xd6\xe1\x15\x79\x5e\x30\x18\
\x0c\xe8\xf7\xfb\x24\x69\x42\xa3\xd1\xa0\xd1\xc8\x68\x37\x43\x62\
\x4f\xbf\xdf\x67\x7f\x3f\x18\x1e\xcb\x6b\x2d\xe2\x47\x61\xbd\x5d\
\x60\x1d\xec\x15\xf0\xdf\x6f\x95\xd5\x53\x1f\x5f\xdc\x38\xf7\xe9\
\x37\x57\x9a\xc0\x7d\x04\x6b\xff\x3f\xc0\xec\x76\xde\xbd\xfb\xef\
\xf5\x8c\xde\x7b\x17\xb8\x04\xf6\x2d\x33\xfb\x1b\xb0\x17\x4c\x7e\
\x95\xca\xfb\x87\x2f\x9d\x7d\xcb\x8b\xde\x6b\x15\xd1\xeb\x87\x7e\
\xf4\x77\x08\x2c\x7a\xa3\x2b\xb8\xe0\xc4\x5d\x06\x8f\x12\xbc\x04\
\xf7\x13\x54\xca\x7a\x11\xb0\x04\x38\x5e\xe7\x2d\x2f\x38\x55\xf7\
\xcf\xee\x0d\xbe\xf5\x8b\xaf\x2d\x3f\xff\xf5\x3b\x8f\x3e\xf1\xe6\
\xa1\xf1\xf3\x89\x38\xe3\xbc\x1e\x06\x7d\x12\x71\x86\x20\x9d\x47\
\x9e\x06\x47\x48\x19\x7e\xcc\xb0\x99\x89\xf1\x89\x17\x3b\xad\xce\
\xb3\xbe\xf2\x4f\xf6\x06\xbd\xcd\xf5\xad\xf5\xea\xdc\x4b\xaf\xf9\
\xad\xad\xad\x62\x72\x72\x6c\xc7\x8c\x82\xb7\x96\x48\x1e\x49\xc9\
\x41\x70\xd3\xd1\x0b\x0b\x06\x19\xc1\x20\x65\xa3\xea\x53\xf5\x76\
\xa0\x97\x24\x69\x59\x55\xbe\x2b\x79\xcc\x18\xf2\x56\x31\x25\xa0\
\x94\x42\x51\xd3\xf0\x3d\xe5\xeb\xcf\xd7\xcf\xff\xfc\x69\x7e\xf7\
\x77\x57\x00\xd8\xdf\xef\x86\xf2\x67\x61\x8b\x90\x23\xbc\xe1\x7a\
\xce\x12\xf3\xe6\x73\xc9\x36\x09\x45\x51\xdc\x8d\xef\x6f\xb9\x99\
\xe5\xce\x25\xb9\x73\x15\x12\x17\x25\x2d\x71\x63\x99\x6e\x0b\xdf\
\x9b\xbe\x73\xae\x57\x55\x36\x00\xf5\xea\xeb\xeb\xae\xfb\x6d\xd4\
\xdf\x61\x60\x96\x0c\x1b\x8d\x46\x59\x14\x83\x8a\xe0\x87\xdf\x1a\
\xfd\xfb\xeb\xc6\xca\x9b\x91\x4b\x0c\xcd\x9c\x77\xce\x29\x04\xbe\
\xd0\x0f\xf6\x08\x35\x78\x9b\xe0\xb0\x7a\x5b\xd5\xaf\x87\x6b\xa7\
\x1e\xe3\xac\x5e\x86\x35\xba\x59\xcd\xe8\x3f\xf6\xd8\xa7\xf3\xaf\
\x7e\xf5\xcf\xf8\xa5\x5f\xfa\x35\x00\x16\x17\xff\xf3\x8f\x7e\x4b\
\x86\xad\xd1\x6e\x51\x14\x2f\x67\x59\xd6\x3d\x76\xec\xd8\xf7\x4f\
\x9e\x3c\x79\x66\x67\x67\xe7\xa1\xd5\xd5\xb5\x9f\xda\xdc\xda\x3c\
\xb1\xb5\xbd\xd5\x42\xb2\x56\xab\x15\xea\xee\xd5\x49\x51\xbb\xbb\
\x61\xd2\x4b\x3a\x58\x00\xb2\x2c\xa5\xd5\x6a\x85\x2c\xc1\xc4\x51\
\x94\x25\x45\x51\x90\x65\x19\x2e\x71\xc8\x0b\xe7\xfa\x98\xc1\xfc\
\xe1\xc3\xcc\xcd\xcd\x32\x3e\x36\x4e\xe2\x12\xfa\xfd\x7e\xd0\x1c\
\x6a\x8b\xff\x4d\x92\x7f\x08\xac\x82\xbd\x80\xd9\x77\x2a\x67\xcf\
\xa5\xde\x5f\xf9\xe4\x95\xb5\xf2\xb1\x2b\x9b\xa7\x9d\xd7\x27\xbc\
\xd9\xcf\x02\xf7\x04\x5b\xcd\x7b\x4b\xf2\xa9\x2f\x6d\x8e\x58\x33\
\xf8\xbe\x99\xfd\x1f\x42\x9c\xc8\xf9\xfa\xba\xbe\xe3\x16\xeb\x47\
\x8c\x24\xbc\x8e\x7f\x15\xda\xff\x0d\xfe\xdd\x03\x34\xfb\x29\x4f\
\x9d\xe8\xce\x36\xbc\x3d\x08\x3c\x0a\x7a\x0c\xb8\x8b\xd0\x21\x78\
\xba\xfe\x21\x8d\xfa\x8b\x0c\x10\x8b\x98\x7d\xcb\x8c\xbf\x6d\x96\
\xd5\xcb\x6b\xe3\xed\xf5\x6f\xde\x75\xbc\x71\x61\x6a\xec\x64\xe1\
\xec\xa7\x05\x0f\x1a\x3a\x45\xc8\x28\x9c\x22\x68\x04\xa3\x1b\xb3\
\x34\xec\x82\x61\x3f\x00\xbe\x8b\xf1\x34\x70\xd1\x82\x46\xd2\x1f\
\x95\xf4\xfa\xf2\x7f\xfa\xf2\x8f\xfd\xd3\x22\x1f\x2d\xde\xa6\x82\
\xee\x24\x70\xea\x99\x1f\x3c\xfb\xc8\x2b\xaf\x9c\xfb\xcc\xa5\x4b\
\x97\x1e\xba\x7a\x75\xf1\x64\xaf\xdf\x9b\x12\xa4\x06\x07\x91\x78\
\xde\x7b\x8a\x22\x48\xf3\xbd\x6e\x97\xe1\x60\x48\xe2\x1c\x8d\x66\
\x93\x4e\xa7\x4d\xab\xd5\x0a\x13\xbf\x36\x06\x86\xbe\x04\x21\xa5\
\x31\x49\x12\xa6\xa7\xa6\x99\x9d\x99\xc1\x39\xc7\xa0\x3f\x60\x7d\
\x7d\x9d\xad\xad\xad\xd1\xc4\x1f\x05\xe0\xf4\x09\x0b\xff\xa2\x8c\
\xd7\x9c\x78\xe6\x50\x51\x3d\xf1\x89\x2b\xeb\x6b\x1f\xbb\xba\x3e\
\xd6\x2e\xca\x53\xde\xec\x31\x0b\x9e\xaf\x4f\x84\x6d\xe0\x7b\x26\
\x57\xc8\x14\x5c\x44\xbc\x02\x7c\x2b\x71\xf6\xcd\x34\xb1\xcb\x95\
\x57\x0f\xf0\x0f\xbe\x79\xf6\x1d\x5f\xfc\xe3\x2f\x00\x35\x67\x6f\
\x7f\x64\x74\x9a\x01\x13\x98\x66\x81\x63\x88\x7b\x40\x8f\x82\x3d\
\x00\x9c\x01\xa6\x05\x8d\xfa\x03\xfb\xc0\x1a\xe8\x82\xf3\x3c\x27\
\xec\xec\x5e\xa7\xf9\xfc\xe3\x77\x1c\x5b\x7f\xe9\xf0\x64\x67\x90\
\x24\xc7\x52\xf9\xbb\x91\x1e\xf3\xd2\x4f\x83\x4e\x22\xc6\xcc\x2c\
\xa9\x07\x75\x40\x58\xd9\xae\x22\x5e\x36\xb3\x6f\x99\xd9\x93\xc0\
\xa5\xdf\xfc\xc2\x6f\xee\xfc\xd9\xbf\xfd\x33\xce\x9d\x3d\x07\xc0\
\xb7\x9f\xfc\xf6\xfb\x7b\xb7\x45\x3e\xb4\x5c\xb7\x10\x24\x40\xfb\
\xd5\xd7\x5e\x3b\x7c\x65\xf1\xca\x1d\x2b\x2b\x2b\x3f\xb3\xb5\xb9\
\xf9\x0b\x97\xaf\x5e\xb9\xe7\xf2\xe5\xcb\xd3\x65\x59\x36\x1b\x59\
\xc3\x9c\x73\x08\xd5\xed\xba\x4a\xfa\xfd\x81\xca\xa2\x50\x96\x65\
\x56\xd7\xe6\xb3\x24\x71\xc1\xb0\x57\x2b\x3a\x95\x0f\x86\xc0\xb9\
\xd9\x59\x8e\x1d\x39\x86\xbc\x67\x77\x6f\x97\xe1\x60\xc0\x70\x98\
\x1f\x48\xfe\xfa\xbb\x94\xc0\xbe\x61\x6f\x0a\x9e\x90\xf1\x8c\xcc\
\xce\xcd\xf7\xfa\x6b\x7f\xef\xe2\xaa\xbf\x63\x75\xf7\xce\xb4\xf2\
\x9f\x32\xf4\x80\x8c\xd3\x06\xc7\xc0\xa6\x78\xcf\xfd\x35\xe4\xc1\
\x56\x64\xbc\x24\xf1\x04\xd2\x77\x90\xce\xa5\x89\x5b\x69\x35\xb3\
\x5e\x5e\x84\xa2\x94\x0f\x5c\x78\xf6\x1d\xdf\xe1\xff\x79\x01\x18\
\x71\xf6\xae\x07\xc3\x49\x0b\x63\x48\x93\xdc\x6e\x43\xdc\x4f\xe8\
\x46\x7a\xaf\x82\x45\x7d\xce\x82\xc1\xe8\x50\xad\x3e\xf6\x91\xbd\
\x61\xf0\xbc\xc1\x13\xce\x78\xd1\x3b\x77\xf5\xa5\x85\xd9\xc1\x77\
\x4f\x1e\x19\xdb\x68\x26\x77\xcb\xfb\x9f\x46\x3a\x63\xe2\x98\x61\
\x47\x31\x66\x08\x1a\x81\x11\xe2\xa5\x57\x30\x1e\x07\xbe\x07\x9c\
\x53\xc8\x73\x5e\xa6\xc9\x2e\x8e\x92\xba\xda\xd2\x9f\xfc\x87\x3f\
\xf9\x89\xdf\x80\x91\x0f\x07\x79\x5d\x06\x3d\x6b\x34\x52\x60\xfc\
\xc9\x27\x9f\xbc\x6f\x79\x65\xf9\x33\xaf\x9c\x3b\x77\xef\xcb\xaf\
\xbe\x72\xb4\x2a\xcb\xe9\x76\xbb\x3d\x96\xa5\x59\xc7\x39\xd7\xc4\
\x59\xea\x2b\x9f\x0e\x06\x83\xac\x2c\xcb\x2c\x4b\xb3\x24\xcb\x32\
\xe7\x12\xb3\x03\xa9\xef\x75\xa0\x2d\x94\x55\xc9\xcc\xf4\x0c\xf3\
\x87\x0f\xd3\xdb\x0f\x36\x82\x7e\xaf\x4f\x59\x95\x02\x2a\x33\xeb\
\x13\x4a\x9e\x2f\x63\xb6\x04\xf6\xaa\x49\x4f\x2d\xec\xf5\x2f\xfc\
\xfd\x37\x57\xf3\x53\x9b\x3b\x13\x92\x4e\x7b\xf8\x84\xb0\x4f\x63\
\xdc\x09\x9a\xb2\xb0\x55\xfe\x61\x8c\xb4\x8a\x1d\xd0\x22\xd8\x2b\
\xde\xec\x19\xc1\x53\x55\x55\xfc\xe0\xf2\xca\x8b\x9b\x47\x66\xee\
\xc0\xcc\xf4\xe9\xe5\xd7\x7f\xe8\x9b\xfd\x18\x36\x80\x77\xa0\xde\
\x09\x56\xe3\x4e\x49\xee\x73\x27\x7f\x05\xb1\xed\x71\x2f\x03\x47\
\x31\x4e\x02\xf7\x80\x3e\x0e\x3c\x80\x98\x01\x32\x8c\xd3\x0a\xda\
\xc1\xdd\x82\xf3\xc8\x9f\x3d\xb3\xbc\xf1\x5c\x6b\x58\xbc\xf2\x3f\
\xcf\x1c\x7f\x7c\x3f\xe5\x9c\x37\x77\xdc\x8c\x33\x88\x8f\x23\x3e\
\x8e\x71\x9c\x60\x1c\xc9\x30\xe6\x11\x9f\x11\x3a\x63\x66\xaf\x1b\
\x76\x16\xe3\x6f\x55\xe9\x95\xaa\xa8\xb6\x6f\x3f\x7d\x7b\x9e\xe7\
\x39\x9f\xfa\xd4\xa7\x00\xf8\xee\x77\xbf\xfb\x81\xdc\x84\x91\x5b\
\x47\xd6\x38\x08\x52\xad\x80\x6e\xb3\xd9\x78\x69\xac\x33\xb6\x72\
\xe2\xf8\xf1\xf9\xf1\xf1\xf1\xa3\x95\xaf\x8e\x9b\xd9\x71\x33\x3b\
\x2e\x31\xef\xe5\x27\x8b\x3c\x9f\xe8\xee\x75\x67\x86\xc3\xe1\xa4\
\x73\xae\x99\x65\x99\x6b\x34\x43\x6e\x81\x24\xaa\xb2\xa2\xc8\x73\
\x86\xf9\x90\xe1\x30\xa7\x2a\x4b\x16\xaf\x2c\x92\xe7\xf9\x81\x61\
\xb0\xfe\xbc\x3d\xe0\x32\xc6\x53\x84\xe8\xbb\xf3\x4d\xaf\xa5\x85\
\xdd\xee\xee\xcf\x9d\x5f\x9e\x9d\xdd\x1f\xfe\x8c\x97\x3d\xa2\x10\
\xd4\x73\xb2\xf6\x44\xbd\x7b\xeb\xb5\x9a\x5a\xbf\x29\x83\x5b\x95\
\x97\xcc\xec\xeb\x60\x4f\xcb\xbb\xf3\xa5\x6c\x45\xbe\xda\xff\x5c\
\x81\xbe\xad\x0a\x7b\x8f\x45\xb6\xdf\x37\x0d\xe0\x66\x9e\x39\xfe\
\x70\x38\xf1\x24\x38\xda\xe6\x98\xc7\x38\x65\xe8\x7e\x42\x8a\xf1\
\x71\xc4\x3c\x66\xf3\x04\x8b\x7d\x93\x60\xc1\x7c\xcd\xe0\x79\x93\
\x9e\x31\xf1\xc6\x20\x4d\xd6\xcf\x9e\x38\x5c\x3c\x79\xfb\x7c\x67\
\x2f\x4b\xee\x72\xf2\x0f\x81\x4e\x05\x8d\x80\x79\x60\x56\x68\x06\
\xe1\xcc\x6c\x03\x78\x4d\xa6\xa7\x80\x17\x4c\x76\xc9\xb0\xab\xce\
\xdc\x6a\x92\x24\x5d\xa1\x83\xfe\x03\x7f\xfc\x1f\xff\xf8\x27\xf5\
\xd3\x23\x1f\x32\xd6\xd7\xd6\x01\x98\x9d\x9b\xed\xac\x2c\x2d\xcf\
\x3d\x7d\xf6\xe9\xd3\x57\x97\x96\xee\xed\xf7\x07\xf7\x14\x45\x71\
\xba\x2c\xcb\x23\x79\x9e\x4f\x0f\x07\x83\xe9\xa2\x28\x26\xcc\x2c\
\x4b\x92\x24\xc9\x1a\x0d\x4b\x12\x87\x14\x72\xf5\x8b\xa2\x08\x2d\
\xc8\xea\x3e\x84\xbd\xe0\xde\x1b\x00\xbb\x48\x1b\x32\x56\x84\x2d\
\x62\xf6\x86\x19\xcf\xcd\xf5\x86\x17\x3e\x79\x69\x63\x70\xdf\xea\
\x76\xab\x51\x96\x87\x05\x1f\xf3\x66\x9f\x14\x7a\x00\x71\x12\x7b\
\xd7\xe4\xba\x9b\x19\xd4\xae\xf7\x45\xc4\x45\xe0\xac\x61\xdf\x71\
\xe6\x5e\x05\x36\x15\x3c\x00\x3c\x7c\xe9\x99\x1f\x69\x6c\x7e\x62\
\x0b\xc0\xb3\xf5\x02\x50\x77\xdb\x73\x38\x52\xa0\x85\x18\x03\x66\
\xcc\x71\x12\x38\x83\xb8\x5f\xe2\x63\xc0\x1d\xc0\x54\x08\x0f\x65\
\x07\xb1\x44\x28\x82\xf0\x6c\x91\x26\xcf\x5d\x9e\x3b\xf4\xda\x77\
\x4e\x1d\x19\x6c\x65\xc9\x78\x9e\xe8\x18\xe2\x0e\xc3\xee\x31\xec\
\x3e\xa1\xfb\x84\x8e\xd7\x2a\xd4\x50\x68\x17\xb8\x62\xd8\x2b\x86\
\x9d\x35\xb3\xa7\xcd\xec\x75\x60\x03\xa3\xf0\x79\x88\xf2\xb2\xc4\
\xb0\x86\xa1\x22\xac\xad\x5f\xfe\x72\x34\x1c\x7e\x14\xf9\xe2\x17\
\xbf\x08\xc0\x43\x0f\x3d\x44\xb3\xd9\xe4\x2f\xff\xf2\x2f\x19\x0e\
\x87\x2c\x2e\x2e\xf2\xf5\xaf\x7f\x9d\xbf\xfa\xab\xaf\xf2\x17\x7f\
\xf1\xdf\xec\xc4\xf1\x85\xb1\xa2\x2c\x0f\x77\xbb\xdd\xbb\xf3\x22\
\x7f\xc8\x7b\xff\x80\xa4\x7b\x24\x1d\xaf\xf3\x3d\x1a\x75\x34\xa8\
\x61\x66\xee\xba\xc0\x9d\x51\x3e\xc0\xe8\xf0\x21\x33\xb0\x14\x2c\
\x21\xbd\x2a\xf4\x02\xe8\x79\x61\xaf\xb6\x8a\x6a\xe9\xe4\x56\x6f\
\xf8\xd8\xe2\xe6\xe4\x7c\xb7\x7f\x6f\xc3\xfb\x87\x1c\x7a\x08\xb8\
\x53\x68\x1e\x0e\xe2\x53\xde\x8b\xca\xef\x85\x86\xc0\x12\xe6\x9e\
\x06\x9e\x42\x7a\xc6\xa4\x37\x0c\xb7\x69\xe6\x7a\x82\x83\xd2\xd1\
\x0f\x5f\x7a\xf6\x3d\xbc\xe5\x35\x7e\x62\x0b\xc0\xdb\xf1\x83\xd3\
\x8f\x8c\x4e\x53\xc3\x66\xbd\xb4\x20\xaf\x53\x12\xa7\xea\x40\xa0\
\xdb\xcc\x38\x02\x1c\x22\x44\xa0\xf5\x30\x16\x0d\xde\x70\xd2\xb9\
\xd4\xfb\x37\xbc\xd9\xca\xb9\xc3\x93\xc3\x67\x8e\xcf\x34\xae\x4c\
\x4d\x4c\xf7\xb3\x74\xc1\xbc\xee\x70\xd2\x69\xc3\x8e\x1b\xcc\x13\
\xb2\xf2\x1c\xb0\x65\xd8\x15\xe0\xd5\xfa\x78\x03\x58\x34\x6f\x6b\
\x26\xdb\x21\x44\xbd\xe9\xcb\x7f\x12\x27\xfe\xdf\x05\x7e\xe3\xd7\
\x7f\x03\x00\x21\x67\x58\xd3\x25\xae\x63\x66\x93\x5e\x9a\xf2\xde\
\xcf\xd5\x61\xc7\x47\x10\x27\x80\x93\x42\xb7\x11\x3c\x4d\x33\x04\
\x4f\x95\xdd\x14\x68\x74\x3d\x21\xca\x34\x34\xb2\xdd\xc2\xdc\x9a\
\x39\xb7\xec\xcd\xde\x14\x7a\xb3\x9d\x97\x57\x4e\xec\x74\xd7\x1f\
\x5d\xdc\x18\xdc\xbd\xb6\xdb\x02\x16\x2a\xe7\xee\x14\x76\x0f\x70\
\x4f\xbd\xcf\x9f\xe3\xbd\xa5\xf0\x7a\x82\xcb\x70\x13\xb4\x04\x5c\
\x92\x71\x1e\x73\x2f\x82\xbd\x6c\xe8\xf5\x3b\xed\xe2\xd6\x44\xb5\
\xa9\x73\xee\x5e\x00\xee\x79\xf3\x95\x1f\x6b\xcc\x3e\xb0\x05\xe0\
\x89\xf9\x4f\x02\x70\x65\xf5\x28\xa7\x8f\x2f\x5a\x9a\xf9\xa4\x94\
\xcf\x06\x95\xcf\x12\x68\x37\x9c\x26\x1c\x6e\x41\xb8\x7b\x81\x33\
\xe0\xef\x20\xa4\xac\xce\x12\x12\x90\xf6\x80\xd7\xc0\xce\x96\xce\
\x5e\xe9\x35\x93\x8b\x4b\x87\xda\xab\xcf\xdc\x36\xd3\xdf\x6c\x75\
\x1a\xa5\xa5\xf3\x95\x73\x1f\x03\xee\x23\x64\xb3\xdd\xa6\x70\xc1\
\xc7\xea\x01\x5d\x36\xec\x25\xe0\x79\xf3\xf6\x3c\xf0\x3a\x09\x2b\
\x72\xf4\x14\xe2\xee\x7d\x62\x09\xce\x9c\xd2\xda\x0f\x3c\x18\x0c\
\x00\xf8\xc3\x3f\xfc\xc3\x0f\x6a\x98\x22\xef\xc0\xef\xfc\xce\xef\
\x00\x90\x65\x19\xc3\xe1\x70\xd4\x5a\xdb\x42\x68\xa1\xac\xaa\x2a\
\x5a\xcd\x96\x8d\x75\xc6\x5c\xaf\xd7\xeb\x14\x79\x31\x07\x1c\x73\
\xce\xdd\x2e\xe9\x2e\x2f\x7d\x0c\x74\x9a\x50\xc4\x36\xd8\x8f\xea\
\x18\x10\x82\x24\xbe\x29\xfe\xe2\xe0\xaf\x84\x2a\x60\xd7\xb0\x65\
\xd0\x65\xa1\xd7\x9d\xd9\x8b\x0d\x4b\x5e\x6a\x98\xbb\x7a\x64\x67\
\xbf\xff\xd0\xa5\xb5\xb1\xc3\xbb\xfb\x47\xdb\x45\x79\x26\x91\xbf\
\x1f\xf1\x30\x70\xa7\x85\xcf\x6a\xd5\x9f\x75\xf3\xe7\xf0\x36\x9f\
\x59\x02\xfb\x48\xab\xc0\xcb\x86\x9e\x55\x62\x4f\x2a\xb5\x57\x90\
\xed\x50\x59\xdf\xa4\x22\x53\x5e\x99\xa4\xaa\xb6\x1b\x3e\x78\xe9\
\x85\x1f\x6b\x5c\x3f\x50\x0d\xe0\x66\x5e\xbf\xe3\x34\x00\x9d\xb4\
\x6b\x02\xdb\x18\x1e\x9d\xac\x94\x2e\x80\x8e\x63\x5a\xa8\x2f\xd6\
\xd1\x90\x52\xab\x69\xb0\x0a\xb1\x63\xb0\xe5\xa4\xf5\x04\xad\x3b\
\xb4\xea\xc4\xe2\x95\x43\xe3\xbb\x8f\x9f\x3c\xda\xb9\x34\x35\x36\
\xb5\xdf\x48\x67\x2b\x98\x33\xf9\x23\x86\x8e\x99\x58\x08\x61\xc9\
\x56\x22\xb6\x0c\x96\x65\x6c\x60\xac\x01\x57\x40\x57\x9c\xb9\xd5\
\xc4\x25\xdb\xce\x5c\x5f\x52\x01\xf0\x47\x7f\xfc\x47\xb7\x72\x78\
\x22\x6f\xc3\x6f\x7d\xfe\xb7\x00\x30\x2c\xf1\xf8\x46\x49\xd9\x92\
\x34\x26\xaf\x69\xc4\xac\x05\x9b\xd2\x3c\x62\x0e\x98\x33\xb3\xc3\
\x88\x05\xc1\x42\x2d\x81\xc7\x78\x77\xd5\x7b\xd4\x34\x63\x0f\xd8\
\x92\xb1\x2a\x58\xf4\x70\x55\xe6\x96\x13\x69\xbd\x55\x14\x9b\x0b\
\xfb\xfd\x8d\x9f\x5a\xda\xe9\xde\xb9\xb6\xdb\x49\xf3\xe2\x68\x85\
\x9d\xa8\x9c\x9d\xf4\xc6\x69\x8c\x93\x82\x53\x16\xf2\x38\xde\x0b\
\x05\x21\x0d\x78\x1d\x58\x04\x2e\x80\x2e\x98\x14\xfe\xa6\xf6\x5a\
\xf1\xc6\xcc\x6a\x66\xab\xaa\xfe\x26\x84\x08\x3c\xfa\x8f\x9e\x78\
\x5f\xc6\xf3\x96\x2e\x00\xfa\x37\xff\x0b\xfe\xeb\x1f\xf0\x8d\xab\
\xaf\x32\x9f\x64\x26\x35\x9c\x70\x49\x95\x58\xaa\x34\xe4\xcc\x9b\
\xd7\x98\x79\x1d\x47\x3a\x83\xe7\x2e\x64\xa7\xea\xd8\xfd\xb6\x19\
\x9e\xe0\x6e\x79\xce\x3b\x7b\xb1\x9f\xa6\x57\x37\x3a\xcd\xad\xc5\
\xa9\xb1\xde\xa5\x43\x63\xd5\x76\xe6\xd2\x7e\xa3\x31\xef\xd3\xe4\
\x8c\x87\x7b\x04\x77\x13\x0c\x87\x63\x98\x65\x75\x57\xe2\x57\x41\
\xcf\x99\xd9\x79\x87\xbb\x64\x66\x6b\x32\xed\xc9\xab\x90\x97\xa7\
\xae\x23\x50\xef\xfd\x6e\xd0\x0b\xbf\xf2\x95\xaf\xdc\xca\xe1\xfb\
\x3b\xc1\xaf\xfe\xea\xaf\x02\x1c\xa4\xc9\xd6\x65\xb6\xcc\x39\x47\
\xe2\x12\xbc\xf3\x16\x92\x38\xcd\x4c\xe6\x30\x12\x0b\xad\xb0\xc6\
\x84\x26\x85\xa6\x85\xe6\x25\x9d\x44\xdc\x45\x48\x9c\xb9\xcd\x42\
\x30\x4d\x9b\x20\xe1\x47\xc7\x28\x33\x73\xc4\x28\x2a\x71\x14\xa5\
\x39\x00\xba\x88\x1d\x60\xc5\x8c\x0b\xa0\x73\x89\xd7\x0b\xad\xdc\
\x5f\x9e\xdd\x2f\xf6\x4f\x6d\xed\xd9\xb1\x6e\x77\x6c\x7a\x90\xcf\
\xb4\xca\xea\x44\x52\xe9\x41\xa4\x47\x80\x93\x82\xc3\xa3\x54\x67\
\x6e\x8c\xaa\xe4\xa6\xcf\x1c\x7d\x6e\x85\x18\x02\x3b\x32\x96\x81\
\x97\x65\xf6\xac\x19\x67\x2d\xf1\xaf\x25\xbe\xda\x73\xb9\x2f\x70\
\x14\xf9\x5c\xa3\xea\xdf\xd6\x56\xfb\x52\xe8\x19\xf0\xe8\xd9\x1f\
\xbc\x2f\xe3\x7f\x4b\x17\x80\x77\xe2\x7f\xff\xc2\x67\x01\xf8\xec\
\xd7\xbf\xc1\x37\x7e\xe1\xb3\x6e\xea\xc2\xd6\xa4\x2b\xfd\x11\xbc\
\x1d\x33\xd9\x31\x85\x05\x60\x12\xd4\xac\xfb\x44\xf6\x4d\xf4\x0d\
\x79\x93\x0a\xab\x3b\xcf\x56\xb0\x72\x61\x76\x62\xf8\xfc\xc2\x6c\
\xeb\xea\x44\x67\x7a\x3f\x4d\xe7\x4b\xe7\x66\x64\x4c\x12\x92\x81\
\xda\x48\xde\x42\x46\x61\x69\x66\x83\x10\x55\xa5\x4d\xc3\x96\x10\
\x2b\x86\xad\x63\xec\xe1\x19\x96\xfb\x65\x65\x66\xb2\x2c\x0c\xdb\
\x57\xfe\x4b\x5c\x00\xde\x2f\x7e\xf9\x9f\xfc\x32\x00\xc3\xc1\x90\
\xb4\x91\xda\xe4\xa1\xc9\x24\x6d\xa6\x69\x65\x55\xd3\xcb\x8f\x39\
\xef\xa6\x09\x2e\xbb\xc3\x92\x0e\xd7\xd5\x84\x26\x09\xd7\x72\xba\
\x96\xf8\xf3\x04\xad\x71\x8a\xb7\x86\x82\x5f\x4f\xc5\xb5\x98\xfc\
\x6d\x82\x46\xb8\xa4\x10\x54\xb3\x2e\xd8\x36\xb1\x95\x55\x7e\x6b\
\x66\x90\x6f\xdd\xb7\xb6\xb3\x77\xff\xd2\x56\x63\xb2\x9f\x1f\x73\
\xf2\x47\x64\xcc\x7b\xb3\x23\x3e\x24\x63\x9d\x04\x6e\x43\x4c\x11\
\x52\xa6\xdf\x6d\x4e\x8d\x7c\xf8\x5d\xc1\x9a\xc1\x15\x64\x6f\x82\
\xae\x06\x0f\x02\x97\x30\xbb\x28\x58\xb4\xa0\x0d\xe8\xb1\x8b\x67\
\x7f\xa2\xe3\xfe\xa1\x5a\x00\xbe\xf9\x99\xcf\x00\x90\x8f\x65\x64\
\xfd\x92\xd6\xf6\x90\x46\x2f\x37\x2b\x0a\x73\x95\x73\xcd\xbc\xe3\
\xcc\x27\xc9\x20\xc9\x5b\x95\x15\x9d\xc4\xaa\x8e\x33\x4d\xcb\xec\
\x36\xb0\x93\xe0\x4f\x00\x93\x32\x2b\x80\x55\x99\xbd\xea\x9d\x5d\
\x2a\x32\x5b\xef\x36\x1b\xdd\x8d\xd6\x58\xb9\x38\x36\xee\x56\x3a\
\xcd\xe6\x6e\x3b\x69\x0f\x32\x9b\xae\x9c\xdd\x2e\xb3\x3b\x30\x4e\
\x00\xd3\xa1\xc4\x3f\x5b\x60\xe7\x4d\xbc\x8e\xd9\x25\x83\x75\x49\
\x3d\xa1\x21\x46\x61\xce\xca\xc4\x12\x9f\xb8\xc4\x9b\x99\x8a\xa2\
\xd0\x28\xe9\x63\xd4\xd9\xf5\xcf\xff\xfc\xcf\x6f\xf5\x70\xde\x32\
\x3e\xf7\xb9\xcf\xdd\xf0\x78\x64\x58\xf3\xde\x93\x24\x89\x5d\x27\
\xe5\x47\x12\xd9\x09\x39\xa1\x14\x91\x01\x2d\xc3\x9a\xce\xb9\xb6\
\x4c\x13\x42\x73\x86\xdd\x66\xb2\x3b\xbc\xfc\x9d\x92\x6e\x1f\x95\
\x13\x23\x48\xf9\x06\x37\x4a\xf8\xeb\x6a\x44\x1c\xd4\x70\xac\x08\
\x0b\xfd\x10\x18\x48\xea\x1a\xb6\x6e\xd8\x15\x33\xbd\x6a\xe8\xb5\
\x66\xe9\x17\x27\xfb\xf9\xe6\x4c\xaf\x3f\x3c\xba\xdb\xd7\x91\xbd\
\x41\x3a\x35\x2c\x26\x9b\xde\x1f\x49\xbc\xbf\xdb\xbc\x1e\x05\xee\
\x04\x1d\x01\x0e\x09\x6b\x03\x99\xbd\xf5\x73\xb9\xe9\xf3\x2b\xa1\
\x02\x18\x18\xb6\x07\x2c\x0b\x3b\x0f\x3c\xe7\xb0\x67\x4d\x5c\xf2\
\xde\x6f\x0b\xf5\x94\xb8\x9c\x8c\xca\x35\xbd\x0e\x8d\xef\x68\xe1\
\xd9\xab\x34\xae\xab\x22\xf4\x7e\x4f\xd8\x0f\xd5\x02\xf0\xc3\xf8\
\x1f\xd3\xff\x18\x80\xe5\xfe\xbc\xdd\x31\xfe\xa6\x9b\xca\x76\xb2\
\x34\xf1\x1d\xb9\x64\x16\x34\x6b\x68\x5a\x30\xae\xd0\x2b\xbd\x04\
\xeb\x3a\xb4\x9f\x4a\xc3\x54\x78\x27\x92\x02\x47\x2f\x4d\xfd\x66\
\x3b\xeb\x9f\x9f\x1b\x1f\xbe\x7a\x78\xb2\xb9\xd5\x6e\x4e\x56\xce\
\xa6\x31\x26\x31\xda\x21\xe8\xdb\xfa\xc0\xc0\x42\x29\x65\x2f\x29\
\xa4\xba\x1a\xb9\x99\x6d\x26\x96\x2c\xa7\x2e\xdd\x4a\xb3\xb4\xb7\
\xb0\xb0\x50\x3d\xf9\xe4\x93\xd6\xed\x76\xd5\x6c\x86\x22\xad\x5f\
\xfb\xda\xd7\x6e\xf5\x70\x7d\xe8\xf8\xf5\x5f\xfb\x75\x00\x93\x97\
\x73\x89\x6b\x9a\xb3\x20\xbd\xc3\x31\x23\xd3\x34\xc1\x03\x34\x0e\
\x8c\x23\x26\x6a\x5f\xf9\x21\x8c\x29\x93\xcd\x0a\xcd\x12\x24\x7c\
\x5d\x6f\xe0\xad\xd4\xcd\x87\x2a\x0b\x12\x7e\x0d\x58\x15\xac\xc8\
\xd8\x00\xdb\xf2\xd8\x8e\x87\x6d\xcc\x36\x1d\x6c\x36\xa4\xcd\x13\
\x7b\xfb\xfd\x47\xaf\x6c\x34\x4f\x6c\x75\xa7\xda\x45\x31\xeb\xbc\
\xe6\x4c\xcc\x60\xcc\x79\xb3\xa3\xc1\x86\xc0\x02\x8c\x02\x77\xde\
\x59\xc3\xd0\xb5\x36\x18\x05\xa1\x6e\xc2\x12\xe8\xa2\x05\xd7\xf4\
\x8a\xc2\x02\x70\x15\x58\x74\xb8\xab\x89\x25\xbb\x42\xc3\x91\xeb\
\xe1\xc1\x4b\x4f\x7f\x60\xd7\xe4\x23\xb1\x00\x88\x2f\xd6\x67\x5f\
\x62\xbb\xf5\x2f\xb8\x70\xe8\x25\xca\x64\x9f\xcc\x0a\x73\x4e\x54\
\x2e\xb1\x66\x99\xdb\xf8\x70\x8f\xfd\xac\xd3\x18\xa6\xcd\x31\x8f\
\x1b\x33\x69\xdc\x8c\x8e\x39\x6b\x19\x8c\x19\x74\x24\x9c\xc4\xc0\
\x1b\xeb\x3e\x61\xa5\x48\xd8\x5e\x6d\x67\xfd\x37\x27\xc7\xfc\x9b\
\x87\x0f\x65\x1b\x87\x5a\x9d\xd2\x25\x93\x78\x77\xc8\x64\x87\xcc\
\x34\x65\xa1\x02\x4f\x07\x48\x31\x4a\x33\x5b\x4d\x2c\xb9\x90\x58\
\xb2\xe2\xe5\x77\xca\xb2\x2c\xaa\xaa\x92\x99\xf9\x56\xab\xe5\x3b\
\x9d\x8e\xa6\xa7\xa7\xd5\x6c\x36\x29\x8a\xe2\x20\x89\x04\xe0\x4b\
\x5f\xfa\xd2\xad\x1e\xce\x1f\x9b\xdf\xfe\xed\xdf\xbe\xfe\xa1\x49\
\x32\xef\xbd\xc3\x63\xaa\xe4\xbc\x79\xab\x5c\xa8\x80\xe4\xe4\x0c\
\x48\x24\x25\x40\x82\x0e\xac\xed\x29\xa1\xc8\xcb\x84\x99\x1d\x36\
\xec\x28\x61\x62\x1d\x93\xe9\x18\x30\x8b\x98\xa0\x6e\x18\x0b\x74\
\xb0\x83\xd2\x71\xd7\xef\x9f\x47\x47\x75\xdd\x51\xd6\xc5\x4a\x86\
\x98\xed\x13\xd4\xec\x8b\x06\x97\xcc\xfb\xcb\x99\xd7\x6a\xbb\xf4\
\xdb\xe3\x83\x72\x6f\xa6\x9b\xf7\x8e\xef\x75\x87\x27\xba\x7b\xb4\
\x4b\x9a\x89\x67\xd6\xf9\xea\xb4\x49\x67\x46\x5e\x24\x42\xd8\xfa\
\x0c\xc1\x92\xdf\xe4\x5a\xed\x85\xeb\xe7\xcd\xe8\xfb\x94\x40\x59\
\x4b\xfa\x3c\x54\xa4\x62\x07\xb8\x04\xbc\x6a\xa6\xe7\x0d\xce\x3b\
\xb9\xab\xa9\xd8\xb4\xaa\xec\x5a\xd9\x2b\x8a\x6c\x4c\x65\xda\xc2\
\xf2\x5c\xbe\xa8\xb0\x50\xd1\x8c\x47\x56\x9e\xe3\x83\xe0\xfd\x0b\
\x05\xfe\x09\x62\xfc\x5e\x7d\xf6\x7b\xc1\x4c\x33\x38\xf8\x5f\x07\
\xee\x9a\xef\x9f\x78\x8c\x7e\xab\x89\xb0\x01\xa2\x70\xf2\xfb\xc0\
\x0e\x46\x03\x91\x61\x34\x80\xcc\x90\x39\xa9\xca\xa0\xc8\x2a\xe5\
\xad\x5e\xe9\xce\x2c\xef\x36\x7e\xb1\x7f\x79\x78\xee\x98\x0d\xfe\
\xfd\xcf\x3d\x9a\x6f\xb4\xa6\xf6\xc1\xb6\x2c\xa8\x97\x6d\xc2\xc5\
\xcf\x80\xc4\x30\x0c\x93\x61\x65\xe5\xab\x49\xef\x7d\x4b\x52\xee\
\x9c\xcb\xeb\xbc\xfa\xdc\x7b\x5f\x00\x65\x92\x24\xaa\x7b\xbc\xe9\
\x6d\xfc\xca\x1f\x39\xda\xad\x50\xb9\xcb\x99\x33\xe7\x9c\xf5\x07\
\xfd\x46\x51\x16\x6d\xef\x7d\xdb\xb0\x0e\xd0\x11\xea\x8c\xce\x09\
\x15\x7f\xc7\x08\x85\x53\xc7\x09\x13\x69\x5c\xd2\x78\x28\x88\xca\
\xb8\xd0\xd8\xe8\xf9\x7a\xc2\x8f\xc6\x3b\xc5\x6e\x6c\x50\x5b\xd7\
\x7c\xeb\x13\x6c\x3c\x3b\x00\x26\xd1\x0f\x00\x00\x0a\x71\x49\x44\
\x41\x54\xc0\x8e\xea\x83\x20\xd1\x77\xbc\xd9\xb6\x8c\xad\xca\xb9\
\xcd\xca\xd9\x96\x37\xdb\x19\xcb\xcb\xfe\x89\xee\xb0\x3a\xbd\xd5\
\x4d\x8f\xef\xf6\xc6\xa6\xfa\xc3\xa3\xed\xbc\x98\x6c\x94\xd5\xb4\
\x93\x9f\x05\x77\x58\x66\xf3\x82\x39\x8c\x19\x05\x8d\x64\x92\x6b\
\x59\xac\xef\xd6\x28\xb7\x32\xd1\x53\x28\xe9\xb5\x44\x70\x15\x2e\
\x13\xaa\xfc\xac\x10\x2a\x39\xad\xd5\xc7\x56\x0a\xfb\x53\x55\x63\
\x08\x0d\xe5\x8d\x96\x5a\xc0\xc9\x8b\x4f\xdd\xb2\x6b\xfa\x91\xd0\
\x00\xde\x8d\x9b\xa7\xd5\xc5\x99\x93\x6c\x75\xa6\xf0\xe6\x30\x85\
\x26\x3e\xe6\x8c\xfd\xd6\x04\x87\xfa\x3b\x3c\x70\xf1\x2c\x9b\x53\
\xf3\xb6\x71\xf8\x78\xb3\xb4\xa4\x95\x97\xca\xaa\x52\x64\x72\xc3\
\x49\xb2\x61\x86\x2b\xee\xfe\x97\x3f\xe5\xf7\xfe\xf5\x7f\xe7\x37\
\xfe\xf9\xcf\x61\x26\xfa\x83\x1e\x92\x38\x32\x7b\xc4\xaa\xaa\x4a\
\xca\xb2\x1c\x57\x08\x2e\x69\x79\xef\xad\x76\x1b\x0e\x92\x24\x19\
\xa6\x69\x9a\xb7\x5a\xad\xe1\xcc\xcc\x4c\x99\x24\x89\xba\xdd\xae\
\xed\xee\xee\x32\x1c\x0e\x0d\x70\xb2\xf0\x1f\xc2\xf0\x75\x76\x3c\
\x8c\xea\xcf\x99\xc7\x13\x9c\x0f\x35\xf5\xbf\x91\x42\x41\x28\x25\
\x5e\x10\x4a\xab\x3a\x39\x99\xbb\x16\xb8\x22\x84\x4c\xd7\x96\xa8\
\xba\xfd\x97\xc7\x5b\xc8\x7a\x0b\x75\x50\xeb\xcd\xea\xa8\xb8\x68\
\xf8\x3e\xd7\x3d\xae\x5b\x1e\x8e\x8a\xe1\x39\x24\xab\xb7\x40\x2e\
\x71\x89\x33\xb3\x4c\x52\xbb\xae\xe7\x38\x81\x18\x37\xd9\xb8\xd0\
\x44\x65\xd5\xa4\x61\x13\x86\x8d\x13\x26\xd1\x04\x70\xa8\xb6\xca\
\x4f\x02\x13\x92\x3a\x42\x8d\x3a\xea\xe6\x66\x89\x7e\xb3\x54\x0f\
\x92\x3d\x48\xd4\x01\xb0\x0d\xda\x30\xd8\x34\xd8\x32\xef\xb7\x9c\
\xf7\x5b\x99\xd7\x76\xab\xd4\x76\xa7\x28\xb7\xe7\x7a\xc3\xdd\xbb\
\x36\xbb\xdd\x53\x5b\xbb\xa5\x55\x65\x86\x6c\x1c\x4b\xa6\x31\x0e\
\x83\x8e\xd5\x2e\xc1\x05\xa4\x05\x60\xc1\x64\x47\x80\x29\xec\x6d\
\x83\x74\x74\xf3\x77\x21\xa8\xf6\x05\xc1\x9e\xb0\x6b\x62\x1d\xb8\
\xac\x90\xf5\x77\x09\x74\x09\xc7\x25\x4b\xb4\x82\xb1\x9f\x74\xaa\
\xa2\xea\x27\x58\x01\x89\x1c\xa9\xec\xe0\x8d\x01\xee\xbd\xfc\xa3\
\x45\xef\xbd\x9f\x7c\xe4\x17\x80\x1f\x95\x73\xf7\x7c\x3c\xfc\x70\
\xb3\xc4\x7b\x25\xc3\x42\xae\x2a\x45\x43\xce\x4f\x29\xad\x9a\x72\
\x3e\xaf\xcb\x67\x1c\x5f\xfc\xde\x0d\xaf\xfd\xfc\xe7\x3f\x3f\x3a\
\xcd\x80\xa6\xf7\x3e\xad\x2b\xcb\x8a\x20\xf1\x7d\x9a\xa6\x55\xb3\
\xd9\xac\xa6\xa6\xa6\xe4\xbd\x4f\x7a\xbd\x5e\xb6\xbf\xbf\xdf\xac\
\xaa\xaa\x29\xa9\x29\x53\x43\xa6\x06\x22\xc5\x93\xd4\x93\xcd\xea\
\x12\xbe\xe6\xf1\xe6\xe5\xaf\x4d\x48\x1f\x9a\x68\xd4\x0b\x80\x57\
\xe2\x3d\x84\x08\x98\x7a\x01\xa8\x2b\xfc\xd6\x4b\x80\xc9\x46\x93\
\xdf\x42\xb5\x4b\xab\x17\x00\xa7\x50\xcf\xd7\x39\x48\xea\xa6\x12\
\x0d\x20\x7c\x9f\xfa\x1c\x68\xd4\xfd\x1b\x1a\x98\x35\x81\x26\x52\
\x3b\x54\x4d\xa2\x63\xc1\xf0\xd5\x02\x1a\x0a\x05\x4c\x1a\x86\x1d\
\x68\x58\x37\xbc\x0f\x07\xcf\xa5\x08\xc7\xb5\xf6\x2c\x41\x65\x16\
\x39\xc6\x00\x18\x86\xa8\x4c\xeb\x01\x7b\x12\xbb\x18\x3b\x32\x76\
\x30\xdb\xc6\x6c\xdb\x63\x3b\x95\xd9\x5e\xe5\xac\xe7\x8d\x41\x5a\
\xf9\x62\x7c\x58\xfa\xc3\xdd\xbe\x9b\xdf\xef\x27\xb3\xfb\xc3\x64\
\xba\x9f\xa7\x87\x06\x79\x73\x3c\x2f\xc7\x5a\x45\x35\xe5\xe4\x67\
\x3d\x3a\x22\x63\x0e\xdc\x21\x05\x7b\x42\x87\xb0\x87\x1f\xaf\x8f\
\x0e\x23\x8d\xe3\x26\x6a\xa5\xad\xc0\xe8\x5a\xc8\x53\xd9\x01\x5b\
\x27\x48\xf6\xab\x82\x25\x43\xab\x4e\xda\xf0\xb2\xdd\x0a\xf6\x30\
\xf6\x1c\x74\xcd\xd1\x4d\x26\xca\x41\xe7\xe1\x7d\xdf\xfb\x41\xa8\
\x9d\xf1\xe0\x0b\x2f\xde\xea\xdb\xff\x2d\xfc\x7f\xb7\x00\xfc\xa4\
\xf9\xc2\x17\xbe\x00\x80\x73\xce\xcc\x2c\xed\xf5\x7a\x8d\x7e\xbf\
\xdf\xaa\xaa\xaa\x25\xa9\x2d\x53\x53\xa6\x26\x22\xa5\xba\xe6\x2b\
\x76\xe1\x05\xae\x5e\x00\x0e\xac\xe3\x16\x16\x80\x44\x61\x5e\xa3\
\x44\xa1\x84\x77\xf0\x8b\xdb\x28\x76\x35\xc8\x7e\x39\xea\x68\x33\
\x0b\xed\x90\x9c\x20\x01\xef\x54\x57\x2c\x36\x2c\xb1\xa0\x5a\x8f\
\x26\x7a\x0b\xd4\x94\xd1\x34\x68\xd6\xcf\x35\xc1\x1a\xf5\xde\xbb\
\x15\x16\x00\xda\x75\x95\xe1\xb6\x85\xc9\x7f\x4d\x7a\x9b\x79\xbb\
\x49\x8a\xeb\x46\x69\x5e\x48\xca\x31\x1b\x1a\x0c\x30\x1b\x00\x03\
\x13\x43\xa4\xa1\x19\x43\x07\x03\x27\xf6\x9d\xd4\x75\x95\xdf\x4d\
\xbc\x76\x1a\xf2\x3b\xe3\xa5\xdf\x3d\xdc\x2b\xf6\x6e\xdb\xed\xf5\
\x4e\x6d\xec\xe6\x9d\xc1\xd0\x2a\xd1\x94\xd4\xc4\xe8\xd4\x5d\xa8\
\x83\x66\x01\x87\x64\x36\x2d\x6c\x9e\x20\xe5\x8f\x0b\x2d\x00\x53\
\x84\x85\xeb\x20\x06\xc0\xae\xf7\xc5\x5f\xdb\xc3\xd7\xfb\x77\x72\
\x60\x20\xd1\x07\xba\x18\x5b\xc0\xa6\x85\x7e\x0b\xcb\x60\x8b\xc2\
\x2e\x79\xb3\x2b\x1e\x5b\x33\xd4\x05\xfc\x27\x2e\x7e\x70\xc6\xbb\
\xf7\x8b\x8f\x84\x0d\xe0\xa3\x88\x42\x33\xc2\x51\x54\x59\x49\xd8\
\xbb\xee\x50\x4f\x50\x79\x39\xef\xbd\x4b\x5c\x62\x69\x9a\x06\x57\
\x98\xe4\x10\x0e\x61\x02\xe7\x84\x4b\xa5\xc4\xc9\xd2\x4a\x34\x2a\
\xac\xe5\x45\xd3\x9b\xb5\xe5\x68\x39\x59\x03\x5c\x03\xc8\x3c\x7e\
\x24\x71\x9b\x16\xfa\x0e\x34\x05\x99\xa4\xd4\xb0\x14\x29\x48\x7d\
\x23\x91\xd5\x1a\x80\x48\x85\x82\x71\x4e\x4a\xea\x96\xc1\x23\x77\
\xd6\xa8\x05\x6a\x4f\x21\x27\x03\x93\x21\xc3\xcb\xa8\x14\x0c\x5d\
\x61\x42\x63\x03\x05\xf5\x7c\xa8\x91\x9b\x0d\x86\x32\xeb\x61\xd6\
\xf3\x68\xe0\xa5\x5c\x50\xca\xb9\x52\xce\x0a\x67\x56\xb5\x4a\xd1\
\x2e\x2a\xda\x79\x61\xed\xa2\xb4\xb1\xa2\xa4\x93\x17\x8c\x0d\x72\
\xc6\xf3\xd2\xc6\xf3\xca\x4d\x0e\x8a\xce\xc4\xb0\x9c\x6b\x96\xe5\
\x44\xe2\xfd\xa1\x4a\xcc\xf9\x10\xd1\x37\x85\x18\x97\x1d\x74\xb0\
\x6e\x1e\x2c\x58\xa8\xcd\xc8\x06\x11\xec\x11\x09\xdc\xb0\x5d\xac\
\x40\x05\xd8\x90\x50\x59\x3a\xd8\x15\x8c\x75\x83\x15\xb0\x25\x61\
\xcb\xce\x69\x45\x62\x5b\xa1\x72\x6f\xdf\x42\xd9\xb7\x9e\xcc\x7a\
\x40\xcf\x63\xbd\xd2\x92\xdc\x21\xcf\x47\x94\xa8\x01\xdc\x22\xfe\
\xf4\x4f\xff\x14\x80\xb9\xb9\x39\x96\x96\x96\xec\xf9\xe7\x9f\x77\
\xab\xab\xab\x56\x95\x95\x93\x64\x15\x58\x53\xde\xa6\x7d\x95\xb4\
\x0b\x65\xaa\xac\x23\x69\x4c\xf8\x09\x6f\x1a\xc7\x31\x6e\xb2\x8e\
\x93\xb5\x04\xad\xca\xa9\x51\x19\x59\xe5\x2c\xf5\xe6\x32\x6f\x96\
\x7a\xb3\xd4\x43\x22\x70\x0a\x1d\x3d\x5c\xbd\x3b\x70\xc2\x8c\xb0\
\xe0\x98\xac\xce\x91\xc6\x46\x51\x71\x3e\x34\x52\xa1\x92\x14\x9a\
\xaf\x88\xd2\xb0\x52\xa6\x02\x53\x6e\x52\x9e\x78\xf2\x54\x96\x67\
\x5e\x79\x5a\xf9\x22\xab\x8f\x46\x59\x15\xcd\xbc\x2c\x26\xf3\x32\
\x9f\xc9\xcb\xe1\x44\x7f\x58\x35\xfb\x39\x69\x55\xb9\x04\x25\xa9\
\x91\xa4\x58\x9a\x7a\x52\x27\xa5\xe6\x7d\x03\x8d\x16\x30\x35\x4d\
\x6a\xca\xac\x2d\xdc\x98\x82\x74\x9f\x01\x66\x65\x36\x27\xe9\x30\
\xc1\x15\x37\x09\x6a\xd7\xda\x0c\x1c\x58\xe7\x0d\xae\xf9\xfc\x47\
\x7e\xff\xd1\x91\xd7\x0b\x54\xdf\x50\x1f\xb1\x0f\xb6\x4f\x08\xc3\
\xdd\x35\x58\xc5\x58\xc6\x92\x25\xb3\x64\x39\x49\x58\x69\xb6\xdd\
\xee\xe6\xa0\x53\x5e\xd8\x9a\xf2\x95\x4c\xe3\x8d\x1c\x80\x7f\xba\
\xfc\xd5\x5b\x7d\x0b\xbd\x2f\xc4\x05\xe0\x16\x31\xf2\x0a\xfc\xca\
\xaf\xfc\x0a\x77\xdf\x7d\x37\x57\xaf\x5e\x45\x92\xc9\x0b\x79\xd9\
\xc0\x39\x0e\x0f\x7a\x9c\xde\xdd\xb0\xd3\x5d\xcb\x5a\xbe\x31\x66\
\x65\x31\x41\x39\x9c\x40\x1a\x03\x17\x4a\x7e\x8b\x8e\x4c\x99\x77\
\xb8\xd2\x59\x55\x26\xae\x28\x9d\x2b\x2b\x97\x54\xa5\x73\xbe\x34\
\xe7\x4b\xb3\xaa\x32\xf3\xa5\x33\x5f\x3a\xbc\x77\xc8\x1f\xe8\xc0\
\x86\x0c\x8d\x3a\xfe\x8c\x12\x5e\x01\x1c\x4e\x4e\x92\x93\x42\x3c\
\xae\x24\x27\xaf\x54\x9e\x46\x25\x9a\xa5\x5c\xb3\x52\xda\x2a\xab\
\xb4\x59\xfa\xb4\x51\x55\x59\xe6\x7d\x96\x54\xbe\xe1\x4a\xdf\x4c\
\xa5\x46\xe6\xd5\x74\x5e\x2d\xbc\xda\xa0\x71\x4c\xe3\x16\xf6\xe0\
\x1d\x3b\x48\xc8\x51\x03\xc8\x54\xdb\x10\x6c\x64\x9b\xc0\x82\x2d\
\xa2\x7e\x5e\x61\xdb\x92\x5a\xbd\xa8\x05\x23\x87\xae\x57\xe3\xab\
\xd0\xf3\x91\xde\x75\x6a\xfb\x06\x21\xaa\x6e\x9d\x90\x0e\xbe\x85\
\xb4\x6f\xf2\x03\x61\x7d\x99\x1b\x98\xac\xef\x64\x03\x4c\x03\x99\
\x1f\x62\xc9\xc0\x2c\x19\x66\x99\xcb\x17\x16\x1a\xe5\xe4\x74\xaa\
\xb5\xe5\x30\xf1\xe7\xbf\xf7\x9d\x5b\x7d\xeb\xbc\xaf\xc4\x05\xe0\
\x43\xc8\xf5\x9e\x0d\x93\x58\x3c\xf9\x48\x32\x68\x4f\xb6\xaa\x32\
\x6f\x57\x45\xbf\x8d\x57\xcb\x29\xc9\x04\x4d\x8f\x9a\x98\x52\x73\
\x38\x93\xbc\x93\x95\x49\x08\x7a\xaa\x82\x59\xa0\x36\x11\x04\x4b\
\x22\x42\xe6\x51\x3d\x81\x2c\xc1\x48\x7c\x68\x34\xe2\x2c\x78\x29\
\x92\x0a\xb9\x03\x7b\x01\x96\x98\x99\x13\x72\x5e\x4a\x6a\xd7\x5c\
\xa2\x50\xbe\x3c\x13\xd6\xd0\x35\xf5\xbb\x49\x98\xa8\x4d\x85\xe2\
\x70\x2d\xb0\xb6\x44\x8b\x60\x38\xec\x60\xba\x3e\x7a\xaf\x76\xaf\
\xd5\x66\xf1\x9b\x5a\x4c\x5d\x17\xd0\x53\xea\x9a\xe5\xbd\xb0\x60\
\x3c\x2c\x04\xb9\x05\xbf\xfb\x68\xef\x5e\x48\x36\x04\xf6\x31\xb6\
\x81\x2d\xc3\x6d\x01\x9b\x42\x1b\x98\x6d\x39\x67\xbb\xce\xfb\xbe\
\x15\x45\x51\x99\xe5\xfd\xb1\x4e\x59\x34\x1b\x55\x52\x86\xfa\x79\
\x9f\x7a\xf9\xf1\x5b\x7d\xf9\x3f\x50\xa2\x0d\xe0\xa3\x81\x0f\x7b\
\x6d\x72\xc4\x1e\x0a\x86\x43\x0b\x6d\xd8\xcc\x27\xa4\x4a\xc9\xac\
\x4c\x1a\xbe\xb4\x66\xe9\x68\xc8\x91\xc9\x5b\x43\xa2\x81\x29\x33\
\xa3\x81\x5c\x53\xd0\xf2\xb5\x41\xcf\x59\xb0\xe8\x0b\xb5\x15\xf2\
\x2a\x9a\x0a\x06\xbe\x26\xb2\x56\xdd\xc3\xb1\x61\x66\x19\x52\x06\
\x0a\x52\xd8\x46\x69\xb4\x96\xa0\x5a\x1a\x5f\x4b\x75\xad\xfb\x68\
\xc9\xc0\x4c\x3a\x30\x16\xca\x30\x4f\xe8\x84\x1c\x6a\xd8\x1b\x3d\
\x41\x61\x37\xa8\xeb\x36\x40\x21\xda\xa3\x2e\x2d\xde\x53\xa8\xdb\
\xb0\x0f\xf4\x10\x03\x19\x43\x83\xa1\xa1\x81\xc1\x10\x34\xf0\x62\
\x28\x18\x48\x6e\x10\x6c\x13\x2a\xcc\x54\x70\xad\x87\xe4\xe8\x3c\
\x68\x0b\xaa\x1d\xac\x66\xf2\xce\x29\xb1\xea\x3d\x5f\x8c\xbf\x4b\
\x44\x0d\xe0\x23\xcc\xb3\x9f\x0c\x85\x58\xd5\xa9\xcc\xf6\x93\x24\
\x59\xcf\x1a\x36\x74\x4d\xa5\x6a\x28\x51\x43\xde\x1a\x78\x32\xcc\
\x67\x66\xca\x4c\xd6\x10\xd6\xaa\x5d\x7a\x4d\x33\x6b\x1a\x34\x3d\
\xbe\x09\x34\x0d\x65\x0a\xaa\x78\x03\x05\x55\xbc\x76\xf1\xa5\x84\
\x86\xaa\x99\x6c\x94\xe9\x66\x41\x7a\xd7\x6e\x4c\x8d\x7a\x13\x8c\
\xa2\xf5\x82\x2b\xd5\x4b\x36\xf2\x06\x94\x60\xa5\x1d\xf8\xd2\x55\
\xc8\x6a\x89\x5e\x47\xcf\x19\x36\x04\x1b\x86\x6e\x42\x0c\xb0\x70\
\xc8\x34\x00\xfa\xf5\xc2\x90\x8f\x5e\xe3\xe4\x73\x23\x68\x02\xc3\
\xb2\x28\xf6\xf2\x41\x51\xfa\xaa\x4a\x5d\x22\x80\xcf\xae\x5f\xbc\
\xd5\x97\xe8\x43\x4f\xd4\x00\x3e\xc2\xd8\xa8\xe1\xcc\xc0\xc9\x4a\
\xab\x08\x93\xa6\x6e\xfd\x7d\x43\xd8\xea\xcd\x87\xbb\xf6\x57\x6f\
\xf7\x7c\x30\x15\xde\xd0\x3d\x38\x7c\xe4\xdb\x3c\x7e\x37\x74\xd3\
\x79\xfd\x58\xba\xee\xf1\xcd\x87\xbf\xe9\xdc\xbf\xcd\xf3\x75\xa1\
\x0e\xab\x9f\x97\xcc\x9c\x9a\x69\x43\x99\xbc\xdc\x0f\xaf\xaf\x19\
\x89\x44\x22\x91\x48\x24\x12\x89\x44\x22\x91\x48\x24\x12\x89\x44\
\x22\x91\x48\x24\x12\x89\x44\x22\x91\x48\x24\x12\x89\x44\x22\x91\
\x48\x24\x12\x89\x44\x22\x91\x48\x24\x12\x89\x44\x22\x91\x48\x24\
\x12\x89\x44\x22\x91\x48\x24\x12\x89\x44\x22\x91\x48\x24\x12\x89\
\x44\x22\x91\x48\x24\x12\x89\x44\x22\x91\x48\x24\x12\x89\x44\x22\
\x91\x48\x24\x12\x89\x44\x22\x91\x48\x24\x12\x89\x44\x22\x91\x48\
\x24\x12\x89\x44\x22\x91\x48\x24\x12\x89\x44\x22\x91\x48\x24\x12\
\x89\x44\x22\x91\x48\x24\x12\x89\x44\x22\x91\x48\x24\x12\x89\x44\
\x22\x91\x48\x24\x12\x89\x44\x22\x91\x48\x24\x12\x89\x44\x22\x91\
\x48\x24\x12\x89\x44\x22\x91\x48\x24\x12\x89\x44\x22\x91\x48\x24\
\x12\x89\x44\x22\x91\x48\x24\x12\x89\x44\x22\x91\x48\x24\x12\x89\
\x44\x22\x91\x48\x24\x12\x89\x44\x22\x91\x48\x24\x12\x89\x44\x22\
\x91\x48\x24\x12\x89\x44\x22\x91\x48\x24\x12\x89\x44\x22\x91\x48\
\x24\x12\x89\x44\x22\x91\x48\x24\x12\x89\x44\x22\x91\x48\x24\x12\
\x89\x44\x22\x91\x48\x24\x12\x89\x44\x22\x91\x48\x24\x12\x89\x44\
\x22\x91\x48\x24\x12\x89\x44\x22\x91\x48\x24\x12\x89\x44\x22\x91\
\x48\x24\x12\x89\x44\x22\x91\x48\x24\x12\x89\x44\x22\x91\x48\x24\
\x12\x89\x44\x22\x91\x48\x24\x12\x89\x44\x22\x91\x48\x24\x12\x89\
\x44\x22\x91\x48\x24\x12\x89\x44\x22\x91\xc8\x47\x90\xff\x0b\x7a\
\x19\xb1\xe8\x90\xf6\x40\x27\x00\x00\x00\x00\x49\x45\x4e\x44\xae\
\x42\x60\x82\
"
qt_resource_name = b"\
\x00\x01\
\x00\x00\x00\x2e\
\x00\x2e\
\
\x00\x07\
\x0c\x6a\x8a\x62\
\x00\x55\
\x00\x70\x00\x64\x00\x61\x00\x74\x00\x65\x00\x72\
\x00\x07\
\x09\xac\x4f\x7f\
\x00\x72\
\x00\x74\x00\x69\x00\x2e\x00\x69\x00\x63\x00\x6f\
"
qt_resource_struct = b"\
\x00\x00\x00\x00\x00\x02\x00\x00\x00\x01\x00\x00\x00\x01\
\x00\x00\x00\x00\x00\x02\x00\x00\x00\x01\x00\x00\x00\x02\
\x00\x00\x00\x08\x00\x02\x00\x00\x00\x01\x00\x00\x00\x03\
\x00\x00\x00\x1c\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\
"
def qInitResources():
QtCore.qRegisterResourceData(0x01, qt_resource_struct, qt_resource_name, qt_resource_data)
def qCleanupResources():
QtCore.qUnregisterResourceData(0x01, qt_resource_struct, qt_resource_name, qt_resource_data)
qInitResources()
| 65.762241 | 96 | 0.727268 | 135,384 | 558,716 | 3.001226 | 0.002172 | 1.048588 | 1.564553 | 2.07851 | 0.609956 | 0.594842 | 0.590109 | 0.582814 | 0.580533 | 0.577203 | 0 | 0.394454 | 0.015296 | 558,716 | 8,495 | 97 | 65.769982 | 0.344077 | 0.00027 | 0 | 0.534961 | 0 | 0.997052 | 0 | 0 | 0 | 1 | 0.000014 | 0 | 0 | 1 | 0.000236 | false | 0 | 0.000118 | 0 | 0.000354 | 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 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
170075e545c5b0f13ce8d84a617dcaf2d22fd5a3 | 348 | py | Python | facial_beauty_predictor/server/utils/env.py | orestis-z/facial-beauty-predictor | edb6c5dcf1956d2031c9373e59bf956f35451cdb | [
"MIT"
] | 9 | 2020-10-16T21:03:21.000Z | 2021-12-21T15:26:03.000Z | facial_beauty_predictor/server/utils/env.py | orestis-z/facial-beauty-predictor | edb6c5dcf1956d2031c9373e59bf956f35451cdb | [
"MIT"
] | null | null | null | facial_beauty_predictor/server/utils/env.py | orestis-z/facial-beauty-predictor | edb6c5dcf1956d2031c9373e59bf956f35451cdb | [
"MIT"
] | 3 | 2021-03-16T11:16:41.000Z | 2021-12-21T15:26:05.000Z | import os
def is_main_run():
return os.environ.get("FLASK_RUN_FROM_CLI") != "true" or \
os.environ.get("WERKZEUG_RUN_MAIN") == "true"
def is_reloader():
return os.environ.get("FLASK_ENV") == "development" and \
os.environ.get("WERKZEUG_RUN_MAIN") != "true" and \
os.environ.get("WERKZEUG_SERVER_FD") is not None
| 26.769231 | 62 | 0.652299 | 51 | 348 | 4.196078 | 0.45098 | 0.21028 | 0.280374 | 0.280374 | 0.626168 | 0.28972 | 0.28972 | 0 | 0 | 0 | 0 | 0 | 0.189655 | 348 | 12 | 63 | 29 | 0.758865 | 0 | 0 | 0 | 0 | 0 | 0.293103 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | true | 0 | 0.125 | 0.25 | 0.625 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 7 |
ca2a1eaf35ed019915c466d3df7527ff35af2554 | 179 | py | Python | regym/rl_loops/multiagent_loops/__init__.py | Danielhp95/Regym | f0f0be0ad23bf1a3410ecd9ed9b8025947d6080a | [
"MIT"
] | 6 | 2019-12-03T21:07:12.000Z | 2021-03-25T13:09:39.000Z | regym/rl_loops/multiagent_loops/__init__.py | Danielhp95/Generalized-RL-Self-Play-Framework | 64e02e143070ca6eb8bc8f898c431f59cd229341 | [
"MIT"
] | 1 | 2019-01-29T18:43:32.000Z | 2019-01-31T17:31:39.000Z | regym/rl_loops/multiagent_loops/__init__.py | Danielhp95/Regym | f0f0be0ad23bf1a3410ecd9ed9b8025947d6080a | [
"MIT"
] | 4 | 2019-08-01T10:29:41.000Z | 2021-12-06T21:44:30.000Z | from . import simultaneous_action_rl_loop
from . import sequential_action_rl_loop
from . import vectorenv_sequential_action_rl_loop
from .self_play_loop import self_play_training
| 35.8 | 49 | 0.888268 | 27 | 179 | 5.37037 | 0.407407 | 0.206897 | 0.248276 | 0.331034 | 0.551724 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.089385 | 179 | 4 | 50 | 44.75 | 0.889571 | 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 | 0 | 0 | 0 | 7 |
ca2cc0ae07d848ca7caf83f6a7697f6cb7ec36da | 1,486 | py | Python | test/test_gib.py | smlt/tars | 540d37cfa566ef6c656b234b8c3ce7430f2ebb59 | [
"MIT"
] | 1 | 2020-12-27T12:19:22.000Z | 2020-12-27T12:19:22.000Z | test/test_gib.py | smlt/tars | 540d37cfa566ef6c656b234b8c3ce7430f2ebb59 | [
"MIT"
] | 231 | 2019-04-23T02:09:05.000Z | 2021-12-02T18:02:09.000Z | test/test_gib.py | smlt/tars | 540d37cfa566ef6c656b234b8c3ce7430f2ebb59 | [
"MIT"
] | 4 | 2020-03-24T01:15:28.000Z | 2021-11-12T23:38:56.000Z | from functools import partial
from tars.commands.gib import Gib
def test_bracketify():
qubr = partial(
Gib.bracketify, opening=(r"\"\b", "\""), closing=(r"\b[.!?]*\"", "\"")
)
assert qubr('aaa') == 'aaa'
assert qubr('"aaa"') == '"aaa"'
assert qubr('"aaa bbb"') == '"aaa bbb"'
assert qubr('"aaa') == '"aaa"'
assert qubr('aaa"') == '"aaa"'
assert qubr('"aaa" "bbb') == '"aaa" "bbb"'
assert qubr('aaa" "bbb"') == '"aaa" "bbb"'
assert qubr('aaa" bbb') == '"aaa" bbb'
assert qubr('aaa "bbb') == 'aaa "bbb"'
assert qubr('"aaa "bbb') == '"aaa "bbb""'
assert qubr('aaa!') == 'aaa!'
assert qubr('"aaa!"') == '"aaa!"'
assert qubr('"aaa! bbb!"') == '"aaa! bbb!"'
assert qubr('"aaa!') == '"aaa!"'
assert qubr('aaa!"') == '"aaa!"'
assert qubr('"aaa!!!" "bbb!') == '"aaa!!!" "bbb!"'
assert qubr('aaa!!" "bbb!!"') == '"aaa!!" "bbb!!"'
assert qubr('aaa!!!" bbb') == '"aaa!!!" bbb'
assert qubr('aaa "!bbb') == 'aaa "!bbb'
pabr = partial(Gib.bracketify, opening=(r"\(", "("), closing=(r"\)", ")"))
assert pabr('aaa') == 'aaa'
assert pabr('(aaa)') == '(aaa)'
assert pabr('(aaa bbb)') == '(aaa bbb)'
assert pabr('(aaa') == '(aaa)'
assert pabr('aaa)') == '(aaa)'
assert pabr('(aaa) (bbb') == '(aaa) (bbb)'
assert pabr('aaa) (bbb)') == '(aaa) (bbb)'
assert pabr('aaa) bbb') == '(aaa) bbb'
assert pabr('aaa (bbb') == 'aaa (bbb)'
assert pabr('aa((((aa') == 'aa((((aa))))'
| 38.102564 | 78 | 0.48183 | 181 | 1,486 | 3.950276 | 0.110497 | 0.268531 | 0.345455 | 0.268531 | 0.853147 | 0.774825 | 0.774825 | 0.774825 | 0.774825 | 0.774825 | 0 | 0 | 0.20996 | 1,486 | 38 | 79 | 39.105263 | 0.609029 | 0 | 0 | 0 | 0 | 0 | 0.322342 | 0 | 0 | 0 | 0 | 0 | 0.805556 | 1 | 0.027778 | false | 0 | 0.055556 | 0 | 0.083333 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 10 |
ca337946debf35f3233be96eefd9c96f1b49577c | 193,398 | py | Python | xos/xos/xosapi.py | wathsalav/xos | f6bcaa37a948ee41729236afe7fce0802e002404 | [
"Apache-2.0"
] | null | null | null | xos/xos/xosapi.py | wathsalav/xos | f6bcaa37a948ee41729236afe7fce0802e002404 | [
"Apache-2.0"
] | null | null | null | xos/xos/xosapi.py | wathsalav/xos | f6bcaa37a948ee41729236afe7fce0802e002404 | [
"Apache-2.0"
] | null | null | null | from rest_framework.decorators import api_view
from rest_framework.response import Response
from rest_framework.reverse import reverse
from rest_framework import serializers
from rest_framework import generics
from rest_framework import status
from rest_framework.generics import GenericAPIView
from core.models import *
from django.forms import widgets
from rest_framework import filters
from django.conf.urls import patterns, url
from rest_framework.exceptions import PermissionDenied as RestFrameworkPermissionDenied
from django.core.exceptions import PermissionDenied as DjangoPermissionDenied
from apibase import XOSRetrieveUpdateDestroyAPIView, XOSListCreateAPIView, XOSNotAuthenticated
if hasattr(serializers, "ReadOnlyField"):
# rest_framework 3.x
IdField = serializers.ReadOnlyField
else:
# rest_framework 2.x
IdField = serializers.Field
"""
Schema of the generator object:
all: Set of all Model objects
all_if(regex): Set of Model objects that match regex
Model object:
plural: English plural of object name
camel: CamelCase version of object name
refs: list of references to other Model objects
props: list of properties minus refs
TODO: Deal with subnets
"""
def get_REST_patterns():
return patterns('',
url(r'^xos/$', api_root),
url(r'xos/serviceattributes/$', ServiceAttributeList.as_view(), name='serviceattribute-list'),
url(r'xos/serviceattributes/(?P<pk>[a-zA-Z0-9\-]+)/$', ServiceAttributeDetail.as_view(), name ='serviceattribute-detail'),
url(r'xos/controllerimages/$', ControllerImagesList.as_view(), name='controllerimages-list'),
url(r'xos/controllerimages/(?P<pk>[a-zA-Z0-9\-]+)/$', ControllerImagesDetail.as_view(), name ='controllerimages-detail'),
url(r'xos/controllersiteprivileges/$', ControllerSitePrivilegeList.as_view(), name='controllersiteprivilege-list'),
url(r'xos/controllersiteprivileges/(?P<pk>[a-zA-Z0-9\-]+)/$', ControllerSitePrivilegeDetail.as_view(), name ='controllersiteprivilege-detail'),
url(r'xos/images/$', ImageList.as_view(), name='image-list'),
url(r'xos/images/(?P<pk>[a-zA-Z0-9\-]+)/$', ImageDetail.as_view(), name ='image-detail'),
url(r'xos/networkparameters/$', NetworkParameterList.as_view(), name='networkparameter-list'),
url(r'xos/networkparameters/(?P<pk>[a-zA-Z0-9\-]+)/$', NetworkParameterDetail.as_view(), name ='networkparameter-detail'),
url(r'xos/sites/$', SiteList.as_view(), name='site-list'),
url(r'xos/sites/(?P<pk>[a-zA-Z0-9\-]+)/$', SiteDetail.as_view(), name ='site-detail'),
url(r'xos/slice_roles/$', SliceRoleList.as_view(), name='slicerole-list'),
url(r'xos/slice_roles/(?P<pk>[a-zA-Z0-9\-]+)/$', SliceRoleDetail.as_view(), name ='slicerole-detail'),
url(r'xos/tags/$', TagList.as_view(), name='tag-list'),
url(r'xos/tags/(?P<pk>[a-zA-Z0-9\-]+)/$', TagDetail.as_view(), name ='tag-detail'),
url(r'xos/invoices/$', InvoiceList.as_view(), name='invoice-list'),
url(r'xos/invoices/(?P<pk>[a-zA-Z0-9\-]+)/$', InvoiceDetail.as_view(), name ='invoice-detail'),
url(r'xos/slice_privileges/$', SlicePrivilegeList.as_view(), name='sliceprivilege-list'),
url(r'xos/slice_privileges/(?P<pk>[a-zA-Z0-9\-]+)/$', SlicePrivilegeDetail.as_view(), name ='sliceprivilege-detail'),
url(r'xos/networkslivers/$', NetworkSliverList.as_view(), name='networksliver-list'),
url(r'xos/networkslivers/(?P<pk>[a-zA-Z0-9\-]+)/$', NetworkSliverDetail.as_view(), name ='networksliver-detail'),
url(r'xos/flavors/$', FlavorList.as_view(), name='flavor-list'),
url(r'xos/flavors/(?P<pk>[a-zA-Z0-9\-]+)/$', FlavorDetail.as_view(), name ='flavor-detail'),
url(r'xos/controllersites/$', ControllerSiteList.as_view(), name='controllersite-list'),
url(r'xos/controllersites/(?P<pk>[a-zA-Z0-9\-]+)/$', ControllerSiteDetail.as_view(), name ='controllersite-detail'),
url(r'xos/projects/$', ProjectList.as_view(), name='project-list'),
url(r'xos/projects/(?P<pk>[a-zA-Z0-9\-]+)/$', ProjectDetail.as_view(), name ='project-detail'),
url(r'xos/slices/$', SliceList.as_view(), name='slice-list'),
url(r'xos/slices/(?P<pk>[a-zA-Z0-9\-]+)/$', SliceDetail.as_view(), name ='slice-detail'),
url(r'xos/networks/$', NetworkList.as_view(), name='network-list'),
url(r'xos/networks/(?P<pk>[a-zA-Z0-9\-]+)/$', NetworkDetail.as_view(), name ='network-detail'),
url(r'xos/services/$', ServiceList.as_view(), name='service-list'),
url(r'xos/services/(?P<pk>[a-zA-Z0-9\-]+)/$', ServiceDetail.as_view(), name ='service-detail'),
url(r'xos/serviceclasses/$', ServiceClassList.as_view(), name='serviceclass-list'),
url(r'xos/serviceclasses/(?P<pk>[a-zA-Z0-9\-]+)/$', ServiceClassDetail.as_view(), name ='serviceclass-detail'),
url(r'xos/payments/$', PaymentList.as_view(), name='payment-list'),
url(r'xos/payments/(?P<pk>[a-zA-Z0-9\-]+)/$', PaymentDetail.as_view(), name ='payment-detail'),
url(r'xos/charges/$', ChargeList.as_view(), name='charge-list'),
url(r'xos/charges/(?P<pk>[a-zA-Z0-9\-]+)/$', ChargeDetail.as_view(), name ='charge-detail'),
url(r'xos/roles/$', RoleList.as_view(), name='role-list'),
url(r'xos/roles/(?P<pk>[a-zA-Z0-9\-]+)/$', RoleDetail.as_view(), name ='role-detail'),
url(r'xos/usableobjects/$', UsableObjectList.as_view(), name='usableobject-list'),
url(r'xos/usableobjects/(?P<pk>[a-zA-Z0-9\-]+)/$', UsableObjectDetail.as_view(), name ='usableobject-detail'),
url(r'xos/site_roles/$', SiteRoleList.as_view(), name='siterole-list'),
url(r'xos/site_roles/(?P<pk>[a-zA-Z0-9\-]+)/$', SiteRoleDetail.as_view(), name ='siterole-detail'),
url(r'xos/slicecredentials/$', SliceCredentialList.as_view(), name='slicecredential-list'),
url(r'xos/slicecredentials/(?P<pk>[a-zA-Z0-9\-]+)/$', SliceCredentialDetail.as_view(), name ='slicecredential-detail'),
url(r'xos/slivers/$', SliverList.as_view(), name='sliver-list'),
url(r'xos/slivers/(?P<pk>[a-zA-Z0-9\-]+)/$', SliverDetail.as_view(), name ='sliver-detail'),
url(r'xos/nodes/$', NodeList.as_view(), name='node-list'),
url(r'xos/nodes/(?P<pk>[a-zA-Z0-9\-]+)/$', NodeDetail.as_view(), name ='node-detail'),
url(r'xos/dashboardviews/$', DashboardViewList.as_view(), name='dashboardview-list'),
url(r'xos/dashboardviews/(?P<pk>[a-zA-Z0-9\-]+)/$', DashboardViewDetail.as_view(), name ='dashboardview-detail'),
url(r'xos/controllernetworks/$', ControllerNetworkList.as_view(), name='controllernetwork-list'),
url(r'xos/controllernetworks/(?P<pk>[a-zA-Z0-9\-]+)/$', ControllerNetworkDetail.as_view(), name ='controllernetwork-detail'),
url(r'xos/imagedeploymentses/$', ImageDeploymentsList.as_view(), name='imagedeployments-list'),
url(r'xos/imagedeploymentses/(?P<pk>[a-zA-Z0-9\-]+)/$', ImageDeploymentsDetail.as_view(), name ='imagedeployments-detail'),
url(r'xos/controllerusers/$', ControllerUserList.as_view(), name='controlleruser-list'),
url(r'xos/controllerusers/(?P<pk>[a-zA-Z0-9\-]+)/$', ControllerUserDetail.as_view(), name ='controlleruser-detail'),
url(r'xos/reservedresources/$', ReservedResourceList.as_view(), name='reservedresource-list'),
url(r'xos/reservedresources/(?P<pk>[a-zA-Z0-9\-]+)/$', ReservedResourceDetail.as_view(), name ='reservedresource-detail'),
url(r'xos/networkslices/$', NetworkSliceList.as_view(), name='networkslice-list'),
url(r'xos/networkslices/(?P<pk>[a-zA-Z0-9\-]+)/$', NetworkSliceDetail.as_view(), name ='networkslice-detail'),
url(r'xos/userdashboardviews/$', UserDashboardViewList.as_view(), name='userdashboardview-list'),
url(r'xos/userdashboardviews/(?P<pk>[a-zA-Z0-9\-]+)/$', UserDashboardViewDetail.as_view(), name ='userdashboardview-detail'),
url(r'xos/controllers/$', ControllerList.as_view(), name='controller-list'),
url(r'xos/controllers/(?P<pk>[a-zA-Z0-9\-]+)/$', ControllerDetail.as_view(), name ='controller-detail'),
url(r'xos/users/$', UserList.as_view(), name='user-list'),
url(r'xos/users/(?P<pk>[a-zA-Z0-9\-]+)/$', UserDetail.as_view(), name ='user-detail'),
url(r'xos/deployments/$', DeploymentList.as_view(), name='deployment-list'),
url(r'xos/deployments/(?P<pk>[a-zA-Z0-9\-]+)/$', DeploymentDetail.as_view(), name ='deployment-detail'),
url(r'xos/reservations/$', ReservationList.as_view(), name='reservation-list'),
url(r'xos/reservations/(?P<pk>[a-zA-Z0-9\-]+)/$', ReservationDetail.as_view(), name ='reservation-detail'),
url(r'xos/siteprivileges/$', SitePrivilegeList.as_view(), name='siteprivilege-list'),
url(r'xos/siteprivileges/(?P<pk>[a-zA-Z0-9\-]+)/$', SitePrivilegeDetail.as_view(), name ='siteprivilege-detail'),
url(r'xos/controllerslices/$', ControllerSliceList.as_view(), name='controllerslice-list'),
url(r'xos/controllerslices/(?P<pk>[a-zA-Z0-9\-]+)/$', ControllerSliceDetail.as_view(), name ='controllerslice-detail'),
url(r'xos/controllerdashboardviews/$', ControllerDashboardViewList.as_view(), name='controllerdashboardview-list'),
url(r'xos/controllerdashboardviews/(?P<pk>[a-zA-Z0-9\-]+)/$', ControllerDashboardViewDetail.as_view(), name ='controllerdashboardview-detail'),
url(r'xos/accounts/$', AccountList.as_view(), name='account-list'),
url(r'xos/accounts/(?P<pk>[a-zA-Z0-9\-]+)/$', AccountDetail.as_view(), name ='account-detail'),
url(r'xos/controllerroles/$', ControllerRoleList.as_view(), name='controllerrole-list'),
url(r'xos/controllerroles/(?P<pk>[a-zA-Z0-9\-]+)/$', ControllerRoleDetail.as_view(), name ='controllerrole-detail'),
url(r'xos/networkparametertypes/$', NetworkParameterTypeList.as_view(), name='networkparametertype-list'),
url(r'xos/networkparametertypes/(?P<pk>[a-zA-Z0-9\-]+)/$', NetworkParameterTypeDetail.as_view(), name ='networkparametertype-detail'),
url(r'xos/sitecredentials/$', SiteCredentialList.as_view(), name='sitecredential-list'),
url(r'xos/sitecredentials/(?P<pk>[a-zA-Z0-9\-]+)/$', SiteCredentialDetail.as_view(), name ='sitecredential-detail'),
url(r'xos/deploymentprivileges/$', DeploymentPrivilegeList.as_view(), name='deploymentprivilege-list'),
url(r'xos/deploymentprivileges/(?P<pk>[a-zA-Z0-9\-]+)/$', DeploymentPrivilegeDetail.as_view(), name ='deploymentprivilege-detail'),
url(r'xos/controllersliceprivileges/$', ControllerSlicePrivilegeList.as_view(), name='controllersliceprivilege-list'),
url(r'xos/controllersliceprivileges/(?P<pk>[a-zA-Z0-9\-]+)/$', ControllerSlicePrivilegeDetail.as_view(), name ='controllersliceprivilege-detail'),
url(r'xos/sitedeployments/$', SiteDeploymentList.as_view(), name='sitedeployment-list'),
url(r'xos/sitedeployments/(?P<pk>[a-zA-Z0-9\-]+)/$', SiteDeploymentDetail.as_view(), name ='sitedeployment-detail'),
url(r'xos/deploymentroles/$', DeploymentRoleList.as_view(), name='deploymentrole-list'),
url(r'xos/deploymentroles/(?P<pk>[a-zA-Z0-9\-]+)/$', DeploymentRoleDetail.as_view(), name ='deploymentrole-detail'),
url(r'xos/usercredentials/$', UserCredentialList.as_view(), name='usercredential-list'),
url(r'xos/usercredentials/(?P<pk>[a-zA-Z0-9\-]+)/$', UserCredentialDetail.as_view(), name ='usercredential-detail'),
url(r'xos/slicetags/$', SliceTagList.as_view(), name='slicetag-list'),
url(r'xos/slicetags/(?P<pk>[a-zA-Z0-9\-]+)/$', SliceTagDetail.as_view(), name ='slicetag-detail'),
url(r'xos/networktemplates/$', NetworkTemplateList.as_view(), name='networktemplate-list'),
url(r'xos/networktemplates/(?P<pk>[a-zA-Z0-9\-]+)/$', NetworkTemplateDetail.as_view(), name ='networktemplate-detail'),
url(r'xos/routers/$', RouterList.as_view(), name='router-list'),
url(r'xos/routers/(?P<pk>[a-zA-Z0-9\-]+)/$', RouterDetail.as_view(), name ='router-detail'),
url(r'xos/serviceresources/$', ServiceResourceList.as_view(), name='serviceresource-list'),
url(r'xos/serviceresources/(?P<pk>[a-zA-Z0-9\-]+)/$', ServiceResourceDetail.as_view(), name ='serviceresource-detail'),
)
@api_view(['GET'])
def api_root(request, format=None):
return Response({
'serviceattributes': reverse('serviceattribute-list', request=request, format=format),
'controllerimageses': reverse('controllerimages-list', request=request, format=format),
'controllersiteprivileges': reverse('controllersiteprivilege-list', request=request, format=format),
'images': reverse('image-list', request=request, format=format),
'networkparameters': reverse('networkparameter-list', request=request, format=format),
'sites': reverse('site-list', request=request, format=format),
'sliceroles': reverse('slicerole-list', request=request, format=format),
'tags': reverse('tag-list', request=request, format=format),
'invoices': reverse('invoice-list', request=request, format=format),
'sliceprivileges': reverse('sliceprivilege-list', request=request, format=format),
'networkslivers': reverse('networksliver-list', request=request, format=format),
'flavors': reverse('flavor-list', request=request, format=format),
'controllersites': reverse('controllersite-list', request=request, format=format),
'projects': reverse('project-list', request=request, format=format),
'slices': reverse('slice-list', request=request, format=format),
'networks': reverse('network-list', request=request, format=format),
'services': reverse('service-list', request=request, format=format),
'serviceclasses': reverse('serviceclass-list', request=request, format=format),
'payments': reverse('payment-list', request=request, format=format),
'charges': reverse('charge-list', request=request, format=format),
'roles': reverse('role-list', request=request, format=format),
'usableobjects': reverse('usableobject-list', request=request, format=format),
'siteroles': reverse('siterole-list', request=request, format=format),
'slicecredentials': reverse('slicecredential-list', request=request, format=format),
'slivers': reverse('sliver-list', request=request, format=format),
'nodes': reverse('node-list', request=request, format=format),
'dashboardviews': reverse('dashboardview-list', request=request, format=format),
'controllernetworks': reverse('controllernetwork-list', request=request, format=format),
'imagedeploymentses': reverse('imagedeployments-list', request=request, format=format),
'controllerusers': reverse('controlleruser-list', request=request, format=format),
'reservedresources': reverse('reservedresource-list', request=request, format=format),
'networkslices': reverse('networkslice-list', request=request, format=format),
'userdashboardviews': reverse('userdashboardview-list', request=request, format=format),
'controllers': reverse('controller-list', request=request, format=format),
'users': reverse('user-list', request=request, format=format),
'deployments': reverse('deployment-list', request=request, format=format),
'reservations': reverse('reservation-list', request=request, format=format),
'siteprivileges': reverse('siteprivilege-list', request=request, format=format),
'controllerslices': reverse('controllerslice-list', request=request, format=format),
'controllerdashboardviews': reverse('controllerdashboardview-list', request=request, format=format),
'accounts': reverse('account-list', request=request, format=format),
'controllerroles': reverse('controllerrole-list', request=request, format=format),
'networkparametertypes': reverse('networkparametertype-list', request=request, format=format),
'sitecredentials': reverse('sitecredential-list', request=request, format=format),
'deploymentprivileges': reverse('deploymentprivilege-list', request=request, format=format),
'controllersliceprivileges': reverse('controllersliceprivilege-list', request=request, format=format),
'sitedeployments': reverse('sitedeployment-list', request=request, format=format),
'deploymentroles': reverse('deploymentrole-list', request=request, format=format),
'usercredentials': reverse('usercredential-list', request=request, format=format),
'slicetags': reverse('slicetag-list', request=request, format=format),
'networktemplates': reverse('networktemplate-list', request=request, format=format),
'routers': reverse('router-list', request=request, format=format),
'serviceresources': reverse('serviceresource-list', request=request, format=format),
})
# Based on serializers.py
class XOSModelSerializer(serializers.ModelSerializer):
def save_object(self, obj, **kwargs):
""" rest_framework can't deal with ManyToMany relations that have a
through table. In xos, most of the through tables we have
use defaults or blank fields, so there's no reason why we shouldn't
be able to save these objects.
So, let's strip out these m2m relations, and deal with them ourself.
"""
obj._complex_m2m_data={};
if getattr(obj, '_m2m_data', None):
for relatedObject in obj._meta.get_all_related_many_to_many_objects():
if (relatedObject.field.rel.through._meta.auto_created):
# These are non-trough ManyToMany relations and
# can be updated just fine
continue
fieldName = relatedObject.get_accessor_name()
if fieldName in obj._m2m_data.keys():
obj._complex_m2m_data[fieldName] = (relatedObject, obj._m2m_data[fieldName])
del obj._m2m_data[fieldName]
serializers.ModelSerializer.save_object(self, obj, **kwargs);
for (accessor, stuff) in obj._complex_m2m_data.items():
(relatedObject, data) = stuff
through = relatedObject.field.rel.through
local_fieldName = relatedObject.field.m2m_reverse_field_name()
remote_fieldName = relatedObject.field.m2m_field_name()
# get the current set of existing relations
existing = through.objects.filter(**{local_fieldName: obj});
data_ids = [item.id for item in data]
existing_ids = [getattr(item,remote_fieldName).id for item in existing]
#print "data_ids", data_ids
#print "existing_ids", existing_ids
# remove relations that are in 'existing' but not in 'data'
for item in list(existing):
if (getattr(item,remote_fieldName).id not in data_ids):
print "delete", getattr(item,remote_fieldName)
item.delete() #(purge=True)
# add relations that are in 'data' but not in 'existing'
for item in data:
if (item.id not in existing_ids):
#print "add", item
newModel = through(**{local_fieldName: obj, remote_fieldName: item})
newModel.save()
class ServiceAttributeSerializer(serializers.HyperlinkedModelSerializer):
id = IdField()
humanReadableName = serializers.SerializerMethodField("getHumanReadableName")
validators = serializers.SerializerMethodField("getValidators")
def getHumanReadableName(self, obj):
return str(obj)
def getValidators(self, obj):
try:
return obj.getValidators()
except:
return None
class Meta:
model = ServiceAttribute
fields = ('humanReadableName', 'validators', 'id','created','updated','enacted','policed','backend_register','backend_status','deleted','name','value','service',)
class ServiceAttributeIdSerializer(XOSModelSerializer):
id = IdField()
humanReadableName = serializers.SerializerMethodField("getHumanReadableName")
validators = serializers.SerializerMethodField("getValidators")
def getHumanReadableName(self, obj):
return str(obj)
def getValidators(self, obj):
try:
return obj.getValidators()
except:
return None
class Meta:
model = ServiceAttribute
fields = ('humanReadableName', 'validators', 'id','created','updated','enacted','policed','backend_register','backend_status','deleted','name','value','service',)
class ControllerImagesSerializer(serializers.HyperlinkedModelSerializer):
id = IdField()
humanReadableName = serializers.SerializerMethodField("getHumanReadableName")
validators = serializers.SerializerMethodField("getValidators")
def getHumanReadableName(self, obj):
return str(obj)
def getValidators(self, obj):
try:
return obj.getValidators()
except:
return None
class Meta:
model = ControllerImages
fields = ('humanReadableName', 'validators', 'id','created','updated','enacted','policed','backend_register','backend_status','deleted','image','controller','glance_image_id',)
class ControllerImagesIdSerializer(XOSModelSerializer):
id = IdField()
humanReadableName = serializers.SerializerMethodField("getHumanReadableName")
validators = serializers.SerializerMethodField("getValidators")
def getHumanReadableName(self, obj):
return str(obj)
def getValidators(self, obj):
try:
return obj.getValidators()
except:
return None
class Meta:
model = ControllerImages
fields = ('humanReadableName', 'validators', 'id','created','updated','enacted','policed','backend_register','backend_status','deleted','image','controller','glance_image_id',)
class ControllerSitePrivilegeSerializer(serializers.HyperlinkedModelSerializer):
id = IdField()
humanReadableName = serializers.SerializerMethodField("getHumanReadableName")
validators = serializers.SerializerMethodField("getValidators")
def getHumanReadableName(self, obj):
return str(obj)
def getValidators(self, obj):
try:
return obj.getValidators()
except:
return None
class Meta:
model = ControllerSitePrivilege
fields = ('humanReadableName', 'validators', 'id','created','updated','enacted','policed','backend_register','backend_status','deleted','controller','site_privilege','role_id',)
class ControllerSitePrivilegeIdSerializer(XOSModelSerializer):
id = IdField()
humanReadableName = serializers.SerializerMethodField("getHumanReadableName")
validators = serializers.SerializerMethodField("getValidators")
def getHumanReadableName(self, obj):
return str(obj)
def getValidators(self, obj):
try:
return obj.getValidators()
except:
return None
class Meta:
model = ControllerSitePrivilege
fields = ('humanReadableName', 'validators', 'id','created','updated','enacted','policed','backend_register','backend_status','deleted','controller','site_privilege','role_id',)
class ImageSerializer(serializers.HyperlinkedModelSerializer):
id = IdField()
deployments = serializers.HyperlinkedRelatedField(many=True, read_only=True, view_name='deployment-detail')
humanReadableName = serializers.SerializerMethodField("getHumanReadableName")
validators = serializers.SerializerMethodField("getValidators")
def getHumanReadableName(self, obj):
return str(obj)
def getValidators(self, obj):
try:
return obj.getValidators()
except:
return None
class Meta:
model = Image
fields = ('humanReadableName', 'validators', 'id','created','updated','enacted','policed','backend_register','backend_status','deleted','name','disk_format','container_format','path','deployments',)
class ImageIdSerializer(XOSModelSerializer):
id = IdField()
deployments = serializers.PrimaryKeyRelatedField(many=True, queryset = Deployment.objects.all())
humanReadableName = serializers.SerializerMethodField("getHumanReadableName")
validators = serializers.SerializerMethodField("getValidators")
def getHumanReadableName(self, obj):
return str(obj)
def getValidators(self, obj):
try:
return obj.getValidators()
except:
return None
class Meta:
model = Image
fields = ('humanReadableName', 'validators', 'id','created','updated','enacted','policed','backend_register','backend_status','deleted','name','disk_format','container_format','path','deployments',)
class NetworkParameterSerializer(serializers.HyperlinkedModelSerializer):
id = IdField()
humanReadableName = serializers.SerializerMethodField("getHumanReadableName")
validators = serializers.SerializerMethodField("getValidators")
def getHumanReadableName(self, obj):
return str(obj)
def getValidators(self, obj):
try:
return obj.getValidators()
except:
return None
class Meta:
model = NetworkParameter
fields = ('humanReadableName', 'validators', 'id','created','updated','enacted','policed','backend_register','backend_status','deleted','parameter','value','content_type','object_id',)
class NetworkParameterIdSerializer(XOSModelSerializer):
id = IdField()
humanReadableName = serializers.SerializerMethodField("getHumanReadableName")
validators = serializers.SerializerMethodField("getValidators")
def getHumanReadableName(self, obj):
return str(obj)
def getValidators(self, obj):
try:
return obj.getValidators()
except:
return None
class Meta:
model = NetworkParameter
fields = ('humanReadableName', 'validators', 'id','created','updated','enacted','policed','backend_register','backend_status','deleted','parameter','value','content_type','object_id',)
class SiteSerializer(serializers.HyperlinkedModelSerializer):
id = IdField()
deployments = serializers.HyperlinkedRelatedField(many=True, read_only=True, view_name='deployment-detail')
humanReadableName = serializers.SerializerMethodField("getHumanReadableName")
validators = serializers.SerializerMethodField("getValidators")
def getHumanReadableName(self, obj):
return str(obj)
def getValidators(self, obj):
try:
return obj.getValidators()
except:
return None
class Meta:
model = Site
fields = ('humanReadableName', 'validators', 'id','created','updated','enacted','policed','backend_register','backend_status','deleted','name','site_url','enabled','location','longitude','latitude','login_base','is_public','abbreviated_name','deployments',)
class SiteIdSerializer(XOSModelSerializer):
id = IdField()
deployments = serializers.PrimaryKeyRelatedField(many=True, queryset = Deployment.objects.all())
humanReadableName = serializers.SerializerMethodField("getHumanReadableName")
validators = serializers.SerializerMethodField("getValidators")
def getHumanReadableName(self, obj):
return str(obj)
def getValidators(self, obj):
try:
return obj.getValidators()
except:
return None
class Meta:
model = Site
fields = ('humanReadableName', 'validators', 'id','created','updated','enacted','policed','backend_register','backend_status','deleted','name','site_url','enabled','location','longitude','latitude','login_base','is_public','abbreviated_name','deployments',)
class SliceRoleSerializer(serializers.HyperlinkedModelSerializer):
id = IdField()
humanReadableName = serializers.SerializerMethodField("getHumanReadableName")
validators = serializers.SerializerMethodField("getValidators")
def getHumanReadableName(self, obj):
return str(obj)
def getValidators(self, obj):
try:
return obj.getValidators()
except:
return None
class Meta:
model = SliceRole
fields = ('humanReadableName', 'validators', 'id','created','updated','enacted','policed','backend_register','backend_status','deleted','role',)
class SliceRoleIdSerializer(XOSModelSerializer):
id = IdField()
humanReadableName = serializers.SerializerMethodField("getHumanReadableName")
validators = serializers.SerializerMethodField("getValidators")
def getHumanReadableName(self, obj):
return str(obj)
def getValidators(self, obj):
try:
return obj.getValidators()
except:
return None
class Meta:
model = SliceRole
fields = ('humanReadableName', 'validators', 'id','created','updated','enacted','policed','backend_register','backend_status','deleted','role',)
class TagSerializer(serializers.HyperlinkedModelSerializer):
id = IdField()
humanReadableName = serializers.SerializerMethodField("getHumanReadableName")
validators = serializers.SerializerMethodField("getValidators")
def getHumanReadableName(self, obj):
return str(obj)
def getValidators(self, obj):
try:
return obj.getValidators()
except:
return None
class Meta:
model = Tag
fields = ('humanReadableName', 'validators', 'id','created','updated','enacted','policed','backend_register','backend_status','deleted','service','name','value','content_type','object_id',)
class TagIdSerializer(XOSModelSerializer):
id = IdField()
humanReadableName = serializers.SerializerMethodField("getHumanReadableName")
validators = serializers.SerializerMethodField("getValidators")
def getHumanReadableName(self, obj):
return str(obj)
def getValidators(self, obj):
try:
return obj.getValidators()
except:
return None
class Meta:
model = Tag
fields = ('humanReadableName', 'validators', 'id','created','updated','enacted','policed','backend_register','backend_status','deleted','service','name','value','content_type','object_id',)
class InvoiceSerializer(serializers.HyperlinkedModelSerializer):
id = IdField()
humanReadableName = serializers.SerializerMethodField("getHumanReadableName")
validators = serializers.SerializerMethodField("getValidators")
def getHumanReadableName(self, obj):
return str(obj)
def getValidators(self, obj):
try:
return obj.getValidators()
except:
return None
class Meta:
model = Invoice
fields = ('humanReadableName', 'validators', 'id','created','updated','enacted','policed','backend_register','backend_status','deleted','date','account',)
class InvoiceIdSerializer(XOSModelSerializer):
id = IdField()
humanReadableName = serializers.SerializerMethodField("getHumanReadableName")
validators = serializers.SerializerMethodField("getValidators")
def getHumanReadableName(self, obj):
return str(obj)
def getValidators(self, obj):
try:
return obj.getValidators()
except:
return None
class Meta:
model = Invoice
fields = ('humanReadableName', 'validators', 'id','created','updated','enacted','policed','backend_register','backend_status','deleted','date','account',)
class SlicePrivilegeSerializer(serializers.HyperlinkedModelSerializer):
id = IdField()
humanReadableName = serializers.SerializerMethodField("getHumanReadableName")
validators = serializers.SerializerMethodField("getValidators")
def getHumanReadableName(self, obj):
return str(obj)
def getValidators(self, obj):
try:
return obj.getValidators()
except:
return None
class Meta:
model = SlicePrivilege
fields = ('humanReadableName', 'validators', 'id','created','updated','enacted','policed','backend_register','backend_status','deleted','user','slice','role',)
class SlicePrivilegeIdSerializer(XOSModelSerializer):
id = IdField()
humanReadableName = serializers.SerializerMethodField("getHumanReadableName")
validators = serializers.SerializerMethodField("getValidators")
def getHumanReadableName(self, obj):
return str(obj)
def getValidators(self, obj):
try:
return obj.getValidators()
except:
return None
class Meta:
model = SlicePrivilege
fields = ('humanReadableName', 'validators', 'id','created','updated','enacted','policed','backend_register','backend_status','deleted','user','slice','role',)
class NetworkSliverSerializer(serializers.HyperlinkedModelSerializer):
id = IdField()
humanReadableName = serializers.SerializerMethodField("getHumanReadableName")
validators = serializers.SerializerMethodField("getValidators")
def getHumanReadableName(self, obj):
return str(obj)
def getValidators(self, obj):
try:
return obj.getValidators()
except:
return None
class Meta:
model = NetworkSliver
fields = ('humanReadableName', 'validators', 'id','created','updated','enacted','policed','backend_register','backend_status','deleted','network','sliver','ip','port_id',)
class NetworkSliverIdSerializer(XOSModelSerializer):
id = IdField()
humanReadableName = serializers.SerializerMethodField("getHumanReadableName")
validators = serializers.SerializerMethodField("getValidators")
def getHumanReadableName(self, obj):
return str(obj)
def getValidators(self, obj):
try:
return obj.getValidators()
except:
return None
class Meta:
model = NetworkSliver
fields = ('humanReadableName', 'validators', 'id','created','updated','enacted','policed','backend_register','backend_status','deleted','network','sliver','ip','port_id',)
class FlavorSerializer(serializers.HyperlinkedModelSerializer):
id = IdField()
deployments = serializers.HyperlinkedRelatedField(many=True, read_only=True, view_name='deployment-detail')
humanReadableName = serializers.SerializerMethodField("getHumanReadableName")
validators = serializers.SerializerMethodField("getValidators")
def getHumanReadableName(self, obj):
return str(obj)
def getValidators(self, obj):
try:
return obj.getValidators()
except:
return None
class Meta:
model = Flavor
fields = ('humanReadableName', 'validators', 'id','created','updated','enacted','policed','backend_register','backend_status','deleted','name','description','flavor','order','default','deployments',)
class FlavorIdSerializer(XOSModelSerializer):
id = IdField()
deployments = serializers.PrimaryKeyRelatedField(many=True, queryset = Deployment.objects.all())
humanReadableName = serializers.SerializerMethodField("getHumanReadableName")
validators = serializers.SerializerMethodField("getValidators")
def getHumanReadableName(self, obj):
return str(obj)
def getValidators(self, obj):
try:
return obj.getValidators()
except:
return None
class Meta:
model = Flavor
fields = ('humanReadableName', 'validators', 'id','created','updated','enacted','policed','backend_register','backend_status','deleted','name','description','flavor','order','default','deployments',)
class ControllerSiteSerializer(serializers.HyperlinkedModelSerializer):
id = IdField()
humanReadableName = serializers.SerializerMethodField("getHumanReadableName")
validators = serializers.SerializerMethodField("getValidators")
def getHumanReadableName(self, obj):
return str(obj)
def getValidators(self, obj):
try:
return obj.getValidators()
except:
return None
class Meta:
model = ControllerSite
fields = ('humanReadableName', 'validators', 'id','created','updated','enacted','policed','backend_register','backend_status','deleted','site','controller','tenant_id',)
class ControllerSiteIdSerializer(XOSModelSerializer):
id = IdField()
humanReadableName = serializers.SerializerMethodField("getHumanReadableName")
validators = serializers.SerializerMethodField("getValidators")
def getHumanReadableName(self, obj):
return str(obj)
def getValidators(self, obj):
try:
return obj.getValidators()
except:
return None
class Meta:
model = ControllerSite
fields = ('humanReadableName', 'validators', 'id','created','updated','enacted','policed','backend_register','backend_status','deleted','site','controller','tenant_id',)
class ProjectSerializer(serializers.HyperlinkedModelSerializer):
id = IdField()
humanReadableName = serializers.SerializerMethodField("getHumanReadableName")
validators = serializers.SerializerMethodField("getValidators")
def getHumanReadableName(self, obj):
return str(obj)
def getValidators(self, obj):
try:
return obj.getValidators()
except:
return None
class Meta:
model = Project
fields = ('humanReadableName', 'validators', 'id','created','updated','enacted','policed','backend_register','backend_status','deleted','name',)
class ProjectIdSerializer(XOSModelSerializer):
id = IdField()
humanReadableName = serializers.SerializerMethodField("getHumanReadableName")
validators = serializers.SerializerMethodField("getValidators")
def getHumanReadableName(self, obj):
return str(obj)
def getValidators(self, obj):
try:
return obj.getValidators()
except:
return None
class Meta:
model = Project
fields = ('humanReadableName', 'validators', 'id','created','updated','enacted','policed','backend_register','backend_status','deleted','name',)
class SliceSerializer(serializers.HyperlinkedModelSerializer):
id = IdField()
networks = serializers.HyperlinkedRelatedField(many=True, read_only=True, view_name='network-detail')
networks = serializers.HyperlinkedRelatedField(many=True, read_only=True, view_name='network-detail')
humanReadableName = serializers.SerializerMethodField("getHumanReadableName")
validators = serializers.SerializerMethodField("getValidators")
def getHumanReadableName(self, obj):
return str(obj)
def getValidators(self, obj):
try:
return obj.getValidators()
except:
return None
class Meta:
model = Slice
fields = ('humanReadableName', 'validators', 'id','created','updated','enacted','policed','backend_register','backend_status','deleted','name','enabled','omf_friendly','description','slice_url','site','max_slivers','service','network','serviceClass','creator','default_flavor','default_image','mount_data_sets','networks','networks',)
class SliceIdSerializer(XOSModelSerializer):
id = IdField()
networks = serializers.PrimaryKeyRelatedField(many=True, queryset = Network.objects.all())
networks = serializers.PrimaryKeyRelatedField(many=True, queryset = Network.objects.all())
humanReadableName = serializers.SerializerMethodField("getHumanReadableName")
validators = serializers.SerializerMethodField("getValidators")
def getHumanReadableName(self, obj):
return str(obj)
def getValidators(self, obj):
try:
return obj.getValidators()
except:
return None
class Meta:
model = Slice
fields = ('humanReadableName', 'validators', 'id','created','updated','enacted','policed','backend_register','backend_status','deleted','name','enabled','omf_friendly','description','slice_url','site','max_slivers','service','network','serviceClass','creator','default_flavor','default_image','mount_data_sets','networks','networks',)
class NetworkSerializer(serializers.HyperlinkedModelSerializer):
id = IdField()
slices = serializers.HyperlinkedRelatedField(many=True, read_only=True, view_name='slice-detail')
slices = serializers.HyperlinkedRelatedField(many=True, read_only=True, view_name='slice-detail')
slivers = serializers.HyperlinkedRelatedField(many=True, read_only=True, view_name='sliver-detail')
routers = serializers.HyperlinkedRelatedField(many=True, read_only=True, view_name='router-detail')
routers = serializers.HyperlinkedRelatedField(many=True, read_only=True, view_name='router-detail')
humanReadableName = serializers.SerializerMethodField("getHumanReadableName")
validators = serializers.SerializerMethodField("getValidators")
def getHumanReadableName(self, obj):
return str(obj)
def getValidators(self, obj):
try:
return obj.getValidators()
except:
return None
class Meta:
model = Network
fields = ('humanReadableName', 'validators', 'id','created','updated','enacted','policed','backend_register','backend_status','deleted','name','template','subnet','ports','labels','owner','guaranteed_bandwidth','permit_all_slices','topology_parameters','controller_url','controller_parameters','network_id','router_id','subnet_id','slices','slices','slivers','routers','routers',)
class NetworkIdSerializer(XOSModelSerializer):
id = IdField()
slices = serializers.PrimaryKeyRelatedField(many=True, queryset = Slice.objects.all())
slices = serializers.PrimaryKeyRelatedField(many=True, queryset = Slice.objects.all())
slivers = serializers.PrimaryKeyRelatedField(many=True, queryset = Sliver.objects.all())
routers = serializers.PrimaryKeyRelatedField(many=True, queryset = Router.objects.all())
routers = serializers.PrimaryKeyRelatedField(many=True, queryset = Router.objects.all())
humanReadableName = serializers.SerializerMethodField("getHumanReadableName")
validators = serializers.SerializerMethodField("getValidators")
def getHumanReadableName(self, obj):
return str(obj)
def getValidators(self, obj):
try:
return obj.getValidators()
except:
return None
class Meta:
model = Network
fields = ('humanReadableName', 'validators', 'id','created','updated','enacted','policed','backend_register','backend_status','deleted','name','template','subnet','ports','labels','owner','guaranteed_bandwidth','permit_all_slices','topology_parameters','controller_url','controller_parameters','network_id','router_id','subnet_id','slices','slices','slivers','routers','routers',)
class ServiceSerializer(serializers.HyperlinkedModelSerializer):
id = IdField()
humanReadableName = serializers.SerializerMethodField("getHumanReadableName")
validators = serializers.SerializerMethodField("getValidators")
def getHumanReadableName(self, obj):
return str(obj)
def getValidators(self, obj):
try:
return obj.getValidators()
except:
return None
class Meta:
model = Service
fields = ('humanReadableName', 'validators', 'id','created','updated','enacted','policed','backend_register','backend_status','deleted','description','enabled','name','versionNumber','published',)
class ServiceIdSerializer(XOSModelSerializer):
id = IdField()
humanReadableName = serializers.SerializerMethodField("getHumanReadableName")
validators = serializers.SerializerMethodField("getValidators")
def getHumanReadableName(self, obj):
return str(obj)
def getValidators(self, obj):
try:
return obj.getValidators()
except:
return None
class Meta:
model = Service
fields = ('humanReadableName', 'validators', 'id','created','updated','enacted','policed','backend_register','backend_status','deleted','description','enabled','name','versionNumber','published',)
class ServiceClassSerializer(serializers.HyperlinkedModelSerializer):
id = IdField()
humanReadableName = serializers.SerializerMethodField("getHumanReadableName")
validators = serializers.SerializerMethodField("getValidators")
def getHumanReadableName(self, obj):
return str(obj)
def getValidators(self, obj):
try:
return obj.getValidators()
except:
return None
class Meta:
model = ServiceClass
fields = ('humanReadableName', 'validators', 'id','created','updated','enacted','policed','backend_register','backend_status','deleted','name','description','commitment','membershipFee','membershipFeeMonths','upgradeRequiresApproval',)
class ServiceClassIdSerializer(XOSModelSerializer):
id = IdField()
humanReadableName = serializers.SerializerMethodField("getHumanReadableName")
validators = serializers.SerializerMethodField("getValidators")
def getHumanReadableName(self, obj):
return str(obj)
def getValidators(self, obj):
try:
return obj.getValidators()
except:
return None
class Meta:
model = ServiceClass
fields = ('humanReadableName', 'validators', 'id','created','updated','enacted','policed','backend_register','backend_status','deleted','name','description','commitment','membershipFee','membershipFeeMonths','upgradeRequiresApproval',)
class PaymentSerializer(serializers.HyperlinkedModelSerializer):
id = IdField()
humanReadableName = serializers.SerializerMethodField("getHumanReadableName")
validators = serializers.SerializerMethodField("getValidators")
def getHumanReadableName(self, obj):
return str(obj)
def getValidators(self, obj):
try:
return obj.getValidators()
except:
return None
class Meta:
model = Payment
fields = ('humanReadableName', 'validators', 'id','created','updated','enacted','policed','backend_register','backend_status','deleted','account','amount','date',)
class PaymentIdSerializer(XOSModelSerializer):
id = IdField()
humanReadableName = serializers.SerializerMethodField("getHumanReadableName")
validators = serializers.SerializerMethodField("getValidators")
def getHumanReadableName(self, obj):
return str(obj)
def getValidators(self, obj):
try:
return obj.getValidators()
except:
return None
class Meta:
model = Payment
fields = ('humanReadableName', 'validators', 'id','created','updated','enacted','policed','backend_register','backend_status','deleted','account','amount','date',)
class ChargeSerializer(serializers.HyperlinkedModelSerializer):
id = IdField()
humanReadableName = serializers.SerializerMethodField("getHumanReadableName")
validators = serializers.SerializerMethodField("getValidators")
def getHumanReadableName(self, obj):
return str(obj)
def getValidators(self, obj):
try:
return obj.getValidators()
except:
return None
class Meta:
model = Charge
fields = ('humanReadableName', 'validators', 'id','created','updated','enacted','policed','backend_register','backend_status','deleted','account','slice','kind','state','date','object','amount','coreHours','invoice',)
class ChargeIdSerializer(XOSModelSerializer):
id = IdField()
humanReadableName = serializers.SerializerMethodField("getHumanReadableName")
validators = serializers.SerializerMethodField("getValidators")
def getHumanReadableName(self, obj):
return str(obj)
def getValidators(self, obj):
try:
return obj.getValidators()
except:
return None
class Meta:
model = Charge
fields = ('humanReadableName', 'validators', 'id','created','updated','enacted','policed','backend_register','backend_status','deleted','account','slice','kind','state','date','object','amount','coreHours','invoice',)
class RoleSerializer(serializers.HyperlinkedModelSerializer):
id = IdField()
humanReadableName = serializers.SerializerMethodField("getHumanReadableName")
validators = serializers.SerializerMethodField("getValidators")
def getHumanReadableName(self, obj):
return str(obj)
def getValidators(self, obj):
try:
return obj.getValidators()
except:
return None
class Meta:
model = Role
fields = ('humanReadableName', 'validators', 'id','created','updated','enacted','policed','backend_register','backend_status','deleted','role_type','role','description','content_type',)
class RoleIdSerializer(XOSModelSerializer):
id = IdField()
humanReadableName = serializers.SerializerMethodField("getHumanReadableName")
validators = serializers.SerializerMethodField("getValidators")
def getHumanReadableName(self, obj):
return str(obj)
def getValidators(self, obj):
try:
return obj.getValidators()
except:
return None
class Meta:
model = Role
fields = ('humanReadableName', 'validators', 'id','created','updated','enacted','policed','backend_register','backend_status','deleted','role_type','role','description','content_type',)
class UsableObjectSerializer(serializers.HyperlinkedModelSerializer):
id = IdField()
humanReadableName = serializers.SerializerMethodField("getHumanReadableName")
validators = serializers.SerializerMethodField("getValidators")
def getHumanReadableName(self, obj):
return str(obj)
def getValidators(self, obj):
try:
return obj.getValidators()
except:
return None
class Meta:
model = UsableObject
fields = ('humanReadableName', 'validators', 'id','created','updated','enacted','policed','backend_register','backend_status','deleted','name',)
class UsableObjectIdSerializer(XOSModelSerializer):
id = IdField()
humanReadableName = serializers.SerializerMethodField("getHumanReadableName")
validators = serializers.SerializerMethodField("getValidators")
def getHumanReadableName(self, obj):
return str(obj)
def getValidators(self, obj):
try:
return obj.getValidators()
except:
return None
class Meta:
model = UsableObject
fields = ('humanReadableName', 'validators', 'id','created','updated','enacted','policed','backend_register','backend_status','deleted','name',)
class SiteRoleSerializer(serializers.HyperlinkedModelSerializer):
id = IdField()
humanReadableName = serializers.SerializerMethodField("getHumanReadableName")
validators = serializers.SerializerMethodField("getValidators")
def getHumanReadableName(self, obj):
return str(obj)
def getValidators(self, obj):
try:
return obj.getValidators()
except:
return None
class Meta:
model = SiteRole
fields = ('humanReadableName', 'validators', 'id','created','updated','enacted','policed','backend_register','backend_status','deleted','role',)
class SiteRoleIdSerializer(XOSModelSerializer):
id = IdField()
humanReadableName = serializers.SerializerMethodField("getHumanReadableName")
validators = serializers.SerializerMethodField("getValidators")
def getHumanReadableName(self, obj):
return str(obj)
def getValidators(self, obj):
try:
return obj.getValidators()
except:
return None
class Meta:
model = SiteRole
fields = ('humanReadableName', 'validators', 'id','created','updated','enacted','policed','backend_register','backend_status','deleted','role',)
class SliceCredentialSerializer(serializers.HyperlinkedModelSerializer):
id = IdField()
humanReadableName = serializers.SerializerMethodField("getHumanReadableName")
validators = serializers.SerializerMethodField("getValidators")
def getHumanReadableName(self, obj):
return str(obj)
def getValidators(self, obj):
try:
return obj.getValidators()
except:
return None
class Meta:
model = SliceCredential
fields = ('humanReadableName', 'validators', 'id','created','updated','enacted','policed','backend_register','backend_status','deleted','slice','name','key_id','enc_value',)
class SliceCredentialIdSerializer(XOSModelSerializer):
id = IdField()
humanReadableName = serializers.SerializerMethodField("getHumanReadableName")
validators = serializers.SerializerMethodField("getValidators")
def getHumanReadableName(self, obj):
return str(obj)
def getValidators(self, obj):
try:
return obj.getValidators()
except:
return None
class Meta:
model = SliceCredential
fields = ('humanReadableName', 'validators', 'id','created','updated','enacted','policed','backend_register','backend_status','deleted','slice','name','key_id','enc_value',)
class SliverSerializer(serializers.HyperlinkedModelSerializer):
id = IdField()
networks = serializers.HyperlinkedRelatedField(many=True, read_only=True, view_name='network-detail')
humanReadableName = serializers.SerializerMethodField("getHumanReadableName")
validators = serializers.SerializerMethodField("getValidators")
def getHumanReadableName(self, obj):
return str(obj)
def getValidators(self, obj):
try:
return obj.getValidators()
except:
return None
class Meta:
model = Sliver
fields = ('humanReadableName', 'validators', 'id','created','updated','enacted','policed','backend_register','backend_status','deleted','instance_id','instance_uuid','name','instance_name','ip','image','creator','slice','deployment','node','numberCores','flavor','userData','networks',)
class SliverIdSerializer(XOSModelSerializer):
id = IdField()
networks = serializers.PrimaryKeyRelatedField(many=True, queryset = Network.objects.all())
humanReadableName = serializers.SerializerMethodField("getHumanReadableName")
validators = serializers.SerializerMethodField("getValidators")
def getHumanReadableName(self, obj):
return str(obj)
def getValidators(self, obj):
try:
return obj.getValidators()
except:
return None
class Meta:
model = Sliver
fields = ('humanReadableName', 'validators', 'id','created','updated','enacted','policed','backend_register','backend_status','deleted','instance_id','instance_uuid','name','instance_name','ip','image','creator','slice','deployment','node','numberCores','flavor','userData','networks',)
class NodeSerializer(serializers.HyperlinkedModelSerializer):
id = IdField()
humanReadableName = serializers.SerializerMethodField("getHumanReadableName")
validators = serializers.SerializerMethodField("getValidators")
def getHumanReadableName(self, obj):
return str(obj)
def getValidators(self, obj):
try:
return obj.getValidators()
except:
return None
class Meta:
model = Node
fields = ('humanReadableName', 'validators', 'id','created','updated','enacted','policed','backend_register','backend_status','deleted','name','site_deployment','site',)
class NodeIdSerializer(XOSModelSerializer):
id = IdField()
humanReadableName = serializers.SerializerMethodField("getHumanReadableName")
validators = serializers.SerializerMethodField("getValidators")
def getHumanReadableName(self, obj):
return str(obj)
def getValidators(self, obj):
try:
return obj.getValidators()
except:
return None
class Meta:
model = Node
fields = ('humanReadableName', 'validators', 'id','created','updated','enacted','policed','backend_register','backend_status','deleted','name','site_deployment','site',)
class DashboardViewSerializer(serializers.HyperlinkedModelSerializer):
id = IdField()
controllers = serializers.HyperlinkedRelatedField(many=True, read_only=True, view_name='controller-detail')
deployments = serializers.HyperlinkedRelatedField(many=True, read_only=True, view_name='deployment-detail')
humanReadableName = serializers.SerializerMethodField("getHumanReadableName")
validators = serializers.SerializerMethodField("getValidators")
def getHumanReadableName(self, obj):
return str(obj)
def getValidators(self, obj):
try:
return obj.getValidators()
except:
return None
class Meta:
model = DashboardView
fields = ('humanReadableName', 'validators', 'id','created','updated','enacted','policed','backend_register','backend_status','deleted','name','url','enabled','controllers','deployments',)
class DashboardViewIdSerializer(XOSModelSerializer):
id = IdField()
controllers = serializers.PrimaryKeyRelatedField(many=True, queryset = Controller.objects.all())
deployments = serializers.PrimaryKeyRelatedField(many=True, queryset = Deployment.objects.all())
humanReadableName = serializers.SerializerMethodField("getHumanReadableName")
validators = serializers.SerializerMethodField("getValidators")
def getHumanReadableName(self, obj):
return str(obj)
def getValidators(self, obj):
try:
return obj.getValidators()
except:
return None
class Meta:
model = DashboardView
fields = ('humanReadableName', 'validators', 'id','created','updated','enacted','policed','backend_register','backend_status','deleted','name','url','enabled','controllers','deployments',)
class ControllerNetworkSerializer(serializers.HyperlinkedModelSerializer):
id = IdField()
humanReadableName = serializers.SerializerMethodField("getHumanReadableName")
validators = serializers.SerializerMethodField("getValidators")
def getHumanReadableName(self, obj):
return str(obj)
def getValidators(self, obj):
try:
return obj.getValidators()
except:
return None
class Meta:
model = ControllerNetwork
fields = ('humanReadableName', 'validators', 'id','created','updated','enacted','policed','backend_register','backend_status','deleted','network','controller','net_id','router_id','subnet_id','subnet',)
class ControllerNetworkIdSerializer(XOSModelSerializer):
id = IdField()
humanReadableName = serializers.SerializerMethodField("getHumanReadableName")
validators = serializers.SerializerMethodField("getValidators")
def getHumanReadableName(self, obj):
return str(obj)
def getValidators(self, obj):
try:
return obj.getValidators()
except:
return None
class Meta:
model = ControllerNetwork
fields = ('humanReadableName', 'validators', 'id','created','updated','enacted','policed','backend_register','backend_status','deleted','network','controller','net_id','router_id','subnet_id','subnet',)
class ImageDeploymentsSerializer(serializers.HyperlinkedModelSerializer):
id = IdField()
humanReadableName = serializers.SerializerMethodField("getHumanReadableName")
validators = serializers.SerializerMethodField("getValidators")
def getHumanReadableName(self, obj):
return str(obj)
def getValidators(self, obj):
try:
return obj.getValidators()
except:
return None
class Meta:
model = ImageDeployments
fields = ('humanReadableName', 'validators', 'id','created','updated','enacted','policed','backend_register','backend_status','deleted','image','deployment',)
class ImageDeploymentsIdSerializer(XOSModelSerializer):
id = IdField()
humanReadableName = serializers.SerializerMethodField("getHumanReadableName")
validators = serializers.SerializerMethodField("getValidators")
def getHumanReadableName(self, obj):
return str(obj)
def getValidators(self, obj):
try:
return obj.getValidators()
except:
return None
class Meta:
model = ImageDeployments
fields = ('humanReadableName', 'validators', 'id','created','updated','enacted','policed','backend_register','backend_status','deleted','image','deployment',)
class ControllerUserSerializer(serializers.HyperlinkedModelSerializer):
id = IdField()
humanReadableName = serializers.SerializerMethodField("getHumanReadableName")
validators = serializers.SerializerMethodField("getValidators")
def getHumanReadableName(self, obj):
return str(obj)
def getValidators(self, obj):
try:
return obj.getValidators()
except:
return None
class Meta:
model = ControllerUser
fields = ('humanReadableName', 'validators', 'id','created','updated','enacted','policed','backend_register','backend_status','deleted','user','controller','kuser_id',)
class ControllerUserIdSerializer(XOSModelSerializer):
id = IdField()
humanReadableName = serializers.SerializerMethodField("getHumanReadableName")
validators = serializers.SerializerMethodField("getValidators")
def getHumanReadableName(self, obj):
return str(obj)
def getValidators(self, obj):
try:
return obj.getValidators()
except:
return None
class Meta:
model = ControllerUser
fields = ('humanReadableName', 'validators', 'id','created','updated','enacted','policed','backend_register','backend_status','deleted','user','controller','kuser_id',)
class ReservedResourceSerializer(serializers.HyperlinkedModelSerializer):
id = IdField()
humanReadableName = serializers.SerializerMethodField("getHumanReadableName")
validators = serializers.SerializerMethodField("getValidators")
def getHumanReadableName(self, obj):
return str(obj)
def getValidators(self, obj):
try:
return obj.getValidators()
except:
return None
class Meta:
model = ReservedResource
fields = ('humanReadableName', 'validators', 'id','created','updated','enacted','policed','backend_register','backend_status','deleted','sliver','resource','quantity','reservationSet',)
class ReservedResourceIdSerializer(XOSModelSerializer):
id = IdField()
humanReadableName = serializers.SerializerMethodField("getHumanReadableName")
validators = serializers.SerializerMethodField("getValidators")
def getHumanReadableName(self, obj):
return str(obj)
def getValidators(self, obj):
try:
return obj.getValidators()
except:
return None
class Meta:
model = ReservedResource
fields = ('humanReadableName', 'validators', 'id','created','updated','enacted','policed','backend_register','backend_status','deleted','sliver','resource','quantity','reservationSet',)
class NetworkSliceSerializer(serializers.HyperlinkedModelSerializer):
id = IdField()
humanReadableName = serializers.SerializerMethodField("getHumanReadableName")
validators = serializers.SerializerMethodField("getValidators")
def getHumanReadableName(self, obj):
return str(obj)
def getValidators(self, obj):
try:
return obj.getValidators()
except:
return None
class Meta:
model = NetworkSlice
fields = ('humanReadableName', 'validators', 'id','created','updated','enacted','policed','backend_register','backend_status','deleted','network','slice',)
class NetworkSliceIdSerializer(XOSModelSerializer):
id = IdField()
humanReadableName = serializers.SerializerMethodField("getHumanReadableName")
validators = serializers.SerializerMethodField("getValidators")
def getHumanReadableName(self, obj):
return str(obj)
def getValidators(self, obj):
try:
return obj.getValidators()
except:
return None
class Meta:
model = NetworkSlice
fields = ('humanReadableName', 'validators', 'id','created','updated','enacted','policed','backend_register','backend_status','deleted','network','slice',)
class UserDashboardViewSerializer(serializers.HyperlinkedModelSerializer):
id = IdField()
humanReadableName = serializers.SerializerMethodField("getHumanReadableName")
validators = serializers.SerializerMethodField("getValidators")
def getHumanReadableName(self, obj):
return str(obj)
def getValidators(self, obj):
try:
return obj.getValidators()
except:
return None
class Meta:
model = UserDashboardView
fields = ('humanReadableName', 'validators', 'id','created','updated','enacted','policed','backend_register','backend_status','deleted','user','dashboardView','order',)
class UserDashboardViewIdSerializer(XOSModelSerializer):
id = IdField()
humanReadableName = serializers.SerializerMethodField("getHumanReadableName")
validators = serializers.SerializerMethodField("getValidators")
def getHumanReadableName(self, obj):
return str(obj)
def getValidators(self, obj):
try:
return obj.getValidators()
except:
return None
class Meta:
model = UserDashboardView
fields = ('humanReadableName', 'validators', 'id','created','updated','enacted','policed','backend_register','backend_status','deleted','user','dashboardView','order',)
class ControllerSerializer(serializers.HyperlinkedModelSerializer):
id = IdField()
dashboardviews = serializers.HyperlinkedRelatedField(many=True, read_only=True, view_name='dashboardview-detail')
humanReadableName = serializers.SerializerMethodField("getHumanReadableName")
validators = serializers.SerializerMethodField("getValidators")
def getHumanReadableName(self, obj):
return str(obj)
def getValidators(self, obj):
try:
return obj.getValidators()
except:
return None
class Meta:
model = Controller
fields = ('humanReadableName', 'validators', 'id','created','updated','enacted','policed','backend_register','backend_status','deleted','name','backend_type','version','auth_url','admin_user','admin_password','admin_tenant','domain','deployment','dashboardviews',)
class ControllerIdSerializer(XOSModelSerializer):
id = IdField()
dashboardviews = serializers.PrimaryKeyRelatedField(many=True, queryset = DashboardView.objects.all())
humanReadableName = serializers.SerializerMethodField("getHumanReadableName")
validators = serializers.SerializerMethodField("getValidators")
def getHumanReadableName(self, obj):
return str(obj)
def getValidators(self, obj):
try:
return obj.getValidators()
except:
return None
class Meta:
model = Controller
fields = ('humanReadableName', 'validators', 'id','created','updated','enacted','policed','backend_register','backend_status','deleted','name','backend_type','version','auth_url','admin_user','admin_password','admin_tenant','domain','deployment','dashboardviews',)
class UserSerializer(serializers.HyperlinkedModelSerializer):
id = IdField()
humanReadableName = serializers.SerializerMethodField("getHumanReadableName")
validators = serializers.SerializerMethodField("getValidators")
def getHumanReadableName(self, obj):
return str(obj)
def getValidators(self, obj):
try:
return obj.getValidators()
except:
return None
class Meta:
model = User
fields = ('humanReadableName', 'validators', 'id','password','last_login','email','username','firstname','lastname','phone','user_url','site','public_key','is_active','is_admin','is_staff','is_readonly','is_registering','created','updated','enacted','policed','backend_status','deleted','timezone',)
class UserIdSerializer(XOSModelSerializer):
id = IdField()
humanReadableName = serializers.SerializerMethodField("getHumanReadableName")
validators = serializers.SerializerMethodField("getValidators")
def getHumanReadableName(self, obj):
return str(obj)
def getValidators(self, obj):
try:
return obj.getValidators()
except:
return None
class Meta:
model = User
fields = ('humanReadableName', 'validators', 'id','password','last_login','email','username','firstname','lastname','phone','user_url','site','public_key','is_active','is_admin','is_staff','is_readonly','is_registering','created','updated','enacted','policed','backend_status','deleted','timezone',)
class DeploymentSerializer(serializers.HyperlinkedModelSerializer):
id = IdField()
images = serializers.HyperlinkedRelatedField(many=True, read_only=True, view_name='image-detail')
sites = serializers.HyperlinkedRelatedField(many=True, read_only=True, view_name='site-detail')
flavors = serializers.HyperlinkedRelatedField(many=True, read_only=True, view_name='flavor-detail')
dashboardviews = serializers.HyperlinkedRelatedField(many=True, read_only=True, view_name='dashboardview-detail')
humanReadableName = serializers.SerializerMethodField("getHumanReadableName")
validators = serializers.SerializerMethodField("getValidators")
def getHumanReadableName(self, obj):
return str(obj)
def getValidators(self, obj):
try:
return obj.getValidators()
except:
return None
class Meta:
model = Deployment
fields = ('humanReadableName', 'validators', 'id','created','updated','enacted','policed','backend_register','backend_status','deleted','name','accessControl','images','sites','flavors','dashboardviews',)
class DeploymentIdSerializer(XOSModelSerializer):
id = IdField()
images = serializers.PrimaryKeyRelatedField(many=True, queryset = Image.objects.all())
sites = serializers.PrimaryKeyRelatedField(many=True, queryset = Site.objects.all())
flavors = serializers.PrimaryKeyRelatedField(many=True, queryset = Flavor.objects.all())
dashboardviews = serializers.PrimaryKeyRelatedField(many=True, queryset = DashboardView.objects.all())
humanReadableName = serializers.SerializerMethodField("getHumanReadableName")
validators = serializers.SerializerMethodField("getValidators")
def getHumanReadableName(self, obj):
return str(obj)
def getValidators(self, obj):
try:
return obj.getValidators()
except:
return None
class Meta:
model = Deployment
fields = ('humanReadableName', 'validators', 'id','created','updated','enacted','policed','backend_register','backend_status','deleted','name','accessControl','images','sites','flavors','dashboardviews',)
class ReservationSerializer(serializers.HyperlinkedModelSerializer):
id = IdField()
humanReadableName = serializers.SerializerMethodField("getHumanReadableName")
validators = serializers.SerializerMethodField("getValidators")
def getHumanReadableName(self, obj):
return str(obj)
def getValidators(self, obj):
try:
return obj.getValidators()
except:
return None
class Meta:
model = Reservation
fields = ('humanReadableName', 'validators', 'id','created','updated','enacted','policed','backend_register','backend_status','deleted','startTime','slice','duration',)
class ReservationIdSerializer(XOSModelSerializer):
id = IdField()
humanReadableName = serializers.SerializerMethodField("getHumanReadableName")
validators = serializers.SerializerMethodField("getValidators")
def getHumanReadableName(self, obj):
return str(obj)
def getValidators(self, obj):
try:
return obj.getValidators()
except:
return None
class Meta:
model = Reservation
fields = ('humanReadableName', 'validators', 'id','created','updated','enacted','policed','backend_register','backend_status','deleted','startTime','slice','duration',)
class SitePrivilegeSerializer(serializers.HyperlinkedModelSerializer):
id = IdField()
humanReadableName = serializers.SerializerMethodField("getHumanReadableName")
validators = serializers.SerializerMethodField("getValidators")
def getHumanReadableName(self, obj):
return str(obj)
def getValidators(self, obj):
try:
return obj.getValidators()
except:
return None
class Meta:
model = SitePrivilege
fields = ('humanReadableName', 'validators', 'id','created','updated','enacted','policed','backend_register','backend_status','deleted','user','site','role',)
class SitePrivilegeIdSerializer(XOSModelSerializer):
id = IdField()
humanReadableName = serializers.SerializerMethodField("getHumanReadableName")
validators = serializers.SerializerMethodField("getValidators")
def getHumanReadableName(self, obj):
return str(obj)
def getValidators(self, obj):
try:
return obj.getValidators()
except:
return None
class Meta:
model = SitePrivilege
fields = ('humanReadableName', 'validators', 'id','created','updated','enacted','policed','backend_register','backend_status','deleted','user','site','role',)
class ControllerSliceSerializer(serializers.HyperlinkedModelSerializer):
id = IdField()
humanReadableName = serializers.SerializerMethodField("getHumanReadableName")
validators = serializers.SerializerMethodField("getValidators")
def getHumanReadableName(self, obj):
return str(obj)
def getValidators(self, obj):
try:
return obj.getValidators()
except:
return None
class Meta:
model = ControllerSlice
fields = ('humanReadableName', 'validators', 'id','created','updated','enacted','policed','backend_register','backend_status','deleted','controller','slice','tenant_id',)
class ControllerSliceIdSerializer(XOSModelSerializer):
id = IdField()
humanReadableName = serializers.SerializerMethodField("getHumanReadableName")
validators = serializers.SerializerMethodField("getValidators")
def getHumanReadableName(self, obj):
return str(obj)
def getValidators(self, obj):
try:
return obj.getValidators()
except:
return None
class Meta:
model = ControllerSlice
fields = ('humanReadableName', 'validators', 'id','created','updated','enacted','policed','backend_register','backend_status','deleted','controller','slice','tenant_id',)
class ControllerDashboardViewSerializer(serializers.HyperlinkedModelSerializer):
id = IdField()
humanReadableName = serializers.SerializerMethodField("getHumanReadableName")
validators = serializers.SerializerMethodField("getValidators")
def getHumanReadableName(self, obj):
return str(obj)
def getValidators(self, obj):
try:
return obj.getValidators()
except:
return None
class Meta:
model = ControllerDashboardView
fields = ('humanReadableName', 'validators', 'id','created','updated','enacted','policed','backend_register','backend_status','deleted','controller','dashboardView','enabled','url',)
class ControllerDashboardViewIdSerializer(XOSModelSerializer):
id = IdField()
humanReadableName = serializers.SerializerMethodField("getHumanReadableName")
validators = serializers.SerializerMethodField("getValidators")
def getHumanReadableName(self, obj):
return str(obj)
def getValidators(self, obj):
try:
return obj.getValidators()
except:
return None
class Meta:
model = ControllerDashboardView
fields = ('humanReadableName', 'validators', 'id','created','updated','enacted','policed','backend_register','backend_status','deleted','controller','dashboardView','enabled','url',)
class AccountSerializer(serializers.HyperlinkedModelSerializer):
id = IdField()
humanReadableName = serializers.SerializerMethodField("getHumanReadableName")
validators = serializers.SerializerMethodField("getValidators")
def getHumanReadableName(self, obj):
return str(obj)
def getValidators(self, obj):
try:
return obj.getValidators()
except:
return None
class Meta:
model = Account
fields = ('humanReadableName', 'validators', 'id','created','updated','enacted','policed','backend_register','backend_status','deleted','site',)
class AccountIdSerializer(XOSModelSerializer):
id = IdField()
humanReadableName = serializers.SerializerMethodField("getHumanReadableName")
validators = serializers.SerializerMethodField("getValidators")
def getHumanReadableName(self, obj):
return str(obj)
def getValidators(self, obj):
try:
return obj.getValidators()
except:
return None
class Meta:
model = Account
fields = ('humanReadableName', 'validators', 'id','created','updated','enacted','policed','backend_register','backend_status','deleted','site',)
class ControllerRoleSerializer(serializers.HyperlinkedModelSerializer):
id = IdField()
humanReadableName = serializers.SerializerMethodField("getHumanReadableName")
validators = serializers.SerializerMethodField("getValidators")
def getHumanReadableName(self, obj):
return str(obj)
def getValidators(self, obj):
try:
return obj.getValidators()
except:
return None
class Meta:
model = ControllerRole
fields = ('humanReadableName', 'validators', 'id','created','updated','enacted','policed','backend_register','backend_status','deleted','role',)
class ControllerRoleIdSerializer(XOSModelSerializer):
id = IdField()
humanReadableName = serializers.SerializerMethodField("getHumanReadableName")
validators = serializers.SerializerMethodField("getValidators")
def getHumanReadableName(self, obj):
return str(obj)
def getValidators(self, obj):
try:
return obj.getValidators()
except:
return None
class Meta:
model = ControllerRole
fields = ('humanReadableName', 'validators', 'id','created','updated','enacted','policed','backend_register','backend_status','deleted','role',)
class NetworkParameterTypeSerializer(serializers.HyperlinkedModelSerializer):
id = IdField()
humanReadableName = serializers.SerializerMethodField("getHumanReadableName")
validators = serializers.SerializerMethodField("getValidators")
def getHumanReadableName(self, obj):
return str(obj)
def getValidators(self, obj):
try:
return obj.getValidators()
except:
return None
class Meta:
model = NetworkParameterType
fields = ('humanReadableName', 'validators', 'id','created','updated','enacted','policed','backend_register','backend_status','deleted','name','description',)
class NetworkParameterTypeIdSerializer(XOSModelSerializer):
id = IdField()
humanReadableName = serializers.SerializerMethodField("getHumanReadableName")
validators = serializers.SerializerMethodField("getValidators")
def getHumanReadableName(self, obj):
return str(obj)
def getValidators(self, obj):
try:
return obj.getValidators()
except:
return None
class Meta:
model = NetworkParameterType
fields = ('humanReadableName', 'validators', 'id','created','updated','enacted','policed','backend_register','backend_status','deleted','name','description',)
class SiteCredentialSerializer(serializers.HyperlinkedModelSerializer):
id = IdField()
humanReadableName = serializers.SerializerMethodField("getHumanReadableName")
validators = serializers.SerializerMethodField("getValidators")
def getHumanReadableName(self, obj):
return str(obj)
def getValidators(self, obj):
try:
return obj.getValidators()
except:
return None
class Meta:
model = SiteCredential
fields = ('humanReadableName', 'validators', 'id','created','updated','enacted','policed','backend_register','backend_status','deleted','site','name','key_id','enc_value',)
class SiteCredentialIdSerializer(XOSModelSerializer):
id = IdField()
humanReadableName = serializers.SerializerMethodField("getHumanReadableName")
validators = serializers.SerializerMethodField("getValidators")
def getHumanReadableName(self, obj):
return str(obj)
def getValidators(self, obj):
try:
return obj.getValidators()
except:
return None
class Meta:
model = SiteCredential
fields = ('humanReadableName', 'validators', 'id','created','updated','enacted','policed','backend_register','backend_status','deleted','site','name','key_id','enc_value',)
class DeploymentPrivilegeSerializer(serializers.HyperlinkedModelSerializer):
id = IdField()
humanReadableName = serializers.SerializerMethodField("getHumanReadableName")
validators = serializers.SerializerMethodField("getValidators")
def getHumanReadableName(self, obj):
return str(obj)
def getValidators(self, obj):
try:
return obj.getValidators()
except:
return None
class Meta:
model = DeploymentPrivilege
fields = ('humanReadableName', 'validators', 'id','created','updated','enacted','policed','backend_register','backend_status','deleted','user','deployment','role',)
class DeploymentPrivilegeIdSerializer(XOSModelSerializer):
id = IdField()
humanReadableName = serializers.SerializerMethodField("getHumanReadableName")
validators = serializers.SerializerMethodField("getValidators")
def getHumanReadableName(self, obj):
return str(obj)
def getValidators(self, obj):
try:
return obj.getValidators()
except:
return None
class Meta:
model = DeploymentPrivilege
fields = ('humanReadableName', 'validators', 'id','created','updated','enacted','policed','backend_register','backend_status','deleted','user','deployment','role',)
class ControllerSlicePrivilegeSerializer(serializers.HyperlinkedModelSerializer):
id = IdField()
humanReadableName = serializers.SerializerMethodField("getHumanReadableName")
validators = serializers.SerializerMethodField("getValidators")
def getHumanReadableName(self, obj):
return str(obj)
def getValidators(self, obj):
try:
return obj.getValidators()
except:
return None
class Meta:
model = ControllerSlicePrivilege
fields = ('humanReadableName', 'validators', 'id','created','updated','enacted','policed','backend_register','backend_status','deleted','controller','slice_privilege','role_id',)
class ControllerSlicePrivilegeIdSerializer(XOSModelSerializer):
id = IdField()
humanReadableName = serializers.SerializerMethodField("getHumanReadableName")
validators = serializers.SerializerMethodField("getValidators")
def getHumanReadableName(self, obj):
return str(obj)
def getValidators(self, obj):
try:
return obj.getValidators()
except:
return None
class Meta:
model = ControllerSlicePrivilege
fields = ('humanReadableName', 'validators', 'id','created','updated','enacted','policed','backend_register','backend_status','deleted','controller','slice_privilege','role_id',)
class SiteDeploymentSerializer(serializers.HyperlinkedModelSerializer):
id = IdField()
humanReadableName = serializers.SerializerMethodField("getHumanReadableName")
validators = serializers.SerializerMethodField("getValidators")
def getHumanReadableName(self, obj):
return str(obj)
def getValidators(self, obj):
try:
return obj.getValidators()
except:
return None
class Meta:
model = SiteDeployment
fields = ('humanReadableName', 'validators', 'id','created','updated','enacted','policed','backend_register','backend_status','deleted','site','deployment','controller','availability_zone',)
class SiteDeploymentIdSerializer(XOSModelSerializer):
id = IdField()
humanReadableName = serializers.SerializerMethodField("getHumanReadableName")
validators = serializers.SerializerMethodField("getValidators")
def getHumanReadableName(self, obj):
return str(obj)
def getValidators(self, obj):
try:
return obj.getValidators()
except:
return None
class Meta:
model = SiteDeployment
fields = ('humanReadableName', 'validators', 'id','created','updated','enacted','policed','backend_register','backend_status','deleted','site','deployment','controller','availability_zone',)
class DeploymentRoleSerializer(serializers.HyperlinkedModelSerializer):
id = IdField()
humanReadableName = serializers.SerializerMethodField("getHumanReadableName")
validators = serializers.SerializerMethodField("getValidators")
def getHumanReadableName(self, obj):
return str(obj)
def getValidators(self, obj):
try:
return obj.getValidators()
except:
return None
class Meta:
model = DeploymentRole
fields = ('humanReadableName', 'validators', 'id','created','updated','enacted','policed','backend_register','backend_status','deleted','role',)
class DeploymentRoleIdSerializer(XOSModelSerializer):
id = IdField()
humanReadableName = serializers.SerializerMethodField("getHumanReadableName")
validators = serializers.SerializerMethodField("getValidators")
def getHumanReadableName(self, obj):
return str(obj)
def getValidators(self, obj):
try:
return obj.getValidators()
except:
return None
class Meta:
model = DeploymentRole
fields = ('humanReadableName', 'validators', 'id','created','updated','enacted','policed','backend_register','backend_status','deleted','role',)
class UserCredentialSerializer(serializers.HyperlinkedModelSerializer):
id = IdField()
humanReadableName = serializers.SerializerMethodField("getHumanReadableName")
validators = serializers.SerializerMethodField("getValidators")
def getHumanReadableName(self, obj):
return str(obj)
def getValidators(self, obj):
try:
return obj.getValidators()
except:
return None
class Meta:
model = UserCredential
fields = ('humanReadableName', 'validators', 'id','created','updated','enacted','policed','backend_register','backend_status','deleted','user','name','key_id','enc_value',)
class UserCredentialIdSerializer(XOSModelSerializer):
id = IdField()
humanReadableName = serializers.SerializerMethodField("getHumanReadableName")
validators = serializers.SerializerMethodField("getValidators")
def getHumanReadableName(self, obj):
return str(obj)
def getValidators(self, obj):
try:
return obj.getValidators()
except:
return None
class Meta:
model = UserCredential
fields = ('humanReadableName', 'validators', 'id','created','updated','enacted','policed','backend_register','backend_status','deleted','user','name','key_id','enc_value',)
class SliceTagSerializer(serializers.HyperlinkedModelSerializer):
id = IdField()
humanReadableName = serializers.SerializerMethodField("getHumanReadableName")
validators = serializers.SerializerMethodField("getValidators")
def getHumanReadableName(self, obj):
return str(obj)
def getValidators(self, obj):
try:
return obj.getValidators()
except:
return None
class Meta:
model = SliceTag
fields = ('humanReadableName', 'validators', 'id','created','updated','enacted','policed','backend_register','backend_status','deleted','slice','name','value',)
class SliceTagIdSerializer(XOSModelSerializer):
id = IdField()
humanReadableName = serializers.SerializerMethodField("getHumanReadableName")
validators = serializers.SerializerMethodField("getValidators")
def getHumanReadableName(self, obj):
return str(obj)
def getValidators(self, obj):
try:
return obj.getValidators()
except:
return None
class Meta:
model = SliceTag
fields = ('humanReadableName', 'validators', 'id','created','updated','enacted','policed','backend_register','backend_status','deleted','slice','name','value',)
class NetworkTemplateSerializer(serializers.HyperlinkedModelSerializer):
id = IdField()
humanReadableName = serializers.SerializerMethodField("getHumanReadableName")
validators = serializers.SerializerMethodField("getValidators")
def getHumanReadableName(self, obj):
return str(obj)
def getValidators(self, obj):
try:
return obj.getValidators()
except:
return None
class Meta:
model = NetworkTemplate
fields = ('humanReadableName', 'validators', 'id','created','updated','enacted','policed','backend_register','backend_status','deleted','name','description','guaranteed_bandwidth','visibility','translation','shared_network_name','shared_network_id','topology_kind','controller_kind',)
class NetworkTemplateIdSerializer(XOSModelSerializer):
id = IdField()
humanReadableName = serializers.SerializerMethodField("getHumanReadableName")
validators = serializers.SerializerMethodField("getValidators")
def getHumanReadableName(self, obj):
return str(obj)
def getValidators(self, obj):
try:
return obj.getValidators()
except:
return None
class Meta:
model = NetworkTemplate
fields = ('humanReadableName', 'validators', 'id','created','updated','enacted','policed','backend_register','backend_status','deleted','name','description','guaranteed_bandwidth','visibility','translation','shared_network_name','shared_network_id','topology_kind','controller_kind',)
class RouterSerializer(serializers.HyperlinkedModelSerializer):
id = IdField()
networks = serializers.HyperlinkedRelatedField(many=True, read_only=True, view_name='network-detail')
networks = serializers.HyperlinkedRelatedField(many=True, read_only=True, view_name='network-detail')
humanReadableName = serializers.SerializerMethodField("getHumanReadableName")
validators = serializers.SerializerMethodField("getValidators")
def getHumanReadableName(self, obj):
return str(obj)
def getValidators(self, obj):
try:
return obj.getValidators()
except:
return None
class Meta:
model = Router
fields = ('humanReadableName', 'validators', 'id','created','updated','enacted','policed','backend_register','backend_status','deleted','name','owner','networks','networks',)
class RouterIdSerializer(XOSModelSerializer):
id = IdField()
networks = serializers.PrimaryKeyRelatedField(many=True, queryset = Network.objects.all())
networks = serializers.PrimaryKeyRelatedField(many=True, queryset = Network.objects.all())
humanReadableName = serializers.SerializerMethodField("getHumanReadableName")
validators = serializers.SerializerMethodField("getValidators")
def getHumanReadableName(self, obj):
return str(obj)
def getValidators(self, obj):
try:
return obj.getValidators()
except:
return None
class Meta:
model = Router
fields = ('humanReadableName', 'validators', 'id','created','updated','enacted','policed','backend_register','backend_status','deleted','name','owner','networks','networks',)
class ServiceResourceSerializer(serializers.HyperlinkedModelSerializer):
id = IdField()
humanReadableName = serializers.SerializerMethodField("getHumanReadableName")
validators = serializers.SerializerMethodField("getValidators")
def getHumanReadableName(self, obj):
return str(obj)
def getValidators(self, obj):
try:
return obj.getValidators()
except:
return None
class Meta:
model = ServiceResource
fields = ('humanReadableName', 'validators', 'id','created','updated','enacted','policed','backend_register','backend_status','deleted','serviceClass','name','maxUnitsDeployment','maxUnitsNode','maxDuration','bucketInRate','bucketMaxSize','cost','calendarReservable',)
class ServiceResourceIdSerializer(XOSModelSerializer):
id = IdField()
humanReadableName = serializers.SerializerMethodField("getHumanReadableName")
validators = serializers.SerializerMethodField("getValidators")
def getHumanReadableName(self, obj):
return str(obj)
def getValidators(self, obj):
try:
return obj.getValidators()
except:
return None
class Meta:
model = ServiceResource
fields = ('humanReadableName', 'validators', 'id','created','updated','enacted','policed','backend_register','backend_status','deleted','serviceClass','name','maxUnitsDeployment','maxUnitsNode','maxDuration','bucketInRate','bucketMaxSize','cost','calendarReservable',)
serializerLookUp = {
ServiceAttribute: ServiceAttributeSerializer,
ControllerImages: ControllerImagesSerializer,
ControllerSitePrivilege: ControllerSitePrivilegeSerializer,
Image: ImageSerializer,
NetworkParameter: NetworkParameterSerializer,
Site: SiteSerializer,
SliceRole: SliceRoleSerializer,
Tag: TagSerializer,
Invoice: InvoiceSerializer,
SlicePrivilege: SlicePrivilegeSerializer,
NetworkSliver: NetworkSliverSerializer,
Flavor: FlavorSerializer,
ControllerSite: ControllerSiteSerializer,
Project: ProjectSerializer,
Slice: SliceSerializer,
Network: NetworkSerializer,
Service: ServiceSerializer,
ServiceClass: ServiceClassSerializer,
Payment: PaymentSerializer,
Charge: ChargeSerializer,
Role: RoleSerializer,
UsableObject: UsableObjectSerializer,
SiteRole: SiteRoleSerializer,
SliceCredential: SliceCredentialSerializer,
Sliver: SliverSerializer,
Node: NodeSerializer,
DashboardView: DashboardViewSerializer,
ControllerNetwork: ControllerNetworkSerializer,
ImageDeployments: ImageDeploymentsSerializer,
ControllerUser: ControllerUserSerializer,
ReservedResource: ReservedResourceSerializer,
NetworkSlice: NetworkSliceSerializer,
UserDashboardView: UserDashboardViewSerializer,
Controller: ControllerSerializer,
User: UserSerializer,
Deployment: DeploymentSerializer,
Reservation: ReservationSerializer,
SitePrivilege: SitePrivilegeSerializer,
ControllerSlice: ControllerSliceSerializer,
ControllerDashboardView: ControllerDashboardViewSerializer,
Account: AccountSerializer,
ControllerRole: ControllerRoleSerializer,
NetworkParameterType: NetworkParameterTypeSerializer,
SiteCredential: SiteCredentialSerializer,
DeploymentPrivilege: DeploymentPrivilegeSerializer,
ControllerSlicePrivilege: ControllerSlicePrivilegeSerializer,
SiteDeployment: SiteDeploymentSerializer,
DeploymentRole: DeploymentRoleSerializer,
UserCredential: UserCredentialSerializer,
SliceTag: SliceTagSerializer,
NetworkTemplate: NetworkTemplateSerializer,
Router: RouterSerializer,
ServiceResource: ServiceResourceSerializer,
None: None,
}
# Based on core/views/*.py
class ServiceAttributeList(XOSListCreateAPIView):
queryset = ServiceAttribute.objects.select_related().all()
serializer_class = ServiceAttributeSerializer
id_serializer_class = ServiceAttributeIdSerializer
filter_backends = (filters.DjangoFilterBackend,)
filter_fields = ('id','created','updated','enacted','policed','backend_register','backend_status','deleted','name','value','service',)
def get_serializer_class(self):
no_hyperlinks=False
if hasattr(self.request,"QUERY_PARAMS"):
no_hyperlinks = self.request.QUERY_PARAMS.get('no_hyperlinks', False)
if (no_hyperlinks):
return self.id_serializer_class
else:
return self.serializer_class
def get_queryset(self):
if (not self.request.user.is_authenticated()):
raise XOSNotAuthenticated()
return ServiceAttribute.select_by_user(self.request.user)
class ServiceAttributeDetail(XOSRetrieveUpdateDestroyAPIView):
queryset = ServiceAttribute.objects.select_related().all()
serializer_class = ServiceAttributeSerializer
id_serializer_class = ServiceAttributeIdSerializer
def get_serializer_class(self):
no_hyperlinks=False
if hasattr(self.request,"QUERY_PARAMS"):
no_hyperlinks = self.request.QUERY_PARAMS.get('no_hyperlinks', False)
if (no_hyperlinks):
return self.id_serializer_class
else:
return self.serializer_class
def get_queryset(self):
if (not self.request.user.is_authenticated()):
raise XOSNotAuthenticated()
return ServiceAttribute.select_by_user(self.request.user)
# update() is handled by XOSRetrieveUpdateDestroyAPIView
# destroy() is handled by XOSRetrieveUpdateDestroyAPIView
class ControllerImagesList(XOSListCreateAPIView):
queryset = ControllerImages.objects.select_related().all()
serializer_class = ControllerImagesSerializer
id_serializer_class = ControllerImagesIdSerializer
filter_backends = (filters.DjangoFilterBackend,)
filter_fields = ('id','created','updated','enacted','policed','backend_register','backend_status','deleted','image','controller','glance_image_id',)
def get_serializer_class(self):
no_hyperlinks=False
if hasattr(self.request,"QUERY_PARAMS"):
no_hyperlinks = self.request.QUERY_PARAMS.get('no_hyperlinks', False)
if (no_hyperlinks):
return self.id_serializer_class
else:
return self.serializer_class
def get_queryset(self):
if (not self.request.user.is_authenticated()):
raise XOSNotAuthenticated()
return ControllerImages.select_by_user(self.request.user)
class ControllerImagesDetail(XOSRetrieveUpdateDestroyAPIView):
queryset = ControllerImages.objects.select_related().all()
serializer_class = ControllerImagesSerializer
id_serializer_class = ControllerImagesIdSerializer
def get_serializer_class(self):
no_hyperlinks=False
if hasattr(self.request,"QUERY_PARAMS"):
no_hyperlinks = self.request.QUERY_PARAMS.get('no_hyperlinks', False)
if (no_hyperlinks):
return self.id_serializer_class
else:
return self.serializer_class
def get_queryset(self):
if (not self.request.user.is_authenticated()):
raise XOSNotAuthenticated()
return ControllerImages.select_by_user(self.request.user)
# update() is handled by XOSRetrieveUpdateDestroyAPIView
# destroy() is handled by XOSRetrieveUpdateDestroyAPIView
class ControllerSitePrivilegeList(XOSListCreateAPIView):
queryset = ControllerSitePrivilege.objects.select_related().all()
serializer_class = ControllerSitePrivilegeSerializer
id_serializer_class = ControllerSitePrivilegeIdSerializer
filter_backends = (filters.DjangoFilterBackend,)
filter_fields = ('id','created','updated','enacted','policed','backend_register','backend_status','deleted','controller','site_privilege','role_id',)
def get_serializer_class(self):
no_hyperlinks=False
if hasattr(self.request,"QUERY_PARAMS"):
no_hyperlinks = self.request.QUERY_PARAMS.get('no_hyperlinks', False)
if (no_hyperlinks):
return self.id_serializer_class
else:
return self.serializer_class
def get_queryset(self):
if (not self.request.user.is_authenticated()):
raise XOSNotAuthenticated()
return ControllerSitePrivilege.select_by_user(self.request.user)
class ControllerSitePrivilegeDetail(XOSRetrieveUpdateDestroyAPIView):
queryset = ControllerSitePrivilege.objects.select_related().all()
serializer_class = ControllerSitePrivilegeSerializer
id_serializer_class = ControllerSitePrivilegeIdSerializer
def get_serializer_class(self):
no_hyperlinks=False
if hasattr(self.request,"QUERY_PARAMS"):
no_hyperlinks = self.request.QUERY_PARAMS.get('no_hyperlinks', False)
if (no_hyperlinks):
return self.id_serializer_class
else:
return self.serializer_class
def get_queryset(self):
if (not self.request.user.is_authenticated()):
raise XOSNotAuthenticated()
return ControllerSitePrivilege.select_by_user(self.request.user)
# update() is handled by XOSRetrieveUpdateDestroyAPIView
# destroy() is handled by XOSRetrieveUpdateDestroyAPIView
class ImageList(XOSListCreateAPIView):
queryset = Image.objects.select_related().all()
serializer_class = ImageSerializer
id_serializer_class = ImageIdSerializer
filter_backends = (filters.DjangoFilterBackend,)
filter_fields = ('id','created','updated','enacted','policed','backend_register','backend_status','deleted','name','disk_format','container_format','path','deployments',)
def get_serializer_class(self):
no_hyperlinks=False
if hasattr(self.request,"QUERY_PARAMS"):
no_hyperlinks = self.request.QUERY_PARAMS.get('no_hyperlinks', False)
if (no_hyperlinks):
return self.id_serializer_class
else:
return self.serializer_class
def get_queryset(self):
if (not self.request.user.is_authenticated()):
raise XOSNotAuthenticated()
return Image.select_by_user(self.request.user)
class ImageDetail(XOSRetrieveUpdateDestroyAPIView):
queryset = Image.objects.select_related().all()
serializer_class = ImageSerializer
id_serializer_class = ImageIdSerializer
def get_serializer_class(self):
no_hyperlinks=False
if hasattr(self.request,"QUERY_PARAMS"):
no_hyperlinks = self.request.QUERY_PARAMS.get('no_hyperlinks', False)
if (no_hyperlinks):
return self.id_serializer_class
else:
return self.serializer_class
def get_queryset(self):
if (not self.request.user.is_authenticated()):
raise XOSNotAuthenticated()
return Image.select_by_user(self.request.user)
# update() is handled by XOSRetrieveUpdateDestroyAPIView
# destroy() is handled by XOSRetrieveUpdateDestroyAPIView
class NetworkParameterList(XOSListCreateAPIView):
queryset = NetworkParameter.objects.select_related().all()
serializer_class = NetworkParameterSerializer
id_serializer_class = NetworkParameterIdSerializer
filter_backends = (filters.DjangoFilterBackend,)
filter_fields = ('id','created','updated','enacted','policed','backend_register','backend_status','deleted','parameter','value','content_type','object_id',)
def get_serializer_class(self):
no_hyperlinks=False
if hasattr(self.request,"QUERY_PARAMS"):
no_hyperlinks = self.request.QUERY_PARAMS.get('no_hyperlinks', False)
if (no_hyperlinks):
return self.id_serializer_class
else:
return self.serializer_class
def get_queryset(self):
if (not self.request.user.is_authenticated()):
raise XOSNotAuthenticated()
return NetworkParameter.select_by_user(self.request.user)
class NetworkParameterDetail(XOSRetrieveUpdateDestroyAPIView):
queryset = NetworkParameter.objects.select_related().all()
serializer_class = NetworkParameterSerializer
id_serializer_class = NetworkParameterIdSerializer
def get_serializer_class(self):
no_hyperlinks=False
if hasattr(self.request,"QUERY_PARAMS"):
no_hyperlinks = self.request.QUERY_PARAMS.get('no_hyperlinks', False)
if (no_hyperlinks):
return self.id_serializer_class
else:
return self.serializer_class
def get_queryset(self):
if (not self.request.user.is_authenticated()):
raise XOSNotAuthenticated()
return NetworkParameter.select_by_user(self.request.user)
# update() is handled by XOSRetrieveUpdateDestroyAPIView
# destroy() is handled by XOSRetrieveUpdateDestroyAPIView
class SiteList(XOSListCreateAPIView):
queryset = Site.objects.select_related().all()
serializer_class = SiteSerializer
id_serializer_class = SiteIdSerializer
filter_backends = (filters.DjangoFilterBackend,)
filter_fields = ('id','created','updated','enacted','policed','backend_register','backend_status','deleted','name','site_url','enabled','location','longitude','latitude','login_base','is_public','abbreviated_name','deployments',)
def get_serializer_class(self):
no_hyperlinks=False
if hasattr(self.request,"QUERY_PARAMS"):
no_hyperlinks = self.request.QUERY_PARAMS.get('no_hyperlinks', False)
if (no_hyperlinks):
return self.id_serializer_class
else:
return self.serializer_class
def get_queryset(self):
if (not self.request.user.is_authenticated()):
raise XOSNotAuthenticated()
return Site.select_by_user(self.request.user)
class SiteDetail(XOSRetrieveUpdateDestroyAPIView):
queryset = Site.objects.select_related().all()
serializer_class = SiteSerializer
id_serializer_class = SiteIdSerializer
def get_serializer_class(self):
no_hyperlinks=False
if hasattr(self.request,"QUERY_PARAMS"):
no_hyperlinks = self.request.QUERY_PARAMS.get('no_hyperlinks', False)
if (no_hyperlinks):
return self.id_serializer_class
else:
return self.serializer_class
def get_queryset(self):
if (not self.request.user.is_authenticated()):
raise XOSNotAuthenticated()
return Site.select_by_user(self.request.user)
# update() is handled by XOSRetrieveUpdateDestroyAPIView
# destroy() is handled by XOSRetrieveUpdateDestroyAPIView
class SliceRoleList(XOSListCreateAPIView):
queryset = SliceRole.objects.select_related().all()
serializer_class = SliceRoleSerializer
id_serializer_class = SliceRoleIdSerializer
filter_backends = (filters.DjangoFilterBackend,)
filter_fields = ('id','created','updated','enacted','policed','backend_register','backend_status','deleted','role',)
def get_serializer_class(self):
no_hyperlinks=False
if hasattr(self.request,"QUERY_PARAMS"):
no_hyperlinks = self.request.QUERY_PARAMS.get('no_hyperlinks', False)
if (no_hyperlinks):
return self.id_serializer_class
else:
return self.serializer_class
def get_queryset(self):
if (not self.request.user.is_authenticated()):
raise XOSNotAuthenticated()
return SliceRole.select_by_user(self.request.user)
class SliceRoleDetail(XOSRetrieveUpdateDestroyAPIView):
queryset = SliceRole.objects.select_related().all()
serializer_class = SliceRoleSerializer
id_serializer_class = SliceRoleIdSerializer
def get_serializer_class(self):
no_hyperlinks=False
if hasattr(self.request,"QUERY_PARAMS"):
no_hyperlinks = self.request.QUERY_PARAMS.get('no_hyperlinks', False)
if (no_hyperlinks):
return self.id_serializer_class
else:
return self.serializer_class
def get_queryset(self):
if (not self.request.user.is_authenticated()):
raise XOSNotAuthenticated()
return SliceRole.select_by_user(self.request.user)
# update() is handled by XOSRetrieveUpdateDestroyAPIView
# destroy() is handled by XOSRetrieveUpdateDestroyAPIView
class TagList(XOSListCreateAPIView):
queryset = Tag.objects.select_related().all()
serializer_class = TagSerializer
id_serializer_class = TagIdSerializer
filter_backends = (filters.DjangoFilterBackend,)
filter_fields = ('id','created','updated','enacted','policed','backend_register','backend_status','deleted','service','name','value','content_type','object_id',)
def get_serializer_class(self):
no_hyperlinks=False
if hasattr(self.request,"QUERY_PARAMS"):
no_hyperlinks = self.request.QUERY_PARAMS.get('no_hyperlinks', False)
if (no_hyperlinks):
return self.id_serializer_class
else:
return self.serializer_class
def get_queryset(self):
if (not self.request.user.is_authenticated()):
raise XOSNotAuthenticated()
return Tag.select_by_user(self.request.user)
class TagDetail(XOSRetrieveUpdateDestroyAPIView):
queryset = Tag.objects.select_related().all()
serializer_class = TagSerializer
id_serializer_class = TagIdSerializer
def get_serializer_class(self):
no_hyperlinks=False
if hasattr(self.request,"QUERY_PARAMS"):
no_hyperlinks = self.request.QUERY_PARAMS.get('no_hyperlinks', False)
if (no_hyperlinks):
return self.id_serializer_class
else:
return self.serializer_class
def get_queryset(self):
if (not self.request.user.is_authenticated()):
raise XOSNotAuthenticated()
return Tag.select_by_user(self.request.user)
# update() is handled by XOSRetrieveUpdateDestroyAPIView
# destroy() is handled by XOSRetrieveUpdateDestroyAPIView
class InvoiceList(XOSListCreateAPIView):
queryset = Invoice.objects.select_related().all()
serializer_class = InvoiceSerializer
id_serializer_class = InvoiceIdSerializer
filter_backends = (filters.DjangoFilterBackend,)
filter_fields = ('id','created','updated','enacted','policed','backend_register','backend_status','deleted','date','account',)
def get_serializer_class(self):
no_hyperlinks=False
if hasattr(self.request,"QUERY_PARAMS"):
no_hyperlinks = self.request.QUERY_PARAMS.get('no_hyperlinks', False)
if (no_hyperlinks):
return self.id_serializer_class
else:
return self.serializer_class
def get_queryset(self):
if (not self.request.user.is_authenticated()):
raise XOSNotAuthenticated()
return Invoice.select_by_user(self.request.user)
class InvoiceDetail(XOSRetrieveUpdateDestroyAPIView):
queryset = Invoice.objects.select_related().all()
serializer_class = InvoiceSerializer
id_serializer_class = InvoiceIdSerializer
def get_serializer_class(self):
no_hyperlinks=False
if hasattr(self.request,"QUERY_PARAMS"):
no_hyperlinks = self.request.QUERY_PARAMS.get('no_hyperlinks', False)
if (no_hyperlinks):
return self.id_serializer_class
else:
return self.serializer_class
def get_queryset(self):
if (not self.request.user.is_authenticated()):
raise XOSNotAuthenticated()
return Invoice.select_by_user(self.request.user)
# update() is handled by XOSRetrieveUpdateDestroyAPIView
# destroy() is handled by XOSRetrieveUpdateDestroyAPIView
class SlicePrivilegeList(XOSListCreateAPIView):
queryset = SlicePrivilege.objects.select_related().all()
serializer_class = SlicePrivilegeSerializer
id_serializer_class = SlicePrivilegeIdSerializer
filter_backends = (filters.DjangoFilterBackend,)
filter_fields = ('id','created','updated','enacted','policed','backend_register','backend_status','deleted','user','slice','role',)
def get_serializer_class(self):
no_hyperlinks=False
if hasattr(self.request,"QUERY_PARAMS"):
no_hyperlinks = self.request.QUERY_PARAMS.get('no_hyperlinks', False)
if (no_hyperlinks):
return self.id_serializer_class
else:
return self.serializer_class
def get_queryset(self):
if (not self.request.user.is_authenticated()):
raise XOSNotAuthenticated()
return SlicePrivilege.select_by_user(self.request.user)
class SlicePrivilegeDetail(XOSRetrieveUpdateDestroyAPIView):
queryset = SlicePrivilege.objects.select_related().all()
serializer_class = SlicePrivilegeSerializer
id_serializer_class = SlicePrivilegeIdSerializer
def get_serializer_class(self):
no_hyperlinks=False
if hasattr(self.request,"QUERY_PARAMS"):
no_hyperlinks = self.request.QUERY_PARAMS.get('no_hyperlinks', False)
if (no_hyperlinks):
return self.id_serializer_class
else:
return self.serializer_class
def get_queryset(self):
if (not self.request.user.is_authenticated()):
raise XOSNotAuthenticated()
return SlicePrivilege.select_by_user(self.request.user)
# update() is handled by XOSRetrieveUpdateDestroyAPIView
# destroy() is handled by XOSRetrieveUpdateDestroyAPIView
class NetworkSliverList(XOSListCreateAPIView):
queryset = NetworkSliver.objects.select_related().all()
serializer_class = NetworkSliverSerializer
id_serializer_class = NetworkSliverIdSerializer
filter_backends = (filters.DjangoFilterBackend,)
filter_fields = ('id','created','updated','enacted','policed','backend_register','backend_status','deleted','network','sliver','ip','port_id',)
def get_serializer_class(self):
no_hyperlinks=False
if hasattr(self.request,"QUERY_PARAMS"):
no_hyperlinks = self.request.QUERY_PARAMS.get('no_hyperlinks', False)
if (no_hyperlinks):
return self.id_serializer_class
else:
return self.serializer_class
def get_queryset(self):
if (not self.request.user.is_authenticated()):
raise XOSNotAuthenticated()
return NetworkSliver.select_by_user(self.request.user)
class NetworkSliverDetail(XOSRetrieveUpdateDestroyAPIView):
queryset = NetworkSliver.objects.select_related().all()
serializer_class = NetworkSliverSerializer
id_serializer_class = NetworkSliverIdSerializer
def get_serializer_class(self):
no_hyperlinks=False
if hasattr(self.request,"QUERY_PARAMS"):
no_hyperlinks = self.request.QUERY_PARAMS.get('no_hyperlinks', False)
if (no_hyperlinks):
return self.id_serializer_class
else:
return self.serializer_class
def get_queryset(self):
if (not self.request.user.is_authenticated()):
raise XOSNotAuthenticated()
return NetworkSliver.select_by_user(self.request.user)
# update() is handled by XOSRetrieveUpdateDestroyAPIView
# destroy() is handled by XOSRetrieveUpdateDestroyAPIView
class FlavorList(XOSListCreateAPIView):
queryset = Flavor.objects.select_related().all()
serializer_class = FlavorSerializer
id_serializer_class = FlavorIdSerializer
filter_backends = (filters.DjangoFilterBackend,)
filter_fields = ('id','created','updated','enacted','policed','backend_register','backend_status','deleted','name','description','flavor','order','default','deployments',)
def get_serializer_class(self):
no_hyperlinks=False
if hasattr(self.request,"QUERY_PARAMS"):
no_hyperlinks = self.request.QUERY_PARAMS.get('no_hyperlinks', False)
if (no_hyperlinks):
return self.id_serializer_class
else:
return self.serializer_class
def get_queryset(self):
if (not self.request.user.is_authenticated()):
raise XOSNotAuthenticated()
return Flavor.select_by_user(self.request.user)
class FlavorDetail(XOSRetrieveUpdateDestroyAPIView):
queryset = Flavor.objects.select_related().all()
serializer_class = FlavorSerializer
id_serializer_class = FlavorIdSerializer
def get_serializer_class(self):
no_hyperlinks=False
if hasattr(self.request,"QUERY_PARAMS"):
no_hyperlinks = self.request.QUERY_PARAMS.get('no_hyperlinks', False)
if (no_hyperlinks):
return self.id_serializer_class
else:
return self.serializer_class
def get_queryset(self):
if (not self.request.user.is_authenticated()):
raise XOSNotAuthenticated()
return Flavor.select_by_user(self.request.user)
# update() is handled by XOSRetrieveUpdateDestroyAPIView
# destroy() is handled by XOSRetrieveUpdateDestroyAPIView
class ControllerSiteList(XOSListCreateAPIView):
queryset = ControllerSite.objects.select_related().all()
serializer_class = ControllerSiteSerializer
id_serializer_class = ControllerSiteIdSerializer
filter_backends = (filters.DjangoFilterBackend,)
filter_fields = ('id','created','updated','enacted','policed','backend_register','backend_status','deleted','site','controller','tenant_id',)
def get_serializer_class(self):
no_hyperlinks=False
if hasattr(self.request,"QUERY_PARAMS"):
no_hyperlinks = self.request.QUERY_PARAMS.get('no_hyperlinks', False)
if (no_hyperlinks):
return self.id_serializer_class
else:
return self.serializer_class
def get_queryset(self):
if (not self.request.user.is_authenticated()):
raise XOSNotAuthenticated()
return ControllerSite.select_by_user(self.request.user)
class ControllerSiteDetail(XOSRetrieveUpdateDestroyAPIView):
queryset = ControllerSite.objects.select_related().all()
serializer_class = ControllerSiteSerializer
id_serializer_class = ControllerSiteIdSerializer
def get_serializer_class(self):
no_hyperlinks=False
if hasattr(self.request,"QUERY_PARAMS"):
no_hyperlinks = self.request.QUERY_PARAMS.get('no_hyperlinks', False)
if (no_hyperlinks):
return self.id_serializer_class
else:
return self.serializer_class
def get_queryset(self):
if (not self.request.user.is_authenticated()):
raise XOSNotAuthenticated()
return ControllerSite.select_by_user(self.request.user)
# update() is handled by XOSRetrieveUpdateDestroyAPIView
# destroy() is handled by XOSRetrieveUpdateDestroyAPIView
class ProjectList(XOSListCreateAPIView):
queryset = Project.objects.select_related().all()
serializer_class = ProjectSerializer
id_serializer_class = ProjectIdSerializer
filter_backends = (filters.DjangoFilterBackend,)
filter_fields = ('id','created','updated','enacted','policed','backend_register','backend_status','deleted','name',)
def get_serializer_class(self):
no_hyperlinks=False
if hasattr(self.request,"QUERY_PARAMS"):
no_hyperlinks = self.request.QUERY_PARAMS.get('no_hyperlinks', False)
if (no_hyperlinks):
return self.id_serializer_class
else:
return self.serializer_class
def get_queryset(self):
if (not self.request.user.is_authenticated()):
raise XOSNotAuthenticated()
return Project.select_by_user(self.request.user)
class ProjectDetail(XOSRetrieveUpdateDestroyAPIView):
queryset = Project.objects.select_related().all()
serializer_class = ProjectSerializer
id_serializer_class = ProjectIdSerializer
def get_serializer_class(self):
no_hyperlinks=False
if hasattr(self.request,"QUERY_PARAMS"):
no_hyperlinks = self.request.QUERY_PARAMS.get('no_hyperlinks', False)
if (no_hyperlinks):
return self.id_serializer_class
else:
return self.serializer_class
def get_queryset(self):
if (not self.request.user.is_authenticated()):
raise XOSNotAuthenticated()
return Project.select_by_user(self.request.user)
# update() is handled by XOSRetrieveUpdateDestroyAPIView
# destroy() is handled by XOSRetrieveUpdateDestroyAPIView
class SliceList(XOSListCreateAPIView):
queryset = Slice.objects.select_related().all()
serializer_class = SliceSerializer
id_serializer_class = SliceIdSerializer
filter_backends = (filters.DjangoFilterBackend,)
filter_fields = ('id','created','updated','enacted','policed','backend_register','backend_status','deleted','name','enabled','omf_friendly','description','slice_url','site','max_slivers','service','network','serviceClass','creator','default_flavor','default_image','mount_data_sets','networks','networks',)
def get_serializer_class(self):
no_hyperlinks=False
if hasattr(self.request,"QUERY_PARAMS"):
no_hyperlinks = self.request.QUERY_PARAMS.get('no_hyperlinks', False)
if (no_hyperlinks):
return self.id_serializer_class
else:
return self.serializer_class
def get_queryset(self):
if (not self.request.user.is_authenticated()):
raise XOSNotAuthenticated()
return Slice.select_by_user(self.request.user)
class SliceDetail(XOSRetrieveUpdateDestroyAPIView):
queryset = Slice.objects.select_related().all()
serializer_class = SliceSerializer
id_serializer_class = SliceIdSerializer
def get_serializer_class(self):
no_hyperlinks=False
if hasattr(self.request,"QUERY_PARAMS"):
no_hyperlinks = self.request.QUERY_PARAMS.get('no_hyperlinks', False)
if (no_hyperlinks):
return self.id_serializer_class
else:
return self.serializer_class
def get_queryset(self):
if (not self.request.user.is_authenticated()):
raise XOSNotAuthenticated()
return Slice.select_by_user(self.request.user)
# update() is handled by XOSRetrieveUpdateDestroyAPIView
# destroy() is handled by XOSRetrieveUpdateDestroyAPIView
class NetworkList(XOSListCreateAPIView):
queryset = Network.objects.select_related().all()
serializer_class = NetworkSerializer
id_serializer_class = NetworkIdSerializer
filter_backends = (filters.DjangoFilterBackend,)
filter_fields = ('id','created','updated','enacted','policed','backend_register','backend_status','deleted','name','template','subnet','ports','labels','owner','guaranteed_bandwidth','permit_all_slices','topology_parameters','controller_url','controller_parameters','network_id','router_id','subnet_id','slices','slices','slivers','routers','routers',)
def get_serializer_class(self):
no_hyperlinks=False
if hasattr(self.request,"QUERY_PARAMS"):
no_hyperlinks = self.request.QUERY_PARAMS.get('no_hyperlinks', False)
if (no_hyperlinks):
return self.id_serializer_class
else:
return self.serializer_class
def get_queryset(self):
if (not self.request.user.is_authenticated()):
raise XOSNotAuthenticated()
return Network.select_by_user(self.request.user)
class NetworkDetail(XOSRetrieveUpdateDestroyAPIView):
queryset = Network.objects.select_related().all()
serializer_class = NetworkSerializer
id_serializer_class = NetworkIdSerializer
def get_serializer_class(self):
no_hyperlinks=False
if hasattr(self.request,"QUERY_PARAMS"):
no_hyperlinks = self.request.QUERY_PARAMS.get('no_hyperlinks', False)
if (no_hyperlinks):
return self.id_serializer_class
else:
return self.serializer_class
def get_queryset(self):
if (not self.request.user.is_authenticated()):
raise XOSNotAuthenticated()
return Network.select_by_user(self.request.user)
# update() is handled by XOSRetrieveUpdateDestroyAPIView
# destroy() is handled by XOSRetrieveUpdateDestroyAPIView
class ServiceList(XOSListCreateAPIView):
queryset = Service.objects.select_related().all()
serializer_class = ServiceSerializer
id_serializer_class = ServiceIdSerializer
filter_backends = (filters.DjangoFilterBackend,)
filter_fields = ('id','created','updated','enacted','policed','backend_register','backend_status','deleted','description','enabled','name','versionNumber','published',)
def get_serializer_class(self):
no_hyperlinks=False
if hasattr(self.request,"QUERY_PARAMS"):
no_hyperlinks = self.request.QUERY_PARAMS.get('no_hyperlinks', False)
if (no_hyperlinks):
return self.id_serializer_class
else:
return self.serializer_class
def get_queryset(self):
if (not self.request.user.is_authenticated()):
raise XOSNotAuthenticated()
return Service.select_by_user(self.request.user)
class ServiceDetail(XOSRetrieveUpdateDestroyAPIView):
queryset = Service.objects.select_related().all()
serializer_class = ServiceSerializer
id_serializer_class = ServiceIdSerializer
def get_serializer_class(self):
no_hyperlinks=False
if hasattr(self.request,"QUERY_PARAMS"):
no_hyperlinks = self.request.QUERY_PARAMS.get('no_hyperlinks', False)
if (no_hyperlinks):
return self.id_serializer_class
else:
return self.serializer_class
def get_queryset(self):
if (not self.request.user.is_authenticated()):
raise XOSNotAuthenticated()
return Service.select_by_user(self.request.user)
# update() is handled by XOSRetrieveUpdateDestroyAPIView
# destroy() is handled by XOSRetrieveUpdateDestroyAPIView
class ServiceClassList(XOSListCreateAPIView):
queryset = ServiceClass.objects.select_related().all()
serializer_class = ServiceClassSerializer
id_serializer_class = ServiceClassIdSerializer
filter_backends = (filters.DjangoFilterBackend,)
filter_fields = ('id','created','updated','enacted','policed','backend_register','backend_status','deleted','name','description','commitment','membershipFee','membershipFeeMonths','upgradeRequiresApproval',)
def get_serializer_class(self):
no_hyperlinks=False
if hasattr(self.request,"QUERY_PARAMS"):
no_hyperlinks = self.request.QUERY_PARAMS.get('no_hyperlinks', False)
if (no_hyperlinks):
return self.id_serializer_class
else:
return self.serializer_class
def get_queryset(self):
if (not self.request.user.is_authenticated()):
raise XOSNotAuthenticated()
return ServiceClass.select_by_user(self.request.user)
class ServiceClassDetail(XOSRetrieveUpdateDestroyAPIView):
queryset = ServiceClass.objects.select_related().all()
serializer_class = ServiceClassSerializer
id_serializer_class = ServiceClassIdSerializer
def get_serializer_class(self):
no_hyperlinks=False
if hasattr(self.request,"QUERY_PARAMS"):
no_hyperlinks = self.request.QUERY_PARAMS.get('no_hyperlinks', False)
if (no_hyperlinks):
return self.id_serializer_class
else:
return self.serializer_class
def get_queryset(self):
if (not self.request.user.is_authenticated()):
raise XOSNotAuthenticated()
return ServiceClass.select_by_user(self.request.user)
# update() is handled by XOSRetrieveUpdateDestroyAPIView
# destroy() is handled by XOSRetrieveUpdateDestroyAPIView
class PaymentList(XOSListCreateAPIView):
queryset = Payment.objects.select_related().all()
serializer_class = PaymentSerializer
id_serializer_class = PaymentIdSerializer
filter_backends = (filters.DjangoFilterBackend,)
filter_fields = ('id','created','updated','enacted','policed','backend_register','backend_status','deleted','account','amount','date',)
def get_serializer_class(self):
no_hyperlinks=False
if hasattr(self.request,"QUERY_PARAMS"):
no_hyperlinks = self.request.QUERY_PARAMS.get('no_hyperlinks', False)
if (no_hyperlinks):
return self.id_serializer_class
else:
return self.serializer_class
def get_queryset(self):
if (not self.request.user.is_authenticated()):
raise XOSNotAuthenticated()
return Payment.select_by_user(self.request.user)
class PaymentDetail(XOSRetrieveUpdateDestroyAPIView):
queryset = Payment.objects.select_related().all()
serializer_class = PaymentSerializer
id_serializer_class = PaymentIdSerializer
def get_serializer_class(self):
no_hyperlinks=False
if hasattr(self.request,"QUERY_PARAMS"):
no_hyperlinks = self.request.QUERY_PARAMS.get('no_hyperlinks', False)
if (no_hyperlinks):
return self.id_serializer_class
else:
return self.serializer_class
def get_queryset(self):
if (not self.request.user.is_authenticated()):
raise XOSNotAuthenticated()
return Payment.select_by_user(self.request.user)
# update() is handled by XOSRetrieveUpdateDestroyAPIView
# destroy() is handled by XOSRetrieveUpdateDestroyAPIView
class ChargeList(XOSListCreateAPIView):
queryset = Charge.objects.select_related().all()
serializer_class = ChargeSerializer
id_serializer_class = ChargeIdSerializer
filter_backends = (filters.DjangoFilterBackend,)
filter_fields = ('id','created','updated','enacted','policed','backend_register','backend_status','deleted','account','slice','kind','state','date','object','amount','coreHours','invoice',)
def get_serializer_class(self):
no_hyperlinks=False
if hasattr(self.request,"QUERY_PARAMS"):
no_hyperlinks = self.request.QUERY_PARAMS.get('no_hyperlinks', False)
if (no_hyperlinks):
return self.id_serializer_class
else:
return self.serializer_class
def get_queryset(self):
if (not self.request.user.is_authenticated()):
raise XOSNotAuthenticated()
return Charge.select_by_user(self.request.user)
class ChargeDetail(XOSRetrieveUpdateDestroyAPIView):
queryset = Charge.objects.select_related().all()
serializer_class = ChargeSerializer
id_serializer_class = ChargeIdSerializer
def get_serializer_class(self):
no_hyperlinks=False
if hasattr(self.request,"QUERY_PARAMS"):
no_hyperlinks = self.request.QUERY_PARAMS.get('no_hyperlinks', False)
if (no_hyperlinks):
return self.id_serializer_class
else:
return self.serializer_class
def get_queryset(self):
if (not self.request.user.is_authenticated()):
raise XOSNotAuthenticated()
return Charge.select_by_user(self.request.user)
# update() is handled by XOSRetrieveUpdateDestroyAPIView
# destroy() is handled by XOSRetrieveUpdateDestroyAPIView
class RoleList(XOSListCreateAPIView):
queryset = Role.objects.select_related().all()
serializer_class = RoleSerializer
id_serializer_class = RoleIdSerializer
filter_backends = (filters.DjangoFilterBackend,)
filter_fields = ('id','created','updated','enacted','policed','backend_register','backend_status','deleted','role_type','role','description','content_type',)
def get_serializer_class(self):
no_hyperlinks=False
if hasattr(self.request,"QUERY_PARAMS"):
no_hyperlinks = self.request.QUERY_PARAMS.get('no_hyperlinks', False)
if (no_hyperlinks):
return self.id_serializer_class
else:
return self.serializer_class
def get_queryset(self):
if (not self.request.user.is_authenticated()):
raise XOSNotAuthenticated()
return Role.select_by_user(self.request.user)
class RoleDetail(XOSRetrieveUpdateDestroyAPIView):
queryset = Role.objects.select_related().all()
serializer_class = RoleSerializer
id_serializer_class = RoleIdSerializer
def get_serializer_class(self):
no_hyperlinks=False
if hasattr(self.request,"QUERY_PARAMS"):
no_hyperlinks = self.request.QUERY_PARAMS.get('no_hyperlinks', False)
if (no_hyperlinks):
return self.id_serializer_class
else:
return self.serializer_class
def get_queryset(self):
if (not self.request.user.is_authenticated()):
raise XOSNotAuthenticated()
return Role.select_by_user(self.request.user)
# update() is handled by XOSRetrieveUpdateDestroyAPIView
# destroy() is handled by XOSRetrieveUpdateDestroyAPIView
class UsableObjectList(XOSListCreateAPIView):
queryset = UsableObject.objects.select_related().all()
serializer_class = UsableObjectSerializer
id_serializer_class = UsableObjectIdSerializer
filter_backends = (filters.DjangoFilterBackend,)
filter_fields = ('id','created','updated','enacted','policed','backend_register','backend_status','deleted','name',)
def get_serializer_class(self):
no_hyperlinks=False
if hasattr(self.request,"QUERY_PARAMS"):
no_hyperlinks = self.request.QUERY_PARAMS.get('no_hyperlinks', False)
if (no_hyperlinks):
return self.id_serializer_class
else:
return self.serializer_class
def get_queryset(self):
if (not self.request.user.is_authenticated()):
raise XOSNotAuthenticated()
return UsableObject.select_by_user(self.request.user)
class UsableObjectDetail(XOSRetrieveUpdateDestroyAPIView):
queryset = UsableObject.objects.select_related().all()
serializer_class = UsableObjectSerializer
id_serializer_class = UsableObjectIdSerializer
def get_serializer_class(self):
no_hyperlinks=False
if hasattr(self.request,"QUERY_PARAMS"):
no_hyperlinks = self.request.QUERY_PARAMS.get('no_hyperlinks', False)
if (no_hyperlinks):
return self.id_serializer_class
else:
return self.serializer_class
def get_queryset(self):
if (not self.request.user.is_authenticated()):
raise XOSNotAuthenticated()
return UsableObject.select_by_user(self.request.user)
# update() is handled by XOSRetrieveUpdateDestroyAPIView
# destroy() is handled by XOSRetrieveUpdateDestroyAPIView
class SiteRoleList(XOSListCreateAPIView):
queryset = SiteRole.objects.select_related().all()
serializer_class = SiteRoleSerializer
id_serializer_class = SiteRoleIdSerializer
filter_backends = (filters.DjangoFilterBackend,)
filter_fields = ('id','created','updated','enacted','policed','backend_register','backend_status','deleted','role',)
def get_serializer_class(self):
no_hyperlinks=False
if hasattr(self.request,"QUERY_PARAMS"):
no_hyperlinks = self.request.QUERY_PARAMS.get('no_hyperlinks', False)
if (no_hyperlinks):
return self.id_serializer_class
else:
return self.serializer_class
def get_queryset(self):
if (not self.request.user.is_authenticated()):
raise XOSNotAuthenticated()
return SiteRole.select_by_user(self.request.user)
class SiteRoleDetail(XOSRetrieveUpdateDestroyAPIView):
queryset = SiteRole.objects.select_related().all()
serializer_class = SiteRoleSerializer
id_serializer_class = SiteRoleIdSerializer
def get_serializer_class(self):
no_hyperlinks=False
if hasattr(self.request,"QUERY_PARAMS"):
no_hyperlinks = self.request.QUERY_PARAMS.get('no_hyperlinks', False)
if (no_hyperlinks):
return self.id_serializer_class
else:
return self.serializer_class
def get_queryset(self):
if (not self.request.user.is_authenticated()):
raise XOSNotAuthenticated()
return SiteRole.select_by_user(self.request.user)
# update() is handled by XOSRetrieveUpdateDestroyAPIView
# destroy() is handled by XOSRetrieveUpdateDestroyAPIView
class SliceCredentialList(XOSListCreateAPIView):
queryset = SliceCredential.objects.select_related().all()
serializer_class = SliceCredentialSerializer
id_serializer_class = SliceCredentialIdSerializer
filter_backends = (filters.DjangoFilterBackend,)
filter_fields = ('id','created','updated','enacted','policed','backend_register','backend_status','deleted','slice','name','key_id','enc_value',)
def get_serializer_class(self):
no_hyperlinks=False
if hasattr(self.request,"QUERY_PARAMS"):
no_hyperlinks = self.request.QUERY_PARAMS.get('no_hyperlinks', False)
if (no_hyperlinks):
return self.id_serializer_class
else:
return self.serializer_class
def get_queryset(self):
if (not self.request.user.is_authenticated()):
raise XOSNotAuthenticated()
return SliceCredential.select_by_user(self.request.user)
class SliceCredentialDetail(XOSRetrieveUpdateDestroyAPIView):
queryset = SliceCredential.objects.select_related().all()
serializer_class = SliceCredentialSerializer
id_serializer_class = SliceCredentialIdSerializer
def get_serializer_class(self):
no_hyperlinks=False
if hasattr(self.request,"QUERY_PARAMS"):
no_hyperlinks = self.request.QUERY_PARAMS.get('no_hyperlinks', False)
if (no_hyperlinks):
return self.id_serializer_class
else:
return self.serializer_class
def get_queryset(self):
if (not self.request.user.is_authenticated()):
raise XOSNotAuthenticated()
return SliceCredential.select_by_user(self.request.user)
# update() is handled by XOSRetrieveUpdateDestroyAPIView
# destroy() is handled by XOSRetrieveUpdateDestroyAPIView
class SliverList(XOSListCreateAPIView):
queryset = Sliver.objects.select_related().all()
serializer_class = SliverSerializer
id_serializer_class = SliverIdSerializer
filter_backends = (filters.DjangoFilterBackend,)
filter_fields = ('id','created','updated','enacted','policed','backend_register','backend_status','deleted','instance_id','instance_uuid','name','instance_name','ip','image','creator','slice','deployment','node','numberCores','flavor','userData','networks',)
def get_serializer_class(self):
no_hyperlinks=False
if hasattr(self.request,"QUERY_PARAMS"):
no_hyperlinks = self.request.QUERY_PARAMS.get('no_hyperlinks', False)
if (no_hyperlinks):
return self.id_serializer_class
else:
return self.serializer_class
def get_queryset(self):
if (not self.request.user.is_authenticated()):
raise XOSNotAuthenticated()
return Sliver.select_by_user(self.request.user)
class SliverDetail(XOSRetrieveUpdateDestroyAPIView):
queryset = Sliver.objects.select_related().all()
serializer_class = SliverSerializer
id_serializer_class = SliverIdSerializer
def get_serializer_class(self):
no_hyperlinks=False
if hasattr(self.request,"QUERY_PARAMS"):
no_hyperlinks = self.request.QUERY_PARAMS.get('no_hyperlinks', False)
if (no_hyperlinks):
return self.id_serializer_class
else:
return self.serializer_class
def get_queryset(self):
if (not self.request.user.is_authenticated()):
raise XOSNotAuthenticated()
return Sliver.select_by_user(self.request.user)
# update() is handled by XOSRetrieveUpdateDestroyAPIView
# destroy() is handled by XOSRetrieveUpdateDestroyAPIView
class NodeList(XOSListCreateAPIView):
queryset = Node.objects.select_related().all()
serializer_class = NodeSerializer
id_serializer_class = NodeIdSerializer
filter_backends = (filters.DjangoFilterBackend,)
filter_fields = ('id','created','updated','enacted','policed','backend_register','backend_status','deleted','name','site_deployment','site',)
def get_serializer_class(self):
no_hyperlinks=False
if hasattr(self.request,"QUERY_PARAMS"):
no_hyperlinks = self.request.QUERY_PARAMS.get('no_hyperlinks', False)
if (no_hyperlinks):
return self.id_serializer_class
else:
return self.serializer_class
def get_queryset(self):
if (not self.request.user.is_authenticated()):
raise XOSNotAuthenticated()
return Node.select_by_user(self.request.user)
class NodeDetail(XOSRetrieveUpdateDestroyAPIView):
queryset = Node.objects.select_related().all()
serializer_class = NodeSerializer
id_serializer_class = NodeIdSerializer
def get_serializer_class(self):
no_hyperlinks=False
if hasattr(self.request,"QUERY_PARAMS"):
no_hyperlinks = self.request.QUERY_PARAMS.get('no_hyperlinks', False)
if (no_hyperlinks):
return self.id_serializer_class
else:
return self.serializer_class
def get_queryset(self):
if (not self.request.user.is_authenticated()):
raise XOSNotAuthenticated()
return Node.select_by_user(self.request.user)
# update() is handled by XOSRetrieveUpdateDestroyAPIView
# destroy() is handled by XOSRetrieveUpdateDestroyAPIView
class DashboardViewList(XOSListCreateAPIView):
queryset = DashboardView.objects.select_related().all()
serializer_class = DashboardViewSerializer
id_serializer_class = DashboardViewIdSerializer
filter_backends = (filters.DjangoFilterBackend,)
filter_fields = ('id','created','updated','enacted','policed','backend_register','backend_status','deleted','name','url','enabled','controllers','deployments',)
def get_serializer_class(self):
no_hyperlinks=False
if hasattr(self.request,"QUERY_PARAMS"):
no_hyperlinks = self.request.QUERY_PARAMS.get('no_hyperlinks', False)
if (no_hyperlinks):
return self.id_serializer_class
else:
return self.serializer_class
def get_queryset(self):
if (not self.request.user.is_authenticated()):
raise XOSNotAuthenticated()
return DashboardView.select_by_user(self.request.user)
class DashboardViewDetail(XOSRetrieveUpdateDestroyAPIView):
queryset = DashboardView.objects.select_related().all()
serializer_class = DashboardViewSerializer
id_serializer_class = DashboardViewIdSerializer
def get_serializer_class(self):
no_hyperlinks=False
if hasattr(self.request,"QUERY_PARAMS"):
no_hyperlinks = self.request.QUERY_PARAMS.get('no_hyperlinks', False)
if (no_hyperlinks):
return self.id_serializer_class
else:
return self.serializer_class
def get_queryset(self):
if (not self.request.user.is_authenticated()):
raise XOSNotAuthenticated()
return DashboardView.select_by_user(self.request.user)
# update() is handled by XOSRetrieveUpdateDestroyAPIView
# destroy() is handled by XOSRetrieveUpdateDestroyAPIView
class ControllerNetworkList(XOSListCreateAPIView):
queryset = ControllerNetwork.objects.select_related().all()
serializer_class = ControllerNetworkSerializer
id_serializer_class = ControllerNetworkIdSerializer
filter_backends = (filters.DjangoFilterBackend,)
filter_fields = ('id','created','updated','enacted','policed','backend_register','backend_status','deleted','network','controller','net_id','router_id','subnet_id','subnet',)
def get_serializer_class(self):
no_hyperlinks=False
if hasattr(self.request,"QUERY_PARAMS"):
no_hyperlinks = self.request.QUERY_PARAMS.get('no_hyperlinks', False)
if (no_hyperlinks):
return self.id_serializer_class
else:
return self.serializer_class
def get_queryset(self):
if (not self.request.user.is_authenticated()):
raise XOSNotAuthenticated()
return ControllerNetwork.select_by_user(self.request.user)
class ControllerNetworkDetail(XOSRetrieveUpdateDestroyAPIView):
queryset = ControllerNetwork.objects.select_related().all()
serializer_class = ControllerNetworkSerializer
id_serializer_class = ControllerNetworkIdSerializer
def get_serializer_class(self):
no_hyperlinks=False
if hasattr(self.request,"QUERY_PARAMS"):
no_hyperlinks = self.request.QUERY_PARAMS.get('no_hyperlinks', False)
if (no_hyperlinks):
return self.id_serializer_class
else:
return self.serializer_class
def get_queryset(self):
if (not self.request.user.is_authenticated()):
raise XOSNotAuthenticated()
return ControllerNetwork.select_by_user(self.request.user)
# update() is handled by XOSRetrieveUpdateDestroyAPIView
# destroy() is handled by XOSRetrieveUpdateDestroyAPIView
class ImageDeploymentsList(XOSListCreateAPIView):
queryset = ImageDeployments.objects.select_related().all()
serializer_class = ImageDeploymentsSerializer
id_serializer_class = ImageDeploymentsIdSerializer
filter_backends = (filters.DjangoFilterBackend,)
filter_fields = ('id','created','updated','enacted','policed','backend_register','backend_status','deleted','image','deployment',)
def get_serializer_class(self):
no_hyperlinks=False
if hasattr(self.request,"QUERY_PARAMS"):
no_hyperlinks = self.request.QUERY_PARAMS.get('no_hyperlinks', False)
if (no_hyperlinks):
return self.id_serializer_class
else:
return self.serializer_class
def get_queryset(self):
if (not self.request.user.is_authenticated()):
raise XOSNotAuthenticated()
return ImageDeployments.select_by_user(self.request.user)
class ImageDeploymentsDetail(XOSRetrieveUpdateDestroyAPIView):
queryset = ImageDeployments.objects.select_related().all()
serializer_class = ImageDeploymentsSerializer
id_serializer_class = ImageDeploymentsIdSerializer
def get_serializer_class(self):
no_hyperlinks=False
if hasattr(self.request,"QUERY_PARAMS"):
no_hyperlinks = self.request.QUERY_PARAMS.get('no_hyperlinks', False)
if (no_hyperlinks):
return self.id_serializer_class
else:
return self.serializer_class
def get_queryset(self):
if (not self.request.user.is_authenticated()):
raise XOSNotAuthenticated()
return ImageDeployments.select_by_user(self.request.user)
# update() is handled by XOSRetrieveUpdateDestroyAPIView
# destroy() is handled by XOSRetrieveUpdateDestroyAPIView
class ControllerUserList(XOSListCreateAPIView):
queryset = ControllerUser.objects.select_related().all()
serializer_class = ControllerUserSerializer
id_serializer_class = ControllerUserIdSerializer
filter_backends = (filters.DjangoFilterBackend,)
filter_fields = ('id','created','updated','enacted','policed','backend_register','backend_status','deleted','user','controller','kuser_id',)
def get_serializer_class(self):
no_hyperlinks=False
if hasattr(self.request,"QUERY_PARAMS"):
no_hyperlinks = self.request.QUERY_PARAMS.get('no_hyperlinks', False)
if (no_hyperlinks):
return self.id_serializer_class
else:
return self.serializer_class
def get_queryset(self):
if (not self.request.user.is_authenticated()):
raise XOSNotAuthenticated()
return ControllerUser.select_by_user(self.request.user)
class ControllerUserDetail(XOSRetrieveUpdateDestroyAPIView):
queryset = ControllerUser.objects.select_related().all()
serializer_class = ControllerUserSerializer
id_serializer_class = ControllerUserIdSerializer
def get_serializer_class(self):
no_hyperlinks=False
if hasattr(self.request,"QUERY_PARAMS"):
no_hyperlinks = self.request.QUERY_PARAMS.get('no_hyperlinks', False)
if (no_hyperlinks):
return self.id_serializer_class
else:
return self.serializer_class
def get_queryset(self):
if (not self.request.user.is_authenticated()):
raise XOSNotAuthenticated()
return ControllerUser.select_by_user(self.request.user)
# update() is handled by XOSRetrieveUpdateDestroyAPIView
# destroy() is handled by XOSRetrieveUpdateDestroyAPIView
class ReservedResourceList(XOSListCreateAPIView):
queryset = ReservedResource.objects.select_related().all()
serializer_class = ReservedResourceSerializer
id_serializer_class = ReservedResourceIdSerializer
filter_backends = (filters.DjangoFilterBackend,)
filter_fields = ('id','created','updated','enacted','policed','backend_register','backend_status','deleted','sliver','resource','quantity','reservationSet',)
def get_serializer_class(self):
no_hyperlinks=False
if hasattr(self.request,"QUERY_PARAMS"):
no_hyperlinks = self.request.QUERY_PARAMS.get('no_hyperlinks', False)
if (no_hyperlinks):
return self.id_serializer_class
else:
return self.serializer_class
def get_queryset(self):
if (not self.request.user.is_authenticated()):
raise XOSNotAuthenticated()
return ReservedResource.select_by_user(self.request.user)
class ReservedResourceDetail(XOSRetrieveUpdateDestroyAPIView):
queryset = ReservedResource.objects.select_related().all()
serializer_class = ReservedResourceSerializer
id_serializer_class = ReservedResourceIdSerializer
def get_serializer_class(self):
no_hyperlinks=False
if hasattr(self.request,"QUERY_PARAMS"):
no_hyperlinks = self.request.QUERY_PARAMS.get('no_hyperlinks', False)
if (no_hyperlinks):
return self.id_serializer_class
else:
return self.serializer_class
def get_queryset(self):
if (not self.request.user.is_authenticated()):
raise XOSNotAuthenticated()
return ReservedResource.select_by_user(self.request.user)
# update() is handled by XOSRetrieveUpdateDestroyAPIView
# destroy() is handled by XOSRetrieveUpdateDestroyAPIView
class NetworkSliceList(XOSListCreateAPIView):
queryset = NetworkSlice.objects.select_related().all()
serializer_class = NetworkSliceSerializer
id_serializer_class = NetworkSliceIdSerializer
filter_backends = (filters.DjangoFilterBackend,)
filter_fields = ('id','created','updated','enacted','policed','backend_register','backend_status','deleted','network','slice',)
def get_serializer_class(self):
no_hyperlinks=False
if hasattr(self.request,"QUERY_PARAMS"):
no_hyperlinks = self.request.QUERY_PARAMS.get('no_hyperlinks', False)
if (no_hyperlinks):
return self.id_serializer_class
else:
return self.serializer_class
def get_queryset(self):
if (not self.request.user.is_authenticated()):
raise XOSNotAuthenticated()
return NetworkSlice.select_by_user(self.request.user)
class NetworkSliceDetail(XOSRetrieveUpdateDestroyAPIView):
queryset = NetworkSlice.objects.select_related().all()
serializer_class = NetworkSliceSerializer
id_serializer_class = NetworkSliceIdSerializer
def get_serializer_class(self):
no_hyperlinks=False
if hasattr(self.request,"QUERY_PARAMS"):
no_hyperlinks = self.request.QUERY_PARAMS.get('no_hyperlinks', False)
if (no_hyperlinks):
return self.id_serializer_class
else:
return self.serializer_class
def get_queryset(self):
if (not self.request.user.is_authenticated()):
raise XOSNotAuthenticated()
return NetworkSlice.select_by_user(self.request.user)
# update() is handled by XOSRetrieveUpdateDestroyAPIView
# destroy() is handled by XOSRetrieveUpdateDestroyAPIView
class UserDashboardViewList(XOSListCreateAPIView):
queryset = UserDashboardView.objects.select_related().all()
serializer_class = UserDashboardViewSerializer
id_serializer_class = UserDashboardViewIdSerializer
filter_backends = (filters.DjangoFilterBackend,)
filter_fields = ('id','created','updated','enacted','policed','backend_register','backend_status','deleted','user','dashboardView','order',)
def get_serializer_class(self):
no_hyperlinks=False
if hasattr(self.request,"QUERY_PARAMS"):
no_hyperlinks = self.request.QUERY_PARAMS.get('no_hyperlinks', False)
if (no_hyperlinks):
return self.id_serializer_class
else:
return self.serializer_class
def get_queryset(self):
if (not self.request.user.is_authenticated()):
raise XOSNotAuthenticated()
return UserDashboardView.select_by_user(self.request.user)
class UserDashboardViewDetail(XOSRetrieveUpdateDestroyAPIView):
queryset = UserDashboardView.objects.select_related().all()
serializer_class = UserDashboardViewSerializer
id_serializer_class = UserDashboardViewIdSerializer
def get_serializer_class(self):
no_hyperlinks=False
if hasattr(self.request,"QUERY_PARAMS"):
no_hyperlinks = self.request.QUERY_PARAMS.get('no_hyperlinks', False)
if (no_hyperlinks):
return self.id_serializer_class
else:
return self.serializer_class
def get_queryset(self):
if (not self.request.user.is_authenticated()):
raise XOSNotAuthenticated()
return UserDashboardView.select_by_user(self.request.user)
# update() is handled by XOSRetrieveUpdateDestroyAPIView
# destroy() is handled by XOSRetrieveUpdateDestroyAPIView
class ControllerList(XOSListCreateAPIView):
queryset = Controller.objects.select_related().all()
serializer_class = ControllerSerializer
id_serializer_class = ControllerIdSerializer
filter_backends = (filters.DjangoFilterBackend,)
filter_fields = ('id','created','updated','enacted','policed','backend_register','backend_status','deleted','name','backend_type','version','auth_url','admin_user','admin_password','admin_tenant','domain','deployment','dashboardviews',)
def get_serializer_class(self):
no_hyperlinks=False
if hasattr(self.request,"QUERY_PARAMS"):
no_hyperlinks = self.request.QUERY_PARAMS.get('no_hyperlinks', False)
if (no_hyperlinks):
return self.id_serializer_class
else:
return self.serializer_class
def get_queryset(self):
if (not self.request.user.is_authenticated()):
raise XOSNotAuthenticated()
return Controller.select_by_user(self.request.user)
class ControllerDetail(XOSRetrieveUpdateDestroyAPIView):
queryset = Controller.objects.select_related().all()
serializer_class = ControllerSerializer
id_serializer_class = ControllerIdSerializer
def get_serializer_class(self):
no_hyperlinks=False
if hasattr(self.request,"QUERY_PARAMS"):
no_hyperlinks = self.request.QUERY_PARAMS.get('no_hyperlinks', False)
if (no_hyperlinks):
return self.id_serializer_class
else:
return self.serializer_class
def get_queryset(self):
if (not self.request.user.is_authenticated()):
raise XOSNotAuthenticated()
return Controller.select_by_user(self.request.user)
# update() is handled by XOSRetrieveUpdateDestroyAPIView
# destroy() is handled by XOSRetrieveUpdateDestroyAPIView
class UserList(XOSListCreateAPIView):
queryset = User.objects.select_related().all()
serializer_class = UserSerializer
id_serializer_class = UserIdSerializer
filter_backends = (filters.DjangoFilterBackend,)
filter_fields = ('id','password','last_login','email','username','firstname','lastname','phone','user_url','site','public_key','is_active','is_admin','is_staff','is_readonly','is_registering','created','updated','enacted','policed','backend_status','deleted','timezone',)
def get_serializer_class(self):
no_hyperlinks=False
if hasattr(self.request,"QUERY_PARAMS"):
no_hyperlinks = self.request.QUERY_PARAMS.get('no_hyperlinks', False)
if (no_hyperlinks):
return self.id_serializer_class
else:
return self.serializer_class
def get_queryset(self):
if (not self.request.user.is_authenticated()):
raise XOSNotAuthenticated()
return User.select_by_user(self.request.user)
class UserDetail(XOSRetrieveUpdateDestroyAPIView):
queryset = User.objects.select_related().all()
serializer_class = UserSerializer
id_serializer_class = UserIdSerializer
def get_serializer_class(self):
no_hyperlinks=False
if hasattr(self.request,"QUERY_PARAMS"):
no_hyperlinks = self.request.QUERY_PARAMS.get('no_hyperlinks', False)
if (no_hyperlinks):
return self.id_serializer_class
else:
return self.serializer_class
def get_queryset(self):
if (not self.request.user.is_authenticated()):
raise XOSNotAuthenticated()
return User.select_by_user(self.request.user)
# update() is handled by XOSRetrieveUpdateDestroyAPIView
# destroy() is handled by XOSRetrieveUpdateDestroyAPIView
class DeploymentList(XOSListCreateAPIView):
queryset = Deployment.objects.select_related().all()
serializer_class = DeploymentSerializer
id_serializer_class = DeploymentIdSerializer
filter_backends = (filters.DjangoFilterBackend,)
filter_fields = ('id','created','updated','enacted','policed','backend_register','backend_status','deleted','name','accessControl','images','sites','flavors','dashboardviews',)
def get_serializer_class(self):
no_hyperlinks=False
if hasattr(self.request,"QUERY_PARAMS"):
no_hyperlinks = self.request.QUERY_PARAMS.get('no_hyperlinks', False)
if (no_hyperlinks):
return self.id_serializer_class
else:
return self.serializer_class
def get_queryset(self):
if (not self.request.user.is_authenticated()):
raise XOSNotAuthenticated()
return Deployment.select_by_user(self.request.user)
class DeploymentDetail(XOSRetrieveUpdateDestroyAPIView):
queryset = Deployment.objects.select_related().all()
serializer_class = DeploymentSerializer
id_serializer_class = DeploymentIdSerializer
def get_serializer_class(self):
no_hyperlinks=False
if hasattr(self.request,"QUERY_PARAMS"):
no_hyperlinks = self.request.QUERY_PARAMS.get('no_hyperlinks', False)
if (no_hyperlinks):
return self.id_serializer_class
else:
return self.serializer_class
def get_queryset(self):
if (not self.request.user.is_authenticated()):
raise XOSNotAuthenticated()
return Deployment.select_by_user(self.request.user)
# update() is handled by XOSRetrieveUpdateDestroyAPIView
# destroy() is handled by XOSRetrieveUpdateDestroyAPIView
class ReservationList(XOSListCreateAPIView):
queryset = Reservation.objects.select_related().all()
serializer_class = ReservationSerializer
id_serializer_class = ReservationIdSerializer
filter_backends = (filters.DjangoFilterBackend,)
filter_fields = ('id','created','updated','enacted','policed','backend_register','backend_status','deleted','startTime','slice','duration',)
def get_serializer_class(self):
no_hyperlinks=False
if hasattr(self.request,"QUERY_PARAMS"):
no_hyperlinks = self.request.QUERY_PARAMS.get('no_hyperlinks', False)
if (no_hyperlinks):
return self.id_serializer_class
else:
return self.serializer_class
def get_queryset(self):
if (not self.request.user.is_authenticated()):
raise XOSNotAuthenticated()
return Reservation.select_by_user(self.request.user)
class ReservationDetail(XOSRetrieveUpdateDestroyAPIView):
queryset = Reservation.objects.select_related().all()
serializer_class = ReservationSerializer
id_serializer_class = ReservationIdSerializer
def get_serializer_class(self):
no_hyperlinks=False
if hasattr(self.request,"QUERY_PARAMS"):
no_hyperlinks = self.request.QUERY_PARAMS.get('no_hyperlinks', False)
if (no_hyperlinks):
return self.id_serializer_class
else:
return self.serializer_class
def get_queryset(self):
if (not self.request.user.is_authenticated()):
raise XOSNotAuthenticated()
return Reservation.select_by_user(self.request.user)
# update() is handled by XOSRetrieveUpdateDestroyAPIView
# destroy() is handled by XOSRetrieveUpdateDestroyAPIView
class SitePrivilegeList(XOSListCreateAPIView):
queryset = SitePrivilege.objects.select_related().all()
serializer_class = SitePrivilegeSerializer
id_serializer_class = SitePrivilegeIdSerializer
filter_backends = (filters.DjangoFilterBackend,)
filter_fields = ('id','created','updated','enacted','policed','backend_register','backend_status','deleted','user','site','role',)
def get_serializer_class(self):
no_hyperlinks=False
if hasattr(self.request,"QUERY_PARAMS"):
no_hyperlinks = self.request.QUERY_PARAMS.get('no_hyperlinks', False)
if (no_hyperlinks):
return self.id_serializer_class
else:
return self.serializer_class
def get_queryset(self):
if (not self.request.user.is_authenticated()):
raise XOSNotAuthenticated()
return SitePrivilege.select_by_user(self.request.user)
class SitePrivilegeDetail(XOSRetrieveUpdateDestroyAPIView):
queryset = SitePrivilege.objects.select_related().all()
serializer_class = SitePrivilegeSerializer
id_serializer_class = SitePrivilegeIdSerializer
def get_serializer_class(self):
no_hyperlinks=False
if hasattr(self.request,"QUERY_PARAMS"):
no_hyperlinks = self.request.QUERY_PARAMS.get('no_hyperlinks', False)
if (no_hyperlinks):
return self.id_serializer_class
else:
return self.serializer_class
def get_queryset(self):
if (not self.request.user.is_authenticated()):
raise XOSNotAuthenticated()
return SitePrivilege.select_by_user(self.request.user)
# update() is handled by XOSRetrieveUpdateDestroyAPIView
# destroy() is handled by XOSRetrieveUpdateDestroyAPIView
class ControllerSliceList(XOSListCreateAPIView):
queryset = ControllerSlice.objects.select_related().all()
serializer_class = ControllerSliceSerializer
id_serializer_class = ControllerSliceIdSerializer
filter_backends = (filters.DjangoFilterBackend,)
filter_fields = ('id','created','updated','enacted','policed','backend_register','backend_status','deleted','controller','slice','tenant_id',)
def get_serializer_class(self):
no_hyperlinks=False
if hasattr(self.request,"QUERY_PARAMS"):
no_hyperlinks = self.request.QUERY_PARAMS.get('no_hyperlinks', False)
if (no_hyperlinks):
return self.id_serializer_class
else:
return self.serializer_class
def get_queryset(self):
if (not self.request.user.is_authenticated()):
raise XOSNotAuthenticated()
return ControllerSlice.select_by_user(self.request.user)
class ControllerSliceDetail(XOSRetrieveUpdateDestroyAPIView):
queryset = ControllerSlice.objects.select_related().all()
serializer_class = ControllerSliceSerializer
id_serializer_class = ControllerSliceIdSerializer
def get_serializer_class(self):
no_hyperlinks=False
if hasattr(self.request,"QUERY_PARAMS"):
no_hyperlinks = self.request.QUERY_PARAMS.get('no_hyperlinks', False)
if (no_hyperlinks):
return self.id_serializer_class
else:
return self.serializer_class
def get_queryset(self):
if (not self.request.user.is_authenticated()):
raise XOSNotAuthenticated()
return ControllerSlice.select_by_user(self.request.user)
# update() is handled by XOSRetrieveUpdateDestroyAPIView
# destroy() is handled by XOSRetrieveUpdateDestroyAPIView
class ControllerDashboardViewList(XOSListCreateAPIView):
queryset = ControllerDashboardView.objects.select_related().all()
serializer_class = ControllerDashboardViewSerializer
id_serializer_class = ControllerDashboardViewIdSerializer
filter_backends = (filters.DjangoFilterBackend,)
filter_fields = ('id','created','updated','enacted','policed','backend_register','backend_status','deleted','controller','dashboardView','enabled','url',)
def get_serializer_class(self):
no_hyperlinks=False
if hasattr(self.request,"QUERY_PARAMS"):
no_hyperlinks = self.request.QUERY_PARAMS.get('no_hyperlinks', False)
if (no_hyperlinks):
return self.id_serializer_class
else:
return self.serializer_class
def get_queryset(self):
if (not self.request.user.is_authenticated()):
raise XOSNotAuthenticated()
return ControllerDashboardView.select_by_user(self.request.user)
class ControllerDashboardViewDetail(XOSRetrieveUpdateDestroyAPIView):
queryset = ControllerDashboardView.objects.select_related().all()
serializer_class = ControllerDashboardViewSerializer
id_serializer_class = ControllerDashboardViewIdSerializer
def get_serializer_class(self):
no_hyperlinks=False
if hasattr(self.request,"QUERY_PARAMS"):
no_hyperlinks = self.request.QUERY_PARAMS.get('no_hyperlinks', False)
if (no_hyperlinks):
return self.id_serializer_class
else:
return self.serializer_class
def get_queryset(self):
if (not self.request.user.is_authenticated()):
raise XOSNotAuthenticated()
return ControllerDashboardView.select_by_user(self.request.user)
# update() is handled by XOSRetrieveUpdateDestroyAPIView
# destroy() is handled by XOSRetrieveUpdateDestroyAPIView
class AccountList(XOSListCreateAPIView):
queryset = Account.objects.select_related().all()
serializer_class = AccountSerializer
id_serializer_class = AccountIdSerializer
filter_backends = (filters.DjangoFilterBackend,)
filter_fields = ('id','created','updated','enacted','policed','backend_register','backend_status','deleted','site',)
def get_serializer_class(self):
no_hyperlinks=False
if hasattr(self.request,"QUERY_PARAMS"):
no_hyperlinks = self.request.QUERY_PARAMS.get('no_hyperlinks', False)
if (no_hyperlinks):
return self.id_serializer_class
else:
return self.serializer_class
def get_queryset(self):
if (not self.request.user.is_authenticated()):
raise XOSNotAuthenticated()
return Account.select_by_user(self.request.user)
class AccountDetail(XOSRetrieveUpdateDestroyAPIView):
queryset = Account.objects.select_related().all()
serializer_class = AccountSerializer
id_serializer_class = AccountIdSerializer
def get_serializer_class(self):
no_hyperlinks=False
if hasattr(self.request,"QUERY_PARAMS"):
no_hyperlinks = self.request.QUERY_PARAMS.get('no_hyperlinks', False)
if (no_hyperlinks):
return self.id_serializer_class
else:
return self.serializer_class
def get_queryset(self):
if (not self.request.user.is_authenticated()):
raise XOSNotAuthenticated()
return Account.select_by_user(self.request.user)
# update() is handled by XOSRetrieveUpdateDestroyAPIView
# destroy() is handled by XOSRetrieveUpdateDestroyAPIView
class ControllerRoleList(XOSListCreateAPIView):
queryset = ControllerRole.objects.select_related().all()
serializer_class = ControllerRoleSerializer
id_serializer_class = ControllerRoleIdSerializer
filter_backends = (filters.DjangoFilterBackend,)
filter_fields = ('id','created','updated','enacted','policed','backend_register','backend_status','deleted','role',)
def get_serializer_class(self):
no_hyperlinks=False
if hasattr(self.request,"QUERY_PARAMS"):
no_hyperlinks = self.request.QUERY_PARAMS.get('no_hyperlinks', False)
if (no_hyperlinks):
return self.id_serializer_class
else:
return self.serializer_class
def get_queryset(self):
if (not self.request.user.is_authenticated()):
raise XOSNotAuthenticated()
return ControllerRole.select_by_user(self.request.user)
class ControllerRoleDetail(XOSRetrieveUpdateDestroyAPIView):
queryset = ControllerRole.objects.select_related().all()
serializer_class = ControllerRoleSerializer
id_serializer_class = ControllerRoleIdSerializer
def get_serializer_class(self):
no_hyperlinks=False
if hasattr(self.request,"QUERY_PARAMS"):
no_hyperlinks = self.request.QUERY_PARAMS.get('no_hyperlinks', False)
if (no_hyperlinks):
return self.id_serializer_class
else:
return self.serializer_class
def get_queryset(self):
if (not self.request.user.is_authenticated()):
raise XOSNotAuthenticated()
return ControllerRole.select_by_user(self.request.user)
# update() is handled by XOSRetrieveUpdateDestroyAPIView
# destroy() is handled by XOSRetrieveUpdateDestroyAPIView
class NetworkParameterTypeList(XOSListCreateAPIView):
queryset = NetworkParameterType.objects.select_related().all()
serializer_class = NetworkParameterTypeSerializer
id_serializer_class = NetworkParameterTypeIdSerializer
filter_backends = (filters.DjangoFilterBackend,)
filter_fields = ('id','created','updated','enacted','policed','backend_register','backend_status','deleted','name','description',)
def get_serializer_class(self):
no_hyperlinks=False
if hasattr(self.request,"QUERY_PARAMS"):
no_hyperlinks = self.request.QUERY_PARAMS.get('no_hyperlinks', False)
if (no_hyperlinks):
return self.id_serializer_class
else:
return self.serializer_class
def get_queryset(self):
if (not self.request.user.is_authenticated()):
raise XOSNotAuthenticated()
return NetworkParameterType.select_by_user(self.request.user)
class NetworkParameterTypeDetail(XOSRetrieveUpdateDestroyAPIView):
queryset = NetworkParameterType.objects.select_related().all()
serializer_class = NetworkParameterTypeSerializer
id_serializer_class = NetworkParameterTypeIdSerializer
def get_serializer_class(self):
no_hyperlinks=False
if hasattr(self.request,"QUERY_PARAMS"):
no_hyperlinks = self.request.QUERY_PARAMS.get('no_hyperlinks', False)
if (no_hyperlinks):
return self.id_serializer_class
else:
return self.serializer_class
def get_queryset(self):
if (not self.request.user.is_authenticated()):
raise XOSNotAuthenticated()
return NetworkParameterType.select_by_user(self.request.user)
# update() is handled by XOSRetrieveUpdateDestroyAPIView
# destroy() is handled by XOSRetrieveUpdateDestroyAPIView
class SiteCredentialList(XOSListCreateAPIView):
queryset = SiteCredential.objects.select_related().all()
serializer_class = SiteCredentialSerializer
id_serializer_class = SiteCredentialIdSerializer
filter_backends = (filters.DjangoFilterBackend,)
filter_fields = ('id','created','updated','enacted','policed','backend_register','backend_status','deleted','site','name','key_id','enc_value',)
def get_serializer_class(self):
no_hyperlinks=False
if hasattr(self.request,"QUERY_PARAMS"):
no_hyperlinks = self.request.QUERY_PARAMS.get('no_hyperlinks', False)
if (no_hyperlinks):
return self.id_serializer_class
else:
return self.serializer_class
def get_queryset(self):
if (not self.request.user.is_authenticated()):
raise XOSNotAuthenticated()
return SiteCredential.select_by_user(self.request.user)
class SiteCredentialDetail(XOSRetrieveUpdateDestroyAPIView):
queryset = SiteCredential.objects.select_related().all()
serializer_class = SiteCredentialSerializer
id_serializer_class = SiteCredentialIdSerializer
def get_serializer_class(self):
no_hyperlinks=False
if hasattr(self.request,"QUERY_PARAMS"):
no_hyperlinks = self.request.QUERY_PARAMS.get('no_hyperlinks', False)
if (no_hyperlinks):
return self.id_serializer_class
else:
return self.serializer_class
def get_queryset(self):
if (not self.request.user.is_authenticated()):
raise XOSNotAuthenticated()
return SiteCredential.select_by_user(self.request.user)
# update() is handled by XOSRetrieveUpdateDestroyAPIView
# destroy() is handled by XOSRetrieveUpdateDestroyAPIView
class DeploymentPrivilegeList(XOSListCreateAPIView):
queryset = DeploymentPrivilege.objects.select_related().all()
serializer_class = DeploymentPrivilegeSerializer
id_serializer_class = DeploymentPrivilegeIdSerializer
filter_backends = (filters.DjangoFilterBackend,)
filter_fields = ('id','created','updated','enacted','policed','backend_register','backend_status','deleted','user','deployment','role',)
def get_serializer_class(self):
no_hyperlinks=False
if hasattr(self.request,"QUERY_PARAMS"):
no_hyperlinks = self.request.QUERY_PARAMS.get('no_hyperlinks', False)
if (no_hyperlinks):
return self.id_serializer_class
else:
return self.serializer_class
def get_queryset(self):
if (not self.request.user.is_authenticated()):
raise XOSNotAuthenticated()
return DeploymentPrivilege.select_by_user(self.request.user)
class DeploymentPrivilegeDetail(XOSRetrieveUpdateDestroyAPIView):
queryset = DeploymentPrivilege.objects.select_related().all()
serializer_class = DeploymentPrivilegeSerializer
id_serializer_class = DeploymentPrivilegeIdSerializer
def get_serializer_class(self):
no_hyperlinks=False
if hasattr(self.request,"QUERY_PARAMS"):
no_hyperlinks = self.request.QUERY_PARAMS.get('no_hyperlinks', False)
if (no_hyperlinks):
return self.id_serializer_class
else:
return self.serializer_class
def get_queryset(self):
if (not self.request.user.is_authenticated()):
raise XOSNotAuthenticated()
return DeploymentPrivilege.select_by_user(self.request.user)
# update() is handled by XOSRetrieveUpdateDestroyAPIView
# destroy() is handled by XOSRetrieveUpdateDestroyAPIView
class ControllerSlicePrivilegeList(XOSListCreateAPIView):
queryset = ControllerSlicePrivilege.objects.select_related().all()
serializer_class = ControllerSlicePrivilegeSerializer
id_serializer_class = ControllerSlicePrivilegeIdSerializer
filter_backends = (filters.DjangoFilterBackend,)
filter_fields = ('id','created','updated','enacted','policed','backend_register','backend_status','deleted','controller','slice_privilege','role_id',)
def get_serializer_class(self):
no_hyperlinks=False
if hasattr(self.request,"QUERY_PARAMS"):
no_hyperlinks = self.request.QUERY_PARAMS.get('no_hyperlinks', False)
if (no_hyperlinks):
return self.id_serializer_class
else:
return self.serializer_class
def get_queryset(self):
if (not self.request.user.is_authenticated()):
raise XOSNotAuthenticated()
return ControllerSlicePrivilege.select_by_user(self.request.user)
class ControllerSlicePrivilegeDetail(XOSRetrieveUpdateDestroyAPIView):
queryset = ControllerSlicePrivilege.objects.select_related().all()
serializer_class = ControllerSlicePrivilegeSerializer
id_serializer_class = ControllerSlicePrivilegeIdSerializer
def get_serializer_class(self):
no_hyperlinks=False
if hasattr(self.request,"QUERY_PARAMS"):
no_hyperlinks = self.request.QUERY_PARAMS.get('no_hyperlinks', False)
if (no_hyperlinks):
return self.id_serializer_class
else:
return self.serializer_class
def get_queryset(self):
if (not self.request.user.is_authenticated()):
raise XOSNotAuthenticated()
return ControllerSlicePrivilege.select_by_user(self.request.user)
# update() is handled by XOSRetrieveUpdateDestroyAPIView
# destroy() is handled by XOSRetrieveUpdateDestroyAPIView
class SiteDeploymentList(XOSListCreateAPIView):
queryset = SiteDeployment.objects.select_related().all()
serializer_class = SiteDeploymentSerializer
id_serializer_class = SiteDeploymentIdSerializer
filter_backends = (filters.DjangoFilterBackend,)
filter_fields = ('id','created','updated','enacted','policed','backend_register','backend_status','deleted','site','deployment','controller','availability_zone',)
def get_serializer_class(self):
no_hyperlinks=False
if hasattr(self.request,"QUERY_PARAMS"):
no_hyperlinks = self.request.QUERY_PARAMS.get('no_hyperlinks', False)
if (no_hyperlinks):
return self.id_serializer_class
else:
return self.serializer_class
def get_queryset(self):
if (not self.request.user.is_authenticated()):
raise XOSNotAuthenticated()
return SiteDeployment.select_by_user(self.request.user)
class SiteDeploymentDetail(XOSRetrieveUpdateDestroyAPIView):
queryset = SiteDeployment.objects.select_related().all()
serializer_class = SiteDeploymentSerializer
id_serializer_class = SiteDeploymentIdSerializer
def get_serializer_class(self):
no_hyperlinks=False
if hasattr(self.request,"QUERY_PARAMS"):
no_hyperlinks = self.request.QUERY_PARAMS.get('no_hyperlinks', False)
if (no_hyperlinks):
return self.id_serializer_class
else:
return self.serializer_class
def get_queryset(self):
if (not self.request.user.is_authenticated()):
raise XOSNotAuthenticated()
return SiteDeployment.select_by_user(self.request.user)
# update() is handled by XOSRetrieveUpdateDestroyAPIView
# destroy() is handled by XOSRetrieveUpdateDestroyAPIView
class DeploymentRoleList(XOSListCreateAPIView):
queryset = DeploymentRole.objects.select_related().all()
serializer_class = DeploymentRoleSerializer
id_serializer_class = DeploymentRoleIdSerializer
filter_backends = (filters.DjangoFilterBackend,)
filter_fields = ('id','created','updated','enacted','policed','backend_register','backend_status','deleted','role',)
def get_serializer_class(self):
no_hyperlinks=False
if hasattr(self.request,"QUERY_PARAMS"):
no_hyperlinks = self.request.QUERY_PARAMS.get('no_hyperlinks', False)
if (no_hyperlinks):
return self.id_serializer_class
else:
return self.serializer_class
def get_queryset(self):
if (not self.request.user.is_authenticated()):
raise XOSNotAuthenticated()
return DeploymentRole.select_by_user(self.request.user)
class DeploymentRoleDetail(XOSRetrieveUpdateDestroyAPIView):
queryset = DeploymentRole.objects.select_related().all()
serializer_class = DeploymentRoleSerializer
id_serializer_class = DeploymentRoleIdSerializer
def get_serializer_class(self):
no_hyperlinks=False
if hasattr(self.request,"QUERY_PARAMS"):
no_hyperlinks = self.request.QUERY_PARAMS.get('no_hyperlinks', False)
if (no_hyperlinks):
return self.id_serializer_class
else:
return self.serializer_class
def get_queryset(self):
if (not self.request.user.is_authenticated()):
raise XOSNotAuthenticated()
return DeploymentRole.select_by_user(self.request.user)
# update() is handled by XOSRetrieveUpdateDestroyAPIView
# destroy() is handled by XOSRetrieveUpdateDestroyAPIView
class UserCredentialList(XOSListCreateAPIView):
queryset = UserCredential.objects.select_related().all()
serializer_class = UserCredentialSerializer
id_serializer_class = UserCredentialIdSerializer
filter_backends = (filters.DjangoFilterBackend,)
filter_fields = ('id','created','updated','enacted','policed','backend_register','backend_status','deleted','user','name','key_id','enc_value',)
def get_serializer_class(self):
no_hyperlinks=False
if hasattr(self.request,"QUERY_PARAMS"):
no_hyperlinks = self.request.QUERY_PARAMS.get('no_hyperlinks', False)
if (no_hyperlinks):
return self.id_serializer_class
else:
return self.serializer_class
def get_queryset(self):
if (not self.request.user.is_authenticated()):
raise XOSNotAuthenticated()
return UserCredential.select_by_user(self.request.user)
class UserCredentialDetail(XOSRetrieveUpdateDestroyAPIView):
queryset = UserCredential.objects.select_related().all()
serializer_class = UserCredentialSerializer
id_serializer_class = UserCredentialIdSerializer
def get_serializer_class(self):
no_hyperlinks=False
if hasattr(self.request,"QUERY_PARAMS"):
no_hyperlinks = self.request.QUERY_PARAMS.get('no_hyperlinks', False)
if (no_hyperlinks):
return self.id_serializer_class
else:
return self.serializer_class
def get_queryset(self):
if (not self.request.user.is_authenticated()):
raise XOSNotAuthenticated()
return UserCredential.select_by_user(self.request.user)
# update() is handled by XOSRetrieveUpdateDestroyAPIView
# destroy() is handled by XOSRetrieveUpdateDestroyAPIView
class SliceTagList(XOSListCreateAPIView):
queryset = SliceTag.objects.select_related().all()
serializer_class = SliceTagSerializer
id_serializer_class = SliceTagIdSerializer
filter_backends = (filters.DjangoFilterBackend,)
filter_fields = ('id','created','updated','enacted','policed','backend_register','backend_status','deleted','slice','name','value',)
def get_serializer_class(self):
no_hyperlinks=False
if hasattr(self.request,"QUERY_PARAMS"):
no_hyperlinks = self.request.QUERY_PARAMS.get('no_hyperlinks', False)
if (no_hyperlinks):
return self.id_serializer_class
else:
return self.serializer_class
def get_queryset(self):
if (not self.request.user.is_authenticated()):
raise XOSNotAuthenticated()
return SliceTag.select_by_user(self.request.user)
class SliceTagDetail(XOSRetrieveUpdateDestroyAPIView):
queryset = SliceTag.objects.select_related().all()
serializer_class = SliceTagSerializer
id_serializer_class = SliceTagIdSerializer
def get_serializer_class(self):
no_hyperlinks=False
if hasattr(self.request,"QUERY_PARAMS"):
no_hyperlinks = self.request.QUERY_PARAMS.get('no_hyperlinks', False)
if (no_hyperlinks):
return self.id_serializer_class
else:
return self.serializer_class
def get_queryset(self):
if (not self.request.user.is_authenticated()):
raise XOSNotAuthenticated()
return SliceTag.select_by_user(self.request.user)
# update() is handled by XOSRetrieveUpdateDestroyAPIView
# destroy() is handled by XOSRetrieveUpdateDestroyAPIView
class NetworkTemplateList(XOSListCreateAPIView):
queryset = NetworkTemplate.objects.select_related().all()
serializer_class = NetworkTemplateSerializer
id_serializer_class = NetworkTemplateIdSerializer
filter_backends = (filters.DjangoFilterBackend,)
filter_fields = ('id','created','updated','enacted','policed','backend_register','backend_status','deleted','name','description','guaranteed_bandwidth','visibility','translation','shared_network_name','shared_network_id','topology_kind','controller_kind',)
def get_serializer_class(self):
no_hyperlinks=False
if hasattr(self.request,"QUERY_PARAMS"):
no_hyperlinks = self.request.QUERY_PARAMS.get('no_hyperlinks', False)
if (no_hyperlinks):
return self.id_serializer_class
else:
return self.serializer_class
def get_queryset(self):
if (not self.request.user.is_authenticated()):
raise XOSNotAuthenticated()
return NetworkTemplate.select_by_user(self.request.user)
class NetworkTemplateDetail(XOSRetrieveUpdateDestroyAPIView):
queryset = NetworkTemplate.objects.select_related().all()
serializer_class = NetworkTemplateSerializer
id_serializer_class = NetworkTemplateIdSerializer
def get_serializer_class(self):
no_hyperlinks=False
if hasattr(self.request,"QUERY_PARAMS"):
no_hyperlinks = self.request.QUERY_PARAMS.get('no_hyperlinks', False)
if (no_hyperlinks):
return self.id_serializer_class
else:
return self.serializer_class
def get_queryset(self):
if (not self.request.user.is_authenticated()):
raise XOSNotAuthenticated()
return NetworkTemplate.select_by_user(self.request.user)
# update() is handled by XOSRetrieveUpdateDestroyAPIView
# destroy() is handled by XOSRetrieveUpdateDestroyAPIView
class RouterList(XOSListCreateAPIView):
queryset = Router.objects.select_related().all()
serializer_class = RouterSerializer
id_serializer_class = RouterIdSerializer
filter_backends = (filters.DjangoFilterBackend,)
filter_fields = ('id','created','updated','enacted','policed','backend_register','backend_status','deleted','name','owner','networks','networks',)
def get_serializer_class(self):
no_hyperlinks=False
if hasattr(self.request,"QUERY_PARAMS"):
no_hyperlinks = self.request.QUERY_PARAMS.get('no_hyperlinks', False)
if (no_hyperlinks):
return self.id_serializer_class
else:
return self.serializer_class
def get_queryset(self):
if (not self.request.user.is_authenticated()):
raise XOSNotAuthenticated()
return Router.select_by_user(self.request.user)
class RouterDetail(XOSRetrieveUpdateDestroyAPIView):
queryset = Router.objects.select_related().all()
serializer_class = RouterSerializer
id_serializer_class = RouterIdSerializer
def get_serializer_class(self):
no_hyperlinks=False
if hasattr(self.request,"QUERY_PARAMS"):
no_hyperlinks = self.request.QUERY_PARAMS.get('no_hyperlinks', False)
if (no_hyperlinks):
return self.id_serializer_class
else:
return self.serializer_class
def get_queryset(self):
if (not self.request.user.is_authenticated()):
raise XOSNotAuthenticated()
return Router.select_by_user(self.request.user)
# update() is handled by XOSRetrieveUpdateDestroyAPIView
# destroy() is handled by XOSRetrieveUpdateDestroyAPIView
class ServiceResourceList(XOSListCreateAPIView):
queryset = ServiceResource.objects.select_related().all()
serializer_class = ServiceResourceSerializer
id_serializer_class = ServiceResourceIdSerializer
filter_backends = (filters.DjangoFilterBackend,)
filter_fields = ('id','created','updated','enacted','policed','backend_register','backend_status','deleted','serviceClass','name','maxUnitsDeployment','maxUnitsNode','maxDuration','bucketInRate','bucketMaxSize','cost','calendarReservable',)
def get_serializer_class(self):
no_hyperlinks=False
if hasattr(self.request,"QUERY_PARAMS"):
no_hyperlinks = self.request.QUERY_PARAMS.get('no_hyperlinks', False)
if (no_hyperlinks):
return self.id_serializer_class
else:
return self.serializer_class
def get_queryset(self):
if (not self.request.user.is_authenticated()):
raise XOSNotAuthenticated()
return ServiceResource.select_by_user(self.request.user)
class ServiceResourceDetail(XOSRetrieveUpdateDestroyAPIView):
queryset = ServiceResource.objects.select_related().all()
serializer_class = ServiceResourceSerializer
id_serializer_class = ServiceResourceIdSerializer
def get_serializer_class(self):
no_hyperlinks=False
if hasattr(self.request,"QUERY_PARAMS"):
no_hyperlinks = self.request.QUERY_PARAMS.get('no_hyperlinks', False)
if (no_hyperlinks):
return self.id_serializer_class
else:
return self.serializer_class
def get_queryset(self):
if (not self.request.user.is_authenticated()):
raise XOSNotAuthenticated()
return ServiceResource.select_by_user(self.request.user)
# update() is handled by XOSRetrieveUpdateDestroyAPIView
# destroy() is handled by XOSRetrieveUpdateDestroyAPIView
| 39.173182 | 388 | 0.693378 | 18,150 | 193,398 | 7.230028 | 0.033994 | 0.060583 | 0.027464 | 0.030695 | 0.848764 | 0.833088 | 0.829659 | 0.826923 | 0.826923 | 0.823494 | 0 | 0.000757 | 0.194407 | 193,398 | 4,936 | 389 | 39.181118 | 0.841508 | 0.032493 | 0 | 0.850626 | 0 | 0 | 0.176954 | 0.022196 | 0 | 0 | 0 | 0.000203 | 0 | 0 | null | null | 0.001669 | 0.003894 | null | null | 0.000278 | 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 |
ca648d9359dfe2347dcb05adb4889d9bf6cc2fb5 | 153 | py | Python | src/file_writer.py | thecml/csgo-ai-challenge | 168da636b5718543751e76a8448e913ad1b8f3d2 | [
"MIT"
] | null | null | null | src/file_writer.py | thecml/csgo-ai-challenge | 168da636b5718543751e76a8448e913ad1b8f3d2 | [
"MIT"
] | null | null | null | src/file_writer.py | thecml/csgo-ai-challenge | 168da636b5718543751e76a8448e913ad1b8f3d2 | [
"MIT"
] | null | null | null | from pathlib import Path
import pandas as pd
def write_csv(df, path, file_name, index=False):
df.to_csv(Path.joinpath(path, file_name), index=index) | 30.6 | 58 | 0.764706 | 27 | 153 | 4.185185 | 0.62963 | 0.141593 | 0.212389 | 0.300885 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130719 | 153 | 5 | 58 | 30.6 | 0.849624 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.5 | 0 | 0.75 | 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 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
ca65fb7fa960f733a25337a61275d425e9cf2b21 | 36,311 | py | Python | src/ebay_rest/api/sell_finances/api/transaction_api.py | craiga/ebay_rest | a0be2677c65a787e9566df848ffa3ad0c309a9d9 | [
"MIT"
] | null | null | null | src/ebay_rest/api/sell_finances/api/transaction_api.py | craiga/ebay_rest | a0be2677c65a787e9566df848ffa3ad0c309a9d9 | [
"MIT"
] | null | null | null | src/ebay_rest/api/sell_finances/api/transaction_api.py | craiga/ebay_rest | a0be2677c65a787e9566df848ffa3ad0c309a9d9 | [
"MIT"
] | null | null | null | # coding: utf-8
"""
eBay Finances API
This API is used to retrieve seller payouts and monetary transaction details related to those payouts. # noqa: E501
OpenAPI spec version: 1.9.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import re # noqa: F401
# python 2 and python 3 compatibility library
import six
from ...sell_finances.api_client import ApiClient
class TransactionApi(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):
if api_client is None:
api_client = ApiClient()
self.api_client = api_client
def get_transaction_summary(self, **kwargs): # noqa: E501
"""get_transaction_summary # noqa: E501
This method is used to retrieve cumulative values for five types of monetary transactions (order sales, seller credits, buyer refunds, buyer-initiated payment disputes, eBay shipping label purchases, and transfers). If applicable, the number of payment holds and the amount of the holds are also returned. See the description for the filter query parameter for more information on the available filters. Note: Unless the transactionType filter is used to retrieve a specific type of monetary transaction (sale, buyer refund, seller credit, payment dispute, shipping label, transfer), the creditCount and creditAmount response fields account for both order sales and seller credits (the count and value is not distinguished between the two monetary transaction types). # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_transaction_summary(async_req=True)
>>> result = thread.get()
:param async_req bool
:param str filter: Numerous filters are available for the getTransactionSummary method, and these filters are discussed below. One or more of these filter types can be used. The transactionStatus filter must be used. All other filters are optional. transactionStatus: the data returned in the response pertains to the sales, payouts, and transfer status set. The supported transactionStatus values are as follows: PAYOUT: only consider monetary transactions where the proceeds from the sales order(s) have been paid out to the seller's bank account. FUNDS_PROCESSING: only consider monetary transactions where the proceeds from the sales order(s) are currently being processed. FUNDS_AVAILABLE_FOR_PAYOUT: only consider monetary transactions where the proceeds from the sales order(s) are available for a seller payout, but processing has not yet begun. FUNDS_ON_HOLD: only consider monetary transactions where the proceeds from the sales order(s) are currently being held by eBay, and are not yet available for a seller payout. COMPLETED: this indicates that the funds for the corresponding TRANSFER monetary transaction have transferred and the transaction has completed. FAILED: this indicates the process has failed for the corresponding TRANSFER monetary transaction. Below is the proper syntax to use when setting up the transactionStatus filter: https://apiz.ebay.com/sell/finances/v1/transaction_summary?filter=transactionStatus:{PAYOUT} transactionDate: only consider monetary transactions that occurred within a specific range of dates. Note: All dates must be input using UTC format (YYYY-MM-DDTHH:MM:SS.SSSZ) and should be adjusted accordingly for the local timezone of the user. Below is the proper syntax to use if filtering by a date range: https://apiz.ebay.com/sell/finances/v1/transaction_summary?filter=transactionDate:[2018-10-23T00:00:01.000Z..2018-11-09T00:00:01.000Z] Alternatively, the user could omit the ending date, and the date range would include the starting date and up to 90 days past that date, or the current date if the starting date is less than 90 days in the past. transactionType: only consider a specific type of monetary transaction. The supported transactionType values are as follows: SALE: a sales order. REFUND: a refund to the buyer after an order cancellation or return. CREDIT: a credit issued by eBay to the seller's account. DISPUTE: a monetary transaction associated with a payment dispute between buyer and seller. NON_SALE_CHARGE: a monetary transaction involving a seller transferring money to eBay for the balance of a charge for NON_SALE_CHARGE transactions (transactions that contain non-transactional seller fees). These can include a one-time payment, monthly/yearly subscription fees charged monthly, NRC charges, and fee credits. SHIPPING_LABEL: a monetary transaction where eBay is billing the seller for an eBay shipping label. Note that the shipping label functionality will initially only be available to a select number of sellers. TRANSFER: A transfer is a monetary transaction where eBay is billing the seller for reimbursement of a charge. An example of a transfer is a seller reimbursing eBay for a buyer refund.Below is the proper syntax to use if filtering by a monetary transaction type: https://apiz.ebay.com/sell/finances/v1/transaction_summary?filter=transactionType:{SALE} buyerUsername: only consider monetary transactions involving a specific buyer (specified with the buyer's eBay user ID). Below is the proper syntax to use if filtering by a specific eBay buyer: https://apiz.ebay.com/sell/finances/v1/transaction_summary?filter=buyerUsername:{buyer1234} salesRecordReference: only consider monetary transactions corresponding to a specific order (identified with a Selling Manager order identifier). Below is the proper syntax to use if filtering by a specific Selling Manager Sales Record ID: https://apiz.ebay.com/sell/finances/v1/transaction_summary?filter=salesRecordReference:{123} Note: For all orders originating after February 1, 2020, a value of 0 will be returned in the salesRecordReference field. So, this filter will only be useful to retrieve orders than occurred before this date. payoutId: only consider monetary transactions related to a specific seller payout (identified with a Payout ID). This value is auto-generated by eBay once the seller payout is set to be processed. Below is the proper syntax to use if filtering by a specific Payout ID: https://apiz.ebay.com/sell/finances/v1/transaction_summary?filter=payoutId:{5000106638} transactionId: the unique identifier of a monetary transaction. For a sales order, the orderId filter should be used instead. Only the monetary transaction(s) associated with this transactionId value are returned. Note: This filter cannot be used alone; the transactionType must also be specified when filtering by transaction ID. Below is the proper syntax to use if filtering by a specific transaction ID: https://apiz.ebay.com/sell/finances/v1/transaction_summary?filter=transactionId:{03-03620-33763}&filter=transactionType:{SALE} orderId: the unique identifier of a sales order. For any other monetary transaction, the transactionId filter should be used instead. Only the monetary transaction(s) associated with this orderId value are returned. Below is the proper syntax to use if filtering by a specific order ID: https://apiz.ebay.com/sell/finances/v1/transaction_summary?filter=orderId:{03-03620-33763} For implementation help, refer to eBay API documentation at https://developer.ebay.com/api-docs/sell/finances/types/cos:FilterField
:return: TransactionSummaryResponse
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.get_transaction_summary_with_http_info(**kwargs) # noqa: E501
else:
(data) = self.get_transaction_summary_with_http_info(**kwargs) # noqa: E501
return data
def get_transaction_summary_with_http_info(self, **kwargs): # noqa: E501
"""get_transaction_summary # noqa: E501
This method is used to retrieve cumulative values for five types of monetary transactions (order sales, seller credits, buyer refunds, buyer-initiated payment disputes, eBay shipping label purchases, and transfers). If applicable, the number of payment holds and the amount of the holds are also returned. See the description for the filter query parameter for more information on the available filters. Note: Unless the transactionType filter is used to retrieve a specific type of monetary transaction (sale, buyer refund, seller credit, payment dispute, shipping label, transfer), the creditCount and creditAmount response fields account for both order sales and seller credits (the count and value is not distinguished between the two monetary transaction types). # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_transaction_summary_with_http_info(async_req=True)
>>> result = thread.get()
:param async_req bool
:param str filter: Numerous filters are available for the getTransactionSummary method, and these filters are discussed below. One or more of these filter types can be used. The transactionStatus filter must be used. All other filters are optional. transactionStatus: the data returned in the response pertains to the sales, payouts, and transfer status set. The supported transactionStatus values are as follows: PAYOUT: only consider monetary transactions where the proceeds from the sales order(s) have been paid out to the seller's bank account. FUNDS_PROCESSING: only consider monetary transactions where the proceeds from the sales order(s) are currently being processed. FUNDS_AVAILABLE_FOR_PAYOUT: only consider monetary transactions where the proceeds from the sales order(s) are available for a seller payout, but processing has not yet begun. FUNDS_ON_HOLD: only consider monetary transactions where the proceeds from the sales order(s) are currently being held by eBay, and are not yet available for a seller payout. COMPLETED: this indicates that the funds for the corresponding TRANSFER monetary transaction have transferred and the transaction has completed. FAILED: this indicates the process has failed for the corresponding TRANSFER monetary transaction. Below is the proper syntax to use when setting up the transactionStatus filter: https://apiz.ebay.com/sell/finances/v1/transaction_summary?filter=transactionStatus:{PAYOUT} transactionDate: only consider monetary transactions that occurred within a specific range of dates. Note: All dates must be input using UTC format (YYYY-MM-DDTHH:MM:SS.SSSZ) and should be adjusted accordingly for the local timezone of the user. Below is the proper syntax to use if filtering by a date range: https://apiz.ebay.com/sell/finances/v1/transaction_summary?filter=transactionDate:[2018-10-23T00:00:01.000Z..2018-11-09T00:00:01.000Z] Alternatively, the user could omit the ending date, and the date range would include the starting date and up to 90 days past that date, or the current date if the starting date is less than 90 days in the past. transactionType: only consider a specific type of monetary transaction. The supported transactionType values are as follows: SALE: a sales order. REFUND: a refund to the buyer after an order cancellation or return. CREDIT: a credit issued by eBay to the seller's account. DISPUTE: a monetary transaction associated with a payment dispute between buyer and seller. NON_SALE_CHARGE: a monetary transaction involving a seller transferring money to eBay for the balance of a charge for NON_SALE_CHARGE transactions (transactions that contain non-transactional seller fees). These can include a one-time payment, monthly/yearly subscription fees charged monthly, NRC charges, and fee credits. SHIPPING_LABEL: a monetary transaction where eBay is billing the seller for an eBay shipping label. Note that the shipping label functionality will initially only be available to a select number of sellers. TRANSFER: A transfer is a monetary transaction where eBay is billing the seller for reimbursement of a charge. An example of a transfer is a seller reimbursing eBay for a buyer refund.Below is the proper syntax to use if filtering by a monetary transaction type: https://apiz.ebay.com/sell/finances/v1/transaction_summary?filter=transactionType:{SALE} buyerUsername: only consider monetary transactions involving a specific buyer (specified with the buyer's eBay user ID). Below is the proper syntax to use if filtering by a specific eBay buyer: https://apiz.ebay.com/sell/finances/v1/transaction_summary?filter=buyerUsername:{buyer1234} salesRecordReference: only consider monetary transactions corresponding to a specific order (identified with a Selling Manager order identifier). Below is the proper syntax to use if filtering by a specific Selling Manager Sales Record ID: https://apiz.ebay.com/sell/finances/v1/transaction_summary?filter=salesRecordReference:{123} Note: For all orders originating after February 1, 2020, a value of 0 will be returned in the salesRecordReference field. So, this filter will only be useful to retrieve orders than occurred before this date. payoutId: only consider monetary transactions related to a specific seller payout (identified with a Payout ID). This value is auto-generated by eBay once the seller payout is set to be processed. Below is the proper syntax to use if filtering by a specific Payout ID: https://apiz.ebay.com/sell/finances/v1/transaction_summary?filter=payoutId:{5000106638} transactionId: the unique identifier of a monetary transaction. For a sales order, the orderId filter should be used instead. Only the monetary transaction(s) associated with this transactionId value are returned. Note: This filter cannot be used alone; the transactionType must also be specified when filtering by transaction ID. Below is the proper syntax to use if filtering by a specific transaction ID: https://apiz.ebay.com/sell/finances/v1/transaction_summary?filter=transactionId:{03-03620-33763}&filter=transactionType:{SALE} orderId: the unique identifier of a sales order. For any other monetary transaction, the transactionId filter should be used instead. Only the monetary transaction(s) associated with this orderId value are returned. Below is the proper syntax to use if filtering by a specific order ID: https://apiz.ebay.com/sell/finances/v1/transaction_summary?filter=orderId:{03-03620-33763} For implementation help, refer to eBay API documentation at https://developer.ebay.com/api-docs/sell/finances/types/cos:FilterField
:return: TransactionSummaryResponse
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['filter'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method get_transaction_summary" % key
)
params[key] = val
del params['kwargs']
collection_formats = {}
path_params = {}
query_params = []
if 'filter' in params:
query_params.append(('filter', params['filter'])) # noqa: E501
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['api_auth'] # noqa: E501
return self.api_client.call_api(
'/transaction_summary', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='TransactionSummaryResponse', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def get_transactions(self, **kwargs): # noqa: E501
"""get_transactions # noqa: E501
This method allows a seller to retrieve one or monetary transactions. In this case, 'monetary transactions' include sales orders, buyer refunds, seller credits, buyer-initiated payment disputes, eBay shipping label purchases, and transfers. There are numerous input filters available for use, including filters to retrieve specific types of monetary transactions, to retrieve monetary transactions processed within a specific date range, or to retrieve monetary transactions in a specific state. See the filter field for more information on each filter, and how each one is used. There are also pagination and sort query parameters that allow users to further control the monetary transactions that are returned in the response. If no monetary transactions match the input criteria, an http status code of 204 No Content is returned with no response payload. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_transactions(async_req=True)
>>> result = thread.get()
:param async_req bool
:param str filter: Numerous filters are available for the getTransactions method, and these filters are discussed below. One or more of these filter types can be used. If none of these filters are used, all monetary transactions from the last 90 days are returned: transactionDate: search for monetary transactions that occurred within a specific range of dates. Note: All dates must be input using UTC format (YYYY-MM-DDTHH:MM:SS.SSSZ) and should be adjusted accordingly for the local timezone of the user. Below is the proper syntax to use if filtering by a date range: https://apiz.ebay.com/sell/finances/v1/transaction?filter=transactionDate:[2018-10-23T00:00:01.000Z..2018-11-09T00:00:01.000Z] Alternatively, the user could omit the ending date, and the date range would include the starting date and up to 90 days past that date, or the current date if the starting date is less than 90 days in the past. transactionType: search for a specific type of monetary transaction. The supported transactionType values are as follows: SALE: a sales order. REFUND: a refund to the buyer after an order cancellation or return. CREDIT: a credit issued by eBay to the seller's account. DISPUTE: a monetary transaction associated with a payment dispute between buyer and seller. NON_SALE_CHARGE: a monetary transaction involving a seller transferring money to eBay for the balance of a charge for NON_SALE_CHARGE transactions (transactions that contain non-transactional seller fees). These can include a one-time payment, monthly/yearly subscription fees charged monthly, NRC charges, and fee credits. SHIPPING_LABEL: a monetary transaction where eBay is billing the seller for an eBay shipping label. Note that the shipping label functionality will initially only be available to a select number of sellers. TRANSFER: A transfer is a monetary transaction where eBay is billing the seller for reimbursement of a charge. An example of a transfer is a seller reimbursing eBay for a buyer refund.Below is the proper syntax to use if filtering by a monetary transaction type: https://apiz.ebay.com/sell/finances/v1/transaction?filter=transactionType:{SALE} transactionStatus: this filter type is only applicable for sales orders, and allows the user to filter seller payouts in a particular state. The supported transactionStatus values are as follows: PAYOUT: this indicates that the proceeds from the corresponding sales order has been paid out to the seller's account. FUNDS_PROCESSING: this indicates that the funds for the corresponding monetary transaction are currently being processed. FUNDS_AVAILABLE_FOR_PAYOUT: this indicates that the proceeds from the corresponding sales order are available for a seller payout, but processing has not yet begun. FUNDS_ON_HOLD: this indicates that the proceeds from the corresponding sales order are currently being held by eBay, and are not yet available for a seller payout. COMPLETED: this indicates that the funds for the corresponding TRANSFER monetary transaction have transferred and the transaction has completed. FAILED: this indicates the process has failed for the corresponding TRANSFER monetary transaction. Below is the proper syntax to use if filtering by transaction status: https://apiz.ebay.com/sell/finances/v1/transaction?filter=transactionStatus:{PAYOUT} buyerUsername: the eBay user ID of the buyer involved in the monetary transaction. Only monetary transactions involving this buyer are returned. Below is the proper syntax to use if filtering by a specific eBay buyer: https://apiz.ebay.com/sell/finances/v1/transaction?filter=buyerUsername:{buyer1234} salesRecordReference: the unique Selling Manager identifier of the order involved in the monetary transaction. Only monetary transactions involving this Selling Manager Sales Record ID are returned. Below is the proper syntax to use if filtering by a specific Selling Manager Sales Record ID: https://apiz.ebay.com/sell/finances/v1/transaction?filter=salesRecordReference:{123} Note: For all orders originating after February 1, 2020, a value of 0 will be returned in the salesRecordReference field. So, this filter will only be useful to retrieve orders than occurred before this date. payoutId: the unique identifier of a seller payout. This value is auto-generated by eBay once the seller payout is set to be processed. Only monetary transactions involving this Payout ID are returned. Below is the proper syntax to use if filtering by a specific Payout ID: https://apiz.ebay.com/sell/finances/v1/transaction?filter=payoutId:{5000106638} transactionId: the unique identifier of a monetary transaction. For a sales order, the orderId filter should be used instead. Only the monetary transaction defined by the identifier is returned. Note: This filter cannot be used alone; the transactionType must also be specified when filtering by transaction ID. Below is the proper syntax to use if filtering by a specific transaction ID: https://apiz.ebay.com/sell/finances/v1/transaction?filter=transactionId:{03-03620-33763}&filter=transactionType:{SALE} orderId: the unique identifier of a sales order. For any other monetary transaction, the transactionId filter should be used instead. Only the sales order defined by the identifier is returned. Below is the proper syntax to use if filtering by a specific order ID: https://apiz.ebay.com/sell/finances/v1/transaction?filter=orderId:{03-03620-33763} For implementation help, refer to eBay API documentation at https://developer.ebay.com/api-docs/sell/finances/types/cos:FilterField
:param str sort: Sorting is not yet available for the getTransactions method. By default, monetary transactions that match the input criteria are sorted in descending order according to the transaction date. For implementation help, refer to eBay API documentation at https://developer.ebay.com/api-docs/sell/finances/types/cos:SortField
:param str limit: The number of monetary transactions to return per page of the result set. Use this parameter in conjunction with the offset parameter to control the pagination of the output. For example, if offset is set to 10 and limit is set to 10, the method retrieves monetary transactions 11 thru 20 from the result set. Note: This feature employs a zero-based list, where the first item in the list has an offset of 0. If an orderId, transactionId, or payoutId filter is included in the request, any limit value will be ignored. Maximum: 1000 Default: 20
:param str offset: This integer value indicates the actual position that the first monetary transaction returned on the current page has in the results set. So, if you wanted to view the 11th monetary transaction of the result set, you would set the offset value in the request to 10. In the request, you can use the offset parameter in conjunction with the limit parameter to control the pagination of the output. For example, if offset is set to 30 and limit is set to 10, the method retrieves transactions 31 thru 40 from the resulting collection of transactions. Note: This feature employs a zero-based list, where the first item in the list has an offset of 0. Default: 0 (zero)
:return: Transactions
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.get_transactions_with_http_info(**kwargs) # noqa: E501
else:
(data) = self.get_transactions_with_http_info(**kwargs) # noqa: E501
return data
def get_transactions_with_http_info(self, **kwargs): # noqa: E501
"""get_transactions # noqa: E501
This method allows a seller to retrieve one or monetary transactions. In this case, 'monetary transactions' include sales orders, buyer refunds, seller credits, buyer-initiated payment disputes, eBay shipping label purchases, and transfers. There are numerous input filters available for use, including filters to retrieve specific types of monetary transactions, to retrieve monetary transactions processed within a specific date range, or to retrieve monetary transactions in a specific state. See the filter field for more information on each filter, and how each one is used. There are also pagination and sort query parameters that allow users to further control the monetary transactions that are returned in the response. If no monetary transactions match the input criteria, an http status code of 204 No Content is returned with no response payload. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_transactions_with_http_info(async_req=True)
>>> result = thread.get()
:param async_req bool
:param str filter: Numerous filters are available for the getTransactions method, and these filters are discussed below. One or more of these filter types can be used. If none of these filters are used, all monetary transactions from the last 90 days are returned: transactionDate: search for monetary transactions that occurred within a specific range of dates. Note: All dates must be input using UTC format (YYYY-MM-DDTHH:MM:SS.SSSZ) and should be adjusted accordingly for the local timezone of the user. Below is the proper syntax to use if filtering by a date range: https://apiz.ebay.com/sell/finances/v1/transaction?filter=transactionDate:[2018-10-23T00:00:01.000Z..2018-11-09T00:00:01.000Z] Alternatively, the user could omit the ending date, and the date range would include the starting date and up to 90 days past that date, or the current date if the starting date is less than 90 days in the past. transactionType: search for a specific type of monetary transaction. The supported transactionType values are as follows: SALE: a sales order. REFUND: a refund to the buyer after an order cancellation or return. CREDIT: a credit issued by eBay to the seller's account. DISPUTE: a monetary transaction associated with a payment dispute between buyer and seller. NON_SALE_CHARGE: a monetary transaction involving a seller transferring money to eBay for the balance of a charge for NON_SALE_CHARGE transactions (transactions that contain non-transactional seller fees). These can include a one-time payment, monthly/yearly subscription fees charged monthly, NRC charges, and fee credits. SHIPPING_LABEL: a monetary transaction where eBay is billing the seller for an eBay shipping label. Note that the shipping label functionality will initially only be available to a select number of sellers. TRANSFER: A transfer is a monetary transaction where eBay is billing the seller for reimbursement of a charge. An example of a transfer is a seller reimbursing eBay for a buyer refund.Below is the proper syntax to use if filtering by a monetary transaction type: https://apiz.ebay.com/sell/finances/v1/transaction?filter=transactionType:{SALE} transactionStatus: this filter type is only applicable for sales orders, and allows the user to filter seller payouts in a particular state. The supported transactionStatus values are as follows: PAYOUT: this indicates that the proceeds from the corresponding sales order has been paid out to the seller's account. FUNDS_PROCESSING: this indicates that the funds for the corresponding monetary transaction are currently being processed. FUNDS_AVAILABLE_FOR_PAYOUT: this indicates that the proceeds from the corresponding sales order are available for a seller payout, but processing has not yet begun. FUNDS_ON_HOLD: this indicates that the proceeds from the corresponding sales order are currently being held by eBay, and are not yet available for a seller payout. COMPLETED: this indicates that the funds for the corresponding TRANSFER monetary transaction have transferred and the transaction has completed. FAILED: this indicates the process has failed for the corresponding TRANSFER monetary transaction. Below is the proper syntax to use if filtering by transaction status: https://apiz.ebay.com/sell/finances/v1/transaction?filter=transactionStatus:{PAYOUT} buyerUsername: the eBay user ID of the buyer involved in the monetary transaction. Only monetary transactions involving this buyer are returned. Below is the proper syntax to use if filtering by a specific eBay buyer: https://apiz.ebay.com/sell/finances/v1/transaction?filter=buyerUsername:{buyer1234} salesRecordReference: the unique Selling Manager identifier of the order involved in the monetary transaction. Only monetary transactions involving this Selling Manager Sales Record ID are returned. Below is the proper syntax to use if filtering by a specific Selling Manager Sales Record ID: https://apiz.ebay.com/sell/finances/v1/transaction?filter=salesRecordReference:{123} Note: For all orders originating after February 1, 2020, a value of 0 will be returned in the salesRecordReference field. So, this filter will only be useful to retrieve orders than occurred before this date. payoutId: the unique identifier of a seller payout. This value is auto-generated by eBay once the seller payout is set to be processed. Only monetary transactions involving this Payout ID are returned. Below is the proper syntax to use if filtering by a specific Payout ID: https://apiz.ebay.com/sell/finances/v1/transaction?filter=payoutId:{5000106638} transactionId: the unique identifier of a monetary transaction. For a sales order, the orderId filter should be used instead. Only the monetary transaction defined by the identifier is returned. Note: This filter cannot be used alone; the transactionType must also be specified when filtering by transaction ID. Below is the proper syntax to use if filtering by a specific transaction ID: https://apiz.ebay.com/sell/finances/v1/transaction?filter=transactionId:{03-03620-33763}&filter=transactionType:{SALE} orderId: the unique identifier of a sales order. For any other monetary transaction, the transactionId filter should be used instead. Only the sales order defined by the identifier is returned. Below is the proper syntax to use if filtering by a specific order ID: https://apiz.ebay.com/sell/finances/v1/transaction?filter=orderId:{03-03620-33763} For implementation help, refer to eBay API documentation at https://developer.ebay.com/api-docs/sell/finances/types/cos:FilterField
:param str sort: Sorting is not yet available for the getTransactions method. By default, monetary transactions that match the input criteria are sorted in descending order according to the transaction date. For implementation help, refer to eBay API documentation at https://developer.ebay.com/api-docs/sell/finances/types/cos:SortField
:param str limit: The number of monetary transactions to return per page of the result set. Use this parameter in conjunction with the offset parameter to control the pagination of the output. For example, if offset is set to 10 and limit is set to 10, the method retrieves monetary transactions 11 thru 20 from the result set. Note: This feature employs a zero-based list, where the first item in the list has an offset of 0. If an orderId, transactionId, or payoutId filter is included in the request, any limit value will be ignored. Maximum: 1000 Default: 20
:param str offset: This integer value indicates the actual position that the first monetary transaction returned on the current page has in the results set. So, if you wanted to view the 11th monetary transaction of the result set, you would set the offset value in the request to 10. In the request, you can use the offset parameter in conjunction with the limit parameter to control the pagination of the output. For example, if offset is set to 30 and limit is set to 10, the method retrieves transactions 31 thru 40 from the resulting collection of transactions. Note: This feature employs a zero-based list, where the first item in the list has an offset of 0. Default: 0 (zero)
:return: Transactions
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['filter', 'sort', 'limit', 'offset'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method get_transactions" % key
)
params[key] = val
del params['kwargs']
collection_formats = {}
path_params = {}
query_params = []
if 'filter' in params:
query_params.append(('filter', params['filter'])) # noqa: E501
if 'sort' in params:
query_params.append(('sort', params['sort'])) # noqa: E501
if 'limit' in params:
query_params.append(('limit', params['limit'])) # noqa: E501
if 'offset' in params:
query_params.append(('offset', params['offset'])) # noqa: E501
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['api_auth'] # noqa: E501
return self.api_client.call_api(
'/transaction', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='Transactions', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
| 159.258772 | 5,591 | 0.772521 | 5,372 | 36,311 | 5.169769 | 0.078928 | 0.041733 | 0.011522 | 0.018436 | 0.974903 | 0.97177 | 0.971122 | 0.968385 | 0.967521 | 0.966657 | 0 | 0.017966 | 0.173777 | 36,311 | 227 | 5,592 | 159.960352 | 0.907736 | 0.855113 | 0 | 0.707965 | 0 | 0 | 0.151343 | 0.037993 | 0 | 0 | 0 | 0 | 0 | 1 | 0.044248 | false | 0 | 0.035398 | 0 | 0.141593 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 10 |
ca76cf3c522842db431b7e7ced517e07248e515b | 9,099 | py | Python | myems-aggregation/tariff.py | hyh123a/myems | 669ab8554995a622da595384698d670f9cee61f8 | [
"MIT"
] | 82 | 2021-02-19T10:24:31.000Z | 2022-03-28T06:30:18.000Z | myems-aggregation/tariff.py | hyh123a/myems | 669ab8554995a622da595384698d670f9cee61f8 | [
"MIT"
] | 188 | 2021-02-22T07:08:30.000Z | 2022-03-02T04:11:03.000Z | myems-aggregation/tariff.py | hyh123a/myems | 669ab8554995a622da595384698d670f9cee61f8 | [
"MIT"
] | 54 | 2021-02-19T08:48:46.000Z | 2022-03-30T06:21:34.000Z | from datetime import timedelta
import mysql.connector
import config
import collections
########################################################################################################################
# Get tariffs by energy category
########################################################################################################################
def get_energy_category_tariffs(cost_center_id, energy_category_id, start_datetime_utc, end_datetime_utc):
# todo: verify parameters
if cost_center_id is None:
return dict()
# get timezone offset in minutes, this value will be returned to client
timezone_offset = int(config.utc_offset[1:3]) * 60 + int(config.utc_offset[4:6])
if config.utc_offset[0] == '-':
timezone_offset = -timezone_offset
tariff_dict = collections.OrderedDict()
cnx = None
cursor = None
try:
cnx = mysql.connector.connect(**config.myems_system_db)
cursor = cnx.cursor()
query_tariffs = (" SELECT t.id, t.valid_from_datetime_utc, t.valid_through_datetime_utc "
" FROM tbl_tariffs t, tbl_cost_centers_tariffs cct "
" WHERE t.energy_category_id = %s AND "
" t.id = cct.tariff_id AND "
" cct.cost_center_id = %s AND "
" t.valid_through_datetime_utc >= %s AND "
" t.valid_from_datetime_utc <= %s "
" ORDER BY t.valid_from_datetime_utc ")
cursor.execute(query_tariffs, (energy_category_id, cost_center_id, start_datetime_utc, end_datetime_utc,))
rows_tariffs = cursor.fetchall()
except Exception as e:
print(str(e))
if cnx:
cnx.disconnect()
if cursor:
cursor.close()
return dict()
if rows_tariffs is None or len(rows_tariffs) == 0:
if cursor:
cursor.close()
if cnx:
cnx.disconnect()
return dict()
for row in rows_tariffs:
tariff_dict[row[0]] = {'valid_from_datetime_utc': row[1],
'valid_through_datetime_utc': row[2],
'rates': list()}
try:
query_timeofuse_tariffs = (" SELECT tariff_id, start_time_of_day, end_time_of_day, price "
" FROM tbl_tariffs_timeofuses "
" WHERE tariff_id IN ( " + ', '.join(map(str, tariff_dict.keys())) + ")"
" ORDER BY tariff_id, start_time_of_day ")
cursor.execute(query_timeofuse_tariffs, )
rows_timeofuse_tariffs = cursor.fetchall()
except Exception as e:
print(str(e))
if cnx:
cnx.disconnect()
if cursor:
cursor.close()
return dict()
if cursor:
cursor.close()
if cnx:
cnx.disconnect()
if rows_timeofuse_tariffs is None or len(rows_timeofuse_tariffs) == 0:
return dict()
for row in rows_timeofuse_tariffs:
tariff_dict[row[0]]['rates'].append({'start_time_of_day': row[1],
'end_time_of_day': row[2],
'price': row[3]})
result = dict()
for tariff_id, tariff_value in tariff_dict.items():
current_datetime_utc = tariff_value['valid_from_datetime_utc']
while current_datetime_utc < tariff_value['valid_through_datetime_utc']:
for rate in tariff_value['rates']:
current_datetime_local = current_datetime_utc + timedelta(minutes=timezone_offset)
seconds_since_midnight = (current_datetime_local -
current_datetime_local.replace(hour=0,
second=0,
microsecond=0,
tzinfo=None)).total_seconds()
if rate['start_time_of_day'].total_seconds() <= \
seconds_since_midnight < rate['end_time_of_day'].total_seconds():
result[current_datetime_utc] = rate['price']
break
# start from the next time slot
current_datetime_utc += timedelta(minutes=config.minutes_to_count)
return {k: v for k, v in result.items() if start_datetime_utc <= k <= end_datetime_utc}
########################################################################################################################
# Get tariffs by energy item
########################################################################################################################
def get_energy_item_tariffs(cost_center_id, energy_item_id, start_datetime_utc, end_datetime_utc):
# todo: verify parameters
if cost_center_id is None:
return dict()
# get timezone offset in minutes, this value will be returned to client
timezone_offset = int(config.utc_offset[1:3]) * 60 + int(config.utc_offset[4:6])
if config.utc_offset[0] == '-':
timezone_offset = -timezone_offset
tariff_dict = collections.OrderedDict()
cnx = None
cursor = None
try:
cnx = mysql.connector.connect(**config.myems_system_db)
cursor = cnx.cursor()
query_tariffs = (" SELECT t.id, t.valid_from_datetime_utc, t.valid_through_datetime_utc "
" FROM tbl_tariffs t, tbl_cost_centers_tariffs cct, tbl_energy_items ei "
" WHERE ei.id = %s AND "
" t.energy_category_id = ei.energy_category_id AND "
" t.id = cct.tariff_id AND "
" cct.cost_center_id = %s AND "
" t.valid_through_datetime_utc >= %s AND "
" t.valid_from_datetime_utc <= %s "
" ORDER BY t.valid_from_datetime_utc ")
cursor.execute(query_tariffs, (energy_item_id, cost_center_id, start_datetime_utc, end_datetime_utc,))
rows_tariffs = cursor.fetchall()
except Exception as e:
print(str(e))
if cnx:
cnx.disconnect()
if cursor:
cursor.close()
return dict()
if rows_tariffs is None or len(rows_tariffs) == 0:
if cursor:
cursor.close()
if cnx:
cnx.disconnect()
return dict()
for row in rows_tariffs:
tariff_dict[row[0]] = {'valid_from_datetime_utc': row[1],
'valid_through_datetime_utc': row[2],
'rates': list()}
try:
query_timeofuse_tariffs = (" SELECT tariff_id, start_time_of_day, end_time_of_day, price "
" FROM tbl_tariffs_timeofuses "
" WHERE tariff_id IN ( " + ', '.join(map(str, tariff_dict.keys())) + ")"
" ORDER BY tariff_id, start_time_of_day ")
cursor.execute(query_timeofuse_tariffs, )
rows_timeofuse_tariffs = cursor.fetchall()
except Exception as e:
print(str(e))
if cnx:
cnx.disconnect()
if cursor:
cursor.close()
return dict()
if cursor:
cursor.close()
if cnx:
cnx.disconnect()
if rows_timeofuse_tariffs is None or len(rows_timeofuse_tariffs) == 0:
return dict()
for row in rows_timeofuse_tariffs:
tariff_dict[row[0]]['rates'].append({'start_time_of_day': row[1],
'end_time_of_day': row[2],
'price': row[3]})
result = dict()
for tariff_id, tariff_value in tariff_dict.items():
current_datetime_utc = tariff_value['valid_from_datetime_utc']
while current_datetime_utc < tariff_value['valid_through_datetime_utc']:
for rate in tariff_value['rates']:
current_datetime_local = current_datetime_utc + timedelta(minutes=timezone_offset)
seconds_since_midnight = (current_datetime_local -
current_datetime_local.replace(hour=0,
second=0,
microsecond=0,
tzinfo=None)).total_seconds()
if rate['start_time_of_day'].total_seconds() <= \
seconds_since_midnight < rate['end_time_of_day'].total_seconds():
result[current_datetime_utc] = rate['price']
break
# start from the next time slot
current_datetime_utc += timedelta(minutes=config.minutes_to_count)
return {k: v for k, v in result.items() if start_datetime_utc <= k <= end_datetime_utc}
| 44.169903 | 120 | 0.51665 | 960 | 9,099 | 4.582292 | 0.123958 | 0.100023 | 0.028643 | 0.045465 | 0.938395 | 0.927029 | 0.927029 | 0.927029 | 0.927029 | 0.927029 | 0 | 0.006423 | 0.349819 | 9,099 | 205 | 121 | 44.385366 | 0.737153 | 0.03352 | 0 | 0.921212 | 0 | 0 | 0.172908 | 0.068995 | 0 | 0 | 0 | 0.004878 | 0 | 1 | 0.012121 | false | 0 | 0.024242 | 0 | 0.109091 | 0.024242 | 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 |
048448eec50a9f6df24943bfa940c870d64ec86a | 223 | py | Python | nd_intersects/__init__.py | jGaboardi/non-duplicated-intersects | f921018724b9e0f37be9cd04737639a350e6a900 | [
"BSD-3-Clause"
] | null | null | null | nd_intersects/__init__.py | jGaboardi/non-duplicated-intersects | f921018724b9e0f37be9cd04737639a350e6a900 | [
"BSD-3-Clause"
] | 1 | 2021-01-13T21:06:45.000Z | 2021-01-13T23:21:32.000Z | nd_intersects/__init__.py | jGaboardi/non-duplicated-intersects | f921018724b9e0f37be9cd04737639a350e6a900 | [
"BSD-3-Clause"
] | null | null | null | __version__ = "0.0.1"
"""
:mod:`non-duplicated intersects`
================================
"""
from .nd_intersects import nd_intersects, do_sjoin
from .nd_intersects import demo, demo_points, demo_polygons, demo_plot_join
| 27.875 | 75 | 0.668161 | 28 | 223 | 4.892857 | 0.607143 | 0.262774 | 0.233577 | 0.321168 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014778 | 0.089686 | 223 | 7 | 76 | 31.857143 | 0.660099 | 0 | 0 | 0 | 0 | 0 | 0.033333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
f3cf5c574ed8ab246ca36355e263daf85f7e5107 | 46,732 | py | Python | tests/test_cls__FnInstInfo.py | Amourspirit/python-kwargshelper | 4851ad69cf26f0656bc4264c70f956226bf5017e | [
"MIT"
] | null | null | null | tests/test_cls__FnInstInfo.py | Amourspirit/python-kwargshelper | 4851ad69cf26f0656bc4264c70f956226bf5017e | [
"MIT"
] | 4 | 2021-10-16T20:11:42.000Z | 2021-12-11T09:54:06.000Z | tests/test_cls__FnInstInfo.py | Amourspirit/python-kwargshelper | 4851ad69cf26f0656bc4264c70f956226bf5017e | [
"MIT"
] | null | null | null | # coding: utf-8
import functools
from inspect import signature
from collections import OrderedDict
import unittest
if __name__ == '__main__':
import os
import sys
sys.path.append(os.path.realpath('.'))
from kwhelp.decorator import _FnInstInfo, _FuncInfo, DecFuncEnum, DefaultArgs
FN_INFO = None
def gen_args(length: int) -> list:
return [i for i in range(length)]
def test_dec(func):
global FN_INFO
FN_INFO = None
@functools.wraps(func)
def wrapper(*args, **kwargs):
global FN_INFO
finfo = _FuncInfo(func=func, ftype=DecFuncEnum.FUNCTION)
FN_INFO = _FnInstInfo(fninfo=finfo, fn_args=args, fn_kwargs=kwargs)
wrapper.fn_info = FN_INFO
return func(*args, **kwargs)
wrapper.fn_info = None
return wrapper
def test_dec_cls(func):
global FN_INFO
FN_INFO = None
@functools.wraps(func)
def wrapper(*args, **kwargs):
global FN_INFO
finfo = _FuncInfo(func=func, ftype=DecFuncEnum.METHOD)
FN_INFO = _FnInstInfo(fninfo=finfo, fn_args=args, fn_kwargs=kwargs)
wrapper.fn_info = FN_INFO
return func(*args, **kwargs)
wrapper.fn_info = None
return wrapper
class Test_FuncInfo(unittest.TestCase):
def test_gen_args(self):
args = gen_args(3)
assert args[0] == 0
assert args[1] == 1
assert args[2] == 2
def test_names_only(self):
@test_dec
def foo(name, value):
return name, value
assert foo.fn_info == None
od_key_word_args = OrderedDict()
od_key_word_args['name'] = 'Me'
od_key_word_args['value'] = 'awesome'
result = foo(name='Me', value="awesome")
assert result[0] == 'Me'
assert result[1] == 'awesome'
self.assertIsInstance(foo.fn_info, _FnInstInfo)
info: _FnInstInfo = foo.fn_info
assert info.key_word_args['name'] == 'Me'
assert info.key_word_args['value'] == 'awesome'
assert info.name == 'foo'
assert len(info.args) == 0
assert len(info.kwargs) == 0
assert info.info.len_kw_only == 0
assert info.info.len_pos_or_kw == 2
assert info.info.len_positon_only == 0
assert info.info.is_args == False
assert info.info.is_args_only == False
assert info.info.is_kwargs == False
assert info.info.is_kwargs_only == False
assert info.info.is_named_args_only == True
assert len(info.info.all_keys) == 2
assert info.info.index_args == -1
assert info.info.index_kwargs == -1
self.assertDictEqual(od_key_word_args, info.key_word_args)
# test positional with names
result = foo('Me', "awesome")
assert result[0] == 'Me'
assert result[1] == 'awesome'
info: _FnInstInfo = foo.fn_info
assert len(info.args) == 0
assert len(info.kwargs) == 0
assert info.info.len_kw_only == 0
assert info.info.len_pos_or_kw == 2
assert info.info.len_positon_only == 0
assert info.info.is_args == False
assert info.info.is_args_only == False
assert info.info.is_kwargs == False
assert info.info.is_kwargs_only == False
assert info.info.is_named_args_only == True
assert len(info.info.all_keys) == 2
assert info.info.index_args == -1
assert info.info.index_kwargs == -1
self.assertDictEqual(od_key_word_args, info.key_word_args)
def test_args_only(self):
@test_dec
def foo(*args):
return [*args]
result = foo(1, 2, 3, 4)
assert result[0] == 1
info: _FnInstInfo = foo.fn_info
assert info.name == 'foo'
self.assertListEqual(info.args, result)
assert len(info.key_word_args) == 0
assert len(info.kwargs) == 0
assert info.info.len_kw_only == 0
assert info.info.len_pos_or_kw == 0
assert info.info.len_positon_only == 0
assert info.info.is_args == True
assert info.info.is_args_only == True
assert info.info.is_kwargs == False
assert info.info.is_kwargs_only == False
assert info.info.is_named_args_only == False
assert len(info.info.all_keys) == 0
assert info.info.index_args == 0
assert info.info.index_kwargs == -1
def test_kwargs_only(self):
@test_dec
def foo(**kwargs):
return {**kwargs}
result = foo(one=1, two=2, three=3, four=4)
assert result['one'] == 1
info: _FnInstInfo = foo.fn_info
assert info.name == 'foo'
self.assertDictEqual(info.kwargs, result)
assert len(info.key_word_args) == 0
assert len(info.args) == 0
assert len(info.kwargs) == 4
assert info.info.len_kw_only == 0
assert info.info.len_pos_or_kw == 0
assert info.info.len_positon_only == 0
assert info.info.is_args == False
assert info.info.is_args_only == False
assert info.info.is_kwargs == True
assert info.info.is_kwargs_only == True
assert info.info.is_named_args_only == False
assert len(info.info.all_keys) == 0
assert info.info.index_args == -1
assert info.info.index_kwargs == 0
def test_args_names_with_DefaultArgs(self):
global FN_INFO
@test_dec
def foo(*args, one, two, three, four=4):
return [*args] + [("one", one), ("two", two), ('three', three), ('four', four)]
@DefaultArgs(three=3, four=4)
@test_dec
def foo_default(*args, one, two, three, four):
return [*args] + [("one", one), ("two", two), ('three', three), ('four', four)]
i = 0
while i < 2:
if i == 0:
result = foo(5, 6, 7, 8, two=2, one=1, three=3)
info: _FnInstInfo = FN_INFO
assert info.name == 'foo'
else:
result = foo_default(5, 6, 7, 8, two=2, one=1)
info: _FnInstInfo = FN_INFO
assert info.name == 'foo_default'
assert result[0] == 5
od = OrderedDict()
od['one'] = 1
od['two'] = 2
od['three'] = 3
od['four'] = 4
self.assertDictEqual(info.key_word_args, od)
self.assertListEqual(info.args, [5, 6, 7, 8])
assert len(info.key_word_args) == 4
assert len(info.args) == 4
assert len(info.kwargs) == 0
assert info.info.len_kw_only == 4
assert info.info.len_pos_or_kw == 0
assert info.info.len_positon_only == 0
assert info.info.is_args == True
assert info.info.is_args_only == False
assert info.info.is_kwargs == False
assert info.info.is_kwargs_only == False
assert info.info.is_named_args_only == False
assert len(info.info.all_keys) == 4
assert info.info.index_args == 0
assert info.info.index_kwargs == -1
i += 1
def test_names_kwargs_with_DefaultArgs(self):
global FN_INFO
@test_dec
def foo(start, center, end="!!", **kwargs):
result = {
"start": start,
"center": center,
"end": end
}
result.update(**kwargs)
return result
@DefaultArgs(center="_", end="!!", four=4)
@test_dec
def foo_default(start, center, end="!!", **kwargs):
result = {
"start": start,
"center": center,
"end": end
}
result.update(**kwargs)
return result
i = 0
while i < 2:
if i == 0:
result = foo(start='1st', center="_",
one=1, two=2, three=3, four=4)
info: _FnInstInfo = FN_INFO
assert info.name == 'foo'
else:
result = foo_default(start='1st', one=1, two=2, three=3)
info: _FnInstInfo = FN_INFO
assert info.name == 'foo_default'
assert result['start'] == '1st'
kwargs = OrderedDict()
kwargs['one'] = 1
kwargs['two'] = 2
kwargs['three'] = 3
kwargs['four'] = 4
key_word_args = OrderedDict()
key_word_args['start'] = '1st'
key_word_args['center'] = '_'
key_word_args['end'] = '!!'
self.assertDictEqual(info.kwargs, kwargs)
self.assertDictEqual(info.key_word_args, key_word_args)
assert len(info.key_word_args) == 3
assert len(info.args) == 0
assert len(info.kwargs) == 4
assert info.info.len_kw_only == 0
assert info.info.len_pos_or_kw == 3
assert info.info.len_positon_only == 0
assert info.info.is_args == False
assert info.info.is_args_only == False
assert info.info.is_kwargs == True
assert info.info.is_kwargs_only == False
assert info.info.is_named_args_only == False
assert len(info.info.all_keys) == 3
assert info.info.index_args == -1
assert info.info.index_kwargs == 3
i += 1
def test_args_names_kwargs_with_DefaultArgs(self):
global FN_INFO
@test_dec
def foo(*args, start, center, end="!!", **kwargs):
result = {
"args": args,
"start": start,
"center": center,
"end": end
}
result.update(**kwargs)
return result
@DefaultArgs(center="_", end="!!", four=4)
@test_dec
def foo_default(*args, start, center, end="!!", **kwargs):
result = {
"args": args,
"start": start,
"center": center,
"end": end
}
result.update(**kwargs)
return result
i = 0
while i < 2:
if i == 0:
result = foo(101, 102, 103, start='1st', center="_",
one=1, two=2, three=3, four=4)
info: _FnInstInfo = FN_INFO
assert info.name == 'foo'
else:
result = foo_default(
101, 102, 103, start='1st', one=1, two=2, three=3)
info: _FnInstInfo = FN_INFO
assert info.name == 'foo_default'
assert result['start'] == '1st'
kwargs = OrderedDict()
kwargs['one'] = 1
kwargs['two'] = 2
kwargs['three'] = 3
kwargs['four'] = 4
key_word_args = OrderedDict()
key_word_args['start'] = '1st'
key_word_args['center'] = '_'
key_word_args['end'] = '!!'
self.assertDictEqual(info.kwargs, kwargs)
self.assertDictEqual(info.key_word_args, key_word_args)
assert len(info.key_word_args) == 3
assert len(info.args) == 3
assert len(info.kwargs) == 4
assert info.info.len_kw_only == 3
assert info.info.len_pos_or_kw == 0
assert info.info.len_positon_only == 0
assert info.info.is_args == True
assert info.info.is_args_only == False
assert info.info.is_kwargs == True
assert info.info.is_kwargs_only == False
assert info.info.is_named_args_only == False
assert len(info.info.all_keys) == 3
assert info.info.index_args == 0
assert info.info.index_kwargs == 4
i += 1
def test_names_args(self):
@test_dec
def foo(first, second, *args):
return [first, second] + [*args]
result = foo(1, 2, 3, 4)
assert result[0] == 1
info: _FnInstInfo = foo.fn_info
assert info.name == 'foo'
key_word_args = OrderedDict()
key_word_args['first'] = 1
key_word_args['second'] = 2
self.assertDictEqual(info.key_word_args, key_word_args)
self.assertListEqual(info.args, [3, 4])
assert len(info.key_word_args) == 2
assert len(info.kwargs) == 0
assert info.info.len_kw_only == 0
assert info.info.len_pos_or_kw == 2
assert info.info.len_positon_only == 0
assert info.info.is_args == True
assert info.info.is_args_only == False
assert info.info.is_kwargs == False
assert info.info.is_kwargs_only == False
assert info.info.is_named_args_only == False
assert len(info.info.all_keys) == 2
assert info.info.index_args == 2
assert info.info.index_kwargs == -1
def test_names_args_names(self):
@test_dec
def foo(first, second, *args, third, fourth='4th'):
return [first, second] + [*args] + [third, fourth]
result = foo(1, 2, 3, 4, third='3rd')
assert result[0] == 1
info: _FnInstInfo = foo.fn_info
assert info.name == 'foo'
key_word_args = OrderedDict()
key_word_args['first'] = 1
key_word_args['second'] = 2
key_word_args['third'] = '3rd'
key_word_args['fourth'] = '4th'
self.assertDictEqual(info.key_word_args, key_word_args)
self.assertListEqual(info.args, [3, 4])
self.assertDictEqual(info.info.defauts, {"fourth": "4th"})
assert len(info.key_word_args) == 4
assert len(info.kwargs) == 0
assert info.info.len_kw_only == 2
assert info.info.len_pos_or_kw == 2
assert info.info.len_positon_only == 0
assert info.info.is_args == True
assert info.info.is_args_only == False
assert info.info.is_kwargs == False
assert info.info.is_kwargs_only == False
assert info.info.is_named_args_only == False
assert len(info.info.all_keys) == 4
assert info.info.index_args == 2
assert info.info.index_kwargs == -1
def test_names_args_kwargs(self):
@test_dec
def foo(first, second, *args, **kwargs):
return [first, second] + [*args] + [v for _, v in kwargs.items()]
result = foo(1, 2, 3, 4, third='3rd',
fourth='4th', five='5th', six='6th')
assert result[0] == 1
info: _FnInstInfo = foo.fn_info
assert info.name == 'foo'
key_word_args = OrderedDict()
key_word_args['first'] = 1
key_word_args['second'] = 2
kwargs = OrderedDict()
kwargs['third'] = '3rd'
kwargs['fourth'] = '4th'
kwargs['five'] = '5th'
kwargs['six'] = '6th'
self.assertDictEqual(info.key_word_args, key_word_args)
self.assertDictEqual(info.kwargs, kwargs)
self.assertListEqual(info.args, [3, 4])
assert len(info.key_word_args) == 2
assert len(info.kwargs) == 4
assert info.info.len_kw_only == 0
assert info.info.len_pos_or_kw == 2
assert info.info.len_positon_only == 0
assert info.info.is_args == True
assert info.info.is_args_only == False
assert info.info.is_kwargs == True
assert info.info.is_kwargs_only == False
assert info.info.is_named_args_only == False
assert len(info.info.all_keys) == 2
assert info.info.index_args == 2
assert info.info.index_kwargs == 3
def test_names_args_names_kwargs(self):
@test_dec
def foo(first, second, *args, third, fourth='4th', **kwargs):
return [first, second] + [*args] + [third, fourth] + [v for _, v in kwargs.items()]
result = foo(1, 2, 3, 4, third='3rd', five='5th', six='6th')
assert result[0] == 1
info: _FnInstInfo = foo.fn_info
assert info.name == 'foo'
key_word_args = OrderedDict()
key_word_args['first'] = 1
key_word_args['second'] = 2
key_word_args['third'] = '3rd'
key_word_args['fourth'] = '4th'
kwargs = OrderedDict()
kwargs['five'] = '5th'
kwargs['six'] = '6th'
self.assertDictEqual(info.key_word_args, key_word_args)
self.assertDictEqual(info.kwargs, kwargs)
self.assertListEqual(info.args, [3, 4])
self.assertDictEqual(info.info.defauts, {"fourth": "4th"})
assert len(info.key_word_args) == 4
assert len(info.kwargs) == 2
assert info.info.len_kw_only == 2
assert info.info.len_pos_or_kw == 2
assert info.info.len_positon_only == 0
assert info.info.is_args == True
assert info.info.is_args_only == False
assert info.info.is_kwargs == True
assert info.info.is_kwargs_only == False
assert info.info.is_named_args_only == False
assert len(info.info.all_keys) == 4
assert info.info.index_args == 2
assert info.info.index_kwargs == 5
class Test_FuncInfoGets(unittest.TestCase):
def test_name_only(self):
@test_dec
def foo(name, value):
return name, value
assert foo.fn_info == None
od_key_word_args = OrderedDict()
od_key_word_args['name'] = 'Me'
od_key_word_args['value'] = 'awesome'
result = foo(name='Me', value="awesome")
assert result[0] == 'Me'
assert result[1] == 'awesome'
# run twice for cache test
for _ in range(2):
info: _FnInstInfo = foo.fn_info
self.assertDictEqual(od_key_word_args, info.key_word_args)
d = info.get_all_args()
self.assertDictEqual(od_key_word_args, d)
d = info.get_filter_arg()
assert len(d) == 0
d = info.get_filter_noargs()
assert len(d) == 2
keys = list(d.keys())
assert keys[0] == 'name'
assert keys[1] == 'value'
assert d['name'] == 'Me'
assert d['value'] == 'awesome'
d = info.get_filtered_key_word_args()
self.assertDictEqual(od_key_word_args, d)
d = info.get_filtered_kwargs()
assert len(d) == 0
# test positional
result = foo('Me', "awesome")
assert result[0] == 'Me'
assert result[1] == 'awesome'
info: _FnInstInfo = foo.fn_info
self.assertDictEqual(od_key_word_args, info.key_word_args)
d = info.get_all_args()
self.assertDictEqual(od_key_word_args, d)
d = info.get_filtered_key_word_args()
self.assertDictEqual(od_key_word_args, d)
def test_names_optional_args(self):
@test_dec
def foo(name, value, one=1, two=2):
return (name, value, one, two)
assert foo.fn_info == None
od_key_word_args = OrderedDict()
od_key_word_args['name'] = 'Me'
od_key_word_args['value'] = 'awesome'
od_key_word_args['one'] = 1
od_key_word_args['two'] = 2
result = foo(name='Me', value="awesome")
assert result[0] == 'Me'
assert result[1] == 'awesome'
assert result[2] == 1
assert result[3] == 2
# run twice for cache test
for _ in range(2):
info: _FnInstInfo = foo.fn_info
self.assertDictEqual(od_key_word_args, info.key_word_args)
d = info.get_all_args()
self.assertDictEqual(od_key_word_args, d)
d = info.get_filter_arg()
assert len(d) == 0
d = info.get_filter_noargs()
self.assertDictEqual(od_key_word_args, d)
d = info.get_filtered_key_word_args()
self.assertDictEqual(od_key_word_args, d)
d = info.get_filtered_kwargs()
assert len(d) == 0
# test positional
result = foo('Me', "awesome")
assert result[0] == 'Me'
assert result[1] == 'awesome'
info: _FnInstInfo = foo.fn_info
self.assertDictEqual(od_key_word_args, info.key_word_args)
d = info.get_all_args()
self.assertDictEqual(od_key_word_args, d)
d = info.get_filtered_key_word_args()
self.assertDictEqual(od_key_word_args, d)
def test_args_only(self):
def is_match(lst: list, dict: OrderedDict):
for i in range(len(lst)):
key = '*' + str(i)
assert foo_args[i] == dict[key]
@test_dec
def foo(*args):
return [*args]
args_len = 20
foo_args = [*gen_args(args_len)]
result = foo(*foo_args)
# run twice for cache test
for _ in range(2):
info: _FnInstInfo = foo.fn_info
d = info.get_all_args()
assert len(d) == args_len
is_match(foo_args, d)
d = info.get_filter_arg()
assert len(d) == args_len
is_match(foo_args, d)
d = info.get_filtered_key_word_args()
assert len(d) == 0
d = info.get_filtered_kwargs()
assert len(d) == 0
d = info.get_filter_noargs()
assert len(d) == 0
def test_kwargs_only(self):
@test_dec
def foo(**kwargs):
return {**kwargs}
od = OrderedDict()
od['one'] = 1
od['two'] = 2
od['three'] = 3
od['four'] = 3
result = foo(**od)
assert result['one'] == 1
info: _FnInstInfo = foo.fn_info
# run twice for cache test
for _ in range(2):
d = info.get_all_args()
assert len(d) == 4
self.assertDictEqual(od, d)
d = info.get_filter_arg()
assert len(d) == 0
d = info.get_filtered_key_word_args()
assert len(d) == 0
d = info.get_filtered_kwargs()
self.assertDictEqual(od, d)
d = info.get_filter_noargs()
self.assertDictEqual(od, d)
def test_args_names(self):
@test_dec
def foo(*args, one, two, three, four=4):
return [*args] + [("one", one), ("two", two), ('three', three), ('four', four)]
args_lst = [5, 6, 7, 8]
key_word_args = OrderedDict()
key_word_args['one'] = 1
key_word_args['two'] = 2
key_word_args['three'] = 3
key_word_args['four'] = 4
od_all = OrderedDict()
od_args = OrderedDict()
for i, arg in enumerate(args_lst):
key = '*' + str(i)
od_all[key] = arg
od_args[key] = arg
od_all.update(key_word_args)
od_noargs = OrderedDict(key_word_args)
result = foo(*args_lst, **key_word_args)
info: _FnInstInfo = foo.fn_info
# run twice for cache test
for _ in range(2):
d = info.get_all_args()
self.assertDictEqual(od_all, d)
d = info.get_filter_arg()
self.assertDictEqual(od_args, d)
d = info.get_filtered_key_word_args()
self.assertDictEqual(key_word_args, d)
d = info.get_filtered_kwargs()
assert len(d) == 0
d = info.get_filter_noargs()
self.assertDictEqual(od_noargs, d)
def test_names_kwargs(self):
@test_dec
def foo(start, center, end="!!", **kwargs):
result = {
"start": start,
"center": center,
"end": end
}
result.update(**kwargs)
return result
kwargs = OrderedDict()
kwargs['one'] = 1
kwargs['two'] = 2
kwargs['three'] = 3
kwargs['four'] = 4
key_word_args = OrderedDict()
key_word_args['start'] = '1st'
key_word_args['center'] = '_'
key_word_args['end'] = '!!'
od_all = OrderedDict(key_word_args)
od_all.update(kwargs)
od_noargs = OrderedDict(key_word_args)
od_noargs.update(kwargs)
result = foo(start='1st', center="_",
one=1, two=2, three=3, four=4)
info: _FnInstInfo = foo.fn_info
# run twice for cache test
for _ in range(2):
d = info.get_all_args()
self.assertDictEqual(od_all, d)
d = info.get_filter_arg()
assert len(d) == 0
d = info.get_filtered_key_word_args()
self.assertDictEqual(key_word_args, d)
d = info.get_filtered_kwargs()
self.assertDictEqual(kwargs, d)
d = info.get_filter_noargs()
self.assertDictEqual(od_noargs, d)
def bar(start, center, end="!!", **kwargs):
result = {
"start": start,
"center": center,
"end": end
}
result.update(**kwargs)
return result
# test positional
result = bar('1st', "_", one=1, two=2, three=3, four=4)
assert result['start'] == '1st'
assert result['center'] == '_'
assert result['end'] == '!!'
assert result['one'] == 1
assert result['two'] == 2
assert result['three'] == 3
assert result['four'] == 4
result = foo('1st', "_", one=1, two=2, three=3, four=4)
info: _FnInstInfo = foo.fn_info
# run twice for cache test
for _ in range(2):
d = info.get_all_args()
self.assertDictEqual(od_all, d)
d = info.get_filter_arg()
assert len(d) == 0
d = info.get_filtered_key_word_args()
self.assertDictEqual(key_word_args, d)
d = info.get_filtered_kwargs()
self.assertDictEqual(kwargs, d)
d = info.get_filter_noargs()
self.assertDictEqual(od_noargs, d)
def test_args_names_kwargs(self):
@test_dec
def foo(*args, start, center, end="!!", **kwargs):
result = {
"args": args,
"start": start,
"center": center,
"end": end
}
result.update(**kwargs)
return result
args_lst = [101, 102, 103]
kwargs = OrderedDict()
kwargs['one'] = 1
kwargs['two'] = 2
kwargs['three'] = 3
kwargs['four'] = 4
key_word_args = OrderedDict()
key_word_args['start'] = '1st'
key_word_args['center'] = '_'
key_word_args['end'] = '!!'
od_args = OrderedDict()
od_all = OrderedDict()
for i, arg in enumerate(args_lst):
key = '*' + str(i)
od_all[key] = arg
od_args[key] = arg
od_all.update(key_word_args)
od_all.update(kwargs)
od_noargs = OrderedDict(key_word_args)
od_noargs.update(kwargs)
result = foo(*args_lst, start='1st', center="_",
one=1, two=2, three=3, four=4)
info: _FnInstInfo = foo.fn_info
# run twice for cache test
for _ in range(2):
d = info.get_all_args()
self.assertDictEqual(od_all, d)
d = info.get_filter_arg()
self.assertDictEqual(od_args, d)
d = info.get_filtered_key_word_args()
self.assertDictEqual(key_word_args, d)
d = info.get_filtered_kwargs()
self.assertDictEqual(kwargs, d)
d = info.get_filter_noargs()
self.assertDictEqual(od_noargs, d)
def test_names_args(self):
@test_dec
def foo(first, second, *args):
return [first, second] + [*args]
args_lst = [3, 4]
od_pre = OrderedDict()
od_pre['first'] = 1
od_pre['second'] = 2
od_args = OrderedDict()
od_all = OrderedDict(od_pre)
pre_ofset = len(od_pre)
for i, arg in enumerate(args_lst):
key = '*' + str(i + pre_ofset)
od_all[key] = arg
od_args[key] = arg
od_noargs = OrderedDict(od_pre)
result = foo(1, 2, *args_lst)
info: _FnInstInfo = foo.fn_info
# run twice for cache test
for _ in range(2):
d = info.get_all_args()
self.assertDictEqual(od_all, d)
d = info.get_filter_arg()
self.assertDictEqual(od_args, d)
d = info.get_filtered_key_word_args()
self.assertDictEqual(od_pre, d)
d = info.get_filtered_kwargs()
assert len(d) == 0
d = info.get_filter_noargs()
self.assertDictEqual(od_noargs, d)
def test_names_args_names(self):
@test_dec
def foo(first, second, *args, third, fourth='4th'):
return [first, second] + [*args] + [third, fourth]
args_lst = [3, 4]
od_pre = OrderedDict()
od_pre['first'] = 1
od_pre['second'] = 2
key_word_args = OrderedDict()
key_word_args['third'] = '3rd'
key_word_args['fourth'] = '4th'
od_args = OrderedDict()
od_all = OrderedDict(od_pre)
pre_ofset = len(od_pre)
for i, arg in enumerate(args_lst):
key = '*' + str(i + pre_ofset)
od_all[key] = arg
od_args[key] = arg
od_all.update(key_word_args)
od_noargs = OrderedDict(od_pre)
od_noargs.update(key_word_args)
od_all_kw = OrderedDict(od_pre)
od_all_kw.update(key_word_args)
result = foo(1, 2, 3, 4, third='3rd')
assert result[0] == 1
info: _FnInstInfo = foo.fn_info
# run twice for cache test
for _ in range(2):
d = info.get_all_args()
self.assertDictEqual(od_all, d)
d = info.get_filter_arg()
self.assertDictEqual(od_args, d)
d = info.get_filtered_key_word_args()
self.assertDictEqual(od_all_kw, d)
d = info.get_filtered_kwargs()
assert len(d) == 0
d = info.get_filter_noargs()
self.assertDictEqual(od_noargs, d)
def test_names_args_kwargs(self):
@test_dec
def foo(first, second, *args, **kwargs):
return [first, second] + [*args] + [v for _, v in kwargs.items()]
args_lst = [3, 4]
od_pre = OrderedDict()
od_pre['first'] = 1
od_pre['second'] = 2
kwargs = OrderedDict()
kwargs['third'] = '3rd'
kwargs['fourth'] = '4th'
kwargs['five'] = '5th'
kwargs['six'] = '6th'
od_args = OrderedDict()
od_all = OrderedDict(od_pre)
pre_ofset = len(od_pre)
for i, arg in enumerate(args_lst):
key = '*' + str(i + pre_ofset)
od_all[key] = arg
od_args[key] = arg
od_all.update(kwargs)
od_noargs = OrderedDict(od_pre)
od_noargs.update(kwargs)
result = foo(1, 2, 3, 4, third='3rd',
fourth='4th', five='5th', six='6th')
assert result[0] == 1
info: _FnInstInfo = foo.fn_info
# run twice for cache test
for _ in range(2):
d = info.get_all_args()
self.assertDictEqual(od_all, d)
d = info.get_filter_arg()
self.assertDictEqual(od_args, d)
d = info.get_filtered_key_word_args()
self.assertDictEqual(od_pre, d)
d = info.get_filtered_kwargs()
self.assertDictEqual(kwargs, d)
def test_names_args_names_kwargs(self):
@test_dec
def foo(first, second, *args, third, fourth='4th', **kwargs):
return [first, second] + [*args] + [third, fourth] + [v for _, v in kwargs.items()]
args_lst = [3, 4]
od_pre = OrderedDict()
od_pre['first'] = 1
od_pre['second'] = 2
key_word_args = OrderedDict()
key_word_args['third'] = '3rd'
key_word_args['fourth'] = '4th'
kwargs = OrderedDict()
kwargs['five'] = '5th'
kwargs['six'] = '6th'
od_args = OrderedDict()
od_all = OrderedDict(od_pre)
pre_ofset = len(od_pre)
for i, arg in enumerate(args_lst):
key = '*' + str(i + pre_ofset)
od_all[key] = arg
od_args[key] = arg
od_all.update(key_word_args)
od_all.update(kwargs)
od_noargs = OrderedDict(od_pre)
od_noargs.update(key_word_args)
od_noargs.update(kwargs)
od_all_kw = OrderedDict(od_pre)
od_all_kw.update(key_word_args)
result = foo(1, 2, 3, 4, third='3rd', five='5th', six='6th')
assert result[0] == 1
info: _FnInstInfo = foo.fn_info
assert info.name == 'foo'
# run twice for cache test
for _ in range(2):
d = info.get_all_args()
self.assertDictEqual(od_all, d)
d = info.get_filter_arg()
self.assertDictEqual(od_args, d)
d = info.get_filtered_key_word_args()
self.assertDictEqual(od_all_kw, d)
d = info.get_filtered_kwargs()
self.assertDictEqual(kwargs, d)
d = info.get_filter_noargs()
self.assertDictEqual(od_noargs, d)
class Test_FuncInfoGetsClass(unittest.TestCase):
def test_args_kwargs(self):
global FN_INFO
class Runner:
@test_dec_cls
def foo(self, name, value):
return name, value
r = Runner()
result = r.foo(name='Me', value="awesome")
info: _FnInstInfo = FN_INFO
# run twice for cache test
for _ in range(2):
assert result[0] == 'Me'
assert result[1] == 'awesome'
d = info.get_all_args()
assert len(d) == 2
keys = list(d.keys())
assert keys[0] == 'name'
assert keys[1] == 'value'
assert d['name'] == 'Me'
assert d['value'] == 'awesome'
d = info.get_filter_arg()
assert len(d) == 0
d = info.get_filter_noargs()
assert len(d) == 2
keys = list(d.keys())
assert keys[0] == 'name'
assert keys[1] == 'value'
assert d['name'] == 'Me'
assert d['value'] == 'awesome'
d = info.get_filtered_key_word_args()
assert len(d) == 2
keys = list(d.keys())
assert keys[0] == 'name'
assert keys[1] == 'value'
assert d['name'] == 'Me'
assert d['value'] == 'awesome'
d = info.get_filtered_kwargs()
assert len(d) == 0
def test_args_only(self):
global FN_INFO
def is_match(lst: list, dict: OrderedDict):
for i in range(len(lst)):
key = '*' + str(i)
assert foo_args[i] == dict[key]
class Runner:
@test_dec_cls
def foo(self, *args):
return [*args]
r = Runner()
args_len = 20
foo_args = [*gen_args(args_len)]
result = r.foo(*foo_args)
info: _FnInstInfo = FN_INFO
# run twice for cache test
for _ in range(2):
d = info.get_all_args()
assert len(d) == args_len
is_match(foo_args, d)
d = info.get_filter_arg()
assert len(d) == args_len
is_match(foo_args, d)
d = info.get_filtered_key_word_args()
assert len(d) == 0
d = info.get_filtered_kwargs()
assert len(d) == 0
d = info.get_filter_noargs()
assert len(d) == 0
def test_kwargs_only(self):
class Runner:
@test_dec_cls
def foo(self, **kwargs):
return {**kwargs}
od = OrderedDict()
od['one'] = 1
od['two'] = 2
od['three'] = 3
od['four'] = 3
r = Runner()
result = r.foo(**od)
assert result['one'] == 1
info: _FnInstInfo = Runner.foo.fn_info
d = info.get_all_args()
assert len(d) == 4
self.assertDictEqual(od, d)
d = info.get_filter_arg()
assert len(d) == 0
d = info.get_filtered_key_word_args()
assert len(d) == 0
d = info.get_filtered_kwargs()
self.assertDictEqual(od, d)
d = info.get_filter_noargs()
self.assertDictEqual(od, d)
def test_args_names(self):
class Runner:
@test_dec_cls
def foo(self, *args, one, two, three, four=4):
return [*args] + [("one", one), ("two", two), ('three', three), ('four', four)]
args_lst = [5, 6, 7, 8]
key_word_args = OrderedDict()
key_word_args['one'] = 1
key_word_args['two'] = 2
key_word_args['three'] = 3
key_word_args['four'] = 4
od_all = OrderedDict()
od_args = OrderedDict()
for i, arg in enumerate(args_lst):
key = '*' + str(i)
od_all[key] = arg
od_args[key] = arg
od_all.update(key_word_args)
od_noargs = OrderedDict(key_word_args)
r = Runner()
result = r.foo(*args_lst, **key_word_args)
info: _FnInstInfo = Runner.foo.fn_info
d = info.get_all_args()
self.assertDictEqual(od_all, d)
d = info.get_filter_arg()
self.assertDictEqual(od_args, d)
d = info.get_filtered_key_word_args()
self.assertDictEqual(key_word_args, d)
d = info.get_filtered_kwargs()
assert len(d) == 0
d = info.get_filter_noargs()
self.assertDictEqual(od_noargs, d)
def test_names_kwargs(self):
class Runner:
@test_dec_cls
def foo(self, start, center, end="!!", **kwargs):
result = {
"start": start,
"center": center,
"end": end
}
result.update(**kwargs)
return result
kwargs = OrderedDict()
kwargs['one'] = 1
kwargs['two'] = 2
kwargs['three'] = 3
kwargs['four'] = 4
key_word_args = OrderedDict()
key_word_args['start'] = '1st'
key_word_args['center'] = '_'
key_word_args['end'] = '!!'
od_all = OrderedDict(key_word_args)
od_all.update(kwargs)
od_noargs = OrderedDict(key_word_args)
od_noargs.update(kwargs)
r = Runner()
result = r.foo(start='1st', center="_",
one=1, two=2, three=3, four=4)
info: _FnInstInfo = Runner.foo.fn_info
d = info.get_all_args()
self.assertDictEqual(od_all, d)
d = info.get_filter_arg()
assert len(d) == 0
d = info.get_filtered_key_word_args()
self.assertDictEqual(key_word_args, d)
d = info.get_filtered_kwargs()
self.assertDictEqual(kwargs, d)
d = info.get_filter_noargs()
self.assertDictEqual(od_noargs, d)
result = r.foo('1st', "_", one=1, two=2, three=3, four=4)
info: _FnInstInfo = Runner.foo.fn_info
d = info.get_all_args()
self.assertDictEqual(od_all, d)
d = info.get_filter_arg()
assert len(d) == 0
d = info.get_filtered_key_word_args()
self.assertDictEqual(key_word_args, d)
d = info.get_filtered_kwargs()
self.assertDictEqual(kwargs, d)
d = info.get_filter_noargs()
self.assertDictEqual(od_noargs, d)
def test_args_names_kwargs(self):
class Runner:
@test_dec_cls
def foo(self, *args, start, center, end="!!", **kwargs):
result = {
"args": args,
"start": start,
"center": center,
"end": end
}
result.update(**kwargs)
return result
args_lst = [101, 102, 103]
kwargs = OrderedDict()
kwargs['one'] = 1
kwargs['two'] = 2
kwargs['three'] = 3
kwargs['four'] = 4
key_word_args = OrderedDict()
key_word_args['start'] = '1st'
key_word_args['center'] = '_'
key_word_args['end'] = '!!'
od_args = OrderedDict()
od_all = OrderedDict()
for i, arg in enumerate(args_lst):
key = '*' + str(i)
od_all[key] = arg
od_args[key] = arg
od_all.update(key_word_args)
od_all.update(kwargs)
od_noargs = OrderedDict(key_word_args)
od_noargs.update(kwargs)
r = Runner()
result = r.foo(*args_lst, start='1st', center="_",
one=1, two=2, three=3, four=4)
info: _FnInstInfo = Runner.foo.fn_info
d = info.get_all_args()
self.assertDictEqual(od_all, d)
d = info.get_filter_arg()
self.assertDictEqual(od_args, d)
d = info.get_filtered_key_word_args()
self.assertDictEqual(key_word_args, d)
d = info.get_filtered_kwargs()
self.assertDictEqual(kwargs, d)
d = info.get_filter_noargs()
self.assertDictEqual(od_noargs, d)
def test_names_args(self):
class Runner:
@test_dec_cls
def foo(sefl, first, second, *args):
return [first, second] + [*args]
args_lst = [3, 4]
od_pre = OrderedDict()
od_pre['first'] = 1
od_pre['second'] = 2
od_args = OrderedDict()
od_all = OrderedDict(od_pre)
pre_ofset = len(od_pre)
for i, arg in enumerate(args_lst):
key = '*' + str(i + pre_ofset)
od_all[key] = arg
od_args[key] = arg
od_noargs = OrderedDict(od_pre)
r = Runner()
result = r.foo(1, 2, *args_lst)
info: _FnInstInfo = Runner.foo.fn_info
d = info.get_all_args()
self.assertDictEqual(od_all, d)
d = info.get_filter_arg()
self.assertDictEqual(od_args, d)
d = info.get_filtered_key_word_args()
self.assertDictEqual(od_pre, d)
d = info.get_filtered_kwargs()
assert len(d) == 0
d = info.get_filter_noargs()
self.assertDictEqual(od_noargs, d)
def test_names_args_names(self):
class Runner:
@test_dec_cls
def foo(self, first, second, *args, third, fourth='4th'):
return [first, second] + [*args] + [third, fourth]
args_lst = [3, 4]
od_pre = OrderedDict()
od_pre['first'] = 1
od_pre['second'] = 2
key_word_args = OrderedDict()
key_word_args['third'] = '3rd'
key_word_args['fourth'] = '4th'
od_args = OrderedDict()
od_all = OrderedDict(od_pre)
pre_ofset = len(od_pre)
for i, arg in enumerate(args_lst):
key = '*' + str(i + pre_ofset)
od_all[key] = arg
od_args[key] = arg
od_all.update(key_word_args)
od_noargs = OrderedDict(od_pre)
od_noargs.update(key_word_args)
od_all_kw = OrderedDict(od_pre)
od_all_kw.update(key_word_args)
r = Runner()
result = r.foo(1, 2, 3, 4, third='3rd')
assert result[0] == 1
info: _FnInstInfo = Runner.foo.fn_info
d = info.get_all_args()
self.assertDictEqual(od_all, d)
d = info.get_filter_arg()
self.assertDictEqual(od_args, d)
d = info.get_filtered_key_word_args()
self.assertDictEqual(od_all_kw, d)
d = info.get_filtered_kwargs()
assert len(d) == 0
d = info.get_filter_noargs()
self.assertDictEqual(od_noargs, d)
def test_names_args_kwargs(self):
class Runner:
@test_dec_cls
def foo(self, first, second, *args, **kwargs):
return [first, second] + [*args] + [v for _, v in kwargs.items()]
args_lst = [3, 4]
od_pre = OrderedDict()
od_pre['first'] = 1
od_pre['second'] = 2
kwargs = OrderedDict()
kwargs['third'] = '3rd'
kwargs['fourth'] = '4th'
kwargs['five'] = '5th'
kwargs['six'] = '6th'
od_args = OrderedDict()
od_all = OrderedDict(od_pre)
pre_ofset = len(od_pre)
for i, arg in enumerate(args_lst):
key = '*' + str(i + pre_ofset)
od_all[key] = arg
od_args[key] = arg
od_all.update(kwargs)
od_noargs = OrderedDict(od_pre)
od_noargs.update(kwargs)
r = Runner()
result = r.foo(1, 2, 3, 4, third='3rd',
fourth='4th', five='5th', six='6th')
assert result[0] == 1
info: _FnInstInfo = Runner.foo.fn_info
d = info.get_all_args()
self.assertDictEqual(od_all, d)
d = info.get_filter_arg()
self.assertDictEqual(od_args, d)
d = info.get_filtered_key_word_args()
self.assertDictEqual(od_pre, d)
d = info.get_filtered_kwargs()
self.assertDictEqual(kwargs, d)
def test_names_args_names_kwargs(self):
class Runner:
@test_dec_cls
def foo(self, first, second, *args, third, fourth='4th', **kwargs):
return [first, second] + [*args] + [third, fourth] + [v for _, v in kwargs.items()]
args_lst = [3, 4]
od_pre = OrderedDict()
od_pre['first'] = 1
od_pre['second'] = 2
key_word_args = OrderedDict()
key_word_args['third'] = '3rd'
key_word_args['fourth'] = '4th'
kwargs = OrderedDict()
kwargs['five'] = '5th'
kwargs['six'] = '6th'
od_args = OrderedDict()
od_all = OrderedDict(od_pre)
pre_ofset = len(od_pre)
for i, arg in enumerate(args_lst):
key = '*' + str(i + pre_ofset)
od_all[key] = arg
od_args[key] = arg
od_all.update(key_word_args)
od_all.update(kwargs)
od_noargs = OrderedDict(od_pre)
od_noargs.update(key_word_args)
od_noargs.update(kwargs)
od_all_kw = OrderedDict(od_pre)
od_all_kw.update(key_word_args)
r = Runner()
result = r.foo(1, 2, 3, 4, third='3rd', five='5th', six='6th')
assert result[0] == 1
info: _FnInstInfo = Runner.foo.fn_info
assert info.name == 'foo'
d = info.get_all_args()
self.assertDictEqual(od_all, d)
d = info.get_filter_arg()
self.assertDictEqual(od_args, d)
d = info.get_filtered_key_word_args()
self.assertDictEqual(od_all_kw, d)
d = info.get_filtered_kwargs()
self.assertDictEqual(kwargs, d)
d = info.get_filter_noargs()
self.assertDictEqual(od_noargs, d)
if __name__ == '__main__':
unittest.main()
| 36.03084 | 99 | 0.541706 | 5,884 | 46,732 | 4.060503 | 0.024303 | 0.051858 | 0.081492 | 0.025239 | 0.955508 | 0.944877 | 0.94224 | 0.935376 | 0.925414 | 0.921061 | 0 | 0.018106 | 0.339361 | 46,732 | 1,296 | 100 | 36.058642 | 0.755774 | 0.009373 | 0 | 0.90841 | 0 | 0 | 0.032329 | 0 | 0 | 0 | 0 | 0 | 0.311407 | 1 | 0.061615 | false | 0 | 0.005828 | 0.022481 | 0.111574 | 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 |
f3deed573e4cb0bc7e6369c76612feffe2c7308d | 3,947 | py | Python | ml/rl/test/models/test_dueling_q_network.py | joshrose/Horizon | a2eb407b31a16560ae78aa6751eb83672a122a7e | [
"BSD-3-Clause"
] | 2 | 2021-02-10T12:03:37.000Z | 2021-03-14T19:32:43.000Z | ml/rl/test/models/test_dueling_q_network.py | joshrose/Horizon | a2eb407b31a16560ae78aa6751eb83672a122a7e | [
"BSD-3-Clause"
] | null | null | null | ml/rl/test/models/test_dueling_q_network.py | joshrose/Horizon | a2eb407b31a16560ae78aa6751eb83672a122a7e | [
"BSD-3-Clause"
] | 2 | 2021-01-06T01:06:50.000Z | 2021-06-24T01:12:52.000Z | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
import logging
import unittest
from ml.rl.models.dueling_q_network import DuelingQNetwork
from ml.rl.test.models.test_utils import check_save_load
logger = logging.getLogger(__name__)
class TestDuelingQNetwork(unittest.TestCase):
def test_discrete_action(self):
state_dim = 8
action_dim = 4
model = DuelingQNetwork(
layers=[state_dim, 8, 4, action_dim],
activations=["relu", "relu", "linear"],
use_batch_norm=True,
)
input = model.input_prototype()
self.assertEqual((1, state_dim), input.state.float_features.shape)
# Using batch norm requires more than 1 example in training, avoid that
model.eval()
q_values = model(input)
self.assertEqual((1, action_dim), q_values.q_values.shape)
def test_parametric_action(self):
state_dim = 8
action_dim = 4
model = DuelingQNetwork(
layers=[state_dim, 8, 4, 1],
activations=["relu", "relu", "linear"],
use_batch_norm=True,
action_dim=action_dim,
)
input = model.input_prototype()
self.assertEqual((1, state_dim), input.state.float_features.shape)
self.assertEqual((1, action_dim), input.action.float_features.shape)
# Using batch norm requires more than 1 example in training, avoid that
model.eval()
q_values = model(input)
self.assertEqual((1, 1), q_values.q_value.shape)
def test_save_load_discrete_action(self):
state_dim = 8
action_dim = 4
model = DuelingQNetwork(
layers=[state_dim, 8, 4, action_dim],
activations=["relu", "relu", "linear"],
use_batch_norm=False,
)
expected_num_params, expected_num_inputs, expected_num_outputs = 22, 1, 1
check_save_load(
self, model, expected_num_params, expected_num_inputs, expected_num_outputs
)
def test_save_load_parametric_action(self):
state_dim = 8
action_dim = 4
model = DuelingQNetwork(
layers=[state_dim, 8, 4, 1],
activations=["relu", "relu", "linear"],
use_batch_norm=False,
action_dim=action_dim,
)
expected_num_params, expected_num_inputs, expected_num_outputs = 22, 2, 1
check_save_load(
self, model, expected_num_params, expected_num_inputs, expected_num_outputs
)
def test_save_load_discrete_action_batch_norm(self):
state_dim = 8
action_dim = 4
model = DuelingQNetwork(
layers=[state_dim, 8, 4, action_dim],
activations=["relu", "relu", "linear"],
use_batch_norm=False,
)
# Freezing batch_norm
model.eval()
# Number of expected params is the same because DuelingQNetwork always
# initialize batch norm layer even if it doesn't use it.
expected_num_params, expected_num_inputs, expected_num_outputs = 22, 1, 1
check_save_load(
self, model, expected_num_params, expected_num_inputs, expected_num_outputs
)
def test_save_load_parametric_action_batch_norm(self):
state_dim = 8
action_dim = 4
model = DuelingQNetwork(
layers=[state_dim, 8, 4, 1],
activations=["relu", "relu", "linear"],
use_batch_norm=False,
action_dim=action_dim,
)
# Freezing batch_norm
model.eval()
# Number of expected params is the same because DuelingQNetwork always
# initialize batch norm layer even if it doesn't use it.
expected_num_params, expected_num_inputs, expected_num_outputs = 22, 2, 1
check_save_load(
self, model, expected_num_params, expected_num_inputs, expected_num_outputs
)
| 36.546296 | 87 | 0.633646 | 484 | 3,947 | 4.867769 | 0.198347 | 0.112054 | 0.04584 | 0.08489 | 0.855688 | 0.841256 | 0.831494 | 0.831494 | 0.828098 | 0.828098 | 0 | 0.01831 | 0.280466 | 3,947 | 107 | 88 | 36.88785 | 0.811268 | 0.131492 | 0 | 0.709302 | 0 | 0 | 0.024576 | 0 | 0 | 0 | 0 | 0 | 0.05814 | 1 | 0.069767 | false | 0 | 0.046512 | 0 | 0.127907 | 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 |
6d01cdf153b896338a4af6826c312261b01fc71c | 20,635 | py | Python | excel_to_json.py | ImperialCollegeLondon/dp2lp | 73caa541c7350a0451b2181706f2e40bfbb9eb53 | [
"Apache-2.0"
] | 1 | 2021-02-12T21:07:57.000Z | 2021-02-12T21:07:57.000Z | excel_to_json.py | ImperialCollegeLondon/dp2lp | 73caa541c7350a0451b2181706f2e40bfbb9eb53 | [
"Apache-2.0"
] | null | null | null | excel_to_json.py | ImperialCollegeLondon/dp2lp | 73caa541c7350a0451b2181706f2e40bfbb9eb53 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Jan 20 18:23:37 2021
@author: shubhechyya
"""
import json
import xlrd
import numpy as np
##read data from the excel file
wb = xlrd.open_workbook('input_file/User_Input.xlsx')
num_sheets = wb.nsheets
dict_temp = {}
#read global values
sheet_global = wb.sheet_by_index(0)
dict_temp["T"] = sheet_global.cell_value(0, 1)
T = int(sheet_global.cell_value(0, 1))
dict_temp["b"] = {}
#resources: GBeds, CBeds
for t in range(1, T+1):
dict_temp["b"][str(t)] = []
for r in range(2):
dict_temp["b"][str(t)].append(sheet_global.cell_value(3+r, 1))
for r in range(3, 9):
dict_temp["b"][str(t)].append(sheet_global.cell_value(5+r, 2)*100)
resources = ["GBeds", "CBeds", "GSBeds"]
#read values for each ICD
for num in range(1, num_sheets):
sheet = wb.sheet_by_index(num)
ID = sheet.cell_value(0,1)
###change this to if total inflow + stock == 0, then skip over this iterate
if (ID == "ICD15_AGE3"):
continue
print(ID)
for t in range(1, T+1):
name = str(ID) + "_" + str(t)
T0 = t
dict_temp[name] = {"STATES": ["Dormant", "N", "E", "G, N", "C, N", "G, E", "C, E", "D", "H"]}
#reading in cost
dict_temp[name]["cost"] = []
dict_cost = {}
dict_temp[name]["cost"].append(dict_cost)
dict_cost["E"] = sheet.cell_value(13,1) ##check
dict_cost["N"] = sheet.cell_value(14,1) ##check
#reading in "n"
if(t == 1):
dict_temp[name]["n"] = sheet.cell_value(17,1) + sheet.cell_value(18,1) + sheet.cell_value(2,1) + sheet.cell_value(5,1) + sheet.cell_value(5,2) + sheet.cell_value(6,1) + sheet.cell_value(6,2)
else:
dict_temp[name]["n"] = sheet.cell_value(17,t) + sheet.cell_value(18,t)
#reading in "q"
dict_temp[name]["q"] = [0 for s in range(len(dict_temp[name]["STATES"]))]
if(t == 1):
dict_temp[name]["q"][1] = (sheet.cell_value(18,1) + sheet.cell_value(2,1))/dict_temp[name]["n"]
dict_temp[name]["q"][2] = sheet.cell_value(17,1)/dict_temp[name]["n"]
dict_temp[name]["q"][3] = sheet.cell_value(6,1)/dict_temp[name]["n"]
dict_temp[name]["q"][4] = sheet.cell_value(6,2)/dict_temp[name]["n"]
dict_temp[name]["q"][5] = sheet.cell_value(5,1)/dict_temp[name]["n"]
dict_temp[name]["q"][6] = sheet.cell_value(5,2)/dict_temp[name]["n"]
else:
dict_temp[name]["q"][0] = 1
dict_temp[name]["ACTIONS"] = ["DoNot","Admit", "AdmitG*","MoveG", "MoveC"]
dict_temp[name]["ADM_ACTIONS"] = {"Dormant": ["DoNot"], "N": ["DoNot", "Admit", "AdmitG*"], "E": ["DoNot", "Admit", "AdmitG*"], "G, E": ["MoveG"], "C, E": ["MoveC", "MoveG"], "G, N": ["MoveG"], "C, N": ["MoveC", "MoveG"], "D": ["DoNot"], "H":["DoNot"]}
n_states = len(dict_temp[name]["STATES"])
n_actions = len(dict_temp[name]["ACTIONS"])
#reading in TP
dict_temp[name]["TP"] = []
dict_TP = {}
dict_temp[name]["TP"].append(dict_TP)
for t1 in range(1, T+1):
dict_TP[str(t1)] = []
dict_TP_state = {}
dict_TP[str(t1)].append(dict_TP_state)
for s in dict_temp[name]["STATES"]:
dict_TP_state[str(s)] = [[0 for i in range(n_states)] for j in range (n_actions)]
if (t1 < T0 - 1):
dict_TP_state["Dormant"][dict_temp[name]["ACTIONS"].index("DoNot")][dict_temp[name]["STATES"].index("Dormant")] = 1
else:
dict_TP_state["Dormant"][dict_temp[name]["ACTIONS"].index("DoNot")][dict_temp[name]["STATES"].index("N")] = sheet.cell_value(18,t)/(sheet.cell_value(17,t)+sheet.cell_value(18,t))
dict_TP_state["Dormant"][dict_temp[name]["ACTIONS"].index("DoNot")][dict_temp[name]["STATES"].index("E")] = sheet.cell_value(17,t)/(sheet.cell_value(17,t)+sheet.cell_value(18,t))
dict_TP_state["N"][dict_temp[name]["ACTIONS"].index("Admit")][dict_temp[name]["STATES"].index("G, N")] = (1 - sheet.cell_value(22,t1))*sheet.cell_value(34,1) + sheet.cell_value(22,t1)*sheet.cell_value(36,1)
dict_TP_state["N"][dict_temp[name]["ACTIONS"].index("Admit")][dict_temp[name]["STATES"].index("C, N")] = (1 - sheet.cell_value(22,t1))*sheet.cell_value(34,2) + sheet.cell_value(22,t1)*sheet.cell_value(36,2)
dict_TP_state["N"][dict_temp[name]["ACTIONS"].index("Admit")][dict_temp[name]["STATES"].index("D")] = (1 - sheet.cell_value(22,t1))*sheet.cell_value(34,3) + sheet.cell_value(22,t1)*sheet.cell_value(36,3)
dict_TP_state["N"][dict_temp[name]["ACTIONS"].index("Admit")][dict_temp[name]["STATES"].index("H")] = (1 - sheet.cell_value(22,t1))*sheet.cell_value(34,4) + sheet.cell_value(22,t1)*sheet.cell_value(36,4)
dict_TP_state["N"][dict_temp[name]["ACTIONS"].index("AdmitG*")][dict_temp[name]["STATES"].index("G, N")] = (1 - sheet.cell_value(22,t1))*sheet.cell_value(34,1) + sheet.cell_value(22,t1)*sheet.cell_value(35,1)
dict_TP_state["N"][dict_temp[name]["ACTIONS"].index("AdmitG*")][dict_temp[name]["STATES"].index("C, N")] = (1 - sheet.cell_value(22,t1))*sheet.cell_value(34,2) + sheet.cell_value(22,t1)*sheet.cell_value(35,2)
dict_TP_state["N"][dict_temp[name]["ACTIONS"].index("AdmitG*")][dict_temp[name]["STATES"].index("D")] = (1 - sheet.cell_value(22,t1))*sheet.cell_value(34,3) + sheet.cell_value(22,t1)*sheet.cell_value(35,3)
dict_TP_state["N"][dict_temp[name]["ACTIONS"].index("AdmitG*")][dict_temp[name]["STATES"].index("H")] = (1 - sheet.cell_value(22,t1))*sheet.cell_value(34,4) + sheet.cell_value(22,t1)*sheet.cell_value(35,4)
dict_TP_state["N"][dict_temp[name]["ACTIONS"].index("DoNot")][dict_temp[name]["STATES"].index("N")] = 1 - sheet.cell_value(8,1)
dict_TP_state["N"][dict_temp[name]["ACTIONS"].index("DoNot")][dict_temp[name]["STATES"].index("E")] = sheet.cell_value(8,1)
dict_TP_state["E"][dict_temp[name]["ACTIONS"].index("Admit")][dict_temp[name]["STATES"].index("G, E")] = (1 - sheet.cell_value(21,t1))*sheet.cell_value(29,1) + sheet.cell_value(21,t1)*sheet.cell_value(31,1)
dict_TP_state["E"][dict_temp[name]["ACTIONS"].index("Admit")][dict_temp[name]["STATES"].index("C, E")] = (1 - sheet.cell_value(21,t1))*sheet.cell_value(29,2) + sheet.cell_value(21,t1)*sheet.cell_value(31,2)
dict_TP_state["E"][dict_temp[name]["ACTIONS"].index("Admit")][dict_temp[name]["STATES"].index("D")] = (1 - sheet.cell_value(21,t1))*sheet.cell_value(29,3) + sheet.cell_value(21,t1)*sheet.cell_value(31,3)
dict_TP_state["E"][dict_temp[name]["ACTIONS"].index("Admit")][dict_temp[name]["STATES"].index("H")] = (1 - sheet.cell_value(21,t1))*sheet.cell_value(29,4) + sheet.cell_value(21,t1)*sheet.cell_value(31,4)
dict_TP_state["E"][dict_temp[name]["ACTIONS"].index("AdmitG*")][dict_temp[name]["STATES"].index("G, E")] = (1 - sheet.cell_value(21,t1))*sheet.cell_value(29,1) + sheet.cell_value(21,t1)*sheet.cell_value(30,1)
dict_TP_state["E"][dict_temp[name]["ACTIONS"].index("AdmitG*")][dict_temp[name]["STATES"].index("C, E")] = (1 - sheet.cell_value(21,t1))*sheet.cell_value(29,2) + sheet.cell_value(21,t1)*sheet.cell_value(30,2)
dict_TP_state["E"][dict_temp[name]["ACTIONS"].index("AdmitG*")][dict_temp[name]["STATES"].index("D")] = (1 - sheet.cell_value(21,t1))*sheet.cell_value(29,3) + sheet.cell_value(21,t1)*sheet.cell_value(30,3)
dict_TP_state["E"][dict_temp[name]["ACTIONS"].index("AdmitG*")][dict_temp[name]["STATES"].index("H")] = (1 - sheet.cell_value(21,t1))*sheet.cell_value(29,4) + sheet.cell_value(21,t1)*sheet.cell_value(30,4)
dict_TP_state["E"][dict_temp[name]["ACTIONS"].index("DoNot")][dict_temp[name]["STATES"].index("D")] = 1
dict_TP_state["G, N"][dict_temp[name]["ACTIONS"].index("MoveG")][dict_temp[name]["STATES"].index("G, N")] = sheet.cell_value(34,1)
dict_TP_state["G, N"][dict_temp[name]["ACTIONS"].index("MoveG")][dict_temp[name]["STATES"].index("C, N")] = sheet.cell_value(34,2)
dict_TP_state["G, N"][dict_temp[name]["ACTIONS"].index("MoveG")][dict_temp[name]["STATES"].index("D")] = sheet.cell_value(34,3)
dict_TP_state["G, N"][dict_temp[name]["ACTIONS"].index("MoveG")][dict_temp[name]["STATES"].index("H")] = sheet.cell_value(34,4)
dict_TP_state["C, N"][dict_temp[name]["ACTIONS"].index("MoveG")][dict_temp[name]["STATES"].index("G, N")] = sheet.cell_value(35,1)
dict_TP_state["C, N"][dict_temp[name]["ACTIONS"].index("MoveG")][dict_temp[name]["STATES"].index("C, N")] = sheet.cell_value(35,2)
dict_TP_state["C, N"][dict_temp[name]["ACTIONS"].index("MoveG")][dict_temp[name]["STATES"].index("D")] = sheet.cell_value(35,3)
dict_TP_state["C, N"][dict_temp[name]["ACTIONS"].index("MoveG")][dict_temp[name]["STATES"].index("H")] = sheet.cell_value(35,4)
dict_TP_state["C, N"][dict_temp[name]["ACTIONS"].index("MoveC")][dict_temp[name]["STATES"].index("G, N")] = sheet.cell_value(36,1)
dict_TP_state["C, N"][dict_temp[name]["ACTIONS"].index("MoveC")][dict_temp[name]["STATES"].index("C, N")] = sheet.cell_value(36,2)
dict_TP_state["C, N"][dict_temp[name]["ACTIONS"].index("MoveC")][dict_temp[name]["STATES"].index("D")] = sheet.cell_value(36,3)
dict_TP_state["C, N"][dict_temp[name]["ACTIONS"].index("MoveC")][dict_temp[name]["STATES"].index("H")] = sheet.cell_value(36,4)
dict_TP_state["G, E"][dict_temp[name]["ACTIONS"].index("MoveG")][dict_temp[name]["STATES"].index("G, E")] = sheet.cell_value(29,1)
dict_TP_state["G, E"][dict_temp[name]["ACTIONS"].index("MoveG")][dict_temp[name]["STATES"].index("C, E")] = sheet.cell_value(29,2)
dict_TP_state["G, E"][dict_temp[name]["ACTIONS"].index("MoveG")][dict_temp[name]["STATES"].index("D")] = sheet.cell_value(29,3)
dict_TP_state["G, E"][dict_temp[name]["ACTIONS"].index("MoveG")][dict_temp[name]["STATES"].index("H")] = sheet.cell_value(29,4)
dict_TP_state["C, E"][dict_temp[name]["ACTIONS"].index("MoveG")][dict_temp[name]["STATES"].index("G, E")] = sheet.cell_value(30,1)
dict_TP_state["C, E"][dict_temp[name]["ACTIONS"].index("MoveG")][dict_temp[name]["STATES"].index("C, E")] = sheet.cell_value(30,2)
dict_TP_state["C, E"][dict_temp[name]["ACTIONS"].index("MoveG")][dict_temp[name]["STATES"].index("D")] = sheet.cell_value(30,3)
dict_TP_state["C, E"][dict_temp[name]["ACTIONS"].index("MoveG")][dict_temp[name]["STATES"].index("H")] = sheet.cell_value(30,4)
dict_TP_state["C, E"][dict_temp[name]["ACTIONS"].index("MoveC")][dict_temp[name]["STATES"].index("G, E")] = sheet.cell_value(31,1)
dict_TP_state["C, E"][dict_temp[name]["ACTIONS"].index("MoveC")][dict_temp[name]["STATES"].index("C, E")] = sheet.cell_value(31,2)
dict_TP_state["C, E"][dict_temp[name]["ACTIONS"].index("MoveC")][dict_temp[name]["STATES"].index("D")] = sheet.cell_value(31,3)
dict_TP_state["C, E"][dict_temp[name]["ACTIONS"].index("MoveC")][dict_temp[name]["STATES"].index("H")] = sheet.cell_value(31,4)
dict_TP_state["H"][dict_temp[name]["ACTIONS"].index("DoNot")][dict_temp[name]["STATES"].index("H")] = 1
dict_TP_state["D"][dict_temp[name]["ACTIONS"].index("DoNot")][dict_temp[name]["STATES"].index("D")] = 1
#reading in "r"YLL
dict_temp[name]["r"] = []
dict_r = {}
dict_temp[name]["r"].append(dict_r)
for t1 in range(1, T+1):
dict_r[str(t1)] = []
dict_r_state = {}
dict_r[str(t1)].append(dict_r_state)
for s in dict_temp[name]["STATES"]:
dict_r_state[str(s)] = [0 for i in range(n_actions)]
dict_r_state["E"][dict_temp[name]["ACTIONS"].index("DoNot")] = -sheet.cell_value(10,1)
dict_r_state["E"][dict_temp[name]["ACTIONS"].index("Admit")] = -sheet.cell_value(10,1)*((1 - sheet.cell_value(21,t1))*sheet.cell_value(29,3) + sheet.cell_value(21,t1)*sheet.cell_value(31,3))
dict_r_state["E"][dict_temp[name]["ACTIONS"].index("AdmitG*")] = -sheet.cell_value(10,1)*((1 - sheet.cell_value(21,t1))*sheet.cell_value(29,3) + sheet.cell_value(21,t1)*sheet.cell_value(30,3))
dict_r_state["N"][dict_temp[name]["ACTIONS"].index("Admit")] = -sheet.cell_value(10,1)*((1 - sheet.cell_value(22,t1))*sheet.cell_value(34,3) + sheet.cell_value(22,t1)*sheet.cell_value(36,3))
dict_r_state["N"][dict_temp[name]["ACTIONS"].index("AdmitG*")] = -sheet.cell_value(10,1)*((1 - sheet.cell_value(22,t1))*sheet.cell_value(34,3) + sheet.cell_value(22,t1)*sheet.cell_value(35,3))
dict_r_state["G, N"][dict_temp[name]["ACTIONS"].index("MoveG")] = -sheet.cell_value(10,1)*sheet.cell_value(34,3)
dict_r_state["C, N"][dict_temp[name]["ACTIONS"].index("MoveG")] = -sheet.cell_value(10,1)*sheet.cell_value(35,3)
dict_r_state["C, N"][dict_temp[name]["ACTIONS"].index("MoveC")] = -sheet.cell_value(10,1)*sheet.cell_value(36,3)
dict_r_state["G, E"][dict_temp[name]["ACTIONS"].index("MoveG")] = -sheet.cell_value(10,1)*sheet.cell_value(29,3)
dict_r_state["C, E"][dict_temp[name]["ACTIONS"].index("MoveG")] = -sheet.cell_value(10,1)*sheet.cell_value(30,3)
dict_r_state["C, E"][dict_temp[name]["ACTIONS"].index("MoveC")] = -sheet.cell_value(10,1)*sheet.cell_value(31,3)
#reading in "c" #resource utilization
dict_temp[name]["c"] = []
dict_c = {}
dict_temp[name]["c"].append(dict_c)
for t1 in range(1, T+1):
dict_c[str(t1)] = []
dict_c_t = {}
dict_c[str(t1)].append(dict_c_t)
for r in range(1, len(resources)+1):
dict_c_t[str(r)] = []
dict_c_r = {}
dict_c_t[str(r)].append(dict_c_r)
for s in dict_temp[name]["STATES"]:
dict_c_r[str(s)] = [0 for i in range(n_actions)]
dict_c_t["1"][0]["G, N"][dict_temp[name]["ACTIONS"].index("MoveG")] = np.sum([1*sheet.cell_value(34,i) for i in range(1,3)]) + np.sum([sheet.cell_value(26,1)*sheet.cell_value(34,i) for i in range(3,5)])
dict_c_t["1"][0]["G, E"][dict_temp[name]["ACTIONS"].index("MoveG")] = np.sum([1*sheet.cell_value(29,i) for i in range(1,3)])+ np.sum([sheet.cell_value(25,1)*sheet.cell_value(29,i) for i in range(3,5)])
dict_c_t["1"][0]["N"][dict_temp[name]["ACTIONS"].index("Admit")] = (1 - sheet.cell_value(22,t1))*(np.sum([1*sheet.cell_value(34,i) for i in range(1,3)])+ np.sum([sheet.cell_value(26,1)*sheet.cell_value(34,i) for i in range(3,5)]))
dict_c_t["1"][0]["N"][dict_temp[name]["ACTIONS"].index("AdmitG*")] = (1 - sheet.cell_value(22,t1))*(np.sum([1*sheet.cell_value(34,i) for i in range(1,3)])+ np.sum([sheet.cell_value(26,1)*sheet.cell_value(34,i) for i in range(3,5)]))
dict_c_t["1"][0]["E"][dict_temp[name]["ACTIONS"].index("Admit")] = (1 - sheet.cell_value(21,t1))*(np.sum([1*sheet.cell_value(29,i) for i in range(1,3)])+ np.sum([sheet.cell_value(25,1)*sheet.cell_value(29,i) for i in range(3,5)]))
dict_c_t["1"][0]["E"][dict_temp[name]["ACTIONS"].index("AdmitG*")] = (1 - sheet.cell_value(21,t1))*(np.sum([1*sheet.cell_value(29,i) for i in range(1,3)])+ np.sum([sheet.cell_value(25,1)*sheet.cell_value(29,i) for i in range(3,5)]))
# G_staff = np.arange(3,6)
for g in G_staff:
dict_c_t[str(g)][0]["G, N"][dict_temp[name]["ACTIONS"].index("MoveG")] = dict_c_t["1"][0]["G, N"][dict_temp[name]["ACTIONS"].index("MoveG")]/sheet_global.cell_value(13+g,1)
dict_c_t[str(g)][0]["C, N"][dict_temp[name]["ACTIONS"].index("MoveG")] = dict_c_t["1"][0]["C, N"][dict_temp[name]["ACTIONS"].index("MoveG")]/sheet_global.cell_value(13+g,1)
dict_c_t[str(g)][0]["G, E"][dict_temp[name]["ACTIONS"].index("MoveG")] = dict_c_t["1"][0]["G, E"][dict_temp[name]["ACTIONS"].index("MoveG")]/sheet_global.cell_value(13+g,1)
dict_c_t[str(g)][0]["C, E"][dict_temp[name]["ACTIONS"].index("MoveG")] = dict_c_t["1"][0]["C, E"][dict_temp[name]["ACTIONS"].index("MoveG")]/sheet_global.cell_value(13+g,1)
dict_c_t[str(g)][0]["N"][dict_temp[name]["ACTIONS"].index("Admit")] = dict_c_t["1"][0]["N"][dict_temp[name]["ACTIONS"].index("Admit")]/sheet_global.cell_value(13+g,1)
dict_c_t[str(g)][0]["N"][dict_temp[name]["ACTIONS"].index("AdmitG*")] = dict_c_t["1"][0]["N"][dict_temp[name]["ACTIONS"].index("AdmitG*")]/sheet_global.cell_value(13+g,1)
dict_c_t[str(g)][0]["E"][dict_temp[name]["ACTIONS"].index("Admit")] = dict_c_t["1"][0]["E"][dict_temp[name]["ACTIONS"].index("Admit")]/sheet_global.cell_value(13+g,1)
dict_c_t[str(g)][0]["E"][dict_temp[name]["ACTIONS"].index("AdmitG*")] = dict_c_t["1"][0]["E"][dict_temp[name]["ACTIONS"].index("AdmitG*")]/sheet_global.cell_value(13+g,1)
dict_c_t["2"][0]["C, N"][dict_temp[name]["ACTIONS"].index("MoveC")] = np.sum([1*sheet.cell_value(36,i) for i in range(1,3)])+ np.sum([sheet.cell_value(26,2)*sheet.cell_value(36,i) for i in range(3,5)])
dict_c_t["2"][0]["C, E"][dict_temp[name]["ACTIONS"].index("MoveC")] = np.sum([1*sheet.cell_value(31,i) for i in range(1,3)])+ np.sum([sheet.cell_value(25,2)*sheet.cell_value(31,i) for i in range(3,5)])
dict_c_t["2"][0]["N"][dict_temp[name]["ACTIONS"].index("Admit")] = sheet.cell_value(22,t1)*(np.sum([1*sheet.cell_value(36,i) for i in range(1,3)])+ np.sum([sheet.cell_value(26,2)*sheet.cell_value(36,i) for i in range(3,5)]))
dict_c_t["2"][0]["E"][dict_temp[name]["ACTIONS"].index("Admit")] = sheet.cell_value(21,t1)*(np.sum([1*sheet.cell_value(31,i) for i in range(1,3)])+ np.sum([sheet.cell_value(25,2)*sheet.cell_value(31,i) for i in range(3,5)]))
C_staff = np.arange(6,9)
for g in C_staff:
dict_c_t[str(g)][0]["C, N"][dict_temp[name]["ACTIONS"].index("MoveC")] = dict_c_t["2"][0]["C, N"][dict_temp[name]["ACTIONS"].index("MoveC")]/sheet_global.cell_value(13+g,1)
dict_c_t[str(g)][0]["C, E"][dict_temp[name]["ACTIONS"].index("MoveC")] = dict_c_t["2"][0]["C, E"][dict_temp[name]["ACTIONS"].index("MoveC")]/sheet_global.cell_value(13+g,1)
dict_c_t[str(g)][0]["N"][dict_temp[name]["ACTIONS"].index("Admit")] = dict_c_t["2"][0]["N"][dict_temp[name]["ACTIONS"].index("Admit")]/sheet_global.cell_value(13+g,1)
dict_c_t[str(g)][0]["E"][dict_temp[name]["ACTIONS"].index("Admit")] = dict_c_t["2"][0]["E"][dict_temp[name]["ACTIONS"].index("Admit")]/sheet_global.cell_value(13+g,1)
dict_c_t["3"][0]["C, N"][dict_temp[name]["ACTIONS"].index("MoveG")] = np.sum([1*sheet.cell_value(35,i) for i in range(1,3)]) + np.sum([sheet.cell_value(26,1)*sheet.cell_value(35,i) for i in range(3,5)])
dict_c_t["3"][0]["C, E"][dict_temp[name]["ACTIONS"].index("MoveG")] = np.sum([1*sheet.cell_value(30,i) for i in range(1,3)])+ np.sum([sheet.cell_value(25,1)*sheet.cell_value(30,i) for i in range(3,5)])
dict_c_t["3"][0]["N"][dict_temp[name]["ACTIONS"].index("AdmitG*")] = sheet.cell_value(22,t1)*(np.sum([1*sheet.cell_value(35,i) for i in range(1,3)])+ np.sum([sheet.cell_value(26,1)*sheet.cell_value(35,i) for i in range(3,5)]))
dict_c_t["3"][0]["E"][dict_temp[name]["ACTIONS"].index("AdmitG*")] = sheet.cell_value(21,t1)*(np.sum([1*sheet.cell_value(30,i) for i in range(1,3)])+ np.sum([sheet.cell_value(25,1)*sheet.cell_value(30,i) for i in range(3,5)]))
with open("input_file/input_cost.json", "w") as outfile:
json.dump(dict_temp, outfile)
| 90.903084 | 261 | 0.586819 | 3,382 | 20,635 | 3.380544 | 0.041691 | 0.16846 | 0.242456 | 0.164524 | 0.882533 | 0.847372 | 0.840462 | 0.836089 | 0.815621 | 0.790344 | 0 | 0.048531 | 0.180179 | 20,635 | 226 | 262 | 91.30531 | 0.627298 | 0 | 0 | 0.075145 | 0 | 0 | 0.111528 | 0.002604 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.017341 | null | null | 0.00578 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
6d35a6e314a17bb9574de1919524031a96af3d61 | 173 | py | Python | tests/python/pypackagecomplex/complex/__init__.py | mgaitan/sphinx-autoapi | 0b947a028e10b580936f8e3c32ddc2468479e72d | [
"MIT"
] | 197 | 2019-06-29T07:59:40.000Z | 2022-03-13T14:10:54.000Z | tests/python/pypackagecomplex/complex/__init__.py | mgaitan/sphinx-autoapi | 0b947a028e10b580936f8e3c32ddc2468479e72d | [
"MIT"
] | 158 | 2019-07-04T09:47:12.000Z | 2022-03-30T06:12:34.000Z | tests/python/pypackagecomplex/complex/__init__.py | mgaitan/sphinx-autoapi | 0b947a028e10b580936f8e3c32ddc2468479e72d | [
"MIT"
] | 91 | 2019-07-02T17:52:32.000Z | 2022-03-29T12:34:11.000Z | from .subpackage import public_chain
from .subpackage.submodule import public_multiple_imports
def module_level_method(foo, bar):
"""A module level method"""
pass
| 21.625 | 57 | 0.774566 | 23 | 173 | 5.608696 | 0.695652 | 0.217054 | 0.263566 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.150289 | 173 | 7 | 58 | 24.714286 | 0.877551 | 0.121387 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.25 | 0.5 | 0 | 0.75 | 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 | 1 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 8 |
edcdf2718ef15e090e481997bf973bbcb4429853 | 52,568 | py | Python | lifegraph/configuration.py | K20shores/Life-Graph | a56eec4edb87e4e1dd87a0d044d4c3dee4aecfb7 | [
"MIT"
] | 56 | 2020-06-28T07:08:39.000Z | 2022-01-31T21:52:41.000Z | lifegraph/configuration.py | K20shores/Life-Graph | a56eec4edb87e4e1dd87a0d044d4c3dee4aecfb7 | [
"MIT"
] | 3 | 2020-06-27T16:28:14.000Z | 2020-09-10T12:35:05.000Z | lifegraph/configuration.py | K20shores/Life-Graph | a56eec4edb87e4e1dd87a0d044d4c3dee4aecfb7 | [
"MIT"
] | 14 | 2020-06-29T04:31:02.000Z | 2021-09-03T13:32:30.000Z | from enum import Enum
class Papersize(Enum):
"""A class holding papersize in inches"""
A0 = 1, #[33.1, 46.8] inches
A1 = 2, #[23.4, 33.1] inches
A2 = 3, #[16.5, 23.4] inches
A3 = 4, #[11.7, 16.5] inches
A4 = 5, #[8.3, 11.7] inches
A5 = 6, #[5.8, 8.3] inches
A6 = 7, #[4.1, 5.8] inches
A7 = 8, #[2.9, 4.1] inches
A8 = 9, #[2.0, 2.9] inches
A9 = 10, #[1.5, 2.0] inches
A10 = 11, #[1.0, 1.5] inches
HalfLetter = 12, #[5.5, 8.5] inches
Letter = 13, #[8.5, 11.0] inches
Legal = 14, #[8.5, 14.0] inches
JuniorLegal = 15, #[5.0, 8.0] inches
Ledger = 16, #[11.0, 17.0] inches
Tabloid = 17 #[17.0, 11.0] inches
class LifegraphParams:
"""A class that defines the defaults for drawing by papersize"""
def __init__(self, papersize):
d = None
if papersize == Papersize.A0:
d = {
"rcParams": {
"axes.labelsize": 34,
"axes.labelcolor": 'blue',
"axes.linewidth": 0.0,
"axes.spines.bottom": False,
"axes.spines.left": False,
"axes.spines.right": False,
"axes.spines.top": False,
"figure.figsize": [33.1, 46.8],
"figure.titlesize": 128,
"font.size": 60,
"lines.linestyle": 'none',
"lines.linewidth": 1.0,
"lines.marker": 's',
"lines.markeredgecolor": 'black',
"lines.markeredgewidth": 1.00,
"lines.markerfacecolor": 'none',
"lines.markersize": 12.0,
"markers.fillstyle": 'none',
"savefig.pad_inches": 0.05,
"text.usetex": True,
"xtick.bottom": False,
"xtick.color": "black",
"xtick.labelsize": 20,
"xtick.labeltop": True,
"xtick.major.bottom": False,
"xtick.major.pad": -3,
"xtick.major.top": True,
"xtick.minor.bottom": False,
"xtick.minor.top": False,
"xtick.top": False,
"ytick.color": "black",
"ytick.labelsize": 20,
"ytick.left": False,
"ytick.major.left": True,
"ytick.major.pad": -4,
"ytick.major.right": False,
"ytick.minor.left": False,
"ytick.minor.right": False,
"ytick.right": False,
},
"otherParams": {
"xlabel.position": (0.20, 1.05),
"xlabel.color": None, # defaults to "axes.labelcolor"
"xlabel.fontsize": None, # defaults to "axes.labelsize"
"ylabel.position": (-0.02, 0.95),
"ylabel.color": None, # defaults to "axes.labelcolor"
"ylabel.fontsize": None, # defaults to "axes.labelsize"
"maxage.fontsize": 38,
"figure.title.yposition": 0.95,
"annotation.marker.size": 28.0,
"annotation.edge.width": 2.0,
"annotation.line.width": 2.0,
"annotation.shrinkA": 0,
#"annotation.shrinkB": 0, this is calculated, see the help for __draw_annotations
"annotation.left.offset": 3,
"annotation.right.offset": 3,
"era.span.linestyle": "-",
"era.span.markersize": 0,
"era.line.linewidth": 1,
"watermark.fontsize": 200
}
}
elif papersize == Papersize.A1:
d = {
"rcParams": {
"axes.labelsize": 26,
"axes.labelcolor": 'blue',
"axes.linewidth": 0.0,
"axes.spines.bottom": False,
"axes.spines.left": False,
"axes.spines.right": False,
"axes.spines.top": False,
"figure.figsize": [23.4, 33.1],
"figure.titlesize": 42,
"font.size": 28,
"lines.linestyle": 'none',
"lines.linewidth": 0.5,
"lines.marker": 's',
"lines.markeredgecolor": 'black',
"lines.markeredgewidth": 0.50,
"lines.markerfacecolor": 'none',
"lines.markersize": 9.0,
"markers.fillstyle": 'none',
"savefig.pad_inches": 0.25,
"text.usetex": True,
"xtick.bottom": False,
"xtick.color": "black",
"xtick.labelsize": 16,
"xtick.labeltop": True,
"xtick.major.bottom": False,
"xtick.major.pad": -3,
"xtick.major.top": True,
"xtick.minor.bottom": False,
"xtick.minor.top": False,
"xtick.top": False,
"ytick.color": "black",
"ytick.labelsize": 16,
"ytick.left": False,
"ytick.major.left": True,
"ytick.major.pad": -4,
"ytick.major.right": False,
"ytick.minor.left": False,
"ytick.minor.right": False,
"ytick.right": False,
},
"otherParams": {
"xlabel.position": (0.20, 1.05),
"xlabel.color": None, # defaults to "axes.labelcolor"
"xlabel.fontsize": None, # defaults to "axes.labelsize"
"ylabel.position": (-0.03, 0.95),
"ylabel.color": None, # defaults to "axes.labelcolor"
"ylabel.fontsize": None, # defaults to "axes.labelsize"
"maxage.fontsize": 32,
"figure.title.yposition": 0.95,
"annotation.marker.size": 18.0,
"annotation.edge.width": 0.8,
"annotation.line.width": 1.0,
"annotation.shrinkA": 0,
#"annotation.shrinkB": 0, this is calculated, see the help for __draw_annotations
"annotation.left.offset": 6,
"annotation.right.offset": 5,
"era.span.linestyle": "-",
"era.span.markersize": 0,
"era.line.linewidth": 1,
"watermark.fontsize": 160
}
}
elif papersize == Papersize.A2:
d = {
"rcParams": {
"axes.labelsize": 16,
"axes.labelcolor": 'blue',
"axes.linewidth": 0.0,
"axes.spines.bottom": False,
"axes.spines.left": False,
"axes.spines.right": False,
"axes.spines.top": False,
"figure.figsize": [16.5, 23.4],
"figure.titlesize": 42,
"font.size": 28,
"lines.linestyle": 'none',
"lines.linewidth": 0.5,
"lines.marker": 's',
"lines.markeredgecolor": 'black',
"lines.markeredgewidth": 0.50,
"lines.markerfacecolor": 'none',
"lines.markersize": 6.0,
"markers.fillstyle": 'none',
"savefig.pad_inches": 0.25,
"text.usetex": True,
"xtick.bottom": False,
"xtick.color": "black",
"xtick.labelsize": 10,
"xtick.labeltop": True,
"xtick.major.bottom": False,
"xtick.major.pad": -3,
"xtick.major.top": True,
"xtick.minor.bottom": False,
"xtick.minor.top": False,
"xtick.top": False,
"ytick.color": "black",
"ytick.labelsize": 10,
"ytick.left": False,
"ytick.major.left": True,
"ytick.major.pad": -4,
"ytick.major.right": False,
"ytick.minor.left": False,
"ytick.minor.right": False,
"ytick.right": False,
},
"otherParams": {
"xlabel.position": (0.20, 1.05),
"xlabel.color": None, # defaults to "axes.labelcolor"
"xlabel.fontsize": None, # defaults to "axes.labelsize"
"ylabel.position": (-0.03, 0.95),
"ylabel.color": None, # defaults to "axes.labelcolor"
"ylabel.fontsize": None, # defaults to "axes.labelsize"
"maxage.fontsize": 24,
"figure.title.yposition": 0.98,
"annotation.marker.size": 6.0,
"annotation.edge.width": 0.8,
"annotation.line.width": 1.0,
"annotation.shrinkA": 0,
#"annotation.shrinkB": 0, this is calculated, see the help for __draw_annotations
"annotation.left.offset": 6,
"annotation.right.offset": 5,
"era.span.linestyle": "-",
"era.span.markersize": 0,
"era.line.linewidth": 1,
"watermark.fontsize": 135
}
}
elif papersize == Papersize.A3:
d = {
"rcParams": {
"axes.labelsize": 16,
"axes.labelcolor": 'blue',
"axes.linewidth": 0.0,
"axes.spines.bottom": False,
"axes.spines.left": False,
"axes.spines.right": False,
"axes.spines.top": False,
"figure.figsize": [11.7, 16.5],
"figure.titlesize": 28,
"font.size": 18,
"lines.linestyle": 'none',
"lines.linewidth": 0.5,
"lines.marker": 's',
"lines.markeredgecolor": 'black',
"lines.markeredgewidth": 0.50,
"lines.markerfacecolor": 'none',
"lines.markersize": 4.5,
"markers.fillstyle": 'none',
"savefig.pad_inches": 0.25,
"text.usetex": True,
"xtick.bottom": False,
"xtick.color": "black",
"xtick.labelsize": 10,
"xtick.labeltop": True,
"xtick.major.bottom": False,
"xtick.major.pad": -3,
"xtick.major.top": True,
"xtick.minor.bottom": False,
"xtick.minor.top": False,
"xtick.top": False,
"ytick.color": "black",
"ytick.labelsize": 10,
"ytick.left": False,
"ytick.major.left": True,
"ytick.major.pad": -4,
"ytick.major.right": False,
"ytick.minor.left": False,
"ytick.minor.right": False,
"ytick.right": False,
},
"otherParams": {
"xlabel.position": (0.20, 1.05),
"xlabel.color": None, # defaults to "axes.labelcolor"
"xlabel.fontsize": None, # defaults to "axes.labelsize"
"ylabel.position": (-0.03, 0.95),
"ylabel.color": None, # defaults to "axes.labelcolor"
"ylabel.fontsize": None, # defaults to "axes.labelsize"
"maxage.fontsize": 20,
"figure.title.yposition": 0.95,
"annotation.marker.size": 8.0,
"annotation.edge.width": 0.8,
"annotation.line.width": 1.0,
"annotation.shrinkA": 0,
#"annotation.shrinkB": 0, this is calculated, see the help for __draw_annotations
"annotation.left.offset": 6,
"annotation.right.offset": 5,
"era.span.linestyle": "-",
"era.span.markersize": 0,
"era.line.linewidth": 1,
"watermark.fontsize": 120
}
}
elif papersize == Papersize.A4:
d = {
"rcParams": {
"axes.labelsize": 12,
"axes.labelcolor": 'blue',
"axes.linewidth": 0.0,
"axes.spines.bottom": False,
"axes.spines.left": False,
"axes.spines.right": False,
"axes.spines.top": False,
"figure.figsize": [8.3, 11.7],
"figure.titlesize": 24,
"font.size": 16,
"lines.linestyle": 'none',
"lines.linewidth": 0.5,
"lines.marker": 's',
"lines.markeredgecolor": 'black',
"lines.markeredgewidth": 0.50,
"lines.markerfacecolor": 'none',
"lines.markersize": 3.0,
"markers.fillstyle": 'none',
"savefig.pad_inches": 0.05,
"text.usetex": True,
"xtick.bottom": False,
"xtick.color": "black",
"xtick.labelsize": 10,
"xtick.labeltop": True,
"xtick.major.bottom": False,
"xtick.major.pad": -3,
"xtick.major.top": True,
"xtick.minor.bottom": False,
"xtick.minor.top": False,
"xtick.top": False,
"ytick.color": "black",
"ytick.labelsize": 10,
"ytick.left": False,
"ytick.major.left": True,
"ytick.major.pad": -4,
"ytick.major.right": False,
"ytick.minor.left": False,
"ytick.minor.right": False,
"ytick.right": False,
},
"otherParams": {
"xlabel.position": (0.20, 1.05),
"xlabel.color": None, # defaults to "axes.labelcolor"
"xlabel.fontsize": None, # defaults to "axes.labelsize"
"ylabel.position": (-0.03, 0.95),
"ylabel.color": None, # defaults to "axes.labelcolor"
"ylabel.fontsize": None, # defaults to "axes.labelsize"
"maxage.fontsize": 16,
"figure.title.yposition": 0.95,
"annotation.marker.size": 6.0,
"annotation.edge.width": 0.8,
"annotation.line.width": 1.0,
"annotation.shrinkA": 0,
#"annotation.shrinkB": 0, this is calculated, see the help for __draw_annotations
"annotation.left.offset": 6,
"annotation.right.offset": 5,
"era.span.linestyle": "-",
"era.span.markersize": 0,
"era.line.linewidth": 1,
"watermark.fontsize": 110
}
}
elif papersize == Papersize.A5:
d = {
"rcParams": {
"axes.labelsize": 8,
"axes.labelcolor": 'blue',
"axes.linewidth": 0.0,
"axes.spines.bottom": False,
"axes.spines.left": False,
"axes.spines.right": False,
"axes.spines.top": False,
"figure.figsize": [5.8, 8.3],
"figure.titlesize": 20,
"font.size": 10,
"lines.linestyle": 'none',
"lines.linewidth": 0.5,
"lines.marker": 's',
"lines.markeredgecolor": 'black',
"lines.markeredgewidth": 0.20,
"lines.markerfacecolor": 'none',
"lines.markersize": 2.0,
"markers.fillstyle": 'none',
"savefig.pad_inches": 0.05,
"text.usetex": True,
"xtick.bottom": False,
"xtick.color": "black",
"xtick.labelsize": 6,
"xtick.labeltop": True,
"xtick.major.bottom": False,
"xtick.major.pad": -3,
"xtick.major.top": True,
"xtick.minor.bottom": False,
"xtick.minor.top": False,
"xtick.top": False,
"ytick.color": "black",
"ytick.labelsize": 6,
"ytick.left": False,
"ytick.major.left": True,
"ytick.major.pad": -4,
"ytick.major.right": False,
"ytick.minor.left": False,
"ytick.minor.right": False,
"ytick.right": False,
},
"otherParams": {
"xlabel.position": (0.20, 1.05),
"xlabel.color": None, # defaults to "axes.labelcolor"
"xlabel.fontsize": None, # defaults to "axes.labelsize"
"ylabel.position": (-0.03, 0.95),
"ylabel.color": None, # defaults to "axes.labelcolor"
"ylabel.fontsize": None, # defaults to "axes.labelsize"
"maxage.fontsize": 10,
"figure.title.yposition": 0.97,
"annotation.marker.size": 6.0,
"annotation.edge.width": 0.8,
"annotation.line.width": 1.0,
"annotation.shrinkA": 0,
#"annotation.shrinkB": 0, this is calculated, see the help for __draw_annotations
"annotation.left.offset": 6,
"annotation.right.offset": 5,
"era.span.linestyle": "-",
"era.span.markersize": 0,
"era.line.linewidth": 1,
"watermark.fontsize": 90
}
}
elif papersize == Papersize.A6:
d = {
"rcParams": {
"axes.labelsize": 7,
"axes.labelcolor": 'blue',
"axes.linewidth": 0.0,
"axes.spines.bottom": False,
"axes.spines.left": False,
"axes.spines.right": False,
"axes.spines.top": False,
"figure.figsize": [4.1, 5.8],
"figure.titlesize": 18,
"font.size": 9,
"lines.linestyle": 'none',
"lines.linewidth": 0.3,
"lines.marker": 's',
"lines.markeredgecolor": 'black',
"lines.markeredgewidth": 0.25,
"lines.markerfacecolor": 'none',
"lines.markersize": 1.25,
"markers.fillstyle": 'none',
"savefig.pad_inches": 0.05,
"text.usetex": True,
"xtick.bottom": False,
"xtick.color": "black",
"xtick.labelsize": 4,
"xtick.labeltop": True,
"xtick.major.bottom": False,
"xtick.major.pad": -3,
"xtick.major.top": True,
"xtick.minor.bottom": False,
"xtick.minor.top": False,
"xtick.top": False,
"ytick.color": "black",
"ytick.labelsize": 4,
"ytick.left": False,
"ytick.major.left": True,
"ytick.major.pad": -4,
"ytick.major.right": False,
"ytick.minor.left": False,
"ytick.minor.right": False,
"ytick.right": False,
},
"otherParams": {
"xlabel.position": (0.20, 1.05),
"xlabel.color": None, # defaults to "axes.labelcolor"
"xlabel.fontsize": None, # defaults to "axes.labelsize"
"ylabel.position": (-0.03, 0.95),
"ylabel.color": None, # defaults to "axes.labelcolor"
"ylabel.fontsize": None, # defaults to "axes.labelsize"
"maxage.fontsize": 8,
"figure.title.yposition": 0.97,
"annotation.marker.size": 2.0,
"annotation.edge.width": 0.6,
"annotation.line.width": 0.5,
"annotation.shrinkA": 0,
#"annotation.shrinkB": 0, this is calculated, see the help for __draw_annotations
"annotation.left.offset": 6,
"annotation.right.offset": 5,
"era.span.linestyle": "-",
"era.span.markersize": 0,
"era.line.linewidth": 0.5,
"watermark.fontsize": 70
}
}
elif papersize == Papersize.A7:
d = {
"rcParams": {
"axes.labelsize": 3,
"axes.labelcolor": 'blue',
"axes.linewidth": 0.0,
"axes.spines.bottom": False,
"axes.spines.left": False,
"axes.spines.right": False,
"axes.spines.top": False,
"figure.figsize": [2.9, 4.1],
"figure.titlesize": 12,
"font.size": 5,
"lines.linestyle": 'none',
"lines.linewidth": 0.2,
"lines.marker": 's',
"lines.markeredgecolor": 'black',
"lines.markeredgewidth": 0.20,
"lines.markerfacecolor": 'none',
"lines.markersize": 1.0,
"markers.fillstyle": 'none',
"savefig.pad_inches": 0.05,
"text.usetex": True,
"xtick.bottom": False,
"xtick.color": "black",
"xtick.labelsize": 3,
"xtick.labeltop": True,
"xtick.major.bottom": False,
"xtick.major.pad": -3,
"xtick.major.top": True,
"xtick.minor.bottom": False,
"xtick.minor.top": False,
"xtick.top": False,
"ytick.color": "black",
"ytick.labelsize": 3,
"ytick.left": False,
"ytick.major.left": True,
"ytick.major.pad": -4,
"ytick.major.right": False,
"ytick.minor.left": False,
"ytick.minor.right": False,
"ytick.right": False,
},
"otherParams": {
"xlabel.position": (0.20, 1.05),
"xlabel.color": None, # defaults to "axes.labelcolor"
"xlabel.fontsize": None, # defaults to "axes.labelsize"
"ylabel.position": (-0.03, 0.95),
"ylabel.color": None, # defaults to "axes.labelcolor"
"ylabel.fontsize": None, # defaults to "axes.labelsize"
"maxage.fontsize": 6,
"figure.title.yposition": 0.95,
"annotation.marker.size": 2.0,
"annotation.edge.width": 0.3,
"annotation.line.width": 0.5,
"annotation.shrinkA": 0,
#"annotation.shrinkB": 0, this is calculated, see the help for __draw_annotations
"annotation.left.offset": 6,
"annotation.right.offset": 5,
"era.span.linestyle": "-",
"era.span.markersize": 0,
"era.line.linewidth": 0.5,
"watermark.fontsize": 50
}
}
elif papersize == Papersize.A8:
d = {
"rcParams": {
"axes.labelsize": 2,
"axes.labelcolor": 'blue',
"axes.linewidth": 0.0,
"axes.spines.bottom": False,
"axes.spines.left": False,
"axes.spines.right": False,
"axes.spines.top": False,
"figure.figsize": [2.0, 2.9],
"figure.titlesize": 6,
"font.size": 3,
"lines.linestyle": 'none',
"lines.linewidth": 0.2,
"lines.marker": 's',
"lines.markeredgecolor": 'black',
"lines.markeredgewidth": 0.15,
"lines.markerfacecolor": 'none',
"lines.markersize": 0.6,
"markers.fillstyle": 'none',
"savefig.pad_inches": 0.05,
"text.usetex": True,
"xtick.bottom": False,
"xtick.color": "black",
"xtick.labelsize": 2,
"xtick.labeltop": True,
"xtick.major.bottom": False,
"xtick.major.pad": -3,
"xtick.major.top": True,
"xtick.minor.bottom": False,
"xtick.minor.top": False,
"xtick.top": False,
"ytick.color": "black",
"ytick.labelsize": 2,
"ytick.left": False,
"ytick.major.left": True,
"ytick.major.pad": -4,
"ytick.major.right": False,
"ytick.minor.left": False,
"ytick.minor.right": False,
"ytick.right": False,
},
"otherParams": {
"xlabel.position": (0.20, 1.05),
"xlabel.color": None, # defaults to "axes.labelcolor"
"xlabel.fontsize": None, # defaults to "axes.labelsize"
"ylabel.position": (-0.03, 0.95),
"ylabel.color": None, # defaults to "axes.labelcolor"
"ylabel.fontsize": None, # defaults to "axes.labelsize"
"maxage.fontsize": 3,
"figure.title.yposition": 0.95,
"annotation.marker.size": 1.8,
"annotation.edge.width": 0.3,
"annotation.line.width": 0.3,
"annotation.shrinkA": 0,
#"annotation.shrinkB": 0, this is calculated, see the help for __draw_annotations
"annotation.left.offset": 6,
"annotation.right.offset": 5,
"era.span.linestyle": "-",
"era.span.markersize": 0,
"era.line.linewidth": 0.5,
"watermark.fontsize": 35
}
}
elif papersize == Papersize.A9:
d = {
"rcParams": {
"axes.labelsize": 2,
"axes.labelcolor": 'blue',
"axes.linewidth": 0.0,
"axes.spines.bottom": False,
"axes.spines.left": False,
"axes.spines.right": False,
"axes.spines.top": False,
"figure.figsize": [1.5, 2.0],
"figure.titlesize": 5,
"font.size": 3,
"lines.linestyle": 'none',
"lines.linewidth": 0.2,
"lines.marker": 's',
"lines.markeredgecolor": 'black',
"lines.markeredgewidth": 0.10,
"lines.markerfacecolor": 'none',
"lines.markersize": 0.54,
"markers.fillstyle": 'none',
"savefig.pad_inches": 0.05,
"text.usetex": True,
"xtick.bottom": False,
"xtick.color": "black",
"xtick.labelsize": 1,
"xtick.labeltop": True,
"xtick.major.bottom": False,
"xtick.major.pad": -3,
"xtick.major.top": True,
"xtick.minor.bottom": False,
"xtick.minor.top": False,
"xtick.top": False,
"ytick.color": "black",
"ytick.labelsize": 1,
"ytick.left": False,
"ytick.major.left": True,
"ytick.major.pad": -4,
"ytick.major.right": False,
"ytick.minor.left": False,
"ytick.minor.right": False,
"ytick.right": False,
},
"otherParams": {
"xlabel.position": (0.20, 1.05),
"xlabel.color": None, # defaults to "axes.labelcolor"
"xlabel.fontsize": None, # defaults to "axes.labelsize"
"ylabel.position": (-0.03, 0.95),
"ylabel.color": None, # defaults to "axes.labelcolor"
"ylabel.fontsize": None, # defaults to "axes.labelsize"
"maxage.fontsize": 2,
"figure.title.yposition": 0.95,
"annotation.marker.size": 1.2,
"annotation.edge.width": 0.2,
"annotation.line.width": 0.2,
"annotation.shrinkA": 0,
#"annotation.shrinkB": 0, this is calculated, see the help for __draw_annotations
"annotation.left.offset": 6,
"annotation.right.offset": 5,
"era.span.linestyle": "-",
"era.span.markersize": 0,
"era.line.linewidth": 0.5,
"watermark.fontsize": 30
}
}
elif papersize == Papersize.A10:
d = {
"rcParams": {
"axes.labelsize": 2,
"axes.labelcolor": 'blue',
"axes.linewidth": 0.0,
"axes.spines.bottom": False,
"axes.spines.left": False,
"axes.spines.right": False,
"axes.spines.top": False,
"figure.figsize": [1.0, 1.5],
"figure.titlesize": 4,
"font.size": 1,
"lines.linestyle": 'none',
"lines.linewidth": 0.5,
"lines.marker": 's',
"lines.markeredgecolor": 'black',
"lines.markeredgewidth": 0.01,
"lines.markerfacecolor": 'none',
"lines.markersize": 0.50,
"markers.fillstyle": 'none',
"savefig.pad_inches": 0.05,
"text.usetex": True,
"xtick.bottom": False,
"xtick.color": "black",
"xtick.labelsize": 1,
"xtick.labeltop": True,
"xtick.major.bottom": False,
"xtick.major.pad": -3,
"xtick.major.top": True,
"xtick.minor.bottom": False,
"xtick.minor.top": False,
"xtick.top": False,
"ytick.color": "black",
"ytick.labelsize": 1,
"ytick.left": False,
"ytick.major.left": True,
"ytick.major.pad": -4,
"ytick.major.right": False,
"ytick.minor.left": False,
"ytick.minor.right": False,
"ytick.right": False,
},
"otherParams": {
"xlabel.position": (0.20, 1.05),
"xlabel.color": None, # defaults to "axes.labelcolor"
"xlabel.fontsize": None, # defaults to "axes.labelsize"
"ylabel.position": (-0.02, 0.95),
"ylabel.color": None, # defaults to "axes.labelcolor"
"ylabel.fontsize": None, # defaults to "axes.labelsize"
"maxage.fontsize": 2,
"figure.title.yposition": 0.95,
"annotation.marker.size": .001,
"annotation.edge.width": 0.1,
"annotation.line.width": 0.1,
"annotation.shrinkA": 0,
#"annotation.shrinkB": 0, this is calculated, see the help for __draw_annotations
"annotation.left.offset": 5,
"annotation.right.offset": 5,
"era.span.linestyle": "-",
"era.span.markersize": 0,
"era.line.linewidth": .2,
"watermark.fontsize": 18
}
}
elif papersize == Papersize.HalfLetter:
d = {
"rcParams": {
"axes.labelsize": 8,
"axes.labelcolor": 'blue',
"axes.linewidth": 0.0,
"axes.spines.bottom": False,
"axes.spines.left": False,
"axes.spines.right": False,
"axes.spines.top": False,
"figure.figsize": [5.5, 8.5],
"figure.titlesize": 20,
"font.size": 10,
"lines.linestyle": 'none',
"lines.linewidth": 0.5,
"lines.marker": 's',
"lines.markeredgecolor": 'black',
"lines.markeredgewidth": 0.30,
"lines.markerfacecolor": 'none',
"lines.markersize": 1.5,
"markers.fillstyle": 'none',
"savefig.pad_inches": 0.05,
"text.usetex": True,
"xtick.bottom": False,
"xtick.color": "black",
"xtick.labelsize": 5,
"xtick.labeltop": True,
"xtick.major.bottom": False,
"xtick.major.pad": -3,
"xtick.major.top": True,
"xtick.minor.bottom": False,
"xtick.minor.top": False,
"xtick.top": False,
"ytick.color": "black",
"ytick.labelsize": 5,
"ytick.left": False,
"ytick.major.left": True,
"ytick.major.pad": -4,
"ytick.major.right": False,
"ytick.minor.left": False,
"ytick.minor.right": False,
"ytick.right": False,
},
"otherParams": {
"xlabel.position": (0.20, 1.05),
"xlabel.color": None, # defaults to "axes.labelcolor"
"xlabel.fontsize": None, # defaults to "axes.labelsize"
"ylabel.position": (-0.03, 0.95),
"ylabel.color": None, # defaults to "axes.labelcolor"
"ylabel.fontsize": None, # defaults to "axes.labelsize"
"maxage.fontsize": 10,
"figure.title.yposition": 0.95,
"annotation.marker.size": 6.0,
"annotation.edge.width": 0.8,
"annotation.line.width": 1.0,
"annotation.shrinkA": 0,
#"annotation.shrinkB": 0, this is calculated, see the help for __draw_annotations
"annotation.left.offset": 6,
"annotation.right.offset": 5,
"era.span.linestyle": "-",
"era.span.markersize": 0,
"era.line.linewidth": 1,
"watermark.fontsize": 90
}
}
elif papersize == Papersize.Letter:
d = {
"rcParams": {
"axes.labelsize": 8,
"axes.labelcolor": 'blue',
"axes.linewidth": 0.0,
"axes.spines.bottom": False,
"axes.spines.left": False,
"axes.spines.right": False,
"axes.spines.top": False,
"figure.figsize": [8.5, 11.0],
"figure.titlesize": 20,
"font.size": 12,
"lines.linestyle": 'none',
"lines.linewidth": 0.5,
"lines.marker": 's',
"lines.markeredgecolor": 'black',
"lines.markeredgewidth": 0.30,
"lines.markerfacecolor": 'none',
"lines.markersize": 3.0,
"markers.fillstyle": 'none',
"savefig.pad_inches": 0.50,
"text.usetex": True,
"xtick.bottom": False,
"xtick.color": "black",
"xtick.labelsize": 5,
"xtick.labeltop": True,
"xtick.major.bottom": False,
"xtick.major.pad": -3,
"xtick.major.top": True,
"xtick.minor.bottom": False,
"xtick.minor.top": False,
"xtick.top": False,
"ytick.color": "black",
"ytick.labelsize": 5,
"ytick.left": False,
"ytick.major.left": True,
"ytick.major.pad": -4,
"ytick.major.right": False,
"ytick.minor.left": False,
"ytick.minor.right": False,
"ytick.right": False,
},
"otherParams": {
"xlabel.position": (0.20, 1.05),
"xlabel.color": None, # defaults to "axes.labelcolor"
"xlabel.fontsize": None, # defaults to "axes.labelsize"
"ylabel.position": (-0.03, 0.95),
"ylabel.color": None, # defaults to "axes.labelcolor"
"ylabel.fontsize": None, # defaults to "axes.labelsize"
"maxage.fontsize": 12,
"figure.title.yposition": 0.95,
"annotation.marker.size": 6.0,
"annotation.edge.width": 0.8,
"annotation.line.width": 1.0,
"annotation.shrinkA": 0,
#"annotation.shrinkB": 0, this is calculated, see the help for __draw_annotations
"annotation.left.offset": 3,
"annotation.right.offset": 3,
"era.span.linestyle": "-",
"era.span.markersize": 0,
"era.line.linewidth": 1,
"watermark.fontsize": 110
}
}
elif papersize == Papersize.Legal:
d = {
"rcParams": {
"axes.labelsize": 8,
"axes.labelcolor": 'blue',
"axes.linewidth": 0.0,
"axes.spines.bottom": False,
"axes.spines.left": False,
"axes.spines.right": False,
"axes.spines.top": False,
"figure.figsize": [8.5, 14.0],
"figure.titlesize": 24,
"font.size": 12,
"lines.linestyle": 'none',
"lines.linewidth": 0.5,
"lines.marker": 's',
"lines.markeredgecolor": 'black',
"lines.markeredgewidth": 0.35,
"lines.markerfacecolor": 'none',
"lines.markersize": 3.0,
"markers.fillstyle": 'none',
"savefig.pad_inches": 0.50,
"text.usetex": True,
"xtick.bottom": False,
"xtick.color": "black",
"xtick.labelsize": 5,
"xtick.labeltop": True,
"xtick.major.bottom": False,
"xtick.major.pad": -3,
"xtick.major.top": True,
"xtick.minor.bottom": False,
"xtick.minor.top": False,
"xtick.top": False,
"ytick.color": "black",
"ytick.labelsize": 5,
"ytick.left": False,
"ytick.major.left": True,
"ytick.major.pad": -4,
"ytick.major.right": False,
"ytick.minor.left": False,
"ytick.minor.right": False,
"ytick.right": False,
},
"otherParams": {
"xlabel.position": (0.20, 1.05),
"xlabel.color": None, # defaults to "axes.labelcolor"
"xlabel.fontsize": None, # defaults to "axes.labelsize"
"ylabel.position": (-0.03, 0.95),
"ylabel.color": None, # defaults to "axes.labelcolor"
"ylabel.fontsize": None, # defaults to "axes.labelsize"
"maxage.fontsize": 14,
"figure.title.yposition": 0.95,
"annotation.marker.size": 6.0,
"annotation.edge.width": 0.8,
"annotation.line.width": 1.0,
"annotation.shrinkA": 0,
#"annotation.shrinkB": 0, this is calculated, see the help for __draw_annotations
"annotation.left.offset": 3,
"annotation.right.offset": 2,
"era.span.linestyle": "-",
"era.span.markersize": 0,
"era.line.linewidth": 1,
"watermark.fontsize": 110
}
}
elif papersize == Papersize.JuniorLegal:
d = {
"rcParams": {
"axes.labelsize": 8,
"axes.labelcolor": 'blue',
"axes.linewidth": 0.0,
"axes.spines.bottom": False,
"axes.spines.left": False,
"axes.spines.right": False,
"axes.spines.top": False,
"figure.figsize": [5.0, 8.0],
"figure.titlesize": 20,
"font.size": 10,
"lines.linestyle": 'none',
"lines.linewidth": 0.5,
"lines.marker": 's',
"lines.markeredgecolor": 'black',
"lines.markeredgewidth": 0.35,
"lines.markerfacecolor": 'none',
"lines.markersize": 1.5,
"markers.fillstyle": 'none',
"savefig.pad_inches": 0.50,
"text.usetex": True,
"xtick.bottom": False,
"xtick.color": "black",
"xtick.labelsize": 5,
"xtick.labeltop": True,
"xtick.major.bottom": False,
"xtick.major.pad": -3,
"xtick.major.top": True,
"xtick.minor.bottom": False,
"xtick.minor.top": False,
"xtick.top": False,
"ytick.color": "black",
"ytick.labelsize": 5,
"ytick.left": False,
"ytick.major.left": True,
"ytick.major.pad": -4,
"ytick.major.right": False,
"ytick.minor.left": False,
"ytick.minor.right": False,
"ytick.right": False,
},
"otherParams": {
"xlabel.position": (0.20, 1.05),
"xlabel.color": None, # defaults to "axes.labelcolor"
"xlabel.fontsize": None, # defaults to "axes.labelsize"
"ylabel.position": (-0.03, 0.95),
"ylabel.color": None, # defaults to "axes.labelcolor"
"ylabel.fontsize": None, # defaults to "axes.labelsize"
"maxage.fontsize": 10,
"figure.title.yposition": 0.95,
"annotation.marker.size": 6.0,
"annotation.edge.width": 0.8,
"annotation.line.width": 1.0,
"annotation.shrinkA": 0,
#"annotation.shrinkB": 0, this is calculated, see the help for __draw_annotations
"annotation.left.offset": 3,
"annotation.right.offset": 2,
"era.span.linestyle": "-",
"era.span.markersize": 0,
"era.line.linewidth": 1,
"watermark.fontsize": 75
}
}
elif papersize == Papersize.Ledger:
d = {
"rcParams": {
"axes.labelsize": 12,
"axes.labelcolor": 'blue',
"axes.linewidth": 0.0,
"axes.spines.bottom": False,
"axes.spines.left": False,
"axes.spines.right": False,
"axes.spines.top": False,
"figure.figsize": [11.0, 17.0],
"figure.titlesize": 24,
"font.size": 18,
"lines.linestyle": 'none',
"lines.linewidth": 0.5,
"lines.marker": 's',
"lines.markeredgecolor": 'black',
"lines.markeredgewidth": 0.40,
"lines.markerfacecolor": 'none',
"lines.markersize": 4.0,
"markers.fillstyle": 'none',
"savefig.pad_inches": 0.50,
"text.usetex": True,
"xtick.bottom": False,
"xtick.color": "black",
"xtick.labelsize": 8,
"xtick.labeltop": True,
"xtick.major.bottom": False,
"xtick.major.pad": -3,
"xtick.major.top": True,
"xtick.minor.bottom": False,
"xtick.minor.top": False,
"xtick.top": False,
"ytick.color": "black",
"ytick.labelsize": 8,
"ytick.left": False,
"ytick.major.left": True,
"ytick.major.pad": -4,
"ytick.major.right": False,
"ytick.minor.left": False,
"ytick.minor.right": False,
"ytick.right": False,
},
"otherParams": {
"xlabel.position": (0.20, 1.05),
"xlabel.color": None, # defaults to "axes.labelcolor"
"xlabel.fontsize": None, # defaults to "axes.labelsize"
"ylabel.position": (-0.03, 0.95),
"ylabel.color": None, # defaults to "axes.labelcolor"
"ylabel.fontsize": None, # defaults to "axes.labelsize"
"maxage.fontsize": 16,
"figure.title.yposition": 0.95,
"annotation.marker.size": 10.0,
"annotation.edge.width": 0.8,
"annotation.line.width": 1.0,
"annotation.shrinkA": 0,
#"annotation.shrinkB": 0, this is calculated, see the help for __draw_annotations
"annotation.left.offset": 3,
"annotation.right.offset": 2,
"era.span.linestyle": "-",
"era.span.markersize": 0,
"era.line.linewidth": 1,
"watermark.fontsize": 110
}
}
elif papersize == Papersize.Tabloid:
d = {
"rcParams": {
"axes.labelsize": 10,
"axes.labelcolor": 'blue',
"axes.linewidth": 0.0,
"axes.spines.bottom": False,
"axes.spines.left": False,
"axes.spines.right": False,
"axes.spines.top": False,
"figure.figsize": [17.0, 11.0],
"figure.titlesize": 22,
"font.size": 10,
"lines.linestyle": 'none',
"lines.linewidth": 0.5,
"lines.marker": 's',
"lines.markeredgecolor": 'black',
"lines.markeredgewidth": 0.40,
"lines.markerfacecolor": 'none',
"lines.markersize": 4.0,
"markers.fillstyle": 'none',
"savefig.pad_inches": 0.50,
"text.usetex": True,
"xtick.bottom": False,
"xtick.color": "black",
"xtick.labelsize": 8,
"xtick.labeltop": True,
"xtick.major.bottom": False,
"xtick.major.pad": -3,
"xtick.major.top": True,
"xtick.minor.bottom": False,
"xtick.minor.top": False,
"xtick.top": False,
"ytick.color": "black",
"ytick.labelsize": 8,
"ytick.left": False,
"ytick.major.left": True,
"ytick.major.pad": -4,
"ytick.major.right": False,
"ytick.minor.left": False,
"ytick.minor.right": False,
"ytick.right": False,
},
"otherParams": {
"xlabel.position": (0.20, 1.05),
"xlabel.color": None, # defaults to "axes.labelcolor"
"xlabel.fontsize": None, # defaults to "axes.labelsize"
"ylabel.position": (-0.03, 0.95),
"ylabel.color": None, # defaults to "axes.labelcolor"
"ylabel.fontsize": None, # defaults to "axes.labelsize"
"maxage.fontsize": 16,
"figure.title.yposition": 0.97,
"annotation.marker.size": 10.0,
"annotation.edge.width": 0.8,
"annotation.line.width": 1.0,
"annotation.shrinkA": 0,
#"annotation.shrinkB": 0, this is calculated, see the help for __draw_annotations
"annotation.left.offset": 6,
"annotation.right.offset": 6,
"era.span.linestyle": "-",
"era.span.markersize": 0,
"era.line.linewidth": 1,
"watermark.fontsize": 130
}
}
else:
raise ValueError("Unknown paper size")
self.settings = d
self.rcParams = d["rcParams"]
self.otherParams = d["otherParams"]
| 46.112281 | 101 | 0.405532 | 4,369 | 52,568 | 4.862898 | 0.038682 | 0.040008 | 0.044808 | 0.057611 | 0.931234 | 0.926716 | 0.914949 | 0.914949 | 0.903794 | 0.893015 | 0 | 0.039935 | 0.463628 | 52,568 | 1,139 | 102 | 46.152766 | 0.713576 | 0.071622 | 0 | 0.823318 | 0 | 0 | 0.335236 | 0.067733 | 0 | 0 | 0 | 0 | 0 | 1 | 0.000897 | false | 0 | 0.000897 | 0 | 0.018834 | 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 |
b63fe53e9a0fb7217b82fd00cf3dc1e0e26b868e | 142 | py | Python | nami/torch/__init__.py | namirinz/nami | b74b3d302aa241470ce6ae210c5a2f0e09dd8bf2 | [
"MIT"
] | 2 | 2020-08-03T10:37:45.000Z | 2020-10-11T14:55:05.000Z | nami/torch/__init__.py | namirinz/nami | b74b3d302aa241470ce6ae210c5a2f0e09dd8bf2 | [
"MIT"
] | null | null | null | nami/torch/__init__.py | namirinz/nami | b74b3d302aa241470ce6ae210c5a2f0e09dd8bf2 | [
"MIT"
] | null | null | null | from nami.torch.tools.engine import train_one_epoch
from nami.torch.tools.engine import evaluate
from nami.torch.tools.utils import collate_fn | 47.333333 | 51 | 0.859155 | 24 | 142 | 4.958333 | 0.541667 | 0.201681 | 0.327731 | 0.453782 | 0.504202 | 0.504202 | 0 | 0 | 0 | 0 | 0 | 0 | 0.077465 | 142 | 3 | 52 | 47.333333 | 0.908397 | 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 |
b6454ad50ef96b932162176f7bbdcc31d4af46a4 | 65 | py | Python | capitalizeText.py | hemantkumar398/LetsUpgrade-Python-Essentials | aef0661efc3428dd7af4e151d62de10bcbb067c6 | [
"Apache-2.0"
] | 1 | 2020-09-03T11:00:35.000Z | 2020-09-03T11:00:35.000Z | capitalizeText.py | hemantkumar398/LetsUpgrade-Python-Essentials | aef0661efc3428dd7af4e151d62de10bcbb067c6 | [
"Apache-2.0"
] | null | null | null | capitalizeText.py | hemantkumar398/LetsUpgrade-Python-Essentials | aef0661efc3428dd7af4e151d62de10bcbb067c6 | [
"Apache-2.0"
] | null | null | null |
def capText(string_To_Cap):
return string_To_Cap.title()
| 16.25 | 33 | 0.723077 | 10 | 65 | 4.3 | 0.7 | 0.372093 | 0.511628 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.184615 | 65 | 3 | 34 | 21.666667 | 0.811321 | 0 | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 7 |
b675cdb5052ee832efa2bc4b3032bdfd82330922 | 151 | py | Python | util/auth.py | brenns10/love | 1a2a60c510327d91eff9caf32a252141ae00a9eb | [
"MIT"
] | 4 | 2017-02-16T02:18:39.000Z | 2018-01-14T01:56:21.000Z | util/auth.py | brenns10/love | 1a2a60c510327d91eff9caf32a252141ae00a9eb | [
"MIT"
] | 17 | 2017-02-16T17:19:53.000Z | 2018-01-08T01:43:05.000Z | util/auth.py | brenns10/love | 1a2a60c510327d91eff9caf32a252141ae00a9eb | [
"MIT"
] | 4 | 2017-02-16T18:48:18.000Z | 2018-01-08T02:34:07.000Z | # -*- coding: utf-8 -*-
from google.appengine.api import users
def is_admin():
return users.get_current_user() and users.is_current_user_admin()
| 21.571429 | 69 | 0.728477 | 23 | 151 | 4.521739 | 0.73913 | 0.211538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007692 | 0.139073 | 151 | 6 | 70 | 25.166667 | 0.792308 | 0.139073 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 8 |
b6b74bfb3d490e0fce182b67f0bbd87f4b8f1a8e | 19,495 | py | Python | pytorch/model_blocks.py | sansba/BRATS2021_2D_Segmentation | 752a3ae77ad129804986699916af8bf140cad4bc | [
"CC0-1.0"
] | 4 | 2022-01-23T11:35:45.000Z | 2022-02-08T17:04:25.000Z | pytorch/model_blocks.py | sansba/BRATS2021_2D_Segmentation | 752a3ae77ad129804986699916af8bf140cad4bc | [
"CC0-1.0"
] | null | null | null | pytorch/model_blocks.py | sansba/BRATS2021_2D_Segmentation | 752a3ae77ad129804986699916af8bf140cad4bc | [
"CC0-1.0"
] | null | null | null | import re
import torch
import torch.nn as nn
import torch.nn.functional as F
""" BASIC BLOCKS"""
#Double Conv
class DoubleConv(nn.Module):
def __init__(self, in_ch, out_ch):
"""Double Convolution for Basic UNet Model. \n
Args:
- in_ch (int): input channel of the first convolution layer.
- out_ch (int): output channel of the first and second convolution layer and input channel of the second convolution layer.
"""
super(DoubleConv, self).__init__()
self.conv = nn.Sequential(nn.Conv2d(in_channels=in_ch, out_channels=out_ch, kernel_size=3, padding="same"), nn.BatchNorm2d(out_ch), nn.ReLU(inplace=True),
nn.Conv2d(in_channels=out_ch, out_channels=out_ch, kernel_size=3, padding="same"), nn.BatchNorm2d(out_ch), nn.ReLU(inplace=True))
def forward(self, x):
return self.conv(x)
#Input Conv
class InConv(nn.Module):
def __init__(self, in_ch, out_ch):
"""Input Convolution Layer for Basic UNet Model. \n
Args:
- in_ch (int): input channel of the first convolution layer.
- out_ch (int): output channel of the first and second convolution layer and input channel of the second convolution layer.
"""
super(InConv, self).__init__()
self.conv = DoubleConv(in_ch, out_ch)
def forward(self, x):
return self.conv(x)
#Down Sampling
class Down(nn.Module):
def __init__(self, in_ch, out_ch):
"""Down Sampling Layer for Basic UNet Model. \n
Args:
- in_ch (int): input channel of first convolution layer.
- out_ch (int): output channel of the first and second convolution layer and input channel of the second convolution layer.
"""
super(Down, self).__init__()
self.down = nn.Sequential(nn.MaxPool2d(2, 2), DoubleConv(in_ch, out_ch))
def forward(self, x):
return self.down(x)
#Up Sampling
class Up(nn.Module):
def __init__(self, in_ch, out_ch):
"""Up Sampling Layer for Basic UNet Model. \n
Args:
- in_ch (int): input channel of first convolution layer.
- out_ch (int): output channel of the first and second convolution layer and input channel of the second convolution layer.
"""
super(Up, self).__init__()
self.up = nn.ConvTranspose2d(in_channels=in_ch, out_channels=in_ch // 2, kernel_size=2, stride=2)
self.conv = DoubleConv(in_ch, out_ch)
def forward(self, x1, x2):
x1 = self.up(x1)
diffY = x2.size()[2] - x1.size()[2]
diffX = x2.size()[3] - x1.size()[3]
x2 = F.pad(x2, (-(diffX // 2), -(diffX - diffX // 2),
-(diffY // 2), -(diffY - diffY // 2)))
x = torch.cat([x2, x1], dim=1)
return self.conv(x)
#Out Conv
class OutConv(nn.Module):
def __init__(self, in_ch, out_ch):
"""Out Convolution Layer for Basic UNet Model. \n
Args:
- in_ch (int): input channel of the convolution layer.
- out_ch (int): output channel of the convolution layer.
"""
super(OutConv, self).__init__()
self.conv = nn.Conv2d(in_channels=in_ch, out_channels=out_ch, kernel_size=1)
def forward(self, x):
return self.conv(x)
""" DILATION BLOCKS"""
#Dilation Block
class DilationBlock(nn.Module):
def __init__(self, in_ch, out_ch):
"""Dilation Block for Dilation UNet Model. \n
Args:
- in_ch (int): input channel of the convolution layer.
- out_ch (int): output channel of the convolution layer.
"""
super(DilationBlock, self).__init__()
self.x1 = nn.Sequential(nn.Conv2d(in_channels=in_ch, out_channels=out_ch // 4, kernel_size=3, padding="same", dilation=1), nn.BatchNorm2d(out_ch // 4), nn.ReLU(inplace=True))
self.x2 = nn.Sequential(nn.Conv2d(in_channels=in_ch, out_channels=out_ch // 4, kernel_size=3, padding="same", dilation=2), nn.BatchNorm2d(out_ch // 4), nn.ReLU(inplace=True))
self.x3 = nn.Sequential(nn.Conv2d(in_channels=in_ch, out_channels=out_ch // 4, kernel_size=3, padding="same", dilation=3), nn.BatchNorm2d(out_ch // 4), nn.ReLU(inplace=True))
self.x4 = nn.Sequential(nn.Conv2d(in_channels=in_ch, out_channels=out_ch // 4, kernel_size=3, padding="same", dilation=4), nn.BatchNorm2d(out_ch // 4), nn.ReLU(inplace=True))
def forward(self, x):
x1 = self.x1(x)
x2 = self.x2(x)
x3 = self.x3(x)
x4 = self.x4(x)
x = torch.cat([x1, x2, x3, x4], dim=1)
return x
#Double Conv
class DilDoubleConv(nn.Module):
def __init__(self, in_ch, out_ch):
"""Double Dilation Convolution for Dilation UNet Model. \n
Args:
- in_ch (int): input channel of the first convolution layer.
- out_ch (int): output channel of the first and second convolution layer and input channel of the second convolution layer.
"""
super(DilDoubleConv, self).__init__()
self.conv = nn.Sequential(DilationBlock(in_ch, out_ch), nn.BatchNorm2d(out_ch), nn.ReLU(inplace=True),
DilationBlock(out_ch, out_ch), nn.BatchNorm2d(out_ch), nn.ReLU(inplace=True))
def forward(self, x):
return self.conv(x)
#Input Convolution
class DilInConv(nn.Module):
def __init__(self, in_ch, out_ch):
"""Input Convolution Layer for Dilation UNet Model. \n
Args:
- in_ch (int): input channel of the convolution layer.
- out_ch (int): output channel of the first and second convolution layer and input channel of the second convolution layer.
"""
super(DilInConv, self).__init__()
self.conv = DilDoubleConv(in_ch, out_ch)
def forward(self, x):
return self.conv(x)
#Down Sampling
class DilDown(nn.Module):
def __init__(self, in_ch, out_ch):
"""Down Sampling Layer for Dilation UNet Model. \n
Args:
- in_ch (int): input channel of the convolution layer.
- out_ch (int): output channel of the first and second convolution layer and input channel of the second convolution layer.
"""
super(DilDown, self).__init__()
self.down = nn.Sequential(nn.MaxPool2d(2, 2), DilDoubleConv(in_ch, out_ch))
def forward(self, x):
return self.down(x)
#Up Sampling
class DilUp(nn.Module):
def __init__(self, in_ch, out_ch):
"""Up Sampling Layer for Dilation UNet Model. \n
Args:
- in_ch (int): input channel of the convolution layer.
- out_ch (int): output channel of the first and second convolution layer and input channel of the second convolution layer.
"""
super(DilUp, self).__init__()
self.up = nn.ConvTranspose2d(in_channels=in_ch, out_channels=in_ch // 2, kernel_size=2, stride=2)
self.conv = DilDoubleConv(in_ch, out_ch)
def forward(self, x1, x2):
x1 = self.up(x1)
diffX = x2.size()[3] - x1.size()[3]
diffY = x2.size()[2] - x1.size()[2]
x2 = F.pad(x2, (-(diffX // 2), -(diffX - diffX // 2),
-(diffY // 2), -(diffY - diffY // 2)))
x = torch.cat([x2, x1], dim=1)
return self.conv(x)
""" ARROW BLOCKS """
#Double Conv
class ArrDoubleConv(nn.Module):
def __init__(self, in_ch, out_ch):
"""Double Convolution for Basic UNet Model. \n
Args:
- in_ch (int): input channel of the first convolution layer.
- out_ch (int): output channel of the first and second convolution layer and input channel of the second convolution layer.
"""
super(ArrDoubleConv, self).__init__()
self.conv = nn.Sequential(nn.Conv2d(in_channels=in_ch, out_channels=out_ch, kernel_size=3, padding="same"), nn.BatchNorm2d(out_ch), nn.ReLU(inplace=True),
nn.Conv2d(in_channels=out_ch, out_channels=out_ch, kernel_size=3, padding="same"))
def forward(self, x):
return self.conv(x)
#Down Sampling
class ArrDown(nn.Module):
def __init__(self, in_ch, depth):
"""Down Sampling Layer for Arrow UNet Model. \n
Args:
- in_ch (int): input channel of the convolution layer.
- out_ch (int): output channel of the convolution layer.
"""
super(ArrDown, self).__init__()
self.depth = depth
channel = 64
self.down_list = nn.ModuleList()
self.down = nn.Sequential(nn.MaxPool2d(2, 2), ArrDoubleConv(in_ch, channel))
self.conv_out = nn.Sequential(nn.BatchNorm2d(channel * depth), nn.ReLU(inplace=True))
for i in range(self.depth - 1):
self.down_list.append(nn.Sequential(nn.MaxPool2d(2 ** (self.depth - i - 1)), nn.Conv2d(in_channels=channel * (i + 1), out_channels=64, kernel_size=3, padding="same")))
def forward(self, *args):
out = []
for i in range(len(self.down_list)):
x = self.down_list[i](args[i])
out.append(x)
out.append(self.down(args[-1]))
x = torch.cat(out, dim=1)
return self.conv_out(x)
#Up Sampling
class ArrUp(nn.Module):
def __init__(self, in_ch, depth):
"""Up Sampling Layer for Arrow UNet Model. \n
Args:
- in_ch (int): input channel of the convolution layer.
- out_ch (int): output channel of the convolution layer.
"""
super(ArrUp, self).__init__()
self.depth = depth
channel = 64
self.up_list = nn.ModuleList()
self.up = nn.Sequential(nn.ConvTranspose2d(in_channels=in_ch, out_channels=channel * 4, kernel_size=2, stride=2), ArrDoubleConv(channel * 4, channel * 4))
self.conv = nn.Conv2d(in_channels=channel * depth, out_channels=channel, kernel_size=3, padding="same")
self.conv_out = nn.Sequential(nn.BatchNorm2d(channel * (10 - depth)), nn.ReLU(inplace=True))
for i in range(5, self.depth, -1):
self.up_list.append(nn.Sequential(nn.ConvTranspose2d(in_channels=channel * (10 - i), out_channels=channel, kernel_size=2 ** (i - self.depth), stride=2 ** (i - self.depth)), nn.Conv2d(in_channels=channel, out_channels=channel, kernel_size=3, padding="same")))
def forward(self, *args):
out = [self.conv(args[0])]
for i in range(len(self.up_list)):
out.append(self.up_list[i](args[i + 1]))
out.append(self.up(args[-1]))
x = torch.cat(out, dim=1)
return self.conv_out(x)
"""Expanded UNet"""
class TripleConv(nn.Module):
def __init__(self, in_ch, out_ch):
super(TripleConv, self).__init__()
self.conv = nn.Sequential(nn.Conv2d(in_channels=in_ch, out_channels=out_ch, kernel_size=3, padding="same"), nn.BatchNorm2d(out_ch), nn.ReLU(inplace=True),
nn.Conv2d(in_channels=out_ch, out_channels=out_ch, kernel_size=3, padding="same"), nn.BatchNorm2d(out_ch), nn.ReLU(inplace=True),
nn.Conv2d(in_channels=out_ch, out_channels=out_ch, kernel_size=3, padding="same"), nn.BatchNorm2d(out_ch), nn.ReLU(inplace=True))
def forward(self, x):
return self.conv(x)
#Input Conv
class ExpInConv(nn.Module):
def __init__(self, in_ch, out_ch):
"""Input Convolution Layer for Basic UNet Model. \n
Args:
- in_ch (int): input channel of the first convolution layer.
- out_ch (int): output channel of the first and second convolution layer and input channel of the second convolution layer.
"""
super(ExpInConv, self).__init__()
self.conv = TripleConv(in_ch, out_ch)
def forward(self, x):
return self.conv(x)
#Down Sampling
class ExpDown(nn.Module):
def __init__(self, in_ch, out_ch):
"""Down Sampling Layer for Basic UNet Model. \n
Args:
- in_ch (int): input channel of first convolution layer.
- out_ch (int): output channel of the first and second convolution layer and input channel of the second convolution layer.
"""
super(ExpDown, self).__init__()
self.down = nn.Sequential(nn.MaxPool2d(2, 2), TripleConv(in_ch, out_ch))
def forward(self, x):
return self.down(x)
#Up Sampling
class ExpUp(nn.Module):
def __init__(self, in_ch, out_ch):
"""Up Sampling Layer for Basic UNet Model. \n
Args:
- in_ch (int): input channel of first convolution layer.
- out_ch (int): output channel of the first and second convolution layer and input channel of the second convolution layer.
"""
super(ExpUp, self).__init__()
self.up = nn.ConvTranspose2d(in_channels=in_ch, out_channels=in_ch // 2, kernel_size=2, stride=2)
self.conv = TripleConv(in_ch, out_ch)
def forward(self, x1, x2):
x1 = self.up(x1)
diffY = x2.size()[2] - x1.size()[2]
diffX = x2.size()[3] - x1.size()[3]
x2 = F.pad(x2, (-(diffX // 2), -(diffX - diffX // 2),
-(diffY // 2), -(diffY - diffY // 2)))
x = torch.cat([x2, x1], dim=1)
return self.conv(x)
"""DİLATİON+ UNET"""
#Dilation+ Block
class DilationPlusBlock(nn.Module):
def __init__(self, in_ch, out_ch):
super(DilationPlusBlock, self).__init__()
self.x1 = nn.Sequential(nn.Conv2d(in_channels=in_ch, out_channels=out_ch // 2, kernel_size=3, padding="same", dilation=1))
self.x2 = nn.Sequential(nn.Conv2d(in_channels=in_ch, out_channels=out_ch // 2, kernel_size=3, padding="same", dilation=2))
def forward(self, x):
x1 = self.x1(x)
x2 = self.x2(x)
x = torch.cat([x1, x2], dim=1)
return x
#Dilation+ Double Convolution
class DilPlusDoubleConv(nn.Module):
def __init__(self, in_ch, out_ch):
super(DilPlusDoubleConv, self).__init__()
self.conv1 = nn.Sequential(DilationPlusBlock(in_ch, out_ch // 2), nn.BatchNorm2d(out_ch // 2), nn.ReLU(inplace=True))
self.conv2 = nn.Sequential(DilationPlusBlock(out_ch // 2, out_ch // 2), nn.BatchNorm2d(out_ch // 2), nn.ReLU(inplace=True))
def forward(self, x):
x1 = self.conv1(x)
x2 = self.conv2(x1)
x = torch.cat([x1, x2], dim=1)
return x
#Input Convolution
class DilPlusInConv(nn.Module):
def __init__(self, in_ch, out_ch):
"""Input Convolution Layer for Dilation+ UNet Model. \n
Args:
- in_ch (int): input channel of the convolution layer.
- out_ch (int): output channel of the first and second convolution layer and input channel of the second convolution layer.
"""
super(DilPlusInConv, self).__init__()
self.conv = DilPlusDoubleConv(in_ch, out_ch)
def forward(self, x):
return self.conv(x)
#Down Sampling
class DilPlusDown(nn.Module):
def __init__(self, in_ch, out_ch):
"""Down Sampling Layer for Dilation+ UNet Model. \n
Args:
- in_ch (int): input channel of the convolution layer.
- out_ch (int): output channel of the first and second convolution layer and input channel of the second convolution layer.
"""
super(DilPlusDown, self).__init__()
self.down = nn.Sequential(nn.MaxPool2d(2, 2), DilPlusDoubleConv(in_ch, out_ch))
def forward(self, x):
return self.down(x)
#Up Sampling
class DilPlusUp(nn.Module):
def __init__(self, in_ch, out_ch):
"""Up Sampling Layer for Dilation+ UNet Model. \n
Args:
- in_ch (int): input channel of the convolution layer.
- out_ch (int): output channel of the first and second convolution layer and input channel of the second convolution layer.
"""
super(DilPlusUp, self).__init__()
self.up = nn.ConvTranspose2d(in_channels=in_ch, out_channels=in_ch // 2, kernel_size=2, stride=2)
self.conv = DilPlusDoubleConv(in_ch, out_ch)
def forward(self, x1, x2):
x1 = self.up(x1)
diffX = x2.size()[3] - x1.size()[3]
diffY = x2.size()[2] - x1.size()[2]
x2 = F.pad(x2, (-(diffX // 2), -(diffX - diffX // 2),
-(diffY // 2), -(diffY - diffY // 2)))
x = torch.cat([x2, x1], dim=1)
return self.conv(x)
"""Dilation++ UNet"""
#Dilation++ Double Convolution
class Dil2PlusDoubleConv(nn.Module):
def __init__(self, in_ch, out_ch):
super(Dil2PlusDoubleConv, self).__init__()
self.conv1 = nn.Sequential(DilationBlock(in_ch, out_ch // 2), nn.BatchNorm2d(out_ch // 2), nn.ReLU(inplace=True))
self.conv2 = nn.Sequential(DilationBlock(out_ch // 2, out_ch // 2), nn.BatchNorm2d(out_ch // 2), nn.ReLU(inplace=True))
def forward(self, x):
x1 = self.conv1(x)
x2 = self.conv2(x1)
x = torch.cat([x1, x2], dim=1)
return x
#Input Convolution
class Dil2PlusInConv(nn.Module):
def __init__(self, in_ch, out_ch):
"""Input Convolution Layer for Dilation++ UNet Model. \n
Args:
- in_ch (int): input channel of the convolution layer.
- out_ch (int): output channel of the first and second convolution layer and input channel of the second convolution layer.
"""
super(Dil2PlusInConv, self).__init__()
self.conv = Dil2PlusDoubleConv(in_ch, out_ch)
def forward(self, x):
return self.conv(x)
#Down Sampling
class Dil2PlusDown(nn.Module):
def __init__(self, in_ch, out_ch):
"""Down Sampling Layer for Dilation++ UNet Model. \n
Args:
- in_ch (int): input channel of the convolution layer.
- out_ch (int): output channel of the first and second convolution layer and input channel of the second convolution layer.
"""
super(Dil2PlusDown, self).__init__()
self.down = nn.Sequential(nn.MaxPool2d(2, 2), Dil2PlusDoubleConv(in_ch, out_ch))
def forward(self, x):
return self.down(x)
#Up Sampling
class Dil2PlusUp(nn.Module):
def __init__(self, in_ch, out_ch):
"""Up Sampling Layer for Dilation++ UNet Model. \n
Args:
- in_ch (int): input channel of the convolution layer.
- out_ch (int): output channel of the first and second convolution layer and input channel of the second convolution layer.
"""
super(Dil2PlusUp, self).__init__()
self.up = nn.ConvTranspose2d(in_channels=in_ch, out_channels=in_ch // 2, kernel_size=2, stride=2)
self.conv = Dil2PlusDoubleConv(in_ch, out_ch)
def forward(self, x1, x2):
x1 = self.up(x1)
diffX = x2.size()[3] - x1.size()[3]
diffY = x2.size()[2] - x1.size()[2]
x2 = F.pad(x2, (-(diffX // 2), -(diffX - diffX // 2),
-(diffY // 2), -(diffY - diffY // 2)))
x = torch.cat([x2, x1], dim=1)
return self.conv(x) | 38.375984 | 271 | 0.600769 | 2,665 | 19,495 | 4.213884 | 0.042777 | 0.046305 | 0.036153 | 0.03366 | 0.882191 | 0.866963 | 0.849421 | 0.844435 | 0.811042 | 0.796349 | 0 | 0.02198 | 0.276532 | 19,495 | 508 | 272 | 38.375984 | 0.774107 | 0.26694 | 0 | 0.594262 | 0 | 0 | 0.005086 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.213115 | false | 0 | 0.016393 | 0.061475 | 0.442623 | 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 |
fcc9c304a27a9c480fc4b38baabef663973e9c79 | 166 | py | Python | main.py | slzatz/esp8266 | 687a0ff1cf2326f7c911e90026811036575932d1 | [
"MIT"
] | 2 | 2017-05-25T23:15:22.000Z | 2019-09-29T02:13:13.000Z | main.py | slzatz/esp8266 | 687a0ff1cf2326f7c911e90026811036575932d1 | [
"MIT"
] | null | null | null | main.py | slzatz/esp8266 | 687a0ff1cf2326f7c911e90026811036575932d1 | [
"MIT"
] | 2 | 2019-09-29T02:13:14.000Z | 2019-11-06T07:49:21.000Z | #import iot_esp32_tft
#import sonos_remote
#import sonos_remote_esp32
#print("Hello World")
#import esp32_bmp180_mqtt
#import esp32_bme280_mqtt
import iot_esp32_tft
| 18.444444 | 26 | 0.849398 | 26 | 166 | 5 | 0.461538 | 0.138462 | 0.215385 | 0.261538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.10596 | 0.090361 | 166 | 8 | 27 | 20.75 | 0.754967 | 0.795181 | 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 |
1ec5755ade9c4dd00f48a8c68d8e5542e55280e8 | 8,014 | py | Python | tests/cloudwatch/test_cloudwatch_probes.py | mvollman/chaostoolkit-aws | 17029b763fc20e36bc4ebee35ef1012b9d28bc14 | [
"Apache-2.0"
] | 3 | 2020-08-04T18:45:23.000Z | 2021-11-12T16:14:49.000Z | tests/cloudwatch/test_cloudwatch_probes.py | mvollman/chaostoolkit-aws | 17029b763fc20e36bc4ebee35ef1012b9d28bc14 | [
"Apache-2.0"
] | null | null | null | tests/cloudwatch/test_cloudwatch_probes.py | mvollman/chaostoolkit-aws | 17029b763fc20e36bc4ebee35ef1012b9d28bc14 | [
"Apache-2.0"
] | 1 | 2020-09-14T10:43:46.000Z | 2020-09-14T10:43:46.000Z | # -*- coding: utf-8 -*-
from datetime import datetime, timezone
from unittest.mock import MagicMock, patch
import pytest
from chaoslib.exceptions import FailedActivity
from chaosaws.cloudwatch.probes import (get_alarm_state_value,
get_metric_statistics)
@patch('chaosaws.cloudwatch.probes.aws_client', autospec=True)
def test_cloudwatch_get_alarm_state_value_ok(aws_client):
client = MagicMock()
aws_client.return_value = client
alarm_name = 'my-alarm'
client.describe_alarms.return_value = {
'MetricAlarms': [
{
'AlarmName': alarm_name,
'StateValue': 'OK'
}
]
}
result = get_alarm_state_value(alarm_name)
assert result == 'OK'
client.describe_alarms.assert_called_with(AlarmNames=[alarm_name])
@patch('chaosaws.cloudwatch.probes.aws_client', autospec=True)
def test_cloudwatch_get_alarm_state_value_not_found(aws_client):
client = MagicMock()
aws_client.return_value = client
alarm_name = 'my-alarm'
client.describe_alarms.return_value = {
'MetricAlarms': []
}
with pytest.raises(FailedActivity):
get_alarm_state_value(alarm_name)
client.describe_alarms.assert_called_with(AlarmNames=[alarm_name])
@patch('chaosaws.cloudwatch.probes.datetime', autospec=True)
@patch('chaosaws.cloudwatch.probes.aws_client', autospec=True)
def test_cloudwatch_get_metric_statistics_ok(aws_client,
mock_datetime):
client = MagicMock()
aws_client.return_value = client
mock_datetime.utcnow.return_value = datetime(2015, 1, 1, 15, 15,
tzinfo=timezone.utc)
namespace = 'AWS/Lambda'
metric_name = 'Invocations'
dimension_name = 'FunctionName'
dimension_value = 'MyFunction'
duration = 120
offset = 60
statistic = 'Sum'
extended_statistic = None
unit = 'Count'
client.get_metric_statistics.return_value = {
'Datapoints': [{statistic: 4753.0}]
}
result = get_metric_statistics(namespace=namespace,
metric_name=metric_name,
dimension_name=dimension_name,
dimension_value=dimension_value,
duration=duration,
offset=offset,
statistic=statistic,
extended_statistic=extended_statistic,
unit=unit)
assert result == 4753.0
client.get_metric_statistics.assert_called_with(
Namespace=namespace,
MetricName=metric_name,
Dimensions=[{'Name': dimension_name, 'Value': dimension_value}],
Period=duration,
StartTime=datetime(2015, 1, 1, 15, 12, tzinfo=timezone.utc),
EndTime=datetime(2015, 1, 1, 15, 14, tzinfo=timezone.utc),
Statistics=[statistic],
Unit=unit
)
@patch('chaosaws.cloudwatch.probes.datetime', autospec=True)
@patch('chaosaws.cloudwatch.probes.aws_client', autospec=True)
def test_cloudwatch_get_metric_statistics_extended_ok(aws_client,
mock_datetime):
client = MagicMock()
aws_client.return_value = client
mock_datetime.utcnow.return_value = datetime(2015, 1, 1, 15, 15,
tzinfo=timezone.utc)
namespace = 'AWS/Lambda'
metric_name = 'Invocations'
dimension_name = 'FunctionName'
dimension_value = 'MyFunction'
duration = 120
offset = 60
statistic = None
extended_statistic = 'p99'
client.get_metric_statistics.return_value = {
'Datapoints': [{'ExtendedStatistics': {extended_statistic: 4753.0}}]
}
unit = None
result = get_metric_statistics(namespace=namespace,
metric_name=metric_name,
dimension_name=dimension_name,
dimension_value=dimension_value,
duration=duration,
offset=offset,
statistic=statistic,
extended_statistic=extended_statistic,
unit=unit)
assert result == 4753.0
client.get_metric_statistics.assert_called_with(
Namespace=namespace,
MetricName=metric_name,
Dimensions=[{'Name': dimension_name, 'Value': dimension_value}],
Period=duration,
StartTime=datetime(2015, 1, 1, 15, 12, tzinfo=timezone.utc),
EndTime=datetime(2015, 1, 1, 15, 14, tzinfo=timezone.utc),
ExtendedStatistics=[extended_statistic],
)
@patch('chaosaws.cloudwatch.probes.datetime', autospec=True)
@patch('chaosaws.cloudwatch.probes.aws_client', autospec=True)
def test_cloudwatch_get_metric_statistics_no_datapoints(
aws_client, mock_datetime):
client = MagicMock()
aws_client.return_value = client
mock_datetime.utcnow.return_value = datetime(2015, 1, 1, 15, 15,
tzinfo=timezone.utc)
namespace = 'AWS/Lambda'
metric_name = 'Invocations'
dimension_name = 'FunctionName'
dimension_value = 'MyFunction'
duration = 120
offset = 60
statistic = 'Sum'
extended_statistic = None
unit = 'Count'
client.get_metric_statistics.return_value = {
'Datapoints': []
}
with pytest.raises(FailedActivity):
get_metric_statistics(namespace=namespace, metric_name=metric_name,
dimension_name=dimension_name,
dimension_value=dimension_value,
duration=duration, offset=offset,
statistic=statistic,
extended_statistic=extended_statistic, unit=unit)
client.get_metric_statistics.assert_called_with(
Namespace=namespace,
MetricName=metric_name,
Dimensions=[{'Name': dimension_name, 'Value': dimension_value}],
Period=duration,
StartTime=datetime(2015, 1, 1, 15, 12, tzinfo=timezone.utc),
EndTime=datetime(2015, 1, 1, 15, 14, tzinfo=timezone.utc),
Statistics=[statistic],
Unit=unit
)
@patch('chaosaws.cloudwatch.probes.datetime', autospec=True)
@patch('chaosaws.cloudwatch.probes.aws_client', autospec=True)
def test_cloudwatch_get_metric_statistics_bad_response(
aws_client, mock_datetime):
client = MagicMock()
aws_client.return_value = client
mock_datetime.utcnow.return_value = datetime(2015, 1, 1, 15, 15,
tzinfo=timezone.utc)
namespace = 'AWS/Lambda'
metric_name = 'Invocations'
dimension_name = 'FunctionName'
dimension_value = 'MyFunction'
duration = 120
offset = 60
statistic = 'Sum'
extended_statistic = None
unit = 'Count'
client.get_metric_statistics.return_value = {
'Datapoints': [{'some': 'value'}]
}
with pytest.raises(FailedActivity):
get_metric_statistics(namespace=namespace, metric_name=metric_name,
dimension_name=dimension_name,
dimension_value=dimension_value,
duration=duration, offset=offset,
statistic=statistic,
extended_statistic=extended_statistic, unit=unit)
client.get_metric_statistics.assert_called_with(
Namespace=namespace,
MetricName=metric_name,
Dimensions=[{'Name': dimension_name, 'Value': dimension_value}],
Period=duration,
StartTime=datetime(2015, 1, 1, 15, 12, tzinfo=timezone.utc),
EndTime=datetime(2015, 1, 1, 15, 14, tzinfo=timezone.utc),
Statistics=[statistic],
Unit=unit
)
| 37.448598 | 79 | 0.609433 | 781 | 8,014 | 6 | 0.108835 | 0.034571 | 0.068929 | 0.035851 | 0.909091 | 0.902689 | 0.891165 | 0.881349 | 0.881349 | 0.881349 | 0 | 0.029081 | 0.300599 | 8,014 | 213 | 80 | 37.624413 | 0.806958 | 0.00262 | 0 | 0.784946 | 0 | 0 | 0.090977 | 0.045301 | 0 | 0 | 0 | 0 | 0.048387 | 1 | 0.032258 | false | 0 | 0.026882 | 0 | 0.05914 | 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 |
94af7c983ec3fc94b71439bb23a6cb64a08fcf97 | 148,477 | py | Python | pyboto3/machinelearning.py | gehad-shaat/pyboto3 | 4a0c2851a8bc04fb1c71c36086f7bb257e48181d | [
"MIT"
] | 91 | 2016-12-31T11:38:37.000Z | 2021-09-16T19:33:23.000Z | pyboto3/machinelearning.py | gehad-shaat/pyboto3 | 4a0c2851a8bc04fb1c71c36086f7bb257e48181d | [
"MIT"
] | 7 | 2017-01-02T18:54:23.000Z | 2020-08-11T13:54:02.000Z | pyboto3/machinelearning.py | gehad-shaat/pyboto3 | 4a0c2851a8bc04fb1c71c36086f7bb257e48181d | [
"MIT"
] | 26 | 2016-12-31T13:11:00.000Z | 2022-03-03T21:01:12.000Z | '''
The MIT License (MIT)
Copyright (c) 2016 WavyCloud
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
'''
def add_tags(Tags=None, ResourceId=None, ResourceType=None):
"""
Adds one or more tags to an object, up to a limit of 10. Each tag consists of a key and an optional value. If you add a tag using a key that is already associated with the ML object, AddTags updates the tag\'s value.
See also: AWS API Documentation
Exceptions
:example: response = client.add_tags(
Tags=[
{
'Key': 'string',
'Value': 'string'
},
],
ResourceId='string',
ResourceType='BatchPrediction'|'DataSource'|'Evaluation'|'MLModel'
)
:type Tags: list
:param Tags: [REQUIRED]\nThe key-value pairs to use to create tags. If you specify a key without specifying a value, Amazon ML creates a tag with the specified key and a value of null.\n\n(dict) --A custom key-value pair associated with an ML object, such as an ML model.\n\nKey (string) --A unique identifier for the tag. Valid characters include Unicode letters, digits, white space, _, ., /, =, +, -, %, and @.\n\nValue (string) --An optional string, typically used to describe or define the tag. Valid characters include Unicode letters, digits, white space, _, ., /, =, +, -, %, and @.\n\n\n\n\n
:type ResourceId: string
:param ResourceId: [REQUIRED]\nThe ID of the ML object to tag. For example, exampleModelId .\n
:type ResourceType: string
:param ResourceType: [REQUIRED]\nThe type of the ML object to tag.\n
:rtype: dict
ReturnsResponse Syntax
{
'ResourceId': 'string',
'ResourceType': 'BatchPrediction'|'DataSource'|'Evaluation'|'MLModel'
}
Response Structure
(dict) --
Amazon ML returns the following elements.
ResourceId (string) --
The ID of the ML object that was tagged.
ResourceType (string) --
The type of the ML object that was tagged.
Exceptions
MachineLearning.Client.exceptions.InvalidInputException
MachineLearning.Client.exceptions.InvalidTagException
MachineLearning.Client.exceptions.TagLimitExceededException
MachineLearning.Client.exceptions.ResourceNotFoundException
MachineLearning.Client.exceptions.InternalServerException
:return: {
'ResourceId': 'string',
'ResourceType': 'BatchPrediction'|'DataSource'|'Evaluation'|'MLModel'
}
:returns:
MachineLearning.Client.exceptions.InvalidInputException
MachineLearning.Client.exceptions.InvalidTagException
MachineLearning.Client.exceptions.TagLimitExceededException
MachineLearning.Client.exceptions.ResourceNotFoundException
MachineLearning.Client.exceptions.InternalServerException
"""
pass
def can_paginate(operation_name=None):
"""
Check if an operation can be paginated.
:type operation_name: string
:param operation_name: The operation name. This is the same name\nas the method name on the client. For example, if the\nmethod name is create_foo, and you\'d normally invoke the\noperation as client.create_foo(**kwargs), if the\ncreate_foo operation can be paginated, you can use the\ncall client.get_paginator('create_foo').
"""
pass
def create_batch_prediction(BatchPredictionId=None, BatchPredictionName=None, MLModelId=None, BatchPredictionDataSourceId=None, OutputUri=None):
"""
Generates predictions for a group of observations. The observations to process exist in one or more data files referenced by a DataSource . This operation creates a new BatchPrediction , and uses an MLModel and the data files referenced by the DataSource as information sources.
CreateBatchPrediction is an asynchronous operation. In response to CreateBatchPrediction , Amazon Machine Learning (Amazon ML) immediately returns and sets the BatchPrediction status to PENDING . After the BatchPrediction completes, Amazon ML sets the status to COMPLETED .
You can poll for status updates by using the GetBatchPrediction operation and checking the Status parameter of the result. After the COMPLETED status appears, the results are available in the location specified by the OutputUri parameter.
See also: AWS API Documentation
Exceptions
:example: response = client.create_batch_prediction(
BatchPredictionId='string',
BatchPredictionName='string',
MLModelId='string',
BatchPredictionDataSourceId='string',
OutputUri='string'
)
:type BatchPredictionId: string
:param BatchPredictionId: [REQUIRED]\nA user-supplied ID that uniquely identifies the BatchPrediction .\n
:type BatchPredictionName: string
:param BatchPredictionName: A user-supplied name or description of the BatchPrediction . BatchPredictionName can only use the UTF-8 character set.
:type MLModelId: string
:param MLModelId: [REQUIRED]\nThe ID of the MLModel that will generate predictions for the group of observations.\n
:type BatchPredictionDataSourceId: string
:param BatchPredictionDataSourceId: [REQUIRED]\nThe ID of the DataSource that points to the group of observations to predict.\n
:type OutputUri: string
:param OutputUri: [REQUIRED]\nThe location of an Amazon Simple Storage Service (Amazon S3) bucket or directory to store the batch prediction results. The following substrings are not allowed in the s3 key portion of the outputURI field: \':\', \'//\', \'/./\', \'/../\'.\nAmazon ML needs permissions to store and retrieve the logs on your behalf. For information about how to set permissions, see the Amazon Machine Learning Developer Guide .\n
:rtype: dict
ReturnsResponse Syntax
{
'BatchPredictionId': 'string'
}
Response Structure
(dict) --
Represents the output of a CreateBatchPrediction operation, and is an acknowledgement that Amazon ML received the request.
The CreateBatchPrediction operation is asynchronous. You can poll for status updates by using the >GetBatchPrediction operation and checking the Status parameter of the result.
BatchPredictionId (string) --
A user-supplied ID that uniquely identifies the BatchPrediction . This value is identical to the value of the BatchPredictionId in the request.
Exceptions
MachineLearning.Client.exceptions.InvalidInputException
MachineLearning.Client.exceptions.InternalServerException
MachineLearning.Client.exceptions.IdempotentParameterMismatchException
:return: {
'BatchPredictionId': 'string'
}
:returns:
MachineLearning.Client.exceptions.InvalidInputException
MachineLearning.Client.exceptions.InternalServerException
MachineLearning.Client.exceptions.IdempotentParameterMismatchException
"""
pass
def create_data_source_from_rds(DataSourceId=None, DataSourceName=None, RDSData=None, RoleARN=None, ComputeStatistics=None):
"""
Creates a DataSource object from an Amazon Relational Database Service (Amazon RDS). A DataSource references data that can be used to perform CreateMLModel , CreateEvaluation , or CreateBatchPrediction operations.
CreateDataSourceFromRDS is an asynchronous operation. In response to CreateDataSourceFromRDS , Amazon Machine Learning (Amazon ML) immediately returns and sets the DataSource status to PENDING . After the DataSource is created and ready for use, Amazon ML sets the Status parameter to COMPLETED . DataSource in the COMPLETED or PENDING state can be used only to perform >CreateMLModel >, CreateEvaluation , or CreateBatchPrediction operations.
If Amazon ML cannot accept the input source, it sets the Status parameter to FAILED and includes an error message in the Message attribute of the GetDataSource operation response.
See also: AWS API Documentation
Exceptions
:example: response = client.create_data_source_from_rds(
DataSourceId='string',
DataSourceName='string',
RDSData={
'DatabaseInformation': {
'InstanceIdentifier': 'string',
'DatabaseName': 'string'
},
'SelectSqlQuery': 'string',
'DatabaseCredentials': {
'Username': 'string',
'Password': 'string'
},
'S3StagingLocation': 'string',
'DataRearrangement': 'string',
'DataSchema': 'string',
'DataSchemaUri': 'string',
'ResourceRole': 'string',
'ServiceRole': 'string',
'SubnetId': 'string',
'SecurityGroupIds': [
'string',
]
},
RoleARN='string',
ComputeStatistics=True|False
)
:type DataSourceId: string
:param DataSourceId: [REQUIRED]\nA user-supplied ID that uniquely identifies the DataSource . Typically, an Amazon Resource Number (ARN) becomes the ID for a DataSource .\n
:type DataSourceName: string
:param DataSourceName: A user-supplied name or description of the DataSource .
:type RDSData: dict
:param RDSData: [REQUIRED]\nThe data specification of an Amazon RDS DataSource :\n\nDatabaseInformation -\nDatabaseName - The name of the Amazon RDS database.\nInstanceIdentifier - A unique identifier for the Amazon RDS database instance.\n\n\nDatabaseCredentials - AWS Identity and Access Management (IAM) credentials that are used to connect to the Amazon RDS database.\nResourceRole - A role (DataPipelineDefaultResourceRole) assumed by an EC2 instance to carry out the copy task from Amazon RDS to Amazon Simple Storage Service (Amazon S3). For more information, see Role templates for data pipelines.\nServiceRole - A role (DataPipelineDefaultRole) assumed by the AWS Data Pipeline service to monitor the progress of the copy task from Amazon RDS to Amazon S3. For more information, see Role templates for data pipelines.\nSecurityInfo - The security information to use to access an RDS DB instance. You need to set up appropriate ingress rules for the security entity IDs provided to allow access to the Amazon RDS instance. Specify a [SubnetId , SecurityGroupIds ] pair for a VPC-based RDS DB instance.\nSelectSqlQuery - A query that is used to retrieve the observation data for the Datasource .\nS3StagingLocation - The Amazon S3 location for staging Amazon RDS data. The data retrieved from Amazon RDS using SelectSqlQuery is stored in this location.\nDataSchemaUri - The Amazon S3 location of the DataSchema .\nDataSchema - A JSON string representing the schema. This is not required if DataSchemaUri is specified.\nDataRearrangement - A JSON string that represents the splitting and rearrangement requirements for the Datasource . Sample - '{\\'splitting\\':{\\'percentBegin\\':10,\\'percentEnd\\':60}}'\n\n\nDatabaseInformation (dict) -- [REQUIRED]Describes the DatabaseName and InstanceIdentifier of an Amazon RDS database.\n\nInstanceIdentifier (string) -- [REQUIRED]The ID of an RDS DB instance.\n\nDatabaseName (string) -- [REQUIRED]The name of a database hosted on an RDS DB instance.\n\n\n\nSelectSqlQuery (string) -- [REQUIRED]The query that is used to retrieve the observation data for the DataSource .\n\nDatabaseCredentials (dict) -- [REQUIRED]The AWS Identity and Access Management (IAM) credentials that are used connect to the Amazon RDS database.\n\nUsername (string) -- [REQUIRED]The username to be used by Amazon ML to connect to database on an Amazon RDS instance. The username should have sufficient permissions to execute an RDSSelectSqlQuery query.\n\nPassword (string) -- [REQUIRED]The password to be used by Amazon ML to connect to a database on an RDS DB instance. The password should have sufficient permissions to execute the RDSSelectQuery query.\n\n\n\nS3StagingLocation (string) -- [REQUIRED]The Amazon S3 location for staging Amazon RDS data. The data retrieved from Amazon RDS using SelectSqlQuery is stored in this location.\n\nDataRearrangement (string) --A JSON string that represents the splitting and rearrangement processing to be applied to a DataSource . If the DataRearrangement parameter is not provided, all of the input data is used to create the Datasource .\nThere are multiple parameters that control what data is used to create a datasource:\n\n``percentBegin`` Use percentBegin to indicate the beginning of the range of the data used to create the Datasource. If you do not include percentBegin and percentEnd , Amazon ML includes all of the data when creating the datasource.\n``percentEnd`` Use percentEnd to indicate the end of the range of the data used to create the Datasource. If you do not include percentBegin and percentEnd , Amazon ML includes all of the data when creating the datasource.\n``complement`` The complement parameter instructs Amazon ML to use the data that is not included in the range of percentBegin to percentEnd to create a datasource. The complement parameter is useful if you need to create complementary datasources for training and evaluation. To create a complementary datasource, use the same values for percentBegin and percentEnd , along with the complement parameter. For example, the following two datasources do not share any data, and can be used to train and evaluate a model. The first datasource has 25 percent of the data, and the second one has 75 percent of the data. Datasource for evaluation: {'splitting':{'percentBegin':0, 'percentEnd':25}} Datasource for training: {'splitting':{'percentBegin':0, 'percentEnd':25, 'complement':'true'}}\n``strategy`` To change how Amazon ML splits the data for a datasource, use the strategy parameter. The default value for the strategy parameter is sequential , meaning that Amazon ML takes all of the data records between the percentBegin and percentEnd parameters for the datasource, in the order that the records appear in the input data. The following two DataRearrangement lines are examples of sequentially ordered training and evaluation datasources: Datasource for evaluation: {'splitting':{'percentBegin':70, 'percentEnd':100, 'strategy':'sequential'}} Datasource for training: {'splitting':{'percentBegin':70, 'percentEnd':100, 'strategy':'sequential', 'complement':'true'}} To randomly split the input data into the proportions indicated by the percentBegin and percentEnd parameters, set the strategy parameter to random and provide a string that is used as the seed value for the random data splitting (for example, you can use the S3 path to your data as the random seed string). If you choose the random split strategy, Amazon ML assigns each row of data a pseudo-random number between 0 and 100, and then selects the rows that have an assigned number between percentBegin and percentEnd . Pseudo-random numbers are assigned using both the input seed string value and the byte offset as a seed, so changing the data results in a different split. Any existing ordering is preserved. The random splitting strategy ensures that variables in the training and evaluation data are distributed similarly. It is useful in the cases where the input data may have an implicit sort order, which would otherwise result in training and evaluation datasources containing non-similar data records. The following two DataRearrangement lines are examples of non-sequentially ordered training and evaluation datasources: Datasource for evaluation: {'splitting':{'percentBegin':70, 'percentEnd':100, 'strategy':'random', 'randomSeed'='s3://my_s3_path/bucket/file.csv'}} Datasource for training: {'splitting':{'percentBegin':70, 'percentEnd':100, 'strategy':'random', 'randomSeed'='s3://my_s3_path/bucket/file.csv', 'complement':'true'}}\n\n\nDataSchema (string) --A JSON string that represents the schema for an Amazon RDS DataSource . The DataSchema defines the structure of the observation data in the data file(s) referenced in the DataSource .\nA DataSchema is not required if you specify a DataSchemaUri\nDefine your DataSchema as a series of key-value pairs. attributes and excludedVariableNames have an array of key-value pairs for their value. Use the following format to define your DataSchema .\n{ 'version': '1.0',\n'recordAnnotationFieldName': 'F1',\n'recordWeightFieldName': 'F2',\n'targetFieldName': 'F3',\n'dataFormat': 'CSV',\n'dataFileContainsHeader': true,\n'attributes': [\n{ 'fieldName': 'F1', 'fieldType': 'TEXT' }, { 'fieldName': 'F2', 'fieldType': 'NUMERIC' }, { 'fieldName': 'F3', 'fieldType': 'CATEGORICAL' }, { 'fieldName': 'F4', 'fieldType': 'NUMERIC' }, { 'fieldName': 'F5', 'fieldType': 'CATEGORICAL' }, { 'fieldName': 'F6', 'fieldType': 'TEXT' }, { 'fieldName': 'F7', 'fieldType': 'WEIGHTED_INT_SEQUENCE' }, { 'fieldName': 'F8', 'fieldType': 'WEIGHTED_STRING_SEQUENCE' } ],\n'excludedVariableNames': [ 'F6' ] }\n\nDataSchemaUri (string) --The Amazon S3 location of the DataSchema .\n\nResourceRole (string) -- [REQUIRED]The role (DataPipelineDefaultResourceRole) assumed by an Amazon Elastic Compute Cloud (Amazon EC2) instance to carry out the copy operation from Amazon RDS to an Amazon S3 task. For more information, see Role templates for data pipelines.\n\nServiceRole (string) -- [REQUIRED]The role (DataPipelineDefaultRole) assumed by AWS Data Pipeline service to monitor the progress of the copy task from Amazon RDS to Amazon S3. For more information, see Role templates for data pipelines.\n\nSubnetId (string) -- [REQUIRED]The subnet ID to be used to access a VPC-based RDS DB instance. This attribute is used by Data Pipeline to carry out the copy task from Amazon RDS to Amazon S3.\n\nSecurityGroupIds (list) -- [REQUIRED]The security group IDs to be used to access a VPC-based RDS DB instance. Ensure that there are appropriate ingress rules set up to allow access to the RDS DB instance. This attribute is used by Data Pipeline to carry out the copy operation from Amazon RDS to an Amazon S3 task.\n\n(string) --\n\n\n\n
:type RoleARN: string
:param RoleARN: [REQUIRED]\nThe role that Amazon ML assumes on behalf of the user to create and activate a data pipeline in the user\'s account and copy data using the SelectSqlQuery query from Amazon RDS to Amazon S3.\n
:type ComputeStatistics: boolean
:param ComputeStatistics: The compute statistics for a DataSource . The statistics are generated from the observation data referenced by a DataSource . Amazon ML uses the statistics internally during MLModel training. This parameter must be set to true if the DataSourceneeds to be used for MLModel training.
:rtype: dict
ReturnsResponse Syntax
{
'DataSourceId': 'string'
}
Response Structure
(dict) --
Represents the output of a CreateDataSourceFromRDS operation, and is an acknowledgement that Amazon ML received the request.
The CreateDataSourceFromRDS > operation is asynchronous. You can poll for updates by using the GetBatchPrediction operation and checking the Status parameter. You can inspect the Message when Status shows up as FAILED . You can also check the progress of the copy operation by going to the DataPipeline console and looking up the pipeline using the pipelineId from the describe call.
DataSourceId (string) --
A user-supplied ID that uniquely identifies the datasource. This value should be identical to the value of the DataSourceID in the request.
Exceptions
MachineLearning.Client.exceptions.InvalidInputException
MachineLearning.Client.exceptions.InternalServerException
MachineLearning.Client.exceptions.IdempotentParameterMismatchException
:return: {
'DataSourceId': 'string'
}
:returns:
MachineLearning.Client.exceptions.InvalidInputException
MachineLearning.Client.exceptions.InternalServerException
MachineLearning.Client.exceptions.IdempotentParameterMismatchException
"""
pass
def create_data_source_from_redshift(DataSourceId=None, DataSourceName=None, DataSpec=None, RoleARN=None, ComputeStatistics=None):
"""
Creates a DataSource from a database hosted on an Amazon Redshift cluster. A DataSource references data that can be used to perform either CreateMLModel , CreateEvaluation , or CreateBatchPrediction operations.
CreateDataSourceFromRedshift is an asynchronous operation. In response to CreateDataSourceFromRedshift , Amazon Machine Learning (Amazon ML) immediately returns and sets the DataSource status to PENDING . After the DataSource is created and ready for use, Amazon ML sets the Status parameter to COMPLETED . DataSource in COMPLETED or PENDING states can be used to perform only CreateMLModel , CreateEvaluation , or CreateBatchPrediction operations.
If Amazon ML can\'t accept the input source, it sets the Status parameter to FAILED and includes an error message in the Message attribute of the GetDataSource operation response.
The observations should be contained in the database hosted on an Amazon Redshift cluster and should be specified by a SelectSqlQuery query. Amazon ML executes an Unload command in Amazon Redshift to transfer the result set of the SelectSqlQuery query to S3StagingLocation .
After the DataSource has been created, it\'s ready for use in evaluations and batch predictions. If you plan to use the DataSource to train an MLModel , the DataSource also requires a recipe. A recipe describes how each input variable will be used in training an MLModel . Will the variable be included or excluded from training? Will the variable be manipulated; for example, will it be combined with another variable or will it be split apart into word combinations? The recipe provides answers to these questions.
You can\'t change an existing datasource, but you can copy and modify the settings from an existing Amazon Redshift datasource to create a new datasource. To do so, call GetDataSource for an existing datasource and copy the values to a CreateDataSource call. Change the settings that you want to change and make sure that all required fields have the appropriate values.
See also: AWS API Documentation
Exceptions
:example: response = client.create_data_source_from_redshift(
DataSourceId='string',
DataSourceName='string',
DataSpec={
'DatabaseInformation': {
'DatabaseName': 'string',
'ClusterIdentifier': 'string'
},
'SelectSqlQuery': 'string',
'DatabaseCredentials': {
'Username': 'string',
'Password': 'string'
},
'S3StagingLocation': 'string',
'DataRearrangement': 'string',
'DataSchema': 'string',
'DataSchemaUri': 'string'
},
RoleARN='string',
ComputeStatistics=True|False
)
:type DataSourceId: string
:param DataSourceId: [REQUIRED]\nA user-supplied ID that uniquely identifies the DataSource .\n
:type DataSourceName: string
:param DataSourceName: A user-supplied name or description of the DataSource .
:type DataSpec: dict
:param DataSpec: [REQUIRED]\nThe data specification of an Amazon Redshift DataSource :\n\nDatabaseInformation -\nDatabaseName - The name of the Amazon Redshift database.\nClusterIdentifier - The unique ID for the Amazon Redshift cluster.\n\n\nDatabaseCredentials - The AWS Identity and Access Management (IAM) credentials that are used to connect to the Amazon Redshift database.\nSelectSqlQuery - The query that is used to retrieve the observation data for the Datasource .\nS3StagingLocation - The Amazon Simple Storage Service (Amazon S3) location for staging Amazon Redshift data. The data retrieved from Amazon Redshift using the SelectSqlQuery query is stored in this location.\nDataSchemaUri - The Amazon S3 location of the DataSchema .\nDataSchema - A JSON string representing the schema. This is not required if DataSchemaUri is specified.\nDataRearrangement - A JSON string that represents the splitting and rearrangement requirements for the DataSource . Sample - '{\\'splitting\\':{\\'percentBegin\\':10,\\'percentEnd\\':60}}'\n\n\nDatabaseInformation (dict) -- [REQUIRED]Describes the DatabaseName and ClusterIdentifier for an Amazon Redshift DataSource .\n\nDatabaseName (string) -- [REQUIRED]The name of a database hosted on an Amazon Redshift cluster.\n\nClusterIdentifier (string) -- [REQUIRED]The ID of an Amazon Redshift cluster.\n\n\n\nSelectSqlQuery (string) -- [REQUIRED]Describes the SQL Query to execute on an Amazon Redshift database for an Amazon Redshift DataSource .\n\nDatabaseCredentials (dict) -- [REQUIRED]Describes AWS Identity and Access Management (IAM) credentials that are used connect to the Amazon Redshift database.\n\nUsername (string) -- [REQUIRED]A username to be used by Amazon Machine Learning (Amazon ML)to connect to a database on an Amazon Redshift cluster. The username should have sufficient permissions to execute the RedshiftSelectSqlQuery query. The username should be valid for an Amazon Redshift USER .\n\nPassword (string) -- [REQUIRED]A password to be used by Amazon ML to connect to a database on an Amazon Redshift cluster. The password should have sufficient permissions to execute a RedshiftSelectSqlQuery query. The password should be valid for an Amazon Redshift USER .\n\n\n\nS3StagingLocation (string) -- [REQUIRED]Describes an Amazon S3 location to store the result set of the SelectSqlQuery query.\n\nDataRearrangement (string) --A JSON string that represents the splitting and rearrangement processing to be applied to a DataSource . If the DataRearrangement parameter is not provided, all of the input data is used to create the Datasource .\nThere are multiple parameters that control what data is used to create a datasource:\n\n``percentBegin`` Use percentBegin to indicate the beginning of the range of the data used to create the Datasource. If you do not include percentBegin and percentEnd , Amazon ML includes all of the data when creating the datasource.\n``percentEnd`` Use percentEnd to indicate the end of the range of the data used to create the Datasource. If you do not include percentBegin and percentEnd , Amazon ML includes all of the data when creating the datasource.\n``complement`` The complement parameter instructs Amazon ML to use the data that is not included in the range of percentBegin to percentEnd to create a datasource. The complement parameter is useful if you need to create complementary datasources for training and evaluation. To create a complementary datasource, use the same values for percentBegin and percentEnd , along with the complement parameter. For example, the following two datasources do not share any data, and can be used to train and evaluate a model. The first datasource has 25 percent of the data, and the second one has 75 percent of the data. Datasource for evaluation: {'splitting':{'percentBegin':0, 'percentEnd':25}} Datasource for training: {'splitting':{'percentBegin':0, 'percentEnd':25, 'complement':'true'}}\n``strategy`` To change how Amazon ML splits the data for a datasource, use the strategy parameter. The default value for the strategy parameter is sequential , meaning that Amazon ML takes all of the data records between the percentBegin and percentEnd parameters for the datasource, in the order that the records appear in the input data. The following two DataRearrangement lines are examples of sequentially ordered training and evaluation datasources: Datasource for evaluation: {'splitting':{'percentBegin':70, 'percentEnd':100, 'strategy':'sequential'}} Datasource for training: {'splitting':{'percentBegin':70, 'percentEnd':100, 'strategy':'sequential', 'complement':'true'}} To randomly split the input data into the proportions indicated by the percentBegin and percentEnd parameters, set the strategy parameter to random and provide a string that is used as the seed value for the random data splitting (for example, you can use the S3 path to your data as the random seed string). If you choose the random split strategy, Amazon ML assigns each row of data a pseudo-random number between 0 and 100, and then selects the rows that have an assigned number between percentBegin and percentEnd . Pseudo-random numbers are assigned using both the input seed string value and the byte offset as a seed, so changing the data results in a different split. Any existing ordering is preserved. The random splitting strategy ensures that variables in the training and evaluation data are distributed similarly. It is useful in the cases where the input data may have an implicit sort order, which would otherwise result in training and evaluation datasources containing non-similar data records. The following two DataRearrangement lines are examples of non-sequentially ordered training and evaluation datasources: Datasource for evaluation: {'splitting':{'percentBegin':70, 'percentEnd':100, 'strategy':'random', 'randomSeed'='s3://my_s3_path/bucket/file.csv'}} Datasource for training: {'splitting':{'percentBegin':70, 'percentEnd':100, 'strategy':'random', 'randomSeed'='s3://my_s3_path/bucket/file.csv', 'complement':'true'}}\n\n\nDataSchema (string) --A JSON string that represents the schema for an Amazon Redshift DataSource . The DataSchema defines the structure of the observation data in the data file(s) referenced in the DataSource .\nA DataSchema is not required if you specify a DataSchemaUri .\nDefine your DataSchema as a series of key-value pairs. attributes and excludedVariableNames have an array of key-value pairs for their value. Use the following format to define your DataSchema .\n{ 'version': '1.0',\n'recordAnnotationFieldName': 'F1',\n'recordWeightFieldName': 'F2',\n'targetFieldName': 'F3',\n'dataFormat': 'CSV',\n'dataFileContainsHeader': true,\n'attributes': [\n{ 'fieldName': 'F1', 'fieldType': 'TEXT' }, { 'fieldName': 'F2', 'fieldType': 'NUMERIC' }, { 'fieldName': 'F3', 'fieldType': 'CATEGORICAL' }, { 'fieldName': 'F4', 'fieldType': 'NUMERIC' }, { 'fieldName': 'F5', 'fieldType': 'CATEGORICAL' }, { 'fieldName': 'F6', 'fieldType': 'TEXT' }, { 'fieldName': 'F7', 'fieldType': 'WEIGHTED_INT_SEQUENCE' }, { 'fieldName': 'F8', 'fieldType': 'WEIGHTED_STRING_SEQUENCE' } ],\n'excludedVariableNames': [ 'F6' ] }\n\nDataSchemaUri (string) --Describes the schema location for an Amazon Redshift DataSource .\n\n\n
:type RoleARN: string
:param RoleARN: [REQUIRED]\nA fully specified role Amazon Resource Name (ARN). Amazon ML assumes the role on behalf of the user to create the following:\n\nA security group to allow Amazon ML to execute the SelectSqlQuery query on an Amazon Redshift cluster\nAn Amazon S3 bucket policy to grant Amazon ML read/write permissions on the S3StagingLocation\n\n
:type ComputeStatistics: boolean
:param ComputeStatistics: The compute statistics for a DataSource . The statistics are generated from the observation data referenced by a DataSource . Amazon ML uses the statistics internally during MLModel training. This parameter must be set to true if the DataSource needs to be used for MLModel training.
:rtype: dict
ReturnsResponse Syntax
{
'DataSourceId': 'string'
}
Response Structure
(dict) --
Represents the output of a CreateDataSourceFromRedshift operation, and is an acknowledgement that Amazon ML received the request.
The CreateDataSourceFromRedshift operation is asynchronous. You can poll for updates by using the GetBatchPrediction operation and checking the Status parameter.
DataSourceId (string) --
A user-supplied ID that uniquely identifies the datasource. This value should be identical to the value of the DataSourceID in the request.
Exceptions
MachineLearning.Client.exceptions.InvalidInputException
MachineLearning.Client.exceptions.InternalServerException
MachineLearning.Client.exceptions.IdempotentParameterMismatchException
:return: {
'DataSourceId': 'string'
}
:returns:
MachineLearning.Client.exceptions.InvalidInputException
MachineLearning.Client.exceptions.InternalServerException
MachineLearning.Client.exceptions.IdempotentParameterMismatchException
"""
pass
def create_data_source_from_s3(DataSourceId=None, DataSourceName=None, DataSpec=None, ComputeStatistics=None):
"""
Creates a DataSource object. A DataSource references data that can be used to perform CreateMLModel , CreateEvaluation , or CreateBatchPrediction operations.
CreateDataSourceFromS3 is an asynchronous operation. In response to CreateDataSourceFromS3 , Amazon Machine Learning (Amazon ML) immediately returns and sets the DataSource status to PENDING . After the DataSource has been created and is ready for use, Amazon ML sets the Status parameter to COMPLETED . DataSource in the COMPLETED or PENDING state can be used to perform only CreateMLModel , CreateEvaluation or CreateBatchPrediction operations.
If Amazon ML can\'t accept the input source, it sets the Status parameter to FAILED and includes an error message in the Message attribute of the GetDataSource operation response.
The observation data used in a DataSource should be ready to use; that is, it should have a consistent structure, and missing data values should be kept to a minimum. The observation data must reside in one or more .csv files in an Amazon Simple Storage Service (Amazon S3) location, along with a schema that describes the data items by name and type. The same schema must be used for all of the data files referenced by the DataSource .
After the DataSource has been created, it\'s ready to use in evaluations and batch predictions. If you plan to use the DataSource to train an MLModel , the DataSource also needs a recipe. A recipe describes how each input variable will be used in training an MLModel . Will the variable be included or excluded from training? Will the variable be manipulated; for example, will it be combined with another variable or will it be split apart into word combinations? The recipe provides answers to these questions.
See also: AWS API Documentation
Exceptions
:example: response = client.create_data_source_from_s3(
DataSourceId='string',
DataSourceName='string',
DataSpec={
'DataLocationS3': 'string',
'DataRearrangement': 'string',
'DataSchema': 'string',
'DataSchemaLocationS3': 'string'
},
ComputeStatistics=True|False
)
:type DataSourceId: string
:param DataSourceId: [REQUIRED]\nA user-supplied identifier that uniquely identifies the DataSource .\n
:type DataSourceName: string
:param DataSourceName: A user-supplied name or description of the DataSource .
:type DataSpec: dict
:param DataSpec: [REQUIRED]\nThe data specification of a DataSource :\n\nDataLocationS3 - The Amazon S3 location of the observation data.\nDataSchemaLocationS3 - The Amazon S3 location of the DataSchema .\nDataSchema - A JSON string representing the schema. This is not required if DataSchemaUri is specified.\nDataRearrangement - A JSON string that represents the splitting and rearrangement requirements for the Datasource . Sample - '{\\'splitting\\':{\\'percentBegin\\':10,\\'percentEnd\\':60}}'\n\n\nDataLocationS3 (string) -- [REQUIRED]The location of the data file(s) used by a DataSource . The URI specifies a data file or an Amazon Simple Storage Service (Amazon S3) directory or bucket containing data files.\n\nDataRearrangement (string) --A JSON string that represents the splitting and rearrangement processing to be applied to a DataSource . If the DataRearrangement parameter is not provided, all of the input data is used to create the Datasource .\nThere are multiple parameters that control what data is used to create a datasource:\n\n``percentBegin`` Use percentBegin to indicate the beginning of the range of the data used to create the Datasource. If you do not include percentBegin and percentEnd , Amazon ML includes all of the data when creating the datasource.\n``percentEnd`` Use percentEnd to indicate the end of the range of the data used to create the Datasource. If you do not include percentBegin and percentEnd , Amazon ML includes all of the data when creating the datasource.\n``complement`` The complement parameter instructs Amazon ML to use the data that is not included in the range of percentBegin to percentEnd to create a datasource. The complement parameter is useful if you need to create complementary datasources for training and evaluation. To create a complementary datasource, use the same values for percentBegin and percentEnd , along with the complement parameter. For example, the following two datasources do not share any data, and can be used to train and evaluate a model. The first datasource has 25 percent of the data, and the second one has 75 percent of the data. Datasource for evaluation: {'splitting':{'percentBegin':0, 'percentEnd':25}} Datasource for training: {'splitting':{'percentBegin':0, 'percentEnd':25, 'complement':'true'}}\n``strategy`` To change how Amazon ML splits the data for a datasource, use the strategy parameter. The default value for the strategy parameter is sequential , meaning that Amazon ML takes all of the data records between the percentBegin and percentEnd parameters for the datasource, in the order that the records appear in the input data. The following two DataRearrangement lines are examples of sequentially ordered training and evaluation datasources: Datasource for evaluation: {'splitting':{'percentBegin':70, 'percentEnd':100, 'strategy':'sequential'}} Datasource for training: {'splitting':{'percentBegin':70, 'percentEnd':100, 'strategy':'sequential', 'complement':'true'}} To randomly split the input data into the proportions indicated by the percentBegin and percentEnd parameters, set the strategy parameter to random and provide a string that is used as the seed value for the random data splitting (for example, you can use the S3 path to your data as the random seed string). If you choose the random split strategy, Amazon ML assigns each row of data a pseudo-random number between 0 and 100, and then selects the rows that have an assigned number between percentBegin and percentEnd . Pseudo-random numbers are assigned using both the input seed string value and the byte offset as a seed, so changing the data results in a different split. Any existing ordering is preserved. The random splitting strategy ensures that variables in the training and evaluation data are distributed similarly. It is useful in the cases where the input data may have an implicit sort order, which would otherwise result in training and evaluation datasources containing non-similar data records. The following two DataRearrangement lines are examples of non-sequentially ordered training and evaluation datasources: Datasource for evaluation: {'splitting':{'percentBegin':70, 'percentEnd':100, 'strategy':'random', 'randomSeed'='s3://my_s3_path/bucket/file.csv'}} Datasource for training: {'splitting':{'percentBegin':70, 'percentEnd':100, 'strategy':'random', 'randomSeed'='s3://my_s3_path/bucket/file.csv', 'complement':'true'}}\n\n\nDataSchema (string) --A JSON string that represents the schema for an Amazon S3 DataSource . The DataSchema defines the structure of the observation data in the data file(s) referenced in the DataSource .\nYou must provide either the DataSchema or the DataSchemaLocationS3 .\nDefine your DataSchema as a series of key-value pairs. attributes and excludedVariableNames have an array of key-value pairs for their value. Use the following format to define your DataSchema .\n{ 'version': '1.0',\n'recordAnnotationFieldName': 'F1',\n'recordWeightFieldName': 'F2',\n'targetFieldName': 'F3',\n'dataFormat': 'CSV',\n'dataFileContainsHeader': true,\n'attributes': [\n{ 'fieldName': 'F1', 'fieldType': 'TEXT' }, { 'fieldName': 'F2', 'fieldType': 'NUMERIC' }, { 'fieldName': 'F3', 'fieldType': 'CATEGORICAL' }, { 'fieldName': 'F4', 'fieldType': 'NUMERIC' }, { 'fieldName': 'F5', 'fieldType': 'CATEGORICAL' }, { 'fieldName': 'F6', 'fieldType': 'TEXT' }, { 'fieldName': 'F7', 'fieldType': 'WEIGHTED_INT_SEQUENCE' }, { 'fieldName': 'F8', 'fieldType': 'WEIGHTED_STRING_SEQUENCE' } ],\n'excludedVariableNames': [ 'F6' ] }\n\nDataSchemaLocationS3 (string) --Describes the schema location in Amazon S3. You must provide either the DataSchema or the DataSchemaLocationS3 .\n\n\n
:type ComputeStatistics: boolean
:param ComputeStatistics: The compute statistics for a DataSource . The statistics are generated from the observation data referenced by a DataSource . Amazon ML uses the statistics internally during MLModel training. This parameter must be set to true if the DataSourceneeds to be used for MLModel training.
:rtype: dict
ReturnsResponse Syntax
{
'DataSourceId': 'string'
}
Response Structure
(dict) --
Represents the output of a CreateDataSourceFromS3 operation, and is an acknowledgement that Amazon ML received the request.
The CreateDataSourceFromS3 operation is asynchronous. You can poll for updates by using the GetBatchPrediction operation and checking the Status parameter.
DataSourceId (string) --
A user-supplied ID that uniquely identifies the DataSource . This value should be identical to the value of the DataSourceID in the request.
Exceptions
MachineLearning.Client.exceptions.InvalidInputException
MachineLearning.Client.exceptions.InternalServerException
MachineLearning.Client.exceptions.IdempotentParameterMismatchException
:return: {
'DataSourceId': 'string'
}
:returns:
MachineLearning.Client.exceptions.InvalidInputException
MachineLearning.Client.exceptions.InternalServerException
MachineLearning.Client.exceptions.IdempotentParameterMismatchException
"""
pass
def create_evaluation(EvaluationId=None, EvaluationName=None, MLModelId=None, EvaluationDataSourceId=None):
"""
Creates a new Evaluation of an MLModel . An MLModel is evaluated on a set of observations associated to a DataSource . Like a DataSource for an MLModel , the DataSource for an Evaluation contains values for the Target Variable . The Evaluation compares the predicted result for each observation to the actual outcome and provides a summary so that you know how effective the MLModel functions on the test data. Evaluation generates a relevant performance metric, such as BinaryAUC, RegressionRMSE or MulticlassAvgFScore based on the corresponding MLModelType : BINARY , REGRESSION or MULTICLASS .
CreateEvaluation is an asynchronous operation. In response to CreateEvaluation , Amazon Machine Learning (Amazon ML) immediately returns and sets the evaluation status to PENDING . After the Evaluation is created and ready for use, Amazon ML sets the status to COMPLETED .
You can use the GetEvaluation operation to check progress of the evaluation during the creation operation.
See also: AWS API Documentation
Exceptions
:example: response = client.create_evaluation(
EvaluationId='string',
EvaluationName='string',
MLModelId='string',
EvaluationDataSourceId='string'
)
:type EvaluationId: string
:param EvaluationId: [REQUIRED]\nA user-supplied ID that uniquely identifies the Evaluation .\n
:type EvaluationName: string
:param EvaluationName: A user-supplied name or description of the Evaluation .
:type MLModelId: string
:param MLModelId: [REQUIRED]\nThe ID of the MLModel to evaluate.\nThe schema used in creating the MLModel must match the schema of the DataSource used in the Evaluation .\n
:type EvaluationDataSourceId: string
:param EvaluationDataSourceId: [REQUIRED]\nThe ID of the DataSource for the evaluation. The schema of the DataSource must match the schema used to create the MLModel .\n
:rtype: dict
ReturnsResponse Syntax
{
'EvaluationId': 'string'
}
Response Structure
(dict) --
Represents the output of a CreateEvaluation operation, and is an acknowledgement that Amazon ML received the request.
CreateEvaluation operation is asynchronous. You can poll for status updates by using the GetEvcaluation operation and checking the Status parameter.
EvaluationId (string) --
The user-supplied ID that uniquely identifies the Evaluation . This value should be identical to the value of the EvaluationId in the request.
Exceptions
MachineLearning.Client.exceptions.InvalidInputException
MachineLearning.Client.exceptions.InternalServerException
MachineLearning.Client.exceptions.IdempotentParameterMismatchException
:return: {
'EvaluationId': 'string'
}
:returns:
MachineLearning.Client.exceptions.InvalidInputException
MachineLearning.Client.exceptions.InternalServerException
MachineLearning.Client.exceptions.IdempotentParameterMismatchException
"""
pass
def create_ml_model(MLModelId=None, MLModelName=None, MLModelType=None, Parameters=None, TrainingDataSourceId=None, Recipe=None, RecipeUri=None):
"""
Creates a new MLModel using the DataSource and the recipe as information sources.
An MLModel is nearly immutable. Users can update only the MLModelName and the ScoreThreshold in an MLModel without creating a new MLModel .
CreateMLModel is an asynchronous operation. In response to CreateMLModel , Amazon Machine Learning (Amazon ML) immediately returns and sets the MLModel status to PENDING . After the MLModel has been created and ready is for use, Amazon ML sets the status to COMPLETED .
You can use the GetMLModel operation to check the progress of the MLModel during the creation operation.
See also: AWS API Documentation
Exceptions
:example: response = client.create_ml_model(
MLModelId='string',
MLModelName='string',
MLModelType='REGRESSION'|'BINARY'|'MULTICLASS',
Parameters={
'string': 'string'
},
TrainingDataSourceId='string',
Recipe='string',
RecipeUri='string'
)
:type MLModelId: string
:param MLModelId: [REQUIRED]\nA user-supplied ID that uniquely identifies the MLModel .\n
:type MLModelName: string
:param MLModelName: A user-supplied name or description of the MLModel .
:type MLModelType: string
:param MLModelType: [REQUIRED]\nThe category of supervised learning that this MLModel will address. Choose from the following types:\n\nChoose REGRESSION if the MLModel will be used to predict a numeric value.\nChoose BINARY if the MLModel result has two possible values.\nChoose MULTICLASS if the MLModel result has a limited number of values.\n\nFor more information, see the Amazon Machine Learning Developer Guide .\n
:type Parameters: dict
:param Parameters: A list of the training parameters in the MLModel . The list is implemented as a map of key-value pairs.\nThe following is the current set of training parameters:\n\nsgd.maxMLModelSizeInBytes - The maximum allowed size of the model. Depending on the input data, the size of the model might affect its performance. The value is an integer that ranges from 100000 to 2147483648 . The default value is 33554432 .\nsgd.maxPasses - The number of times that the training process traverses the observations to build the MLModel . The value is an integer that ranges from 1 to 10000 . The default value is 10 .\nsgd.shuffleType - Whether Amazon ML shuffles the training data. Shuffling the data improves a model\'s ability to find the optimal solution for a variety of data types. The valid values are auto and none . The default value is none . We strongly recommend that you shuffle your data.\nsgd.l1RegularizationAmount - The coefficient regularization L1 norm. It controls overfitting the data by penalizing large coefficients. This tends to drive coefficients to zero, resulting in a sparse feature set. If you use this parameter, start by specifying a small value, such as 1.0E-08 . The value is a double that ranges from 0 to MAX_DOUBLE . The default is to not use L1 normalization. This parameter can\'t be used when L2 is specified. Use this parameter sparingly.\nsgd.l2RegularizationAmount - The coefficient regularization L2 norm. It controls overfitting the data by penalizing large coefficients. This tends to drive coefficients to small, nonzero values. If you use this parameter, start by specifying a small value, such as 1.0E-08 . The value is a double that ranges from 0 to MAX_DOUBLE . The default is to not use L2 normalization. This parameter can\'t be used when L1 is specified. Use this parameter sparingly.\n\n\n(string) --String type.\n\n(string) --String type.\n\n\n\n\n
:type TrainingDataSourceId: string
:param TrainingDataSourceId: [REQUIRED]\nThe DataSource that points to the training data.\n
:type Recipe: string
:param Recipe: The data recipe for creating the MLModel . You must specify either the recipe or its URI. If you don\'t specify a recipe or its URI, Amazon ML creates a default.
:type RecipeUri: string
:param RecipeUri: The Amazon Simple Storage Service (Amazon S3) location and file name that contains the MLModel recipe. You must specify either the recipe or its URI. If you don\'t specify a recipe or its URI, Amazon ML creates a default.
:rtype: dict
ReturnsResponse Syntax
{
'MLModelId': 'string'
}
Response Structure
(dict) --
Represents the output of a CreateMLModel operation, and is an acknowledgement that Amazon ML received the request.
The CreateMLModel operation is asynchronous. You can poll for status updates by using the GetMLModel operation and checking the Status parameter.
MLModelId (string) --
A user-supplied ID that uniquely identifies the MLModel . This value should be identical to the value of the MLModelId in the request.
Exceptions
MachineLearning.Client.exceptions.InvalidInputException
MachineLearning.Client.exceptions.InternalServerException
MachineLearning.Client.exceptions.IdempotentParameterMismatchException
:return: {
'MLModelId': 'string'
}
:returns:
MachineLearning.Client.exceptions.InvalidInputException
MachineLearning.Client.exceptions.InternalServerException
MachineLearning.Client.exceptions.IdempotentParameterMismatchException
"""
pass
def create_realtime_endpoint(MLModelId=None):
"""
Creates a real-time endpoint for the MLModel . The endpoint contains the URI of the MLModel ; that is, the location to send real-time prediction requests for the specified MLModel .
See also: AWS API Documentation
Exceptions
:example: response = client.create_realtime_endpoint(
MLModelId='string'
)
:type MLModelId: string
:param MLModelId: [REQUIRED]\nThe ID assigned to the MLModel during creation.\n
:rtype: dict
ReturnsResponse Syntax{
'MLModelId': 'string',
'RealtimeEndpointInfo': {
'PeakRequestsPerSecond': 123,
'CreatedAt': datetime(2015, 1, 1),
'EndpointUrl': 'string',
'EndpointStatus': 'NONE'|'READY'|'UPDATING'|'FAILED'
}
}
Response Structure
(dict) --Represents the output of an CreateRealtimeEndpoint operation.
The result contains the MLModelId and the endpoint information for the MLModel .
Note
The endpoint information includes the URI of the MLModel ; that is, the location to send online prediction requests for the specified MLModel .
MLModelId (string) --A user-supplied ID that uniquely identifies the MLModel . This value should be identical to the value of the MLModelId in the request.
RealtimeEndpointInfo (dict) --The endpoint information of the MLModel
PeakRequestsPerSecond (integer) --The maximum processing rate for the real-time endpoint for MLModel , measured in incoming requests per second.
CreatedAt (datetime) --The time that the request to create the real-time endpoint for the MLModel was received. The time is expressed in epoch time.
EndpointUrl (string) --The URI that specifies where to send real-time prediction requests for the MLModel .
Note
Note
The application must wait until the real-time endpoint is ready before using this URI.
EndpointStatus (string) --The current status of the real-time endpoint for the MLModel . This element can have one of the following values:
NONE - Endpoint does not exist or was previously deleted.
READY - Endpoint is ready to be used for real-time predictions.
UPDATING - Updating/creating the endpoint.
Exceptions
MachineLearning.Client.exceptions.InvalidInputException
MachineLearning.Client.exceptions.ResourceNotFoundException
MachineLearning.Client.exceptions.InternalServerException
:return: {
'MLModelId': 'string',
'RealtimeEndpointInfo': {
'PeakRequestsPerSecond': 123,
'CreatedAt': datetime(2015, 1, 1),
'EndpointUrl': 'string',
'EndpointStatus': 'NONE'|'READY'|'UPDATING'|'FAILED'
}
}
:returns:
MachineLearning.Client.exceptions.InvalidInputException
MachineLearning.Client.exceptions.ResourceNotFoundException
MachineLearning.Client.exceptions.InternalServerException
"""
pass
def delete_batch_prediction(BatchPredictionId=None):
"""
Assigns the DELETED status to a BatchPrediction , rendering it unusable.
After using the DeleteBatchPrediction operation, you can use the GetBatchPrediction operation to verify that the status of the BatchPrediction changed to DELETED.
Caution: The result of the DeleteBatchPrediction operation is irreversible.
See also: AWS API Documentation
Exceptions
:example: response = client.delete_batch_prediction(
BatchPredictionId='string'
)
:type BatchPredictionId: string
:param BatchPredictionId: [REQUIRED]\nA user-supplied ID that uniquely identifies the BatchPrediction .\n
:rtype: dict
ReturnsResponse Syntax{
'BatchPredictionId': 'string'
}
Response Structure
(dict) --Represents the output of a DeleteBatchPrediction operation.
You can use the GetBatchPrediction operation and check the value of the Status parameter to see whether a BatchPrediction is marked as DELETED .
BatchPredictionId (string) --A user-supplied ID that uniquely identifies the BatchPrediction . This value should be identical to the value of the BatchPredictionID in the request.
Exceptions
MachineLearning.Client.exceptions.InvalidInputException
MachineLearning.Client.exceptions.ResourceNotFoundException
MachineLearning.Client.exceptions.InternalServerException
:return: {
'BatchPredictionId': 'string'
}
"""
pass
def delete_data_source(DataSourceId=None):
"""
Assigns the DELETED status to a DataSource , rendering it unusable.
After using the DeleteDataSource operation, you can use the GetDataSource operation to verify that the status of the DataSource changed to DELETED.
Caution: The results of the DeleteDataSource operation are irreversible.
See also: AWS API Documentation
Exceptions
:example: response = client.delete_data_source(
DataSourceId='string'
)
:type DataSourceId: string
:param DataSourceId: [REQUIRED]\nA user-supplied ID that uniquely identifies the DataSource .\n
:rtype: dict
ReturnsResponse Syntax{
'DataSourceId': 'string'
}
Response Structure
(dict) --Represents the output of a DeleteDataSource operation.
DataSourceId (string) --A user-supplied ID that uniquely identifies the DataSource . This value should be identical to the value of the DataSourceID in the request.
Exceptions
MachineLearning.Client.exceptions.InvalidInputException
MachineLearning.Client.exceptions.ResourceNotFoundException
MachineLearning.Client.exceptions.InternalServerException
:return: {
'DataSourceId': 'string'
}
"""
pass
def delete_evaluation(EvaluationId=None):
"""
Assigns the DELETED status to an Evaluation , rendering it unusable.
After invoking the DeleteEvaluation operation, you can use the GetEvaluation operation to verify that the status of the Evaluation changed to DELETED .
The results of the DeleteEvaluation operation are irreversible.
See also: AWS API Documentation
Exceptions
:example: response = client.delete_evaluation(
EvaluationId='string'
)
:type EvaluationId: string
:param EvaluationId: [REQUIRED]\nA user-supplied ID that uniquely identifies the Evaluation to delete.\n
:rtype: dict
ReturnsResponse Syntax{
'EvaluationId': 'string'
}
Response Structure
(dict) --Represents the output of a DeleteEvaluation operation. The output indicates that Amazon Machine Learning (Amazon ML) received the request.
You can use the GetEvaluation operation and check the value of the Status parameter to see whether an Evaluation is marked as DELETED .
EvaluationId (string) --A user-supplied ID that uniquely identifies the Evaluation . This value should be identical to the value of the EvaluationId in the request.
Exceptions
MachineLearning.Client.exceptions.InvalidInputException
MachineLearning.Client.exceptions.ResourceNotFoundException
MachineLearning.Client.exceptions.InternalServerException
:return: {
'EvaluationId': 'string'
}
"""
pass
def delete_ml_model(MLModelId=None):
"""
Assigns the DELETED status to an MLModel , rendering it unusable.
After using the DeleteMLModel operation, you can use the GetMLModel operation to verify that the status of the MLModel changed to DELETED.
Caution: The result of the DeleteMLModel operation is irreversible.
See also: AWS API Documentation
Exceptions
:example: response = client.delete_ml_model(
MLModelId='string'
)
:type MLModelId: string
:param MLModelId: [REQUIRED]\nA user-supplied ID that uniquely identifies the MLModel .\n
:rtype: dict
ReturnsResponse Syntax{
'MLModelId': 'string'
}
Response Structure
(dict) --Represents the output of a DeleteMLModel operation.
You can use the GetMLModel operation and check the value of the Status parameter to see whether an MLModel is marked as DELETED .
MLModelId (string) --A user-supplied ID that uniquely identifies the MLModel . This value should be identical to the value of the MLModelID in the request.
Exceptions
MachineLearning.Client.exceptions.InvalidInputException
MachineLearning.Client.exceptions.ResourceNotFoundException
MachineLearning.Client.exceptions.InternalServerException
:return: {
'MLModelId': 'string'
}
"""
pass
def delete_realtime_endpoint(MLModelId=None):
"""
Deletes a real time endpoint of an MLModel .
See also: AWS API Documentation
Exceptions
:example: response = client.delete_realtime_endpoint(
MLModelId='string'
)
:type MLModelId: string
:param MLModelId: [REQUIRED]\nThe ID assigned to the MLModel during creation.\n
:rtype: dict
ReturnsResponse Syntax{
'MLModelId': 'string',
'RealtimeEndpointInfo': {
'PeakRequestsPerSecond': 123,
'CreatedAt': datetime(2015, 1, 1),
'EndpointUrl': 'string',
'EndpointStatus': 'NONE'|'READY'|'UPDATING'|'FAILED'
}
}
Response Structure
(dict) --Represents the output of an DeleteRealtimeEndpoint operation.
The result contains the MLModelId and the endpoint information for the MLModel .
MLModelId (string) --A user-supplied ID that uniquely identifies the MLModel . This value should be identical to the value of the MLModelId in the request.
RealtimeEndpointInfo (dict) --The endpoint information of the MLModel
PeakRequestsPerSecond (integer) --The maximum processing rate for the real-time endpoint for MLModel , measured in incoming requests per second.
CreatedAt (datetime) --The time that the request to create the real-time endpoint for the MLModel was received. The time is expressed in epoch time.
EndpointUrl (string) --The URI that specifies where to send real-time prediction requests for the MLModel .
Note
Note
The application must wait until the real-time endpoint is ready before using this URI.
EndpointStatus (string) --The current status of the real-time endpoint for the MLModel . This element can have one of the following values:
NONE - Endpoint does not exist or was previously deleted.
READY - Endpoint is ready to be used for real-time predictions.
UPDATING - Updating/creating the endpoint.
Exceptions
MachineLearning.Client.exceptions.InvalidInputException
MachineLearning.Client.exceptions.ResourceNotFoundException
MachineLearning.Client.exceptions.InternalServerException
:return: {
'MLModelId': 'string',
'RealtimeEndpointInfo': {
'PeakRequestsPerSecond': 123,
'CreatedAt': datetime(2015, 1, 1),
'EndpointUrl': 'string',
'EndpointStatus': 'NONE'|'READY'|'UPDATING'|'FAILED'
}
}
:returns:
MachineLearning.Client.exceptions.InvalidInputException
MachineLearning.Client.exceptions.ResourceNotFoundException
MachineLearning.Client.exceptions.InternalServerException
"""
pass
def delete_tags(TagKeys=None, ResourceId=None, ResourceType=None):
"""
Deletes the specified tags associated with an ML object. After this operation is complete, you can\'t recover deleted tags.
If you specify a tag that doesn\'t exist, Amazon ML ignores it.
See also: AWS API Documentation
Exceptions
:example: response = client.delete_tags(
TagKeys=[
'string',
],
ResourceId='string',
ResourceType='BatchPrediction'|'DataSource'|'Evaluation'|'MLModel'
)
:type TagKeys: list
:param TagKeys: [REQUIRED]\nOne or more tags to delete.\n\n(string) --\n\n
:type ResourceId: string
:param ResourceId: [REQUIRED]\nThe ID of the tagged ML object. For example, exampleModelId .\n
:type ResourceType: string
:param ResourceType: [REQUIRED]\nThe type of the tagged ML object.\n
:rtype: dict
ReturnsResponse Syntax
{
'ResourceId': 'string',
'ResourceType': 'BatchPrediction'|'DataSource'|'Evaluation'|'MLModel'
}
Response Structure
(dict) --
Amazon ML returns the following elements.
ResourceId (string) --
The ID of the ML object from which tags were deleted.
ResourceType (string) --
The type of the ML object from which tags were deleted.
Exceptions
MachineLearning.Client.exceptions.InvalidInputException
MachineLearning.Client.exceptions.InvalidTagException
MachineLearning.Client.exceptions.ResourceNotFoundException
MachineLearning.Client.exceptions.InternalServerException
:return: {
'ResourceId': 'string',
'ResourceType': 'BatchPrediction'|'DataSource'|'Evaluation'|'MLModel'
}
:returns:
MachineLearning.Client.exceptions.InvalidInputException
MachineLearning.Client.exceptions.InvalidTagException
MachineLearning.Client.exceptions.ResourceNotFoundException
MachineLearning.Client.exceptions.InternalServerException
"""
pass
def describe_batch_predictions(FilterVariable=None, EQ=None, GT=None, LT=None, GE=None, LE=None, NE=None, Prefix=None, SortOrder=None, NextToken=None, Limit=None):
"""
Returns a list of BatchPrediction operations that match the search criteria in the request.
See also: AWS API Documentation
Exceptions
:example: response = client.describe_batch_predictions(
FilterVariable='CreatedAt'|'LastUpdatedAt'|'Status'|'Name'|'IAMUser'|'MLModelId'|'DataSourceId'|'DataURI',
EQ='string',
GT='string',
LT='string',
GE='string',
LE='string',
NE='string',
Prefix='string',
SortOrder='asc'|'dsc',
NextToken='string',
Limit=123
)
:type FilterVariable: string
:param FilterVariable: Use one of the following variables to filter a list of BatchPrediction :\n\nCreatedAt - Sets the search criteria to the BatchPrediction creation date.\nStatus - Sets the search criteria to the BatchPrediction status.\nName - Sets the search criteria to the contents of the BatchPrediction **** Name .\nIAMUser - Sets the search criteria to the user account that invoked the BatchPrediction creation.\nMLModelId - Sets the search criteria to the MLModel used in the BatchPrediction .\nDataSourceId - Sets the search criteria to the DataSource used in the BatchPrediction .\nDataURI - Sets the search criteria to the data file(s) used in the BatchPrediction . The URL can identify either a file or an Amazon Simple Storage Solution (Amazon S3) bucket or directory.\n\n
:type EQ: string
:param EQ: The equal to operator. The BatchPrediction results will have FilterVariable values that exactly match the value specified with EQ .
:type GT: string
:param GT: The greater than operator. The BatchPrediction results will have FilterVariable values that are greater than the value specified with GT .
:type LT: string
:param LT: The less than operator. The BatchPrediction results will have FilterVariable values that are less than the value specified with LT .
:type GE: string
:param GE: The greater than or equal to operator. The BatchPrediction results will have FilterVariable values that are greater than or equal to the value specified with GE .
:type LE: string
:param LE: The less than or equal to operator. The BatchPrediction results will have FilterVariable values that are less than or equal to the value specified with LE .
:type NE: string
:param NE: The not equal to operator. The BatchPrediction results will have FilterVariable values not equal to the value specified with NE .
:type Prefix: string
:param Prefix: A string that is found at the beginning of a variable, such as Name or Id .\nFor example, a Batch Prediction operation could have the Name 2014-09-09-HolidayGiftMailer . To search for this BatchPrediction , select Name for the FilterVariable and any of the following strings for the Prefix :\n\n2014-09\n2014-09-09\n2014-09-09-Holiday\n\n
:type SortOrder: string
:param SortOrder: A two-value parameter that determines the sequence of the resulting list of MLModel s.\n\nasc - Arranges the list in ascending order (A-Z, 0-9).\ndsc - Arranges the list in descending order (Z-A, 9-0).\n\nResults are sorted by FilterVariable .\n
:type NextToken: string
:param NextToken: An ID of the page in the paginated results.
:type Limit: integer
:param Limit: The number of pages of information to include in the result. The range of acceptable values is 1 through 100 . The default value is 100 .
:rtype: dict
ReturnsResponse Syntax
{
'Results': [
{
'BatchPredictionId': 'string',
'MLModelId': 'string',
'BatchPredictionDataSourceId': 'string',
'InputDataLocationS3': 'string',
'CreatedByIamUser': 'string',
'CreatedAt': datetime(2015, 1, 1),
'LastUpdatedAt': datetime(2015, 1, 1),
'Name': 'string',
'Status': 'PENDING'|'INPROGRESS'|'FAILED'|'COMPLETED'|'DELETED',
'OutputUri': 'string',
'Message': 'string',
'ComputeTime': 123,
'FinishedAt': datetime(2015, 1, 1),
'StartedAt': datetime(2015, 1, 1),
'TotalRecordCount': 123,
'InvalidRecordCount': 123
},
],
'NextToken': 'string'
}
Response Structure
(dict) --
Represents the output of a DescribeBatchPredictions operation. The content is essentially a list of BatchPrediction s.
Results (list) --
A list of BatchPrediction objects that meet the search criteria.
(dict) --
Represents the output of a GetBatchPrediction operation.
The content consists of the detailed metadata, the status, and the data file information of a Batch Prediction .
BatchPredictionId (string) --
The ID assigned to the BatchPrediction at creation. This value should be identical to the value of the BatchPredictionID in the request.
MLModelId (string) --
The ID of the MLModel that generated predictions for the BatchPrediction request.
BatchPredictionDataSourceId (string) --
The ID of the DataSource that points to the group of observations to predict.
InputDataLocationS3 (string) --
The location of the data file or directory in Amazon Simple Storage Service (Amazon S3).
CreatedByIamUser (string) --
The AWS user account that invoked the BatchPrediction . The account type can be either an AWS root account or an AWS Identity and Access Management (IAM) user account.
CreatedAt (datetime) --
The time that the BatchPrediction was created. The time is expressed in epoch time.
LastUpdatedAt (datetime) --
The time of the most recent edit to the BatchPrediction . The time is expressed in epoch time.
Name (string) --
A user-supplied name or description of the BatchPrediction .
Status (string) --
The status of the BatchPrediction . This element can have one of the following values:
PENDING - Amazon Machine Learning (Amazon ML) submitted a request to generate predictions for a batch of observations.
INPROGRESS - The process is underway.
FAILED - The request to perform a batch prediction did not run to completion. It is not usable.
COMPLETED - The batch prediction process completed successfully.
DELETED - The BatchPrediction is marked as deleted. It is not usable.
OutputUri (string) --
The location of an Amazon S3 bucket or directory to receive the operation results. The following substrings are not allowed in the s3 key portion of the outputURI field: \':\', \'//\', \'/./\', \'/../\'.
Message (string) --
A description of the most recent details about processing the batch prediction request.
ComputeTime (integer) --
Long integer type that is a 64-bit signed number.
FinishedAt (datetime) --
A timestamp represented in epoch time.
StartedAt (datetime) --
A timestamp represented in epoch time.
TotalRecordCount (integer) --
Long integer type that is a 64-bit signed number.
InvalidRecordCount (integer) --
Long integer type that is a 64-bit signed number.
NextToken (string) --
The ID of the next page in the paginated results that indicates at least one more page follows.
Exceptions
MachineLearning.Client.exceptions.InvalidInputException
MachineLearning.Client.exceptions.InternalServerException
:return: {
'Results': [
{
'BatchPredictionId': 'string',
'MLModelId': 'string',
'BatchPredictionDataSourceId': 'string',
'InputDataLocationS3': 'string',
'CreatedByIamUser': 'string',
'CreatedAt': datetime(2015, 1, 1),
'LastUpdatedAt': datetime(2015, 1, 1),
'Name': 'string',
'Status': 'PENDING'|'INPROGRESS'|'FAILED'|'COMPLETED'|'DELETED',
'OutputUri': 'string',
'Message': 'string',
'ComputeTime': 123,
'FinishedAt': datetime(2015, 1, 1),
'StartedAt': datetime(2015, 1, 1),
'TotalRecordCount': 123,
'InvalidRecordCount': 123
},
],
'NextToken': 'string'
}
:returns:
PENDING - Amazon Machine Learning (Amazon ML) submitted a request to generate predictions for a batch of observations.
INPROGRESS - The process is underway.
FAILED - The request to perform a batch prediction did not run to completion. It is not usable.
COMPLETED - The batch prediction process completed successfully.
DELETED - The BatchPrediction is marked as deleted. It is not usable.
"""
pass
def describe_data_sources(FilterVariable=None, EQ=None, GT=None, LT=None, GE=None, LE=None, NE=None, Prefix=None, SortOrder=None, NextToken=None, Limit=None):
"""
Returns a list of DataSource that match the search criteria in the request.
See also: AWS API Documentation
Exceptions
:example: response = client.describe_data_sources(
FilterVariable='CreatedAt'|'LastUpdatedAt'|'Status'|'Name'|'DataLocationS3'|'IAMUser',
EQ='string',
GT='string',
LT='string',
GE='string',
LE='string',
NE='string',
Prefix='string',
SortOrder='asc'|'dsc',
NextToken='string',
Limit=123
)
:type FilterVariable: string
:param FilterVariable: Use one of the following variables to filter a list of DataSource :\n\nCreatedAt - Sets the search criteria to DataSource creation dates.\nStatus - Sets the search criteria to DataSource statuses.\nName - Sets the search criteria to the contents of DataSource **** Name .\nDataUri - Sets the search criteria to the URI of data files used to create the DataSource . The URI can identify either a file or an Amazon Simple Storage Service (Amazon S3) bucket or directory.\nIAMUser - Sets the search criteria to the user account that invoked the DataSource creation.\n\n
:type EQ: string
:param EQ: The equal to operator. The DataSource results will have FilterVariable values that exactly match the value specified with EQ .
:type GT: string
:param GT: The greater than operator. The DataSource results will have FilterVariable values that are greater than the value specified with GT .
:type LT: string
:param LT: The less than operator. The DataSource results will have FilterVariable values that are less than the value specified with LT .
:type GE: string
:param GE: The greater than or equal to operator. The DataSource results will have FilterVariable values that are greater than or equal to the value specified with GE .
:type LE: string
:param LE: The less than or equal to operator. The DataSource results will have FilterVariable values that are less than or equal to the value specified with LE .
:type NE: string
:param NE: The not equal to operator. The DataSource results will have FilterVariable values not equal to the value specified with NE .
:type Prefix: string
:param Prefix: A string that is found at the beginning of a variable, such as Name or Id .\nFor example, a DataSource could have the Name 2014-09-09-HolidayGiftMailer . To search for this DataSource , select Name for the FilterVariable and any of the following strings for the Prefix :\n\n2014-09\n2014-09-09\n2014-09-09-Holiday\n\n
:type SortOrder: string
:param SortOrder: A two-value parameter that determines the sequence of the resulting list of DataSource .\n\nasc - Arranges the list in ascending order (A-Z, 0-9).\ndsc - Arranges the list in descending order (Z-A, 9-0).\n\nResults are sorted by FilterVariable .\n
:type NextToken: string
:param NextToken: The ID of the page in the paginated results.
:type Limit: integer
:param Limit: The maximum number of DataSource to include in the result.
:rtype: dict
ReturnsResponse Syntax
{
'Results': [
{
'DataSourceId': 'string',
'DataLocationS3': 'string',
'DataRearrangement': 'string',
'CreatedByIamUser': 'string',
'CreatedAt': datetime(2015, 1, 1),
'LastUpdatedAt': datetime(2015, 1, 1),
'DataSizeInBytes': 123,
'NumberOfFiles': 123,
'Name': 'string',
'Status': 'PENDING'|'INPROGRESS'|'FAILED'|'COMPLETED'|'DELETED',
'Message': 'string',
'RedshiftMetadata': {
'RedshiftDatabase': {
'DatabaseName': 'string',
'ClusterIdentifier': 'string'
},
'DatabaseUserName': 'string',
'SelectSqlQuery': 'string'
},
'RDSMetadata': {
'Database': {
'InstanceIdentifier': 'string',
'DatabaseName': 'string'
},
'DatabaseUserName': 'string',
'SelectSqlQuery': 'string',
'ResourceRole': 'string',
'ServiceRole': 'string',
'DataPipelineId': 'string'
},
'RoleARN': 'string',
'ComputeStatistics': True|False,
'ComputeTime': 123,
'FinishedAt': datetime(2015, 1, 1),
'StartedAt': datetime(2015, 1, 1)
},
],
'NextToken': 'string'
}
Response Structure
(dict) --
Represents the query results from a DescribeDataSources operation. The content is essentially a list of DataSource .
Results (list) --
A list of DataSource that meet the search criteria.
(dict) --
Represents the output of the GetDataSource operation.
The content consists of the detailed metadata and data file information and the current status of the DataSource .
DataSourceId (string) --
The ID that is assigned to the DataSource during creation.
DataLocationS3 (string) --
The location and name of the data in Amazon Simple Storage Service (Amazon S3) that is used by a DataSource .
DataRearrangement (string) --
A JSON string that represents the splitting and rearrangement requirement used when this DataSource was created.
CreatedByIamUser (string) --
The AWS user account from which the DataSource was created. The account type can be either an AWS root account or an AWS Identity and Access Management (IAM) user account.
CreatedAt (datetime) --
The time that the DataSource was created. The time is expressed in epoch time.
LastUpdatedAt (datetime) --
The time of the most recent edit to the BatchPrediction . The time is expressed in epoch time.
DataSizeInBytes (integer) --
The total number of observations contained in the data files that the DataSource references.
NumberOfFiles (integer) --
The number of data files referenced by the DataSource .
Name (string) --
A user-supplied name or description of the DataSource .
Status (string) --
The current status of the DataSource . This element can have one of the following values:
PENDING - Amazon Machine Learning (Amazon ML) submitted a request to create a DataSource .
INPROGRESS - The creation process is underway.
FAILED - The request to create a DataSource did not run to completion. It is not usable.
COMPLETED - The creation process completed successfully.
DELETED - The DataSource is marked as deleted. It is not usable.
Message (string) --
A description of the most recent details about creating the DataSource .
RedshiftMetadata (dict) --
Describes the DataSource details specific to Amazon Redshift.
RedshiftDatabase (dict) --
Describes the database details required to connect to an Amazon Redshift database.
DatabaseName (string) --
The name of a database hosted on an Amazon Redshift cluster.
ClusterIdentifier (string) --
The ID of an Amazon Redshift cluster.
DatabaseUserName (string) --
A username to be used by Amazon Machine Learning (Amazon ML)to connect to a database on an Amazon Redshift cluster. The username should have sufficient permissions to execute the RedshiftSelectSqlQuery query. The username should be valid for an Amazon Redshift USER .
SelectSqlQuery (string) --
The SQL query that is specified during CreateDataSourceFromRedshift . Returns only if Verbose is true in GetDataSourceInput.
RDSMetadata (dict) --
The datasource details that are specific to Amazon RDS.
Database (dict) --
The database details required to connect to an Amazon RDS.
InstanceIdentifier (string) --
The ID of an RDS DB instance.
DatabaseName (string) --
The name of a database hosted on an RDS DB instance.
DatabaseUserName (string) --
The username to be used by Amazon ML to connect to database on an Amazon RDS instance. The username should have sufficient permissions to execute an RDSSelectSqlQuery query.
SelectSqlQuery (string) --
The SQL query that is supplied during CreateDataSourceFromRDS . Returns only if Verbose is true in GetDataSourceInput .
ResourceRole (string) --
The role (DataPipelineDefaultResourceRole) assumed by an Amazon EC2 instance to carry out the copy task from Amazon RDS to Amazon S3. For more information, see Role templates for data pipelines.
ServiceRole (string) --
The role (DataPipelineDefaultRole) assumed by the Data Pipeline service to monitor the progress of the copy task from Amazon RDS to Amazon S3. For more information, see Role templates for data pipelines.
DataPipelineId (string) --
The ID of the Data Pipeline instance that is used to carry to copy data from Amazon RDS to Amazon S3. You can use the ID to find details about the instance in the Data Pipeline console.
RoleARN (string) --
The Amazon Resource Name (ARN) of an AWS IAM Role , such as the following: arn:aws:iam::account:role/rolename.
ComputeStatistics (boolean) --
The parameter is true if statistics need to be generated from the observation data.
ComputeTime (integer) --
Long integer type that is a 64-bit signed number.
FinishedAt (datetime) --
A timestamp represented in epoch time.
StartedAt (datetime) --
A timestamp represented in epoch time.
NextToken (string) --
An ID of the next page in the paginated results that indicates at least one more page follows.
Exceptions
MachineLearning.Client.exceptions.InvalidInputException
MachineLearning.Client.exceptions.InternalServerException
:return: {
'Results': [
{
'DataSourceId': 'string',
'DataLocationS3': 'string',
'DataRearrangement': 'string',
'CreatedByIamUser': 'string',
'CreatedAt': datetime(2015, 1, 1),
'LastUpdatedAt': datetime(2015, 1, 1),
'DataSizeInBytes': 123,
'NumberOfFiles': 123,
'Name': 'string',
'Status': 'PENDING'|'INPROGRESS'|'FAILED'|'COMPLETED'|'DELETED',
'Message': 'string',
'RedshiftMetadata': {
'RedshiftDatabase': {
'DatabaseName': 'string',
'ClusterIdentifier': 'string'
},
'DatabaseUserName': 'string',
'SelectSqlQuery': 'string'
},
'RDSMetadata': {
'Database': {
'InstanceIdentifier': 'string',
'DatabaseName': 'string'
},
'DatabaseUserName': 'string',
'SelectSqlQuery': 'string',
'ResourceRole': 'string',
'ServiceRole': 'string',
'DataPipelineId': 'string'
},
'RoleARN': 'string',
'ComputeStatistics': True|False,
'ComputeTime': 123,
'FinishedAt': datetime(2015, 1, 1),
'StartedAt': datetime(2015, 1, 1)
},
],
'NextToken': 'string'
}
:returns:
PENDING - Amazon Machine Learning (Amazon ML) submitted a request to create a DataSource .
INPROGRESS - The creation process is underway.
FAILED - The request to create a DataSource did not run to completion. It is not usable.
COMPLETED - The creation process completed successfully.
DELETED - The DataSource is marked as deleted. It is not usable.
"""
pass
def describe_evaluations(FilterVariable=None, EQ=None, GT=None, LT=None, GE=None, LE=None, NE=None, Prefix=None, SortOrder=None, NextToken=None, Limit=None):
"""
Returns a list of DescribeEvaluations that match the search criteria in the request.
See also: AWS API Documentation
Exceptions
:example: response = client.describe_evaluations(
FilterVariable='CreatedAt'|'LastUpdatedAt'|'Status'|'Name'|'IAMUser'|'MLModelId'|'DataSourceId'|'DataURI',
EQ='string',
GT='string',
LT='string',
GE='string',
LE='string',
NE='string',
Prefix='string',
SortOrder='asc'|'dsc',
NextToken='string',
Limit=123
)
:type FilterVariable: string
:param FilterVariable: Use one of the following variable to filter a list of Evaluation objects:\n\nCreatedAt - Sets the search criteria to the Evaluation creation date.\nStatus - Sets the search criteria to the Evaluation status.\nName - Sets the search criteria to the contents of Evaluation **** Name .\nIAMUser - Sets the search criteria to the user account that invoked an Evaluation .\nMLModelId - Sets the search criteria to the MLModel that was evaluated.\nDataSourceId - Sets the search criteria to the DataSource used in Evaluation .\nDataUri - Sets the search criteria to the data file(s) used in Evaluation . The URL can identify either a file or an Amazon Simple Storage Solution (Amazon S3) bucket or directory.\n\n
:type EQ: string
:param EQ: The equal to operator. The Evaluation results will have FilterVariable values that exactly match the value specified with EQ .
:type GT: string
:param GT: The greater than operator. The Evaluation results will have FilterVariable values that are greater than the value specified with GT .
:type LT: string
:param LT: The less than operator. The Evaluation results will have FilterVariable values that are less than the value specified with LT .
:type GE: string
:param GE: The greater than or equal to operator. The Evaluation results will have FilterVariable values that are greater than or equal to the value specified with GE .
:type LE: string
:param LE: The less than or equal to operator. The Evaluation results will have FilterVariable values that are less than or equal to the value specified with LE .
:type NE: string
:param NE: The not equal to operator. The Evaluation results will have FilterVariable values not equal to the value specified with NE .
:type Prefix: string
:param Prefix: A string that is found at the beginning of a variable, such as Name or Id .\nFor example, an Evaluation could have the Name 2014-09-09-HolidayGiftMailer . To search for this Evaluation , select Name for the FilterVariable and any of the following strings for the Prefix :\n\n2014-09\n2014-09-09\n2014-09-09-Holiday\n\n
:type SortOrder: string
:param SortOrder: A two-value parameter that determines the sequence of the resulting list of Evaluation .\n\nasc - Arranges the list in ascending order (A-Z, 0-9).\ndsc - Arranges the list in descending order (Z-A, 9-0).\n\nResults are sorted by FilterVariable .\n
:type NextToken: string
:param NextToken: The ID of the page in the paginated results.
:type Limit: integer
:param Limit: The maximum number of Evaluation to include in the result.
:rtype: dict
ReturnsResponse Syntax
{
'Results': [
{
'EvaluationId': 'string',
'MLModelId': 'string',
'EvaluationDataSourceId': 'string',
'InputDataLocationS3': 'string',
'CreatedByIamUser': 'string',
'CreatedAt': datetime(2015, 1, 1),
'LastUpdatedAt': datetime(2015, 1, 1),
'Name': 'string',
'Status': 'PENDING'|'INPROGRESS'|'FAILED'|'COMPLETED'|'DELETED',
'PerformanceMetrics': {
'Properties': {
'string': 'string'
}
},
'Message': 'string',
'ComputeTime': 123,
'FinishedAt': datetime(2015, 1, 1),
'StartedAt': datetime(2015, 1, 1)
},
],
'NextToken': 'string'
}
Response Structure
(dict) --
Represents the query results from a DescribeEvaluations operation. The content is essentially a list of Evaluation .
Results (list) --
A list of Evaluation that meet the search criteria.
(dict) --
Represents the output of GetEvaluation operation.
The content consists of the detailed metadata and data file information and the current status of the Evaluation .
EvaluationId (string) --
The ID that is assigned to the Evaluation at creation.
MLModelId (string) --
The ID of the MLModel that is the focus of the evaluation.
EvaluationDataSourceId (string) --
The ID of the DataSource that is used to evaluate the MLModel .
InputDataLocationS3 (string) --
The location and name of the data in Amazon Simple Storage Server (Amazon S3) that is used in the evaluation.
CreatedByIamUser (string) --
The AWS user account that invoked the evaluation. The account type can be either an AWS root account or an AWS Identity and Access Management (IAM) user account.
CreatedAt (datetime) --
The time that the Evaluation was created. The time is expressed in epoch time.
LastUpdatedAt (datetime) --
The time of the most recent edit to the Evaluation . The time is expressed in epoch time.
Name (string) --
A user-supplied name or description of the Evaluation .
Status (string) --
The status of the evaluation. This element can have one of the following values:
PENDING - Amazon Machine Learning (Amazon ML) submitted a request to evaluate an MLModel .
INPROGRESS - The evaluation is underway.
FAILED - The request to evaluate an MLModel did not run to completion. It is not usable.
COMPLETED - The evaluation process completed successfully.
DELETED - The Evaluation is marked as deleted. It is not usable.
PerformanceMetrics (dict) --
Measurements of how well the MLModel performed, using observations referenced by the DataSource . One of the following metrics is returned, based on the type of the MLModel :
BinaryAUC: A binary MLModel uses the Area Under the Curve (AUC) technique to measure performance.
RegressionRMSE: A regression MLModel uses the Root Mean Square Error (RMSE) technique to measure performance. RMSE measures the difference between predicted and actual values for a single variable.
MulticlassAvgFScore: A multiclass MLModel uses the F1 score technique to measure performance.
For more information about performance metrics, please see the Amazon Machine Learning Developer Guide .
Properties (dict) --
(string) --
(string) --
Message (string) --
A description of the most recent details about evaluating the MLModel .
ComputeTime (integer) --
Long integer type that is a 64-bit signed number.
FinishedAt (datetime) --
A timestamp represented in epoch time.
StartedAt (datetime) --
A timestamp represented in epoch time.
NextToken (string) --
The ID of the next page in the paginated results that indicates at least one more page follows.
Exceptions
MachineLearning.Client.exceptions.InvalidInputException
MachineLearning.Client.exceptions.InternalServerException
:return: {
'Results': [
{
'EvaluationId': 'string',
'MLModelId': 'string',
'EvaluationDataSourceId': 'string',
'InputDataLocationS3': 'string',
'CreatedByIamUser': 'string',
'CreatedAt': datetime(2015, 1, 1),
'LastUpdatedAt': datetime(2015, 1, 1),
'Name': 'string',
'Status': 'PENDING'|'INPROGRESS'|'FAILED'|'COMPLETED'|'DELETED',
'PerformanceMetrics': {
'Properties': {
'string': 'string'
}
},
'Message': 'string',
'ComputeTime': 123,
'FinishedAt': datetime(2015, 1, 1),
'StartedAt': datetime(2015, 1, 1)
},
],
'NextToken': 'string'
}
:returns:
PENDING - Amazon Machine Learning (Amazon ML) submitted a request to evaluate an MLModel .
INPROGRESS - The evaluation is underway.
FAILED - The request to evaluate an MLModel did not run to completion. It is not usable.
COMPLETED - The evaluation process completed successfully.
DELETED - The Evaluation is marked as deleted. It is not usable.
"""
pass
def describe_ml_models(FilterVariable=None, EQ=None, GT=None, LT=None, GE=None, LE=None, NE=None, Prefix=None, SortOrder=None, NextToken=None, Limit=None):
"""
Returns a list of MLModel that match the search criteria in the request.
See also: AWS API Documentation
Exceptions
:example: response = client.describe_ml_models(
FilterVariable='CreatedAt'|'LastUpdatedAt'|'Status'|'Name'|'IAMUser'|'TrainingDataSourceId'|'RealtimeEndpointStatus'|'MLModelType'|'Algorithm'|'TrainingDataURI',
EQ='string',
GT='string',
LT='string',
GE='string',
LE='string',
NE='string',
Prefix='string',
SortOrder='asc'|'dsc',
NextToken='string',
Limit=123
)
:type FilterVariable: string
:param FilterVariable: Use one of the following variables to filter a list of MLModel :\n\nCreatedAt - Sets the search criteria to MLModel creation date.\nStatus - Sets the search criteria to MLModel status.\nName - Sets the search criteria to the contents of MLModel **** Name .\nIAMUser - Sets the search criteria to the user account that invoked the MLModel creation.\nTrainingDataSourceId - Sets the search criteria to the DataSource used to train one or more MLModel .\nRealtimeEndpointStatus - Sets the search criteria to the MLModel real-time endpoint status.\nMLModelType - Sets the search criteria to MLModel type: binary, regression, or multi-class.\nAlgorithm - Sets the search criteria to the algorithm that the MLModel uses.\nTrainingDataURI - Sets the search criteria to the data file(s) used in training a MLModel . The URL can identify either a file or an Amazon Simple Storage Service (Amazon S3) bucket or directory.\n\n
:type EQ: string
:param EQ: The equal to operator. The MLModel results will have FilterVariable values that exactly match the value specified with EQ .
:type GT: string
:param GT: The greater than operator. The MLModel results will have FilterVariable values that are greater than the value specified with GT .
:type LT: string
:param LT: The less than operator. The MLModel results will have FilterVariable values that are less than the value specified with LT .
:type GE: string
:param GE: The greater than or equal to operator. The MLModel results will have FilterVariable values that are greater than or equal to the value specified with GE .
:type LE: string
:param LE: The less than or equal to operator. The MLModel results will have FilterVariable values that are less than or equal to the value specified with LE .
:type NE: string
:param NE: The not equal to operator. The MLModel results will have FilterVariable values not equal to the value specified with NE .
:type Prefix: string
:param Prefix: A string that is found at the beginning of a variable, such as Name or Id .\nFor example, an MLModel could have the Name 2014-09-09-HolidayGiftMailer . To search for this MLModel , select Name for the FilterVariable and any of the following strings for the Prefix :\n\n2014-09\n2014-09-09\n2014-09-09-Holiday\n\n
:type SortOrder: string
:param SortOrder: A two-value parameter that determines the sequence of the resulting list of MLModel .\n\nasc - Arranges the list in ascending order (A-Z, 0-9).\ndsc - Arranges the list in descending order (Z-A, 9-0).\n\nResults are sorted by FilterVariable .\n
:type NextToken: string
:param NextToken: The ID of the page in the paginated results.
:type Limit: integer
:param Limit: The number of pages of information to include in the result. The range of acceptable values is 1 through 100 . The default value is 100 .
:rtype: dict
ReturnsResponse Syntax
{
'Results': [
{
'MLModelId': 'string',
'TrainingDataSourceId': 'string',
'CreatedByIamUser': 'string',
'CreatedAt': datetime(2015, 1, 1),
'LastUpdatedAt': datetime(2015, 1, 1),
'Name': 'string',
'Status': 'PENDING'|'INPROGRESS'|'FAILED'|'COMPLETED'|'DELETED',
'SizeInBytes': 123,
'EndpointInfo': {
'PeakRequestsPerSecond': 123,
'CreatedAt': datetime(2015, 1, 1),
'EndpointUrl': 'string',
'EndpointStatus': 'NONE'|'READY'|'UPDATING'|'FAILED'
},
'TrainingParameters': {
'string': 'string'
},
'InputDataLocationS3': 'string',
'Algorithm': 'sgd',
'MLModelType': 'REGRESSION'|'BINARY'|'MULTICLASS',
'ScoreThreshold': ...,
'ScoreThresholdLastUpdatedAt': datetime(2015, 1, 1),
'Message': 'string',
'ComputeTime': 123,
'FinishedAt': datetime(2015, 1, 1),
'StartedAt': datetime(2015, 1, 1)
},
],
'NextToken': 'string'
}
Response Structure
(dict) --
Represents the output of a DescribeMLModels operation. The content is essentially a list of MLModel .
Results (list) --
A list of MLModel that meet the search criteria.
(dict) --
Represents the output of a GetMLModel operation.
The content consists of the detailed metadata and the current status of the MLModel .
MLModelId (string) --
The ID assigned to the MLModel at creation.
TrainingDataSourceId (string) --
The ID of the training DataSource . The CreateMLModel operation uses the TrainingDataSourceId .
CreatedByIamUser (string) --
The AWS user account from which the MLModel was created. The account type can be either an AWS root account or an AWS Identity and Access Management (IAM) user account.
CreatedAt (datetime) --
The time that the MLModel was created. The time is expressed in epoch time.
LastUpdatedAt (datetime) --
The time of the most recent edit to the MLModel . The time is expressed in epoch time.
Name (string) --
A user-supplied name or description of the MLModel .
Status (string) --
The current status of an MLModel . This element can have one of the following values:
PENDING - Amazon Machine Learning (Amazon ML) submitted a request to create an MLModel .
INPROGRESS - The creation process is underway.
FAILED - The request to create an MLModel didn\'t run to completion. The model isn\'t usable.
COMPLETED - The creation process completed successfully.
DELETED - The MLModel is marked as deleted. It isn\'t usable.
SizeInBytes (integer) --
Long integer type that is a 64-bit signed number.
EndpointInfo (dict) --
The current endpoint of the MLModel .
PeakRequestsPerSecond (integer) --
The maximum processing rate for the real-time endpoint for MLModel , measured in incoming requests per second.
CreatedAt (datetime) --
The time that the request to create the real-time endpoint for the MLModel was received. The time is expressed in epoch time.
EndpointUrl (string) --
The URI that specifies where to send real-time prediction requests for the MLModel .
Note
Note
The application must wait until the real-time endpoint is ready before using this URI.
EndpointStatus (string) --
The current status of the real-time endpoint for the MLModel . This element can have one of the following values:
NONE - Endpoint does not exist or was previously deleted.
READY - Endpoint is ready to be used for real-time predictions.
UPDATING - Updating/creating the endpoint.
TrainingParameters (dict) --
A list of the training parameters in the MLModel . The list is implemented as a map of key-value pairs.
The following is the current set of training parameters:
sgd.maxMLModelSizeInBytes - The maximum allowed size of the model. Depending on the input data, the size of the model might affect its performance. The value is an integer that ranges from 100000 to 2147483648 . The default value is 33554432 .
sgd.maxPasses - The number of times that the training process traverses the observations to build the MLModel . The value is an integer that ranges from 1 to 10000 . The default value is 10 .
sgd.shuffleType - Whether Amazon ML shuffles the training data. Shuffling the data improves a model\'s ability to find the optimal solution for a variety of data types. The valid values are auto and none . The default value is none .
sgd.l1RegularizationAmount - The coefficient regularization L1 norm, which controls overfitting the data by penalizing large coefficients. This parameter tends to drive coefficients to zero, resulting in sparse feature set. If you use this parameter, start by specifying a small value, such as 1.0E-08 . The value is a double that ranges from 0 to MAX_DOUBLE . The default is to not use L1 normalization. This parameter can\'t be used when L2 is specified. Use this parameter sparingly.
sgd.l2RegularizationAmount - The coefficient regularization L2 norm, which controls overfitting the data by penalizing large coefficients. This tends to drive coefficients to small, nonzero values. If you use this parameter, start by specifying a small value, such as 1.0E-08 . The value is a double that ranges from 0 to MAX_DOUBLE . The default is to not use L2 normalization. This parameter can\'t be used when L1 is specified. Use this parameter sparingly.
(string) --
String type.
(string) --
String type.
InputDataLocationS3 (string) --
The location of the data file or directory in Amazon Simple Storage Service (Amazon S3).
Algorithm (string) --
The algorithm used to train the MLModel . The following algorithm is supported:
SGD -- Stochastic gradient descent. The goal of SGD is to minimize the gradient of the loss function.
MLModelType (string) --
Identifies the MLModel category. The following are the available types:
REGRESSION - Produces a numeric result. For example, "What price should a house be listed at?"
BINARY - Produces one of two possible results. For example, "Is this a child-friendly web site?".
MULTICLASS - Produces one of several possible results. For example, "Is this a HIGH-, LOW-, or MEDIUM-risk trade?".
ScoreThreshold (float) --
ScoreThresholdLastUpdatedAt (datetime) --
The time of the most recent edit to the ScoreThreshold . The time is expressed in epoch time.
Message (string) --
A description of the most recent details about accessing the MLModel .
ComputeTime (integer) --
Long integer type that is a 64-bit signed number.
FinishedAt (datetime) --
A timestamp represented in epoch time.
StartedAt (datetime) --
A timestamp represented in epoch time.
NextToken (string) --
The ID of the next page in the paginated results that indicates at least one more page follows.
Exceptions
MachineLearning.Client.exceptions.InvalidInputException
MachineLearning.Client.exceptions.InternalServerException
:return: {
'Results': [
{
'MLModelId': 'string',
'TrainingDataSourceId': 'string',
'CreatedByIamUser': 'string',
'CreatedAt': datetime(2015, 1, 1),
'LastUpdatedAt': datetime(2015, 1, 1),
'Name': 'string',
'Status': 'PENDING'|'INPROGRESS'|'FAILED'|'COMPLETED'|'DELETED',
'SizeInBytes': 123,
'EndpointInfo': {
'PeakRequestsPerSecond': 123,
'CreatedAt': datetime(2015, 1, 1),
'EndpointUrl': 'string',
'EndpointStatus': 'NONE'|'READY'|'UPDATING'|'FAILED'
},
'TrainingParameters': {
'string': 'string'
},
'InputDataLocationS3': 'string',
'Algorithm': 'sgd',
'MLModelType': 'REGRESSION'|'BINARY'|'MULTICLASS',
'ScoreThreshold': ...,
'ScoreThresholdLastUpdatedAt': datetime(2015, 1, 1),
'Message': 'string',
'ComputeTime': 123,
'FinishedAt': datetime(2015, 1, 1),
'StartedAt': datetime(2015, 1, 1)
},
],
'NextToken': 'string'
}
:returns:
PENDING - Amazon Machine Learning (Amazon ML) submitted a request to create an MLModel .
INPROGRESS - The creation process is underway.
FAILED - The request to create an MLModel didn\'t run to completion. The model isn\'t usable.
COMPLETED - The creation process completed successfully.
DELETED - The MLModel is marked as deleted. It isn\'t usable.
"""
pass
def describe_tags(ResourceId=None, ResourceType=None):
"""
Describes one or more of the tags for your Amazon ML object.
See also: AWS API Documentation
Exceptions
:example: response = client.describe_tags(
ResourceId='string',
ResourceType='BatchPrediction'|'DataSource'|'Evaluation'|'MLModel'
)
:type ResourceId: string
:param ResourceId: [REQUIRED]\nThe ID of the ML object. For example, exampleModelId .\n
:type ResourceType: string
:param ResourceType: [REQUIRED]\nThe type of the ML object.\n
:rtype: dict
ReturnsResponse Syntax
{
'ResourceId': 'string',
'ResourceType': 'BatchPrediction'|'DataSource'|'Evaluation'|'MLModel',
'Tags': [
{
'Key': 'string',
'Value': 'string'
},
]
}
Response Structure
(dict) --
Amazon ML returns the following elements.
ResourceId (string) --
The ID of the tagged ML object.
ResourceType (string) --
The type of the tagged ML object.
Tags (list) --
A list of tags associated with the ML object.
(dict) --
A custom key-value pair associated with an ML object, such as an ML model.
Key (string) --
A unique identifier for the tag. Valid characters include Unicode letters, digits, white space, _, ., /, =, +, -, %, and @.
Value (string) --
An optional string, typically used to describe or define the tag. Valid characters include Unicode letters, digits, white space, _, ., /, =, +, -, %, and @.
Exceptions
MachineLearning.Client.exceptions.InvalidInputException
MachineLearning.Client.exceptions.ResourceNotFoundException
MachineLearning.Client.exceptions.InternalServerException
:return: {
'ResourceId': 'string',
'ResourceType': 'BatchPrediction'|'DataSource'|'Evaluation'|'MLModel',
'Tags': [
{
'Key': 'string',
'Value': 'string'
},
]
}
:returns:
MachineLearning.Client.exceptions.InvalidInputException
MachineLearning.Client.exceptions.ResourceNotFoundException
MachineLearning.Client.exceptions.InternalServerException
"""
pass
def generate_presigned_url(ClientMethod=None, Params=None, ExpiresIn=None, HttpMethod=None):
"""
Generate a presigned url given a client, its method, and arguments
:type ClientMethod: string
:param ClientMethod: The client method to presign for
:type Params: dict
:param Params: The parameters normally passed to\nClientMethod.
:type ExpiresIn: int
:param ExpiresIn: The number of seconds the presigned url is valid\nfor. By default it expires in an hour (3600 seconds)
:type HttpMethod: string
:param HttpMethod: The http method to use on the generated url. By\ndefault, the http method is whatever is used in the method\'s model.
"""
pass
def get_batch_prediction(BatchPredictionId=None):
"""
Returns a BatchPrediction that includes detailed metadata, status, and data file information for a Batch Prediction request.
See also: AWS API Documentation
Exceptions
:example: response = client.get_batch_prediction(
BatchPredictionId='string'
)
:type BatchPredictionId: string
:param BatchPredictionId: [REQUIRED]\nAn ID assigned to the BatchPrediction at creation.\n
:rtype: dict
ReturnsResponse Syntax{
'BatchPredictionId': 'string',
'MLModelId': 'string',
'BatchPredictionDataSourceId': 'string',
'InputDataLocationS3': 'string',
'CreatedByIamUser': 'string',
'CreatedAt': datetime(2015, 1, 1),
'LastUpdatedAt': datetime(2015, 1, 1),
'Name': 'string',
'Status': 'PENDING'|'INPROGRESS'|'FAILED'|'COMPLETED'|'DELETED',
'OutputUri': 'string',
'LogUri': 'string',
'Message': 'string',
'ComputeTime': 123,
'FinishedAt': datetime(2015, 1, 1),
'StartedAt': datetime(2015, 1, 1),
'TotalRecordCount': 123,
'InvalidRecordCount': 123
}
Response Structure
(dict) --Represents the output of a GetBatchPrediction operation and describes a BatchPrediction .
BatchPredictionId (string) --An ID assigned to the BatchPrediction at creation. This value should be identical to the value of the BatchPredictionID in the request.
MLModelId (string) --The ID of the MLModel that generated predictions for the BatchPrediction request.
BatchPredictionDataSourceId (string) --The ID of the DataSource that was used to create the BatchPrediction .
InputDataLocationS3 (string) --The location of the data file or directory in Amazon Simple Storage Service (Amazon S3).
CreatedByIamUser (string) --The AWS user account that invoked the BatchPrediction . The account type can be either an AWS root account or an AWS Identity and Access Management (IAM) user account.
CreatedAt (datetime) --The time when the BatchPrediction was created. The time is expressed in epoch time.
LastUpdatedAt (datetime) --The time of the most recent edit to BatchPrediction . The time is expressed in epoch time.
Name (string) --A user-supplied name or description of the BatchPrediction .
Status (string) --The status of the BatchPrediction , which can be one of the following values:
PENDING - Amazon Machine Learning (Amazon ML) submitted a request to generate batch predictions.
INPROGRESS - The batch predictions are in progress.
FAILED - The request to perform a batch prediction did not run to completion. It is not usable.
COMPLETED - The batch prediction process completed successfully.
DELETED - The BatchPrediction is marked as deleted. It is not usable.
OutputUri (string) --The location of an Amazon S3 bucket or directory to receive the operation results.
LogUri (string) --A link to the file that contains logs of the CreateBatchPrediction operation.
Message (string) --A description of the most recent details about processing the batch prediction request.
ComputeTime (integer) --The approximate CPU time in milliseconds that Amazon Machine Learning spent processing the BatchPrediction , normalized and scaled on computation resources. ComputeTime is only available if the BatchPrediction is in the COMPLETED state.
FinishedAt (datetime) --The epoch time when Amazon Machine Learning marked the BatchPrediction as COMPLETED or FAILED . FinishedAt is only available when the BatchPrediction is in the COMPLETED or FAILED state.
StartedAt (datetime) --The epoch time when Amazon Machine Learning marked the BatchPrediction as INPROGRESS . StartedAt isn\'t available if the BatchPrediction is in the PENDING state.
TotalRecordCount (integer) --The number of total records that Amazon Machine Learning saw while processing the BatchPrediction .
InvalidRecordCount (integer) --The number of invalid records that Amazon Machine Learning saw while processing the BatchPrediction .
Exceptions
MachineLearning.Client.exceptions.InvalidInputException
MachineLearning.Client.exceptions.ResourceNotFoundException
MachineLearning.Client.exceptions.InternalServerException
:return: {
'BatchPredictionId': 'string',
'MLModelId': 'string',
'BatchPredictionDataSourceId': 'string',
'InputDataLocationS3': 'string',
'CreatedByIamUser': 'string',
'CreatedAt': datetime(2015, 1, 1),
'LastUpdatedAt': datetime(2015, 1, 1),
'Name': 'string',
'Status': 'PENDING'|'INPROGRESS'|'FAILED'|'COMPLETED'|'DELETED',
'OutputUri': 'string',
'LogUri': 'string',
'Message': 'string',
'ComputeTime': 123,
'FinishedAt': datetime(2015, 1, 1),
'StartedAt': datetime(2015, 1, 1),
'TotalRecordCount': 123,
'InvalidRecordCount': 123
}
:returns:
MachineLearning.Client.exceptions.InvalidInputException
MachineLearning.Client.exceptions.ResourceNotFoundException
MachineLearning.Client.exceptions.InternalServerException
"""
pass
def get_data_source(DataSourceId=None, Verbose=None):
"""
Returns a DataSource that includes metadata and data file information, as well as the current status of the DataSource .
GetDataSource provides results in normal or verbose format. The verbose format adds the schema description and the list of files pointed to by the DataSource to the normal format.
See also: AWS API Documentation
Exceptions
:example: response = client.get_data_source(
DataSourceId='string',
Verbose=True|False
)
:type DataSourceId: string
:param DataSourceId: [REQUIRED]\nThe ID assigned to the DataSource at creation.\n
:type Verbose: boolean
:param Verbose: Specifies whether the GetDataSource operation should return DataSourceSchema .\nIf true, DataSourceSchema is returned.\nIf false, DataSourceSchema is not returned.\n
:rtype: dict
ReturnsResponse Syntax
{
'DataSourceId': 'string',
'DataLocationS3': 'string',
'DataRearrangement': 'string',
'CreatedByIamUser': 'string',
'CreatedAt': datetime(2015, 1, 1),
'LastUpdatedAt': datetime(2015, 1, 1),
'DataSizeInBytes': 123,
'NumberOfFiles': 123,
'Name': 'string',
'Status': 'PENDING'|'INPROGRESS'|'FAILED'|'COMPLETED'|'DELETED',
'LogUri': 'string',
'Message': 'string',
'RedshiftMetadata': {
'RedshiftDatabase': {
'DatabaseName': 'string',
'ClusterIdentifier': 'string'
},
'DatabaseUserName': 'string',
'SelectSqlQuery': 'string'
},
'RDSMetadata': {
'Database': {
'InstanceIdentifier': 'string',
'DatabaseName': 'string'
},
'DatabaseUserName': 'string',
'SelectSqlQuery': 'string',
'ResourceRole': 'string',
'ServiceRole': 'string',
'DataPipelineId': 'string'
},
'RoleARN': 'string',
'ComputeStatistics': True|False,
'ComputeTime': 123,
'FinishedAt': datetime(2015, 1, 1),
'StartedAt': datetime(2015, 1, 1),
'DataSourceSchema': 'string'
}
Response Structure
(dict) --
Represents the output of a GetDataSource operation and describes a DataSource .
DataSourceId (string) --
The ID assigned to the DataSource at creation. This value should be identical to the value of the DataSourceId in the request.
DataLocationS3 (string) --
The location of the data file or directory in Amazon Simple Storage Service (Amazon S3).
DataRearrangement (string) --
A JSON string that represents the splitting and rearrangement requirement used when this DataSource was created.
CreatedByIamUser (string) --
The AWS user account from which the DataSource was created. The account type can be either an AWS root account or an AWS Identity and Access Management (IAM) user account.
CreatedAt (datetime) --
The time that the DataSource was created. The time is expressed in epoch time.
LastUpdatedAt (datetime) --
The time of the most recent edit to the DataSource . The time is expressed in epoch time.
DataSizeInBytes (integer) --
The total size of observations in the data files.
NumberOfFiles (integer) --
The number of data files referenced by the DataSource .
Name (string) --
A user-supplied name or description of the DataSource .
Status (string) --
The current status of the DataSource . This element can have one of the following values:
PENDING - Amazon ML submitted a request to create a DataSource .
INPROGRESS - The creation process is underway.
FAILED - The request to create a DataSource did not run to completion. It is not usable.
COMPLETED - The creation process completed successfully.
DELETED - The DataSource is marked as deleted. It is not usable.
LogUri (string) --
A link to the file containing logs of CreateDataSourceFrom* operations.
Message (string) --
The user-supplied description of the most recent details about creating the DataSource .
RedshiftMetadata (dict) --
Describes the DataSource details specific to Amazon Redshift.
RedshiftDatabase (dict) --
Describes the database details required to connect to an Amazon Redshift database.
DatabaseName (string) --
The name of a database hosted on an Amazon Redshift cluster.
ClusterIdentifier (string) --
The ID of an Amazon Redshift cluster.
DatabaseUserName (string) --
A username to be used by Amazon Machine Learning (Amazon ML)to connect to a database on an Amazon Redshift cluster. The username should have sufficient permissions to execute the RedshiftSelectSqlQuery query. The username should be valid for an Amazon Redshift USER .
SelectSqlQuery (string) --
The SQL query that is specified during CreateDataSourceFromRedshift . Returns only if Verbose is true in GetDataSourceInput.
RDSMetadata (dict) --
The datasource details that are specific to Amazon RDS.
Database (dict) --
The database details required to connect to an Amazon RDS.
InstanceIdentifier (string) --
The ID of an RDS DB instance.
DatabaseName (string) --
The name of a database hosted on an RDS DB instance.
DatabaseUserName (string) --
The username to be used by Amazon ML to connect to database on an Amazon RDS instance. The username should have sufficient permissions to execute an RDSSelectSqlQuery query.
SelectSqlQuery (string) --
The SQL query that is supplied during CreateDataSourceFromRDS . Returns only if Verbose is true in GetDataSourceInput .
ResourceRole (string) --
The role (DataPipelineDefaultResourceRole) assumed by an Amazon EC2 instance to carry out the copy task from Amazon RDS to Amazon S3. For more information, see Role templates for data pipelines.
ServiceRole (string) --
The role (DataPipelineDefaultRole) assumed by the Data Pipeline service to monitor the progress of the copy task from Amazon RDS to Amazon S3. For more information, see Role templates for data pipelines.
DataPipelineId (string) --
The ID of the Data Pipeline instance that is used to carry to copy data from Amazon RDS to Amazon S3. You can use the ID to find details about the instance in the Data Pipeline console.
RoleARN (string) --
The Amazon Resource Name (ARN) of an AWS IAM Role , such as the following: arn:aws:iam::account:role/rolename.
ComputeStatistics (boolean) --
The parameter is true if statistics need to be generated from the observation data.
ComputeTime (integer) --
The approximate CPU time in milliseconds that Amazon Machine Learning spent processing the DataSource , normalized and scaled on computation resources. ComputeTime is only available if the DataSource is in the COMPLETED state and the ComputeStatistics is set to true.
FinishedAt (datetime) --
The epoch time when Amazon Machine Learning marked the DataSource as COMPLETED or FAILED . FinishedAt is only available when the DataSource is in the COMPLETED or FAILED state.
StartedAt (datetime) --
The epoch time when Amazon Machine Learning marked the DataSource as INPROGRESS . StartedAt isn\'t available if the DataSource is in the PENDING state.
DataSourceSchema (string) --
The schema used by all of the data files of this DataSource .
Note
Note
This parameter is provided as part of the verbose format.
Exceptions
MachineLearning.Client.exceptions.InvalidInputException
MachineLearning.Client.exceptions.ResourceNotFoundException
MachineLearning.Client.exceptions.InternalServerException
:return: {
'DataSourceId': 'string',
'DataLocationS3': 'string',
'DataRearrangement': 'string',
'CreatedByIamUser': 'string',
'CreatedAt': datetime(2015, 1, 1),
'LastUpdatedAt': datetime(2015, 1, 1),
'DataSizeInBytes': 123,
'NumberOfFiles': 123,
'Name': 'string',
'Status': 'PENDING'|'INPROGRESS'|'FAILED'|'COMPLETED'|'DELETED',
'LogUri': 'string',
'Message': 'string',
'RedshiftMetadata': {
'RedshiftDatabase': {
'DatabaseName': 'string',
'ClusterIdentifier': 'string'
},
'DatabaseUserName': 'string',
'SelectSqlQuery': 'string'
},
'RDSMetadata': {
'Database': {
'InstanceIdentifier': 'string',
'DatabaseName': 'string'
},
'DatabaseUserName': 'string',
'SelectSqlQuery': 'string',
'ResourceRole': 'string',
'ServiceRole': 'string',
'DataPipelineId': 'string'
},
'RoleARN': 'string',
'ComputeStatistics': True|False,
'ComputeTime': 123,
'FinishedAt': datetime(2015, 1, 1),
'StartedAt': datetime(2015, 1, 1),
'DataSourceSchema': 'string'
}
:returns:
PENDING - Amazon ML submitted a request to create a DataSource .
INPROGRESS - The creation process is underway.
FAILED - The request to create a DataSource did not run to completion. It is not usable.
COMPLETED - The creation process completed successfully.
DELETED - The DataSource is marked as deleted. It is not usable.
"""
pass
def get_evaluation(EvaluationId=None):
"""
Returns an Evaluation that includes metadata as well as the current status of the Evaluation .
See also: AWS API Documentation
Exceptions
:example: response = client.get_evaluation(
EvaluationId='string'
)
:type EvaluationId: string
:param EvaluationId: [REQUIRED]\nThe ID of the Evaluation to retrieve. The evaluation of each MLModel is recorded and cataloged. The ID provides the means to access the information.\n
:rtype: dict
ReturnsResponse Syntax{
'EvaluationId': 'string',
'MLModelId': 'string',
'EvaluationDataSourceId': 'string',
'InputDataLocationS3': 'string',
'CreatedByIamUser': 'string',
'CreatedAt': datetime(2015, 1, 1),
'LastUpdatedAt': datetime(2015, 1, 1),
'Name': 'string',
'Status': 'PENDING'|'INPROGRESS'|'FAILED'|'COMPLETED'|'DELETED',
'PerformanceMetrics': {
'Properties': {
'string': 'string'
}
},
'LogUri': 'string',
'Message': 'string',
'ComputeTime': 123,
'FinishedAt': datetime(2015, 1, 1),
'StartedAt': datetime(2015, 1, 1)
}
Response Structure
(dict) --Represents the output of a GetEvaluation operation and describes an Evaluation .
EvaluationId (string) --The evaluation ID which is same as the EvaluationId in the request.
MLModelId (string) --The ID of the MLModel that was the focus of the evaluation.
EvaluationDataSourceId (string) --The DataSource used for this evaluation.
InputDataLocationS3 (string) --The location of the data file or directory in Amazon Simple Storage Service (Amazon S3).
CreatedByIamUser (string) --The AWS user account that invoked the evaluation. The account type can be either an AWS root account or an AWS Identity and Access Management (IAM) user account.
CreatedAt (datetime) --The time that the Evaluation was created. The time is expressed in epoch time.
LastUpdatedAt (datetime) --The time of the most recent edit to the Evaluation . The time is expressed in epoch time.
Name (string) --A user-supplied name or description of the Evaluation .
Status (string) --The status of the evaluation. This element can have one of the following values:
PENDING - Amazon Machine Language (Amazon ML) submitted a request to evaluate an MLModel .
INPROGRESS - The evaluation is underway.
FAILED - The request to evaluate an MLModel did not run to completion. It is not usable.
COMPLETED - The evaluation process completed successfully.
DELETED - The Evaluation is marked as deleted. It is not usable.
PerformanceMetrics (dict) --Measurements of how well the MLModel performed using observations referenced by the DataSource . One of the following metric is returned based on the type of the MLModel :
BinaryAUC: A binary MLModel uses the Area Under the Curve (AUC) technique to measure performance.
RegressionRMSE: A regression MLModel uses the Root Mean Square Error (RMSE) technique to measure performance. RMSE measures the difference between predicted and actual values for a single variable.
MulticlassAvgFScore: A multiclass MLModel uses the F1 score technique to measure performance.
For more information about performance metrics, please see the Amazon Machine Learning Developer Guide .
Properties (dict) --
(string) --
(string) --
LogUri (string) --A link to the file that contains logs of the CreateEvaluation operation.
Message (string) --A description of the most recent details about evaluating the MLModel .
ComputeTime (integer) --The approximate CPU time in milliseconds that Amazon Machine Learning spent processing the Evaluation , normalized and scaled on computation resources. ComputeTime is only available if the Evaluation is in the COMPLETED state.
FinishedAt (datetime) --The epoch time when Amazon Machine Learning marked the Evaluation as COMPLETED or FAILED . FinishedAt is only available when the Evaluation is in the COMPLETED or FAILED state.
StartedAt (datetime) --The epoch time when Amazon Machine Learning marked the Evaluation as INPROGRESS . StartedAt isn\'t available if the Evaluation is in the PENDING state.
Exceptions
MachineLearning.Client.exceptions.InvalidInputException
MachineLearning.Client.exceptions.ResourceNotFoundException
MachineLearning.Client.exceptions.InternalServerException
:return: {
'EvaluationId': 'string',
'MLModelId': 'string',
'EvaluationDataSourceId': 'string',
'InputDataLocationS3': 'string',
'CreatedByIamUser': 'string',
'CreatedAt': datetime(2015, 1, 1),
'LastUpdatedAt': datetime(2015, 1, 1),
'Name': 'string',
'Status': 'PENDING'|'INPROGRESS'|'FAILED'|'COMPLETED'|'DELETED',
'PerformanceMetrics': {
'Properties': {
'string': 'string'
}
},
'LogUri': 'string',
'Message': 'string',
'ComputeTime': 123,
'FinishedAt': datetime(2015, 1, 1),
'StartedAt': datetime(2015, 1, 1)
}
:returns:
BinaryAUC: A binary MLModel uses the Area Under the Curve (AUC) technique to measure performance.
RegressionRMSE: A regression MLModel uses the Root Mean Square Error (RMSE) technique to measure performance. RMSE measures the difference between predicted and actual values for a single variable.
MulticlassAvgFScore: A multiclass MLModel uses the F1 score technique to measure performance.
"""
pass
def get_ml_model(MLModelId=None, Verbose=None):
"""
Returns an MLModel that includes detailed metadata, data source information, and the current status of the MLModel .
GetMLModel provides results in normal or verbose format.
See also: AWS API Documentation
Exceptions
:example: response = client.get_ml_model(
MLModelId='string',
Verbose=True|False
)
:type MLModelId: string
:param MLModelId: [REQUIRED]\nThe ID assigned to the MLModel at creation.\n
:type Verbose: boolean
:param Verbose: Specifies whether the GetMLModel operation should return Recipe .\nIf true, Recipe is returned.\nIf false, Recipe is not returned.\n
:rtype: dict
ReturnsResponse Syntax
{
'MLModelId': 'string',
'TrainingDataSourceId': 'string',
'CreatedByIamUser': 'string',
'CreatedAt': datetime(2015, 1, 1),
'LastUpdatedAt': datetime(2015, 1, 1),
'Name': 'string',
'Status': 'PENDING'|'INPROGRESS'|'FAILED'|'COMPLETED'|'DELETED',
'SizeInBytes': 123,
'EndpointInfo': {
'PeakRequestsPerSecond': 123,
'CreatedAt': datetime(2015, 1, 1),
'EndpointUrl': 'string',
'EndpointStatus': 'NONE'|'READY'|'UPDATING'|'FAILED'
},
'TrainingParameters': {
'string': 'string'
},
'InputDataLocationS3': 'string',
'MLModelType': 'REGRESSION'|'BINARY'|'MULTICLASS',
'ScoreThreshold': ...,
'ScoreThresholdLastUpdatedAt': datetime(2015, 1, 1),
'LogUri': 'string',
'Message': 'string',
'ComputeTime': 123,
'FinishedAt': datetime(2015, 1, 1),
'StartedAt': datetime(2015, 1, 1),
'Recipe': 'string',
'Schema': 'string'
}
Response Structure
(dict) --
Represents the output of a GetMLModel operation, and provides detailed information about a MLModel .
MLModelId (string) --
The MLModel ID,which is same as the MLModelId in the request.
TrainingDataSourceId (string) --
The ID of the training DataSource .
CreatedByIamUser (string) --
The AWS user account from which the MLModel was created. The account type can be either an AWS root account or an AWS Identity and Access Management (IAM) user account.
CreatedAt (datetime) --
The time that the MLModel was created. The time is expressed in epoch time.
LastUpdatedAt (datetime) --
The time of the most recent edit to the MLModel . The time is expressed in epoch time.
Name (string) --
A user-supplied name or description of the MLModel .
Status (string) --
The current status of the MLModel . This element can have one of the following values:
PENDING - Amazon Machine Learning (Amazon ML) submitted a request to describe a MLModel .
INPROGRESS - The request is processing.
FAILED - The request did not run to completion. The ML model isn\'t usable.
COMPLETED - The request completed successfully.
DELETED - The MLModel is marked as deleted. It isn\'t usable.
SizeInBytes (integer) --
Long integer type that is a 64-bit signed number.
EndpointInfo (dict) --
The current endpoint of the MLModel
PeakRequestsPerSecond (integer) --
The maximum processing rate for the real-time endpoint for MLModel , measured in incoming requests per second.
CreatedAt (datetime) --
The time that the request to create the real-time endpoint for the MLModel was received. The time is expressed in epoch time.
EndpointUrl (string) --
The URI that specifies where to send real-time prediction requests for the MLModel .
Note
Note
The application must wait until the real-time endpoint is ready before using this URI.
EndpointStatus (string) --
The current status of the real-time endpoint for the MLModel . This element can have one of the following values:
NONE - Endpoint does not exist or was previously deleted.
READY - Endpoint is ready to be used for real-time predictions.
UPDATING - Updating/creating the endpoint.
TrainingParameters (dict) --
A list of the training parameters in the MLModel . The list is implemented as a map of key-value pairs.
The following is the current set of training parameters:
sgd.maxMLModelSizeInBytes - The maximum allowed size of the model. Depending on the input data, the size of the model might affect its performance. The value is an integer that ranges from 100000 to 2147483648 . The default value is 33554432 .
sgd.maxPasses - The number of times that the training process traverses the observations to build the MLModel . The value is an integer that ranges from 1 to 10000 . The default value is 10 .
sgd.shuffleType - Whether Amazon ML shuffles the training data. Shuffling data improves a model\'s ability to find the optimal solution for a variety of data types. The valid values are auto and none . The default value is none . We strongly recommend that you shuffle your data.
sgd.l1RegularizationAmount - The coefficient regularization L1 norm. It controls overfitting the data by penalizing large coefficients. This tends to drive coefficients to zero, resulting in a sparse feature set. If you use this parameter, start by specifying a small value, such as 1.0E-08 . The value is a double that ranges from 0 to MAX_DOUBLE . The default is to not use L1 normalization. This parameter can\'t be used when L2 is specified. Use this parameter sparingly.
sgd.l2RegularizationAmount - The coefficient regularization L2 norm. It controls overfitting the data by penalizing large coefficients. This tends to drive coefficients to small, nonzero values. If you use this parameter, start by specifying a small value, such as 1.0E-08 . The value is a double that ranges from 0 to MAX_DOUBLE . The default is to not use L2 normalization. This parameter can\'t be used when L1 is specified. Use this parameter sparingly.
(string) --
String type.
(string) --
String type.
InputDataLocationS3 (string) --
The location of the data file or directory in Amazon Simple Storage Service (Amazon S3).
MLModelType (string) --
Identifies the MLModel category. The following are the available types:
REGRESSION -- Produces a numeric result. For example, "What price should a house be listed at?"
BINARY -- Produces one of two possible results. For example, "Is this an e-commerce website?"
MULTICLASS -- Produces one of several possible results. For example, "Is this a HIGH, LOW or MEDIUM risk trade?"
ScoreThreshold (float) --
The scoring threshold is used in binary classification MLModel models. It marks the boundary between a positive prediction and a negative prediction.
Output values greater than or equal to the threshold receive a positive result from the MLModel, such as true . Output values less than the threshold receive a negative response from the MLModel, such as false .
ScoreThresholdLastUpdatedAt (datetime) --
The time of the most recent edit to the ScoreThreshold . The time is expressed in epoch time.
LogUri (string) --
A link to the file that contains logs of the CreateMLModel operation.
Message (string) --
A description of the most recent details about accessing the MLModel .
ComputeTime (integer) --
The approximate CPU time in milliseconds that Amazon Machine Learning spent processing the MLModel , normalized and scaled on computation resources. ComputeTime is only available if the MLModel is in the COMPLETED state.
FinishedAt (datetime) --
The epoch time when Amazon Machine Learning marked the MLModel as COMPLETED or FAILED . FinishedAt is only available when the MLModel is in the COMPLETED or FAILED state.
StartedAt (datetime) --
The epoch time when Amazon Machine Learning marked the MLModel as INPROGRESS . StartedAt isn\'t available if the MLModel is in the PENDING state.
Recipe (string) --
The recipe to use when training the MLModel . The Recipe provides detailed information about the observation data to use during training, and manipulations to perform on the observation data during training.
Note
Note
This parameter is provided as part of the verbose format.
Schema (string) --
The schema used by all of the data files referenced by the DataSource .
Note
Note
This parameter is provided as part of the verbose format.
Exceptions
MachineLearning.Client.exceptions.InvalidInputException
MachineLearning.Client.exceptions.ResourceNotFoundException
MachineLearning.Client.exceptions.InternalServerException
:return: {
'MLModelId': 'string',
'TrainingDataSourceId': 'string',
'CreatedByIamUser': 'string',
'CreatedAt': datetime(2015, 1, 1),
'LastUpdatedAt': datetime(2015, 1, 1),
'Name': 'string',
'Status': 'PENDING'|'INPROGRESS'|'FAILED'|'COMPLETED'|'DELETED',
'SizeInBytes': 123,
'EndpointInfo': {
'PeakRequestsPerSecond': 123,
'CreatedAt': datetime(2015, 1, 1),
'EndpointUrl': 'string',
'EndpointStatus': 'NONE'|'READY'|'UPDATING'|'FAILED'
},
'TrainingParameters': {
'string': 'string'
},
'InputDataLocationS3': 'string',
'MLModelType': 'REGRESSION'|'BINARY'|'MULTICLASS',
'ScoreThreshold': ...,
'ScoreThresholdLastUpdatedAt': datetime(2015, 1, 1),
'LogUri': 'string',
'Message': 'string',
'ComputeTime': 123,
'FinishedAt': datetime(2015, 1, 1),
'StartedAt': datetime(2015, 1, 1),
'Recipe': 'string',
'Schema': 'string'
}
:returns:
PENDING - Amazon Machine Learning (Amazon ML) submitted a request to describe a MLModel .
INPROGRESS - The request is processing.
FAILED - The request did not run to completion. The ML model isn\'t usable.
COMPLETED - The request completed successfully.
DELETED - The MLModel is marked as deleted. It isn\'t usable.
"""
pass
def get_paginator(operation_name=None):
"""
Create a paginator for an operation.
:type operation_name: string
:param operation_name: The operation name. This is the same name\nas the method name on the client. For example, if the\nmethod name is create_foo, and you\'d normally invoke the\noperation as client.create_foo(**kwargs), if the\ncreate_foo operation can be paginated, you can use the\ncall client.get_paginator('create_foo').
:rtype: L{botocore.paginate.Paginator}
ReturnsA paginator object.
"""
pass
def get_waiter(waiter_name=None):
"""
Returns an object that can wait for some condition.
:type waiter_name: str
:param waiter_name: The name of the waiter to get. See the waiters\nsection of the service docs for a list of available waiters.
:rtype: botocore.waiter.Waiter
"""
pass
def predict(MLModelId=None, Record=None, PredictEndpoint=None):
"""
Generates a prediction for the observation using the specified ML Model .
See also: AWS API Documentation
Exceptions
:example: response = client.predict(
MLModelId='string',
Record={
'string': 'string'
},
PredictEndpoint='string'
)
:type MLModelId: string
:param MLModelId: [REQUIRED]\nA unique identifier of the MLModel .\n
:type Record: dict
:param Record: [REQUIRED]\nA map of variable name-value pairs that represent an observation.\n\n(string) --The name of a variable. Currently it\'s used to specify the name of the target value, label, weight, and tags.\n\n(string) --The value of a variable. Currently it\'s used to specify values of the target value, weights, and tag variables and for filtering variable values.\n\n\n\n\n
:type PredictEndpoint: string
:param PredictEndpoint: [REQUIRED]
:rtype: dict
ReturnsResponse Syntax
{
'Prediction': {
'predictedLabel': 'string',
'predictedValue': ...,
'predictedScores': {
'string': ...
},
'details': {
'string': 'string'
}
}
}
Response Structure
(dict) --
Prediction (dict) --
The output from a Predict operation:
Details - Contains the following attributes: DetailsAttributes.PREDICTIVE_MODEL_TYPE - REGRESSION | BINARY | MULTICLASS DetailsAttributes.ALGORITHM - SGD
PredictedLabel - Present for either a BINARY or MULTICLASS MLModel request.
PredictedScores - Contains the raw classification score corresponding to each label.
PredictedValue - Present for a REGRESSION MLModel request.
predictedLabel (string) --
The prediction label for either a BINARY or MULTICLASS MLModel .
predictedValue (float) -- The prediction value for REGRESSION MLModel .
predictedScores (dict) -- Provides the raw classification score corresponding to each label.
(string) --
(float) --
details (dict) -- Provides any additional details regarding the prediction.
(string) -- Contains the key values of DetailsMap : PredictiveModelType - Indicates the type of the MLModel . Algorithm - Indicates the algorithm that was used for the MLModel .
(string) --
Exceptions
MachineLearning.Client.exceptions.InvalidInputException
MachineLearning.Client.exceptions.ResourceNotFoundException
MachineLearning.Client.exceptions.LimitExceededException
MachineLearning.Client.exceptions.InternalServerException
MachineLearning.Client.exceptions.PredictorNotMountedException
:return: {
'Prediction': {
'predictedLabel': 'string',
'predictedValue': ...,
'predictedScores': {
'string': ...
},
'details': {
'string': 'string'
}
}
}
:returns:
Details - Contains the following attributes: DetailsAttributes.PREDICTIVE_MODEL_TYPE - REGRESSION | BINARY | MULTICLASS DetailsAttributes.ALGORITHM - SGD
PredictedLabel - Present for either a BINARY or MULTICLASS MLModel request.
PredictedScores - Contains the raw classification score corresponding to each label.
PredictedValue - Present for a REGRESSION MLModel request.
"""
pass
def update_batch_prediction(BatchPredictionId=None, BatchPredictionName=None):
"""
Updates the BatchPredictionName of a BatchPrediction .
You can use the GetBatchPrediction operation to view the contents of the updated data element.
See also: AWS API Documentation
Exceptions
:example: response = client.update_batch_prediction(
BatchPredictionId='string',
BatchPredictionName='string'
)
:type BatchPredictionId: string
:param BatchPredictionId: [REQUIRED]\nThe ID assigned to the BatchPrediction during creation.\n
:type BatchPredictionName: string
:param BatchPredictionName: [REQUIRED]\nA new user-supplied name or description of the BatchPrediction .\n
:rtype: dict
ReturnsResponse Syntax
{
'BatchPredictionId': 'string'
}
Response Structure
(dict) --
Represents the output of an UpdateBatchPrediction operation.
You can see the updated content by using the GetBatchPrediction operation.
BatchPredictionId (string) --
The ID assigned to the BatchPrediction during creation. This value should be identical to the value of the BatchPredictionId in the request.
Exceptions
MachineLearning.Client.exceptions.InvalidInputException
MachineLearning.Client.exceptions.ResourceNotFoundException
MachineLearning.Client.exceptions.InternalServerException
:return: {
'BatchPredictionId': 'string'
}
:returns:
MachineLearning.Client.exceptions.InvalidInputException
MachineLearning.Client.exceptions.ResourceNotFoundException
MachineLearning.Client.exceptions.InternalServerException
"""
pass
def update_data_source(DataSourceId=None, DataSourceName=None):
"""
Updates the DataSourceName of a DataSource .
You can use the GetDataSource operation to view the contents of the updated data element.
See also: AWS API Documentation
Exceptions
:example: response = client.update_data_source(
DataSourceId='string',
DataSourceName='string'
)
:type DataSourceId: string
:param DataSourceId: [REQUIRED]\nThe ID assigned to the DataSource during creation.\n
:type DataSourceName: string
:param DataSourceName: [REQUIRED]\nA new user-supplied name or description of the DataSource that will replace the current description.\n
:rtype: dict
ReturnsResponse Syntax
{
'DataSourceId': 'string'
}
Response Structure
(dict) --
Represents the output of an UpdateDataSource operation.
You can see the updated content by using the GetBatchPrediction operation.
DataSourceId (string) --
The ID assigned to the DataSource during creation. This value should be identical to the value of the DataSourceID in the request.
Exceptions
MachineLearning.Client.exceptions.InvalidInputException
MachineLearning.Client.exceptions.ResourceNotFoundException
MachineLearning.Client.exceptions.InternalServerException
:return: {
'DataSourceId': 'string'
}
:returns:
MachineLearning.Client.exceptions.InvalidInputException
MachineLearning.Client.exceptions.ResourceNotFoundException
MachineLearning.Client.exceptions.InternalServerException
"""
pass
def update_evaluation(EvaluationId=None, EvaluationName=None):
"""
Updates the EvaluationName of an Evaluation .
You can use the GetEvaluation operation to view the contents of the updated data element.
See also: AWS API Documentation
Exceptions
:example: response = client.update_evaluation(
EvaluationId='string',
EvaluationName='string'
)
:type EvaluationId: string
:param EvaluationId: [REQUIRED]\nThe ID assigned to the Evaluation during creation.\n
:type EvaluationName: string
:param EvaluationName: [REQUIRED]\nA new user-supplied name or description of the Evaluation that will replace the current content.\n
:rtype: dict
ReturnsResponse Syntax
{
'EvaluationId': 'string'
}
Response Structure
(dict) --
Represents the output of an UpdateEvaluation operation.
You can see the updated content by using the GetEvaluation operation.
EvaluationId (string) --
The ID assigned to the Evaluation during creation. This value should be identical to the value of the Evaluation in the request.
Exceptions
MachineLearning.Client.exceptions.InvalidInputException
MachineLearning.Client.exceptions.ResourceNotFoundException
MachineLearning.Client.exceptions.InternalServerException
:return: {
'EvaluationId': 'string'
}
:returns:
MachineLearning.Client.exceptions.InvalidInputException
MachineLearning.Client.exceptions.ResourceNotFoundException
MachineLearning.Client.exceptions.InternalServerException
"""
pass
def update_ml_model(MLModelId=None, MLModelName=None, ScoreThreshold=None):
"""
Updates the MLModelName and the ScoreThreshold of an MLModel .
You can use the GetMLModel operation to view the contents of the updated data element.
See also: AWS API Documentation
Exceptions
:example: response = client.update_ml_model(
MLModelId='string',
MLModelName='string',
ScoreThreshold=...
)
:type MLModelId: string
:param MLModelId: [REQUIRED]\nThe ID assigned to the MLModel during creation.\n
:type MLModelName: string
:param MLModelName: A user-supplied name or description of the MLModel .
:type ScoreThreshold: float
:param ScoreThreshold: The ScoreThreshold used in binary classification MLModel that marks the boundary between a positive prediction and a negative prediction.\nOutput values greater than or equal to the ScoreThreshold receive a positive result from the MLModel , such as true . Output values less than the ScoreThreshold receive a negative response from the MLModel , such as false .\n
:rtype: dict
ReturnsResponse Syntax
{
'MLModelId': 'string'
}
Response Structure
(dict) --
Represents the output of an UpdateMLModel operation.
You can see the updated content by using the GetMLModel operation.
MLModelId (string) --
The ID assigned to the MLModel during creation. This value should be identical to the value of the MLModelID in the request.
Exceptions
MachineLearning.Client.exceptions.InvalidInputException
MachineLearning.Client.exceptions.ResourceNotFoundException
MachineLearning.Client.exceptions.InternalServerException
:return: {
'MLModelId': 'string'
}
:returns:
MachineLearning.Client.exceptions.InvalidInputException
MachineLearning.Client.exceptions.ResourceNotFoundException
MachineLearning.Client.exceptions.InternalServerException
"""
pass
| 44.494156 | 8,813 | 0.728948 | 18,541 | 148,477 | 5.828488 | 0.057009 | 0.012122 | 0.039013 | 0.009846 | 0.873818 | 0.853034 | 0.834536 | 0.814308 | 0.787621 | 0.773111 | 0 | 0.010057 | 0.198367 | 148,477 | 3,336 | 8,814 | 44.507494 | 0.897878 | 0.974562 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0.5 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 10 |
94b0232dd2b5bad87b81d680d50c8a8c8f14be6f | 149 | py | Python | netdash/netdash/utils.py | NetDash/netdash | 3ff8f57f9401c9f79379fa9ebc2e6828d8fd518b | [
"Apache-2.0"
] | 15 | 2019-01-02T15:40:46.000Z | 2021-07-15T21:21:22.000Z | netdash/netdash/utils.py | NetDash/netdash | 3ff8f57f9401c9f79379fa9ebc2e6828d8fd518b | [
"Apache-2.0"
] | 47 | 2019-04-23T19:32:47.000Z | 2022-02-10T13:20:28.000Z | netdash/netdash/utils.py | NetDash/netdash | 3ff8f57f9401c9f79379fa9ebc2e6828d8fd518b | [
"Apache-2.0"
] | 8 | 2019-01-02T15:41:03.000Z | 2022-01-03T10:22:00.000Z | from .netdash_modules import NetDashModule
def create_netdash_modules(modules):
return [NetDashModule(module_name) for module_name in modules]
| 24.833333 | 66 | 0.825503 | 19 | 149 | 6.210526 | 0.631579 | 0.237288 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.120805 | 149 | 5 | 67 | 29.8 | 0.900763 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0.333333 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 7 |
a206e8c2220ef3580f6dfc2a1d900f2621db6ff8 | 16,617 | py | Python | thebe/core/constants.py | hotsoupisgood/Thebe | 3f7648ae566faa797fbd7ef54e2f4370aab35490 | [
"MIT"
] | null | null | null | thebe/core/constants.py | hotsoupisgood/Thebe | 3f7648ae566faa797fbd7ef54e2f4370aab35490 | [
"MIT"
] | null | null | null | thebe/core/constants.py | hotsoupisgood/Thebe | 3f7648ae566faa797fbd7ef54e2f4370aab35490 | [
"MIT"
] | null | null | null | import copy
CellDelimiter='$$$$'
def getIpynb():
return copy.deepcopy(Ipynb)
def getCell():
return copy.deepcopy(Cell)
def getExecuteOutput():
return copy.deepcopy(ExecuteResultOutput)
def getDisplayOutput():
return copy.deepcopy(DisplayDataOutput)
def getErrorOutput():
return copy.deepcopy(ErrorOutput)
Ipynb={"cells":[],"metadata": {"kernelspec": {"display_name": "Python 3","language": "python","name": "python3"},"language_info": {"codemirror_mode": {"name": "ipython","version": 3},"file_extension": ".py","mimetype": "text/x-python","name": "python","nbconvert_exporter": "python","pygments_lexer": "ipython3","version": "3.7.3"}},"nbformat": 4,"nbformat_minor": 2}
ExecuteResultOutput={'data':{'text/plain':[]}, 'execution_count':0, 'metadata':{}, 'output_type':'execute_result'}
DisplayDataOutput={"data": {"image/png": "","text/plain": []},"metadata": {"needs_background": "light"},"output_type": "display_data"}
ErrorOutput={'ename':'', 'evalue':'', 'output_type':'error', 'traceback':[]}
Cell={'cell_type':'code', 'execution_count':0, 'metadata':{}, 'outputs':[], 'source':[], 'changed': False}
GetPlot="import matplotlib.pyplot as plt\nfrom binascii import b2a_base64\nimport io\nbuf = io.BytesIO()\nplt.savefig(buf, format = 'png')\nbuf.seek(0)\nprint(b2a_base64(buf.getvalue()).decode())\nplt.close()"
LedgerSkeleton={'ledger':'', 'cells':'', 'global_scope':'', 'local_scope':''}
DefaultGraph='iVBORw0KGgoAAAANSUhEUgAAAoAAAAHgCAYAAAA10dzkAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAPYQAAD2EBqD+naQAAADl0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uIDMuMC4zLCBodHRwOi8vbWF0cGxvdGxpYi5vcmcvnQurowAAIABJREFUeJzt3X901fV9+PFXEkyClISNHBLAKD+qowoDC5LRqdPTHFnXA3p2VtFjgQKzZzvW1jFb5LSCWm3a9azFTY4ec9C20w3WHcec67CadT1wSqUD0+F2RKpGmJgA7UhSnEBzP98/erjfpoAGyE1yeT8e53z+6Dufzyfv9/tE77Of3FxLsizLAgCAZJQO9gQAABhYAhAAIDECEAAgMQIQACAxAhAAIDECEAAgMQIQACAxAhAAIDECEAAgMQIQACAxAhAAIDECEAAgMQIQACAxAhAAIDECEAAgMQIQACAxAhAAIDECEAAgMQIQACAxAhAAIDECEAAgMQIQACAxAhAAIDECEAAgMQIQACAxAhAAIDECEAAgMQIQACAxAhAAIDECEAAgMQIQACAxAhAAIDECEAAgMQIQACAxAhAAIDECEAAgMQIQACAxAhAAIDECEAAgMQIQACAxAhAAIDECEAAgMQIQACAxAhAAIDECEAAgMQIQACAxAhAAIDECEAAgMQIQACAxAhAAIDECEAAgMQIQACAxAhAAIDECEAAgMQIQACAxAhAAIDHDBnsCxSyXy8W+ffti5MiRUVJSMtjTAQD6IMuy6O7ujnHjxkVpaZrPwgTgWdi3b1/U19cP9jQAgDOwd+/euOCCCwZ7GoNCAJ6FkSNHRsQvf4CqqqoGeTYAQF90dXVFfX19/nU8RQLwLBz/tW9VVZUABIAik/Lbt9L8xTcAQMIEIABAYgQgAEBiBCAAQGIEIABAYgQgAEBiBCAAQGIEIABAYgQgAEBiBCAAQGIEIABAYgQgAEBiBCAAQGIEIABAYgQgAEBiBCAAQGIEIABAYooqANeuXRsTJkyIysrKaGhoiG3btvXpuvXr10dJSUnccMMNpzznT/7kT6KkpCTWrFnTX9MFABiSiiYAN2zYEMuXL4/Vq1fHjh07Yvr06TF37tzYv3//u17X1tYWd955Z1x11VWnPOcf//Ef44c//GGMGzeuv6cNADDkFE0Afu1rX4tbb701lixZEpdeemk88sgjcf7558djjz12ymt6enrilltuiXvvvTcmTZp00nPefPPNuP322+PJJ5+M8847r1DTBwAYMooiAI8ePRrbt2+PxsbG/FhpaWk0NjbG1q1bT3ndfffdF2PGjIlly5ad9Ou5XC4WLlwYn/3sZ+Oyyy57z3kcOXIkurq6eh0AAMWmKALw4MGD0dPTE7W1tb3Ga2tro729/aTXbNmyJdatWxfNzc2nvO9XvvKVGDZsWHz605/u0zyampqiuro6f9TX1/d9EQAAQ0RRBODp6u7ujoULF0Zzc3PU1NSc9Jzt27fHgw8+GN/4xjeipKSkT/dduXJldHZ25o+9e/f257QBAAbEsMGeQF/U1NREWVlZdHR09Brv6OiIurq6E85/9dVXo62tLebNm5cfy+VyERExbNiw2LVrV2zevDn2798fF154Yf6cnp6e+PM///NYs2ZNtLW1nXDfioqKqKio6KdVAQAMjqIIwPLy8pg5c2a0tLTkP8oll8tFS0tLfOpTnzrh/ClTpsTOnTt7jX3hC1+I7u7uePDBB6O+vj4WLlzY6z2FERFz586NhQsXxpIlSwq3GACAQVYUARgRsXz58li8eHHMmjUrZs+eHWvWrInDhw/nY23RokUxfvz4aGpqisrKypg6dWqv60eNGhURkR8fPXp0jB49utc55513XtTV1cVv/dZvDcCKAAAGR9EE4IIFC+LAgQOxatWqaG9vjxkzZsSmTZvyfxiyZ8+eKC09J9/SCADQr0qyLMsGexLFqqurK6qrq6OzszOqqqoGezoAQB94/T5H/woYAIBTE4AAAIkRgAAAiRGAAACJEYAAAIkRgAAAiRGAAACJEYAAAIkRgAAAiRGAAACJEYAAAIkRgAAAiRGAAACJEYAAAIkRgAAAiRGAAACJEYAAAIkRgAAAiRGAAACJEYAAAIkRgAAAiRGAAACJEYAAAIkRgAAAiRGAAACJEYAAAIkRgAAAiRGAAACJEYAAAIkRgAAAiRGAAACJEYAAAIkRgAAAiRGAAACJEYAAAIkRgAAAiRGAAACJEYAAAIkRgAAAiRGAAACJEYAAAIkRgAAAiRGAAACJEYAAAIkRgAAAiRGAAACJEYAAAIkRgAAAiRGAAACJEYAAAIkRgAAAiRGAAACJEYAAAIkRgAAAiRGAAACJEYAAAIkRgAAAiRGAAACJEYAAAIkRgAAAiRGAAACJEYAAAIkRgAAAiRGAAACJEYAAAIkRgAAAiRGAAACJEYAAAIkRgAAAiSmqAFy7dm1MmDAhKisro6GhIbZt29an69avXx8lJSVxww039Bq/5557YsqUKTFixIj4jd/4jWhsbIwXXnihEFMHABgyiiYAN2zYEMuXL4/Vq1fHjh07Yvr06TF37tzYv3//u17X1tYWd955Z1x11VUnfO2SSy6Jhx56KHbu3BlbtmyJCRMmxHXXXRcHDhwo1DIAAAZdSZZl2WBPoi8aGhriiiuuiIceeigiInK5XNTX18ftt98ed91110mv6enpiauvvjqWLl0amzdvjkOHDsXGjRtP+T26urqiuro6nn/++fjwhz/8nnM6fn5nZ2dUVVWd2cIAgAHl9btIngAePXo0tm/fHo2Njfmx0tLSaGxsjK1bt57yuvvuuy/GjBkTy5Yt69P3ePTRR6O6ujqmT59+0nOOHDkSXV1dvQ4AgGJTFAF48ODB6Onpidra2l7jtbW10d7eftJrtmzZEuvWrYvm5uZ3vfczzzwT73vf+6KysjK+/vWvx3PPPRc1NTUnPbepqSmqq6vzR319/ZktCABgEBVFAJ6u7u7uWLhwYTQ3N58y5o679tpro7W1NX7wgx/E7//+78eNN954yvcVrly5Mjo7O/PH3r17CzF9AICCGjbYE+iLmpqaKCsri46Ojl7jHR0dUVdXd8L5r776arS1tcW8efPyY7lcLiIihg0bFrt27YrJkydHRMSIESPi/e9/f7z//e+P3/md34mLL7441q1bFytXrjzhvhUVFVFRUdGfSwMAGHBF8QSwvLw8Zs6cGS0tLfmxXC4XLS0tMWfOnBPOnzJlSuzcuTNaW1vzx/z58/NP+97tV7e5XC6OHDlSkHUAAAwFRfEEMCJi+fLlsXjx4pg1a1bMnj071qxZE4cPH44lS5ZERMSiRYti/Pjx0dTUFJWVlTF16tRe148aNSoiIj9++PDheOCBB2L+/PkxduzYOHjwYKxduzbefPPN+NjHPjawiwMAGEBFE4ALFiyIAwcOxKpVq6K9vT1mzJgRmzZtyv9hyJ49e6K0tO8PNMvKyuLll1+Ob37zm3Hw4MEYPXp0XHHFFbF58+a47LLLCrUMAIBBVzSfAzgU+RwhACg+Xr+L5D2AAAD0HwEIAJAYAQgAkBgBCACQGAEIAJAYAQgAkBgBCACQGAEIAJAYAQgAkBgBCACQGAEIAJAYAQgAkBgBCACQGAEIAJAYAQgAkBgBCACQGAEIAJAYAQgAkBgBCACQGAEIAJAYAQgAkBgBCACQGAEIAJAYAQgAkBgBCACQGAEIAJAYAQgAkBgBCACQGAEIAJAYAQgAkBgBCACQGAEIAJAYAQgAkBgBCACQGAEIAJAYAQgAkBgBCACQGAEIAJAYAQgAkBgBCACQGAEIAJAYAQgAkBgBCACQGAEIAJAYAQgAkBgBCACQGAEIAJAYAQgAkBgBCACQGAEIAJAYAQgAkBgBCACQGAEIAJAYAQgAkBgBCACQGAEIAJAYAQgAkBgBCACQGAEIAJAYAQgAkBgBCACQGAEIAJAYAQgAkBgBCACQGAEIAJAYAQgAkBgBCACQGAEIAJAYAQgAkJiiCsC1a9fGhAkTorKyMhoaGmLbtm19um79+vVRUlISN9xwQ37s2LFjsWLFipg2bVqMGDEixo0bF4sWLYp9+/YVavoAAENC0QTghg0bYvny5bF69erYsWNHTJ8+PebOnRv79+9/1+va2trizjvvjKuuuqrX+Ntvvx07duyIu+++O3bs2BFPPfVU7Nq1K+bPn1/IZQAADLqSLMuywZ5EXzQ0NMQVV1wRDz30UERE5HK5qK+vj9tvvz3uuuuuk17T09MTV199dSxdujQ2b94chw4dio0bN57ye/zoRz+K2bNnxxtvvBEXXnjhe86pq6srqquro7OzM6qqqs5sYQDAgPL6XSRPAI8ePRrbt2+PxsbG/FhpaWk0NjbG1q1bT3ndfffdF2PGjIlly5b16ft0dnZGSUlJjBo16qRfP3LkSHR1dfU6AACKTVEE4MGDB6Onpydqa2t7jdfW1kZ7e/tJr9myZUusW7cumpub+/Q93nnnnVixYkXcfPPNp/x/A01NTVFdXZ0/6uvrT28hAABDQFEE4Onq7u6OhQsXRnNzc9TU1Lzn+ceOHYsbb7wxsiyLhx9++JTnrVy5Mjo7O/PH3r17+3PaAAADYthgT6AvampqoqysLDo6OnqNd3R0RF1d3Qnnv/rqq9HW1hbz5s3Lj+VyuYiIGDZsWOzatSsmT54cEf8//t544434t3/7t3d9L0BFRUVUVFT0x5IAAAZNUTwBLC8vj5kzZ0ZLS0t+LJfLRUtLS8yZM+eE86dMmRI7d+6M1tbW/DF//vy49tpro7W1Nf+r2+Pxt3v37nj++edj9OjRA7YmAIDBUhRPACMili9fHosXL45Zs2bF7NmzY82aNXH48OFYsmRJREQsWrQoxo8fH01NTVFZWRlTp07tdf3xP+w4Pn7s2LH4oz/6o9ixY0c888wz0dPTk38/4W/+5m9GeXn5AK4OAGDgFE0ALliwIA4cOBCrVq2K9vb2mDFjRmzatCn/hyF79uyJ0tK+P9B888034+mnn46IiBkzZvT62ve+97245ppr+m3uAABDSdF8DuBQ5HOEAKD4eP0ukvcAAgDQfwQgAEBiBCAAQGIEIABAYgQgAEBiBCAAQGIEIABAYgQgAEBiBCAAQGIEIABAYgQgAEBiBCAAQGIEIABAYgQgAEBiBCAAQGIEIABAYgQgAEBiBCAAQGIEIABAYgQgAEBiBCAAQGIEIABAYgQgAEBiBCAAQGIEIABAYgQgAEBiBCAAQGIEIABAYgQgAEBiBCAAQGIEIABAYgQgAEBiBCAAQGIEIABAYgQgAEBiBCAAQGIEIABAYgQgAEBiBCAAQGIEIABAYgQgAEBiBCAAQGIEIABAYgQgAEBiBCAAQGIEIABAYgQgAEBiBCAAQGIEIABAYgQgAEBiBCAAQGIEIABAYgQgAEBiBCAAQGIEIABAYgQgAEBiBCAAQGIEIABAYgQgAEBiBCAAQGIEIABAYgQgAEBiBCAAQGIEIABAYgQgAEBiBCAAQGIEIABAYgQgAEBiBCAAQGKKJgDXrl0bEyZMiMrKymhoaIht27b16br169dHSUlJ3HDDDb3Gn3rqqbjuuuti9OjRUVJSEq2trYWYNgDAkFMUAbhhw4ZYvnx5rF69Onbs2BHTp0+PuXPnxv79+9/1ura2trjzzjvjqquuOuFrhw8fjiuvvDK+8pWvFGraAABDUkmWZdlgT+K9NDQ0xBVXXBEPPfRQRETkcrmor6+P22+/Pe66666TXtPT0xNXX311LF26NDZv3hyHDh2KjRs3nnBeW1tbTJw4MV588cWYMWPGac2rq6srqquro7OzM6qqqk5/YQDAgPP6XQRPAI8ePRrbt2+PxsbG/FhpaWk0NjbG1q1bT3ndfffdF2PGjIlly5b121yOHDkSXV1dvQ4AgGIz5APw4MGD0dPTE7W1tb3Ga2tro729/aTXbNmyJdatWxfNzc39Opempqaorq7OH/X19f16fwCAgTDkA/B0dXd3x8KFC6O5uTlqamr69d4rV66Mzs7O/LF3795+vT8AwEAYNtgTeC81NTVRVlYWHR0dvcY7Ojqirq7uhPNfffXVaGtri3nz5uXHcrlcREQMGzYsdu3aFZMnTz6juVRUVERFRcUZXQsAMFQM+SeA5eXlMXPmzGhpacmP5XK5aGlpiTlz5pxw/pQpU2Lnzp3R2tqaP+bPnx/XXntttLa2+rUtAJC8If8EMCJi+fLlsXjx4pg1a1bMnj071qxZE4cPH44lS5ZERMSiRYti/Pjx0dTUFJWVlTF16tRe148aNSoiotf4z372s9izZ0/s27cvIiJ27doVERF1dXUnfbIIAHCuKIoAXLBgQRw4cCBWrVoV7e3tMWPGjNi0aVP+D0P27NkTpaWn9zDz6aefzgdkRMRNN90UERGrV6+Oe+65p9/mDgAw1BTF5wAOVT5HCACKj9fvIngPIAAA/UsAAgAkRgACACRGAAIAJEYAAgAkRgACACRGAAIAJEYAAgAkRgACACRGAAIAJEYAAgAkRgACACRGAAIAJEYAAgAkRgACACRGAAIAJEYAAgAkRgACACRGAAIAJEYAAgAkRgACACRGAAIAJEYAAgAkRgACACRGAAIAJEYAAgAkRgACACRGAAIAJEYAAgAkRgACACRGAAIAJEYAAgAkRgACACRGAAIAJEYAAgAkRgACACRGAAIAJEYAAgAkRgACACRGAAIAJEYAAgAkRgACACRGAAIAJEYAAgAkRgACACRGAAIAJEYAAgAkRgACACRGAAIAJEYAAgAkRgACACRGAAIAJEYAAgAkRgACACRGAAIAJEYAAgAkRgACACRGAAIAJEYAAgAkRgACACRGAAIAJEYAAgAkRgACACRGAAIAJEYAAgAkRgACACRGAAIAJEYAAgAkRgACACSmqAJw7dq1MWHChKisrIyGhobYtm1bn65bv359lJSUxA033NBrPMuyWLVqVYwdOzaGDx8ejY2NsXv37kJMHQBgyCiaANywYUMsX748Vq9eHTt27Ijp06fH3LlzY//+/e96XVtbW9x5551x1VVXnfC1v/iLv4i/+qu/ikceeSReeOGFGDFiRMydOzfeeeedQi0DAGDQFU0Afu1rX4tbb701lixZEpdeemk88sgjcf7558djjz12ymt6enrilltuiXvvvTcmTZrU62tZlsWaNWviC1/4Qlx//fXx27/92/Gtb30r9u3bFxs3biz0cgAABk1RBODRo0dj+/bt0djYmB8rLS2NxsbG2Lp16ymvu++++2LMmDGxbNmyE772+uuvR3t7e697VldXR0NDwynveeTIkejq6up1AAAUm6IIwIMHD0ZPT0/U1tb2Gq+trY329vaTXrNly5ZYt25dNDc3n/Trx687nXs2NTVFdXV1/qivrz/dpQAADLqiCMDT1d3dHQsXLozm5uaoqanpt/uuXLkyOjs788fevXv77d4AAANl2GBPoC9qamqirKwsOjo6eo13dHREXV3dCee/+uqr0dbWFvPmzcuP5XK5iIgYNmxY7Nq1K39dR0dHjB07ttc9Z8yYcdJ5VFRUREVFxVmvBwBgMBXFE8Dy8vKYOXNmtLS05MdyuVy0tLTEnDlzTjh/ypQpsXPnzmhtbc0f8+fPj2uvvTZaW1ujvr4+Jk6cGHV1db3u2dXVFS+88MJJ7wkAcK4oiieAERHLly+PxYsXx6xZs2L27NmxZs2aOHz4cCxZsiQiIhYtWhTjx4+PpqamqKysjKlTp/a6ftSoURERvcbvuOOOuP/+++Piiy+OiRMnxt133x3jxo074fMCAQDOJUUTgAsWLIgDBw7EqlWror29PWbMmBGbNm3K/xHHnj17orT09B5ofu5zn4vDhw/HJz/5yTh06FBceeWVsWnTpqisrCzEEgAAhoSSLMuywZ5Eserq6orq6uro7OyMqqqqwZ4OANAHXr+L5D2AAAD0HwEIAJAYAQgAkBgBCACQGAEIAJAYAQgAkBgBCACQGAEIAJAYAQgAkBgBCACQGAEIAJAYAQgAkBgBCACQGAEIAJAYAQgAkBgBCACQGAEIAJCYYYM9gWKWZVlERHR1dQ3yTACAvjr+un38dTxFAvAsdHd3R0REfX39IM8EADhd3d3dUV1dPdjTGBQlWcr5e5ZyuVzs27cvRo4cGSUlJYM9nbPW1dUV9fX1sXfv3qiqqhrs6QwKe/BL9sEeRNiD4+zDubcHWZZFd3d3jBs3LkpL03w3nCeAZ6G0tDQuuOCCwZ5Gv6uqqjon/gE/G/bgl+yDPYiwB8fZh3NrD1J98ndcmtkLAJAwAQgAkJiye+65557BngRDR1lZWVxzzTUxbFi67w6wB79kH+xBhD04zj7Yg3ONPwIBAEiMXwEDACRGAAIAJEYAAgAkRgACACRGAJ7D1q5dGxMmTIjKyspoaGiIbdu2vev5hw4dittuuy3Gjh0bFRUVcckll8R3vvOdXue8+eab8fGPfzxGjx4dw4cPj2nTpsV//Md/FHIZZ62/92HChAlRUlJywnHbbbcVeilnrL/3oKenJ+6+++6YOHFiDB8+PCZPnhxf/OIXh/R/V7O/96C7uzvuuOOOuOiii2L48OHxoQ99KH70ox8Vehln7XT24Zprrjnpz/pHP/rR/DlZlsWqVati7NixMXz48GhsbIzdu3cPxFLOWH/vwVNPPRXXXXddjB49OkpKSqK1tXUglnHW+nMfjh07FitWrIhp06bFiBEjYty4cbFo0aLYt2/fQC2H05VxTlq/fn1WXl6ePfbYY9l//dd/Zbfeems2atSorKOj46TnHzlyJJs1a1b2B3/wB9mWLVuy119/Pfv3f//3rLW1NX/Oz372s+yiiy7KPvGJT2QvvPBC9tprr2XPPvts9pOf/GSglnXaCrEP+/fvz95666388dxzz2URkX3ve98boFWdnkLswQMPPJCNHj06e+aZZ7LXX389+/a3v529733vyx588MGBWtZpKcQe3Hjjjdmll16aff/73892796drV69Oquqqsr+53/+Z6CWddpOdx9++tOf9vpZf+mll7KysrLs8ccfz5/z5S9/Oauurs42btyY/fjHP87mz5+fTZw4Mfu///u/AVrV6SnEHnzrW9/K7r333qy5uTmLiOzFF18coNWcuf7eh0OHDmWNjY3Zhg0bspdffjnbunVrNnv27GzmzJkDuCpOhwA8R82ePTu77bbb8v+7p6cnGzduXNbU1HTS8x9++OFs0qRJ2dGjR095zxUrVmRXXnllv8+1kAqxD7/uM5/5TDZ58uQsl8ud9XwLoRB78NGPfjRbunRpr7E//MM/zG655Zb+mXQ/6+89ePvtt7OysrLsmWee6TX+wQ9+MPv85z/ffxPvZ6e7D7/u61//ejZy5Mjs5z//eZZlWZbL5bK6urrsq1/9av6cQ4cOZRUVFdnf/d3f9e/k+0l/78Gvev3114smAAu5D8dt27Yti4jsjTfeOOv50v/8CvgcdPTo0di+fXs0Njbmx0pLS6OxsTG2bt160muefvrpmDNnTtx2221RW1sbU6dOjS996UvR09PT65xZs2bFxz72sRgzZkxcfvnl0dzcXPD1nKlC7cOvf48nnngili5dGiUlJQVZx9ko1B586EMfipaWlnjllVciIuLHP/5xbNmyJT7ykY8UdkFnoBB78Itf/CJ6enqisrKy13XDhw+PLVu2FG4xZ+FM9uHXrVu3Lm666aYYMWJERES8/vrr0d7e3uue1dXV0dDQ0Od7DqRC7EExGqh96OzsjJKSkhg1atRZz5n+JwDPQQcPHoyenp6ora3tNV5bWxvt7e0nvea1116Lf/iHf4ienp74zne+E3fffXf85V/+Zdx///29znn44Yfj4osvjmeffTb+9E//ND796U/HN7/5zYKu50wVah9+1caNG+PQoUPxiU98or+n3y8KtQd33XVX3HTTTTFlypQ477zz4vLLL4877rgjbrnlloKu50wUYg9GjhwZc+bMiS9+8Yuxb9++6OnpiSeeeCK2bt0ab731VsHXdCbOZB9+1bZt2+Kll16KP/7jP86PHb/uTO850AqxB8VoIPbhnXfeiRUrVsTNN98cVVVVZz1n+p//ngsREZHL5WLMmDHx6KOPRllZWcycOTPefPPN+OpXvxqrV6/OnzNr1qz40pe+FBERl19+ebz00kvxyCOPxOLFiwdz+v2mL/vwq9atWxcf+chHYty4cYMw28Loyx78/d//fTz55JPxt3/7t3HZZZdFa2tr3HHHHTFu3Lhz4mehL3vwN3/zN7F06dIYP358lJWVxQc/+MG4+eabY/v27YM8+8JYt25dTJs2LWbPnj3YUxk09uCX3msfjh07FjfeeGNkWRYPP/zwAM+OvvIE8BxUU1MTZWVl0dHR0Wu8o6Mj6urqTnrN2LFj45JLLomysrL82Ac+8IFob2+Po0eP5s+59NJLe133gQ98IPbs2dPPK+gfhdqH49544414/vnnh/TTgELtwWc/+9n8U8Bp06bFwoUL48/+7M+iqampcIs5Q4Xag8mTJ8f3v//9+PnPfx579+6Nbdu2xbFjx2LSpEmFW8xZOJN9OO7w4cOxfv36WLZsWa/x49edyT0HQyH2oBgVch+Ox98bb7wRzz33nKd/Q5gAPAeVl5fHzJkzo6WlJT+Wy+WipaUl5syZc9Jrfvd3fzd+8pOfRC6Xy4+98sorMXbs2CgvL8+fs2vXrl7XvfLKK3HRRRcVYBVnr1D7cNzjjz8eY8aM6fVxEENNofbg7bffjtLS3v/6KCsr63XNUFHon4MRI0bE2LFj43//93/j2Wefjeuvv74wCzlLZ7IPx33729+OI0eOxMc//vFe4xMnToy6urpe9+zq6ooXXnjhPe85GAqxB8WoUPtwPP52794dzz//fIwePbrf504/Guy/QqEw1q9fn1VUVGTf+MY3sv/+7//OPvnJT2ajRo3K2tvbsyzLsoULF2Z33XVX/vw9e/ZkI0eOzD71qU9lu3btyp555plszJgx2f33358/Z9u2bdmwYcOyBx54INu9e3f25JNPZueff372xBNPDPj6+qoQ+5Blv/yLuQsvvDBbsWJiXXEIAAACVUlEQVTFgK7nTBRiDxYvXpyNHz8+/zEwTz31VFZTU5N97nOfG/D19UUh9mDTpk3Zv/7rv2avvfZa9t3vfjebPn161tDQcFp/QT7QTncfjrvyyiuzBQsWnPSeX/7yl7NRo0Zl//RP/5T953/+Z3b99dcP+Y+B6e89+OlPf5q9+OKL2b/8y79kEZGtX78+e/HFF7O33nqroGs5G/29D0ePHs3mz5+fXXDBBVlra2uvj4w5cuRIwdfD6ROA57C//uu/zi688MKsvLw8mz17dvbDH/4w/7Xf+73fyxYvXtzr/B/84AdZQ0NDVlFRkU2aNCl74IEHsl/84he9zvnnf/7nbOrUqVlFRUU2ZcqU7NFHHx2IpZyVQuzDs88+m0VEtmvXroFYwlnr7z3o6urKPvOZz2QXXnhhVllZmU2aNCn7/Oc/P6T/Rd/fe7Bhw4Zs0qRJWXl5eVZXV5fddttt2aFDhwZqOWfsdPfh5ZdfziIi++53v3vS++Vyuezuu+/Oamtrs4qKiuzDH/7wkP/nor/34PHHH88i4oRj9erVBVzF2evPfTj+ETgnO4bqZ6SmriTLhvBH9wMA0O+8BxAAIDECEAAgMQIQACAxAhAAIDECEAAgMQIQACAxAhAAIDECEAAgMQIQACAxAhAAIDECEAAgMQIQACAxAhAAIDECEAAgMQIQACAxAhAAIDECEAAgMQIQACAxAhAAIDECEAAgMQIQACAxAhAAIDECEAAgMQIQACAxAhAAIDECEAAgMQIQACAxAhAAIDECEAAgMQIQACAxAhAAIDH/D9Cy76jErz8eAAAAAElFTkSuQmCC'
EmptyGraph='iVBORw0KGgoAAAANSUhEUgAAAoAAAAHgCAYAAAA10dzkAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAPYQAAD2EBqD+naQAAADl0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uIDMuMC4zLCBodHRwOi8vbWF0cGxvdGxpYi5vcmcvnQurowAACMlJREFUeJzt1jEBACAMwDDAv+fhAo4mCnp2z8wsAAAyzu8AAADeMoAAADEGEAAgxgACAMQYQACAGAMIABBjAAEAYgwgAECMAQQAiDGAAAAxBhAAIMYAAgDEGEAAgBgDCAAQYwABAGIMIABAjAEEAIgxgAAAMQYQACDGAAIAxBhAAIAYAwgAEGMAAQBiDCAAQIwBBACIMYAAADEGEAAgxgACAMQYQACAGAMIABBjAAEAYgwgAECMAQQAiDGAAAAxBhAAIMYAAgDEGEAAgBgDCAAQYwABAGIMIABAjAEEAIgxgAAAMQYQACDGAAIAxBhAAIAYAwgAEGMAAQBiDCAAQIwBBACIMYAAADEGEAAgxgACAMQYQACAGAMIABBjAAEAYgwgAECMAQQAiDGAAAAxBhAAIMYAAgDEGEAAgBgDCAAQYwABAGIMIABAjAEEAIgxgAAAMQYQACDGAAIAxBhAAIAYAwgAEGMAAQBiDCAAQIwBBACIMYAAADEGEAAgxgACAMQYQACAGAMIABBjAAEAYgwgAECMAQQAiDGAAAAxBhAAIMYAAgDEGEAAgBgDCAAQYwABAGIMIABAjAEEAIgxgAAAMQYQACDGAAIAxBhAAIAYAwgAEGMAAQBiDCAAQIwBBACIMYAAADEGEAAgxgACAMQYQACAGAMIABBjAAEAYgwgAECMAQQAiDGAAAAxBhAAIMYAAgDEGEAAgBgDCAAQYwABAGIMIABAjAEEAIgxgAAAMQYQACDGAAIAxBhAAIAYAwgAEGMAAQBiDCAAQIwBBACIMYAAADEGEAAgxgACAMQYQACAGAMIABBjAAEAYgwgAECMAQQAiDGAAAAxBhAAIMYAAgDEGEAAgBgDCAAQYwABAGIMIABAjAEEAIgxgAAAMQYQACDGAAIAxBhAAIAYAwgAEGMAAQBiDCAAQIwBBACIMYAAADEGEAAgxgACAMQYQACAGAMIABBjAAEAYgwgAECMAQQAiDGAAAAxBhAAIMYAAgDEGEAAgBgDCAAQYwABAGIMIABAjAEEAIgxgAAAMQYQACDGAAIAxBhAAIAYAwgAEGMAAQBiDCAAQIwBBACIMYAAADEGEAAgxgACAMQYQACAGAMIABBjAAEAYgwgAECMAQQAiDGAAAAxBhAAIMYAAgDEGEAAgBgDCAAQYwABAGIMIABAjAEEAIgxgAAAMQYQACDGAAIAxBhAAIAYAwgAEGMAAQBiDCAAQIwBBACIMYAAADEGEAAgxgACAMQYQACAGAMIABBjAAEAYgwgAECMAQQAiDGAAAAxBhAAIMYAAgDEGEAAgBgDCAAQYwABAGIMIABAjAEEAIgxgAAAMQYQACDGAAIAxBhAAIAYAwgAEGMAAQBiDCAAQIwBBACIMYAAADEGEAAgxgACAMQYQACAGAMIABBjAAEAYgwgAECMAQQAiDGAAAAxBhAAIMYAAgDEGEAAgBgDCAAQYwABAGIMIABAjAEEAIgxgAAAMQYQACDGAAIAxBhAAIAYAwgAEGMAAQBiDCAAQIwBBACIMYAAADEGEAAgxgACAMQYQACAGAMIABBjAAEAYgwgAECMAQQAiDGAAAAxBhAAIMYAAgDEGEAAgBgDCAAQYwABAGIMIABAjAEEAIgxgAAAMQYQACDGAAIAxBhAAIAYAwgAEGMAAQBiDCAAQIwBBACIMYAAADEGEAAgxgACAMQYQACAGAMIABBjAAEAYgwgAECMAQQAiDGAAAAxBhAAIMYAAgDEGEAAgBgDCAAQYwABAGIMIABAjAEEAIgxgAAAMQYQACDGAAIAxBhAAIAYAwgAEGMAAQBiDCAAQIwBBACIMYAAADEGEAAgxgACAMQYQACAGAMIABBjAAEAYgwgAECMAQQAiDGAAAAxBhAAIMYAAgDEGEAAgBgDCAAQYwABAGIMIABAjAEEAIgxgAAAMQYQACDGAAIAxBhAAIAYAwgAEGMAAQBiDCAAQIwBBACIMYAAADEGEAAgxgACAMQYQACAGAMIABBjAAEAYgwgAECMAQQAiDGAAAAxBhAAIMYAAgDEGEAAgBgDCAAQYwABAGIMIABAjAEEAIgxgAAAMQYQACDGAAIAxBhAAIAYAwgAEGMAAQBiDCAAQIwBBACIMYAAADEGEAAgxgACAMQYQACAGAMIABBjAAEAYgwgAECMAQQAiDGAAAAxBhAAIMYAAgDEGEAAgBgDCAAQYwABAGIMIABAjAEEAIgxgAAAMQYQACDGAAIAxBhAAIAYAwgAEGMAAQBiDCAAQIwBBACIMYAAADEGEAAgxgACAMQYQACAGAMIABBjAAEAYgwgAECMAQQAiDGAAAAxBhAAIMYAAgDEGEAAgBgDCAAQYwABAGIMIABAjAEEAIgxgAAAMQYQACDGAAIAxBhAAIAYAwgAEGMAAQBiDCAAQIwBBACIMYAAADEGEAAgxgACAMQYQACAGAMIABBjAAEAYgwgAECMAQQAiDGAAAAxBhAAIMYAAgDEGEAAgBgDCAAQYwABAGIMIABAjAEEAIgxgAAAMQYQACDGAAIAxBhAAIAYAwgAEGMAAQBiDCAAQIwBBACIMYAAADEGEAAgxgACAMQYQACAGAMIABBjAAEAYgwgAECMAQQAiDGAAAAxBhAAIMYAAgDEGEAAgBgDCAAQYwABAGIMIABAjAEEAIgxgAAAMQYQACDGAAIAxBhAAIAYAwgAEGMAAQBiDCAAQIwBBACIMYAAADEGEAAgxgACAMQYQACAGAMIABBjAAEAYgwgAECMAQQAiDGAAAAxBhAAIMYAAgDEGEAAgBgDCAAQYwABAGIMIABAjAEEAIgxgAAAMQYQACDGAAIAxBhAAIAYAwgAEGMAAQBiDCAAQIwBBACIMYAAADEGEAAgxgACAMQYQACAGAMIABBjAAEAYgwgAECMAQQAiDGAAAAxBhAAIMYAAgDEGEAAgBgDCAAQYwABAGIMIABAjAEEAIgxgAAAMQYQACDGAAIAxBhAAIAYAwgAEGMAAQBiLiZ5B7ynp7JiAAAAAElFTkSuQmCC'
| 639.115385 | 11,967 | 0.945417 | 549 | 16,617 | 28.579235 | 0.857924 | 0.003187 | 0.005736 | 0.002932 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.109631 | 0.006439 | 16,617 | 25 | 11,968 | 664.68 | 0.840703 | 0 | 0 | 0 | 0 | 0.095238 | 0.955407 | 0.919179 | 0 | 1 | 0 | 0 | 0 | 1 | 0.238095 | false | 0 | 0.095238 | 0.238095 | 0.571429 | 0.047619 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 9 |
a226c9051db7710c2e9dd5a1b26cef549818ca44 | 114 | py | Python | getpy/__init__.py | ksob/getpy | 8baa4e1062b94e5ea5a8f6fd07ff3fed98887550 | [
"MIT"
] | 1 | 2019-11-14T13:10:33.000Z | 2019-11-14T13:10:33.000Z | getpy/__init__.py | ksob/getpy | 8baa4e1062b94e5ea5a8f6fd07ff3fed98887550 | [
"MIT"
] | null | null | null | getpy/__init__.py | ksob/getpy | 8baa4e1062b94e5ea5a8f6fd07ff3fed98887550 | [
"MIT"
] | 2 | 2020-06-24T05:58:04.000Z | 2020-08-03T21:22:53.000Z | from .getpy import Dict
from .getpy import Set
from .getpy_types import types
from .getpy_types import dict_types
| 22.8 | 35 | 0.824561 | 19 | 114 | 4.789474 | 0.315789 | 0.395604 | 0.32967 | 0.43956 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.140351 | 114 | 4 | 36 | 28.5 | 0.928571 | 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 | 0 | 0 | 0 | 7 |
bf803bb3884331d9d4df3ad0e6266608549c4cf9 | 947 | py | Python | foolbox/tests/batch_attacks/test_batch_gradient_sign.py | mkyybx/foolbox | 00b2dcc5ed30b12f28431e9dabe4d2bbc214d444 | [
"MIT"
] | 3 | 2021-12-25T02:29:24.000Z | 2022-02-22T02:12:30.000Z | foolbox/tests/batch_attacks/test_batch_gradient_sign.py | pige2nd/foolbox | 2daabba8355afce9dfbec3de8d71dadadcfbd10b | [
"MIT"
] | null | null | null | foolbox/tests/batch_attacks/test_batch_gradient_sign.py | pige2nd/foolbox | 2daabba8355afce9dfbec3de8d71dadadcfbd10b | [
"MIT"
] | 2 | 2020-11-27T00:03:48.000Z | 2020-11-27T00:08:04.000Z | import numpy as np
from foolbox.batch_attacks import GradientSignAttack as Attack
def test_untargeted_attack(bn_model, bn_criterion, bn_images, bn_labels):
attack = Attack(bn_model, bn_criterion)
advs = attack(bn_images, bn_labels, unpack=False)
for adv in advs:
assert adv.perturbed is not None
assert adv.distance.value < np.inf
def test_attack_eps(bn_model, bn_criterion, bn_images, bn_labels):
attack = Attack(bn_model, bn_criterion)
advs = attack(bn_images, bn_labels, unpack=False, epsilons=np.linspace(0., 1., 100)[1:])
for adv in advs:
assert adv.perturbed is not None
assert adv.distance.value < np.inf
def test_attack_gl(gl_bn_model, bn_criterion, bn_images, bn_labels):
attack = Attack(gl_bn_model, bn_criterion)
advs = attack(bn_images, bn_labels, unpack=False)
for adv in advs:
assert adv.perturbed is None
assert adv.distance.value == np.inf
| 33.821429 | 92 | 0.721225 | 146 | 947 | 4.452055 | 0.267123 | 0.073846 | 0.083077 | 0.166154 | 0.821538 | 0.806154 | 0.806154 | 0.758462 | 0.758462 | 0.758462 | 0 | 0.007864 | 0.194298 | 947 | 27 | 93 | 35.074074 | 0.844037 | 0 | 0 | 0.55 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.3 | 1 | 0.15 | false | 0 | 0.1 | 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 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
bf83908d18a3c37a9d6b85efbea98516cb78c76a | 31 | py | Python | tensorboard/tf_disabled.py | ml7/tensorboard | 6f3988ecdb3ae719585e6f278d875e381b616783 | [
"Apache-2.0"
] | null | null | null | tensorboard/tf_disabled.py | ml7/tensorboard | 6f3988ecdb3ae719585e6f278d875e381b616783 | [
"Apache-2.0"
] | null | null | null | tensorboard/tf_disabled.py | ml7/tensorboard | 6f3988ecdb3ae719585e6f278d875e381b616783 | [
"Apache-2.0"
] | null | null | null | def use_tf():
return False
| 10.333333 | 16 | 0.645161 | 5 | 31 | 3.8 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.258065 | 31 | 2 | 17 | 15.5 | 0.826087 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
bfc7dc58037698abab1c15edd165abc74033eab2 | 4,269 | py | Python | test/pyaz/bot/__init__.py | bigdatamoore/py-az-cli | 54383a4ee7cc77556f6183e74e992eec95b28e01 | [
"MIT"
] | null | null | null | test/pyaz/bot/__init__.py | bigdatamoore/py-az-cli | 54383a4ee7cc77556f6183e74e992eec95b28e01 | [
"MIT"
] | 9 | 2021-09-24T16:37:24.000Z | 2021-12-24T00:39:19.000Z | test/pyaz/bot/__init__.py | bigdatamoore/py-az-cli | 54383a4ee7cc77556f6183e74e992eec95b28e01 | [
"MIT"
] | null | null | null | import json, subprocess
from .. pyaz_utils import get_cli_name, get_params
def create(resource_group, name, kind, appid, _p=None, lang=None, description=None, display_name=None, _e=None, tags=None, location=None, sku=None, echo=None, cmk_key_vault_key_url=None):
params = get_params(locals())
command = "az bot create " + params
print(command)
output = subprocess.run(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
stdout = output.stdout.decode("utf-8")
stderr = output.stderr.decode("utf-8")
if stdout:
return json.loads(stdout)
print(stdout)
else:
raise Exception(stderr)
print(stderr)
def publish(resource_group, name, code_dir=None, proj_file_path=None, _v=None, keep_node_modules=None, timeout=None):
params = get_params(locals())
command = "az bot publish " + params
print(command)
output = subprocess.run(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
stdout = output.stdout.decode("utf-8")
stderr = output.stderr.decode("utf-8")
if stdout:
return json.loads(stdout)
print(stdout)
else:
raise Exception(stderr)
print(stderr)
def download(resource_group, name, save_path=None):
params = get_params(locals())
command = "az bot download " + params
print(command)
output = subprocess.run(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
stdout = output.stdout.decode("utf-8")
stderr = output.stderr.decode("utf-8")
if stdout:
return json.loads(stdout)
print(stdout)
else:
raise Exception(stderr)
print(stderr)
def prepare_publish(resource_group, name, sln_name, proj_file_path, code_dir=None, _v=None):
params = get_params(locals())
command = "az bot prepare-publish " + params
print(command)
output = subprocess.run(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
stdout = output.stdout.decode("utf-8")
stderr = output.stderr.decode("utf-8")
if stdout:
return json.loads(stdout)
print(stdout)
else:
raise Exception(stderr)
print(stderr)
def prepare_deploy(lang, code_dir=None, proj_file_path=None):
params = get_params(locals())
command = "az bot prepare-deploy " + params
print(command)
output = subprocess.run(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
stdout = output.stdout.decode("utf-8")
stderr = output.stderr.decode("utf-8")
if stdout:
return json.loads(stdout)
print(stdout)
else:
raise Exception(stderr)
print(stderr)
def show(resource_group, name, msbot=None):
params = get_params(locals())
command = "az bot show " + params
print(command)
output = subprocess.run(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
stdout = output.stdout.decode("utf-8")
stderr = output.stderr.decode("utf-8")
if stdout:
return json.loads(stdout)
print(stdout)
else:
raise Exception(stderr)
print(stderr)
def delete(resource_group, name):
params = get_params(locals())
command = "az bot delete " + params
print(command)
output = subprocess.run(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
stdout = output.stdout.decode("utf-8")
stderr = output.stderr.decode("utf-8")
if stdout:
return json.loads(stdout)
print(stdout)
else:
raise Exception(stderr)
print(stderr)
def update(resource_group, name, endpoint=None, description=None, display_name=None, tags=None, sku=None, app_insights_key=None, app_insights_api_key=None, app_insights_app_id=None, icon_url=None, cmk_off=None, cmk_key_vault_key_url=None):
params = get_params(locals())
command = "az bot update " + params
print(command)
output = subprocess.run(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
stdout = output.stdout.decode("utf-8")
stderr = output.stderr.decode("utf-8")
if stdout:
return json.loads(stdout)
print(stdout)
else:
raise Exception(stderr)
print(stderr)
| 36.801724 | 239 | 0.670649 | 547 | 4,269 | 5.127971 | 0.142596 | 0.079857 | 0.057041 | 0.059893 | 0.823886 | 0.823886 | 0.799643 | 0.77148 | 0.745098 | 0.697683 | 0 | 0.004751 | 0.211056 | 4,269 | 115 | 240 | 37.121739 | 0.828088 | 0 | 0 | 0.830189 | 0 | 0 | 0.049192 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.075472 | false | 0 | 0.018868 | 0 | 0.169811 | 0.226415 | 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 |
44e63aaf96b28ebfee048721e5827a19fdfb7437 | 14,572 | py | Python | scripts/_controller/_controller.py | hjw-1014/Multi-Objective-Reactive-Motion-Planning-in-Mobile-Manipulators | 9a8801e9c663174b753c4852b2313c5a3f302434 | [
"MIT"
] | null | null | null | scripts/_controller/_controller.py | hjw-1014/Multi-Objective-Reactive-Motion-Planning-in-Mobile-Manipulators | 9a8801e9c663174b753c4852b2313c5a3f302434 | [
"MIT"
] | null | null | null | scripts/_controller/_controller.py | hjw-1014/Multi-Objective-Reactive-Motion-Planning-in-Mobile-Manipulators | 9a8801e9c663174b753c4852b2313c5a3f302434 | [
"MIT"
] | null | null | null | import numpy as np
from _compute import *
import torch
k_d = 1.
ka = 0.1
kp = 1
kv = 1.
def cascade_control(tiago_env, num_path_points, current_state, xy_traj) -> list:
'''
current_state:
current_state[0] -> current position [x, y]
current_state[1] -> current velocity [dx, dy]
return: velocity command dx, [vel_x, vel_y]
'''
current_position = current_state[0]
dx = [0] * len(current_state) # y and x
current_distances_from_path_points = compute_current_distance_from_path_points_batch(current_position, xy_traj)
# ic(len(current_distances_from_path_points))
min_dist, min_dist_index = choose_min_dist_point(tiago_env, num_path_points, current_distances_from_path_points)
closest_point = xy_traj[min_dist_index]
for i in range(len(current_position)): # TODO, change on 07.24
dx[i] = -k_d * (current_position[i] - closest_point[i])
return dx
def cep_cascade_control_n_points(current_position:list, current_velocity:list, graph_rrt_son, graph_rrt_father, num: int) -> list:
''' # TODO: Return n closest points | 09.08
current_state:
current_state[0] -> current position [x, y]
current_state[1] -> current velocity [dx, dy]
return: velocity command dx, [vel_x, vel_y] or
acceleration command ddx [acc_x, acc_y] or
n acc commands [[acc_x_1, acc_y_1], [acc_x_2, acc_y_2], [acc_x_2, acc_y_2], ...]
'''
ddx = [[0., 0.] for _ in range(num)]
cur_dist_son, cur_dist_father = compute_cur_dist_graph_points(current_position, graph_rrt_son, graph_rrt_father)
closest_points = choose_n_closest_points_graph(current_position, # TODO: Return n closest points | 09.02, 09.08
cur_dist_son,
cur_dist_father,
graph_rrt_son, graph_rrt_father, num)
print("closest_points: ", closest_points)
for i in range(num):
closest_point = closest_points[i]
# Calculate dx | P control
# for i in range(len(current_position)): # TODO, change on 07.24
# dx[i] = -kp * (current_position[i] - closest_point[i])
# sum_dx = math.hypot(dx[0], dx[1])
# for ii in range(2):
# dx[ii] = dx[ii] / sum_dx
# Calculate ddx | PD control # TODO: need to add repulsive force | 09.10
for j in range(2):
ddx[i][j] = kp * (closest_point[j] - current_position[j]) + kv * (0. - current_velocity[j])
sum_ddx = math.hypot(ddx[i][0], ddx[i][1])
for jj in range(2):
ddx[i][jj] /= sum_ddx
print("ddx:", ddx)
return ddx[:]
def cep_cascade_control_rrt_tree(current_position, current_velocity, graph_rrt_son, graph_rrt_father) -> list:
'''
current_state:
current_state[0] -> current position [x, y]
current_state[1] -> current velocity [dx, dy]
return: velocity command dx, [vel_x, vel_y]
'''
dx = [0] * 2 # y and x
ddx = [0] * 2
cur_dist_son, cur_dist_father = compute_cur_dist_graph_points(current_position, graph_rrt_son, graph_rrt_father)
closest_point = choose_min_dist_point_graph_batch_viz(current_position, # TODO: Return n closest points | 09.02, 09.08
cur_dist_son,
cur_dist_father,
graph_rrt_son, graph_rrt_father)
#print("closest_point: ", closest_point)
# Calculate dx | P control
for i in range(len(current_position)): # TODO, change on 07.24
dx[i] = -kp * (current_position[i] - closest_point[i])
sum_dx = math.hypot(dx[0], dx[1])
for ii in range(2):
dx[ii] = dx[ii] / sum_dx
# Calculate ddx | PD control
for j in range(2):
# print(j)
# print(closest_point)
# print(current_position)
# print(current_velocity)
ddx[j] = kp * (closest_point[j] - current_position[j]) + kv * (0 - current_velocity[j])
sum_ddx = math.hypot(ddx[0], ddx[1])
for jj in range(2):
ddx[jj] = ddx[jj] / sum_ddx
return ddx[:]
def cascade_control_rrt_tree(tiago_env, current_state, graph_rrt_son, graph_rrt_father) -> list:
'''
current_state:
current_state[0] -> current position [x, y]
current_state[1] -> current velocity [dx, dy]
return: velocity command dx, [vel_x, vel_y]
'''
current_position = current_state[0]
dx = [0] * len(current_state) # y and x
cur_dist_son, cur_dist_father = compute_cur_dist_graph_points(current_position, graph_rrt_son, graph_rrt_father)
closest_point = choose_min_dist_point_graph_batch(tiago_env,
cur_dist_son,
cur_dist_father,
graph_rrt_son, graph_rrt_father)
for i in range(len(current_position)): # TODO, change on 07.24
dx[i] = -k_d * (current_position[i] - closest_point[i])
return dx
def cascade_control_all_points(xy_traj, min_x=-1.5, min_y=-1.5, max_x=1.5, max_y=1.5,
n_sample=301) -> np.array: # TODO: Add repulsive potential field
''' # TODO: Add on 07.24
grid_map: np.array((90601, 2))
return: uv -> np.array((90601, 2)), the values for each position is the x and y velocity
'''
# Define the grid map
n_sample = n_sample
x = np.linspace(min_x, max_x, n_sample)
y = np.linspace(min_y, max_y, n_sample)
XY = np.meshgrid(x, y) # TODO: So each step is 0.01, XY is a list with 2 arrays
xy = np.concatenate((XY[0][..., None], XY[1][..., None]), 2) # (301, 301, 2)
xy_flat = np.reshape(xy, (-1, 2)) # (90601, 2)
grid_map = xy_flat # np.array (90601, 2)
velocity_map = [] # Define the velocity map
for i in range(len(grid_map)): # Transverse all the points in the map
cur_pos = grid_map[i] # current position
dx = [0] * len(cur_pos) # -> [vel_x, vel_y]
cur_pos_in_list = cur_pos.tolist()
cur_dist_paths = compute_current_distance_from_path_points_viz(xy_traj, cur_pos_in_list) # For cuurent postion, get distance paths
min_dist, min_dist_index = choose_min_dist_point_viz_vector(
cur_dist_paths) # Get the closest point and it's index
closest_point = xy_traj[min_dist_index] # Get the closest point
# Potential field force
attractive_force = compute_attractive_potential_force(current_position=cur_pos, closest_point=closest_point)
repulive_force = compute_repulsive_potential_force(cur_pos)
for j in range(len(cur_pos)): # TODO, change on 07.24 # Based on the distance, get the attractive potential
dx[j] = attractive_force[j] + repulive_force[j] # x and y velocity
dx_arr = np.asarray(dx) # TODO: Add repulsive potential field
velocity_map.append(dx_arr)
velocity_map_arr = np.asarray(velocity_map)
return velocity_map_arr
def cascade_control_all_nodes_rrtTree_viz(
graph_rrt_son,
graph_rrt_father,
min_x=-1.5, min_y=-1.5, max_x=1.5, max_y=1.5,
n_sample=301) -> np.array: # TODO: Add repulsive potential field
''' # TODO: Add on 07.24
grid_map: np.array((90601, 2))
return: uv -> np.array((90601, 2)), the values for each position is the x and y velocity
'''
# Define the grid map
x = np.linspace(min_x, max_x, n_sample)
y = np.linspace(min_y, max_y, n_sample)
XY = np.meshgrid(x, y) # TODO: So each step is 0.01 or 0.001???, XY is a list with 2 arrays
xy = np.concatenate((XY[0][..., None], XY[1][..., None]), 2) # (301, 301, 2)
xy_flat = np.reshape(xy, (-1, 2)) # (90601, 2)
grid_map = xy_flat # np.array (90601, 2)
velocity_map = [] # Define the velocity map
for i in range(len(grid_map)): # Transverse all the points in the map
print("grid_map: ", i)
cur_pos = grid_map[i] # current position
print('cur_pos: ', cur_pos)
dx = [0] * len(cur_pos) # -> [vel_x, vel_y]
cur_pos_in_list = cur_pos.tolist()
#cur_dist_son, cur_dist_father = compute_cur_dist_graph_points_batch(cur_pos_in_list, graph_rrt_son, graph_rrt_father)
cur_dist_son, cur_dist_father = compute_cur_dist_graph_points(cur_pos_in_list, graph_rrt_son, graph_rrt_father)
closest_point = choose_min_dist_point_graph_batch_viz(
cur_pos_in_list,
cur_dist_son,
cur_dist_father,
graph_rrt_son,
graph_rrt_father) # Get the closest point and it's index
# Potential field forces
attractive_force = compute_attractive_potential_force(current_position=cur_pos, closest_point=closest_point)
repulsive_force = compute_repulsive_potential_force(cur_pos)
for j in range(len(cur_pos)): # TODO, change on 07.24 # Based on the distance, get the attractive potential
dx[j] = attractive_force[j] + repulsive_force[j] # x and y velocity
dx_arr = np.asarray(dx) # TODO: Add repulsive potential field
velocity_map.append(dx_arr)
velocity_map_arr = np.asarray(velocity_map)
return velocity_map_arr
def cep_cascade_control_rrt_tree_pos(current_position, current_velocity, graph_rrt_son, graph_rrt_father) -> list:
""" # TODO: 09.13
current_state:
current_state[0] -> current position [x, y]
current_state[1] -> current velocity [dx, dy]
return: closest point(s), [pos_x, pos_y]
"""
cur_dist_son, cur_dist_father = compute_cur_dist_graph_points(current_position, graph_rrt_son, graph_rrt_father)
closest_point = choose_min_dist_point_graph_batch_viz(current_position,
cur_dist_son,
cur_dist_father,
graph_rrt_son, graph_rrt_father)
print("closest_point: ", closest_point)
return closest_point
def cep_cascade_control_rrt_tree_n_pos(current_position, current_velocity, graph_rrt_son, graph_rrt_father, num) -> list:
""" # TODO: 09.13
current_state:
current_state[0] -> current position [x, y]
current_state[1] -> current velocity [dx, dy]
return: closest point(s), [pos_x, pos_y]
"""
cur_dist_son, cur_dist_father = compute_cur_dist_graph_points(current_position, graph_rrt_son, graph_rrt_father)
closest_points = choose_n_closest_points_graph(current_position,
cur_dist_son,
cur_dist_father,
graph_rrt_son, graph_rrt_father, num=num)
print("closest_points: ", closest_points)
return closest_points
def cep_track_father_rrt_tree(current_position, current_velocity, graph_rrt_son, graph_rrt_father, K): # TODO: added 09.20
"""
current_state:
current_state[0] -> current position [x, y]
current_state[1] -> current velocity [dx, dy]
return: acceleration command ddx, params for closest points
"""
cur_dist_son, cur_dist_father = compute_cur_dist_graph_points(current_position, graph_rrt_son, graph_rrt_father)
if K == 1:
closest_point = track_father_baseline(current_position, # TODO: Return n closest points | 09.02, 09.08
cur_dist_son,
cur_dist_father,
graph_rrt_son,
graph_rrt_father,
K=K)
# Calculate dx | P control
ddx = [0] * 2
# Calculate ddx | PD control
for j in range(2):
ddx[j] = kp * (closest_point[j] - current_position[j]) + kv * (0 - current_velocity[j])
sum_ddx = math.hypot(ddx[0], ddx[1])
for jj in range(2):
ddx[jj] = ddx[jj] / sum_ddx
return ddx[:]
else:
closest_points = track_father_baseline(current_position,
cur_dist_son,
cur_dist_father,
graph_rrt_son,
graph_rrt_father,
K=K)
#print("closest_points: ", closest_points)
num = len(closest_points)
ddx = [[0., 0.] for _ in range(num)]
dx = [[0, 0] for _ in range(num)]
x_dist_goal = []
for i in range(num):
closest_point = closest_points[i]
# Calculate dx | P control
for m in range(num): # TODO, change on 07.24
dx[i][m] = -kp * (current_position[m] - closest_point[m])
sum_dx = math.hypot(dx[i][0], dx[i][1])
for ii in range(2):
dx[i][ii] /= sum_dx
# Calculate the distance from goal point for each closest point# TODO: need to add repulsive force | 09.23
cur_x_dist = math.hypot(end_point[0] - closest_point[0], end_point[1] - closest_point[1])
x_dist_goal.append(cur_x_dist)
# Calculate ddx | PD control # TODO: need to add repulsive force | 09.10
for j in range(num):
ddx[i][j] = kp * (closest_point[j] - current_position[j]) + kv * (0. - current_velocity[j])
sum_ddx = math.hypot(ddx[i][0], ddx[i][1])
for jj in range(num):
ddx[i][jj] /= sum_ddx
closest_point = [0., 0.]
print("closest_points: ", closest_points)
print("ddx: ", ddx)
print("dx: ", dx)
# TODO: Softmax | 09.23
softmax_sum = 0
x_dist_goal_t = torch.tensor(x_dist_goal)
for i in range(num):
softmax_sum += torch.exp(x_dist_goal_t[i])
for j in range(num):
x_dist_goal_t[j] = (softmax_sum - torch.exp(x_dist_goal_t[j])) / softmax_sum
return ddx[:], x_dist_goal_t
| 43.891566 | 139 | 0.583997 | 1,997 | 14,572 | 3.947421 | 0.078618 | 0.046683 | 0.032094 | 0.046683 | 0.852975 | 0.822276 | 0.776481 | 0.740962 | 0.722441 | 0.707345 | 0 | 0.02775 | 0.317458 | 14,572 | 331 | 140 | 44.024169 | 0.76483 | 0.258647 | 0 | 0.663158 | 0 | 0 | 0.009172 | 0 | 0 | 0 | 0 | 0.02719 | 0 | 1 | 0.047368 | false | 0 | 0.015789 | 0 | 0.115789 | 0.047368 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
7867c11cdf2a51f095b189159f72c8d21be6a1a1 | 136 | py | Python | tests/core/parser/conftest.py | ameyuuno/bfpy | 5b9043ee40991e01d7db713ffd7c224656509f80 | [
"MIT"
] | null | null | null | tests/core/parser/conftest.py | ameyuuno/bfpy | 5b9043ee40991e01d7db713ffd7c224656509f80 | [
"MIT"
] | null | null | null | tests/core/parser/conftest.py | ameyuuno/bfpy | 5b9043ee40991e01d7db713ffd7c224656509f80 | [
"MIT"
] | null | null | null | import pytest
from bfpy.core.parser.parser import Parser, ParserImpl
@pytest.fixture
def parser() -> Parser:
return ParserImpl()
| 15.111111 | 54 | 0.75 | 17 | 136 | 6 | 0.588235 | 0.235294 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.154412 | 136 | 8 | 55 | 17 | 0.886957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | true | 0 | 0.4 | 0.2 | 0.8 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 7 |
78a292ac86f0d53b80983f2e36739ad5b9a34e4a | 6,705 | py | Python | tests/test_aggregate_data.py | Jay54520/data-aggregrate-demo | d683d0bba4603a46d6c5d026aeea071c5633cff8 | [
"Apache-2.0"
] | null | null | null | tests/test_aggregate_data.py | Jay54520/data-aggregrate-demo | d683d0bba4603a46d6c5d026aeea071c5633cff8 | [
"Apache-2.0"
] | 11 | 2018-02-02T07:46:03.000Z | 2018-02-03T13:56:45.000Z | tests/test_aggregate_data.py | Jay54520/data-aggregrate-demo | d683d0bba4603a46d6c5d026aeea071c5633cff8 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import datetime
import time
import pytz
from dateutil.relativedelta import relativedelta
import settings
from tasks import create_order, aggregate
from tests.conftest import order_coll, aggregate_coll
class TestAggregateData:
def setup_class(self):
self.order_coll = next(order_coll())
self.aggregate_coll = next(aggregate_coll())
def _generate_data(self, date_type, end_time=None):
end_time = end_time or datetime.datetime.now(pytz.timezone(settings.LOCAL_TZ))
if date_type == settings.DATE_TYPE_MINUTELY:
create_order(use_test_db=True, created_time=end_time - datetime.timedelta(minutes=2))
create_order(use_test_db=True, created_time=end_time - datetime.timedelta(minutes=1))
elif date_type == settings.DATE_TYPE_HOURLY:
create_order(use_test_db=True, created_time=end_time - datetime.timedelta(minutes=2),
date_type=settings.DATE_TYPE_MINUTELY)
create_order(use_test_db=True, created_time=end_time - datetime.timedelta(minutes=1),
date_type=settings.DATE_TYPE_MINUTELY)
elif date_type == settings.DATE_TYPE_DAILY:
create_order(use_test_db=True, created_time=end_time - datetime.timedelta(hours=2),
date_type=settings.DATE_TYPE_HOURLY)
create_order(use_test_db=True, created_time=end_time - datetime.timedelta(hours=1),
date_type=settings.DATE_TYPE_HOURLY)
elif date_type == settings.DATE_TYPE_WEEKLY:
create_order(use_test_db=True, created_time=end_time - datetime.timedelta(days=2),
date_type=settings.DATE_TYPE_DAILY)
create_order(use_test_db=True, created_time=end_time - datetime.timedelta(days=1),
date_type=settings.DATE_TYPE_DAILY)
elif date_type == settings.DATE_TYPE_MONTHLY:
create_order(use_test_db=True, created_time=end_time - datetime.timedelta(days=2),
date_type=settings.DATE_TYPE_DAILY)
create_order(use_test_db=True, created_time=end_time - datetime.timedelta(days=1),
date_type=settings.DATE_TYPE_DAILY)
elif date_type == settings.DATE_TYPE_YEARLY:
create_order(use_test_db=True, created_time=end_time - relativedelta(months=2),
date_type=settings.DATE_TYPE_MONTHLY)
create_order(use_test_db=True, created_time=end_time - relativedelta(months=1),
date_type=settings.DATE_TYPE_MONTHLY)
else:
raise ValueError('日期类型不正确')
def teardown_method(self):
self.order_coll.database.client.drop_database(settings.TEST_PAY_DB)
def test_minutely(self):
local_now = datetime.datetime(
2016, 1, 1,
tzinfo=pytz.timezone(settings.LOCAL_TZ)
)
self._generate_data(settings.DATE_TYPE_MINUTELY, local_now)
async_result = aggregate(use_test_db=True, local_now=local_now)
self.is_task_success(async_result)
docs = list(self.aggregate_coll.find({
settings.DATE_TYPE: settings.DATE_TYPE_MINUTELY
}))
assert len(docs) == 1
doc = docs[0]
assert doc[settings.DATE_TYPE] == settings.DATE_TYPE_MINUTELY
assert doc[settings.SALES] == 1
def test_hourly(self):
local_now = datetime.datetime(
2016, 1, 1,
tzinfo=pytz.timezone(settings.LOCAL_TZ)
)
self._generate_data(settings.DATE_TYPE_HOURLY, local_now)
async_result = aggregate(use_test_db=True, local_now=local_now)
self.is_task_success(async_result)
docs = list(self.aggregate_coll.find({
settings.DATE_TYPE: settings.DATE_TYPE_HOURLY
}))
assert len(docs) == 1
doc = docs[0]
assert doc[settings.DATE_TYPE] == settings.DATE_TYPE_HOURLY
assert doc[settings.SALES] == 2
def test_daily(self):
local_now = datetime.datetime(
2016, 1, 1,
tzinfo=pytz.timezone(settings.LOCAL_TZ)
)
self._generate_data(settings.DATE_TYPE_DAILY, local_now)
async_result = aggregate(use_test_db=True, local_now=local_now)
self.is_task_success(async_result)
docs = list(self.aggregate_coll.find({
settings.DATE_TYPE: settings.DATE_TYPE_DAILY
}))
assert len(docs) == 1
doc = docs[0]
assert doc[settings.DATE_TYPE] == settings.DATE_TYPE_DAILY
assert doc[settings.SALES] == 2
def test_weekly(self):
local_now = datetime.datetime(
2016, 1, 4,
tzinfo=pytz.timezone(settings.LOCAL_TZ)
)
self._generate_data(settings.DATE_TYPE_WEEKLY, local_now)
async_result = aggregate(use_test_db=True, local_now=local_now)
self.is_task_success(async_result)
docs = list(self.aggregate_coll.find({
settings.DATE_TYPE: settings.DATE_TYPE_WEEKLY
}))
assert len(docs) == 1
doc = docs[0]
assert doc[settings.DATE_TYPE] == settings.DATE_TYPE_WEEKLY
assert doc[settings.SALES] == 2
def test_monthly(self):
local_now = datetime.datetime(
2016, 1, 1,
tzinfo=pytz.timezone(settings.LOCAL_TZ)
)
self._generate_data(settings.DATE_TYPE_MONTHLY, local_now)
async_result = aggregate(use_test_db=True, local_now=local_now)
self.is_task_success(async_result)
docs = list(self.aggregate_coll.find({
settings.DATE_TYPE: settings.DATE_TYPE_MONTHLY
}))
assert len(docs) == 1
doc = docs[0]
assert doc[settings.DATE_TYPE] == settings.DATE_TYPE_MONTHLY
assert doc[settings.SALES] == 2
def test_yearly(self):
local_now = datetime.datetime(
2016, 1, 1,
tzinfo=pytz.timezone(settings.LOCAL_TZ)
)
self._generate_data(settings.DATE_TYPE_YEARLY, local_now)
async_result = aggregate(use_test_db=True, local_now=local_now)
self.is_task_success(async_result)
docs = list(self.aggregate_coll.find({
settings.DATE_TYPE: settings.DATE_TYPE_YEARLY
}))
assert len(docs) == 1
doc = docs[0]
assert doc[settings.DATE_TYPE] == settings.DATE_TYPE_YEARLY
assert doc[settings.SALES] == 2
def is_task_success(self, async_result):
counter = 0
while not async_result.successful():
if counter > 30:
raise Exception('任务超时')
time.sleep(0.1)
counter += 1
return True
| 41.134969 | 97 | 0.647875 | 847 | 6,705 | 4.809917 | 0.106257 | 0.123711 | 0.180658 | 0.137457 | 0.830633 | 0.824006 | 0.783505 | 0.751841 | 0.72435 | 0.72435 | 0 | 0.014747 | 0.261745 | 6,705 | 162 | 98 | 41.388889 | 0.808283 | 0.003132 | 0 | 0.503497 | 0 | 0 | 0.001646 | 0 | 0 | 0 | 0 | 0 | 0.125874 | 1 | 0.06993 | false | 0 | 0.048951 | 0 | 0.132867 | 0 | 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 |
78cf694f11709b68e95dd9e4fefec586a55a007d | 22,639 | py | Python | main.py | muondu/Reverse-game-Teams | 9ebb77f9d711bbdd421e907d1e39b5cb16451469 | [
"MIT"
] | 1 | 2020-11-03T12:02:34.000Z | 2020-11-03T12:02:34.000Z | main.py | muondu/Reverse-game-Teams | 9ebb77f9d711bbdd421e907d1e39b5cb16451469 | [
"MIT"
] | 6 | 2020-10-29T12:35:53.000Z | 2020-10-29T13:22:40.000Z | main.py | muondu/Reverse-game-Teams | 9ebb77f9d711bbdd421e907d1e39b5cb16451469 | [
"MIT"
] | null | null | null | import datetime as time
now = time.datetime.now()
hour = now.hour
if hour < 12:
print("Good morning")
elif hour > 11 and hour < 18:
print("Good afternoon")
elif hour > 18 and hour < 19:
print("Good evening")
else:
print('Good night.')
def username_func():
global username
username = input("Enter your name: ")
username_func()
if len(username) >= 3:
def gender_func():
global gender
gender = input("""
Are you:
Male(m)/
Female(F)/
Dont wish to say(d)
:
""")
gender_func()
if gender == "m" or gender == "M" or gender == "male" or gender == "Male":
def team_func():
global team
team = input("""Which team do you want to join:
a Team Nesh.Motto(We will never give up).
b Team Malli.Motto(Team work makes the dream work).
:
""")
if team == "a" or team == "A" or team == "Team Nesh" or team == "team Nesh":
print("Welcome to Team Nesh! Our Motto is we will never give up.")
def options():
option = input("""
Do you want to
a Play the game
b See the rules
:
""")
if option == "a" or option == "A" or option == "Play the game" or option == "play the game":
def reverse_func(s):
return s == s[::-1]
s = input("Enter a the word to check its reverse: ")
answer = reverse_func(s)
if answer:
print("You scored a point")
sum1 = 0
for num in sum1:
sum1 += int(num)
nal = [item for a in sum1 for item in a]
print(sum1)
def try_again_func():
try_again = input("""
Do you want to
a Exit the game
B Play again
:
""")
if try_again == "b" or try_again == "B" or try_again == "Play again" or try_again == "play again":
options()
elif try_again == "a" or try_again == "A" or try_again == "Exit game" or try_again == "exit game":
print("Good bye")
try_again_func()
else:
print("You did not get a point.")
def try_again_func():
try_again = input("""
Do you want to
a Exit the game
B Play again
:
""")
if try_again == "b" or try_again == "B" or try_again == "Play again" or try_again == "play again":
options()
elif try_again == "a" or try_again == "A" or try_again == "Exit game" or try_again == "exit game":
print("Good bye")
try_again_func()
elif option == "b" or option == "B" or option == "See the rules" or option == "see the rules":
print("These are the rules.")
print("""
1. Enter word that you think can be read forwards and backwards
2. if it is correct you will score 1 point.
3. If it is wrong you get 0 points.
""")
options()
else:
print("I did not understand you. Please try again.")
options()
options()
elif team == "b" or team == "B" or team == "Team Malli" or team == "team Malli":
print("Welcome to Team Malli! Our Motto is team work makes the dream work")
def options():
option = input("""
Do you want to
a Play the game
b See the rules
:
""")
if option == "a" or option == "A" or option == "Play the game" or option == "play the game":
def reverse_func(s):
return s == s[::-1]
s = input("Enter a the word to check its reverse: ")
answer = reverse_func(s)
if answer:
print("You scored a point")
sum1 = 0
for num in sum1:
sum1 += int(num)
nal = [item for a in sum1 for item in a]
print("Your team has now ",sum1," points")
def try_again_func():
try_again = input("""
Do you want to
a Exit the game
B Play again
:
""")
if try_again == "b" or try_again == "B" or try_again == "Play again" or try_again == "play again":
options()
elif try_again == "a" or try_again == "A" or try_again == "Exit game" or try_again == "exit game":
print("Good bye")
try_again_func()
else:
print("You did not get a point.")
def try_again_func():
try_again = input("""
Do you want to
a Exit the game
B Play again
:
""")
if try_again == "b" or try_again == "B" or try_again == "Play again" or try_again == "play again":
options()
elif try_again == "a" or try_again == "A" or try_again == "Exit game" or try_again == "exit game":
print("Good bye")
try_again_func()
elif option == "b" or option == "B" or option == "See the rules" or option == "see the rules":
print("These are the rules.")
print("""
1. Enter word that you think can be read forwards and backwards
2. if it is correct you will score 1 point.
3. If it is wrong you get 0 points.
""")
options()
else:
print("I did not understand you. Please try again.")
options()
options()
else:
print("I did not understand you")
team_func()
elif gender == "f" or gender == "F" or gender == "female" or gender == "Female":
def team_func():
global team
team = input("""Which team do you want to join:
a Team Nesh.Motto(We will never give up).
b Team Malli.Motto(Team work makes the dream work).
:
""")
if team == "a" or team == "A" or team == "Team Nesh" or team == "team Nesh":
print("Welcome to Team Nesh! Our Motto is we will never give up.")
def options():
option = input("""
Do you want to
a Play the game
b See the rules
:
""")
if option == "a" or option == "A" or option == "Play the game" or option == "play the game":
def reverse_func(s):
return s == s[::-1]
s = input("Enter a the word to check its reverse: ")
answer = reverse_func(s)
if answer:
print("You scored a point")
sum1 = 0
for num in sum1:
sum1 += int(num)
nal = [item for a in sum1 for item in a]
print(sum1)
def try_again_func():
try_again = input("""
Do you want to
a Exit the game
B Play again
:
""")
if try_again == "b" or try_again == "B" or try_again == "Play again" or try_again == "play again":
options()
elif try_again == "a" or try_again == "A" or try_again == "Exit game" or try_again == "exit game":
print("Good bye")
try_again_func()
else:
print("You did not get a point.")
def try_again_func():
try_again = input("""
Do you want to
a Exit the game
B Play again
:
""")
if try_again == "b" or try_again == "B" or try_again == "Play again" or try_again == "play again":
options()
elif try_again == "a" or try_again == "A" or try_again == "Exit game" or try_again == "exit game":
print("Good bye")
try_again_func()
elif option == "b" or option == "B" or option == "See the rules" or option == "see the rules":
print("These are the rules.")
print("""
1. Enter word that you think can be read forwards and backwards
2. if it is correct you will score 1 point.
3. If it is wrong you get 0 points.
""")
options()
else:
print("I did not understand you. Please try again.")
options()
options()
elif team == "b" or team == "B" or team == "Team Malli" or team == "team Malli":
print("Welcome to Team Malli! Our Motto is team work makes the dream work")
def options():
option = input("""
Do you want to
a Play the game
b See the rules
:
""")
if option == "a" or option == "A" or option == "Play the game" or option == "play the game":
def reverse_func(s):
return s == s[::-1]
s = input("Enter a the word to check its reverse: ")
answer = reverse_func(s)
if answer:
print("You scored a point")
sum1 = 0
for num in sum1:
sum1 += int(num)
nal = [item for a in sum1 for item in a]
print(sum1)
def try_again_func():
try_again = input("""
Do you want to
a Exit the game
B Play again
:
""")
if try_again == "b" or try_again == "B" or try_again == "Play again" or try_again == "play again":
options()
elif try_again == "a" or try_again == "A" or try_again == "Exit game" or try_again == "exit game":
print("Good bye")
try_again_func()
else:
print("You did not get a point.")
def try_again_func():
try_again = input("""
Do you want to
a Exit the game
B Play again
:
""")
if try_again == "b" or try_again == "B" or try_again == "Play again" or try_again == "play again":
options()
elif try_again == "a" or try_again == "A" or try_again == "Exit game" or try_again == "exit game":
print("Good bye")
try_again_func()
elif option == "b" or option == "B" or option == "See the rules" or option == "see the rules":
print("These are the rules.")
print("""
1. Enter word that you think can be read forwards and backwards
2. if it is correct you will score 1 point.
3. If it is wrong you get 0 points.
""")
options()
else:
print("I did not understand you. Please try again.")
options()
options()
else:
print("I did not understand you")
team_func()
elif gender == "d" or gender == "D" or gender == "other" or gender == "Other":
def team_func():
global team
team = input("""Which team do you want to join:
a Team Nesh.Motto(We will never give up).
b Team Malli.Motto(Team work makes the dream work).
:
""")
if team == "a" or team == "A" or team == "Team Nesh" or team == "team Nesh":
print("Welcome to Team Nesh! Our Motto is we will never give up.")
def options():
option = input("""
Do you want to
a Play the game
b See the rules
:
""")
if option == "a" or option == "A" or option == "Play the game" or option == "play the game":
def reverse_func(s):
return s == s[::-1]
s = input("Enter a the word to check its reverse: ")
answer = reverse_func(s)
if answer:
print("You scored a point")
sum1 = 0
for num in sum1:
sum1 += int(num)
nal = [item for a in sum1 for item in a]
print(sum1)
def try_again_func():
try_again = input("""
Do you want to
a Exit the game
B Play again
:
""")
if try_again == "b" or try_again == "B" or try_again == "Play again" or try_again == "play again":
options()
elif try_again == "a" or try_again == "A" or try_again == "Exit game" or try_again == "exit game":
print("Good bye")
try_again_func()
else:
print("You did not get a point.")
def try_again_func():
try_again = input("""
Do you want to
a Exit the game
B Play again
:
""")
if try_again == "b" or try_again == "B" or try_again == "Play again" or try_again == "play again":
options()
elif try_again == "a" or try_again == "A" or try_again == "Exit game" or try_again == "exit game":
print("Good bye")
try_again_func()
elif option == "b" or option == "B" or option == "See the rules" or option == "see the rules":
print("These are the rules.")
print("""
1. Enter word that you think can be read forwards and backwards
2. if it is correct you will score 1 point.
3. If it is wrong you get 0 points.
""")
options()
else:
print("I did not understand you. Please try again.")
options()
options()
elif team == "b" or team == "B" or team == "Team Malli" or team == "team Malli":
print("Welcome to Team Malli! Our Motto is team work makes the dream work")
def options():
option = input("""
Do you want to
a Play the game
b See the rules
:
""")
if option == "a" or option == "A" or option == "Play the game" or option == "play the game":
def reverse_func(s):
return s == s[::-1]
s = input("Enter a the word to check its reverse: ")
answer = reverse_func(s)
if answer:
print("You scored a point")
sum1 = 0
for num in sum1:
sum1 += int(num)
nal = [item for a in sum1 for item in a]
print(sum1)
def try_again_func():
try_again = input("""
Do you want to
a Exit the game
B Play again
:
""")
if try_again == "b" or try_again == "B" or try_again == "Play again" or try_again == "play again":
options()
elif try_again == "a" or try_again == "A" or try_again == "Exit game" or try_again == "exit game":
print("Good bye")
try_again_func()
else:
print("You did not get a point.")
def try_again_func():
try_again = input("""
Do you want to
a Exit the game
B Play again
:
""")
if try_again == "b" or try_again == "B" or try_again == "Play again" or try_again == "play again":
options()
elif try_again == "a" or try_again == "A" or try_again == "Exit game" or try_again == "exit game":
print("Good bye")
try_again_func()
elif option == "b" or option == "B" or option == "See the rules" or option == "see the rules":
print("These are the rules.")
print("""
1. Enter word that you think can be read forwards and backwards
2. if it is correct you will score 1 point.
3. If it is wrong you get 0 points.
""")
options()
else:
print("I did not understand you. Please try again.")
options()
options()
else:
print("I did not understand you")
team_func()
else:
print("I did not understand you")
gender_func()
else:
print("I did not understand you")
| 46.014228 | 130 | 0.341181 | 2,091 | 22,639 | 3.608321 | 0.054998 | 0.146322 | 0.095427 | 0.03499 | 0.937972 | 0.937972 | 0.937972 | 0.937972 | 0.929755 | 0.929755 | 0 | 0.008772 | 0.582049 | 22,639 | 491 | 131 | 46.107943 | 0.788628 | 0 | 0 | 0.885167 | 0 | 0 | 0.355404 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.069378 | false | 0 | 0.002392 | 0 | 0.086124 | 0.150718 | 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 |
153ecb45fef28ba97b7cdecfb478058ebbeeb3fa | 211 | py | Python | apps/07_wizard_battle/you_try/actors.py | StarfishM/python-jumpstart-course-demos | b3a705d874ce862cb715d2246b9b5c937290b49d | [
"MIT"
] | 2 | 2019-01-03T11:58:32.000Z | 2021-07-07T08:07:54.000Z | apps/07_wizard_battle/you_try/actors.py | StarfishM/python-jumpstart-course-demos | b3a705d874ce862cb715d2246b9b5c937290b49d | [
"MIT"
] | null | null | null | apps/07_wizard_battle/you_try/actors.py | StarfishM/python-jumpstart-course-demos | b3a705d874ce862cb715d2246b9b5c937290b49d | [
"MIT"
] | 1 | 2021-07-07T08:07:58.000Z | 2021-07-07T08:07:58.000Z | class Wizard:
def __init__(self, name, level):
self.name = name
self.level = level
class Creature:
def __init__(self, name, level):
self.name = name
self.level = level
| 17.583333 | 36 | 0.587678 | 26 | 211 | 4.461538 | 0.307692 | 0.275862 | 0.189655 | 0.258621 | 0.793103 | 0.793103 | 0.793103 | 0.793103 | 0.793103 | 0.793103 | 0 | 0 | 0.317536 | 211 | 11 | 37 | 19.181818 | 0.805556 | 0 | 0 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.5 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 11 |
1546c35c299dc3d0672a556f04912b6727d5025b | 38 | py | Python | dataset/helpers/__init__.py | RobertCsordas/modules | efdb8790b074862581e035c9ab5bf889440a8023 | [
"BSD-3-Clause"
] | 22 | 2020-10-19T07:40:01.000Z | 2022-03-24T15:26:34.000Z | dataset/helpers/__init__.py | xdever/modules | efdb8790b074862581e035c9ab5bf889440a8023 | [
"BSD-3-Clause"
] | 6 | 2020-10-19T23:57:23.000Z | 2022-03-12T00:51:58.000Z | dataset/helpers/__init__.py | xdever/modules | efdb8790b074862581e035c9ab5bf889440a8023 | [
"BSD-3-Clause"
] | 5 | 2020-11-30T00:17:34.000Z | 2021-06-26T11:43:24.000Z | from .split_digits import split_digits | 38 | 38 | 0.894737 | 6 | 38 | 5.333333 | 0.666667 | 0.6875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.078947 | 38 | 1 | 38 | 38 | 0.914286 | 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 |
15648a5ea5907c050623ec2d88740f999f670b17 | 11,638 | py | Python | tests/test_path.py | EatBreatheCode/ColorHighlighter | 2da73a611393d4fa5e008a5c71d5333763a4e87c | [
"MIT"
] | null | null | null | tests/test_path.py | EatBreatheCode/ColorHighlighter | 2da73a611393d4fa5e008a5c71d5333763a4e87c | [
"MIT"
] | null | null | null | tests/test_path.py | EatBreatheCode/ColorHighlighter | 2da73a611393d4fa5e008a5c71d5333763a4e87c | [
"MIT"
] | null | null | null | """Tests for path module."""
import os
import unittest
from ColorHighlighter import path, sublime # pylint: disable=no-name-in-module
from ColorHighlighter.settings import COLOR_HIGHLIGHTER_SETTINGS_NAME
from mockito import unstub, when
class NormalizePathForStTest(unittest.TestCase):
"""Tests for normalize_path_for_st."""
def test_normalize(self):
"""Test normalize returns it's argument."""
test_path = "/a/b/c.txt"
self.assertEqual(test_path, path.normalize_path_for_st(test_path))
def test_normalize_windows(self):
"""Test normalize returns a linux style path in windows."""
when(sublime).platform().thenReturn("windows")
self.assertEqual("a/b/c.txt", path.normalize_path_for_st("a\\b\\c.txt"))
unstub(sublime)
class PackagesPathTest(unittest.TestCase):
"""Tests for packages_path."""
def test_path(self):
"""Test get relative packages path."""
test_path = "/a/b/Packages"
when(sublime).packages_path().thenReturn(test_path)
self.assertEqual("Packages", path.packages_path(path.RELATIVE))
unstub(sublime)
def test_absolute_path(self):
"""Test get absolute packages path."""
test_path = "/a/b/Packages"
when(sublime).packages_path().thenReturn(test_path)
self.assertEqual(test_path, path.packages_path(path.ABSOLUTE))
unstub(sublime)
class DataPathTest(unittest.TestCase):
"""Tests for data_path."""
def test_path(self):
"""Test get relative data path."""
test_path = "/a/b/Packages"
when(os.path).exists(test_path + "/ColorHighlighter/" + COLOR_HIGHLIGHTER_SETTINGS_NAME).thenReturn(True)
when(sublime).packages_path().thenReturn(test_path)
self.assertEqual("Packages/User/ColorHighlighter", path.data_path(path.RELATIVE))
unstub(sublime)
unstub(os.path)
def test_path_package(self):
"""Test get relative data path with a package installation."""
test_path = "/a/b/Packages"
when(os.path).exists(test_path + "/ColorHighlighter/" + COLOR_HIGHLIGHTER_SETTINGS_NAME).thenReturn(False)
when(sublime).packages_path().thenReturn(test_path)
self.assertEqual("Packages/User/Color Highlighter", path.data_path(path.RELATIVE))
unstub(sublime)
unstub(os.path)
def test_absolute_path(self):
"""Test get absolute data path."""
test_path = "/a/b/Packages"
when(os.path).exists(test_path + "/ColorHighlighter/" + COLOR_HIGHLIGHTER_SETTINGS_NAME).thenReturn(True)
when(sublime).packages_path().thenReturn(test_path)
self.assertEqual(test_path + "/User/ColorHighlighter", path.data_path(path.ABSOLUTE))
unstub(sublime)
unstub(os.path)
class IconsPathTest(unittest.TestCase):
"""Tests for icons_path."""
def test_path(self):
"""Test get relative icons path."""
test_path = "/a/b/Packages"
when(os.path).exists(test_path + "/ColorHighlighter/" + COLOR_HIGHLIGHTER_SETTINGS_NAME).thenReturn(True)
when(sublime).packages_path().thenReturn(test_path)
self.assertEqual("Packages/User/ColorHighlighter/icons", path.icons_path(path.RELATIVE))
unstub(sublime)
unstub(os.path)
def test_path_package(self):
"""Test get relative icons path with a package installation."""
test_path = "/a/b/Packages"
when(os.path).exists(test_path + "/ColorHighlighter/" + COLOR_HIGHLIGHTER_SETTINGS_NAME).thenReturn(False)
when(sublime).packages_path().thenReturn(test_path)
self.assertEqual("Packages/User/Color Highlighter/icons", path.icons_path(path.RELATIVE))
unstub(sublime)
unstub(os.path)
def test_absolute_path(self):
"""Test get absolute icons path."""
test_path = "/a/b/Packages"
when(os.path).exists(test_path + "/ColorHighlighter/" + COLOR_HIGHLIGHTER_SETTINGS_NAME).thenReturn(True)
when(sublime).packages_path().thenReturn(test_path)
self.assertEqual(test_path + "/User/ColorHighlighter/icons", path.icons_path(path.ABSOLUTE))
unstub(sublime)
unstub(os.path)
class ThemesPathTest(unittest.TestCase):
"""Tests for themes_path."""
def test_path(self):
"""Test get relative themes path."""
test_path = "/a/b/Packages"
when(os.path).exists(test_path + "/ColorHighlighter/" + COLOR_HIGHLIGHTER_SETTINGS_NAME).thenReturn(True)
when(sublime).packages_path().thenReturn(test_path)
self.assertEqual("Packages/User/ColorHighlighter/themes", path.themes_path(path.RELATIVE))
unstub(sublime)
unstub(os.path)
def test_path_package(self):
"""Test get relative themes path with a package installation."""
test_path = "/a/b/Packages"
when(os.path).exists(test_path + "/ColorHighlighter/" + COLOR_HIGHLIGHTER_SETTINGS_NAME).thenReturn(False)
when(sublime).packages_path().thenReturn(test_path)
self.assertEqual("Packages/User/Color Highlighter/themes", path.themes_path(path.RELATIVE))
unstub(sublime)
unstub(os.path)
def test_absolute_path(self):
"""Test get absolute themes path."""
test_path = "/a/b/Packages"
when(os.path).exists(test_path + "/ColorHighlighter/" + COLOR_HIGHLIGHTER_SETTINGS_NAME).thenReturn(True)
when(sublime).packages_path().thenReturn(test_path)
self.assertEqual(test_path + "/User/ColorHighlighter/themes", path.themes_path(path.ABSOLUTE))
unstub(sublime)
unstub(os.path)
class ColorPickerPathTest(unittest.TestCase):
"""Tests for color_picker_path."""
def test_path(self):
"""Test get relative color picker path."""
test_path = "/a/b/Packages"
when(os.path).exists(test_path + "/ColorHighlighter/" + COLOR_HIGHLIGHTER_SETTINGS_NAME).thenReturn(True)
when(sublime).packages_path().thenReturn(test_path)
self.assertEqual("Packages/User/ColorHighlighter/ColorPicker", path.color_picker_path(path.RELATIVE))
unstub(sublime)
unstub(os.path)
def test_absolute_path(self):
"""Test get absolute color picker path."""
test_path = "/a/b/Packages"
when(os.path).exists(test_path + "/ColorHighlighter/" + COLOR_HIGHLIGHTER_SETTINGS_NAME).thenReturn(True)
when(sublime).packages_path().thenReturn(test_path)
self.assertEqual(test_path + "/User/ColorHighlighter/ColorPicker", path.color_picker_path(path.ABSOLUTE))
unstub(sublime)
unstub(os.path)
class ColorPickerFileTest(unittest.TestCase):
"""Tests for color_picker_file."""
def test_path(self):
"""Test get relative color picker path."""
test_path = "/a/b/Packages"
when(os.path).exists(test_path + "/ColorHighlighter/" + COLOR_HIGHLIGHTER_SETTINGS_NAME).thenReturn(True)
when(sublime).packages_path().thenReturn(test_path)
platform = "platform"
arch = "arch"
when(sublime).platform().thenReturn(platform)
when(sublime).arch().thenReturn(arch)
self.assertEqual(
"Packages/User/ColorHighlighter/ColorPicker/ColorPicker_%s_%s" % (platform, arch),
path.color_picker_file(path.RELATIVE))
unstub(sublime)
unstub(os.path)
def test_path_package(self):
"""Test get relative color picker path with a package installation."""
test_path = "/a/b/Packages"
when(os.path).exists(test_path + "/ColorHighlighter/" + COLOR_HIGHLIGHTER_SETTINGS_NAME).thenReturn(False)
when(sublime).packages_path().thenReturn(test_path)
platform = "platform"
arch = "arch"
when(sublime).platform().thenReturn(platform)
when(sublime).arch().thenReturn(arch)
self.assertEqual(
"Packages/User/Color Highlighter/ColorPicker/ColorPicker_%s_%s" % (platform, arch),
path.color_picker_file(path.RELATIVE))
unstub(sublime)
unstub(os.path)
def test_path_windows(self):
"""Test get relative color picker path."""
test_path = "/a/b/Packages"
when(os.path).exists(test_path + "/ColorHighlighter/" + COLOR_HIGHLIGHTER_SETTINGS_NAME).thenReturn(True)
when(sublime).packages_path().thenReturn(test_path)
when(sublime).platform().thenReturn("windows")
self.assertEqual(
"Packages/User/ColorHighlighter/ColorPicker/ColorPicker_win.exe",
path.color_picker_file(path.RELATIVE))
unstub(sublime)
unstub(os.path)
def test_absolute_path(self):
"""Test get absolute color picker path."""
test_path = "/a/b/Packages"
when(os.path).exists(test_path + "/ColorHighlighter/" + COLOR_HIGHLIGHTER_SETTINGS_NAME).thenReturn(True)
when(sublime).packages_path().thenReturn(test_path)
platform = "platform"
arch = "arch"
when(sublime).platform().thenReturn(platform)
when(sublime).arch().thenReturn(arch)
self.assertEqual(
test_path + "/User/ColorHighlighter/ColorPicker/ColorPicker_%s_%s" % (platform, arch),
path.color_picker_file(path.ABSOLUTE))
unstub(sublime)
unstub(os.path)
class FakeColorSchemeTest(unittest.TestCase):
"""Tests for fake_color_scheme_path."""
def test_path(self):
"""Test get a fake color scheme path for a color scheme."""
test_path = "/a/b/Packages"
scheme = "Scheme.tmTheme"
when(os.path).exists(test_path + "/ColorHighlighter/" + COLOR_HIGHLIGHTER_SETTINGS_NAME).thenReturn(True)
when(sublime).packages_path().thenReturn(test_path)
self.assertEqual(
"Packages/User/ColorHighlighter/themes/" + scheme,
path.fake_color_scheme_path("Color/" + scheme, path.RELATIVE))
unstub(sublime)
unstub(os.path)
def test_absolute_path(self):
"""Test get absolute themes path."""
test_path = "/a/b/Packages"
scheme = "Scheme.tmTheme"
when(os.path).exists(test_path + "/ColorHighlighter/" + COLOR_HIGHLIGHTER_SETTINGS_NAME).thenReturn(True)
when(sublime).packages_path().thenReturn(test_path)
self.assertEqual(
test_path + "/User/ColorHighlighter/themes/" + scheme,
path.fake_color_scheme_path("Color/" + scheme, path.ABSOLUTE))
unstub(sublime)
unstub(os.path)
def test_absolute_path_package(self):
"""Test get absolute themes path with a package installation."""
test_path = "/a/b/Packages"
scheme = "Scheme.tmTheme"
when(os.path).exists(test_path + "/ColorHighlighter/" + COLOR_HIGHLIGHTER_SETTINGS_NAME).thenReturn(False)
when(sublime).packages_path().thenReturn(test_path)
self.assertEqual(
test_path + "/User/Color Highlighter/themes/" + scheme,
path.fake_color_scheme_path("Color/" + scheme, path.ABSOLUTE))
unstub(sublime)
unstub(os.path)
def test_path_windows(self):
"""Test get a fake color scheme path for a color scheme on windows."""
test_path = "/a/b/Packages"
scheme = "Scheme.tmTheme"
when(os.path).exists(test_path + "/ColorHighlighter/" + COLOR_HIGHLIGHTER_SETTINGS_NAME).thenReturn(True)
when(sublime).platform().thenReturn("windows")
when(sublime).packages_path().thenReturn(test_path)
self.assertEqual(
"Packages/User/ColorHighlighter/themes/" + scheme,
path.fake_color_scheme_path("Color/" + scheme, path.RELATIVE))
unstub(sublime)
unstub(os.path)
| 42.786765 | 114 | 0.672023 | 1,350 | 11,638 | 5.605185 | 0.054815 | 0.089864 | 0.03806 | 0.029074 | 0.898771 | 0.877494 | 0.861372 | 0.83362 | 0.798203 | 0.772301 | 0 | 0 | 0.200808 | 11,638 | 271 | 115 | 42.944649 | 0.813568 | 0.106891 | 0 | 0.852792 | 0 | 0 | 0.149125 | 0.056582 | 0 | 0 | 0 | 0 | 0.116751 | 1 | 0.116751 | false | 0 | 0.025381 | 0 | 0.182741 | 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 |
156a8eaf1d6fa401146c75ae5dcad9aff9530453 | 22,751 | py | Python | src/simulation/dynamics/FuelTank/_UnitTest/test_tank_models.py | ian-cooke/basilisk_mag | a8b1e37c31c1287549d6fd4d71fcaa35b6fc3f14 | [
"0BSD"
] | null | null | null | src/simulation/dynamics/FuelTank/_UnitTest/test_tank_models.py | ian-cooke/basilisk_mag | a8b1e37c31c1287549d6fd4d71fcaa35b6fc3f14 | [
"0BSD"
] | 1 | 2019-03-13T20:52:22.000Z | 2019-03-13T20:52:22.000Z | src/simulation/dynamics/FuelTank/_UnitTest/test_tank_models.py | ian-cooke/basilisk_mag | a8b1e37c31c1287549d6fd4d71fcaa35b6fc3f14 | [
"0BSD"
] | null | null | null | ''' '''
'''
ISC License
Copyright (c) 2016, Autonomous Vehicle Systems Lab, University of Colorado at Boulder
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
'''
import sys, os, inspect
import numpy
import pytest
import math
from Basilisk.utilities import SimulationBaseClass
from Basilisk.utilities import unitTestSupport # general support file with common unit test functions
import matplotlib.pyplot as plt
from Basilisk.utilities import macros
from Basilisk.simulation import spacecraftPlus
from Basilisk.simulation import sim_model
import ctypes
from Basilisk.simulation import gravityEffector
from Basilisk.simulation import spice_interface
from Basilisk.utilities import simIncludeThruster
from Basilisk.simulation import thrusterDynamicEffector
from Basilisk.fswAlgorithms import vehicleConfigData
from Basilisk.simulation import fuelTank
filename = inspect.getframeinfo(inspect.currentframe()).filename
path = os.path.dirname(os.path.abspath(filename))
# uncomment this line is this test is to be skipped in the global unit test run, adjust message as needed
# @pytest.mark.skipif(conditionstring)
# uncomment this line if this test has an expected failure, adjust message as needed
# @pytest.mark.xfail() # need to update how the RW states are defined
# provide a unique test method name, starting with test_
def test_tankModelTest(show_plots):
[testResults, testMessage] = tankModelConstantVolume(show_plots)
assert testResults < 1, testMessage
[testResults, testMessage] = tankModelConstantDensity(show_plots)
assert testResults < 1, testMessage
[testResults, testMessage] = tankModelEmptying(show_plots)
assert testResults < 1, testMessage
[testResults, testMessage] = tankModelUniformBurn(show_plots)
assert testResults < 1, testMessage
[testResults, testMessage] = tankModelCentrifugalBurn(show_plots)
assert testResults < 1, testMessage
def tankModelConstantVolume(show_plots):
# The __tracebackhide__ setting influences pytest showing of tracebacks:
# the mrp_steering_tracking() function will not be shown unless the
# --fulltrace command line option is specified.
__tracebackhide__ = True
testFailCount = 0 # zero unit test result counter
testMessages = [] # create empty list to store test log messages
model = fuelTank.cvar.FuelTankModelConstantVolume
model.propMassInit = 10
model.r_TcT_TInit = [[1],[1],[1]]
model.radiusTankInit = 5
trials = [(0, 0), (10, -1), (5, -1)] #mFuel, mDotFuel
true_ITankPntT_T = [
[0,0,0,0,0,0,0,0,0],
[100,0,0,0,100,0,0,0,100],
[50,0,0,0,50,0,0,0,50]
]
true_IPrimeTankPntT_T = [
[0,0,0,0,0,0,0,0,0],
[-10,0,0,0,-10,0,0,0,-10],
[-10,0,0,0,-10,0,0,0,-10]
]
true_r_TcT_T = [
[1,1,1],
[1,1,1],
[1,1,1]
]
true_rPrime_TcT_T = [
[0,0,0],
[0,0,0],
[0,0,0]
]
true_rPPrime_TcT_T = [
[0,0,0],
[0,0,0],
[0,0,0]
]
accuracy = 1e-8
for idx, trial in enumerate(trials):
model.computeTankProps(trial[0])
model.computeTankPropDerivs(*trial)
dataITank = model.ITankPntT_T
dataITank = [0] + [dataITank[i][j] for i in range(3) for j in range(3)]
if not unitTestSupport.isArrayEqualRelative(dataITank, true_ITankPntT_T[idx],9,accuracy):
testFailCount += 1
testMessages.append("FAILED: Fuel Tank constant volume unit test failed ITankPntT_T test")
dataIPrimeTank = model.IPrimeTankPntT_T
dataIPrimeTank = [0] + [dataIPrimeTank[i][j] for i in range(3) for j in range(3)]
if not unitTestSupport.isArrayEqualRelative(dataIPrimeTank, true_IPrimeTankPntT_T[idx],9,accuracy):
testFailCount += 1
testMessages.append("FAILED: Fuel Tank constant volume unit test failed IPrimeTankPntT_T test")
dataR = model.r_TcT_T
dataR = [0] + [dataR[i][0] for i in range(3)]
if not unitTestSupport.isArrayEqualRelative(dataR, true_r_TcT_T[idx],3,accuracy):
testFailCount += 1
testMessages.append("FAILED: Fuel Tank constant volume unit test failed r_TcT_T test")
dataRPrime = model.rPrime_TcT_T
dataRPrime = [0] + [dataRPrime[i][0] for i in range(3)]
if not unitTestSupport.isArrayEqualRelative(dataRPrime, true_rPrime_TcT_T[idx],3,accuracy):
testFailCount += 1
testMessages.append("FAILED: Fuel Tank constant volume unit test failed rPrime_TcT_T test")
dataRPPrime = model.rPPrime_TcT_T
dataRPPrime = [0] + [dataRPPrime[i][0] for i in range(3)]
if not unitTestSupport.isArrayEqualRelative(dataRPPrime, true_rPPrime_TcT_T[idx],3,accuracy):
testFailCount += 1
testMessages.append("FAILED: Fuel Tank constant volume unit test failed rPPrime_TcT_T test")
if testFailCount == 0:
print "PASSED: " + " Fuel Tank constant volume unit test"
snippetName = 'ConstVolPassFail'
passFail(testFailCount, snippetName)
assert testFailCount < 1, testMessages
# return fail count and join into a single string all messages in the list
# testMessage
return [testFailCount, ''.join(testMessages)]
def tankModelConstantDensity(show_plots):
# The __tracebackhide__ setting influences pytest showing of tracebacks:
# the mrp_steering_tracking() function will not be shown unless the
# --fulltrace command line option is specified.
__tracebackhide__ = True
testFailCount = 0 # zero unit test result counter
testMessages = [] # create empty list to store test log messages
model = fuelTank.cvar.FuelTankModelConstantDensity
model.propMassInit = 10;
model.r_TcT_TInit = [[1],[1],[1]]
model.radiusTankInit = 5
trials = [(0, 0), (10, -1), (5, -1)] #mFuel, mDotFuel
true_ITankPntT_T = [
[0,0,0,0,0,0,0,0,0],
[100,0,0,0,100,0,0,0,100],
[31.498026247371826,0,0,0,31.498026247371826,0,0,0,31.498026247371826]
]
true_IPrimeTankPntT_T = [
[0,0,0,0,0,0,0,0,0],
[-16.666666666666668,0,0,0,-16.666666666666668,0,0,0,-16.666666666666668],
[-10.499342082457275,0,0,0,-10.499342082457275,0,0,0,-10.499342082457275]
]
true_r_TcT_T = [
[1,1,1],
[1,1,1],
[1,1,1]
]
true_rPrime_TcT_T = [
[0,0,0],
[0,0,0],
[0,0,0]
]
true_rPPrime_TcT_T = [
[0,0,0],
[0,0,0],
[0,0,0]
]
accuracy = 1e-8
for idx, trial in enumerate(trials):
model.computeTankProps(trial[0])
model.computeTankPropDerivs(*trial)
dataITank = model.ITankPntT_T
dataITank = [0] + [dataITank[i][j] for i in range(3) for j in range(3)]
if not unitTestSupport.isArrayEqualRelative(dataITank, true_ITankPntT_T[idx],9,accuracy):
testFailCount += 1
testMessages.append("FAILED: Fuel Tank constant volume unit test failed ITankPntT_T test")
dataIPrimeTank = model.IPrimeTankPntT_T
dataIPrimeTank = [0] + [dataIPrimeTank[i][j] for i in range(3) for j in range(3)]
if not unitTestSupport.isArrayEqualRelative(dataIPrimeTank, true_IPrimeTankPntT_T[idx],9,accuracy):
print dataIPrimeTank, idx
testFailCount += 1
testMessages.append("FAILED: Fuel Tank constant volume unit test failed IPrimeTankPntT_T test")
dataR = model.r_TcT_T
dataR = [0] + [dataR[i][0] for i in range(3)]
if not unitTestSupport.isArrayEqualRelative(dataR, true_r_TcT_T[idx],3,accuracy):
testFailCount += 1
testMessages.append("FAILED: Fuel Tank constant volume unit test failed r_TcT_T test")
dataRPrime = model.rPrime_TcT_T
dataRPrime = [0] + [dataRPrime[i][0] for i in range(3)]
if not unitTestSupport.isArrayEqualRelative(dataRPrime, true_rPrime_TcT_T[idx],3,accuracy):
testFailCount += 1
testMessages.append("FAILED: Fuel Tank constant volume unit test failed rPrime_TcT_T test")
dataRPPrime = model.rPPrime_TcT_T
dataRPPrime = [0] + [dataRPPrime[i][0] for i in range(3)]
if not unitTestSupport.isArrayEqualRelative(dataRPPrime, true_rPPrime_TcT_T[idx],3,accuracy):
testFailCount += 1
testMessages.append("FAILED: Fuel Tank constant volume unit test failed rPPrime_TcT_T test")
if testFailCount == 0:
print "PASSED: " + " Fuel Tank constant volume unit test"
snippetName = 'ConstDensPassFail'
passFail(testFailCount, snippetName)
assert testFailCount < 1, testMessages
# return fail count and join into a single string all messages in the list
# testMessage
return [testFailCount, ''.join(testMessages)]
def tankModelEmptying(show_plots):
# The __tracebackhide__ setting influences pytest showing of tracebacks:
# the mrp_steering_tracking() function will not be shown unless the
# --fulltrace command line option is specified.
__tracebackhide__ = True
testFailCount = 0 # zero unit test result counter
testMessages = [] # create empty list to store test log messages
model = fuelTank.cvar.FuelTankModelEmptying
model.propMassInit = 10
model.r_TcT_TInit = [[1],[1],[1]]
model.radiusTankInit = 5
trials = [(0, 0), (10, -1), (5, -1)] #mFuel, mDotFuel
true_ITankPntT_T = [
[0,0,0,0,0,0,0,0,0],
[100,0,0,0,100,0,0,0,100],
[50.0,0,0,0,50.0,0,0,0,50]
]
true_IPrimeTankPntT_T = [
[0,0,0,0,0,0,0,0,0],
[0,0,0,0,0,0,0,0,0],
[-8.75,0,0,0,-8.75,0,0,0,-12.5]
]
true_r_TcT_T = [
[1,1,1-5.0],
[1,1,1],
[1,1,1.0-15.0/8.0]
]
true_rPrime_TcT_T = [
[0,0,0],
[0,0,0],
[0,0,-3.0/8.0]
]
true_rPPrime_TcT_T = [
[0,0,0],
[0,0,0],
[0,0,-17.0/30.0]
]
accuracy = 1e-8
for idx, trial in enumerate(trials):
model.computeTankProps(trial[0])
model.computeTankPropDerivs(*trial)
dataITank = model.ITankPntT_T
dataITank = [0] + [dataITank[i][j] for i in range(3) for j in range(3)]
if not unitTestSupport.isArrayEqual(dataITank, true_ITankPntT_T[idx],9,accuracy):
testFailCount += 1
testMessages.append("FAILED: Fuel Tank emptying unit test failed ITankPntT_T test")
dataIPrimeTank = model.IPrimeTankPntT_T
dataIPrimeTank = [0] + [dataIPrimeTank[i][j] for i in range(3) for j in range(3)]
if not unitTestSupport.isArrayEqualRelative(dataIPrimeTank, true_IPrimeTankPntT_T[idx],9,accuracy):
testFailCount += 1
testMessages.append("FAILED: Fuel Tank emptying unit test failed IPrimeTankPntT_T test")
dataR = model.r_TcT_T
dataR = [0] + [dataR[i][0] for i in range(3)]
if not unitTestSupport.isArrayEqualRelative(dataR, true_r_TcT_T[idx],3,accuracy):
testFailCount += 1
testMessages.append("FAILED: Fuel Tank emptying unit test failed r_TcT_T test")
dataRPrime = model.rPrime_TcT_T
dataRPrime = [0] + [dataRPrime[i][0] for i in range(3)]
if not unitTestSupport.isArrayEqualRelative(dataRPrime, true_rPrime_TcT_T[idx],3,accuracy):
testFailCount += 1
testMessages.append("FAILED: Fuel Tank emptying unit test failed rPrime_TcT_T test")
dataRPPrime = model.rPPrime_TcT_T
dataRPPrime = [0] + [dataRPPrime[i][0] for i in range(3)]
if not unitTestSupport.isArrayEqualRelative(dataRPPrime, true_rPPrime_TcT_T[idx],3,accuracy):
testFailCount += 1
testMessages.append("FAILED: Fuel Tank emptying unit test failed rPPrime_TcT_T test")
if testFailCount == 0:
print "PASSED: " + " Fuel Tank constant volume unit test"
snippetName = 'EmptyingPassFail'
passFail(testFailCount, snippetName)
assert testFailCount < 1, testMessages
# return fail count and join into a single string all messages in the list
# testMessage
return [testFailCount, ''.join(testMessages)]
def tankModelUniformBurn(show_plots):
# The __tracebackhide__ setting influences pytest showing of tracebacks:
# the mrp_steering_tracking() function will not be shown unless the
# --fulltrace command line option is specified.
__tracebackhide__ = True
testFailCount = 0 # zero unit test result counter
testMessages = [] # create empty list to store test log messages
model = fuelTank.cvar.FuelTankModelUniformBurn
model.propMassInit = 10
model.r_TcT_TInit = [[1],[1],[1]]
model.radiusTankInit = 5
model.lengthTank = 5;
trials = [(0, 0), (10, -1), (5, -1)] #mFuel, mDotFuel
true_ITankPntT_T = [
[0,0,0,0,0,0,0,0,0],
[83.33333333333334,0,0,0,83.33333333333334,0,0,0,125],
[41.66666666666667,0,0,0,41.66666666666667,0,0,0,62.5]
]
true_IPrimeTankPntT_T = [
[0,0,0,0,0,0,0,0,0],
[-8.3333333333334,0,0,0,-8.3333333333334,0,0,0,-12.5],
[-8.3333333333334,0,0,0,-8.3333333333334,0,0,0,-12.5]
]
true_r_TcT_T = [
[1,1,1],
[1,1,1],
[1,1,1]
]
true_rPrime_TcT_T = [
[0,0,0],
[0,0,0],
[0,0,0]
]
true_rPPrime_TcT_T = [
[0,0,0],
[0,0,0],
[0,0,0]
]
accuracy = 1e-8
for idx, trial in enumerate(trials):
model.computeTankProps(trial[0])
model.computeTankPropDerivs(*trial)
dataITank = model.ITankPntT_T
dataITank = [0] + [dataITank[i][j] for i in range(3) for j in range(3)]
if not unitTestSupport.isArrayEqualRelative(dataITank, true_ITankPntT_T[idx],9,accuracy):
testFailCount += 1
testMessages.append("FAILED: Fuel Tank centrifugal burn unit test failed ITankPntT_T test")
dataIPrimeTank = model.IPrimeTankPntT_T
dataIPrimeTank = [0] + [dataIPrimeTank[i][j] for i in range(3) for j in range(3)]
if not unitTestSupport.isArrayEqualRelative(dataIPrimeTank, true_IPrimeTankPntT_T[idx],9,accuracy):
testFailCount += 1
testMessages.append("FAILED: Fuel Tank centrifugal burn unit test failed IPrimeTankPntT_T test")
dataR = model.r_TcT_T
dataR = [0] + [dataR[i][0] for i in range(3)]
if not unitTestSupport.isArrayEqualRelative(dataR, true_r_TcT_T[idx],3,accuracy):
testFailCount += 1
testMessages.append("FAILED: Fuel Tank centrifugal burn unit test failed r_TcT_T test")
dataRPrime = model.rPrime_TcT_T
dataRPrime = [0] + [dataRPrime[i][0] for i in range(3)]
if not unitTestSupport.isArrayEqualRelative(dataRPrime, true_rPrime_TcT_T[idx],3,accuracy):
testFailCount += 1
testMessages.append("FAILED: Fuel Tank centrifugal burn unit test failed rPrime_TcT_T test")
dataRPPrime = model.rPPrime_TcT_T
dataRPPrime = [0] + [dataRPPrime[i][0] for i in range(3)]
if not unitTestSupport.isArrayEqualRelative(dataRPPrime, true_rPPrime_TcT_T[idx],3,accuracy):
testFailCount += 1
testMessages.append("FAILED: Fuel Tank centrifugal burn unit test failed rPPrime_TcT_T test")
if testFailCount == 0:
print "PASSED: " + " Fuel Tank constant volume unit test"
snippetName = 'UniformBurnPassFail'
passFail(testFailCount, snippetName)
assert testFailCount < 1, testMessages
# return fail count and join into a single string all messages in the list
# testMessage
return [testFailCount, ''.join(testMessages)]
def tankModelCentrifugalBurn(show_plots):
# The __tracebackhide__ setting influences pytest showing of tracebacks:
# the mrp_steering_tracking() function will not be shown unless the
# --fulltrace command line option is specified.
__tracebackhide__ = True
testFailCount = 0 # zero unit test result counter
testMessages = [] # create empty list to store test log messages
model = fuelTank.cvar.FuelTankModelCentrifugalBurn
model.propMassInit = 10
model.r_TcT_TInit = [[1],[1],[1]]
model.radiusTankInit = 5
model.lengthTank = 5
trials = [(0, 0), (10, -1), (5, -1)] #mFuel, mDotFuel
true_ITankPntT_T = [
[0,0,0,0,0,0,0,0,0],
[83.33333333333334,0,0,0,83.33333333333334,0,0,0,125],
[57.291666666666671,0,0,0,57.291666666666671,0,0,0,93.75]
]
true_IPrimeTankPntT_T = [
[0,0,0,0,0,0,0,0,0],
[-2.0833333333333335,0,0,0,-2.0833333333333335,0,0,0,0.0],
[-8.3333333333333339,0,0,0,-8.3333333333333339,0,0,0,-12.500000000000002]
]
true_r_TcT_T = [
[1,1,1],
[1,1,1],
[1,1,1]
]
true_rPrime_TcT_T = [
[0,0,0],
[0,0,0],
[0,0,0]
]
true_rPPrime_TcT_T = [
[0,0,0],
[0,0,0],
[0,0,0]
]
accuracy = 1e-8
for idx, trial in enumerate(trials):
model.computeTankProps(trial[0])
model.computeTankPropDerivs(*trial)
dataITank = model.ITankPntT_T
dataITank = [0] + [dataITank[i][j] for i in range(3) for j in range(3)]
if not unitTestSupport.isArrayEqualRelative(dataITank, true_ITankPntT_T[idx],9,accuracy):
testFailCount += 1
testMessages.append("FAILED: Fuel Tank uniform burn unit test failed ITankPntT_T test")
dataIPrimeTank = model.IPrimeTankPntT_T
dataIPrimeTank = [0] + [dataIPrimeTank[i][j] for i in range(3) for j in range(3)]
if not unitTestSupport.isArrayEqualRelative(dataIPrimeTank, true_IPrimeTankPntT_T[idx],9,accuracy):
testFailCount += 1
testMessages.append("FAILED: Fuel Tank uniform burn unit test failed IPrimeTankPntT_T test")
dataR = model.r_TcT_T
dataR = [0] + [dataR[i][0] for i in range(3)]
if not unitTestSupport.isArrayEqualRelative(dataR, true_r_TcT_T[idx],3,accuracy):
testFailCount += 1
testMessages.append("FAILED: Fuel Tank uniform burn unit test failed r_TcT_T test")
dataRPrime = model.rPrime_TcT_T
dataRPrime = [0] + [dataRPrime[i][0] for i in range(3)]
if not unitTestSupport.isArrayEqualRelative(dataRPrime, true_rPrime_TcT_T[idx],3,accuracy):
testFailCount += 1
testMessages.append("FAILED: Fuel Tank uniform burn unit test failed rPrime_TcT_T test")
dataRPPrime = model.rPPrime_TcT_T
dataRPPrime = [0] + [dataRPPrime[i][0] for i in range(3)]
if not unitTestSupport.isArrayEqualRelative(dataRPPrime, true_rPPrime_TcT_T[idx],3,accuracy):
testFailCount += 1
testMessages.append("FAILED: Fuel Tank uniform burn unit test failed rPPrime_TcT_T test")
if testFailCount == 0:
print "PASSED: " + " Fuel Tank constant volume unit test"
snippetName = 'CentrifugalPassFail'
passFail(testFailCount, snippetName)
assert testFailCount < 1, testMessages
# return fail count and join into a single string all messages in the list
# testMessage
return [testFailCount, ''.join(testMessages)]
def passFail(testFailCountInput, snippetName):
if testFailCountInput < 1:
textMsg = 'PASSED'
textColor = 'ForestGreen'
else:
textMsg = 'FAILED'
textColor = 'Red'
texSnippet = '\\textcolor{' + textColor + '}{'+ textMsg + '}'
unitTestSupport.writeTeXSnippet(snippetName, texSnippet, path)
if __name__ == "__main__":
tankModelEmptying(False)
| 44.435547 | 108 | 0.586831 | 2,644 | 22,751 | 4.938729 | 0.111573 | 0.038597 | 0.043422 | 0.040129 | 0.819651 | 0.813677 | 0.80556 | 0.79637 | 0.771098 | 0.76926 | 0 | 0.071161 | 0.318711 | 22,751 | 511 | 109 | 44.522505 | 0.77129 | 0.096172 | 0 | 0.706941 | 0 | 0 | 0.101874 | 0 | 0 | 0 | 0 | 0 | 0.025707 | 0 | null | null | 0.043702 | 0.043702 | null | null | 0.015424 | 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 |
01f0e85f6a2ea0477a4eb10dd780f7c5f2ff107e | 46 | py | Python | jsonapiquery/drivers/model/__init__.py | caxiam/sqlalchemy-jsonapi-collections | 87bd526cc2c69f0715da9391d08c0e2e78554685 | [
"Apache-2.0"
] | 1 | 2016-05-25T05:46:58.000Z | 2016-05-25T05:46:58.000Z | jsonapiquery/drivers/model/__init__.py | caxiam/sqlalchemy-jsonapi-collections | 87bd526cc2c69f0715da9391d08c0e2e78554685 | [
"Apache-2.0"
] | 26 | 2016-03-28T05:28:39.000Z | 2018-11-10T22:12:04.000Z | jsonapiquery/drivers/model/__init__.py | caxiam/sqlalchemy-jsonapi-collections | 87bd526cc2c69f0715da9391d08c0e2e78554685 | [
"Apache-2.0"
] | 1 | 2016-03-30T21:24:45.000Z | 2016-03-30T21:24:45.000Z | from .sqlalchemy import DriverModelSQLAlchemy
| 23 | 45 | 0.891304 | 4 | 46 | 10.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.086957 | 46 | 1 | 46 | 46 | 0.97619 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
1783a61fa19aa782db07b04abf40db7328981a4f | 94,342 | py | Python | tests/functional/validators/test_validators_all_variable_usages_are_allowed.py | matt-koevort/tartiflette | 5777866b133d846ce4f8aa03f735fa81832896cd | [
"MIT"
] | 530 | 2019-06-04T11:45:36.000Z | 2022-03-31T09:29:56.000Z | tests/functional/validators/test_validators_all_variable_usages_are_allowed.py | matt-koevort/tartiflette | 5777866b133d846ce4f8aa03f735fa81832896cd | [
"MIT"
] | 242 | 2019-06-04T11:53:08.000Z | 2022-03-28T07:06:27.000Z | tests/functional/validators/test_validators_all_variable_usages_are_allowed.py | matt-koevort/tartiflette | 5777866b133d846ce4f8aa03f735fa81832896cd | [
"MIT"
] | 36 | 2019-06-21T06:40:27.000Z | 2021-11-04T13:11:16.000Z | import pytest
from tartiflette import Resolver, create_engine
@pytest.fixture(scope="module", name="ttftt_engine")
async def ttftt_engine_fixture():
sdl = """
enum AnEnum {
AValue
}
input AnInput {
AField: String
}
type Query {
simpleParameterField(i: Int, f: Float, s: String, e: AnEnum, input: AnInput): String
nonNullParameterField(i: Int!, f: Float!, s: String!, e: AnEnum!, input: AnInput!): String
listParameterField(i: [Int], f: [Float], s: [String], e: [AnEnum], input: [AnInput]): String
listOfNonNullParameterField(i: [Int!], f: [Float!], s: [String!], e: [AnEnum!], input: [AnInput!]): String
nonNullListParameterField(i: [Int]!, f: [Float]!, s: [String]!, e: [AnEnum]!, input: [AnInput]!): String
nonNullListOfNonNullParameterField(i: [Int!]!, f: [Float!]!, s: [String!]!, e: [AnEnum!]!, input: [AnInput!]!): String
}
"""
@Resolver(
"Query.simpleParameterField",
schema_name="test_validators_all_variable_usages_are_allowed",
)
@Resolver(
"Query.nonNullParameterField",
schema_name="test_validators_all_variable_usages_are_allowed",
)
@Resolver(
"Query.listParameterField",
schema_name="test_validators_all_variable_usages_are_allowed",
)
@Resolver(
"Query.listOfNonNullParameterField",
schema_name="test_validators_all_variable_usages_are_allowed",
)
@Resolver(
"Query.nonNullListParameterField",
schema_name="test_validators_all_variable_usages_are_allowed",
)
@Resolver(
"Query.nonNullListOfNonNullParameterField",
schema_name="test_validators_all_variable_usages_are_allowed",
)
async def resolver(_pr, args, _ctx, _info):
return str(args)
return await create_engine(
sdl, schema_name="test_validators_all_variable_usages_are_allowed"
)
@pytest.mark.parametrize(
"query,expected",
[
(
"""
query($i: Int, $f: Float, $s: String, $e: AnEnum, $input: AnInput) {
simpleParameterField(i: $i, f: $f, s:$s, e:$e, input: $input)
nonNullParameterField(i: $i, f: $f, s:$s, e:$e, input: $input)
listParameterField(i: $i, f: $f, s:$s, e:$e, input: $input)
listOfNonNullParameterField(i: $i, f: $f, s:$s, e:$e, input: $input)
nonNullListParameterField(i: $i, f: $f, s:$s, e:$e, input: $input)
nonNullListOfNonNullParameterField(i: $i, f: $f, s:$s, e:$e, input: $input)
}
""",
{
"data": None,
"errors": [
{
"message": "Can't use < $i / Int > for type < Int! >.",
"path": ["nonNullParameterField"],
"locations": [
{"line": 2, "column": 19},
{"line": 4, "column": 42},
],
"extensions": {
"rule": "5.8.5",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-All-Variable-Usages-are-Allowed",
"tag": "all-variable-usages-are-allowed",
},
},
{
"message": "Can't use < $f / Float > for type < Float! >.",
"path": ["nonNullParameterField"],
"locations": [
{"line": 2, "column": 28},
{"line": 4, "column": 49},
],
"extensions": {
"rule": "5.8.5",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-All-Variable-Usages-are-Allowed",
"tag": "all-variable-usages-are-allowed",
},
},
{
"message": "Can't use < $s / String > for type < String! >.",
"path": ["nonNullParameterField"],
"locations": [
{"line": 2, "column": 39},
{"line": 4, "column": 55},
],
"extensions": {
"rule": "5.8.5",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-All-Variable-Usages-are-Allowed",
"tag": "all-variable-usages-are-allowed",
},
},
{
"message": "Can't use < $e / AnEnum > for type < AnEnum! >.",
"path": ["nonNullParameterField"],
"locations": [
{"line": 2, "column": 51},
{"line": 4, "column": 61},
],
"extensions": {
"rule": "5.8.5",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-All-Variable-Usages-are-Allowed",
"tag": "all-variable-usages-are-allowed",
},
},
{
"message": "Can't use < $input / AnInput > for type < AnInput! >.",
"path": ["nonNullParameterField"],
"locations": [
{"line": 2, "column": 63},
{"line": 4, "column": 72},
],
"extensions": {
"rule": "5.8.5",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-All-Variable-Usages-are-Allowed",
"tag": "all-variable-usages-are-allowed",
},
},
{
"message": "Can't use < $i / Int > for type < [Int] >.",
"path": ["listParameterField"],
"locations": [
{"line": 2, "column": 19},
{"line": 5, "column": 39},
],
"extensions": {
"rule": "5.8.5",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-All-Variable-Usages-are-Allowed",
"tag": "all-variable-usages-are-allowed",
},
},
{
"message": "Can't use < $f / Float > for type < [Float] >.",
"path": ["listParameterField"],
"locations": [
{"line": 2, "column": 28},
{"line": 5, "column": 46},
],
"extensions": {
"rule": "5.8.5",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-All-Variable-Usages-are-Allowed",
"tag": "all-variable-usages-are-allowed",
},
},
{
"message": "Can't use < $s / String > for type < [String] >.",
"path": ["listParameterField"],
"locations": [
{"line": 2, "column": 39},
{"line": 5, "column": 52},
],
"extensions": {
"rule": "5.8.5",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-All-Variable-Usages-are-Allowed",
"tag": "all-variable-usages-are-allowed",
},
},
{
"message": "Can't use < $e / AnEnum > for type < [AnEnum] >.",
"path": ["listParameterField"],
"locations": [
{"line": 2, "column": 51},
{"line": 5, "column": 58},
],
"extensions": {
"rule": "5.8.5",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-All-Variable-Usages-are-Allowed",
"tag": "all-variable-usages-are-allowed",
},
},
{
"message": "Can't use < $input / AnInput > for type < [AnInput] >.",
"path": ["listParameterField"],
"locations": [
{"line": 2, "column": 63},
{"line": 5, "column": 69},
],
"extensions": {
"rule": "5.8.5",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-All-Variable-Usages-are-Allowed",
"tag": "all-variable-usages-are-allowed",
},
},
{
"message": "Can't use < $i / Int > for type < [Int!] >.",
"path": ["listOfNonNullParameterField"],
"locations": [
{"line": 2, "column": 19},
{"line": 6, "column": 48},
],
"extensions": {
"rule": "5.8.5",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-All-Variable-Usages-are-Allowed",
"tag": "all-variable-usages-are-allowed",
},
},
{
"message": "Can't use < $f / Float > for type < [Float!] >.",
"path": ["listOfNonNullParameterField"],
"locations": [
{"line": 2, "column": 28},
{"line": 6, "column": 55},
],
"extensions": {
"rule": "5.8.5",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-All-Variable-Usages-are-Allowed",
"tag": "all-variable-usages-are-allowed",
},
},
{
"message": "Can't use < $s / String > for type < [String!] >.",
"path": ["listOfNonNullParameterField"],
"locations": [
{"line": 2, "column": 39},
{"line": 6, "column": 61},
],
"extensions": {
"rule": "5.8.5",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-All-Variable-Usages-are-Allowed",
"tag": "all-variable-usages-are-allowed",
},
},
{
"message": "Can't use < $e / AnEnum > for type < [AnEnum!] >.",
"path": ["listOfNonNullParameterField"],
"locations": [
{"line": 2, "column": 51},
{"line": 6, "column": 67},
],
"extensions": {
"rule": "5.8.5",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-All-Variable-Usages-are-Allowed",
"tag": "all-variable-usages-are-allowed",
},
},
{
"message": "Can't use < $input / AnInput > for type < [AnInput!] >.",
"path": ["listOfNonNullParameterField"],
"locations": [
{"line": 2, "column": 63},
{"line": 6, "column": 78},
],
"extensions": {
"rule": "5.8.5",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-All-Variable-Usages-are-Allowed",
"tag": "all-variable-usages-are-allowed",
},
},
{
"message": "Can't use < $i / Int > for type < [Int]! >.",
"path": ["nonNullListParameterField"],
"locations": [
{"line": 2, "column": 19},
{"line": 7, "column": 46},
],
"extensions": {
"rule": "5.8.5",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-All-Variable-Usages-are-Allowed",
"tag": "all-variable-usages-are-allowed",
},
},
{
"message": "Can't use < $f / Float > for type < [Float]! >.",
"path": ["nonNullListParameterField"],
"locations": [
{"line": 2, "column": 28},
{"line": 7, "column": 53},
],
"extensions": {
"rule": "5.8.5",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-All-Variable-Usages-are-Allowed",
"tag": "all-variable-usages-are-allowed",
},
},
{
"message": "Can't use < $s / String > for type < [String]! >.",
"path": ["nonNullListParameterField"],
"locations": [
{"line": 2, "column": 39},
{"line": 7, "column": 59},
],
"extensions": {
"rule": "5.8.5",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-All-Variable-Usages-are-Allowed",
"tag": "all-variable-usages-are-allowed",
},
},
{
"message": "Can't use < $e / AnEnum > for type < [AnEnum]! >.",
"path": ["nonNullListParameterField"],
"locations": [
{"line": 2, "column": 51},
{"line": 7, "column": 65},
],
"extensions": {
"rule": "5.8.5",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-All-Variable-Usages-are-Allowed",
"tag": "all-variable-usages-are-allowed",
},
},
{
"message": "Can't use < $input / AnInput > for type < [AnInput]! >.",
"path": ["nonNullListParameterField"],
"locations": [
{"line": 2, "column": 63},
{"line": 7, "column": 76},
],
"extensions": {
"rule": "5.8.5",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-All-Variable-Usages-are-Allowed",
"tag": "all-variable-usages-are-allowed",
},
},
{
"message": "Can't use < $i / Int > for type < [Int!]! >.",
"path": ["nonNullListOfNonNullParameterField"],
"locations": [
{"line": 2, "column": 19},
{"line": 8, "column": 55},
],
"extensions": {
"rule": "5.8.5",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-All-Variable-Usages-are-Allowed",
"tag": "all-variable-usages-are-allowed",
},
},
{
"message": "Can't use < $f / Float > for type < [Float!]! >.",
"path": ["nonNullListOfNonNullParameterField"],
"locations": [
{"line": 2, "column": 28},
{"line": 8, "column": 62},
],
"extensions": {
"rule": "5.8.5",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-All-Variable-Usages-are-Allowed",
"tag": "all-variable-usages-are-allowed",
},
},
{
"message": "Can't use < $s / String > for type < [String!]! >.",
"path": ["nonNullListOfNonNullParameterField"],
"locations": [
{"line": 2, "column": 39},
{"line": 8, "column": 68},
],
"extensions": {
"rule": "5.8.5",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-All-Variable-Usages-are-Allowed",
"tag": "all-variable-usages-are-allowed",
},
},
{
"message": "Can't use < $e / AnEnum > for type < [AnEnum!]! >.",
"path": ["nonNullListOfNonNullParameterField"],
"locations": [
{"line": 2, "column": 51},
{"line": 8, "column": 74},
],
"extensions": {
"rule": "5.8.5",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-All-Variable-Usages-are-Allowed",
"tag": "all-variable-usages-are-allowed",
},
},
{
"message": "Can't use < $input / AnInput > for type < [AnInput!]! >.",
"path": ["nonNullListOfNonNullParameterField"],
"locations": [
{"line": 2, "column": 63},
{"line": 8, "column": 85},
],
"extensions": {
"rule": "5.8.5",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-All-Variable-Usages-are-Allowed",
"tag": "all-variable-usages-are-allowed",
},
},
],
},
),
(
"""
query($i: Int!, $f: Float!, $s: String!, $e: AnEnum!, $input: AnInput!) {
simpleParameterField(i: $i, f: $f, s:$s, e:$e, input: $input)
nonNullParameterField(i: $i, f: $f, s:$s, e:$e, input: $input)
listParameterField(i: $i, f: $f, s:$s, e:$e, input: $input)
listOfNonNullParameterField(i: $i, f: $f, s:$s, e:$e, input: $input)
nonNullListParameterField(i: $i, f: $f, s:$s, e:$e, input: $input)
nonNullListOfNonNullParameterField(i: $i, f: $f, s:$s, e:$e, input: $input)
}
""",
{
"data": None,
"errors": [
{
"message": "Can't use < $i / Int! > for type < [Int] >.",
"path": ["listParameterField"],
"locations": [
{"line": 2, "column": 19},
{"line": 5, "column": 39},
],
"extensions": {
"rule": "5.8.5",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-All-Variable-Usages-are-Allowed",
"tag": "all-variable-usages-are-allowed",
},
},
{
"message": "Can't use < $f / Float! > for type < [Float] >.",
"path": ["listParameterField"],
"locations": [
{"line": 2, "column": 29},
{"line": 5, "column": 46},
],
"extensions": {
"rule": "5.8.5",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-All-Variable-Usages-are-Allowed",
"tag": "all-variable-usages-are-allowed",
},
},
{
"message": "Can't use < $s / String! > for type < [String] >.",
"path": ["listParameterField"],
"locations": [
{"line": 2, "column": 41},
{"line": 5, "column": 52},
],
"extensions": {
"rule": "5.8.5",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-All-Variable-Usages-are-Allowed",
"tag": "all-variable-usages-are-allowed",
},
},
{
"message": "Can't use < $e / AnEnum! > for type < [AnEnum] >.",
"path": ["listParameterField"],
"locations": [
{"line": 2, "column": 54},
{"line": 5, "column": 58},
],
"extensions": {
"rule": "5.8.5",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-All-Variable-Usages-are-Allowed",
"tag": "all-variable-usages-are-allowed",
},
},
{
"message": "Can't use < $input / AnInput! > for type < [AnInput] >.",
"path": ["listParameterField"],
"locations": [
{"line": 2, "column": 67},
{"line": 5, "column": 69},
],
"extensions": {
"rule": "5.8.5",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-All-Variable-Usages-are-Allowed",
"tag": "all-variable-usages-are-allowed",
},
},
{
"message": "Can't use < $i / Int! > for type < [Int!] >.",
"path": ["listOfNonNullParameterField"],
"locations": [
{"line": 2, "column": 19},
{"line": 6, "column": 48},
],
"extensions": {
"rule": "5.8.5",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-All-Variable-Usages-are-Allowed",
"tag": "all-variable-usages-are-allowed",
},
},
{
"message": "Can't use < $f / Float! > for type < [Float!] >.",
"path": ["listOfNonNullParameterField"],
"locations": [
{"line": 2, "column": 29},
{"line": 6, "column": 55},
],
"extensions": {
"rule": "5.8.5",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-All-Variable-Usages-are-Allowed",
"tag": "all-variable-usages-are-allowed",
},
},
{
"message": "Can't use < $s / String! > for type < [String!] >.",
"path": ["listOfNonNullParameterField"],
"locations": [
{"line": 2, "column": 41},
{"line": 6, "column": 61},
],
"extensions": {
"rule": "5.8.5",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-All-Variable-Usages-are-Allowed",
"tag": "all-variable-usages-are-allowed",
},
},
{
"message": "Can't use < $e / AnEnum! > for type < [AnEnum!] >.",
"path": ["listOfNonNullParameterField"],
"locations": [
{"line": 2, "column": 54},
{"line": 6, "column": 67},
],
"extensions": {
"rule": "5.8.5",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-All-Variable-Usages-are-Allowed",
"tag": "all-variable-usages-are-allowed",
},
},
{
"message": "Can't use < $input / AnInput! > for type < [AnInput!] >.",
"path": ["listOfNonNullParameterField"],
"locations": [
{"line": 2, "column": 67},
{"line": 6, "column": 78},
],
"extensions": {
"rule": "5.8.5",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-All-Variable-Usages-are-Allowed",
"tag": "all-variable-usages-are-allowed",
},
},
{
"message": "Can't use < $i / Int! > for type < [Int]! >.",
"path": ["nonNullListParameterField"],
"locations": [
{"line": 2, "column": 19},
{"line": 7, "column": 46},
],
"extensions": {
"rule": "5.8.5",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-All-Variable-Usages-are-Allowed",
"tag": "all-variable-usages-are-allowed",
},
},
{
"message": "Can't use < $f / Float! > for type < [Float]! >.",
"path": ["nonNullListParameterField"],
"locations": [
{"line": 2, "column": 29},
{"line": 7, "column": 53},
],
"extensions": {
"rule": "5.8.5",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-All-Variable-Usages-are-Allowed",
"tag": "all-variable-usages-are-allowed",
},
},
{
"message": "Can't use < $s / String! > for type < [String]! >.",
"path": ["nonNullListParameterField"],
"locations": [
{"line": 2, "column": 41},
{"line": 7, "column": 59},
],
"extensions": {
"rule": "5.8.5",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-All-Variable-Usages-are-Allowed",
"tag": "all-variable-usages-are-allowed",
},
},
{
"message": "Can't use < $e / AnEnum! > for type < [AnEnum]! >.",
"path": ["nonNullListParameterField"],
"locations": [
{"line": 2, "column": 54},
{"line": 7, "column": 65},
],
"extensions": {
"rule": "5.8.5",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-All-Variable-Usages-are-Allowed",
"tag": "all-variable-usages-are-allowed",
},
},
{
"message": "Can't use < $input / AnInput! > for type < [AnInput]! >.",
"path": ["nonNullListParameterField"],
"locations": [
{"line": 2, "column": 67},
{"line": 7, "column": 76},
],
"extensions": {
"rule": "5.8.5",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-All-Variable-Usages-are-Allowed",
"tag": "all-variable-usages-are-allowed",
},
},
{
"message": "Can't use < $i / Int! > for type < [Int!]! >.",
"path": ["nonNullListOfNonNullParameterField"],
"locations": [
{"line": 2, "column": 19},
{"line": 8, "column": 55},
],
"extensions": {
"rule": "5.8.5",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-All-Variable-Usages-are-Allowed",
"tag": "all-variable-usages-are-allowed",
},
},
{
"message": "Can't use < $f / Float! > for type < [Float!]! >.",
"path": ["nonNullListOfNonNullParameterField"],
"locations": [
{"line": 2, "column": 29},
{"line": 8, "column": 62},
],
"extensions": {
"rule": "5.8.5",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-All-Variable-Usages-are-Allowed",
"tag": "all-variable-usages-are-allowed",
},
},
{
"message": "Can't use < $s / String! > for type < [String!]! >.",
"path": ["nonNullListOfNonNullParameterField"],
"locations": [
{"line": 2, "column": 41},
{"line": 8, "column": 68},
],
"extensions": {
"rule": "5.8.5",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-All-Variable-Usages-are-Allowed",
"tag": "all-variable-usages-are-allowed",
},
},
{
"message": "Can't use < $e / AnEnum! > for type < [AnEnum!]! >.",
"path": ["nonNullListOfNonNullParameterField"],
"locations": [
{"line": 2, "column": 54},
{"line": 8, "column": 74},
],
"extensions": {
"rule": "5.8.5",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-All-Variable-Usages-are-Allowed",
"tag": "all-variable-usages-are-allowed",
},
},
{
"message": "Can't use < $input / AnInput! > for type < [AnInput!]! >.",
"path": ["nonNullListOfNonNullParameterField"],
"locations": [
{"line": 2, "column": 67},
{"line": 8, "column": 85},
],
"extensions": {
"rule": "5.8.5",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-All-Variable-Usages-are-Allowed",
"tag": "all-variable-usages-are-allowed",
},
},
],
},
),
(
"""
query($i: [Int!], $f: [Float!], $s: [String!], $e: [AnEnum!], $input: [AnInput!]) {
simpleParameterField(i: $i, f: $f, s:$s, e:$e, input: $input)
nonNullParameterField(i: $i, f: $f, s:$s, e:$e, input: $input)
listParameterField(i: $i, f: $f, s:$s, e:$e, input: $input)
listOfNonNullParameterField(i: $i, f: $f, s:$s, e:$e, input: $input)
nonNullListParameterField(i: $i, f: $f, s:$s, e:$e, input: $input)
nonNullListOfNonNullParameterField(i: $i, f: $f, s:$s, e:$e, input: $input)
}
""",
{
"data": None,
"errors": [
{
"message": "Can't use < $i / [Int!] > for type < Int >.",
"path": ["simpleParameterField"],
"locations": [
{"line": 2, "column": 19},
{"line": 3, "column": 41},
],
"extensions": {
"rule": "5.8.5",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-All-Variable-Usages-are-Allowed",
"tag": "all-variable-usages-are-allowed",
},
},
{
"message": "Can't use < $f / [Float!] > for type < Float >.",
"path": ["simpleParameterField"],
"locations": [
{"line": 2, "column": 31},
{"line": 3, "column": 48},
],
"extensions": {
"rule": "5.8.5",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-All-Variable-Usages-are-Allowed",
"tag": "all-variable-usages-are-allowed",
},
},
{
"message": "Can't use < $s / [String!] > for type < String >.",
"path": ["simpleParameterField"],
"locations": [
{"line": 2, "column": 45},
{"line": 3, "column": 54},
],
"extensions": {
"rule": "5.8.5",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-All-Variable-Usages-are-Allowed",
"tag": "all-variable-usages-are-allowed",
},
},
{
"message": "Can't use < $e / [AnEnum!] > for type < AnEnum >.",
"path": ["simpleParameterField"],
"locations": [
{"line": 2, "column": 60},
{"line": 3, "column": 60},
],
"extensions": {
"rule": "5.8.5",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-All-Variable-Usages-are-Allowed",
"tag": "all-variable-usages-are-allowed",
},
},
{
"message": "Can't use < $input / [AnInput!] > for type < AnInput >.",
"path": ["simpleParameterField"],
"locations": [
{"line": 2, "column": 75},
{"line": 3, "column": 71},
],
"extensions": {
"rule": "5.8.5",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-All-Variable-Usages-are-Allowed",
"tag": "all-variable-usages-are-allowed",
},
},
{
"message": "Can't use < $i / [Int!] > for type < Int! >.",
"path": ["nonNullParameterField"],
"locations": [
{"line": 2, "column": 19},
{"line": 4, "column": 42},
],
"extensions": {
"rule": "5.8.5",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-All-Variable-Usages-are-Allowed",
"tag": "all-variable-usages-are-allowed",
},
},
{
"message": "Can't use < $f / [Float!] > for type < Float! >.",
"path": ["nonNullParameterField"],
"locations": [
{"line": 2, "column": 31},
{"line": 4, "column": 49},
],
"extensions": {
"rule": "5.8.5",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-All-Variable-Usages-are-Allowed",
"tag": "all-variable-usages-are-allowed",
},
},
{
"message": "Can't use < $s / [String!] > for type < String! >.",
"path": ["nonNullParameterField"],
"locations": [
{"line": 2, "column": 45},
{"line": 4, "column": 55},
],
"extensions": {
"rule": "5.8.5",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-All-Variable-Usages-are-Allowed",
"tag": "all-variable-usages-are-allowed",
},
},
{
"message": "Can't use < $e / [AnEnum!] > for type < AnEnum! >.",
"path": ["nonNullParameterField"],
"locations": [
{"line": 2, "column": 60},
{"line": 4, "column": 61},
],
"extensions": {
"rule": "5.8.5",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-All-Variable-Usages-are-Allowed",
"tag": "all-variable-usages-are-allowed",
},
},
{
"message": "Can't use < $input / [AnInput!] > for type < AnInput! >.",
"path": ["nonNullParameterField"],
"locations": [
{"line": 2, "column": 75},
{"line": 4, "column": 72},
],
"extensions": {
"rule": "5.8.5",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-All-Variable-Usages-are-Allowed",
"tag": "all-variable-usages-are-allowed",
},
},
{
"message": "Can't use < $i / [Int!] > for type < [Int]! >.",
"path": ["nonNullListParameterField"],
"locations": [
{"line": 2, "column": 19},
{"line": 7, "column": 46},
],
"extensions": {
"rule": "5.8.5",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-All-Variable-Usages-are-Allowed",
"tag": "all-variable-usages-are-allowed",
},
},
{
"message": "Can't use < $f / [Float!] > for type < [Float]! >.",
"path": ["nonNullListParameterField"],
"locations": [
{"line": 2, "column": 31},
{"line": 7, "column": 53},
],
"extensions": {
"rule": "5.8.5",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-All-Variable-Usages-are-Allowed",
"tag": "all-variable-usages-are-allowed",
},
},
{
"message": "Can't use < $s / [String!] > for type < [String]! >.",
"path": ["nonNullListParameterField"],
"locations": [
{"line": 2, "column": 45},
{"line": 7, "column": 59},
],
"extensions": {
"rule": "5.8.5",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-All-Variable-Usages-are-Allowed",
"tag": "all-variable-usages-are-allowed",
},
},
{
"message": "Can't use < $e / [AnEnum!] > for type < [AnEnum]! >.",
"path": ["nonNullListParameterField"],
"locations": [
{"line": 2, "column": 60},
{"line": 7, "column": 65},
],
"extensions": {
"rule": "5.8.5",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-All-Variable-Usages-are-Allowed",
"tag": "all-variable-usages-are-allowed",
},
},
{
"message": "Can't use < $input / [AnInput!] > for type < [AnInput]! >.",
"path": ["nonNullListParameterField"],
"locations": [
{"line": 2, "column": 75},
{"line": 7, "column": 76},
],
"extensions": {
"rule": "5.8.5",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-All-Variable-Usages-are-Allowed",
"tag": "all-variable-usages-are-allowed",
},
},
{
"message": "Can't use < $i / [Int!] > for type < [Int!]! >.",
"path": ["nonNullListOfNonNullParameterField"],
"locations": [
{"line": 2, "column": 19},
{"line": 8, "column": 55},
],
"extensions": {
"rule": "5.8.5",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-All-Variable-Usages-are-Allowed",
"tag": "all-variable-usages-are-allowed",
},
},
{
"message": "Can't use < $f / [Float!] > for type < [Float!]! >.",
"path": ["nonNullListOfNonNullParameterField"],
"locations": [
{"line": 2, "column": 31},
{"line": 8, "column": 62},
],
"extensions": {
"rule": "5.8.5",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-All-Variable-Usages-are-Allowed",
"tag": "all-variable-usages-are-allowed",
},
},
{
"message": "Can't use < $s / [String!] > for type < [String!]! >.",
"path": ["nonNullListOfNonNullParameterField"],
"locations": [
{"line": 2, "column": 45},
{"line": 8, "column": 68},
],
"extensions": {
"rule": "5.8.5",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-All-Variable-Usages-are-Allowed",
"tag": "all-variable-usages-are-allowed",
},
},
{
"message": "Can't use < $e / [AnEnum!] > for type < [AnEnum!]! >.",
"path": ["nonNullListOfNonNullParameterField"],
"locations": [
{"line": 2, "column": 60},
{"line": 8, "column": 74},
],
"extensions": {
"rule": "5.8.5",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-All-Variable-Usages-are-Allowed",
"tag": "all-variable-usages-are-allowed",
},
},
{
"message": "Can't use < $input / [AnInput!] > for type < [AnInput!]! >.",
"path": ["nonNullListOfNonNullParameterField"],
"locations": [
{"line": 2, "column": 75},
{"line": 8, "column": 85},
],
"extensions": {
"rule": "5.8.5",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-All-Variable-Usages-are-Allowed",
"tag": "all-variable-usages-are-allowed",
},
},
],
},
),
(
"""
query($i: [Int!]!, $f: [Float!]!, $s: [String!]!, $e: [AnEnum!]!, $input: [AnInput!]!) {
simpleParameterField(i: $i, f: $f, s:$s, e:$e, input: $input)
nonNullParameterField(i: $i, f: $f, s:$s, e:$e, input: $input)
listParameterField(i: $i, f: $f, s:$s, e:$e, input: $input)
listOfNonNullParameterField(i: $i, f: $f, s:$s, e:$e, input: $input)
nonNullListParameterField(i: $i, f: $f, s:$s, e:$e, input: $input)
nonNullListOfNonNullParameterField(i: $i, f: $f, s:$s, e:$e, input: $input)
}
""",
{
"data": None,
"errors": [
{
"message": "Can't use < $i / [Int!]! > for type < Int >.",
"path": ["simpleParameterField"],
"locations": [
{"line": 2, "column": 19},
{"line": 3, "column": 41},
],
"extensions": {
"rule": "5.8.5",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-All-Variable-Usages-are-Allowed",
"tag": "all-variable-usages-are-allowed",
},
},
{
"message": "Can't use < $f / [Float!]! > for type < Float >.",
"path": ["simpleParameterField"],
"locations": [
{"line": 2, "column": 32},
{"line": 3, "column": 48},
],
"extensions": {
"rule": "5.8.5",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-All-Variable-Usages-are-Allowed",
"tag": "all-variable-usages-are-allowed",
},
},
{
"message": "Can't use < $s / [String!]! > for type < String >.",
"path": ["simpleParameterField"],
"locations": [
{"line": 2, "column": 47},
{"line": 3, "column": 54},
],
"extensions": {
"rule": "5.8.5",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-All-Variable-Usages-are-Allowed",
"tag": "all-variable-usages-are-allowed",
},
},
{
"message": "Can't use < $e / [AnEnum!]! > for type < AnEnum >.",
"path": ["simpleParameterField"],
"locations": [
{"line": 2, "column": 63},
{"line": 3, "column": 60},
],
"extensions": {
"rule": "5.8.5",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-All-Variable-Usages-are-Allowed",
"tag": "all-variable-usages-are-allowed",
},
},
{
"message": "Can't use < $input / [AnInput!]! > for type < AnInput >.",
"path": ["simpleParameterField"],
"locations": [
{"line": 2, "column": 79},
{"line": 3, "column": 71},
],
"extensions": {
"rule": "5.8.5",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-All-Variable-Usages-are-Allowed",
"tag": "all-variable-usages-are-allowed",
},
},
{
"message": "Can't use < $i / [Int!]! > for type < Int! >.",
"path": ["nonNullParameterField"],
"locations": [
{"line": 2, "column": 19},
{"line": 4, "column": 42},
],
"extensions": {
"rule": "5.8.5",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-All-Variable-Usages-are-Allowed",
"tag": "all-variable-usages-are-allowed",
},
},
{
"message": "Can't use < $f / [Float!]! > for type < Float! >.",
"path": ["nonNullParameterField"],
"locations": [
{"line": 2, "column": 32},
{"line": 4, "column": 49},
],
"extensions": {
"rule": "5.8.5",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-All-Variable-Usages-are-Allowed",
"tag": "all-variable-usages-are-allowed",
},
},
{
"message": "Can't use < $s / [String!]! > for type < String! >.",
"path": ["nonNullParameterField"],
"locations": [
{"line": 2, "column": 47},
{"line": 4, "column": 55},
],
"extensions": {
"rule": "5.8.5",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-All-Variable-Usages-are-Allowed",
"tag": "all-variable-usages-are-allowed",
},
},
{
"message": "Can't use < $e / [AnEnum!]! > for type < AnEnum! >.",
"path": ["nonNullParameterField"],
"locations": [
{"line": 2, "column": 63},
{"line": 4, "column": 61},
],
"extensions": {
"rule": "5.8.5",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-All-Variable-Usages-are-Allowed",
"tag": "all-variable-usages-are-allowed",
},
},
{
"message": "Can't use < $input / [AnInput!]! > for type < AnInput! >.",
"path": ["nonNullParameterField"],
"locations": [
{"line": 2, "column": 79},
{"line": 4, "column": 72},
],
"extensions": {
"rule": "5.8.5",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-All-Variable-Usages-are-Allowed",
"tag": "all-variable-usages-are-allowed",
},
},
],
},
),
(
"""
query($i: [Int]!, $f: [Float]!, $s: [String]!, $e: [AnEnum]!, $input: [AnInput]!) {
simpleParameterField(i: $i, f: $f, s:$s, e:$e, input: $input)
nonNullParameterField(i: $i, f: $f, s:$s, e:$e, input: $input)
listParameterField(i: $i, f: $f, s:$s, e:$e, input: $input)
listOfNonNullParameterField(i: $i, f: $f, s:$s, e:$e, input: $input)
nonNullListParameterField(i: $i, f: $f, s:$s, e:$e, input: $input)
nonNullListOfNonNullParameterField(i: $i, f: $f, s:$s, e:$e, input: $input)
}
""",
{
"data": None,
"errors": [
{
"message": "Can't use < $i / [Int]! > for type < Int >.",
"path": ["simpleParameterField"],
"locations": [
{"line": 2, "column": 19},
{"line": 3, "column": 41},
],
"extensions": {
"rule": "5.8.5",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-All-Variable-Usages-are-Allowed",
"tag": "all-variable-usages-are-allowed",
},
},
{
"message": "Can't use < $f / [Float]! > for type < Float >.",
"path": ["simpleParameterField"],
"locations": [
{"line": 2, "column": 31},
{"line": 3, "column": 48},
],
"extensions": {
"rule": "5.8.5",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-All-Variable-Usages-are-Allowed",
"tag": "all-variable-usages-are-allowed",
},
},
{
"message": "Can't use < $s / [String]! > for type < String >.",
"path": ["simpleParameterField"],
"locations": [
{"line": 2, "column": 45},
{"line": 3, "column": 54},
],
"extensions": {
"rule": "5.8.5",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-All-Variable-Usages-are-Allowed",
"tag": "all-variable-usages-are-allowed",
},
},
{
"message": "Can't use < $e / [AnEnum]! > for type < AnEnum >.",
"path": ["simpleParameterField"],
"locations": [
{"line": 2, "column": 60},
{"line": 3, "column": 60},
],
"extensions": {
"rule": "5.8.5",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-All-Variable-Usages-are-Allowed",
"tag": "all-variable-usages-are-allowed",
},
},
{
"message": "Can't use < $input / [AnInput]! > for type < AnInput >.",
"path": ["simpleParameterField"],
"locations": [
{"line": 2, "column": 75},
{"line": 3, "column": 71},
],
"extensions": {
"rule": "5.8.5",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-All-Variable-Usages-are-Allowed",
"tag": "all-variable-usages-are-allowed",
},
},
{
"message": "Can't use < $i / [Int]! > for type < Int! >.",
"path": ["nonNullParameterField"],
"locations": [
{"line": 2, "column": 19},
{"line": 4, "column": 42},
],
"extensions": {
"rule": "5.8.5",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-All-Variable-Usages-are-Allowed",
"tag": "all-variable-usages-are-allowed",
},
},
{
"message": "Can't use < $f / [Float]! > for type < Float! >.",
"path": ["nonNullParameterField"],
"locations": [
{"line": 2, "column": 31},
{"line": 4, "column": 49},
],
"extensions": {
"rule": "5.8.5",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-All-Variable-Usages-are-Allowed",
"tag": "all-variable-usages-are-allowed",
},
},
{
"message": "Can't use < $s / [String]! > for type < String! >.",
"path": ["nonNullParameterField"],
"locations": [
{"line": 2, "column": 45},
{"line": 4, "column": 55},
],
"extensions": {
"rule": "5.8.5",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-All-Variable-Usages-are-Allowed",
"tag": "all-variable-usages-are-allowed",
},
},
{
"message": "Can't use < $e / [AnEnum]! > for type < AnEnum! >.",
"path": ["nonNullParameterField"],
"locations": [
{"line": 2, "column": 60},
{"line": 4, "column": 61},
],
"extensions": {
"rule": "5.8.5",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-All-Variable-Usages-are-Allowed",
"tag": "all-variable-usages-are-allowed",
},
},
{
"message": "Can't use < $input / [AnInput]! > for type < AnInput! >.",
"path": ["nonNullParameterField"],
"locations": [
{"line": 2, "column": 75},
{"line": 4, "column": 72},
],
"extensions": {
"rule": "5.8.5",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-All-Variable-Usages-are-Allowed",
"tag": "all-variable-usages-are-allowed",
},
},
{
"message": "Can't use < $i / [Int]! > for type < [Int!] >.",
"path": ["listOfNonNullParameterField"],
"locations": [
{"line": 2, "column": 19},
{"line": 6, "column": 48},
],
"extensions": {
"rule": "5.8.5",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-All-Variable-Usages-are-Allowed",
"tag": "all-variable-usages-are-allowed",
},
},
{
"message": "Can't use < $f / [Float]! > for type < [Float!] >.",
"path": ["listOfNonNullParameterField"],
"locations": [
{"line": 2, "column": 31},
{"line": 6, "column": 55},
],
"extensions": {
"rule": "5.8.5",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-All-Variable-Usages-are-Allowed",
"tag": "all-variable-usages-are-allowed",
},
},
{
"message": "Can't use < $s / [String]! > for type < [String!] >.",
"path": ["listOfNonNullParameterField"],
"locations": [
{"line": 2, "column": 45},
{"line": 6, "column": 61},
],
"extensions": {
"rule": "5.8.5",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-All-Variable-Usages-are-Allowed",
"tag": "all-variable-usages-are-allowed",
},
},
{
"message": "Can't use < $e / [AnEnum]! > for type < [AnEnum!] >.",
"path": ["listOfNonNullParameterField"],
"locations": [
{"line": 2, "column": 60},
{"line": 6, "column": 67},
],
"extensions": {
"rule": "5.8.5",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-All-Variable-Usages-are-Allowed",
"tag": "all-variable-usages-are-allowed",
},
},
{
"message": "Can't use < $input / [AnInput]! > for type < [AnInput!] >.",
"path": ["listOfNonNullParameterField"],
"locations": [
{"line": 2, "column": 75},
{"line": 6, "column": 78},
],
"extensions": {
"rule": "5.8.5",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-All-Variable-Usages-are-Allowed",
"tag": "all-variable-usages-are-allowed",
},
},
{
"message": "Can't use < $i / [Int]! > for type < [Int!]! >.",
"path": ["nonNullListOfNonNullParameterField"],
"locations": [
{"line": 2, "column": 19},
{"line": 8, "column": 55},
],
"extensions": {
"rule": "5.8.5",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-All-Variable-Usages-are-Allowed",
"tag": "all-variable-usages-are-allowed",
},
},
{
"message": "Can't use < $f / [Float]! > for type < [Float!]! >.",
"path": ["nonNullListOfNonNullParameterField"],
"locations": [
{"line": 2, "column": 31},
{"line": 8, "column": 62},
],
"extensions": {
"rule": "5.8.5",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-All-Variable-Usages-are-Allowed",
"tag": "all-variable-usages-are-allowed",
},
},
{
"message": "Can't use < $s / [String]! > for type < [String!]! >.",
"path": ["nonNullListOfNonNullParameterField"],
"locations": [
{"line": 2, "column": 45},
{"line": 8, "column": 68},
],
"extensions": {
"rule": "5.8.5",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-All-Variable-Usages-are-Allowed",
"tag": "all-variable-usages-are-allowed",
},
},
{
"message": "Can't use < $e / [AnEnum]! > for type < [AnEnum!]! >.",
"path": ["nonNullListOfNonNullParameterField"],
"locations": [
{"line": 2, "column": 60},
{"line": 8, "column": 74},
],
"extensions": {
"rule": "5.8.5",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-All-Variable-Usages-are-Allowed",
"tag": "all-variable-usages-are-allowed",
},
},
{
"message": "Can't use < $input / [AnInput]! > for type < [AnInput!]! >.",
"path": ["nonNullListOfNonNullParameterField"],
"locations": [
{"line": 2, "column": 75},
{"line": 8, "column": 85},
],
"extensions": {
"rule": "5.8.5",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-All-Variable-Usages-are-Allowed",
"tag": "all-variable-usages-are-allowed",
},
},
],
},
),
(
"""
query($i: [Int], $f: [Float], $s: [String], $e: [AnEnum], $input: [AnInput]) {
simpleParameterField(i: $i, f: $f, s:$s, e:$e, input: $input)
nonNullParameterField(i: $i, f: $f, s:$s, e:$e, input: $input)
listParameterField(i: $i, f: $f, s:$s, e:$e, input: $input)
listOfNonNullParameterField(i: $i, f: $f, s:$s, e:$e, input: $input)
nonNullListParameterField(i: $i, f: $f, s:$s, e:$e, input: $input)
nonNullListOfNonNullParameterField(i: $i, f: $f, s:$s, e:$e, input: $input)
}
""",
{
"data": None,
"errors": [
{
"message": "Can't use < $i / [Int] > for type < Int >.",
"path": ["simpleParameterField"],
"locations": [
{"line": 2, "column": 19},
{"line": 3, "column": 41},
],
"extensions": {
"rule": "5.8.5",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-All-Variable-Usages-are-Allowed",
"tag": "all-variable-usages-are-allowed",
},
},
{
"message": "Can't use < $f / [Float] > for type < Float >.",
"path": ["simpleParameterField"],
"locations": [
{"line": 2, "column": 30},
{"line": 3, "column": 48},
],
"extensions": {
"rule": "5.8.5",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-All-Variable-Usages-are-Allowed",
"tag": "all-variable-usages-are-allowed",
},
},
{
"message": "Can't use < $s / [String] > for type < String >.",
"path": ["simpleParameterField"],
"locations": [
{"line": 2, "column": 43},
{"line": 3, "column": 54},
],
"extensions": {
"rule": "5.8.5",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-All-Variable-Usages-are-Allowed",
"tag": "all-variable-usages-are-allowed",
},
},
{
"message": "Can't use < $e / [AnEnum] > for type < AnEnum >.",
"path": ["simpleParameterField"],
"locations": [
{"line": 2, "column": 57},
{"line": 3, "column": 60},
],
"extensions": {
"rule": "5.8.5",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-All-Variable-Usages-are-Allowed",
"tag": "all-variable-usages-are-allowed",
},
},
{
"message": "Can't use < $input / [AnInput] > for type < AnInput >.",
"path": ["simpleParameterField"],
"locations": [
{"line": 2, "column": 71},
{"line": 3, "column": 71},
],
"extensions": {
"rule": "5.8.5",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-All-Variable-Usages-are-Allowed",
"tag": "all-variable-usages-are-allowed",
},
},
{
"message": "Can't use < $i / [Int] > for type < Int! >.",
"path": ["nonNullParameterField"],
"locations": [
{"line": 2, "column": 19},
{"line": 4, "column": 42},
],
"extensions": {
"rule": "5.8.5",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-All-Variable-Usages-are-Allowed",
"tag": "all-variable-usages-are-allowed",
},
},
{
"message": "Can't use < $f / [Float] > for type < Float! >.",
"path": ["nonNullParameterField"],
"locations": [
{"line": 2, "column": 30},
{"line": 4, "column": 49},
],
"extensions": {
"rule": "5.8.5",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-All-Variable-Usages-are-Allowed",
"tag": "all-variable-usages-are-allowed",
},
},
{
"message": "Can't use < $s / [String] > for type < String! >.",
"path": ["nonNullParameterField"],
"locations": [
{"line": 2, "column": 43},
{"line": 4, "column": 55},
],
"extensions": {
"rule": "5.8.5",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-All-Variable-Usages-are-Allowed",
"tag": "all-variable-usages-are-allowed",
},
},
{
"message": "Can't use < $e / [AnEnum] > for type < AnEnum! >.",
"path": ["nonNullParameterField"],
"locations": [
{"line": 2, "column": 57},
{"line": 4, "column": 61},
],
"extensions": {
"rule": "5.8.5",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-All-Variable-Usages-are-Allowed",
"tag": "all-variable-usages-are-allowed",
},
},
{
"message": "Can't use < $input / [AnInput] > for type < AnInput! >.",
"path": ["nonNullParameterField"],
"locations": [
{"line": 2, "column": 71},
{"line": 4, "column": 72},
],
"extensions": {
"rule": "5.8.5",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-All-Variable-Usages-are-Allowed",
"tag": "all-variable-usages-are-allowed",
},
},
{
"message": "Can't use < $i / [Int] > for type < [Int!] >.",
"path": ["listOfNonNullParameterField"],
"locations": [
{"line": 2, "column": 19},
{"line": 6, "column": 48},
],
"extensions": {
"rule": "5.8.5",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-All-Variable-Usages-are-Allowed",
"tag": "all-variable-usages-are-allowed",
},
},
{
"message": "Can't use < $f / [Float] > for type < [Float!] >.",
"path": ["listOfNonNullParameterField"],
"locations": [
{"line": 2, "column": 30},
{"line": 6, "column": 55},
],
"extensions": {
"rule": "5.8.5",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-All-Variable-Usages-are-Allowed",
"tag": "all-variable-usages-are-allowed",
},
},
{
"message": "Can't use < $s / [String] > for type < [String!] >.",
"path": ["listOfNonNullParameterField"],
"locations": [
{"line": 2, "column": 43},
{"line": 6, "column": 61},
],
"extensions": {
"rule": "5.8.5",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-All-Variable-Usages-are-Allowed",
"tag": "all-variable-usages-are-allowed",
},
},
{
"message": "Can't use < $e / [AnEnum] > for type < [AnEnum!] >.",
"path": ["listOfNonNullParameterField"],
"locations": [
{"line": 2, "column": 57},
{"line": 6, "column": 67},
],
"extensions": {
"rule": "5.8.5",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-All-Variable-Usages-are-Allowed",
"tag": "all-variable-usages-are-allowed",
},
},
{
"message": "Can't use < $input / [AnInput] > for type < [AnInput!] >.",
"path": ["listOfNonNullParameterField"],
"locations": [
{"line": 2, "column": 71},
{"line": 6, "column": 78},
],
"extensions": {
"rule": "5.8.5",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-All-Variable-Usages-are-Allowed",
"tag": "all-variable-usages-are-allowed",
},
},
{
"message": "Can't use < $i / [Int] > for type < [Int]! >.",
"path": ["nonNullListParameterField"],
"locations": [
{"line": 2, "column": 19},
{"line": 7, "column": 46},
],
"extensions": {
"rule": "5.8.5",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-All-Variable-Usages-are-Allowed",
"tag": "all-variable-usages-are-allowed",
},
},
{
"message": "Can't use < $f / [Float] > for type < [Float]! >.",
"path": ["nonNullListParameterField"],
"locations": [
{"line": 2, "column": 30},
{"line": 7, "column": 53},
],
"extensions": {
"rule": "5.8.5",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-All-Variable-Usages-are-Allowed",
"tag": "all-variable-usages-are-allowed",
},
},
{
"message": "Can't use < $s / [String] > for type < [String]! >.",
"path": ["nonNullListParameterField"],
"locations": [
{"line": 2, "column": 43},
{"line": 7, "column": 59},
],
"extensions": {
"rule": "5.8.5",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-All-Variable-Usages-are-Allowed",
"tag": "all-variable-usages-are-allowed",
},
},
{
"message": "Can't use < $e / [AnEnum] > for type < [AnEnum]! >.",
"path": ["nonNullListParameterField"],
"locations": [
{"line": 2, "column": 57},
{"line": 7, "column": 65},
],
"extensions": {
"rule": "5.8.5",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-All-Variable-Usages-are-Allowed",
"tag": "all-variable-usages-are-allowed",
},
},
{
"message": "Can't use < $input / [AnInput] > for type < [AnInput]! >.",
"path": ["nonNullListParameterField"],
"locations": [
{"line": 2, "column": 71},
{"line": 7, "column": 76},
],
"extensions": {
"rule": "5.8.5",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-All-Variable-Usages-are-Allowed",
"tag": "all-variable-usages-are-allowed",
},
},
{
"message": "Can't use < $i / [Int] > for type < [Int!]! >.",
"path": ["nonNullListOfNonNullParameterField"],
"locations": [
{"line": 2, "column": 19},
{"line": 8, "column": 55},
],
"extensions": {
"rule": "5.8.5",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-All-Variable-Usages-are-Allowed",
"tag": "all-variable-usages-are-allowed",
},
},
{
"message": "Can't use < $f / [Float] > for type < [Float!]! >.",
"path": ["nonNullListOfNonNullParameterField"],
"locations": [
{"line": 2, "column": 30},
{"line": 8, "column": 62},
],
"extensions": {
"rule": "5.8.5",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-All-Variable-Usages-are-Allowed",
"tag": "all-variable-usages-are-allowed",
},
},
{
"message": "Can't use < $s / [String] > for type < [String!]! >.",
"path": ["nonNullListOfNonNullParameterField"],
"locations": [
{"line": 2, "column": 43},
{"line": 8, "column": 68},
],
"extensions": {
"rule": "5.8.5",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-All-Variable-Usages-are-Allowed",
"tag": "all-variable-usages-are-allowed",
},
},
{
"message": "Can't use < $e / [AnEnum] > for type < [AnEnum!]! >.",
"path": ["nonNullListOfNonNullParameterField"],
"locations": [
{"line": 2, "column": 57},
{"line": 8, "column": 74},
],
"extensions": {
"rule": "5.8.5",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-All-Variable-Usages-are-Allowed",
"tag": "all-variable-usages-are-allowed",
},
},
{
"message": "Can't use < $input / [AnInput] > for type < [AnInput!]! >.",
"path": ["nonNullListOfNonNullParameterField"],
"locations": [
{"line": 2, "column": 71},
{"line": 8, "column": 85},
],
"extensions": {
"rule": "5.8.5",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-All-Variable-Usages-are-Allowed",
"tag": "all-variable-usages-are-allowed",
},
},
],
},
),
],
)
@pytest.mark.asyncio
async def test_validators_all_variable_usages_are_allowed(
query, expected, ttftt_engine
):
assert await ttftt_engine.execute(query) == expected
| 50.968125 | 126 | 0.330722 | 6,466 | 94,342 | 4.815342 | 0.019796 | 0.087616 | 0.135406 | 0.159301 | 0.979413 | 0.979413 | 0.974756 | 0.972797 | 0.972797 | 0.969521 | 0 | 0.045239 | 0.522016 | 94,342 | 1,850 | 127 | 50.995676 | 0.64523 | 0 | 0 | 0.692222 | 0 | 0.070509 | 0.374138 | 0.075114 | 0 | 0 | 0 | 0 | 0.00056 | 1 | 0 | false | 0 | 0.001119 | 0 | 0.002238 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 1 | 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 |
bdfd39717f56fe3ee8f11ce8cdf9f3eb01f6e7c3 | 46 | py | Python | JMDE/tests.py | yarbroughw/JMDE | 198a6bd3854d0b51998c7512765c5e6c23901648 | [
"MIT"
] | 1 | 2015-08-04T23:22:53.000Z | 2015-08-04T23:22:53.000Z | JMDE/tests.py | yarbroughw/JMDE | 198a6bd3854d0b51998c7512765c5e6c23901648 | [
"MIT"
] | 3 | 2015-08-07T06:15:45.000Z | 2015-08-15T05:12:34.000Z | JMDE/tests.py | yarbroughw/ontologyproj | 198a6bd3854d0b51998c7512765c5e6c23901648 | [
"MIT"
] | null | null | null |
import treeclassifier
import basicclassifier
| 11.5 | 22 | 0.891304 | 4 | 46 | 10.25 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.108696 | 46 | 3 | 23 | 15.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
da1b169e6cd71825a59a2578a747919c2fcb5305 | 1,431 | py | Python | tests/test_semantic_embedding.py | SPOClab-ca/word-class-flexibility | 88321e156b3c4f37cfcd126d2795e1557ba1bbfc | [
"MIT"
] | null | null | null | tests/test_semantic_embedding.py | SPOClab-ca/word-class-flexibility | 88321e156b3c4f37cfcd126d2795e1557ba1bbfc | [
"MIT"
] | null | null | null | tests/test_semantic_embedding.py | SPOClab-ca/word-class-flexibility | 88321e156b3c4f37cfcd126d2795e1557ba1bbfc | [
"MIT"
] | null | null | null | import unittest
import src.semantic_embedding
class WordPieceMatchTest(unittest.TestCase):
def test_english_basic(self):
embedder = src.semantic_embedding.SemanticEmbedding([])
assert embedder._match_wordpiece(['I', 'have', 'a', 'cat'], 'i', 0) == [0]
assert embedder._match_wordpiece(['I', 'have', 'a', 'cat'], 'have', 1) == [1]
assert embedder._match_wordpiece(['I', 'have', 'a', 'cat'], 'a', 2) == [2]
assert embedder._match_wordpiece(['I', 'have', 'a', 'cat'], 'cat', 3) == [3]
assert embedder._match_wordpiece(['I', 'have', 'a', 'cat'], 'in', 0) == None
assert embedder._match_wordpiece(['I', 'have', 'a', 'cat'], 'ca', 3) == None
def test_english_split(self):
embedder = src.semantic_embedding.SemanticEmbedding([])
assert embedder._match_wordpiece(['what', 'a', 'coin', '##cid', '##ence', '!'], 'coincidence', 2) == [2, 3, 4]
assert embedder._match_wordpiece(['what', 'a', 'coin', '##cid', '##ence', '!'], 'cidence', 3) == None
assert embedder._match_wordpiece(['what', 'a', 'coin', '##cid', '##ence', '!'], 'cid', 3) == None
def test_chinese(self):
embedder = src.semantic_embedding.SemanticEmbedding([])
assert embedder._match_wordpiece(['我', '是', '加', '拿', '大', '人'], '我', 0) == [0]
assert embedder._match_wordpiece(['我', '是', '加', '拿', '大', '人'], '加拿大', 2) == [2, 3, 4]
assert embedder._match_wordpiece(['我', '是', '加', '拿', '大', '人'], '加', 2) == [2]
| 55.038462 | 114 | 0.591195 | 184 | 1,431 | 4.418478 | 0.244565 | 0.206642 | 0.280443 | 0.413284 | 0.766298 | 0.756458 | 0.751538 | 0.751538 | 0.503075 | 0.375154 | 0 | 0.019737 | 0.150245 | 1,431 | 25 | 115 | 57.24 | 0.648849 | 0 | 0 | 0.142857 | 0 | 0 | 0.121678 | 0 | 0 | 0 | 0 | 0 | 0.571429 | 1 | 0.142857 | false | 0 | 0.095238 | 0 | 0.285714 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
da479efa0796b6e2c3247229c05f96d8f0cf85e8 | 64,569 | py | Python | roles/views.py | PMO-SE/PMO-sys | de7a9ec84a00ec5fa2f9d22e04e4681f39e2b5b2 | [
"MIT"
] | null | null | null | roles/views.py | PMO-SE/PMO-sys | de7a9ec84a00ec5fa2f9d22e04e4681f39e2b5b2 | [
"MIT"
] | null | null | null | roles/views.py | PMO-SE/PMO-sys | de7a9ec84a00ec5fa2f9d22e04e4681f39e2b5b2 | [
"MIT"
] | null | null | null | from django.shortcuts import render
from rest_framework.response import Response
from rest_framework.views import APIView
# 实现接口/vue-element-admin/roles 查看角色列表
class rolesView(APIView):
def get(self, request):
res = {
"code": 20000,
"data": [
{
"key": "admin",
"name": "admin",
"description": "Super Administrator. Have access to view all pages.",
"routes": [{
"path": "/redirect",
"component": "layout/Layout",
"hidden": True,
"children": [{
"path": "/redirect/:path*",
"component": "views/redirect/index"
}]
}, {
"path": "/login",
"component": "views/login/index",
"hidden": True
}, {
"path": "/auth-redirect",
"component": "views/login/auth-redirect",
"hidden": True
}, {
"path": "/404",
"component": "views/error-page/404",
"hidden": True
}, {
"path": "/401",
"component": "views/error-page/401",
"hidden": True
}, {
"path": "",
"component": "layout/Layout",
"redirect": "dashboard",
"children": [{
"path": "dashboard",
"component": "views/dashboard/index",
"name": "Dashboard",
"meta": {
"title": "Dashboard",
"icon": "dashboard",
"affix": True
}
}]
}, {
"path": "/documentation",
"component": "layout/Layout",
"children": [{
"path": "index",
"component": "views/documentation/index",
"name": "Documentation",
"meta": {
"title": "Documentation",
"icon": "documentation",
"affix": True
}
}]
}, {
"path": "/guide",
"component": "layout/Layout",
"redirect": "/guide/index",
"children": [{
"path": "index",
"component": "views/guide/index",
"name": "Guide",
"meta": {
"title": "Guide",
"icon": "guide",
"noCache": True
}
}]
}, {
"path": "/permission",
"component": "layout/Layout",
"redirect": "/permission/index",
"alwaysShow": True,
"meta": {
"title": "Permission",
"icon": "lock",
"roles": ["admin", "editor"]
},
"children": [{
"path": "page",
"component": "views/permission/page",
"name": "PagePermission",
"meta": {
"title": "Page Permission",
"roles": ["admin"]
}
}, {
"path": "directive",
"component": "views/permission/directive",
"name": "DirectivePermission",
"meta": {
"title": "Directive Permission"
}
}, {
"path": "role",
"component": "views/permission/role",
"name": "RolePermission",
"meta": {
"title": "Role Permission",
"roles": ["admin"]
}
}]
}, {
"path": "/icon",
"component": "layout/Layout",
"children": [{
"path": "index",
"component": "views/icons/index",
"name": "Icons",
"meta": {
"title": "Icons",
"icon": "icon",
"noCache": True
}
}]
}, {
"path": "/components",
"component": "layout/Layout",
"redirect": "noRedirect",
"name": "ComponentDemo",
"meta": {
"title": "Components",
"icon": "component"
},
"children": [{
"path": "tinymce",
"component": "views/components-demo/tinymce",
"name": "TinymceDemo",
"meta": {
"title": "Tinymce"
}
}, {
"path": "markdown",
"component": "views/components-demo/markdown",
"name": "MarkdownDemo",
"meta": {
"title": "Markdown"
}
}, {
"path": "json-editor",
"component": "views/components-demo/json-editor",
"name": "JsonEditorDemo",
"meta": {
"title": "Json Editor"
}
}, {
"path": "split-pane",
"component": "views/components-demo/split-pane",
"name": "SplitpaneDemo",
"meta": {
"title": "SplitPane"
}
}, {
"path": "avatar-upload",
"component": "views/components-demo/avatar-upload",
"name": "AvatarUploadDemo",
"meta": {
"title": "Avatar Upload"
}
}, {
"path": "dropzone",
"component": "views/components-demo/dropzone",
"name": "DropzoneDemo",
"meta": {
"title": "Dropzone"
}
}, {
"path": "sticky",
"component": "views/components-demo/sticky",
"name": "StickyDemo",
"meta": {
"title": "Sticky"
}
}, {
"path": "count-to",
"component": "views/components-demo/count-to",
"name": "CountToDemo",
"meta": {
"title": "Count To"
}
}, {
"path": "mixin",
"component": "views/components-demo/mixin",
"name": "ComponentMixinDemo",
"meta": {
"title": "componentMixin"
}
}, {
"path": "back-to-top",
"component": "views/components-demo/back-to-top",
"name": "BackToTopDemo",
"meta": {
"title": "Back To Top"
}
}, {
"path": "drag-dialog",
"component": "views/components-demo/drag-dialog",
"name": "DragDialogDemo",
"meta": {
"title": "Drag Dialog"
}
}, {
"path": "drag-select",
"component": "views/components-demo/drag-select",
"name": "DragSelectDemo",
"meta": {
"title": "Drag Select"
}
}, {
"path": "dnd-list",
"component": "views/components-demo/dnd-list",
"name": "DndListDemo",
"meta": {
"title": "Dnd List"
}
}, {
"path": "drag-kanban",
"component": "views/components-demo/drag-kanban",
"name": "DragKanbanDemo",
"meta": {
"title": "Drag Kanban"
}
}]
}, {
"path": "/charts",
"component": "layout/Layout",
"redirect": "noRedirect",
"name": "Charts",
"meta": {
"title": "Charts",
"icon": "chart"
},
"children": [{
"path": "keyboard",
"component": "views/charts/keyboard",
"name": "KeyboardChart",
"meta": {
"title": "Keyboard Chart",
"noCache": True
}
}, {
"path": "line",
"component": "views/charts/line",
"name": "LineChart",
"meta": {
"title": "Line Chart",
"noCache": True
}
}, {
"path": "mixchart",
"component": "views/charts/mixChart",
"name": "MixChart",
"meta": {
"title": "Mix Chart",
"noCache": True
}
}]
}, {
"path": "/nested",
"component": "layout/Layout",
"redirect": "/nested/menu1/menu1-1",
"name": "Nested",
"meta": {
"title": "Nested",
"icon": "nested"
},
"children": [{
"path": "menu1",
"component": "views/nested/menu1/index",
"name": "Menu1",
"meta": {
"title": "Menu1"
},
"redirect": "/nested/menu1/menu1-1",
"children": [{
"path": "menu1-1",
"component": "views/nested/menu1/menu1-1",
"name": "Menu1-1",
"meta": {
"title": "Menu1-1"
}
}, {
"path": "menu1-2",
"component": "views/nested/menu1/menu1-2",
"name": "Menu1-2",
"redirect": "/nested/menu1/menu1-2/menu1-2-1",
"meta": {
"title": "Menu1-2"
},
"children": [{
"path": "menu1-2-1",
"component": "views/nested/menu1/menu1-2/menu1-2-1",
"name": "Menu1-2-1",
"meta": {
"title": "Menu1-2-1"
}
}, {
"path": "menu1-2-2",
"component": "views/nested/menu1/menu1-2/menu1-2-2",
"name": "Menu1-2-2",
"meta": {
"title": "Menu1-2-2"
}
}]
}, {
"path": "menu1-3",
"component": "views/nested/menu1/menu1-3",
"name": "Menu1-3",
"meta": {
"title": "Menu1-3"
}
}]
}, {
"path": "menu2",
"name": "Menu2",
"component": "views/nested/menu2/index",
"meta": {
"title": "Menu2"
}
}]
}, {
"path": "/example",
"component": "layout/Layout",
"redirect": "/example/list",
"name": "Example",
"meta": {
"title": "Example",
"icon": "example"
},
"children": [{
"path": "create",
"component": "views/example/create",
"name": "CreateArticle",
"meta": {
"title": "Create Article",
"icon": "edit"
}
}, {
"path": "edit/:id(\\d+)",
"component": "views/example/edit",
"name": "EditArticle",
"meta": {
"title": "Edit Article",
"noCache": True
},
"hidden": True
}, {
"path": "list",
"component": "views/example/list",
"name": "ArticleList",
"meta": {
"title": "Article List",
"icon": "list"
}
}]
}, {
"path": "/tab",
"component": "layout/Layout",
"children": [{
"path": "index",
"component": "views/tab/index",
"name": "Tab",
"meta": {
"title": "Tab",
"icon": "tab"
}
}]
}, {
"path": "/error",
"component": "layout/Layout",
"redirect": "noRedirect",
"name": "ErrorPages",
"meta": {
"title": "Error Pages",
"icon": "404"
},
"children": [{
"path": "401",
"component": "views/error-page/401",
"name": "Page401",
"meta": {
"title": "Page 401",
"noCache": True
}
}, {
"path": "404",
"component": "views/error-page/404",
"name": "Page404",
"meta": {
"title": "Page 404",
"noCache": True
}
}]
}, {
"path": "/error-log",
"component": "layout/Layout",
"redirect": "noRedirect",
"children": [{
"path": "log",
"component": "views/error-log/index",
"name": "ErrorLog",
"meta": {
"title": "Error Log",
"icon": "bug"
}
}]
}, {
"path": "/excel",
"component": "layout/Layout",
"redirect": "/excel/export-excel",
"name": "Excel",
"meta": {
"title": "Excel",
"icon": "excel"
},
"children": [{
"path": "export-excel",
"component": "views/excel/export-excel",
"name": "ExportExcel",
"meta": {
"title": "Export Excel"
}
}, {
"path": "export-selected-excel",
"component": "views/excel/select-excel",
"name": "SelectExcel",
"meta": {
"title": "Select Excel"
}
}, {
"path": "export-merge-header",
"component": "views/excel/merge-header",
"name": "MergeHeader",
"meta": {
"title": "Merge Header"
}
}, {
"path": "upload-excel",
"component": "views/excel/upload-excel",
"name": "UploadExcel",
"meta": {
"title": "Upload Excel"
}
}]
}, {
"path": "/zip",
"component": "layout/Layout",
"redirect": "/zip/download",
"alwaysShow": True,
"meta": {
"title": "Zip",
"icon": "zip"
},
"children": [{
"path": "download",
"component": "views/zip/index",
"name": "ExportZip",
"meta": {
"title": "Export Zip"
}
}]
}, {
"path": "/pdf",
"component": "layout/Layout",
"redirect": "/pdf/index",
"children": [{
"path": "index",
"component": "views/pdf/index",
"name": "PDF",
"meta": {
"title": "PDF",
"icon": "pdf"
}
}]
}, {
"path": "/pdf/download",
"component": "views/pdf/download",
"hidden": True
}, {
"path": "/theme",
"component": "layout/Layout",
"redirect": "noRedirect",
"children": [{
"path": "index",
"component": "views/theme/index",
"name": "Theme",
"meta": {
"title": "Theme",
"icon": "theme"
}
}]
}, {
"path": "/clipboard",
"component": "layout/Layout",
"redirect": "noRedirect",
"children": [{
"path": "index",
"component": "views/clipboard/index",
"name": "ClipboardDemo",
"meta": {
"title": "Clipboard Demo",
"icon": "clipboard"
}
}]
}, {
"path": "/i18n",
"component": "layout/Layout",
"children": [{
"path": "index",
"component": "views/i18n-demo/index",
"name": "I18n",
"meta": {
"title": "I18n",
"icon": "international"
}
}]
}, {
"path": "external-link",
"component": "layout/Layout",
"children": [{
"path": "https://github.com/PanJiaChen/vue-element-admin",
"meta": {
"title": "External Link",
"icon": "link"
}
}]
}, {
"path": "*",
"redirect": "/404",
"hidden": True
}]
},
{
"key": "editor",
"name": "editor",
"description": "Normal Editor. Can see all pages except permission page",
"routes": [
{
"path": "/redirect",
"component": "layout/Layout",
"hidden": True,
"children": [{
"path": "/redirect/:path*",
"component": "views/redirect/index"
}]
},
{
"path": "/login",
"component": "views/login/index",
"hidden": True
},
{
"path": "/auth-redirect",
"component": "views/login/auth-redirect",
"hidden": True
},
{
"path": "/404",
"component": "views/error-page/404",
"hidden": True
},
{
"path": "/401",
"component": "views/error-page/401",
"hidden": True
},
{
"path": "",
"component": "layout/Layout",
"redirect": "dashboard",
"children": [{
"path": "dashboard",
"component": "views/dashboard/index",
"name": "Dashboard",
"meta": {
"title": "Dashboard",
"icon": "dashboard",
"affix": True
}
}]
},
{
"path": "/documentation",
"component": "layout/Layout",
"children": [{
"path": "index",
"component": "views/documentation/index",
"name": "Documentation",
"meta": {
"title": "Documentation",
"icon": "documentation",
"affix": True
}
}]
},
{
"path": "/guide",
"component": "layout/Layout",
"redirect": "/guide/index",
"children": [{
"path": "index",
"component": "views/guide/index",
"name": "Guide",
"meta": {
"title": "Guide",
"icon": "guide",
"noCache": True
}
}]
},
# {
# "path": "/icon",
# "component": "layout/Layout",
# "children": [{
# "path": "index",
# "component": "views/icons/index",
# "name": "Icons",
# "meta": {
# "title": "Icons",
# "icon": "icon",
# "noCache": True
# }
# }]
# },
# {
# "path": "/components",
# "component": "layout/Layout",
# "redirect": "noRedirect",
# "name": "ComponentDemo",
# "meta": {
# "title": "Components",
# "icon": "component"
# },
# "children": [{
# "path": "tinymce",
# "component": "views/components-demo/tinymce",
# "name": "TinymceDemo",
# "meta": {
# "title": "Tinymce"
# }
# }, {
# "path": "markdown",
# "component": "views/components-demo/markdown",
# "name": "MarkdownDemo",
# "meta": {
# "title": "Markdown"
# }
# }, {
# "path": "json-editor",
# "component": "views/components-demo/json-editor",
# "name": "JsonEditorDemo",
# "meta": {
# "title": "Json Editor"
# }
# }, {
# "path": "split-pane",
# "component": "views/components-demo/split-pane",
# "name": "SplitpaneDemo",
# "meta": {
# "title": "SplitPane"
# }
# }, {
# "path": "avatar-upload",
# "component": "views/components-demo/avatar-upload",
# "name": "AvatarUploadDemo",
# "meta": {
# "title": "Avatar Upload"
# }
# }, {
# "path": "dropzone",
# "component": "views/components-demo/dropzone",
# "name": "DropzoneDemo",
# "meta": {
# "title": "Dropzone"
# }
# }, {
# "path": "sticky",
# "component": "views/components-demo/sticky",
# "name": "StickyDemo",
# "meta": {
# "title": "Sticky"
# }
# }, {
# "path": "count-to",
# "component": "views/components-demo/count-to",
# "name": "CountToDemo",
# "meta": {
# "title": "Count To"
# }
# }, {
# "path": "mixin",
# "component": "views/components-demo/mixin",
# "name": "ComponentMixinDemo",
# "meta": {
# "title": "componentMixin"
# }
# }, {
# "path": "back-to-top",
# "component": "views/components-demo/back-to-top",
# "name": "BackToTopDemo",
# "meta": {
# "title": "Back To Top"
# }
# }, {
# "path": "drag-dialog",
# "component": "views/components-demo/drag-dialog",
# "name": "DragDialogDemo",
# "meta": {
# "title": "Drag Dialog"
# }
# }, {
# "path": "drag-select",
# "component": "views/components-demo/drag-select",
# "name": "DragSelectDemo",
# "meta": {
# "title": "Drag Select"
# }
# }, {
# "path": "dnd-list",
# "component": "views/components-demo/dnd-list",
# "name": "DndListDemo",
# "meta": {
# "title": "Dnd List"
# }
# }, {
# "path": "drag-kanban",
# "component": "views/components-demo/drag-kanban",
# "name": "DragKanbanDemo",
# "meta": {
# "title": "Drag Kanban"
# }
# }]
# },
# {
# "path": "/charts",
# "component": "layout/Layout",
# "redirect": "noRedirect",
# "name": "Charts",
# "meta": {
# "title": "Charts",
# "icon": "chart"
# },
# "children": [{
# "path": "keyboard",
# "component": "views/charts/keyboard",
# "name": "KeyboardChart",
# "meta": {
# "title": "Keyboard Chart",
# "noCache": True
# }
# }, {
# "path": "line",
# "component": "views/charts/line",
# "name": "LineChart",
# "meta": {
# "title": "Line Chart",
# "noCache": True
# }
# }, {
# "path": "mixchart",
# "component": "views/charts/mixChart",
# "name": "MixChart",
# "meta": {
# "title": "Mix Chart",
# "noCache": True
# }
# }]
# },
# {
# "path": "/nested",
# "component": "layout/Layout",
# "redirect": "/nested/menu1/menu1-1",
# "name": "Nested",
# "meta": {
# "title": "Nested",
# "icon": "nested"
# },
# "children": [{
# "path": "menu1",
# "component": "views/nested/menu1/index",
# "name": "Menu1",
# "meta": {
# "title": "Menu1"
# },
# "redirect": "/nested/menu1/menu1-1",
# "children": [{
# "path": "menu1-1",
# "component": "views/nested/menu1/menu1-1",
# "name": "Menu1-1",
# "meta": {
# "title": "Menu1-1"
# }
# }, {
# "path": "menu1-2",
# "component": "views/nested/menu1/menu1-2",
# "name": "Menu1-2",
# "redirect": "/nested/menu1/menu1-2/menu1-2-1",
# "meta": {
# "title": "Menu1-2"
# },
# "children": [{
# "path": "menu1-2-1",
# "component": "views/nested/menu1/menu1-2/menu1-2-1",
# "name": "Menu1-2-1",
# "meta": {
# "title": "Menu1-2-1"
# }
# }, {
# "path": "menu1-2-2",
# "component": "views/nested/menu1/menu1-2/menu1-2-2",
# "name": "Menu1-2-2",
# "meta": {
# "title": "Menu1-2-2"
# }
# }]
# }, {
# "path": "menu1-3",
# "component": "views/nested/menu1/menu1-3",
# "name": "Menu1-3",
# "meta": {
# "title": "Menu1-3"
# }
# }]
# }, {
# "path": "menu2",
# "name": "Menu2",
# "component": "views/nested/menu2/index",
# "meta": {
# "title": "Menu2"
# }
# }]
# },
# {
# "path": "/example",
# "component": "layout/Layout",
# "redirect": "/example/list",
# "name": "Example",
# "meta": {
# "title": "Example",
# "icon": "example"
# },
# "children": [{
# "path": "create",
# "component": "views/example/create",
# "name": "CreateArticle",
# "meta": {
# "title": "Create Article",
# "icon": "edit"
# }
# }, {
# "path": "edit/:id(\\d+)",
# "component": "views/example/edit",
# "name": "EditArticle",
# "meta": {
# "title": "Edit Article",
# "noCache": True
# },
# "hidden": True
# }, {
# "path": "list",
# "component": "views/example/list",
# "name": "ArticleList",
# "meta": {
# "title": "Article List",
# "icon": "list"
# }
# }]
# },
# {
# "path": "/tab",
# "component": "layout/Layout",
# "children": [{
# "path": "index",
# "component": "views/tab/index",
# "name": "Tab",
# "meta": {
# "title": "Tab",
# "icon": "tab"
# }
# }]
# },
# {
# "path": "/error",
# "component": "layout/Layout",
# "redirect": "noRedirect",
# "name": "ErrorPages",
# "meta": {
# "title": "Error Pages",
# "icon": "404"
# },
# "children": [{
# "path": "401",
# "component": "views/error-page/401",
# "name": "Page401",
# "meta": {
# "title": "Page 401",
# "noCache": True
# }
# }, {
# "path": "404",
# "component": "views/error-page/404",
# "name": "Page404",
# "meta": {
# "title": "Page 404",
# "noCache": True
# }
# }]
# },
# {
# "path": "/error-log",
# "component": "layout/Layout",
# "redirect": "noRedirect",
# "children": [{
# "path": "log",
# "component": "views/error-log/index",
# "name": "ErrorLog",
# "meta": {
# "title": "Error Log",
# "icon": "bug"
# }
# }]
# },
# {
# "path": "/excel",
# "component": "layout/Layout",
# "redirect": "/excel/export-excel",
# "name": "Excel",
# "meta": {
# "title": "Excel",
# "icon": "excel"
# },
# "children": [{
# "path": "export-excel",
# "component": "views/excel/export-excel",
# "name": "ExportExcel",
# "meta": {
# "title": "Export Excel"
# }
# }, {
# "path": "export-selected-excel",
# "component": "views/excel/select-excel",
# "name": "SelectExcel",
# "meta": {
# "title": "Select Excel"
# }
# }, {
# "path": "export-merge-header",
# "component": "views/excel/merge-header",
# "name": "MergeHeader",
# "meta": {
# "title": "Merge Header"
# }
# }, {
# "path": "upload-excel",
# "component": "views/excel/upload-excel",
# "name": "UploadExcel",
# "meta": {
# "title": "Upload Excel"
# }
# }]
# },
# {
# "path": "/zip",
# "component": "layout/Layout",
# "redirect": "/zip/download",
# "alwaysShow": True,
# "meta": {
# "title": "Zip",
# "icon": "zip"
# },
# "children": [{
# "path": "download",
# "component": "views/zip/index",
# "name": "ExportZip",
# "meta": {
# "title": "Export Zip"
# }
# }]
# },
# {
# "path": "/pdf",
# "component": "layout/Layout",
# "redirect": "/pdf/index",
# "children": [{
# "path": "index",
# "component": "views/pdf/index",
# "name": "PDF",
# "meta": {
# "title": "PDF",
# "icon": "pdf"
# }
# }]
# },
# {
# "path": "/pdf/download",
# "component": "views/pdf/download",
# "hidden": True
# },
# {
# "path": "/theme",
# "component": "layout/Layout",
# "redirect": "noRedirect",
# "children": [{
# "path": "index",
# "component": "views/theme/index",
# "name": "Theme",
# "meta": {
# "title": "Theme",
# "icon": "theme"
# }
# }]
# },
# {
# "path": "/clipboard",
# "component": "layout/Layout",
# "redirect": "noRedirect",
# "children": [{
# "path": "index",
# "component": "views/clipboard/index",
# "name": "ClipboardDemo",
# "meta": {
# "title": "Clipboard Demo",
# "icon": "clipboard"
# }
# }]
# },
# {
# "path": "/i18n",
# "component": "layout/Layout",
# "children": [{
# "path": "index",
# "component": "views/i18n-demo/index",
# "name": "I18n",
# "meta": {
# "title": "I18n",
# "icon": "international"
# }
# }]
# },
# {
# "path": "external-link",
# "component": "layout/Layout",
# "children": [{
# "path": "https://github.com/PanJiaChen/vue-element-admin",
# "meta": {
# "title": "External Link",
# "icon": "link"
# }
# }]
# },
{
"path": "*",
"redirect": "/404",
"hidden": True
}
]
},
{
"key": "visitor",
"name": "visitor",
"description": "Just a visitor. Can only see the home page and the document page",
"routes": [{
"path": "",
"redirect": "dashboard",
"children": [{
"path": "dashboard",
"name": "Dashboard",
"meta": {
"title": "dashboard",
"icon": "dashboard"
}
}]
}]
},
{
"key": "XSY",
"name": "XSY",
"description": "Just a visitor. Can only see the home page and the document page",
"routes": [{
"path": "",
"redirect": "dashboard",
"children": [{
"path": "dashboard",
"name": "Dashboard",
"meta": {
"title": "dashboard",
"icon": "dashboard"
}
}]
}]
},
]
}
return Response(res)
class routesView(APIView):
def get(self, request):
res = {
"code": 20000,
"data": [
{"path": "/redirect", "component": "layout/Layout", "hidden": True,
"children": [{"path": "/redirect/:path*", "component": "views/redirect/index"}]},
{"path": "/login", "component": "views/login/index", "hidden": True},
{"path": "/auth-redirect", "component": "views/login/auth-redirect", "hidden": True},
{"path": "/404", "component": "views/error-page/404", "hidden": True},
{"path": "/401", "component": "views/error-page/401", "hidden": True},
{"path": "", "component": "layout/Layout", "redirect": "dashboard",
"children": [{"path": "dashboard", "component": "views/dashboard/index", "name": "Dashboard",
"meta": {"title": "Dashboard", "icon": "dashboard", "affix": True}}]},
{"path": "/documentation", "component": "layout/Layout", "children": [
{"path": "index", "component": "views/documentation/index", "name": "Documentation",
"meta": {"title": "Documentation", "icon": "documentation", "affix": True}}]},
{"path": "/guide", "component": "layout/Layout", "redirect": "/guide/index",
"children": [{"path": "index", "component": "views/guide/index", "name": "Guide",
"meta": {"title": "Guide", "icon": "guide", "noCache": True}}]},
{"path": "/permission", "component": "layout/Layout", "redirect": "/permission/index",
"alwaysShow": True, "meta": {"title": "Permission", "icon": "lock", "roles": ["admin", "editor"]},
"children": [{"path": "page", "component": "views/permission/page",
"name": "PagePermission",
"meta": {"title": "Page Permission", "roles": ["admin"]}},
{"path": "directive", "component": "views/permission/directive",
"name": "DirectivePermission",
"meta": {"title": "Directive Permission"}},
{"path": "role", "component": "views/permission/role",
"name": "RolePermission",
"meta": {"title": "Role Permission", "roles": ["admin"]}}]},
{"path": "/icon", "component": "layout/Layout", "children": [
{"path": "index", "component": "views/icons/index", "name": "Icons",
"meta": {"title": "Icons", "icon": "icon", "noCache": True}}]},
{"path": "/components", "component": "layout/Layout", "redirect": "noRedirect", "name": "ComponentDemo",
"meta": {"title": "Components", "icon": "component"},
"children": [{"path": "tinymce", "component": "views/components-demo/tinymce", "name": "TinymceDemo",
"meta": {"title": "Tinymce"}},
{"path": "markdown", "component": "views/components-demo/markdown",
"name": "MarkdownDemo", "meta": {"title": "Markdown"}},
{"path": "json-editor",
"component": "views/components-demo/json-editor",
"name": "JsonEditorDemo", "meta": {"title": "Json Editor"}},
{"path": "split-pane",
"component": "views/components-demo/split-pane",
"name": "SplitpaneDemo", "meta": {"title": "SplitPane"}},
{"path": "avatar-upload",
"component": "views/components-demo/avatar-upload",
"name": "AvatarUploadDemo", "meta": {"title": "Avatar Upload"}},
{"path": "dropzone", "component": "views/components-demo/dropzone",
"name": "DropzoneDemo", "meta": {"title": "Dropzone"}},
{"path": "sticky", "component": "views/components-demo/sticky",
"name": "StickyDemo", "meta": {"title": "Sticky"}},
{"path": "count-to", "component": "views/components-demo/count-to",
"name": "CountToDemo", "meta": {"title": "Count To"}},
{"path": "mixin", "component": "views/components-demo/mixin",
"name": "ComponentMixinDemo",
"meta": {"title": "componentMixin"}}, {"path": "back-to-top",
"component": "views/components-demo/back-to-top",
"name": "BackToTopDemo",
"meta": {
"title": "Back To Top"}},
{"path": "drag-dialog",
"component": "views/components-demo/drag-dialog",
"name": "DragDialogDemo", "meta": {"title": "Drag Dialog"}},
{"path": "drag-select",
"component": "views/components-demo/drag-select",
"name": "DragSelectDemo", "meta": {"title": "Drag Select"}},
{"path": "dnd-list", "component": "views/components-demo/dnd-list",
"name": "DndListDemo", "meta": {"title": "Dnd List"}},
{"path": "drag-kanban",
"component": "views/components-demo/drag-kanban",
"name": "DragKanbanDemo", "meta": {"title": "Drag Kanban"}}]},
{"path": "/charts", "component": "layout/Layout", "redirect": "noRedirect", "name": "Charts",
"meta": {"title": "Charts", "icon": "chart"}, "children": [
{"path": "keyboard", "component": "views/charts/keyboard",
"name": "KeyboardChart",
"meta": {"title": "Keyboard Chart", "noCache": True}},
{"path": "line", "component": "views/charts/line", "name": "LineChart",
"meta": {"title": "Line Chart", "noCache": True}},
{"path": "mixchart", "component": "views/charts/mixChart",
"name": "MixChart", "meta": {"title": "Mix Chart", "noCache": True}}]},
{"path": "/nested", "component": "layout/Layout", "redirect": "/nested/menu1/menu1-1", "name": "Nested",
"meta": {"title": "Nested", "icon": "nested"}, "children": [
{"path": "menu1", "component": "views/nested/menu1/index", "name": "Menu1",
"meta": {"title": "Menu1"}, "redirect": "/nested/menu1/menu1-1",
"children": [{"path": "menu1-1", "component": "views/nested/menu1/menu1-1",
"name": "Menu1-1", "meta": {"title": "Menu1-1"}},
{"path": "menu1-2", "component": "views/nested/menu1/menu1-2",
"name": "Menu1-2",
"redirect": "/nested/menu1/menu1-2/menu1-2-1",
"meta": {"title": "Menu1-2"}, "children": [
{"path": "menu1-2-1",
"component": "views/nested/menu1/menu1-2/menu1-2-1",
"name": "Menu1-2-1", "meta": {"title": "Menu1-2-1"}},
{"path": "menu1-2-2",
"component": "views/nested/menu1/menu1-2/menu1-2-2",
"name": "Menu1-2-2", "meta": {"title": "Menu1-2-2"}}]},
{"path": "menu1-3", "component": "views/nested/menu1/menu1-3",
"name": "Menu1-3", "meta": {"title": "Menu1-3"}}]},
{"path": "menu2", "name": "Menu2", "component": "views/nested/menu2/index",
"meta": {"title": "Menu2"}}]},
{"path": "/example", "component": "layout/Layout", "redirect": "/example/list",
"name": "Example", "meta": {"title": "Example", "icon": "example"},
"children": [{"path": "create", "component": "views/example/create",
"name": "CreateArticle",
"meta": {"title": "Create Article", "icon": "edit"}},
{"path": "edit/:id(\\d+)", "component": "views/example/edit",
"name": "EditArticle",
"meta": {"title": "Edit Article", "noCache": True},
"hidden": True},
{"path": "list", "component": "views/example/list",
"name": "ArticleList",
"meta": {"title": "Article List", "icon": "list"}}]},
{"path": "/tab", "component": "layout/Layout", "children": [
{"path": "index", "component": "views/tab/index", "name": "Tab",
"meta": {"title": "Tab", "icon": "tab"}}]},
{"path": "/error", "component": "layout/Layout", "redirect": "noRedirect",
"name": "ErrorPages", "meta": {"title": "Error Pages", "icon": "404"},
"children": [
{"path": "401", "component": "views/error-page/401", "name": "Page401",
"meta": {"title": "Page 401", "noCache": True}},
{"path": "404", "component": "views/error-page/404", "name": "Page404",
"meta": {"title": "Page 404", "noCache": True}}]},
{"path": "/error-log", "component": "layout/Layout", "redirect": "noRedirect",
"children": [
{"path": "log", "component": "views/error-log/index", "name": "ErrorLog",
"meta": {"title": "Error Log", "icon": "bug"}}]},
{"path": "/excel", "component": "layout/Layout",
"redirect": "/excel/export-excel", "name": "Excel",
"meta": {"title": "Excel", "icon": "excel"}, "children": [
{"path": "export-excel", "component": "views/excel/export-excel",
"name": "ExportExcel", "meta": {"title": "Export Excel"}},
{"path": "export-selected-excel", "component": "views/excel/select-excel",
"name": "SelectExcel", "meta": {"title": "Select Excel"}},
{"path": "export-merge-header", "component": "views/excel/merge-header",
"name": "MergeHeader", "meta": {"title": "Merge Header"}},
{"path": "upload-excel", "component": "views/excel/upload-excel",
"name": "UploadExcel", "meta": {"title": "Upload Excel"}}]},
{"path": "/zip", "component": "layout/Layout", "redirect": "/zip/download",
"alwaysShow": True, "meta": {"title": "Zip", "icon": "zip"}, "children": [
{"path": "download", "component": "views/zip/index", "name": "ExportZip",
"meta": {"title": "Export Zip"}}]},
{"path": "/pdf", "component": "layout/Layout", "redirect": "/pdf/index",
"children": [{"path": "index", "component": "views/pdf/index", "name": "PDF",
"meta": {"title": "PDF", "icon": "pdf"}}]},
{"path": "/pdf/download", "component": "views/pdf/download", "hidden": True},
{"path": "/theme", "component": "layout/Layout", "redirect": "noRedirect",
"children": [
{"path": "index", "component": "views/theme/index", "name": "Theme",
"meta": {"title": "Theme", "icon": "theme"}}]},
{"path": "/clipboard", "component": "layout/Layout", "redirect": "noRedirect",
"children": [{"path": "index", "component": "views/clipboard/index",
"name": "ClipboardDemo",
"meta": {"title": "Clipboard Demo", "icon": "clipboard"}}]},
{"path": "/i18n", "component": "layout/Layout", "children": [
{"path": "index", "component": "views/i18n-demo/index", "name": "I18n",
"meta": {"title": "I18n", "icon": "international"}}]},
{"path": "external-link", "component": "layout/Layout", "children": [
{"path": "https://github.com/PanJiaChen/vue-element-admin",
"meta": {"title": "External Link", "icon": "link"}}]},
{"path": "*", "redirect": "/404", "hidden": True}]}
return Response(res)
| 50.761792 | 120 | 0.263981 | 3,055 | 64,569 | 5.578723 | 0.058265 | 0.087661 | 0.072698 | 0.069002 | 0.978173 | 0.978173 | 0.978173 | 0.978173 | 0.978173 | 0.973479 | 0 | 0.01522 | 0.602131 | 64,569 | 1,271 | 121 | 50.801731 | 0.64819 | 0.165095 | 0 | 0.46247 | 0 | 0 | 0.240971 | 0.041278 | 0 | 0 | 0 | 0 | 0 | 1 | 0.002421 | false | 0 | 0.003632 | 0 | 0.010896 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 1 | 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 |
da6e91d5c36738e0c2f962687034af11d6d186d8 | 614 | py | Python | src/renard/__init__.py | rob-smallshire/renard | 5d6432aeafa949c4b8009cd85d4acaeecab0e95c | [
"MIT"
] | 5 | 2018-01-11T18:58:52.000Z | 2020-01-26T01:41:15.000Z | src/renard/__init__.py | rob-smallshire/renard | 5d6432aeafa949c4b8009cd85d4acaeecab0e95c | [
"MIT"
] | null | null | null | src/renard/__init__.py | rob-smallshire/renard | 5d6432aeafa949c4b8009cd85d4acaeecab0e95c | [
"MIT"
] | null | null | null | from .renard import (RenardSeriesKey, R5, R10, R20, R40, R80, series, series_keys,
find_greater_than_or_equal, find_greater_than, find_less_than_or_equal, find_less_than,
find_nearest, find_nearest_few, rrange, open_rrange)
from .version import __version__
__all__ = [
'RenardSeriesKey',
'R5',
'R10',
'R20',
'R40',
'R80',
'series',
'series_keys',
'find_greater_than_or_equal',
'find_greater_than',
'find_less_than_or_equal',
'find_less_than',
'find_nearest',
'find_nearest_few',
'rrange',
'open_rrange',
]
| 24.56 | 108 | 0.640065 | 74 | 614 | 4.743243 | 0.310811 | 0.125356 | 0.17094 | 0.17094 | 0.877493 | 0.877493 | 0.877493 | 0.877493 | 0.877493 | 0.877493 | 0 | 0.038877 | 0.245928 | 614 | 24 | 109 | 25.583333 | 0.719222 | 0 | 0 | 0 | 0 | 0 | 0.278502 | 0.079805 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
e5134e10a7dc97fc7039d142a593c57b7af17c79 | 22,908 | py | Python | pysmFISH/preprocessing.py | linnarsson-lab/pysmFISH_auto | d963f1319099c36873c2c5afd41bd15e7361a00e | [
"MIT"
] | 3 | 2022-01-15T07:49:15.000Z | 2022-01-18T08:18:38.000Z | pysmFISH/preprocessing.py | linnarsson-lab/pysmFISH_auto | d963f1319099c36873c2c5afd41bd15e7361a00e | [
"MIT"
] | null | null | null | pysmFISH/preprocessing.py | linnarsson-lab/pysmFISH_auto | d963f1319099c36873c2c5afd41bd15e7361a00e | [
"MIT"
] | 3 | 2022-01-14T15:47:54.000Z | 2022-01-24T14:58:24.000Z | """
Collection of functions to run filtering
All the filtering functions will return a tuple of different length with
in position 0 the image that will be used for downstream dots calling and
last position the filtered image that will be saved.
Ex.
standard_not_norm_preprocessing -> (img,): in this case img will be fed to the
counting algorithm and also saved
filter_remove_large_objs -> (masked_img, img): in this case masked_img will be
fed to the counting algorithm and img saved
Hypotetical_filt -> (processed, X, X, X , img): in this case processed will be
fed to the counting algorithm and img saved
"""
from typing import *
import sys
import numpy as np
import scipy.ndimage as nd
from skimage import filters, morphology, measure
from skimage import img_as_float64
from pathlib import Path
# pysmFISH imports
from pysmFISH.io import load_raw_images
from pysmFISH.utils import convert_from_uint16_to_float64
from pysmFISH.logger_utils import selected_logger
try:
from csbdeep.utils import normalize
except:
pass
def load_dark_image(experiment_fpath:str)->np.ndarray:
"""Function used to load the dark image previously created and
saved in the extra folder present in the experiment
Args:
experiment_fpath (str): Path to the experiment to process
Returns:
np.ndarray: Dark image
"""
logger = selected_logger()
search = '*dark_img.npy'
dark_img_folder = Path(experiment_fpath) / 'extra_processing_data'
dark_img_fpath = list(dark_img_folder.glob(search))
try:
dark_img = np.load(dark_img_fpath[0])
except:
logger.error(f'cannot load the dark image file')
sys.exit(f'cannot load the dark image file')
else:
logger.info(f'loaded {dark_img_fpath[0].stem} dark image')
dark_img = convert_from_uint16_to_float64(dark_img)
return dark_img
def standard_not_norm_preprocessing(
zarr_grp_name: str,
parsed_raw_data_fpath: str,
processing_parameters: dict,
dark_img: np.ndarray)-> Tuple[Tuple[np.ndarray,],dict]:
"""Standard function for filtering the fov image
The image is not normalized
Args:
zarr_grp_name (str): group name of the image to process
parsed_raw_data_fpath (str): path to the zarr file containing the parsed images
processing_parameters (dict): dictionary with the parameters used to process the images
dark_img (np.ndarray): Dark image used to remove camera dark noise
Returns:
Tuple[Tuple[np.ndarray,],dict]: ((filtered_image,),metadata)
"""
logger = selected_logger()
parsed_raw_data_fpath = Path(parsed_raw_data_fpath)
FlatFieldKernel=processing_parameters['PreprocessingFishFlatFieldKernel']
LaplacianKernel=processing_parameters['PreprocessingFishFilteringLaplacianKernel']
try:
img, metadata = load_raw_images(zarr_grp_name,
parsed_raw_data_fpath)
except:
logger.error(f'cannot load {zarr_grp_name} raw fish image')
sys.exit(f'cannot load {zarr_grp_name} raw fish image')
else:
logger.info(f'loaded {zarr_grp_name} raw fish image')
img = convert_from_uint16_to_float64(img)
img -= dark_img
img[img<0] = 0
# (1,100,100)
background = filters.gaussian(img,FlatFieldKernel,preserve_range=False)
img /= background
img = nd.gaussian_laplace(img,LaplacianKernel)
img = -img # the peaks are negative so invert the signal
img[img<=0] = 0 # All negative values set to zero also = to avoid -0.0 issues
img = np.abs(img) # to avoid -0.0 issues
img = img.max(axis=0)
return ((img,),metadata)
def without_flat_field_correction(
zarr_grp_name: str,
parsed_raw_data_fpath: str,
processing_parameters: dict,
dark_img: np.ndarray)-> Tuple[Tuple[np.ndarray,],dict]:
"""Standard function for filtering the fov image where the
flat field correction step is removed.
The image is not normalized
Args:
zarr_grp_name (str): group name of the image to process
parsed_raw_data_fpath (str): path to the zarr file containing the parsed images
processing_parameters (dict): dictionary with the parameters used to process the images
dark_img (np.ndarray): Dark image used to remove camera dark noise
Returns:
Tuple[Tuple[np.ndarray,],dict]: ((filtered_image,),metadata)
"""
logger = selected_logger()
parsed_raw_data_fpath = Path(parsed_raw_data_fpath)
FlatFieldKernel=processing_parameters['PreprocessingFishFlatFieldKernel']
LaplacianKernel=processing_parameters['PreprocessingFishFilteringLaplacianKernel']
try:
img, metadata = load_raw_images(zarr_grp_name,
parsed_raw_data_fpath)
except:
logger.error(f'cannot load {zarr_grp_name} raw fish image')
sys.exit(f'cannot load {zarr_grp_name} raw fish image')
else:
logger.info(f'loaded {zarr_grp_name} raw fish image')
img = convert_from_uint16_to_float64(img)
img -= dark_img
img[img<0] = 0
background = filters.gaussian(img,LaplacianKernel,preserve_range=False)
img -= background
img[img<=0] = 0
img = nd.gaussian_laplace(img,LaplacianKernel)
img = -img # the peaks are negative so invert the signal
img[img<=0] = 0 # All negative values set to zero also = to avoid -0.0 issues
img = np.abs(img) # to avoid -0.0 issues
img = img.max(axis=0)
return ((img,),metadata)
def standard_norm_preprocessing(
zarr_grp_name: str,
parsed_raw_data_fpath: str,
processing_parameters: dict,
dark_img: np.ndarray)-> Tuple[Tuple[np.ndarray,],dict]:
"""Function to preprocess and normalize the intensity of the
fov. Normalization: (img_stack - img_stack_z_mean)/ img_stack_z_std
Args:
zarr_grp_name (str): group name of the image to process
parsed_raw_data_fpath (str): path to the zarr file containing the parsed images
processing_parameters (dict): dictionary with the parameters used to process the images
dark_img (np.ndarray): Dark image used to remove camera dark noise
Returns:
Tuple[Tuple[np.ndarray,],dict]: ((filtered_normalized_image,),metadata)
"""
logger = selected_logger()
parsed_raw_data_fpath = Path(parsed_raw_data_fpath)
FlatFieldKernel=processing_parameters['PreprocessingFishFlatFieldKernel']
LaplacianKernel=processing_parameters['PreprocessingFishFilteringLaplacianKernel']
try:
img, metadata = load_raw_images(zarr_grp_name,
parsed_raw_data_fpath)
except:
logger.error(f'cannot load {zarr_grp_name} raw fish image')
sys.exit(f'cannot load {zarr_grp_name} raw fish image')
else:
logger.info(f'loaded {zarr_grp_name} raw fish image')
img = convert_from_uint16_to_float64(img)
img -= dark_img
img[img<0] = 0
background = filters.gaussian(img,FlatFieldKernel,preserve_range=False)
img /= background
img = nd.gaussian_laplace(img,LaplacianKernel)
img = -img # the peaks are negative so invert the signal
img[img<=0] = 0 # All negative values set to zero also = to avoid -0.0 issues
img = np.abs(img) # to avoid -0.0 issues
img_mean_z = img.mean(axis=(1,2))
img_mean_z = img_mean_z[:,np.newaxis,np.newaxis]
img_std_z = img.std(axis=(1,2))
img_std_z = img_std_z[:,np.newaxis,np.newaxis]
img_nn= (img - img_mean_z)/ img_std_z
img_nn = img_nn.max(axis=0)
img_nn[img_nn<=0] = 0 # All negative values set to zero
return ((img_nn,),metadata)
def filter_remove_large_objs(
zarr_grp_name: str,
parsed_raw_data_fpath: str,
processing_parameters: dict,
dark_img: np.ndarray)-> Tuple[Tuple[np.ndarray,np.ndarray],dict]:
"""Function used to mask large objects (ex. lipofuscin) present in the image
Args:
zarr_grp_name (str): group name of the image to process
parsed_raw_data_fpath (str): path to the zarr file containing the parsed images
processing_parameters (dict): dictionary with the parameters used to process the images
dark_img (np.ndarray): Dark image used to remove camera dark noise
Returns:
Tuple[Tuple[np.ndarray,],dict]: ((masked_image, filtered_image),metadata)
"""
logger = selected_logger()
parsed_raw_data_fpath = Path(parsed_raw_data_fpath)
FlatFieldKernel=processing_parameters['PreprocessingFishFlatFieldKernelHuman']
LaplacianKernel=processing_parameters['PreprocessingFishFilteringLaplacianKernel']
LargeObjRemovalPercentile = processing_parameters['LargeObjRemovalPercentile']
LargeObjRemovalMinObjSize = processing_parameters['LargeObjRemovalMinObjSize']
LargeObjRemovalSelem = processing_parameters['LargeObjRemovalSelem']
try:
img, metadata = load_raw_images(zarr_grp_name,
parsed_raw_data_fpath)
except:
logger.error(f'cannot load {zarr_grp_name} raw fish image')
sys.exit(f'cannot load {zarr_grp_name} raw fish image')
else:
logger.info(f'loaded {zarr_grp_name} raw fish image')
img = img_as_float64(img)
img -= dark_img
img[img<0] = 0
background = filters.gaussian(img,FlatFieldKernel,preserve_range=False)
img /= background
img = nd.gaussian_laplace(img,LaplacianKernel)
img = -img # the peaks are negative so invert the signal
img[img<=0] = 0 # All negative values set to zero also = to avoid -0.0 issues
img = np.abs(img) # to avoid -0.0 issues
img = img.max(axis=0)
mask = np.zeros_like(img)
idx= img > np.percentile(img,LargeObjRemovalPercentile)
mask[idx] = 1
labels = nd.label(mask)
properties = measure.regionprops(labels[0])
for ob in properties:
if ob.area < LargeObjRemovalMinObjSize:
mask[ob.coords[:,0],ob.coords[:,1]]=0
mask = morphology.binary_dilation(mask, selem=morphology.disk(LargeObjRemovalSelem))
mask = np.logical_not(mask)
masked_img = img*mask
return ((masked_img,img),metadata)
def filter_remove_large_objs_no_flat(
zarr_grp_name: str,
parsed_raw_data_fpath: str,
processing_parameters: dict,
dark_img: np.ndarray)-> Tuple[Tuple[np.ndarray,np.ndarray],dict]:
"""Function used to mask large objects (ex. lipofuscin) present in the image
without flat field correction
Args:
zarr_grp_name (str): group name of the image to process
parsed_raw_data_fpath (str): path to the zarr file containing the parsed images
processing_parameters (dict): dictionary with the parameters used to process the images
dark_img (np.ndarray): Dark image used to remove camera dark noise
Returns:
Tuple[Tuple[np.ndarray,],dict]: ((masked_image, filtered_image),metadata)
"""
logger = selected_logger()
parsed_raw_data_fpath = Path(parsed_raw_data_fpath)
FlatFieldKernel=processing_parameters['PreprocessingFishFlatFieldKernelHuman']
LaplacianKernel=processing_parameters['PreprocessingFishFilteringLaplacianKernel']
LargeObjRemovalPercentile = processing_parameters['LargeObjRemovalPercentile']
LargeObjRemovalMinObjSize = processing_parameters['LargeObjRemovalMinObjSize']
LargeObjRemovalSelem = processing_parameters['LargeObjRemovalSelem']
try:
img, metadata = load_raw_images(zarr_grp_name,
parsed_raw_data_fpath)
except:
logger.error(f'cannot load {zarr_grp_name} raw fish image')
sys.exit(f'cannot load {zarr_grp_name} raw fish image')
else:
logger.info(f'loaded {zarr_grp_name} raw fish image')
img = img_as_float64(img)
img -= dark_img
img[img<0] = 0
background = filters.gaussian(img,FlatFieldKernel,preserve_range=False)
img /= background
img = nd.gaussian_laplace(img,LaplacianKernel)
img = -img # the peaks are negative so invert the signal
img[img<=0] = 0 # All negative values set to zero also = to avoid -0.0 issues
img = np.abs(img) # to avoid -0.0 issues
img = img.max(axis=0)
#img = normalize(img,clip=True, dtype=np.float64)
mask = np.zeros_like(img)
idx= img > np.percentile(img,LargeObjRemovalPercentile)
mask[idx] = 1
labels = nd.label(mask)
properties = measure.regionprops(labels[0])
for ob in properties:
if ob.area < LargeObjRemovalMinObjSize:
mask[ob.coords[:,0],ob.coords[:,1]]=0
mask = morphology.binary_dilation(mask, selem=morphology.disk(LargeObjRemovalSelem))
mask = np.logical_not(mask)
masked_img = img*mask
return ((masked_img,img),metadata)
def large_beads_preprocessing(zarr_grp_name: str,
parsed_raw_data_fpath: str,
processing_parameters: dict,
dark_img: np.ndarray)-> Tuple[Tuple[np.ndarray,],dict]:
"""Function used filter the reference image containing large beads
Args:
zarr_grp_name (str): group name of the image to process
parsed_raw_data_fpath (str): path to the zarr file containing the parsed images
processing_parameters (dict): dictionary with the parameters used to process the images
dark_img (np.ndarray): Dark image used to remove camera dark noise
Returns:
Tuple[Tuple[np.ndarray,],dict]: ((filtered_image,),metadata)
"""
logger = selected_logger()
parsed_raw_data_fpath = Path(parsed_raw_data_fpath)
FlatFieldKernel=processing_parameters['PreprocessingFishFlatFieldKernel']
img, metadata = load_raw_images(zarr_grp_name,
parsed_raw_data_fpath)
img = convert_from_uint16_to_float64(img)
img -= dark_img
img[img<0] = 0
img = np.abs(img) # to avoid -0.0 issues
img = img.max(axis=0)
img /= filters.gaussian(img,FlatFieldKernel,preserve_range=False)
return ((img,), metadata)
def both_beads_preprocessing(zarr_grp_name: str,
parsed_raw_data_fpath: str,
processing_parameters: dict,
dark_img: np.ndarray)-> Tuple[Tuple[np.ndarray,],dict]:
"""Function used filter the reference image containing large beads
Args:
zarr_grp_name (str): group name of the image to process
parsed_raw_data_fpath (str): path to the zarr file containing the parsed images
processing_parameters (dict): dictionary with the parameters used to process the images
dark_img (np.ndarray): Dark image used to remove camera dark noise
Returns:
Tuple[Tuple[np.ndarray,],dict]: ((filtered_image,),metadata)
"""
# logger = selected_logger()
# parsed_raw_data_fpath = Path(parsed_raw_data_fpath)
# experiment_fpath = parsed_raw_data_fpath.parent
# FlatFieldKernel=processing_parameters['PreprocessingFishFlatFieldKernel']
# img, metadata = load_raw_images(zarr_grp_name,
# parsed_raw_data_fpath)
# logger.info(f'loaded {zarr_grp_name} raw fish image')
# img = convert_from_uint16_to_float64(img)
# img -= dark_img
# img[img<0] = 0
# img = np.abs(img) # to avoid -0.0 issues
# img = img.max(axis=0)
# img /= filters.gaussian(img,FlatFieldKernel,preserve_range=False)
# return ((img,),metadata)
logger = selected_logger()
parsed_raw_data_fpath = Path(parsed_raw_data_fpath)
FlatFieldKernel=processing_parameters['PreprocessingFishFlatFieldKernel']
LaplacianKernel=processing_parameters['PreprocessingFishFilteringLaplacianKernel']
try:
img, metadata = load_raw_images(zarr_grp_name,
parsed_raw_data_fpath)
except:
logger.error(f'cannot load {zarr_grp_name} raw fish image')
sys.exit(f'cannot load {zarr_grp_name} raw fish image')
else:
logger.info(f'loaded {zarr_grp_name} raw fish image')
img = convert_from_uint16_to_float64(img)
img -= dark_img
img[img<0] = 0
background = filters.gaussian(img,FlatFieldKernel,preserve_range=False)
img /= background
img = nd.gaussian_laplace(img,LaplacianKernel)
img = -img # the peaks are negative so invert the signal
img[img<=0] = 0 # All negative values set to zero also = to avoid -0.0 issues
img = np.abs(img) # to avoid -0.0 issues
img = img.max(axis=0)
return ((img,),metadata)
def nuclei_registration_filtering(zarr_grp_name: str,
parsed_raw_data_fpath: str,
processing_parameters: dict)-> Tuple[Tuple[np.ndarray,],dict]:
"""This function remove the background from large structures like nuclei
For the sigma I seleced a value quite bigger than
the nuclei size in order to remove them from the
image. I used what showed on the gaussian filter code page and on this
link on stackoverflow:
http://stackoverflow.com/questions/25216382/gaussian-filter-in-scipy
Args:
zarr_grp_name (str): group name of the image to process
parsed_raw_data_fpath (str): path to the zarr file containing the parsed images
processing_parameters (dict): dictionary with the parameters used to process the images
Returns:
Tuple[Tuple[np.ndarray,],dict]: ((filtered_image,),metadata)
"""
logger = selected_logger()
parsed_raw_data_fpath = Path(parsed_raw_data_fpath)
experiment_fpath = parsed_raw_data_fpath.parent
FlatFieldKernel=processing_parameters['PreprocessingNucleiFlatFieldKernel']
try:
img, metadata = load_raw_images(zarr_grp_name,
parsed_raw_data_fpath)
except:
logger.error(f'cannot load {zarr_grp_name} raw fish image')
sys.exit(f'cannot load {zarr_grp_name} raw fish image')
else:
logger.info(f'loaded {zarr_grp_name} raw fish image')
img = convert_from_uint16_to_float64(img)
# Clean the image from the background
img = img-filters.gaussian(img,sigma=FlatFieldKernel)
# Remove the negative values
img[img<0] = 0
# Flatten the image
flattened_img = np.amax(img,axis=0)
# img -= dark_img
# # img -= filters.gaussian(img,FilteringSmallKernel,preserve_range=False)
# img[img<0] = 0
# background = filters.gaussian(img,FlatFieldKernel,preserve_range=False)
# img -= background
# img[img<=0] = 0 # All negative values set to zero also = to avoid -0.0 issues
# img = np.abs(img) # to avoid -0.0 issues
# img /= background
# img = img.max(axis=0)
return ((flattened_img,),metadata)
def fresh_nuclei_filtering(zarr_grp_name: str,
parsed_raw_data_fpath: str,
processing_parameters: dict)-> Tuple[Tuple[np.ndarray,],dict]:
"""This function remove the background and filter the nuclei in the
low power magnification images used for identifying the cells position
after running eel.
For the sigma I seleced a value quite bigger than
the nuclei size in order to remove them from the
image. I used what showed on the gaussian filter code page and on this
link on stackoverflow:
http://stackoverflow.com/questions/25216382/gaussian-filter-in-scipy
Args:
zarr_grp_name (str): group name of the image to process
parsed_raw_data_fpath (str): path to the zarr file containing the parsed images
processing_parameters (dict): dictionary with the parameters used to process the images
Returns:
Tuple[Tuple[np.ndarray,],dict]: ((filtered_image,),metadata)
"""
logger = selected_logger()
parsed_raw_data_fpath = Path(parsed_raw_data_fpath)
experiment_fpath = parsed_raw_data_fpath.parent
FlatFieldKernel = processing_parameters['PreprocessingFreshNucleiLargeKernelSize']
try:
img, metadata = load_raw_images(zarr_grp_name,
parsed_raw_data_fpath)
except:
logger.error(f'cannot load {zarr_grp_name} raw fish image')
sys.exit(f'cannot load {zarr_grp_name} raw fish image')
else:
logger.info(f'loaded {zarr_grp_name} raw fish image')
img = convert_from_uint16_to_float64(img)
# Clean the image from the background
img = img-filters.gaussian(img,sigma=FlatFieldKernel)
# Remove the negative values
img[img<0] = 0
# Flatten the image
flattened_img = np.amax(img,axis=0)
# img -= dark_img
# # img -= filters.gaussian(img,FilteringSmallKernel,preserve_range=False)
# img[img<0] = 0
# background = filters.gaussian(img,FlatFieldKernel,preserve_range=False)
# img -= background
# img[img<=0] = 0 # All negative values set to zero also = to avoid -0.0 issues
# img = np.abs(img) # to avoid -0.0 issues
# img /= background
# img = img.max(axis=0)
return ((flattened_img,),metadata)
def fresh_tissue_beads_preprocessing(zarr_grp_name: str,
parsed_raw_data_fpath: str,
processing_parameters: dict,
dark_img: np.ndarray)-> Tuple[Tuple[np.ndarray,],dict]:
"""Function used filter the reference image containing large beads
Args:
zarr_grp_name (str): group name of the image to process
parsed_raw_data_fpath (str): path to the zarr file containing the parsed images
processing_parameters (dict): dictionary with the parameters used to process the images
dark_img (np.ndarray): Dark image used to remove camera dark noise
Returns:
Tuple[Tuple[np.ndarray,],dict]: ((filtered_image,),metadata)
"""
logger = selected_logger()
parsed_raw_data_fpath = Path(parsed_raw_data_fpath)
FlatFieldKernel=processing_parameters['PreprocessingFishFlatFieldKernel']
img, metadata = load_raw_images(zarr_grp_name,
parsed_raw_data_fpath)
img = convert_from_uint16_to_float64(img)
img = img.max(axis=0)
img -= filters.gaussian(img,FlatFieldKernel,preserve_range=False)
img[img<0] = 0
return ((img,), metadata)
| 35.905956 | 95 | 0.669373 | 2,942 | 22,908 | 5.017335 | 0.083617 | 0.027234 | 0.041732 | 0.068288 | 0.887135 | 0.878938 | 0.86925 | 0.865253 | 0.863153 | 0.857801 | 0 | 0.01085 | 0.247643 | 22,908 | 638 | 96 | 35.905956 | 0.845605 | 0.369041 | 0 | 0.846667 | 0 | 0 | 0.13166 | 0.052492 | 0 | 0 | 0 | 0 | 0 | 1 | 0.036667 | false | 0.003333 | 0.036667 | 0 | 0.11 | 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 |
e52f58d209000e24b91f12a23d8cca4bf358b738 | 1,892 | py | Python | courses/migrations/0011_auto_20180821_0034.py | sonnesen/tccproject | 4c35f45b9e9c758e47214e5e0128368ee8f82853 | [
"Apache-2.0"
] | 1 | 2019-10-03T10:44:33.000Z | 2019-10-03T10:44:33.000Z | courses/migrations/0011_auto_20180821_0034.py | sonnesen/tccproject | 4c35f45b9e9c758e47214e5e0128368ee8f82853 | [
"Apache-2.0"
] | 6 | 2020-02-11T23:24:26.000Z | 2021-09-08T00:12:34.000Z | courses/migrations/0011_auto_20180821_0034.py | sonnesen/tccproject | 4c35f45b9e9c758e47214e5e0128368ee8f82853 | [
"Apache-2.0"
] | 1 | 2019-10-03T00:27:21.000Z | 2019-10-03T00:27:21.000Z | # Generated by Django 2.1 on 2018-08-21 03:34
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('courses', '0010_remove_exam_status'),
]
operations = [
migrations.AlterField(
model_name='alternative',
name='created_at',
field=models.DateTimeField(auto_now_add=True),
),
migrations.AlterField(
model_name='category',
name='created_at',
field=models.DateTimeField(auto_now_add=True),
),
migrations.AlterField(
model_name='course',
name='created_at',
field=models.DateTimeField(auto_now_add=True),
),
migrations.AlterField(
model_name='document',
name='created_at',
field=models.DateTimeField(auto_now_add=True),
),
migrations.AlterField(
model_name='exam',
name='created_at',
field=models.DateTimeField(auto_now_add=True),
),
migrations.AlterField(
model_name='examtry',
name='created_at',
field=models.DateTimeField(auto_now_add=True),
),
migrations.AlterField(
model_name='instructor',
name='created_at',
field=models.DateTimeField(auto_now_add=True),
),
migrations.AlterField(
model_name='question',
name='created_at',
field=models.DateTimeField(auto_now_add=True),
),
migrations.AlterField(
model_name='unit',
name='created_at',
field=models.DateTimeField(auto_now_add=True),
),
migrations.AlterField(
model_name='video',
name='created_at',
field=models.DateTimeField(auto_now_add=True),
),
]
| 29.5625 | 58 | 0.561839 | 178 | 1,892 | 5.730337 | 0.252809 | 0.196078 | 0.245098 | 0.284314 | 0.755882 | 0.755882 | 0.755882 | 0.755882 | 0.755882 | 0.755882 | 0 | 0.014196 | 0.32981 | 1,892 | 63 | 59 | 30.031746 | 0.790221 | 0.022727 | 0 | 0.701754 | 1 | 0 | 0.108825 | 0.012453 | 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 | 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 |
e55afe9c8c844b43664ee09624367d5b37604428 | 146 | py | Python | afpy/__init__.py | fordaj/afpy | 4fca208a186d276a28e7911210cedb02033237b0 | [
"MIT"
] | null | null | null | afpy/__init__.py | fordaj/afpy | 4fca208a186d276a28e7911210cedb02033237b0 | [
"MIT"
] | null | null | null | afpy/__init__.py | fordaj/afpy | 4fca208a186d276a28e7911210cedb02033237b0 | [
"MIT"
] | null | null | null | from .files import *
from .cli import *
from .string import *
from .plot import *
from .cwd import *
from .yml import *
from .cwd import *
| 18.25 | 22 | 0.664384 | 21 | 146 | 4.619048 | 0.380952 | 0.618557 | 0.268041 | 0.391753 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.239726 | 146 | 7 | 23 | 20.857143 | 0.873874 | 0 | 0 | 0.285714 | 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 |
e56800fc0af4bd1c6b5cadf032735aa03d7987f1 | 49 | py | Python | src/lib/_MozillaCookieJar.py | DTenore/skulpt | 098d20acfb088d6db85535132c324b7ac2f2d212 | [
"MIT"
] | 2,671 | 2015-01-03T08:23:25.000Z | 2022-03-31T06:15:48.000Z | src/lib/_MozillaCookieJar.py | wakeupmuyunhe/skulpt | a8fb11a80fb6d7c016bab5dfe3712517a350b347 | [
"MIT"
] | 972 | 2015-01-05T08:11:00.000Z | 2022-03-29T13:47:15.000Z | src/lib/_MozillaCookieJar.py | wakeupmuyunhe/skulpt | a8fb11a80fb6d7c016bab5dfe3712517a350b347 | [
"MIT"
] | 845 | 2015-01-03T19:53:36.000Z | 2022-03-29T18:34:22.000Z | import _sk_fail; _sk_fail._("_MozillaCookieJar")
| 24.5 | 48 | 0.816327 | 6 | 49 | 5.666667 | 0.666667 | 0.352941 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.061224 | 49 | 1 | 49 | 49 | 0.73913 | 0 | 0 | 0 | 0 | 0 | 0.346939 | 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 |
e5934b8c9873d03ac63006a404e85978c08139bd | 11,672 | py | Python | codeez/codeez.py | antoinelarmanjat/codeez | 3e92fa82f54a4463cf450fadb6e974436154925d | [
"MIT"
] | null | null | null | codeez/codeez.py | antoinelarmanjat/codeez | 3e92fa82f54a4463cf450fadb6e974436154925d | [
"MIT"
] | null | null | null | codeez/codeez.py | antoinelarmanjat/codeez | 3e92fa82f54a4463cf450fadb6e974436154925d | [
"MIT"
] | null | null | null | import requests
import json
import os
import zipfile
class codeez:
def __init__(self, User=None, Authorization=None):
self.User = User
self.url = 'https://api.codeez.tech/'
self.UserAuthorization = Authorization
headers = {}
headers['content-type'] = 'application/json'
headers['User'] = self.User
headers['Authorization'] = self.UserAuthorization
def create_user(self, email, password, FirstName, LastName, AccountAuthorization):
# try:
headers = {}
headers['content-type'] = 'application/json'
values = {'email': email, 'FirstName': FirstName, 'LastName': LastName,
'AccountAuthorization': AccountAuthorization, 'credentials': {"password": password}}
response = requests.post(url=self.url + 'users', headers=headers, data=json.dumps(values))
if response.status_code == 200:
# print(response.text)
self.User = json.loads(response.text)['User']
self.UserAuthorization = json.loads(response.text)['Authorization']
return json.loads(response.text)
else:
return response.text, response.status_code
def request_account(self, email, GroupName, Description):
headers = {}
headers['content-type'] = 'application/json'
values = {'email': email, 'GroupName': GroupName, 'Description': Description}
response = requests.request("POST", url=self.url + 'accounts/request', headers=headers, data=json.dumps(values))
return response.text, response.status_code
def servicelist(self):
headers = {}
if headers != None:
headers['content-type'] = 'application/json'
else:
headers = {'content-type': 'application/json'}
headers['User'] = self.User
headers['Authorization'] = self.UserAuthorization
try:
response = requests.get(url=self.url + 'mservices', headers=headers)
except:
return {"error": "Something went wrong"}
return json.loads(response.text), response.status_code
def accountservicelist(self):
headers = {}
if headers != None:
headers['content-type'] = 'application/json'
else:
headers = {'content-type': 'application/json'}
headers['User'] = self.User
headers['Authorization'] = self.UserAuthorization
try:
response = requests.get(url=self.url + 'accountmservices', headers=headers)
except:
return {"error": "Something went wrong"}
return json.loads(response.text), response.status_code
def connection(self, name):
headers = {}
headers['content-type'] = 'application/json'
headers['User'] = self.User
headers['Authorization'] = self.UserAuthorization
try:
response = requests.get(url=self.url + 'dbdetails/' + name, headers=headers)
except:
return {
"error": "Something went wrong while retrieving db details. Check your micro-service has a database."}
if response.status_code != 200:
return json.loads(response.text), response.status_code
details = json.loads(response.text)
try:
import psycopg2
except:
return {"error": "Please install psycopg2, not included in the codeez package",
"Database Info": {"host": details['host'], "port": details['port']}}
host = details['host']
port = details['port']
self.dbHost = host
self.dbPort = port
connection = psycopg2.connect(host=host, port=port, user=self.User, password=self.UserAuthorization,
dbname=name, sslmode='require')
return connection
def allservicelist(self):
headers = {}
if headers != None:
headers['content-type'] = 'application/json'
else:
headers = {'content-type': 'application/json'}
try:
response = requests.get(url=self.url + 'allmservices', headers=headers)
except:
return {"error": "Something went wrong"}
return json.loads(response.text), response.status_code
def logs(self, name):
headers = {}
if headers != None:
headers['content-type'] = 'application/json'
else:
headers = {'content-type': 'application/json'}
headers['User'] = self.User
headers['Authorization'] = self.UserAuthorization
try:
response = requests.get(url=self.url + 'logs/' + name, headers=headers)
except:
return {"error": "Something went wrong"}
return json.loads(response.text), response.status_code
def create(self, name, directory, type='MService', Description=None, Fork=False, Private=False, DB=False,
ServiceName=None, ServiceAccount=None, Language='Python'):
User = self.User
Authorization = self.UserAuthorization
try:
os.remove('/tmp/customer.zip')
except:
1 == 1
# try:
zipf = zipfile.ZipFile('/tmp/customer.zip', 'w', zipfile.ZIP_DEFLATED)
os.chdir(directory)
for root, dirs, files in os.walk('.'):
for file in files:
zipf.write(os.path.join(root, file))
zipf.close()
os.chdir('/tmp/')
url = self.url
files = {'file': open('customer.zip', 'rb')}
# print(files)
values = {'name': name, 'User': User, 'Authorization': Authorization, 'Description': Description, 'DB': DB,
'Private': Private, 'Fork': Fork, 'Language': Language}
# except:
# return {"error":"Something went wrong"}
# try:
if type == 'MService':
response = requests.post(url=url + "mservices", files=files, data=values)
# print(response.text)
if response.status_code != 200:
return {"error": response.text}, response.status_code
elif type == 'Site':
if ServiceName != None and ServiceAccount != None:
values['ServiceName'] = ServiceName
values['ServiceAccount'] = ServiceAccount
response = requests.post(url=url + "sites", files=files, data=values)
# print(response.text)
if response.status_code != 200:
return {"error": response.text}, response.status_code
return json.loads(response.text)
def update(self, name, directory, type='MService', Description=None, DB=False, Fork=False, Private=False,
ServiceName=None, ServiceAccount=None, Language='Python'):
User = self.User
Authorization = self.UserAuthorization
try:
os.remove('/tmp/customer.zip')
except:
1 == 1
# try:
zipf = zipfile.ZipFile('/tmp/customer.zip', 'w', zipfile.ZIP_DEFLATED)
os.chdir(directory)
for root, dirs, files in os.walk('.'):
for file in files:
zipf.write(os.path.join(root, file))
zipf.close()
os.chdir('/tmp/')
url = self.url
files = {'file': open('customer.zip', 'rb')}
# print(files)
values = {'name': name, 'User': User, 'Authorization': Authorization, 'Description': Description, 'DB': DB,
'Private': Private, 'Fork': Fork, 'Language': Language}
if type == 'MService':
# response = requests.post(url=url+"mservices", files=files, data=values)
response = requests.patch(url=url + "mservices", files=files, data=values)
elif type == 'Site':
if ServiceName != None and ServiceAccount != None:
values['ServiceName'] = ServiceName
values['ServiceAccount'] = ServiceAccount
response = requests.patch(url=url + "sites", files=files, data=values)
if response.status_code != 200:
return {"error": response.text, "error_code": response.status_code}
# except:
# return {"error": "Something went wrong"}
# try:
os.remove('/tmp/customer.zip')
# except:
# 1==1
return json.loads(response.text)
def delete(self, name):
Account = self.User
Authorization = self.UserAuthorization
# try:
headers = {}
headers['content-type'] = 'application/json'
headers['User'] = self.User
headers['Authorization'] = self.UserAuthorization
values = {'name': name}
response = requests.delete(url=self.url + 'mservices', headers=headers, data=json.dumps(values))
if response.status_code != 200:
return {"error": response.text, "error_code": response.status_code}
return json.loads(response.text)
def stop(self, name):
Account = self.User
Authorization = self.UserAuthorization
# try:
headers = {}
headers['content-type'] = 'application/json'
headers['User'] = self.User
headers['Authorization'] = self.UserAuthorization
values = {'name': name}
type = None
response = requests.post(url=self.url + 'mservices/stop', headers=headers, data=json.dumps(values))
if response.status_code != 200:
return {"error": response.text, "error_code": response.status_code}
# except:
# return {"error": "Something went wrong"}
return json.loads(response.text)
def start(self, name):
Account = self.User
Authorization = self.UserAuthorization
# try:
headers = {}
headers['content-type'] = 'application/json'
headers['User'] = self.User
headers['Authorization'] = self.UserAuthorization
values = {'name': name}
type = None
response = requests.post(url=self.url + 'mservices/start', headers=headers, data=json.dumps(values))
if response.status_code != 200:
return {"error": response.text, "error_code": response.status_code}
return json.loads(response.text)
def store(self, name, Content):
headers = {}
headers['User'] = self.User
headers['Authorization'] = self.UserAuthorization
values = Content
urlfunction = 'https://storage.codeez.tech/store?Name=' + name
response = requests.post(url=urlfunction, headers=headers, data=values)
if response.status_code != 200:
return {"error": response.content, "error_code": response.status_code}
else:
return {"Storage": name, "Status": "Success"}
def retrieve(self, name):
headers = {}
headers['User'] = self.User
headers['Authorization'] = self.UserAuthorization
urlfunction = 'https://storage.codeez.tech/retrieve?Name=' + name
response = requests.get(url=urlfunction, headers=headers)
if response.status_code != 200:
return {"error": response.content, "error_code": response.status_code}
else:
return response.content
def storedelete(self, name):
headers = {}
headers['User'] = self.User
headers['Authorization'] = self.UserAuthorization
urlfunction = 'https://storage.codeez.tech/delete?Name=' + name
response = requests.post(url=urlfunction, headers=headers)
if response.status_code != 200:
return {"error": response.content, "error_code": response.status_code}
else:
return response.content
| 35.803681 | 120 | 0.587988 | 1,172 | 11,672 | 5.819966 | 0.118601 | 0.055417 | 0.071251 | 0.063774 | 0.816156 | 0.802961 | 0.772614 | 0.727753 | 0.721155 | 0.664125 | 0 | 0.005025 | 0.283842 | 11,672 | 325 | 121 | 35.913846 | 0.810982 | 0.031785 | 0 | 0.724576 | 0 | 0 | 0.158833 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.067797 | false | 0.012712 | 0.021186 | 0 | 0.228814 | 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 |
00945176e47d72ffdf5e91c0265d5667cd580a4b | 415 | py | Python | 2021/src/Advent2021_07.py | davidxbuck/advent2018 | eed5424a8008b9c0829f5872ad6cd469ce9f70b9 | [
"MIT"
] | 1 | 2021-12-11T02:19:28.000Z | 2021-12-11T02:19:28.000Z | 2021/src/Advent2021_07.py | davidxbuck/advent2018 | eed5424a8008b9c0829f5872ad6cd469ce9f70b9 | [
"MIT"
] | null | null | null | 2021/src/Advent2021_07.py | davidxbuck/advent2018 | eed5424a8008b9c0829f5872ad6cd469ce9f70b9 | [
"MIT"
] | 1 | 2020-12-08T04:31:46.000Z | 2020-12-08T04:31:46.000Z | # Advent of Code 2021
#
# From https://adventofcode.com/2021/day/7
#
import numpy as np
print(f'Day 7, Part 1 {int(np.sum(np.abs((positions := np.array(list(map(int, [row.strip().split(",") for row in open("../inputs/Advent2021_07.txt", "r")][0])))) - np.median(positions))))}')
print(f'Day 7, Part 2 {sum((fuel := lambda x: x and x + fuel(x - 1) or 0)(abs(int(np.mean(positions)) - pos)) for pos in positions)}')
| 46.111111 | 190 | 0.643373 | 76 | 415 | 3.5 | 0.605263 | 0.045113 | 0.067669 | 0.075188 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 0 | 0.060773 | 0.127711 | 415 | 8 | 191 | 51.875 | 0.674033 | 0.144578 | 0 | 0 | 0 | 0.666667 | 0.868571 | 0.465714 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0.666667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 7 |
97014370de5ae0f6d62eb2a2589f04894fd61f84 | 78 | py | Python | teams/models/__init__.py | edchelstephens/sso | 91bff6a7919f7f1607f734f09c3939bc1517d12f | [
"BSD-3-Clause"
] | 1 | 2022-03-23T01:08:14.000Z | 2022-03-23T01:08:14.000Z | teams/models/__init__.py | edchelstephens/sso | 91bff6a7919f7f1607f734f09c3939bc1517d12f | [
"BSD-3-Clause"
] | null | null | null | teams/models/__init__.py | edchelstephens/sso | 91bff6a7919f7f1607f734f09c3939bc1517d12f | [
"BSD-3-Clause"
] | null | null | null | from teams.models.team import Team
from teams.models.standing import Standing
| 26 | 42 | 0.846154 | 12 | 78 | 5.5 | 0.5 | 0.272727 | 0.454545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.102564 | 78 | 2 | 43 | 39 | 0.942857 | 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 |
9785765a946187ffb6f193761fa3154cb5083a5e | 244 | py | Python | Codewars/8kyu/validate-code-with-simple-regex/Python/test.py | RevansChen/online-judge | ad1b07fee7bd3c49418becccda904e17505f3018 | [
"MIT"
] | 7 | 2017-09-20T16:40:39.000Z | 2021-08-31T18:15:08.000Z | Codewars/8kyu/validate-code-with-simple-regex/Python/test.py | RevansChen/online-judge | ad1b07fee7bd3c49418becccda904e17505f3018 | [
"MIT"
] | null | null | null | Codewars/8kyu/validate-code-with-simple-regex/Python/test.py | RevansChen/online-judge | ad1b07fee7bd3c49418becccda904e17505f3018 | [
"MIT"
] | null | null | null | # Python - 3.6.0
Test.assert_equals(validate_code(123), True)
Test.assert_equals(validate_code(248), True)
Test.assert_equals(validate_code(8), False)
Test.assert_equals(validate_code(321), True)
Test.assert_equals(validate_code(9453), False)
| 30.5 | 46 | 0.79918 | 39 | 244 | 4.74359 | 0.410256 | 0.27027 | 0.432432 | 0.648649 | 0.821622 | 0.518919 | 0 | 0 | 0 | 0 | 0 | 0.074236 | 0.061475 | 244 | 7 | 47 | 34.857143 | 0.733624 | 0.057377 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
979267b340447b0972a2aa34904b10da05da4aa7 | 11,797 | py | Python | splendor_sim/test/coin/test_coin_type_manager.py | markbrockettrobson/SplendorBots | f78fab8cccf30c9cc4351308eedfca4203e55463 | [
"MIT"
] | 1 | 2019-06-19T02:00:32.000Z | 2019-06-19T02:00:32.000Z | splendor_sim/test/coin/test_coin_type_manager.py | markbrockettrobson/SplendorBots | f78fab8cccf30c9cc4351308eedfca4203e55463 | [
"MIT"
] | null | null | null | splendor_sim/test/coin/test_coin_type_manager.py | markbrockettrobson/SplendorBots | f78fab8cccf30c9cc4351308eedfca4203e55463 | [
"MIT"
] | null | null | null | import unittest
import unittest.mock as mock
import splendor_sim.interfaces.coin.i_coin_type as i_coin_type
import splendor_sim.src.coin.coin_type_manager as coin_type_manager
import splendor_sim.src.factories.json_schemas as json_schemas
import splendor_sim.src.factories.json_validator as json_validator
class TestCoinTypeManager(unittest.TestCase):
def setUp(self):
self._mock_coin_type_set = {
mock.create_autospec(spec=i_coin_type.ICoinType, spec_set=True)
for _ in range(6)
}
self._mock_coin_type_list = list(self._mock_coin_type_set)
self._mock_card_names = [name for name in "ABCDEF"]
for i, coin in enumerate(self._mock_coin_type_list):
coin.get_name.return_value = self._mock_card_names[i]
coin.get_total_number.return_value = i
coin.to_json.return_value = {
"json": "coin %s json" % self._mock_card_names[i]
}
self._mock_coin_equivalents = {
(self._mock_coin_type_list[i], self._mock_coin_type_list[5])
for i in range(0, 5)
}
def test_coin_type_manager_init_invalid_coin_equivalent_new_equivalent(self):
# Arrange
new_coin = mock.create_autospec(spec=i_coin_type.ICoinType, spec_set=True)
self._mock_coin_equivalents.add((new_coin, self._mock_coin_type_list[0]))
# Act
# Assert
with self.assertRaises(ValueError):
_ = coin_type_manager.CoinTypeManager(
self._mock_coin_type_set, self._mock_coin_equivalents
)
def test_coin_type_manager_init_invalid_coin_equivalent_new_coin(self):
# Arrange
new_coin = mock.create_autospec(spec=i_coin_type.ICoinType, spec_set=True)
self._mock_coin_equivalents.add((self._mock_coin_type_list[0], new_coin))
# Act
# Assert
with self.assertRaises(ValueError):
_ = coin_type_manager.CoinTypeManager(
self._mock_coin_type_set, self._mock_coin_equivalents
)
def test_coin_type_manager_init_invalid_coin_names_repeated(self):
# Arrange
self._mock_coin_type_list[1].get_name.return_value = "A"
# Act
# Assert
with self.assertRaises(ValueError):
_ = coin_type_manager.CoinTypeManager(
self._mock_coin_type_set, self._mock_coin_equivalents
)
def test_coin_type_manager_test_get_coin_set(self):
# Arrange
test_coin_type_manager = coin_type_manager.CoinTypeManager(
self._mock_coin_type_set, set()
)
# Act
result = test_coin_type_manager.get_coin_set()
# Assert
for coin in self._mock_coin_type_set:
self.assertIn(coin, result)
def test_coin_type_manager_test_get_equivalent_coins(self):
# Arrange
test_coin_type_manager = coin_type_manager.CoinTypeManager(
self._mock_coin_type_set, self._mock_coin_equivalents
)
# Act
result = test_coin_type_manager.get_equivalent_coins(
self._mock_coin_type_list[5]
)
# Assert
for coin in self._mock_coin_type_set:
self.assertIn(coin, result)
def test_coin_type_manager_test_get_equivalent_coins_unknown_coin_type(self):
# Arrange
test_coin_type_manager = coin_type_manager.CoinTypeManager(
self._mock_coin_type_set, self._mock_coin_equivalents
)
new_coin = mock.create_autospec(spec=i_coin_type.ICoinType, spec_set=True)
# Act
# Assert
with self.assertRaises(ValueError):
_ = test_coin_type_manager.get_equivalent_coins(new_coin)
def test_coin_type_manager_test_get_equivalent_coins_single_entry(self):
# Arrange
test_coin_type_manager = coin_type_manager.CoinTypeManager(
self._mock_coin_type_set, self._mock_coin_equivalents
)
# Act
result = test_coin_type_manager.get_equivalent_coins(
self._mock_coin_type_list[0]
)
# Assert
self.assertEqual({self._mock_coin_type_list[0]}, result)
def test_coin_type_manager_test_get_coin_usage(self):
# Arrange
test_coin_type_manager = coin_type_manager.CoinTypeManager(
self._mock_coin_type_set, self._mock_coin_equivalents
)
# Act
result = test_coin_type_manager.get_coin_usage(self._mock_coin_type_list[0])
# Assert
self.assertEqual(
{self._mock_coin_type_list[0], self._mock_coin_type_list[5]}, result
)
def test_coin_type_manager_test_get_coin_usage_single_entry(self):
# Arrange
test_coin_type_manager = coin_type_manager.CoinTypeManager(
self._mock_coin_type_set, self._mock_coin_equivalents
)
# Act
result = test_coin_type_manager.get_coin_usage(self._mock_coin_type_list[5])
# Assert
self.assertEqual({self._mock_coin_type_list[5]}, result)
def test_coin_type_manager_test_get_coin_usage_unknown_coin_type(self):
# Arrange
test_coin_type_manager = coin_type_manager.CoinTypeManager(
self._mock_coin_type_set, self._mock_coin_equivalents
)
new_coin = mock.create_autospec(spec=i_coin_type.ICoinType, spec_set=True)
# Act
# Assert
with self.assertRaises(ValueError):
_ = test_coin_type_manager.get_coin_usage(new_coin)
def test_coin_type_manager_init_coin_set_immutability(self):
# Arrange
test_coin_type_manager = coin_type_manager.CoinTypeManager(
self._mock_coin_type_set, set()
)
# Act
self._mock_coin_type_set.pop()
# Assert
self.assertNotEqual(
self._mock_coin_type_set, test_coin_type_manager.get_coin_set()
)
def test_coin_type_manager_init_coin_equivalents_immutability(self):
# Arrange
test_coin_type_manager = coin_type_manager.CoinTypeManager(
self._mock_coin_type_set, set()
)
# Act
self._mock_coin_equivalents.pop()
# Assert
self.assertNotEqual(
self._mock_coin_equivalents, test_coin_type_manager.get_coin_set()
)
def test_coin_type_manager_get_coin_set_immutability(self):
# Arrange
test_coin_type_manager = coin_type_manager.CoinTypeManager(
self._mock_coin_type_set, set()
)
pre_mutation = test_coin_type_manager.get_coin_set()
# Act
pre_mutation.pop()
# Assert
self.assertEqual(
self._mock_coin_type_set, test_coin_type_manager.get_coin_set()
)
def test_coin_type_manager_get_equivalent_coins_immutability(self):
# Arrange
test_coin_type_manager = coin_type_manager.CoinTypeManager(
self._mock_coin_type_set, self._mock_coin_equivalents
)
pre_mutation = test_coin_type_manager.get_equivalent_coins(
self._mock_coin_type_list[5]
)
# Act
pre_mutation.pop()
# Assert
for coin in self._mock_coin_type_set:
self.assertIn(
coin,
test_coin_type_manager.get_equivalent_coins(
self._mock_coin_type_list[5]
),
)
def test_coin_type_manager_get_coin_usage_immutability(self):
# Arrange
test_coin_type_manager = coin_type_manager.CoinTypeManager(
self._mock_coin_type_set, self._mock_coin_equivalents
)
pre_mutation = test_coin_type_manager.get_coin_usage(
self._mock_coin_type_list[0]
)
# Act
pre_mutation.pop()
# Assert
result = test_coin_type_manager.get_coin_usage(self._mock_coin_type_list[0])
self.assertIn(self._mock_coin_type_list[0], result)
self.assertIn(self._mock_coin_type_list[5], result)
def test_coin_type_manager_is_coin_in_manager_by_name_true(self):
# Arrange
test_coin_type_manager = coin_type_manager.CoinTypeManager(
self._mock_coin_type_set, set()
)
# Act
# Assert
self.assertTrue(test_coin_type_manager.is_coin_in_manager_by_name("B"))
def test_coin_type_manager_is_coin_in_manager_by_name_false(self):
# Arrange
test_coin_type_manager = coin_type_manager.CoinTypeManager(
self._mock_coin_type_set, set()
)
# Act
# Assert
self.assertFalse(test_coin_type_manager.is_coin_in_manager_by_name("Z"))
def test_coin_type_manager_get_coin_by_name_in_manager(self):
# Arrange
test_coin_type_manager = coin_type_manager.CoinTypeManager(
self._mock_coin_type_set, set()
)
# Act
# Assert
self.assertEqual(
test_coin_type_manager.get_coin_by_name("B"), self._mock_coin_type_list[1]
)
def test_coin_type_manager_get_coin_by_name_not_in_manager(self):
# Arrange
test_coin_type_manager = coin_type_manager.CoinTypeManager(
self._mock_coin_type_set, set()
)
# Act
# Assert
with self.assertRaises(ValueError):
_ = test_coin_type_manager.get_coin_by_name("Z")
def test_coin_type_manager_get_name_set(self):
# Arrange
test_coin_type_manager = coin_type_manager.CoinTypeManager(
self._mock_coin_type_set, set()
)
# Act
# Assert
self.assertEqual(
test_coin_type_manager.get_name_set(), {"A", "B", "C", "D", "E", "F"}
)
def test_coin_type_manager_get_name_set_immutability(self):
# Arrange
test_coin_type_manager = coin_type_manager.CoinTypeManager(
self._mock_coin_type_set, self._mock_coin_equivalents
)
pre_mutation = test_coin_type_manager.get_name_set()
# Act
pre_mutation.pop()
# Assert
self.assertEqual(
test_coin_type_manager.get_name_set(), {"A", "B", "C", "D", "E", "F"}
)
def test_coin_type_manager_to_json(self):
# Arrange
test_coin_type_manager = coin_type_manager.CoinTypeManager(
self._mock_coin_type_set, self._mock_coin_equivalents
)
# Act
expected = {
"coin_types": [
{"json": "coin A json"},
{"json": "coin B json"},
{"json": "coin C json"},
{"json": "coin D json"},
{"json": "coin E json"},
{"json": "coin F json"},
],
"coin_equivalents": [
{"coin_name": "A", "equivalent_coins_name": "F"},
{"coin_name": "B", "equivalent_coins_name": "F"},
{"coin_name": "C", "equivalent_coins_name": "F"},
{"coin_name": "D", "equivalent_coins_name": "F"},
{"coin_name": "E", "equivalent_coins_name": "F"},
],
}
real = test_coin_type_manager.to_json()
# Assert
self.assertCountEqual(expected["coin_types"], real["coin_types"])
self.assertCountEqual(expected["coin_equivalents"], real["coin_equivalents"])
def test_coin_type_manager_to_json_complies_with_schema(self):
# Arrange
test_json_validator = json_validator.JsonValidator(
json_schemas.JSON_COIN_TYPE_MANAGER_SCHEMA
)
# Act
test_coin_type_manager = coin_type_manager.CoinTypeManager(
self._mock_coin_type_set, self._mock_coin_equivalents
)
# Assert
self.assertTrue(
test_json_validator.validate_json(test_coin_type_manager.to_json())
)
| 37.097484 | 86 | 0.649996 | 1,451 | 11,797 | 4.736733 | 0.06685 | 0.180416 | 0.202968 | 0.185218 | 0.858286 | 0.835152 | 0.789612 | 0.739852 | 0.713226 | 0.691838 | 0 | 0.00256 | 0.271594 | 11,797 | 317 | 87 | 37.214511 | 0.797277 | 0.036959 | 0 | 0.395455 | 0 | 0 | 0.032504 | 0.009299 | 0 | 0 | 0 | 0 | 0.113636 | 1 | 0.109091 | false | 0 | 0.027273 | 0 | 0.140909 | 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 |
97b67945e9ddc6492784710a90a7fbf3fbf7b363 | 63 | py | Python | package/tool-hackathon/hackathon-src/__init__.py | ctuning/ck-quantum | c5283893b9767cfb032286e68f29525761e1ec82 | [
"BSD-3-Clause"
] | 32 | 2018-06-14T02:04:15.000Z | 2022-02-06T11:19:17.000Z | package/tool-hackathon/hackathon-src/__init__.py | ctuning/ck-quantum | c5283893b9767cfb032286e68f29525761e1ec82 | [
"BSD-3-Clause"
] | 17 | 2018-10-06T10:57:26.000Z | 2019-03-14T15:51:17.000Z | package/tool-hackathon/hackathon-src/__init__.py | ctuning/ck-quantum | c5283893b9767cfb032286e68f29525761e1ec82 | [
"BSD-3-Clause"
] | 9 | 2018-10-01T17:17:57.000Z | 2020-08-09T19:24:29.000Z | from .hackathon import utils
from .hackathon import optimizers
| 21 | 33 | 0.84127 | 8 | 63 | 6.625 | 0.625 | 0.490566 | 0.716981 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.126984 | 63 | 2 | 34 | 31.5 | 0.963636 | 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 |
8aefaba179929101fb140a68ceef859b7b0a636e | 129,633 | py | Python | Software de Trading/tests/test_freqtradebot.py | NatanNMB15/tcc-pytradebot | 52b19251a030ab9c1a1b95157b4d57a9cf6df9dc | [
"MIT"
] | 1 | 2020-05-13T14:12:42.000Z | 2020-05-13T14:12:42.000Z | Software de Trading/tests/test_freqtradebot.py | NatanNMB15/tcc-pytradebot | 52b19251a030ab9c1a1b95157b4d57a9cf6df9dc | [
"MIT"
] | 7 | 2020-02-12T02:58:40.000Z | 2021-06-04T23:24:08.000Z | Software de Trading/tests/test_freqtradebot.py | NatanNMB15/tcc-pytradebot | 52b19251a030ab9c1a1b95157b4d57a9cf6df9dc | [
"MIT"
] | null | null | null | # pragma pylint: disable=missing-docstring, C0103
# pragma pylint: disable=protected-access, too-many-lines, invalid-name, too-many-arguments
import logging
import time
from copy import deepcopy
from math import isclose
from unittest.mock import MagicMock, PropertyMock
import arrow
import pytest
import requests
from freqtrade import (DependencyException, InvalidOrderException,
OperationalException, TemporaryError, constants)
from freqtrade.constants import MATH_CLOSE_PREC
from freqtrade.data.dataprovider import DataProvider
from freqtrade.freqtradebot import FreqtradeBot
from freqtrade.persistence import Trade
from freqtrade.rpc import RPCMessageType
from freqtrade.state import RunMode, State
from freqtrade.strategy.interface import SellCheckTuple, SellType
from freqtrade.worker import Worker
from tests.conftest import (get_patched_freqtradebot, get_patched_worker,
log_has, log_has_re, patch_edge, patch_exchange,
patch_get_signal, patch_wallet)
def patch_RPCManager(mocker) -> MagicMock:
"""
This function mock RPC manager to avoid repeating this code in almost every tests
:param mocker: mocker to patch RPCManager class
:return: RPCManager.send_msg MagicMock to track if this method is called
"""
mocker.patch('freqtrade.rpc.telegram.Telegram', MagicMock())
rpc_mock = mocker.patch('freqtrade.freqtradebot.RPCManager.send_msg', MagicMock())
return rpc_mock
# Unit tests
def test_freqtradebot_state(mocker, default_conf, markets) -> None:
mocker.patch('freqtrade.exchange.Exchange.markets', PropertyMock(return_value=markets))
freqtrade = get_patched_freqtradebot(mocker, default_conf)
assert freqtrade.state is State.RUNNING
default_conf.pop('initial_state')
freqtrade = FreqtradeBot(default_conf)
assert freqtrade.state is State.STOPPED
def test_worker_state(mocker, default_conf, markets) -> None:
mocker.patch('freqtrade.exchange.Exchange.markets', PropertyMock(return_value=markets))
worker = get_patched_worker(mocker, default_conf)
assert worker.state is State.RUNNING
default_conf.pop('initial_state')
worker = Worker(args=None, config=default_conf)
assert worker.state is State.STOPPED
def test_cleanup(mocker, default_conf, caplog) -> None:
mock_cleanup = MagicMock()
mocker.patch('freqtrade.persistence.cleanup', mock_cleanup)
freqtrade = get_patched_freqtradebot(mocker, default_conf)
freqtrade.cleanup()
assert log_has('Cleaning up modules ...', caplog)
assert mock_cleanup.call_count == 1
def test_worker_running(mocker, default_conf, caplog) -> None:
mock_throttle = MagicMock()
mocker.patch('freqtrade.worker.Worker._throttle', mock_throttle)
mocker.patch('freqtrade.persistence.Trade.stoploss_reinitialization', MagicMock())
worker = get_patched_worker(mocker, default_conf)
state = worker._worker(old_state=None)
assert state is State.RUNNING
assert log_has('Changing state to: RUNNING', caplog)
assert mock_throttle.call_count == 1
# Check strategy is loaded, and received a dataprovider object
assert worker.freqtrade.strategy
assert worker.freqtrade.strategy.dp
assert isinstance(worker.freqtrade.strategy.dp, DataProvider)
def test_worker_stopped(mocker, default_conf, caplog) -> None:
mock_throttle = MagicMock()
mocker.patch('freqtrade.worker.Worker._throttle', mock_throttle)
mock_sleep = mocker.patch('time.sleep', return_value=None)
worker = get_patched_worker(mocker, default_conf)
worker.state = State.STOPPED
state = worker._worker(old_state=State.RUNNING)
assert state is State.STOPPED
assert log_has('Changing state to: STOPPED', caplog)
assert mock_throttle.call_count == 0
assert mock_sleep.call_count == 1
def test_throttle(mocker, default_conf, caplog) -> None:
def throttled_func():
return 42
caplog.set_level(logging.DEBUG)
worker = get_patched_worker(mocker, default_conf)
start = time.time()
result = worker._throttle(throttled_func, min_secs=0.1)
end = time.time()
assert result == 42
assert end - start > 0.1
assert log_has('Throttling throttled_func for 0.10 seconds', caplog)
result = worker._throttle(throttled_func, min_secs=-1)
assert result == 42
def test_throttle_with_assets(mocker, default_conf) -> None:
def throttled_func(nb_assets=-1):
return nb_assets
worker = get_patched_worker(mocker, default_conf)
result = worker._throttle(throttled_func, min_secs=0.1, nb_assets=666)
assert result == 666
result = worker._throttle(throttled_func, min_secs=0.1)
assert result == -1
def test_order_dict_dry_run(default_conf, mocker, caplog) -> None:
patch_RPCManager(mocker)
patch_exchange(mocker)
mocker.patch.multiple(
'freqtrade.exchange.Exchange',
get_balance=MagicMock(return_value=default_conf['stake_amount'] * 2)
)
conf = default_conf.copy()
conf['runmode'] = RunMode.DRY_RUN
conf['order_types'] = {
'buy': 'market',
'sell': 'limit',
'stoploss': 'limit',
'stoploss_on_exchange': True,
}
freqtrade = FreqtradeBot(conf)
assert freqtrade.strategy.order_types['stoploss_on_exchange']
caplog.clear()
# is left untouched
conf = default_conf.copy()
conf['runmode'] = RunMode.DRY_RUN
conf['order_types'] = {
'buy': 'market',
'sell': 'limit',
'stoploss': 'limit',
'stoploss_on_exchange': False,
}
freqtrade = FreqtradeBot(conf)
assert not freqtrade.strategy.order_types['stoploss_on_exchange']
assert not log_has_re(".*stoploss_on_exchange .* dry-run", caplog)
def test_order_dict_live(default_conf, mocker, caplog) -> None:
patch_RPCManager(mocker)
patch_exchange(mocker)
mocker.patch.multiple(
'freqtrade.exchange.Exchange',
get_balance=MagicMock(return_value=default_conf['stake_amount'] * 2)
)
conf = default_conf.copy()
conf['runmode'] = RunMode.LIVE
conf['order_types'] = {
'buy': 'market',
'sell': 'limit',
'stoploss': 'limit',
'stoploss_on_exchange': True,
}
freqtrade = FreqtradeBot(conf)
assert not log_has_re(".*stoploss_on_exchange .* dry-run", caplog)
assert freqtrade.strategy.order_types['stoploss_on_exchange']
caplog.clear()
# is left untouched
conf = default_conf.copy()
conf['runmode'] = RunMode.LIVE
conf['order_types'] = {
'buy': 'market',
'sell': 'limit',
'stoploss': 'limit',
'stoploss_on_exchange': False,
}
freqtrade = FreqtradeBot(conf)
assert not freqtrade.strategy.order_types['stoploss_on_exchange']
assert not log_has_re(".*stoploss_on_exchange .* dry-run", caplog)
def test_get_trade_stake_amount(default_conf, ticker, mocker) -> None:
patch_RPCManager(mocker)
patch_exchange(mocker)
mocker.patch.multiple(
'freqtrade.exchange.Exchange',
get_balance=MagicMock(return_value=default_conf['stake_amount'] * 2)
)
freqtrade = FreqtradeBot(default_conf)
result = freqtrade._get_trade_stake_amount('ETH/BTC')
assert result == default_conf['stake_amount']
def test_get_trade_stake_amount_no_stake_amount(default_conf, mocker) -> None:
patch_RPCManager(mocker)
patch_exchange(mocker)
patch_wallet(mocker, free=default_conf['stake_amount'] * 0.5)
freqtrade = FreqtradeBot(default_conf)
with pytest.raises(DependencyException, match=r'.*stake amount.*'):
freqtrade._get_trade_stake_amount('ETH/BTC')
def test_get_trade_stake_amount_unlimited_amount(default_conf,
ticker,
limit_buy_order,
fee,
markets,
mocker) -> None:
patch_RPCManager(mocker)
patch_exchange(mocker)
patch_wallet(mocker, free=default_conf['stake_amount'])
mocker.patch.multiple(
'freqtrade.exchange.Exchange',
markets=PropertyMock(return_value=markets),
get_ticker=ticker,
buy=MagicMock(return_value={'id': limit_buy_order['id']}),
get_fee=fee
)
conf = deepcopy(default_conf)
conf['stake_amount'] = constants.UNLIMITED_STAKE_AMOUNT
conf['max_open_trades'] = 2
freqtrade = FreqtradeBot(conf)
patch_get_signal(freqtrade)
# no open trades, order amount should be 'balance / max_open_trades'
result = freqtrade._get_trade_stake_amount('ETH/BTC')
assert result == default_conf['stake_amount'] / conf['max_open_trades']
# create one trade, order amount should be 'balance / (max_open_trades - num_open_trades)'
freqtrade.execute_buy('ETH/BTC', result)
result = freqtrade._get_trade_stake_amount('LTC/BTC')
assert result == default_conf['stake_amount'] / (conf['max_open_trades'] - 1)
# create 2 trades, order amount should be None
freqtrade.execute_buy('LTC/BTC', result)
result = freqtrade._get_trade_stake_amount('XRP/BTC')
assert result is None
# set max_open_trades = None, so do not trade
conf['max_open_trades'] = 0
freqtrade = FreqtradeBot(conf)
result = freqtrade._get_trade_stake_amount('NEO/BTC')
assert result is None
def test_edge_called_in_process(mocker, edge_conf) -> None:
patch_RPCManager(mocker)
patch_edge(mocker)
def _refresh_whitelist(list):
return ['ETH/BTC', 'LTC/BTC', 'XRP/BTC', 'NEO/BTC']
patch_exchange(mocker)
freqtrade = FreqtradeBot(edge_conf)
freqtrade.pairlists._validate_whitelist = _refresh_whitelist
patch_get_signal(freqtrade)
freqtrade.process()
assert freqtrade.active_pair_whitelist == ['NEO/BTC', 'LTC/BTC']
def test_edge_overrides_stake_amount(mocker, edge_conf) -> None:
patch_RPCManager(mocker)
patch_exchange(mocker)
patch_edge(mocker)
freqtrade = FreqtradeBot(edge_conf)
assert freqtrade._get_trade_stake_amount('NEO/BTC') == (999.9 * 0.5 * 0.01) / 0.20
assert freqtrade._get_trade_stake_amount('LTC/BTC') == (999.9 * 0.5 * 0.01) / 0.21
def test_edge_overrides_stoploss(limit_buy_order, fee, markets, caplog, mocker, edge_conf) -> None:
patch_RPCManager(mocker)
patch_exchange(mocker)
patch_edge(mocker)
edge_conf['max_open_trades'] = float('inf')
# Strategy stoploss is -0.1 but Edge imposes a stoploss at -0.2
# Thus, if price falls 21%, stoploss should be triggered
#
# mocking the ticker: price is falling ...
buy_price = limit_buy_order['price']
mocker.patch.multiple(
'freqtrade.exchange.Exchange',
get_ticker=MagicMock(return_value={
'bid': buy_price * 0.79,
'ask': buy_price * 0.79,
'last': buy_price * 0.79
}),
buy=MagicMock(return_value={'id': limit_buy_order['id']}),
get_fee=fee,
markets=PropertyMock(return_value=markets)
)
#############################################
# Create a trade with "limit_buy_order" price
freqtrade = FreqtradeBot(edge_conf)
freqtrade.active_pair_whitelist = ['NEO/BTC']
patch_get_signal(freqtrade)
freqtrade.strategy.min_roi_reached = MagicMock(return_value=False)
freqtrade.create_trades()
trade = Trade.query.first()
trade.update(limit_buy_order)
#############################################
# stoploss shoud be hit
assert freqtrade.handle_trade(trade) is True
assert log_has('executed sell, reason: SellType.STOP_LOSS', caplog)
assert trade.sell_reason == SellType.STOP_LOSS.value
def test_edge_should_ignore_strategy_stoploss(limit_buy_order, fee, markets,
mocker, edge_conf) -> None:
patch_RPCManager(mocker)
patch_exchange(mocker)
patch_edge(mocker)
edge_conf['max_open_trades'] = float('inf')
# Strategy stoploss is -0.1 but Edge imposes a stoploss at -0.2
# Thus, if price falls 15%, stoploss should not be triggered
#
# mocking the ticker: price is falling ...
buy_price = limit_buy_order['price']
mocker.patch.multiple(
'freqtrade.exchange.Exchange',
get_ticker=MagicMock(return_value={
'bid': buy_price * 0.85,
'ask': buy_price * 0.85,
'last': buy_price * 0.85
}),
buy=MagicMock(return_value={'id': limit_buy_order['id']}),
get_fee=fee,
markets=PropertyMock(return_value=markets),
)
#############################################
# Create a trade with "limit_buy_order" price
freqtrade = FreqtradeBot(edge_conf)
freqtrade.active_pair_whitelist = ['NEO/BTC']
patch_get_signal(freqtrade)
freqtrade.strategy.min_roi_reached = MagicMock(return_value=False)
freqtrade.create_trades()
trade = Trade.query.first()
trade.update(limit_buy_order)
#############################################
# stoploss shoud not be hit
assert freqtrade.handle_trade(trade) is False
def test_total_open_trades_stakes(mocker, default_conf, ticker,
limit_buy_order, fee, markets) -> None:
patch_RPCManager(mocker)
patch_exchange(mocker)
default_conf['stake_amount'] = 0.0000098751
default_conf['max_open_trades'] = 2
mocker.patch.multiple(
'freqtrade.exchange.Exchange',
get_ticker=ticker,
buy=MagicMock(return_value={'id': limit_buy_order['id']}),
get_fee=fee,
markets=PropertyMock(return_value=markets)
)
freqtrade = FreqtradeBot(default_conf)
patch_get_signal(freqtrade)
freqtrade.create_trades()
trade = Trade.query.first()
assert trade is not None
assert trade.stake_amount == 0.0000098751
assert trade.is_open
assert trade.open_date is not None
freqtrade.create_trades()
trade = Trade.query.order_by(Trade.id.desc()).first()
assert trade is not None
assert trade.stake_amount == 0.0000098751
assert trade.is_open
assert trade.open_date is not None
assert Trade.total_open_trades_stakes() == 1.97502e-05
def test_get_min_pair_stake_amount(mocker, default_conf) -> None:
patch_RPCManager(mocker)
patch_exchange(mocker)
freqtrade = FreqtradeBot(default_conf)
freqtrade.strategy.stoploss = -0.05
markets = {'ETH/BTC': {'symbol': 'ETH/BTC'}}
# no pair found
mocker.patch(
'freqtrade.exchange.Exchange.markets',
PropertyMock(return_value=markets)
)
with pytest.raises(ValueError, match=r'.*get market information.*'):
freqtrade._get_min_pair_stake_amount('BNB/BTC', 1)
# no 'limits' section
result = freqtrade._get_min_pair_stake_amount('ETH/BTC', 1)
assert result is None
# empty 'limits' section
markets["ETH/BTC"]["limits"] = {}
mocker.patch(
'freqtrade.exchange.Exchange.markets',
PropertyMock(return_value=markets)
)
result = freqtrade._get_min_pair_stake_amount('ETH/BTC', 1)
assert result is None
# no cost Min
markets["ETH/BTC"]["limits"] = {
'cost': {"min": None},
'amount': {}
}
mocker.patch(
'freqtrade.exchange.Exchange.markets',
PropertyMock(return_value=markets)
)
result = freqtrade._get_min_pair_stake_amount('ETH/BTC', 1)
assert result is None
# no amount Min
markets["ETH/BTC"]["limits"] = {
'cost': {},
'amount': {"min": None}
}
mocker.patch(
'freqtrade.exchange.Exchange.markets',
PropertyMock(return_value=markets)
)
result = freqtrade._get_min_pair_stake_amount('ETH/BTC', 1)
assert result is None
# empty 'cost'/'amount' section
markets["ETH/BTC"]["limits"] = {
'cost': {},
'amount': {}
}
mocker.patch(
'freqtrade.exchange.Exchange.markets',
PropertyMock(return_value=markets)
)
result = freqtrade._get_min_pair_stake_amount('ETH/BTC', 1)
assert result is None
# min cost is set
markets["ETH/BTC"]["limits"] = {
'cost': {'min': 2},
'amount': {}
}
mocker.patch(
'freqtrade.exchange.Exchange.markets',
PropertyMock(return_value=markets)
)
result = freqtrade._get_min_pair_stake_amount('ETH/BTC', 1)
assert result == 2 / 0.9
# min amount is set
markets["ETH/BTC"]["limits"] = {
'cost': {},
'amount': {'min': 2}
}
mocker.patch(
'freqtrade.exchange.Exchange.markets',
PropertyMock(return_value=markets)
)
result = freqtrade._get_min_pair_stake_amount('ETH/BTC', 2)
assert result == 2 * 2 / 0.9
# min amount and cost are set (cost is minimal)
markets["ETH/BTC"]["limits"] = {
'cost': {'min': 2},
'amount': {'min': 2}
}
mocker.patch(
'freqtrade.exchange.Exchange.markets',
PropertyMock(return_value=markets)
)
result = freqtrade._get_min_pair_stake_amount('ETH/BTC', 2)
assert result == min(2, 2 * 2) / 0.9
# min amount and cost are set (amount is minial)
markets["ETH/BTC"]["limits"] = {
'cost': {'min': 8},
'amount': {'min': 2}
}
mocker.patch(
'freqtrade.exchange.Exchange.markets',
PropertyMock(return_value=markets)
)
result = freqtrade._get_min_pair_stake_amount('ETH/BTC', 2)
assert result == min(8, 2 * 2) / 0.9
def test_create_trades(default_conf, ticker, limit_buy_order, fee, markets, mocker) -> None:
patch_RPCManager(mocker)
patch_exchange(mocker)
mocker.patch.multiple(
'freqtrade.exchange.Exchange',
get_ticker=ticker,
buy=MagicMock(return_value={'id': limit_buy_order['id']}),
get_fee=fee,
markets=PropertyMock(return_value=markets)
)
# Save state of current whitelist
whitelist = deepcopy(default_conf['exchange']['pair_whitelist'])
freqtrade = FreqtradeBot(default_conf)
patch_get_signal(freqtrade)
freqtrade.create_trades()
trade = Trade.query.first()
assert trade is not None
assert trade.stake_amount == 0.001
assert trade.is_open
assert trade.open_date is not None
assert trade.exchange == 'bittrex'
# Simulate fulfilled LIMIT_BUY order for trade
trade.update(limit_buy_order)
assert trade.open_rate == 0.00001099
assert trade.amount == 90.99181073
assert whitelist == default_conf['exchange']['pair_whitelist']
def test_create_trades_no_stake_amount(default_conf, ticker, limit_buy_order,
fee, markets, mocker) -> None:
patch_RPCManager(mocker)
patch_exchange(mocker)
patch_wallet(mocker, free=default_conf['stake_amount'] * 0.5)
mocker.patch.multiple(
'freqtrade.exchange.Exchange',
get_ticker=ticker,
buy=MagicMock(return_value={'id': limit_buy_order['id']}),
get_fee=fee,
markets=PropertyMock(return_value=markets)
)
freqtrade = FreqtradeBot(default_conf)
patch_get_signal(freqtrade)
with pytest.raises(DependencyException, match=r'.*stake amount.*'):
freqtrade.create_trades()
def test_create_trades_minimal_amount(default_conf, ticker, limit_buy_order,
fee, markets, mocker) -> None:
patch_RPCManager(mocker)
patch_exchange(mocker)
buy_mock = MagicMock(return_value={'id': limit_buy_order['id']})
mocker.patch.multiple(
'freqtrade.exchange.Exchange',
get_ticker=ticker,
buy=buy_mock,
get_fee=fee,
markets=PropertyMock(return_value=markets)
)
default_conf['stake_amount'] = 0.0005
freqtrade = FreqtradeBot(default_conf)
patch_get_signal(freqtrade)
freqtrade.create_trades()
rate, amount = buy_mock.call_args[1]['rate'], buy_mock.call_args[1]['amount']
assert rate * amount >= default_conf['stake_amount']
def test_create_trades_too_small_stake_amount(default_conf, ticker, limit_buy_order,
fee, markets, mocker) -> None:
patch_RPCManager(mocker)
patch_exchange(mocker)
buy_mock = MagicMock(return_value={'id': limit_buy_order['id']})
mocker.patch.multiple(
'freqtrade.exchange.Exchange',
get_ticker=ticker,
buy=buy_mock,
get_fee=fee,
markets=PropertyMock(return_value=markets)
)
default_conf['stake_amount'] = 0.000000005
freqtrade = FreqtradeBot(default_conf)
patch_get_signal(freqtrade)
assert not freqtrade.create_trades()
def test_create_trades_limit_reached(default_conf, ticker, limit_buy_order,
fee, markets, mocker) -> None:
patch_RPCManager(mocker)
patch_exchange(mocker)
mocker.patch.multiple(
'freqtrade.exchange.Exchange',
get_ticker=ticker,
buy=MagicMock(return_value={'id': limit_buy_order['id']}),
get_balance=MagicMock(return_value=default_conf['stake_amount']),
get_fee=fee,
markets=PropertyMock(return_value=markets)
)
default_conf['max_open_trades'] = 0
default_conf['stake_amount'] = constants.UNLIMITED_STAKE_AMOUNT
freqtrade = FreqtradeBot(default_conf)
patch_get_signal(freqtrade)
assert not freqtrade.create_trades()
assert freqtrade._get_trade_stake_amount('ETH/BTC') is None
def test_create_trades_no_pairs_let(default_conf, ticker, limit_buy_order, fee,
markets, mocker, caplog) -> None:
patch_RPCManager(mocker)
patch_exchange(mocker)
mocker.patch.multiple(
'freqtrade.exchange.Exchange',
get_ticker=ticker,
buy=MagicMock(return_value={'id': limit_buy_order['id']}),
get_fee=fee,
markets=PropertyMock(return_value=markets)
)
default_conf['exchange']['pair_whitelist'] = ["ETH/BTC"]
freqtrade = FreqtradeBot(default_conf)
patch_get_signal(freqtrade)
assert freqtrade.create_trades()
assert not freqtrade.create_trades()
assert log_has("No currency pair in active pair whitelist, "
"but checking to sell open trades.", caplog)
def test_create_trades_no_pairs_in_whitelist(default_conf, ticker, limit_buy_order, fee,
markets, mocker, caplog) -> None:
patch_RPCManager(mocker)
patch_exchange(mocker)
mocker.patch.multiple(
'freqtrade.exchange.Exchange',
get_ticker=ticker,
buy=MagicMock(return_value={'id': limit_buy_order['id']}),
get_fee=fee,
markets=PropertyMock(return_value=markets)
)
default_conf['exchange']['pair_whitelist'] = []
freqtrade = FreqtradeBot(default_conf)
patch_get_signal(freqtrade)
assert not freqtrade.create_trades()
assert log_has("Active pair whitelist is empty.", caplog)
def test_create_trades_no_signal(default_conf, fee, mocker) -> None:
default_conf['dry_run'] = True
patch_RPCManager(mocker)
patch_exchange(mocker)
mocker.patch.multiple(
'freqtrade.exchange.Exchange',
get_balance=MagicMock(return_value=20),
get_fee=fee,
)
default_conf['stake_amount'] = 10
freqtrade = FreqtradeBot(default_conf)
patch_get_signal(freqtrade, value=(False, False))
Trade.query = MagicMock()
Trade.query.filter = MagicMock()
assert not freqtrade.create_trades()
@pytest.mark.parametrize("max_open", range(0, 5))
def test_create_trades_multiple_trades(default_conf, ticker,
fee, markets, mocker, max_open) -> None:
patch_RPCManager(mocker)
patch_exchange(mocker)
default_conf['max_open_trades'] = max_open
mocker.patch.multiple(
'freqtrade.exchange.Exchange',
get_ticker=ticker,
buy=MagicMock(return_value={'id': "12355555"}),
get_fee=fee,
markets=PropertyMock(return_value=markets)
)
freqtrade = FreqtradeBot(default_conf)
patch_get_signal(freqtrade)
freqtrade.create_trades()
trades = Trade.get_open_trades()
assert len(trades) == max_open
def test_create_trades_preopen(default_conf, ticker, fee, markets, mocker) -> None:
patch_RPCManager(mocker)
patch_exchange(mocker)
default_conf['max_open_trades'] = 4
mocker.patch.multiple(
'freqtrade.exchange.Exchange',
get_ticker=ticker,
buy=MagicMock(return_value={'id': "12355555"}),
get_fee=fee,
markets=PropertyMock(return_value=markets)
)
freqtrade = FreqtradeBot(default_conf)
patch_get_signal(freqtrade)
# Create 2 existing trades
freqtrade.execute_buy('ETH/BTC', default_conf['stake_amount'])
freqtrade.execute_buy('NEO/BTC', default_conf['stake_amount'])
assert len(Trade.get_open_trades()) == 2
# Create 2 new trades using create_trades
assert freqtrade.create_trades()
trades = Trade.get_open_trades()
assert len(trades) == 4
def test_process_trade_creation(default_conf, ticker, limit_buy_order,
markets, fee, mocker, caplog) -> None:
patch_RPCManager(mocker)
patch_exchange(mocker)
mocker.patch.multiple(
'freqtrade.exchange.Exchange',
get_ticker=ticker,
markets=PropertyMock(return_value=markets),
buy=MagicMock(return_value={'id': limit_buy_order['id']}),
get_order=MagicMock(return_value=limit_buy_order),
get_fee=fee,
)
freqtrade = FreqtradeBot(default_conf)
patch_get_signal(freqtrade)
trades = Trade.query.filter(Trade.is_open.is_(True)).all()
assert not trades
freqtrade.process()
trades = Trade.query.filter(Trade.is_open.is_(True)).all()
assert len(trades) == 1
trade = trades[0]
assert trade is not None
assert trade.stake_amount == default_conf['stake_amount']
assert trade.is_open
assert trade.open_date is not None
assert trade.exchange == 'bittrex'
assert trade.open_rate == 0.00001099
assert trade.amount == 90.99181073703367
assert log_has(
'Buy signal found: about create a new trade with stake_amount: 0.001 ...', caplog
)
def test_process_exchange_failures(default_conf, ticker, markets, mocker) -> None:
patch_RPCManager(mocker)
patch_exchange(mocker)
mocker.patch.multiple(
'freqtrade.exchange.Exchange',
get_ticker=ticker,
markets=PropertyMock(return_value=markets),
buy=MagicMock(side_effect=TemporaryError)
)
sleep_mock = mocker.patch('time.sleep', side_effect=lambda _: None)
worker = Worker(args=None, config=default_conf)
patch_get_signal(worker.freqtrade)
worker._process()
assert sleep_mock.has_calls()
def test_process_operational_exception(default_conf, ticker, markets, mocker) -> None:
msg_mock = patch_RPCManager(mocker)
patch_exchange(mocker)
mocker.patch.multiple(
'freqtrade.exchange.Exchange',
get_ticker=ticker,
markets=PropertyMock(return_value=markets),
buy=MagicMock(side_effect=OperationalException)
)
worker = Worker(args=None, config=default_conf)
patch_get_signal(worker.freqtrade)
assert worker.state == State.RUNNING
worker._process()
assert worker.state == State.STOPPED
assert 'OperationalException' in msg_mock.call_args_list[-1][0][0]['status']
def test_process_trade_handling(
default_conf, ticker, limit_buy_order, markets, fee, mocker) -> None:
patch_RPCManager(mocker)
patch_exchange(mocker)
mocker.patch.multiple(
'freqtrade.exchange.Exchange',
get_ticker=ticker,
markets=PropertyMock(return_value=markets),
buy=MagicMock(return_value={'id': limit_buy_order['id']}),
get_order=MagicMock(return_value=limit_buy_order),
get_fee=fee,
)
freqtrade = FreqtradeBot(default_conf)
patch_get_signal(freqtrade)
trades = Trade.query.filter(Trade.is_open.is_(True)).all()
assert not trades
freqtrade.process()
trades = Trade.query.filter(Trade.is_open.is_(True)).all()
assert len(trades) == 1
# Nothing happened ...
freqtrade.process()
assert len(trades) == 1
def test_process_trade_no_whitelist_pair(
default_conf, ticker, limit_buy_order, markets, fee, mocker) -> None:
""" Test process with trade not in pair list """
patch_RPCManager(mocker)
patch_exchange(mocker)
mocker.patch.multiple(
'freqtrade.exchange.Exchange',
get_ticker=ticker,
markets=PropertyMock(return_value=markets),
buy=MagicMock(return_value={'id': limit_buy_order['id']}),
get_order=MagicMock(return_value=limit_buy_order),
get_fee=fee,
)
freqtrade = FreqtradeBot(default_conf)
patch_get_signal(freqtrade)
pair = 'NOCLUE/BTC'
# create open trade not in whitelist
Trade.session.add(Trade(
pair=pair,
stake_amount=0.001,
fee_open=fee.return_value,
fee_close=fee.return_value,
is_open=True,
amount=20,
open_rate=0.01,
exchange='bittrex',
))
Trade.session.add(Trade(
pair='ETH/BTC',
stake_amount=0.001,
fee_open=fee.return_value,
fee_close=fee.return_value,
is_open=True,
amount=12,
open_rate=0.001,
exchange='bittrex',
))
assert pair not in freqtrade.active_pair_whitelist
freqtrade.process()
assert pair in freqtrade.active_pair_whitelist
# Make sure each pair is only in the list once
assert len(freqtrade.active_pair_whitelist) == len(set(freqtrade.active_pair_whitelist))
def test_process_informative_pairs_added(default_conf, ticker, markets, mocker) -> None:
patch_RPCManager(mocker)
patch_exchange(mocker)
def _refresh_whitelist(list):
return ['ETH/BTC', 'LTC/BTC', 'XRP/BTC', 'NEO/BTC']
refresh_mock = MagicMock()
mocker.patch.multiple(
'freqtrade.exchange.Exchange',
get_ticker=ticker,
markets=PropertyMock(return_value=markets),
buy=MagicMock(side_effect=TemporaryError),
refresh_latest_ohlcv=refresh_mock,
)
inf_pairs = MagicMock(return_value=[("BTC/ETH", '1m'), ("ETH/USDT", "1h")])
mocker.patch('time.sleep', return_value=None)
freqtrade = FreqtradeBot(default_conf)
freqtrade.pairlists._validate_whitelist = _refresh_whitelist
freqtrade.strategy.informative_pairs = inf_pairs
# patch_get_signal(freqtrade)
freqtrade.process()
assert inf_pairs.call_count == 1
assert refresh_mock.call_count == 1
assert ("BTC/ETH", "1m") in refresh_mock.call_args[0][0]
assert ("ETH/USDT", "1h") in refresh_mock.call_args[0][0]
assert ("ETH/BTC", default_conf["ticker_interval"]) in refresh_mock.call_args[0][0]
def test_balance_fully_ask_side(mocker, default_conf) -> None:
default_conf['bid_strategy']['ask_last_balance'] = 0.0
freqtrade = get_patched_freqtradebot(mocker, default_conf)
mocker.patch('freqtrade.exchange.Exchange.get_ticker',
MagicMock(return_value={'ask': 20, 'last': 10}))
assert freqtrade.get_target_bid('ETH/BTC') == 20
def test_balance_fully_last_side(mocker, default_conf) -> None:
default_conf['bid_strategy']['ask_last_balance'] = 1.0
freqtrade = get_patched_freqtradebot(mocker, default_conf)
mocker.patch('freqtrade.exchange.Exchange.get_ticker',
MagicMock(return_value={'ask': 20, 'last': 10}))
assert freqtrade.get_target_bid('ETH/BTC') == 10
def test_balance_bigger_last_ask(mocker, default_conf) -> None:
default_conf['bid_strategy']['ask_last_balance'] = 1.0
freqtrade = get_patched_freqtradebot(mocker, default_conf)
mocker.patch('freqtrade.exchange.Exchange.get_ticker',
MagicMock(return_value={'ask': 5, 'last': 10}))
assert freqtrade.get_target_bid('ETH/BTC') == 5
def test_execute_buy(mocker, default_conf, fee, markets, limit_buy_order) -> None:
patch_RPCManager(mocker)
patch_exchange(mocker)
freqtrade = FreqtradeBot(default_conf)
stake_amount = 2
bid = 0.11
get_bid = MagicMock(return_value=bid)
mocker.patch.multiple(
'freqtrade.freqtradebot.FreqtradeBot',
get_target_bid=get_bid,
_get_min_pair_stake_amount=MagicMock(return_value=1)
)
buy_mm = MagicMock(return_value={'id': limit_buy_order['id']})
mocker.patch.multiple(
'freqtrade.exchange.Exchange',
get_ticker=MagicMock(return_value={
'bid': 0.00001172,
'ask': 0.00001173,
'last': 0.00001172
}),
buy=buy_mm,
get_fee=fee,
markets=PropertyMock(return_value=markets)
)
pair = 'ETH/BTC'
assert freqtrade.execute_buy(pair, stake_amount)
assert get_bid.call_count == 1
assert buy_mm.call_count == 1
call_args = buy_mm.call_args_list[0][1]
assert call_args['pair'] == pair
assert call_args['rate'] == bid
assert call_args['amount'] == stake_amount / bid
# Should create an open trade with an open order id
# As the order is not fulfilled yet
trade = Trade.query.first()
assert trade
assert trade.is_open is True
assert trade.open_order_id == limit_buy_order['id']
# Test calling with price
fix_price = 0.06
assert freqtrade.execute_buy(pair, stake_amount, fix_price)
# Make sure get_target_bid wasn't called again
assert get_bid.call_count == 1
assert buy_mm.call_count == 2
call_args = buy_mm.call_args_list[1][1]
assert call_args['pair'] == pair
assert call_args['rate'] == fix_price
assert call_args['amount'] == stake_amount / fix_price
# In case of closed order
limit_buy_order['status'] = 'closed'
limit_buy_order['price'] = 10
limit_buy_order['cost'] = 100
mocker.patch('freqtrade.exchange.Exchange.buy', MagicMock(return_value=limit_buy_order))
assert freqtrade.execute_buy(pair, stake_amount)
trade = Trade.query.all()[2]
assert trade
assert trade.open_order_id is None
assert trade.open_rate == 10
assert trade.stake_amount == 100
# In case of rejected or expired order and partially filled
limit_buy_order['status'] = 'expired'
limit_buy_order['amount'] = 90.99181073
limit_buy_order['filled'] = 80.99181073
limit_buy_order['remaining'] = 10.00
limit_buy_order['price'] = 0.5
limit_buy_order['cost'] = 40.495905365
mocker.patch('freqtrade.exchange.Exchange.buy', MagicMock(return_value=limit_buy_order))
assert freqtrade.execute_buy(pair, stake_amount)
trade = Trade.query.all()[3]
assert trade
assert trade.open_order_id is None
assert trade.open_rate == 0.5
assert trade.stake_amount == 40.495905365
# In case of the order is rejected and not filled at all
limit_buy_order['status'] = 'rejected'
limit_buy_order['amount'] = 90.99181073
limit_buy_order['filled'] = 0.0
limit_buy_order['remaining'] = 90.99181073
limit_buy_order['price'] = 0.5
limit_buy_order['cost'] = 0.0
mocker.patch('freqtrade.exchange.Exchange.buy', MagicMock(return_value=limit_buy_order))
assert not freqtrade.execute_buy(pair, stake_amount)
def test_add_stoploss_on_exchange(mocker, default_conf, limit_buy_order) -> None:
patch_RPCManager(mocker)
patch_exchange(mocker)
mocker.patch('freqtrade.freqtradebot.FreqtradeBot.handle_trade', MagicMock(return_value=True))
mocker.patch('freqtrade.exchange.Exchange.get_order', return_value=limit_buy_order)
mocker.patch('freqtrade.exchange.Exchange.get_trades_for_order', return_value=[])
mocker.patch('freqtrade.freqtradebot.FreqtradeBot.get_real_amount',
return_value=limit_buy_order['amount'])
stoploss_limit = MagicMock(return_value={'id': 13434334})
mocker.patch('freqtrade.exchange.Exchange.stoploss_limit', stoploss_limit)
freqtrade = FreqtradeBot(default_conf)
freqtrade.strategy.order_types['stoploss_on_exchange'] = True
trade = MagicMock()
trade.open_order_id = None
trade.stoploss_order_id = None
trade.is_open = True
trades = [trade]
freqtrade.process_maybe_execute_sells(trades)
assert trade.stoploss_order_id == '13434334'
assert stoploss_limit.call_count == 1
assert trade.is_open is True
def test_handle_stoploss_on_exchange(mocker, default_conf, fee, caplog,
markets, limit_buy_order, limit_sell_order) -> None:
stoploss_limit = MagicMock(return_value={'id': 13434334})
patch_RPCManager(mocker)
patch_exchange(mocker)
mocker.patch.multiple(
'freqtrade.exchange.Exchange',
get_ticker=MagicMock(return_value={
'bid': 0.00001172,
'ask': 0.00001173,
'last': 0.00001172
}),
buy=MagicMock(return_value={'id': limit_buy_order['id']}),
sell=MagicMock(return_value={'id': limit_sell_order['id']}),
get_fee=fee,
markets=PropertyMock(return_value=markets),
stoploss_limit=stoploss_limit
)
freqtrade = FreqtradeBot(default_conf)
patch_get_signal(freqtrade)
# First case: when stoploss is not yet set but the order is open
# should get the stoploss order id immediately
# and should return false as no trade actually happened
trade = MagicMock()
trade.is_open = True
trade.open_order_id = None
trade.stoploss_order_id = None
assert freqtrade.handle_stoploss_on_exchange(trade) is False
assert stoploss_limit.call_count == 1
assert trade.stoploss_order_id == "13434334"
# Second case: when stoploss is set but it is not yet hit
# should do nothing and return false
trade.is_open = True
trade.open_order_id = None
trade.stoploss_order_id = 100
hanging_stoploss_order = MagicMock(return_value={'status': 'open'})
mocker.patch('freqtrade.exchange.Exchange.get_order', hanging_stoploss_order)
assert freqtrade.handle_stoploss_on_exchange(trade) is False
assert trade.stoploss_order_id == 100
# Third case: when stoploss was set but it was canceled for some reason
# should set a stoploss immediately and return False
caplog.clear()
trade.is_open = True
trade.open_order_id = None
trade.stoploss_order_id = 100
canceled_stoploss_order = MagicMock(return_value={'status': 'canceled'})
mocker.patch('freqtrade.exchange.Exchange.get_order', canceled_stoploss_order)
stoploss_limit.reset_mock()
assert freqtrade.handle_stoploss_on_exchange(trade) is False
assert stoploss_limit.call_count == 1
assert trade.stoploss_order_id == "13434334"
# Fourth case: when stoploss is set and it is hit
# should unset stoploss_order_id and return true
# as a trade actually happened
caplog.clear()
freqtrade.create_trades()
trade = Trade.query.first()
trade.is_open = True
trade.open_order_id = None
trade.stoploss_order_id = 100
assert trade
stoploss_order_hit = MagicMock(return_value={
'status': 'closed',
'type': 'stop_loss_limit',
'price': 3,
'average': 2
})
mocker.patch('freqtrade.exchange.Exchange.get_order', stoploss_order_hit)
assert freqtrade.handle_stoploss_on_exchange(trade) is True
assert log_has('STOP_LOSS_LIMIT is hit for {}.'.format(trade), caplog)
assert trade.stoploss_order_id is None
assert trade.is_open is False
mocker.patch(
'freqtrade.exchange.Exchange.stoploss_limit',
side_effect=DependencyException()
)
freqtrade.handle_stoploss_on_exchange(trade)
assert log_has('Unable to place a stoploss order on exchange.', caplog)
assert trade.stoploss_order_id is None
# Fifth case: get_order returns InvalidOrder
# It should try to add stoploss order
trade.stoploss_order_id = 100
stoploss_limit.reset_mock()
mocker.patch('freqtrade.exchange.Exchange.get_order', side_effect=InvalidOrderException())
mocker.patch('freqtrade.exchange.Exchange.stoploss_limit', stoploss_limit)
freqtrade.handle_stoploss_on_exchange(trade)
assert stoploss_limit.call_count == 1
def test_handle_sle_cancel_cant_recreate(mocker, default_conf, fee, caplog,
markets, limit_buy_order, limit_sell_order) -> None:
# Sixth case: stoploss order was cancelled but couldn't create new one
patch_RPCManager(mocker)
patch_exchange(mocker)
mocker.patch.multiple(
'freqtrade.exchange.Exchange',
get_ticker=MagicMock(return_value={
'bid': 0.00001172,
'ask': 0.00001173,
'last': 0.00001172
}),
buy=MagicMock(return_value={'id': limit_buy_order['id']}),
sell=MagicMock(return_value={'id': limit_sell_order['id']}),
get_fee=fee,
markets=PropertyMock(return_value=markets),
get_order=MagicMock(return_value={'status': 'canceled'}),
stoploss_limit=MagicMock(side_effect=DependencyException()),
)
freqtrade = FreqtradeBot(default_conf)
patch_get_signal(freqtrade)
freqtrade.create_trades()
trade = Trade.query.first()
trade.is_open = True
trade.open_order_id = '12345'
trade.stoploss_order_id = 100
assert trade
assert freqtrade.handle_stoploss_on_exchange(trade) is False
assert log_has_re(r'Stoploss order was cancelled, but unable to recreate one.*', caplog)
assert trade.stoploss_order_id is None
assert trade.is_open is True
def test_create_stoploss_order_invalid_order(mocker, default_conf, caplog, fee,
markets, limit_buy_order, limit_sell_order):
rpc_mock = patch_RPCManager(mocker)
patch_exchange(mocker)
sell_mock = MagicMock(return_value={'id': limit_sell_order['id']})
mocker.patch.multiple(
'freqtrade.exchange.Exchange',
get_ticker=MagicMock(return_value={
'bid': 0.00001172,
'ask': 0.00001173,
'last': 0.00001172
}),
buy=MagicMock(return_value={'id': limit_buy_order['id']}),
sell=sell_mock,
get_fee=fee,
markets=PropertyMock(return_value=markets),
get_order=MagicMock(return_value={'status': 'canceled'}),
stoploss_limit=MagicMock(side_effect=InvalidOrderException()),
)
freqtrade = FreqtradeBot(default_conf)
patch_get_signal(freqtrade)
freqtrade.strategy.order_types['stoploss_on_exchange'] = True
freqtrade.create_trades()
trade = Trade.query.first()
caplog.clear()
freqtrade.create_stoploss_order(trade, 200, 199)
assert trade.stoploss_order_id is None
assert trade.sell_reason == SellType.EMERGENCY_SELL.value
assert log_has("Unable to place a stoploss order on exchange. ", caplog)
assert log_has("Selling the trade forcefully", caplog)
# Should call a market sell
assert sell_mock.call_count == 1
assert sell_mock.call_args[1]['ordertype'] == 'market'
assert sell_mock.call_args[1]['pair'] == trade.pair
assert sell_mock.call_args[1]['amount'] == trade.amount
# Rpc is sending first buy, then sell
assert rpc_mock.call_count == 2
assert rpc_mock.call_args_list[1][0][0]['sell_reason'] == SellType.EMERGENCY_SELL.value
assert rpc_mock.call_args_list[1][0][0]['order_type'] == 'market'
def test_handle_stoploss_on_exchange_trailing(mocker, default_conf, fee, caplog,
markets, limit_buy_order, limit_sell_order) -> None:
# When trailing stoploss is set
stoploss_limit = MagicMock(return_value={'id': 13434334})
patch_RPCManager(mocker)
patch_exchange(mocker)
mocker.patch.multiple(
'freqtrade.exchange.Exchange',
get_ticker=MagicMock(return_value={
'bid': 0.00001172,
'ask': 0.00001173,
'last': 0.00001172
}),
buy=MagicMock(return_value={'id': limit_buy_order['id']}),
sell=MagicMock(return_value={'id': limit_sell_order['id']}),
get_fee=fee,
markets=PropertyMock(return_value=markets),
stoploss_limit=stoploss_limit
)
# enabling TSL
default_conf['trailing_stop'] = True
# disabling ROI
default_conf['minimal_roi']['0'] = 999999999
freqtrade = FreqtradeBot(default_conf)
# enabling stoploss on exchange
freqtrade.strategy.order_types['stoploss_on_exchange'] = True
# setting stoploss
freqtrade.strategy.stoploss = -0.05
# setting stoploss_on_exchange_interval to 60 seconds
freqtrade.strategy.order_types['stoploss_on_exchange_interval'] = 60
patch_get_signal(freqtrade)
freqtrade.create_trades()
trade = Trade.query.first()
trade.is_open = True
trade.open_order_id = None
trade.stoploss_order_id = 100
stoploss_order_hanging = MagicMock(return_value={
'id': 100,
'status': 'open',
'type': 'stop_loss_limit',
'price': 3,
'average': 2,
'info': {
'stopPrice': '0.000011134'
}
})
mocker.patch('freqtrade.exchange.Exchange.get_order', stoploss_order_hanging)
# stoploss initially at 5%
assert freqtrade.handle_trade(trade) is False
assert freqtrade.handle_stoploss_on_exchange(trade) is False
# price jumped 2x
mocker.patch('freqtrade.exchange.Exchange.get_ticker', MagicMock(return_value={
'bid': 0.00002344,
'ask': 0.00002346,
'last': 0.00002344
}))
cancel_order_mock = MagicMock()
stoploss_order_mock = MagicMock()
mocker.patch('freqtrade.exchange.Exchange.cancel_order', cancel_order_mock)
mocker.patch('freqtrade.exchange.Exchange.stoploss_limit', stoploss_order_mock)
# stoploss should not be updated as the interval is 60 seconds
assert freqtrade.handle_trade(trade) is False
assert freqtrade.handle_stoploss_on_exchange(trade) is False
cancel_order_mock.assert_not_called()
stoploss_order_mock.assert_not_called()
assert freqtrade.handle_trade(trade) is False
assert trade.stop_loss == 0.00002344 * 0.95
# setting stoploss_on_exchange_interval to 0 seconds
freqtrade.strategy.order_types['stoploss_on_exchange_interval'] = 0
assert freqtrade.handle_stoploss_on_exchange(trade) is False
cancel_order_mock.assert_called_once_with(100, 'ETH/BTC')
stoploss_order_mock.assert_called_once_with(amount=85.25149190110828,
pair='ETH/BTC',
rate=0.00002344 * 0.95 * 0.99,
stop_price=0.00002344 * 0.95)
def test_handle_stoploss_on_exchange_trailing_error(mocker, default_conf, fee, caplog,
markets, limit_buy_order,
limit_sell_order) -> None:
# When trailing stoploss is set
stoploss_limit = MagicMock(return_value={'id': 13434334})
patch_exchange(mocker)
mocker.patch.multiple(
'freqtrade.exchange.Exchange',
get_ticker=MagicMock(return_value={
'bid': 0.00001172,
'ask': 0.00001173,
'last': 0.00001172
}),
buy=MagicMock(return_value={'id': limit_buy_order['id']}),
sell=MagicMock(return_value={'id': limit_sell_order['id']}),
get_fee=fee,
markets=PropertyMock(return_value=markets),
stoploss_limit=stoploss_limit
)
# enabling TSL
default_conf['trailing_stop'] = True
freqtrade = get_patched_freqtradebot(mocker, default_conf)
# enabling stoploss on exchange
freqtrade.strategy.order_types['stoploss_on_exchange'] = True
# setting stoploss
freqtrade.strategy.stoploss = -0.05
# setting stoploss_on_exchange_interval to 60 seconds
freqtrade.strategy.order_types['stoploss_on_exchange_interval'] = 60
patch_get_signal(freqtrade)
freqtrade.create_trades()
trade = Trade.query.first()
trade.is_open = True
trade.open_order_id = None
trade.stoploss_order_id = "abcd"
trade.stop_loss = 0.2
trade.stoploss_last_update = arrow.utcnow().shift(minutes=-601).datetime.replace(tzinfo=None)
stoploss_order_hanging = {
'id': "abcd",
'status': 'open',
'type': 'stop_loss_limit',
'price': 3,
'average': 2,
'info': {
'stopPrice': '0.1'
}
}
mocker.patch('freqtrade.exchange.Exchange.cancel_order', side_effect=InvalidOrderException())
mocker.patch('freqtrade.exchange.Exchange.get_order', stoploss_order_hanging)
freqtrade.handle_trailing_stoploss_on_exchange(trade, stoploss_order_hanging)
assert log_has_re(r"Could not cancel stoploss order abcd for pair ETH/BTC.*", caplog)
# Still try to create order
assert stoploss_limit.call_count == 1
# Fail creating stoploss order
caplog.clear()
cancel_mock = mocker.patch("freqtrade.exchange.Exchange.cancel_order", MagicMock())
mocker.patch("freqtrade.exchange.Exchange.stoploss_limit", side_effect=DependencyException())
freqtrade.handle_trailing_stoploss_on_exchange(trade, stoploss_order_hanging)
assert cancel_mock.call_count == 1
assert log_has_re(r"Could not create trailing stoploss order for pair ETH/BTC\..*", caplog)
def test_tsl_on_exchange_compatible_with_edge(mocker, edge_conf, fee, caplog,
markets, limit_buy_order, limit_sell_order) -> None:
# When trailing stoploss is set
stoploss_limit = MagicMock(return_value={'id': 13434334})
patch_RPCManager(mocker)
patch_exchange(mocker)
patch_edge(mocker)
edge_conf['max_open_trades'] = float('inf')
mocker.patch.multiple(
'freqtrade.exchange.Exchange',
get_ticker=MagicMock(return_value={
'bid': 0.00001172,
'ask': 0.00001173,
'last': 0.00001172
}),
buy=MagicMock(return_value={'id': limit_buy_order['id']}),
sell=MagicMock(return_value={'id': limit_sell_order['id']}),
get_fee=fee,
markets=PropertyMock(return_value=markets),
stoploss_limit=stoploss_limit
)
# enabling TSL
edge_conf['trailing_stop'] = True
edge_conf['trailing_stop_positive'] = 0.01
edge_conf['trailing_stop_positive_offset'] = 0.011
# disabling ROI
edge_conf['minimal_roi']['0'] = 999999999
freqtrade = FreqtradeBot(edge_conf)
# enabling stoploss on exchange
freqtrade.strategy.order_types['stoploss_on_exchange'] = True
# setting stoploss
freqtrade.strategy.stoploss = -0.02
# setting stoploss_on_exchange_interval to 0 seconds
freqtrade.strategy.order_types['stoploss_on_exchange_interval'] = 0
patch_get_signal(freqtrade)
freqtrade.active_pair_whitelist = freqtrade.edge.adjust(freqtrade.active_pair_whitelist)
freqtrade.create_trades()
trade = Trade.query.first()
trade.is_open = True
trade.open_order_id = None
trade.stoploss_order_id = 100
stoploss_order_hanging = MagicMock(return_value={
'id': 100,
'status': 'open',
'type': 'stop_loss_limit',
'price': 3,
'average': 2,
'info': {
'stopPrice': '0.000009384'
}
})
mocker.patch('freqtrade.exchange.Exchange.get_order', stoploss_order_hanging)
# stoploss initially at 20% as edge dictated it.
assert freqtrade.handle_trade(trade) is False
assert freqtrade.handle_stoploss_on_exchange(trade) is False
assert trade.stop_loss == 0.000009384
cancel_order_mock = MagicMock()
stoploss_order_mock = MagicMock()
mocker.patch('freqtrade.exchange.Exchange.cancel_order', cancel_order_mock)
mocker.patch('freqtrade.exchange.Exchange.stoploss_limit', stoploss_order_mock)
# price goes down 5%
mocker.patch('freqtrade.exchange.Exchange.get_ticker', MagicMock(return_value={
'bid': 0.00001172 * 0.95,
'ask': 0.00001173 * 0.95,
'last': 0.00001172 * 0.95
}))
assert freqtrade.handle_trade(trade) is False
assert freqtrade.handle_stoploss_on_exchange(trade) is False
# stoploss should remain the same
assert trade.stop_loss == 0.000009384
# stoploss on exchange should not be canceled
cancel_order_mock.assert_not_called()
# price jumped 2x
mocker.patch('freqtrade.exchange.Exchange.get_ticker', MagicMock(return_value={
'bid': 0.00002344,
'ask': 0.00002346,
'last': 0.00002344
}))
assert freqtrade.handle_trade(trade) is False
assert freqtrade.handle_stoploss_on_exchange(trade) is False
# stoploss should be set to 1% as trailing is on
assert trade.stop_loss == 0.00002344 * 0.99
cancel_order_mock.assert_called_once_with(100, 'NEO/BTC')
stoploss_order_mock.assert_called_once_with(amount=2131074.168797954,
pair='NEO/BTC',
rate=0.00002344 * 0.99 * 0.99,
stop_price=0.00002344 * 0.99)
def test_process_maybe_execute_buys(mocker, default_conf, caplog) -> None:
caplog.set_level(logging.DEBUG)
freqtrade = get_patched_freqtradebot(mocker, default_conf)
mocker.patch('freqtrade.freqtradebot.FreqtradeBot.create_trades', MagicMock(return_value=False))
freqtrade.process_maybe_execute_buys()
assert log_has('Found no buy signals for whitelisted currencies. Trying again...', caplog)
def test_process_maybe_execute_buys_exception(mocker, default_conf, caplog) -> None:
freqtrade = get_patched_freqtradebot(mocker, default_conf)
mocker.patch(
'freqtrade.freqtradebot.FreqtradeBot.create_trades',
MagicMock(side_effect=DependencyException)
)
freqtrade.process_maybe_execute_buys()
assert log_has('Unable to create trade: ', caplog)
def test_process_maybe_execute_sells(mocker, default_conf, limit_buy_order, caplog) -> None:
freqtrade = get_patched_freqtradebot(mocker, default_conf)
mocker.patch('freqtrade.freqtradebot.FreqtradeBot.handle_trade', MagicMock(return_value=True))
mocker.patch('freqtrade.exchange.Exchange.get_order', return_value=limit_buy_order)
mocker.patch('freqtrade.exchange.Exchange.get_trades_for_order', return_value=[])
mocker.patch('freqtrade.freqtradebot.FreqtradeBot.get_real_amount',
return_value=limit_buy_order['amount'])
trade = MagicMock()
trade.open_order_id = '123'
trade.open_fee = 0.001
trades = [trade]
assert not freqtrade.process_maybe_execute_sells(trades)
# Test amount not modified by fee-logic
assert not log_has(
'Applying fee to amount for Trade {} from 90.99181073 to 90.81'.format(trade), caplog
)
mocker.patch('freqtrade.freqtradebot.FreqtradeBot.get_real_amount', return_value=90.81)
# test amount modified by fee-logic
assert not freqtrade.process_maybe_execute_sells(trades)
def test_process_maybe_execute_sells_exception(mocker, default_conf,
limit_buy_order, caplog) -> None:
freqtrade = get_patched_freqtradebot(mocker, default_conf)
mocker.patch('freqtrade.exchange.Exchange.get_order', return_value=limit_buy_order)
trade = MagicMock()
trade.open_order_id = '123'
trade.open_fee = 0.001
trades = [trade]
# Test raise of DependencyException exception
mocker.patch(
'freqtrade.freqtradebot.FreqtradeBot.update_trade_state',
side_effect=DependencyException()
)
freqtrade.process_maybe_execute_sells(trades)
assert log_has('Unable to sell trade: ', caplog)
def test_update_trade_state(mocker, default_conf, limit_buy_order, caplog) -> None:
freqtrade = get_patched_freqtradebot(mocker, default_conf)
mocker.patch('freqtrade.freqtradebot.FreqtradeBot.handle_trade', MagicMock(return_value=True))
mocker.patch('freqtrade.exchange.Exchange.get_order', return_value=limit_buy_order)
mocker.patch('freqtrade.exchange.Exchange.get_trades_for_order', return_value=[])
mocker.patch('freqtrade.freqtradebot.FreqtradeBot.get_real_amount',
return_value=limit_buy_order['amount'])
trade = Trade()
# Mock session away
Trade.session = MagicMock()
trade.open_order_id = '123'
trade.open_fee = 0.001
# Add datetime explicitly since sqlalchemy defaults apply only once written to database
trade.open_date = arrow.utcnow().datetime
freqtrade.update_trade_state(trade)
# Test amount not modified by fee-logic
assert not log_has_re(r'Applying fee to .*', caplog)
assert trade.open_order_id is None
assert trade.amount == limit_buy_order['amount']
trade.open_order_id = '123'
mocker.patch('freqtrade.freqtradebot.FreqtradeBot.get_real_amount', return_value=90.81)
assert trade.amount != 90.81
# test amount modified by fee-logic
freqtrade.update_trade_state(trade)
assert trade.amount == 90.81
assert trade.open_order_id is None
trade.is_open = True
trade.open_order_id = None
# Assert we call handle_trade() if trade is feasible for execution
freqtrade.update_trade_state(trade)
assert log_has_re('Found open order for.*', caplog)
def test_update_trade_state_withorderdict(default_conf, trades_for_order, limit_buy_order, mocker):
mocker.patch('freqtrade.exchange.Exchange.get_trades_for_order', return_value=trades_for_order)
# get_order should not be called!!
mocker.patch('freqtrade.exchange.Exchange.get_order', MagicMock(side_effect=ValueError))
patch_exchange(mocker)
Trade.session = MagicMock()
amount = sum(x['amount'] for x in trades_for_order)
freqtrade = get_patched_freqtradebot(mocker, default_conf)
trade = Trade(
pair='LTC/ETH',
amount=amount,
exchange='binance',
open_rate=0.245441,
open_order_id="123456",
is_open=True,
)
freqtrade.update_trade_state(trade, limit_buy_order)
assert trade.amount != amount
assert trade.amount == limit_buy_order['amount']
def test_update_trade_state_withorderdict_rounding_fee(default_conf, trades_for_order,
limit_buy_order, mocker, caplog):
trades_for_order[0]['amount'] = limit_buy_order['amount'] + 1e-14
mocker.patch('freqtrade.exchange.Exchange.get_trades_for_order', return_value=trades_for_order)
# get_order should not be called!!
mocker.patch('freqtrade.exchange.Exchange.get_order', MagicMock(side_effect=ValueError))
patch_exchange(mocker)
Trade.session = MagicMock()
amount = sum(x['amount'] for x in trades_for_order)
freqtrade = get_patched_freqtradebot(mocker, default_conf)
trade = Trade(
pair='LTC/ETH',
amount=amount,
exchange='binance',
open_rate=0.245441,
open_order_id="123456",
is_open=True,
open_date=arrow.utcnow().datetime,
)
freqtrade.update_trade_state(trade, limit_buy_order)
assert trade.amount != amount
assert trade.amount == limit_buy_order['amount']
assert log_has_re(r'Applying fee on amount for .*', caplog)
def test_update_trade_state_exception(mocker, default_conf,
limit_buy_order, caplog) -> None:
freqtrade = get_patched_freqtradebot(mocker, default_conf)
mocker.patch('freqtrade.exchange.Exchange.get_order', return_value=limit_buy_order)
trade = MagicMock()
trade.open_order_id = '123'
trade.open_fee = 0.001
# Test raise of OperationalException exception
mocker.patch(
'freqtrade.freqtradebot.FreqtradeBot.get_real_amount',
side_effect=DependencyException()
)
freqtrade.update_trade_state(trade)
assert log_has('Could not update trade amount: ', caplog)
def test_update_trade_state_orderexception(mocker, default_conf, caplog) -> None:
freqtrade = get_patched_freqtradebot(mocker, default_conf)
mocker.patch('freqtrade.exchange.Exchange.get_order',
MagicMock(side_effect=InvalidOrderException))
trade = MagicMock()
trade.open_order_id = '123'
trade.open_fee = 0.001
# Test raise of OperationalException exception
grm_mock = mocker.patch("freqtrade.freqtradebot.FreqtradeBot.get_real_amount", MagicMock())
freqtrade.update_trade_state(trade)
assert grm_mock.call_count == 0
assert log_has(f'Unable to fetch order {trade.open_order_id}: ', caplog)
def test_update_trade_state_sell(default_conf, trades_for_order, limit_sell_order, mocker):
mocker.patch('freqtrade.exchange.Exchange.get_trades_for_order', return_value=trades_for_order)
# get_order should not be called!!
mocker.patch('freqtrade.exchange.Exchange.get_order', MagicMock(side_effect=ValueError))
wallet_mock = MagicMock()
mocker.patch('freqtrade.wallets.Wallets.update', wallet_mock)
patch_exchange(mocker)
Trade.session = MagicMock()
amount = limit_sell_order["amount"]
freqtrade = get_patched_freqtradebot(mocker, default_conf)
wallet_mock.reset_mock()
trade = Trade(
pair='LTC/ETH',
amount=amount,
exchange='binance',
open_rate=0.245441,
fee_open=0.0025,
fee_close=0.0025,
open_order_id="123456",
is_open=True,
)
freqtrade.update_trade_state(trade, limit_sell_order)
assert trade.amount == limit_sell_order['amount']
# Wallet needs to be updated after closing a limit-sell order to reenable buying
assert wallet_mock.call_count == 1
assert not trade.is_open
def test_handle_trade(default_conf, limit_buy_order, limit_sell_order,
fee, markets, mocker) -> None:
patch_RPCManager(mocker)
patch_exchange(mocker)
mocker.patch.multiple(
'freqtrade.exchange.Exchange',
get_ticker=MagicMock(return_value={
'bid': 0.00001172,
'ask': 0.00001173,
'last': 0.00001172
}),
buy=MagicMock(return_value={'id': limit_buy_order['id']}),
sell=MagicMock(return_value={'id': limit_sell_order['id']}),
get_fee=fee,
markets=PropertyMock(return_value=markets)
)
freqtrade = FreqtradeBot(default_conf)
patch_get_signal(freqtrade)
freqtrade.create_trades()
trade = Trade.query.first()
assert trade
time.sleep(0.01) # Race condition fix
trade.update(limit_buy_order)
assert trade.is_open is True
patch_get_signal(freqtrade, value=(False, True))
assert freqtrade.handle_trade(trade) is True
assert trade.open_order_id == limit_sell_order['id']
# Simulate fulfilled LIMIT_SELL order for trade
trade.update(limit_sell_order)
assert trade.close_rate == 0.00001173
assert trade.close_profit == 0.06201058
assert trade.calc_profit() == 0.00006217
assert trade.close_date is not None
def test_handle_overlpapping_signals(default_conf, ticker, limit_buy_order,
fee, markets, mocker) -> None:
patch_RPCManager(mocker)
patch_exchange(mocker)
mocker.patch.multiple(
'freqtrade.exchange.Exchange',
get_ticker=ticker,
buy=MagicMock(return_value={'id': limit_buy_order['id']}),
get_fee=fee,
markets=PropertyMock(return_value=markets)
)
freqtrade = FreqtradeBot(default_conf)
patch_get_signal(freqtrade, value=(True, True))
freqtrade.strategy.min_roi_reached = MagicMock(return_value=False)
freqtrade.create_trades()
# Buy and Sell triggering, so doing nothing ...
trades = Trade.query.all()
nb_trades = len(trades)
assert nb_trades == 0
# Buy is triggering, so buying ...
patch_get_signal(freqtrade, value=(True, False))
freqtrade.create_trades()
trades = Trade.query.all()
nb_trades = len(trades)
assert nb_trades == 1
assert trades[0].is_open is True
# Buy and Sell are not triggering, so doing nothing ...
patch_get_signal(freqtrade, value=(False, False))
assert freqtrade.handle_trade(trades[0]) is False
trades = Trade.query.all()
nb_trades = len(trades)
assert nb_trades == 1
assert trades[0].is_open is True
# Buy and Sell are triggering, so doing nothing ...
patch_get_signal(freqtrade, value=(True, True))
assert freqtrade.handle_trade(trades[0]) is False
trades = Trade.query.all()
nb_trades = len(trades)
assert nb_trades == 1
assert trades[0].is_open is True
# Sell is triggering, guess what : we are Selling!
patch_get_signal(freqtrade, value=(False, True))
trades = Trade.query.all()
assert freqtrade.handle_trade(trades[0]) is True
def test_handle_trade_roi(default_conf, ticker, limit_buy_order,
fee, mocker, markets, caplog) -> None:
caplog.set_level(logging.DEBUG)
patch_RPCManager(mocker)
patch_exchange(mocker)
mocker.patch.multiple(
'freqtrade.exchange.Exchange',
get_ticker=ticker,
buy=MagicMock(return_value={'id': limit_buy_order['id']}),
get_fee=fee,
markets=PropertyMock(return_value=markets)
)
freqtrade = FreqtradeBot(default_conf)
patch_get_signal(freqtrade, value=(True, False))
freqtrade.strategy.min_roi_reached = MagicMock(return_value=True)
freqtrade.create_trades()
trade = Trade.query.first()
trade.is_open = True
# FIX: sniffing logs, suggest handle_trade should not execute_sell
# instead that responsibility should be moved out of handle_trade(),
# we might just want to check if we are in a sell condition without
# executing
# if ROI is reached we must sell
patch_get_signal(freqtrade, value=(False, True))
assert freqtrade.handle_trade(trade)
assert log_has("ETH/BTC - Required profit reached. sell_flag=True, sell_type=SellType.ROI",
caplog)
def test_handle_trade_use_sell_signal(
default_conf, ticker, limit_buy_order, fee, mocker, markets, caplog) -> None:
# use_sell_signal is True buy default
caplog.set_level(logging.DEBUG)
patch_RPCManager(mocker)
patch_exchange(mocker)
mocker.patch.multiple(
'freqtrade.exchange.Exchange',
get_ticker=ticker,
buy=MagicMock(return_value={'id': limit_buy_order['id']}),
get_fee=fee,
markets=PropertyMock(return_value=markets)
)
freqtrade = FreqtradeBot(default_conf)
patch_get_signal(freqtrade)
freqtrade.strategy.min_roi_reached = MagicMock(return_value=False)
freqtrade.create_trades()
trade = Trade.query.first()
trade.is_open = True
patch_get_signal(freqtrade, value=(False, False))
assert not freqtrade.handle_trade(trade)
patch_get_signal(freqtrade, value=(False, True))
assert freqtrade.handle_trade(trade)
assert log_has("ETH/BTC - Sell signal received. sell_flag=True, sell_type=SellType.SELL_SIGNAL",
caplog)
def test_close_trade(default_conf, ticker, limit_buy_order, limit_sell_order,
fee, markets, mocker) -> None:
patch_RPCManager(mocker)
patch_exchange(mocker)
mocker.patch.multiple(
'freqtrade.exchange.Exchange',
get_ticker=ticker,
buy=MagicMock(return_value={'id': limit_buy_order['id']}),
get_fee=fee,
markets=PropertyMock(return_value=markets)
)
freqtrade = FreqtradeBot(default_conf)
patch_get_signal(freqtrade)
# Create trade and sell it
freqtrade.create_trades()
trade = Trade.query.first()
assert trade
trade.update(limit_buy_order)
trade.update(limit_sell_order)
assert trade.is_open is False
with pytest.raises(DependencyException, match=r'.*closed trade.*'):
freqtrade.handle_trade(trade)
def test_check_handle_timedout_buy(default_conf, ticker, limit_buy_order_old, open_trade,
fee, mocker) -> None:
rpc_mock = patch_RPCManager(mocker)
cancel_order_mock = MagicMock()
patch_exchange(mocker)
mocker.patch.multiple(
'freqtrade.exchange.Exchange',
get_ticker=ticker,
get_order=MagicMock(return_value=limit_buy_order_old),
cancel_order=cancel_order_mock,
get_fee=fee
)
freqtrade = FreqtradeBot(default_conf)
Trade.session.add(open_trade)
# check it does cancel buy orders over the time limit
freqtrade.check_handle_timedout()
assert cancel_order_mock.call_count == 1
assert rpc_mock.call_count == 1
trades = Trade.query.filter(Trade.open_order_id.is_(open_trade.open_order_id)).all()
nb_trades = len(trades)
assert nb_trades == 0
def test_check_handle_cancelled_buy(default_conf, ticker, limit_buy_order_old, open_trade,
fee, mocker, caplog) -> None:
""" Handle Buy order cancelled on exchange"""
rpc_mock = patch_RPCManager(mocker)
cancel_order_mock = MagicMock()
patch_exchange(mocker)
limit_buy_order_old.update({"status": "canceled"})
mocker.patch.multiple(
'freqtrade.exchange.Exchange',
get_ticker=ticker,
get_order=MagicMock(return_value=limit_buy_order_old),
cancel_order=cancel_order_mock,
get_fee=fee
)
freqtrade = FreqtradeBot(default_conf)
Trade.session.add(open_trade)
# check it does cancel buy orders over the time limit
freqtrade.check_handle_timedout()
assert cancel_order_mock.call_count == 0
assert rpc_mock.call_count == 1
trades = Trade.query.filter(Trade.open_order_id.is_(open_trade.open_order_id)).all()
nb_trades = len(trades)
assert nb_trades == 0
assert log_has_re("Buy order canceled on Exchange for Trade.*", caplog)
def test_check_handle_timedout_buy_exception(default_conf, ticker, limit_buy_order_old, open_trade,
fee, mocker) -> None:
rpc_mock = patch_RPCManager(mocker)
cancel_order_mock = MagicMock()
patch_exchange(mocker)
mocker.patch.multiple(
'freqtrade.exchange.Exchange',
validate_pairs=MagicMock(),
get_ticker=ticker,
get_order=MagicMock(side_effect=DependencyException),
cancel_order=cancel_order_mock,
get_fee=fee
)
freqtrade = FreqtradeBot(default_conf)
Trade.session.add(open_trade)
# check it does cancel buy orders over the time limit
freqtrade.check_handle_timedout()
assert cancel_order_mock.call_count == 0
assert rpc_mock.call_count == 0
trades = Trade.query.filter(Trade.open_order_id.is_(open_trade.open_order_id)).all()
nb_trades = len(trades)
assert nb_trades == 1
def test_check_handle_timedout_sell(default_conf, ticker, limit_sell_order_old, mocker,
open_trade) -> None:
rpc_mock = patch_RPCManager(mocker)
cancel_order_mock = MagicMock()
patch_exchange(mocker)
mocker.patch.multiple(
'freqtrade.exchange.Exchange',
get_ticker=ticker,
get_order=MagicMock(return_value=limit_sell_order_old),
cancel_order=cancel_order_mock
)
freqtrade = FreqtradeBot(default_conf)
open_trade.open_date = arrow.utcnow().shift(hours=-5).datetime
open_trade.close_date = arrow.utcnow().shift(minutes=-601).datetime
open_trade.is_open = False
Trade.session.add(open_trade)
# check it does cancel sell orders over the time limit
freqtrade.check_handle_timedout()
assert cancel_order_mock.call_count == 1
assert rpc_mock.call_count == 1
assert open_trade.is_open is True
def test_check_handle_cancelled_sell(default_conf, ticker, limit_sell_order_old, open_trade,
mocker, caplog) -> None:
""" Handle sell order cancelled on exchange"""
rpc_mock = patch_RPCManager(mocker)
cancel_order_mock = MagicMock()
limit_sell_order_old.update({"status": "canceled"})
patch_exchange(mocker)
mocker.patch.multiple(
'freqtrade.exchange.Exchange',
get_ticker=ticker,
get_order=MagicMock(return_value=limit_sell_order_old),
cancel_order=cancel_order_mock
)
freqtrade = FreqtradeBot(default_conf)
open_trade.open_date = arrow.utcnow().shift(hours=-5).datetime
open_trade.close_date = arrow.utcnow().shift(minutes=-601).datetime
open_trade.is_open = False
Trade.session.add(open_trade)
# check it does cancel sell orders over the time limit
freqtrade.check_handle_timedout()
assert cancel_order_mock.call_count == 0
assert rpc_mock.call_count == 1
assert open_trade.is_open is True
assert log_has_re("Sell order canceled on exchange for Trade.*", caplog)
def test_check_handle_timedout_partial(default_conf, ticker, limit_buy_order_old_partial,
open_trade, mocker) -> None:
rpc_mock = patch_RPCManager(mocker)
cancel_order_mock = MagicMock(return_value=limit_buy_order_old_partial)
patch_exchange(mocker)
mocker.patch.multiple(
'freqtrade.exchange.Exchange',
get_ticker=ticker,
get_order=MagicMock(return_value=limit_buy_order_old_partial),
cancel_order=cancel_order_mock
)
freqtrade = FreqtradeBot(default_conf)
Trade.session.add(open_trade)
# check it does cancel buy orders over the time limit
# note this is for a partially-complete buy order
freqtrade.check_handle_timedout()
assert cancel_order_mock.call_count == 1
assert rpc_mock.call_count == 1
trades = Trade.query.filter(Trade.open_order_id.is_(open_trade.open_order_id)).all()
assert len(trades) == 1
assert trades[0].amount == 23.0
assert trades[0].stake_amount == open_trade.open_rate * trades[0].amount
def test_check_handle_timedout_partial_fee(default_conf, ticker, open_trade, caplog, fee,
limit_buy_order_old_partial, trades_for_order,
limit_buy_order_old_partial_canceled, mocker) -> None:
rpc_mock = patch_RPCManager(mocker)
cancel_order_mock = MagicMock(return_value=limit_buy_order_old_partial_canceled)
patch_exchange(mocker)
mocker.patch.multiple(
'freqtrade.exchange.Exchange',
get_ticker=ticker,
get_order=MagicMock(return_value=limit_buy_order_old_partial),
cancel_order=cancel_order_mock,
get_trades_for_order=MagicMock(return_value=trades_for_order),
)
freqtrade = FreqtradeBot(default_conf)
assert open_trade.amount == limit_buy_order_old_partial['amount']
open_trade.fee_open = fee()
open_trade.fee_close = fee()
Trade.session.add(open_trade)
# cancelling a half-filled order should update the amount to the bought amount
# and apply fees if necessary.
freqtrade.check_handle_timedout()
assert log_has_re(r"Applying fee on amount for Trade.* Order", caplog)
assert cancel_order_mock.call_count == 1
assert rpc_mock.call_count == 1
trades = Trade.query.filter(Trade.open_order_id.is_(open_trade.open_order_id)).all()
assert len(trades) == 1
# Verify that tradehas been updated
assert trades[0].amount == (limit_buy_order_old_partial['amount'] -
limit_buy_order_old_partial['remaining']) - 0.0001
assert trades[0].open_order_id is None
assert trades[0].fee_open == 0
def test_check_handle_timedout_partial_except(default_conf, ticker, open_trade, caplog, fee,
limit_buy_order_old_partial, trades_for_order,
limit_buy_order_old_partial_canceled, mocker) -> None:
rpc_mock = patch_RPCManager(mocker)
cancel_order_mock = MagicMock(return_value=limit_buy_order_old_partial_canceled)
patch_exchange(mocker)
mocker.patch.multiple(
'freqtrade.exchange.Exchange',
get_ticker=ticker,
get_order=MagicMock(return_value=limit_buy_order_old_partial),
cancel_order=cancel_order_mock,
get_trades_for_order=MagicMock(return_value=trades_for_order),
)
mocker.patch('freqtrade.freqtradebot.FreqtradeBot.get_real_amount',
MagicMock(side_effect=DependencyException))
freqtrade = FreqtradeBot(default_conf)
assert open_trade.amount == limit_buy_order_old_partial['amount']
open_trade.fee_open = fee()
open_trade.fee_close = fee()
Trade.session.add(open_trade)
# cancelling a half-filled order should update the amount to the bought amount
# and apply fees if necessary.
freqtrade.check_handle_timedout()
assert log_has_re(r"Could not update trade amount: .*", caplog)
assert cancel_order_mock.call_count == 1
assert rpc_mock.call_count == 1
trades = Trade.query.filter(Trade.open_order_id.is_(open_trade.open_order_id)).all()
assert len(trades) == 1
# Verify that tradehas been updated
assert trades[0].amount == (limit_buy_order_old_partial['amount'] -
limit_buy_order_old_partial['remaining'])
assert trades[0].open_order_id is None
assert trades[0].fee_open == fee()
def test_check_handle_timedout_exception(default_conf, ticker, open_trade, mocker, caplog) -> None:
patch_RPCManager(mocker)
patch_exchange(mocker)
cancel_order_mock = MagicMock()
mocker.patch.multiple(
'freqtrade.freqtradebot.FreqtradeBot',
handle_timedout_limit_buy=MagicMock(),
handle_timedout_limit_sell=MagicMock(),
)
mocker.patch.multiple(
'freqtrade.exchange.Exchange',
get_ticker=ticker,
get_order=MagicMock(side_effect=requests.exceptions.RequestException('Oh snap')),
cancel_order=cancel_order_mock
)
freqtrade = FreqtradeBot(default_conf)
Trade.session.add(open_trade)
freqtrade.check_handle_timedout()
assert log_has_re(r"Cannot query order for Trade\(id=1, pair=ETH/BTC, amount=90.99181073, "
r"open_rate=0.00001099, open_since="
f"{open_trade.open_date.strftime('%Y-%m-%d %H:%M:%S')}"
r"\) due to Traceback \(most recent call last\):\n*",
caplog)
def test_handle_timedout_limit_buy(mocker, default_conf, limit_buy_order) -> None:
patch_RPCManager(mocker)
patch_exchange(mocker)
cancel_order_mock = MagicMock(return_value=limit_buy_order)
mocker.patch.multiple(
'freqtrade.exchange.Exchange',
cancel_order=cancel_order_mock
)
freqtrade = FreqtradeBot(default_conf)
Trade.session = MagicMock()
trade = MagicMock()
limit_buy_order['remaining'] = limit_buy_order['amount']
assert freqtrade.handle_timedout_limit_buy(trade, limit_buy_order)
assert cancel_order_mock.call_count == 1
cancel_order_mock.reset_mock()
limit_buy_order['amount'] = 2
assert not freqtrade.handle_timedout_limit_buy(trade, limit_buy_order)
assert cancel_order_mock.call_count == 1
def test_handle_timedout_limit_sell(mocker, default_conf) -> None:
patch_RPCManager(mocker)
patch_exchange(mocker)
cancel_order_mock = MagicMock()
mocker.patch.multiple(
'freqtrade.exchange.Exchange',
cancel_order=cancel_order_mock
)
freqtrade = FreqtradeBot(default_conf)
trade = MagicMock()
order = {'remaining': 1,
'amount': 1,
'status': "open"}
assert freqtrade.handle_timedout_limit_sell(trade, order)
assert cancel_order_mock.call_count == 1
order['amount'] = 2
assert not freqtrade.handle_timedout_limit_sell(trade, order)
# Assert cancel_order was not called (callcount remains unchanged)
assert cancel_order_mock.call_count == 1
def test_execute_sell_up(default_conf, ticker, fee, ticker_sell_up, markets, mocker) -> None:
rpc_mock = patch_RPCManager(mocker)
patch_exchange(mocker)
mocker.patch.multiple(
'freqtrade.exchange.Exchange',
get_ticker=ticker,
get_fee=fee,
markets=PropertyMock(return_value=markets)
)
freqtrade = FreqtradeBot(default_conf)
patch_get_signal(freqtrade)
# Create some test data
freqtrade.create_trades()
trade = Trade.query.first()
assert trade
# Increase the price and sell it
mocker.patch.multiple(
'freqtrade.exchange.Exchange',
get_ticker=ticker_sell_up
)
freqtrade.execute_sell(trade=trade, limit=ticker_sell_up()['bid'], sell_reason=SellType.ROI)
assert rpc_mock.call_count == 2
last_msg = rpc_mock.call_args_list[-1][0][0]
assert {
'type': RPCMessageType.SELL_NOTIFICATION,
'exchange': 'Bittrex',
'pair': 'ETH/BTC',
'gain': 'profit',
'limit': 1.172e-05,
'amount': 90.99181073703367,
'order_type': 'limit',
'open_rate': 1.099e-05,
'current_rate': 1.172e-05,
'profit_amount': 6.126e-05,
'profit_percent': 0.0611052,
'stake_currency': 'BTC',
'fiat_currency': 'USD',
'sell_reason': SellType.ROI.value
} == last_msg
def test_execute_sell_down(default_conf, ticker, fee, ticker_sell_down, markets, mocker) -> None:
rpc_mock = patch_RPCManager(mocker)
patch_exchange(mocker)
mocker.patch.multiple(
'freqtrade.exchange.Exchange',
get_ticker=ticker,
get_fee=fee,
markets=PropertyMock(return_value=markets)
)
freqtrade = FreqtradeBot(default_conf)
patch_get_signal(freqtrade)
# Create some test data
freqtrade.create_trades()
trade = Trade.query.first()
assert trade
# Decrease the price and sell it
mocker.patch.multiple(
'freqtrade.exchange.Exchange',
get_ticker=ticker_sell_down
)
freqtrade.execute_sell(trade=trade, limit=ticker_sell_down()['bid'],
sell_reason=SellType.STOP_LOSS)
assert rpc_mock.call_count == 2
last_msg = rpc_mock.call_args_list[-1][0][0]
assert {
'type': RPCMessageType.SELL_NOTIFICATION,
'exchange': 'Bittrex',
'pair': 'ETH/BTC',
'gain': 'loss',
'limit': 1.044e-05,
'amount': 90.99181073703367,
'order_type': 'limit',
'open_rate': 1.099e-05,
'current_rate': 1.044e-05,
'profit_amount': -5.492e-05,
'profit_percent': -0.05478342,
'stake_currency': 'BTC',
'fiat_currency': 'USD',
'sell_reason': SellType.STOP_LOSS.value
} == last_msg
def test_execute_sell_down_stoploss_on_exchange_dry_run(default_conf, ticker, fee,
ticker_sell_down,
markets, mocker) -> None:
rpc_mock = patch_RPCManager(mocker)
patch_exchange(mocker)
mocker.patch.multiple(
'freqtrade.exchange.Exchange',
get_ticker=ticker,
get_fee=fee,
markets=PropertyMock(return_value=markets)
)
freqtrade = FreqtradeBot(default_conf)
patch_get_signal(freqtrade)
# Create some test data
freqtrade.create_trades()
trade = Trade.query.first()
assert trade
# Decrease the price and sell it
mocker.patch.multiple(
'freqtrade.exchange.Exchange',
get_ticker=ticker_sell_down
)
default_conf['dry_run'] = True
freqtrade.strategy.order_types['stoploss_on_exchange'] = True
# Setting trade stoploss to 0.01
trade.stop_loss = 0.00001099 * 0.99
freqtrade.execute_sell(trade=trade, limit=ticker_sell_down()['bid'],
sell_reason=SellType.STOP_LOSS)
assert rpc_mock.call_count == 2
last_msg = rpc_mock.call_args_list[-1][0][0]
assert {
'type': RPCMessageType.SELL_NOTIFICATION,
'exchange': 'Bittrex',
'pair': 'ETH/BTC',
'gain': 'loss',
'limit': 1.08801e-05,
'amount': 90.99181073703367,
'order_type': 'limit',
'open_rate': 1.099e-05,
'current_rate': 1.044e-05,
'profit_amount': -1.498e-05,
'profit_percent': -0.01493766,
'stake_currency': 'BTC',
'fiat_currency': 'USD',
'sell_reason': SellType.STOP_LOSS.value
} == last_msg
def test_execute_sell_sloe_cancel_exception(mocker, default_conf, ticker, fee,
markets, caplog) -> None:
freqtrade = get_patched_freqtradebot(mocker, default_conf)
mocker.patch('freqtrade.exchange.Exchange.cancel_order', side_effect=InvalidOrderException())
sellmock = MagicMock()
patch_exchange(mocker)
mocker.patch.multiple(
'freqtrade.exchange.Exchange',
get_ticker=ticker,
get_fee=fee,
markets=PropertyMock(return_value=markets),
sell=sellmock
)
freqtrade.strategy.order_types['stoploss_on_exchange'] = True
patch_get_signal(freqtrade)
freqtrade.create_trades()
trade = Trade.query.first()
Trade.session = MagicMock()
freqtrade.config['dry_run'] = False
trade.stoploss_order_id = "abcd"
freqtrade.execute_sell(trade=trade, limit=1234,
sell_reason=SellType.STOP_LOSS)
assert sellmock.call_count == 1
assert log_has('Could not cancel stoploss order abcd', caplog)
def test_execute_sell_with_stoploss_on_exchange(default_conf,
ticker, fee, ticker_sell_up,
markets, mocker) -> None:
default_conf['exchange']['name'] = 'binance'
rpc_mock = patch_RPCManager(mocker)
patch_exchange(mocker)
stoploss_limit = MagicMock(return_value={
'id': 123,
'info': {
'foo': 'bar'
}
})
cancel_order = MagicMock(return_value=True)
mocker.patch.multiple(
'freqtrade.exchange.Exchange',
get_ticker=ticker,
get_fee=fee,
markets=PropertyMock(return_value=markets),
symbol_amount_prec=lambda s, x, y: y,
symbol_price_prec=lambda s, x, y: y,
stoploss_limit=stoploss_limit,
cancel_order=cancel_order,
)
freqtrade = FreqtradeBot(default_conf)
freqtrade.strategy.order_types['stoploss_on_exchange'] = True
patch_get_signal(freqtrade)
# Create some test data
freqtrade.create_trades()
trade = Trade.query.first()
assert trade
trades = [trade]
freqtrade.process_maybe_execute_sells(trades)
# Increase the price and sell it
mocker.patch.multiple(
'freqtrade.exchange.Exchange',
get_ticker=ticker_sell_up
)
freqtrade.execute_sell(trade=trade, limit=ticker_sell_up()['bid'],
sell_reason=SellType.SELL_SIGNAL)
trade = Trade.query.first()
assert trade
assert cancel_order.call_count == 1
assert rpc_mock.call_count == 2
def test_may_execute_sell_after_stoploss_on_exchange_hit(default_conf,
ticker, fee,
limit_buy_order,
markets, mocker) -> None:
default_conf['exchange']['name'] = 'binance'
rpc_mock = patch_RPCManager(mocker)
patch_exchange(mocker)
mocker.patch.multiple(
'freqtrade.exchange.Exchange',
get_ticker=ticker,
get_fee=fee,
markets=PropertyMock(return_value=markets),
symbol_amount_prec=lambda s, x, y: y,
symbol_price_prec=lambda s, x, y: y,
)
stoploss_limit = MagicMock(return_value={
'id': 123,
'info': {
'foo': 'bar'
}
})
mocker.patch('freqtrade.exchange.Binance.stoploss_limit', stoploss_limit)
freqtrade = FreqtradeBot(default_conf)
freqtrade.strategy.order_types['stoploss_on_exchange'] = True
patch_get_signal(freqtrade)
# Create some test data
freqtrade.create_trades()
trade = Trade.query.first()
trades = [trade]
freqtrade.process_maybe_execute_sells(trades)
assert trade
assert trade.stoploss_order_id == '123'
assert trade.open_order_id is None
# Assuming stoploss on exchnage is hit
# stoploss_order_id should become None
# and trade should be sold at the price of stoploss
stoploss_limit_executed = MagicMock(return_value={
"id": "123",
"timestamp": 1542707426845,
"datetime": "2018-11-20T09:50:26.845Z",
"lastTradeTimestamp": None,
"symbol": "BTC/USDT",
"type": "stop_loss_limit",
"side": "sell",
"price": 1.08801,
"amount": 90.99181074,
"cost": 99.0000000032274,
"average": 1.08801,
"filled": 90.99181074,
"remaining": 0.0,
"status": "closed",
"fee": None,
"trades": None
})
mocker.patch('freqtrade.exchange.Exchange.get_order', stoploss_limit_executed)
freqtrade.process_maybe_execute_sells(trades)
assert trade.stoploss_order_id is None
assert trade.is_open is False
assert trade.sell_reason == SellType.STOPLOSS_ON_EXCHANGE.value
assert rpc_mock.call_count == 2
def test_may_execute_sell_stoploss_on_exchange_multi(default_conf,
ticker, fee,
limit_buy_order,
markets, mocker) -> None:
"""
Tests workflow of selling stoploss_on_exchange.
Sells
* first trade as stoploss
* 2nd trade is kept
* 3rd trade is sold via sell-signal
"""
default_conf['max_open_trades'] = 3
default_conf['exchange']['name'] = 'binance'
patch_RPCManager(mocker)
patch_exchange(mocker)
stoploss_limit = {
'id': 123,
'info': {}
}
stoploss_order_open = {
"id": "123",
"timestamp": 1542707426845,
"datetime": "2018-11-20T09:50:26.845Z",
"lastTradeTimestamp": None,
"symbol": "BTC/USDT",
"type": "stop_loss_limit",
"side": "sell",
"price": 1.08801,
"amount": 90.99181074,
"cost": 0.0,
"average": 0.0,
"filled": 0.0,
"remaining": 0.0,
"status": "open",
"fee": None,
"trades": None
}
stoploss_order_closed = stoploss_order_open.copy()
stoploss_order_closed['status'] = 'closed'
# Sell first trade based on stoploss, keep 2nd and 3rd trade open
stoploss_order_mock = MagicMock(
side_effect=[stoploss_order_closed, stoploss_order_open, stoploss_order_open])
# Sell 3rd trade (not called for the first trade)
should_sell_mock = MagicMock(side_effect=[
SellCheckTuple(sell_flag=False, sell_type=SellType.NONE),
SellCheckTuple(sell_flag=True, sell_type=SellType.SELL_SIGNAL)]
)
cancel_order_mock = MagicMock()
mocker.patch('freqtrade.exchange.Binance.stoploss_limit', stoploss_limit)
mocker.patch.multiple(
'freqtrade.exchange.Exchange',
get_ticker=ticker,
get_fee=fee,
markets=PropertyMock(return_value=markets),
symbol_amount_prec=lambda s, x, y: y,
symbol_price_prec=lambda s, x, y: y,
get_order=stoploss_order_mock,
cancel_order=cancel_order_mock,
)
wallets_mock = MagicMock()
mocker.patch.multiple(
'freqtrade.freqtradebot.FreqtradeBot',
create_stoploss_order=MagicMock(return_value=True),
update_trade_state=MagicMock(),
_notify_sell=MagicMock(),
)
mocker.patch("freqtrade.strategy.interface.IStrategy.should_sell", should_sell_mock)
mocker.patch("freqtrade.wallets.Wallets.update", wallets_mock)
freqtrade = FreqtradeBot(default_conf)
freqtrade.strategy.order_types['stoploss_on_exchange'] = True
# Switch ordertype to market to close trade immediately
freqtrade.strategy.order_types['sell'] = 'market'
patch_get_signal(freqtrade)
# Create some test data
freqtrade.create_trades()
wallets_mock.reset_mock()
Trade.session = MagicMock()
trades = Trade.query.all()
# Make sure stoploss-order is open and trade is bought (since we mock update_trade_state)
for trade in trades:
trade.stoploss_order_id = 3
trade.open_order_id = None
freqtrade.process_maybe_execute_sells(trades)
assert should_sell_mock.call_count == 2
# Only order for 3rd trade needs to be cancelled
assert cancel_order_mock.call_count == 1
# Wallets should only be called once per sell cycle
assert wallets_mock.call_count == 1
trade = trades[0]
assert trade.sell_reason == SellType.STOPLOSS_ON_EXCHANGE.value
assert not trade.is_open
trade = trades[1]
assert not trade.sell_reason
assert trade.is_open
trade = trades[2]
assert trade.sell_reason == SellType.SELL_SIGNAL.value
assert not trade.is_open
def test_execute_sell_market_order(default_conf, ticker, fee,
ticker_sell_up, markets, mocker) -> None:
rpc_mock = patch_RPCManager(mocker)
patch_exchange(mocker)
mocker.patch.multiple(
'freqtrade.exchange.Exchange',
get_ticker=ticker,
get_fee=fee,
markets=PropertyMock(return_value=markets)
)
freqtrade = FreqtradeBot(default_conf)
patch_get_signal(freqtrade)
# Create some test data
freqtrade.create_trades()
trade = Trade.query.first()
assert trade
# Increase the price and sell it
mocker.patch.multiple(
'freqtrade.exchange.Exchange',
get_ticker=ticker_sell_up
)
freqtrade.config['order_types']['sell'] = 'market'
freqtrade.execute_sell(trade=trade, limit=ticker_sell_up()['bid'], sell_reason=SellType.ROI)
assert not trade.is_open
assert trade.close_profit == 0.0611052
assert rpc_mock.call_count == 2
last_msg = rpc_mock.call_args_list[-1][0][0]
assert {
'type': RPCMessageType.SELL_NOTIFICATION,
'exchange': 'Bittrex',
'pair': 'ETH/BTC',
'gain': 'profit',
'limit': 1.172e-05,
'amount': 90.99181073703367,
'order_type': 'market',
'open_rate': 1.099e-05,
'current_rate': 1.172e-05,
'profit_amount': 6.126e-05,
'profit_percent': 0.0611052,
'stake_currency': 'BTC',
'fiat_currency': 'USD',
'sell_reason': SellType.ROI.value
} == last_msg
def test_sell_profit_only_enable_profit(default_conf, limit_buy_order,
fee, markets, mocker) -> None:
patch_RPCManager(mocker)
patch_exchange(mocker)
mocker.patch.multiple(
'freqtrade.exchange.Exchange',
get_ticker=MagicMock(return_value={
'bid': 0.00002172,
'ask': 0.00002173,
'last': 0.00002172
}),
buy=MagicMock(return_value={'id': limit_buy_order['id']}),
get_fee=fee,
markets=PropertyMock(return_value=markets)
)
default_conf['ask_strategy'] = {
'use_sell_signal': True,
'sell_profit_only': True,
}
freqtrade = FreqtradeBot(default_conf)
patch_get_signal(freqtrade)
freqtrade.strategy.min_roi_reached = MagicMock(return_value=False)
freqtrade.create_trades()
trade = Trade.query.first()
trade.update(limit_buy_order)
patch_get_signal(freqtrade, value=(False, True))
assert freqtrade.handle_trade(trade) is True
assert trade.sell_reason == SellType.SELL_SIGNAL.value
def test_sell_profit_only_disable_profit(default_conf, limit_buy_order,
fee, markets, mocker) -> None:
patch_RPCManager(mocker)
patch_exchange(mocker)
mocker.patch.multiple(
'freqtrade.exchange.Exchange',
get_ticker=MagicMock(return_value={
'bid': 0.00002172,
'ask': 0.00002173,
'last': 0.00002172
}),
buy=MagicMock(return_value={'id': limit_buy_order['id']}),
get_fee=fee,
markets=PropertyMock(return_value=markets)
)
default_conf['ask_strategy'] = {
'use_sell_signal': True,
'sell_profit_only': False,
}
freqtrade = FreqtradeBot(default_conf)
patch_get_signal(freqtrade)
freqtrade.strategy.min_roi_reached = MagicMock(return_value=False)
freqtrade.create_trades()
trade = Trade.query.first()
trade.update(limit_buy_order)
patch_get_signal(freqtrade, value=(False, True))
assert freqtrade.handle_trade(trade) is True
assert trade.sell_reason == SellType.SELL_SIGNAL.value
def test_sell_profit_only_enable_loss(default_conf, limit_buy_order, fee, markets, mocker) -> None:
patch_RPCManager(mocker)
patch_exchange(mocker)
mocker.patch.multiple(
'freqtrade.exchange.Exchange',
get_ticker=MagicMock(return_value={
'bid': 0.00000172,
'ask': 0.00000173,
'last': 0.00000172
}),
buy=MagicMock(return_value={'id': limit_buy_order['id']}),
get_fee=fee,
markets=PropertyMock(return_value=markets)
)
default_conf['ask_strategy'] = {
'use_sell_signal': True,
'sell_profit_only': True,
}
freqtrade = FreqtradeBot(default_conf)
patch_get_signal(freqtrade)
freqtrade.strategy.stop_loss_reached = MagicMock(return_value=SellCheckTuple(
sell_flag=False, sell_type=SellType.NONE))
freqtrade.create_trades()
trade = Trade.query.first()
trade.update(limit_buy_order)
patch_get_signal(freqtrade, value=(False, True))
assert freqtrade.handle_trade(trade) is False
def test_sell_profit_only_disable_loss(default_conf, limit_buy_order, fee, markets, mocker) -> None:
patch_RPCManager(mocker)
patch_exchange(mocker)
mocker.patch.multiple(
'freqtrade.exchange.Exchange',
get_ticker=MagicMock(return_value={
'bid': 0.0000172,
'ask': 0.0000173,
'last': 0.0000172
}),
buy=MagicMock(return_value={'id': limit_buy_order['id']}),
get_fee=fee,
markets=PropertyMock(return_value=markets)
)
default_conf['ask_strategy'] = {
'use_sell_signal': True,
'sell_profit_only': False,
}
freqtrade = FreqtradeBot(default_conf)
patch_get_signal(freqtrade)
freqtrade.strategy.min_roi_reached = MagicMock(return_value=False)
freqtrade.create_trades()
trade = Trade.query.first()
trade.update(limit_buy_order)
patch_get_signal(freqtrade, value=(False, True))
assert freqtrade.handle_trade(trade) is True
assert trade.sell_reason == SellType.SELL_SIGNAL.value
def test_locked_pairs(default_conf, ticker, fee, ticker_sell_down, markets, mocker, caplog) -> None:
patch_RPCManager(mocker)
patch_exchange(mocker)
mocker.patch.multiple(
'freqtrade.exchange.Exchange',
get_ticker=ticker,
get_fee=fee,
markets=PropertyMock(return_value=markets)
)
freqtrade = FreqtradeBot(default_conf)
patch_get_signal(freqtrade)
# Create some test data
freqtrade.create_trades()
trade = Trade.query.first()
assert trade
# Decrease the price and sell it
mocker.patch.multiple(
'freqtrade.exchange.Exchange',
get_ticker=ticker_sell_down
)
freqtrade.execute_sell(trade=trade, limit=ticker_sell_down()['bid'],
sell_reason=SellType.STOP_LOSS)
trade.close(ticker_sell_down()['bid'])
assert trade.pair in freqtrade.strategy._pair_locked_until
assert freqtrade.strategy.is_pair_locked(trade.pair)
# reinit - should buy other pair.
caplog.clear()
freqtrade.create_trades()
assert log_has(f"Pair {trade.pair} is currently locked.", caplog)
def test_ignore_roi_if_buy_signal(default_conf, limit_buy_order, fee, markets, mocker) -> None:
patch_RPCManager(mocker)
patch_exchange(mocker)
mocker.patch.multiple(
'freqtrade.exchange.Exchange',
get_ticker=MagicMock(return_value={
'bid': 0.0000172,
'ask': 0.0000173,
'last': 0.0000172
}),
buy=MagicMock(return_value={'id': limit_buy_order['id']}),
get_fee=fee,
markets=PropertyMock(return_value=markets)
)
default_conf['ask_strategy'] = {
'ignore_roi_if_buy_signal': True
}
freqtrade = FreqtradeBot(default_conf)
patch_get_signal(freqtrade)
freqtrade.strategy.min_roi_reached = MagicMock(return_value=True)
freqtrade.create_trades()
trade = Trade.query.first()
trade.update(limit_buy_order)
patch_get_signal(freqtrade, value=(True, True))
assert freqtrade.handle_trade(trade) is False
# Test if buy-signal is absent (should sell due to roi = true)
patch_get_signal(freqtrade, value=(False, True))
assert freqtrade.handle_trade(trade) is True
assert trade.sell_reason == SellType.ROI.value
def test_trailing_stop_loss(default_conf, limit_buy_order, fee, markets, caplog, mocker) -> None:
patch_RPCManager(mocker)
patch_exchange(mocker)
mocker.patch.multiple(
'freqtrade.exchange.Exchange',
get_ticker=MagicMock(return_value={
'bid': 0.00001099,
'ask': 0.00001099,
'last': 0.00001099
}),
buy=MagicMock(return_value={'id': limit_buy_order['id']}),
get_fee=fee,
markets=PropertyMock(return_value=markets),
)
default_conf['trailing_stop'] = True
freqtrade = FreqtradeBot(default_conf)
patch_get_signal(freqtrade)
freqtrade.strategy.min_roi_reached = MagicMock(return_value=False)
freqtrade.create_trades()
trade = Trade.query.first()
assert freqtrade.handle_trade(trade) is False
# Raise ticker above buy price
mocker.patch('freqtrade.exchange.Exchange.get_ticker',
MagicMock(return_value={
'bid': 0.00001099 * 1.5,
'ask': 0.00001099 * 1.5,
'last': 0.00001099 * 1.5
}))
# Stoploss should be adjusted
assert freqtrade.handle_trade(trade) is False
# Price fell
mocker.patch('freqtrade.exchange.Exchange.get_ticker',
MagicMock(return_value={
'bid': 0.00001099 * 1.1,
'ask': 0.00001099 * 1.1,
'last': 0.00001099 * 1.1
}))
caplog.set_level(logging.DEBUG)
# Sell as trailing-stop is reached
assert freqtrade.handle_trade(trade) is True
assert log_has(
f"ETH/BTC - HIT STOP: current price at 0.000012, "
f"stoploss is 0.000015, "
f"initial stoploss was at 0.000010, trade opened at 0.000011", caplog)
assert trade.sell_reason == SellType.TRAILING_STOP_LOSS.value
def test_trailing_stop_loss_positive(default_conf, limit_buy_order, fee, markets,
caplog, mocker) -> None:
buy_price = limit_buy_order['price']
patch_RPCManager(mocker)
patch_exchange(mocker)
mocker.patch.multiple(
'freqtrade.exchange.Exchange',
get_ticker=MagicMock(return_value={
'bid': buy_price - 0.000001,
'ask': buy_price - 0.000001,
'last': buy_price - 0.000001
}),
buy=MagicMock(return_value={'id': limit_buy_order['id']}),
get_fee=fee,
markets=PropertyMock(return_value=markets),
)
default_conf['trailing_stop'] = True
default_conf['trailing_stop_positive'] = 0.01
freqtrade = FreqtradeBot(default_conf)
patch_get_signal(freqtrade)
freqtrade.strategy.min_roi_reached = MagicMock(return_value=False)
freqtrade.create_trades()
trade = Trade.query.first()
trade.update(limit_buy_order)
caplog.set_level(logging.DEBUG)
# stop-loss not reached
assert freqtrade.handle_trade(trade) is False
# Raise ticker above buy price
mocker.patch('freqtrade.exchange.Exchange.get_ticker',
MagicMock(return_value={
'bid': buy_price + 0.000003,
'ask': buy_price + 0.000003,
'last': buy_price + 0.000003
}))
# stop-loss not reached, adjusted stoploss
assert freqtrade.handle_trade(trade) is False
assert log_has(f"ETH/BTC - Using positive stoploss: 0.01 offset: 0 profit: 0.2666%", caplog)
assert log_has(f"ETH/BTC - Adjusting stoploss...", caplog)
assert trade.stop_loss == 0.0000138501
mocker.patch('freqtrade.exchange.Exchange.get_ticker',
MagicMock(return_value={
'bid': buy_price + 0.000002,
'ask': buy_price + 0.000002,
'last': buy_price + 0.000002
}))
# Lower price again (but still positive)
assert freqtrade.handle_trade(trade) is True
assert log_has(
f"ETH/BTC - HIT STOP: current price at {buy_price + 0.000002:.6f}, "
f"stoploss is {trade.stop_loss:.6f}, "
f"initial stoploss was at 0.000010, trade opened at 0.000011", caplog)
def test_trailing_stop_loss_offset(default_conf, limit_buy_order, fee,
caplog, mocker, markets) -> None:
buy_price = limit_buy_order['price']
patch_RPCManager(mocker)
patch_exchange(mocker)
mocker.patch.multiple(
'freqtrade.exchange.Exchange',
get_ticker=MagicMock(return_value={
'bid': buy_price - 0.000001,
'ask': buy_price - 0.000001,
'last': buy_price - 0.000001
}),
buy=MagicMock(return_value={'id': limit_buy_order['id']}),
get_fee=fee,
markets=PropertyMock(return_value=markets),
)
default_conf['trailing_stop'] = True
default_conf['trailing_stop_positive'] = 0.01
default_conf['trailing_stop_positive_offset'] = 0.011
freqtrade = FreqtradeBot(default_conf)
patch_get_signal(freqtrade)
freqtrade.strategy.min_roi_reached = MagicMock(return_value=False)
freqtrade.create_trades()
trade = Trade.query.first()
trade.update(limit_buy_order)
caplog.set_level(logging.DEBUG)
# stop-loss not reached
assert freqtrade.handle_trade(trade) is False
# Raise ticker above buy price
mocker.patch('freqtrade.exchange.Exchange.get_ticker',
MagicMock(return_value={
'bid': buy_price + 0.000003,
'ask': buy_price + 0.000003,
'last': buy_price + 0.000003
}))
# stop-loss not reached, adjusted stoploss
assert freqtrade.handle_trade(trade) is False
assert log_has(f"ETH/BTC - Using positive stoploss: 0.01 offset: 0.011 profit: 0.2666%",
caplog)
assert log_has(f"ETH/BTC - Adjusting stoploss...", caplog)
assert trade.stop_loss == 0.0000138501
mocker.patch('freqtrade.exchange.Exchange.get_ticker',
MagicMock(return_value={
'bid': buy_price + 0.000002,
'ask': buy_price + 0.000002,
'last': buy_price + 0.000002
}))
# Lower price again (but still positive)
assert freqtrade.handle_trade(trade) is True
assert log_has(
f"ETH/BTC - HIT STOP: current price at {buy_price + 0.000002:.6f}, "
f"stoploss is {trade.stop_loss:.6f}, "
f"initial stoploss was at 0.000010, trade opened at 0.000011", caplog)
assert trade.sell_reason == SellType.TRAILING_STOP_LOSS.value
def test_tsl_only_offset_reached(default_conf, limit_buy_order, fee,
caplog, mocker, markets) -> None:
buy_price = limit_buy_order['price']
# buy_price: 0.00001099
patch_RPCManager(mocker)
patch_exchange(mocker)
mocker.patch.multiple(
'freqtrade.exchange.Exchange',
get_ticker=MagicMock(return_value={
'bid': buy_price,
'ask': buy_price,
'last': buy_price
}),
buy=MagicMock(return_value={'id': limit_buy_order['id']}),
get_fee=fee,
markets=PropertyMock(return_value=markets),
)
default_conf['trailing_stop'] = True
default_conf['trailing_stop_positive'] = 0.05
default_conf['trailing_stop_positive_offset'] = 0.055
default_conf['trailing_only_offset_is_reached'] = True
freqtrade = FreqtradeBot(default_conf)
patch_get_signal(freqtrade)
freqtrade.strategy.min_roi_reached = MagicMock(return_value=False)
freqtrade.create_trades()
trade = Trade.query.first()
trade.update(limit_buy_order)
caplog.set_level(logging.DEBUG)
# stop-loss not reached
assert freqtrade.handle_trade(trade) is False
assert trade.stop_loss == 0.0000098910
# Raise ticker above buy price
mocker.patch('freqtrade.exchange.Exchange.get_ticker',
MagicMock(return_value={
'bid': buy_price + 0.0000004,
'ask': buy_price + 0.0000004,
'last': buy_price + 0.0000004
}))
# stop-loss should not be adjusted as offset is not reached yet
assert freqtrade.handle_trade(trade) is False
assert not log_has(f"ETH/BTC - Adjusting stoploss...", caplog)
assert trade.stop_loss == 0.0000098910
# price rises above the offset (rises 12% when the offset is 5.5%)
mocker.patch('freqtrade.exchange.Exchange.get_ticker',
MagicMock(return_value={
'bid': buy_price + 0.0000014,
'ask': buy_price + 0.0000014,
'last': buy_price + 0.0000014
}))
assert freqtrade.handle_trade(trade) is False
assert log_has(f"ETH/BTC - Using positive stoploss: 0.05 offset: 0.055 profit: 0.1218%",
caplog)
assert log_has(f"ETH/BTC - Adjusting stoploss...", caplog)
assert trade.stop_loss == 0.0000117705
def test_disable_ignore_roi_if_buy_signal(default_conf, limit_buy_order,
fee, markets, mocker) -> None:
patch_RPCManager(mocker)
patch_exchange(mocker)
mocker.patch.multiple(
'freqtrade.exchange.Exchange',
get_ticker=MagicMock(return_value={
'bid': 0.00000172,
'ask': 0.00000173,
'last': 0.00000172
}),
buy=MagicMock(return_value={'id': limit_buy_order['id']}),
get_fee=fee,
markets=PropertyMock(return_value=markets)
)
default_conf['ask_strategy'] = {
'ignore_roi_if_buy_signal': False
}
freqtrade = FreqtradeBot(default_conf)
patch_get_signal(freqtrade)
freqtrade.strategy.min_roi_reached = MagicMock(return_value=True)
freqtrade.create_trades()
trade = Trade.query.first()
trade.update(limit_buy_order)
# Sell due to min_roi_reached
patch_get_signal(freqtrade, value=(True, True))
assert freqtrade.handle_trade(trade) is True
# Test if buy-signal is absent
patch_get_signal(freqtrade, value=(False, True))
assert freqtrade.handle_trade(trade) is True
assert trade.sell_reason == SellType.STOP_LOSS.value
def test_get_real_amount_quote(default_conf, trades_for_order, buy_order_fee, caplog, mocker):
mocker.patch('freqtrade.exchange.Exchange.get_trades_for_order', return_value=trades_for_order)
patch_RPCManager(mocker)
patch_exchange(mocker)
amount = sum(x['amount'] for x in trades_for_order)
trade = Trade(
pair='LTC/ETH',
amount=amount,
exchange='binance',
open_rate=0.245441,
open_order_id="123456"
)
freqtrade = FreqtradeBot(default_conf)
patch_get_signal(freqtrade)
# Amount is reduced by "fee"
assert freqtrade.get_real_amount(trade, buy_order_fee) == amount - (amount * 0.001)
assert log_has('Applying fee on amount for Trade(id=None, pair=LTC/ETH, amount=8.00000000, '
'open_rate=0.24544100, open_since=closed) (from 8.0 to 7.992) from Trades',
caplog)
def test_get_real_amount_no_trade(default_conf, buy_order_fee, caplog, mocker):
mocker.patch('freqtrade.exchange.Exchange.get_trades_for_order', return_value=[])
patch_RPCManager(mocker)
patch_exchange(mocker)
amount = buy_order_fee['amount']
trade = Trade(
pair='LTC/ETH',
amount=amount,
exchange='binance',
open_rate=0.245441,
open_order_id="123456"
)
freqtrade = FreqtradeBot(default_conf)
patch_get_signal(freqtrade)
# Amount is reduced by "fee"
assert freqtrade.get_real_amount(trade, buy_order_fee) == amount
assert log_has('Applying fee on amount for Trade(id=None, pair=LTC/ETH, amount=8.00000000, '
'open_rate=0.24544100, open_since=closed) failed: myTrade-Dict empty found',
caplog)
def test_get_real_amount_stake(default_conf, trades_for_order, buy_order_fee, mocker):
trades_for_order[0]['fee']['currency'] = 'ETH'
patch_RPCManager(mocker)
patch_exchange(mocker)
mocker.patch('freqtrade.exchange.Exchange.get_trades_for_order', return_value=trades_for_order)
amount = sum(x['amount'] for x in trades_for_order)
trade = Trade(
pair='LTC/ETH',
amount=amount,
exchange='binance',
open_rate=0.245441,
open_order_id="123456"
)
freqtrade = FreqtradeBot(default_conf)
patch_get_signal(freqtrade)
# Amount does not change
assert freqtrade.get_real_amount(trade, buy_order_fee) == amount
def test_get_real_amount_no_currency_in_fee(default_conf, trades_for_order, buy_order_fee, mocker):
limit_buy_order = deepcopy(buy_order_fee)
limit_buy_order['fee'] = {'cost': 0.004, 'currency': None}
trades_for_order[0]['fee']['currency'] = None
patch_RPCManager(mocker)
patch_exchange(mocker)
mocker.patch('freqtrade.exchange.Exchange.get_trades_for_order', return_value=trades_for_order)
amount = sum(x['amount'] for x in trades_for_order)
trade = Trade(
pair='LTC/ETH',
amount=amount,
exchange='binance',
open_rate=0.245441,
open_order_id="123456"
)
freqtrade = FreqtradeBot(default_conf)
patch_get_signal(freqtrade)
# Amount does not change
assert freqtrade.get_real_amount(trade, limit_buy_order) == amount
def test_get_real_amount_BNB(default_conf, trades_for_order, buy_order_fee, mocker):
trades_for_order[0]['fee']['currency'] = 'BNB'
trades_for_order[0]['fee']['cost'] = 0.00094518
patch_RPCManager(mocker)
patch_exchange(mocker)
mocker.patch('freqtrade.exchange.Exchange.get_trades_for_order', return_value=trades_for_order)
amount = sum(x['amount'] for x in trades_for_order)
trade = Trade(
pair='LTC/ETH',
amount=amount,
exchange='binance',
open_rate=0.245441,
open_order_id="123456"
)
freqtrade = FreqtradeBot(default_conf)
patch_get_signal(freqtrade)
# Amount does not change
assert freqtrade.get_real_amount(trade, buy_order_fee) == amount
def test_get_real_amount_multi(default_conf, trades_for_order2, buy_order_fee, caplog, mocker):
patch_RPCManager(mocker)
patch_exchange(mocker)
mocker.patch('freqtrade.exchange.Exchange.get_trades_for_order', return_value=trades_for_order2)
amount = float(sum(x['amount'] for x in trades_for_order2))
trade = Trade(
pair='LTC/ETH',
amount=amount,
exchange='binance',
open_rate=0.245441,
open_order_id="123456"
)
freqtrade = FreqtradeBot(default_conf)
patch_get_signal(freqtrade)
# Amount is reduced by "fee"
assert freqtrade.get_real_amount(trade, buy_order_fee) == amount - (amount * 0.001)
assert log_has('Applying fee on amount for Trade(id=None, pair=LTC/ETH, amount=8.00000000, '
'open_rate=0.24544100, open_since=closed) (from 8.0 to 7.992) from Trades',
caplog)
def test_get_real_amount_fromorder(default_conf, trades_for_order, buy_order_fee, caplog, mocker):
limit_buy_order = deepcopy(buy_order_fee)
limit_buy_order['fee'] = {'cost': 0.004, 'currency': 'LTC'}
patch_RPCManager(mocker)
patch_exchange(mocker)
mocker.patch('freqtrade.exchange.Exchange.get_trades_for_order',
return_value=[trades_for_order])
amount = float(sum(x['amount'] for x in trades_for_order))
trade = Trade(
pair='LTC/ETH',
amount=amount,
exchange='binance',
open_rate=0.245441,
open_order_id="123456"
)
freqtrade = FreqtradeBot(default_conf)
patch_get_signal(freqtrade)
# Amount is reduced by "fee"
assert freqtrade.get_real_amount(trade, limit_buy_order) == amount - 0.004
assert log_has('Applying fee on amount for Trade(id=None, pair=LTC/ETH, amount=8.00000000, '
'open_rate=0.24544100, open_since=closed) (from 8.0 to 7.996) from Order',
caplog)
def test_get_real_amount_invalid_order(default_conf, trades_for_order, buy_order_fee, mocker):
limit_buy_order = deepcopy(buy_order_fee)
limit_buy_order['fee'] = {'cost': 0.004}
patch_RPCManager(mocker)
patch_exchange(mocker)
mocker.patch('freqtrade.exchange.Exchange.get_trades_for_order', return_value=[])
amount = float(sum(x['amount'] for x in trades_for_order))
trade = Trade(
pair='LTC/ETH',
amount=amount,
exchange='binance',
open_rate=0.245441,
open_order_id="123456"
)
freqtrade = FreqtradeBot(default_conf)
patch_get_signal(freqtrade)
# Amount does not change
assert freqtrade.get_real_amount(trade, limit_buy_order) == amount
def test_get_real_amount_wrong_amount(default_conf, trades_for_order, buy_order_fee, mocker):
limit_buy_order = deepcopy(buy_order_fee)
limit_buy_order['amount'] = limit_buy_order['amount'] - 0.001
patch_RPCManager(mocker)
patch_exchange(mocker)
mocker.patch('freqtrade.exchange.Exchange.get_trades_for_order', return_value=trades_for_order)
amount = float(sum(x['amount'] for x in trades_for_order))
trade = Trade(
pair='LTC/ETH',
amount=amount,
exchange='binance',
open_rate=0.245441,
open_order_id="123456"
)
freqtrade = FreqtradeBot(default_conf)
patch_get_signal(freqtrade)
# Amount does not change
with pytest.raises(DependencyException, match=r"Half bought\? Amounts don't match"):
freqtrade.get_real_amount(trade, limit_buy_order)
def test_get_real_amount_wrong_amount_rounding(default_conf, trades_for_order, buy_order_fee,
mocker):
# Floats should not be compared directly.
limit_buy_order = deepcopy(buy_order_fee)
trades_for_order[0]['amount'] = trades_for_order[0]['amount'] + 1e-15
patch_RPCManager(mocker)
patch_exchange(mocker)
mocker.patch('freqtrade.exchange.Exchange.get_trades_for_order', return_value=trades_for_order)
amount = float(sum(x['amount'] for x in trades_for_order))
trade = Trade(
pair='LTC/ETH',
amount=amount,
exchange='binance',
open_rate=0.245441,
open_order_id="123456"
)
freqtrade = FreqtradeBot(default_conf)
patch_get_signal(freqtrade)
# Amount changes by fee amount.
assert isclose(freqtrade.get_real_amount(trade, limit_buy_order), amount - (amount * 0.001),
abs_tol=MATH_CLOSE_PREC,)
def test_get_real_amount_invalid(default_conf, trades_for_order, buy_order_fee, mocker):
# Remove "Currency" from fee dict
trades_for_order[0]['fee'] = {'cost': 0.008}
patch_RPCManager(mocker)
patch_exchange(mocker)
mocker.patch('freqtrade.exchange.Exchange.get_trades_for_order', return_value=trades_for_order)
amount = sum(x['amount'] for x in trades_for_order)
trade = Trade(
pair='LTC/ETH',
amount=amount,
exchange='binance',
open_rate=0.245441,
open_order_id="123456"
)
freqtrade = FreqtradeBot(default_conf)
patch_get_signal(freqtrade)
# Amount does not change
assert freqtrade.get_real_amount(trade, buy_order_fee) == amount
def test_get_real_amount_open_trade(default_conf, mocker):
patch_RPCManager(mocker)
patch_exchange(mocker)
amount = 12345
trade = Trade(
pair='LTC/ETH',
amount=amount,
exchange='binance',
open_rate=0.245441,
open_order_id="123456"
)
order = {
'id': 'mocked_order',
'amount': amount,
'status': 'open',
}
freqtrade = FreqtradeBot(default_conf)
patch_get_signal(freqtrade)
assert freqtrade.get_real_amount(trade, order) == amount
def test_order_book_depth_of_market(default_conf, ticker, limit_buy_order, fee, markets, mocker,
order_book_l2):
default_conf['bid_strategy']['check_depth_of_market']['enabled'] = True
default_conf['bid_strategy']['check_depth_of_market']['bids_to_ask_delta'] = 0.1
patch_RPCManager(mocker)
patch_exchange(mocker)
mocker.patch('freqtrade.exchange.Exchange.get_order_book', order_book_l2)
mocker.patch.multiple(
'freqtrade.exchange.Exchange',
get_ticker=ticker,
buy=MagicMock(return_value={'id': limit_buy_order['id']}),
get_fee=fee,
markets=PropertyMock(return_value=markets)
)
# Save state of current whitelist
whitelist = deepcopy(default_conf['exchange']['pair_whitelist'])
freqtrade = FreqtradeBot(default_conf)
patch_get_signal(freqtrade)
freqtrade.create_trades()
trade = Trade.query.first()
assert trade is not None
assert trade.stake_amount == 0.001
assert trade.is_open
assert trade.open_date is not None
assert trade.exchange == 'bittrex'
# Simulate fulfilled LIMIT_BUY order for trade
trade.update(limit_buy_order)
assert trade.open_rate == 0.00001099
assert whitelist == default_conf['exchange']['pair_whitelist']
def test_order_book_depth_of_market_high_delta(default_conf, ticker, limit_buy_order,
fee, markets, mocker, order_book_l2):
default_conf['bid_strategy']['check_depth_of_market']['enabled'] = True
# delta is 100 which is impossible to reach. hence check_depth_of_market will return false
default_conf['bid_strategy']['check_depth_of_market']['bids_to_ask_delta'] = 100
patch_RPCManager(mocker)
patch_exchange(mocker)
mocker.patch('freqtrade.exchange.Exchange.get_order_book', order_book_l2)
mocker.patch.multiple(
'freqtrade.exchange.Exchange',
get_ticker=ticker,
buy=MagicMock(return_value={'id': limit_buy_order['id']}),
get_fee=fee,
markets=PropertyMock(return_value=markets)
)
# Save state of current whitelist
freqtrade = FreqtradeBot(default_conf)
patch_get_signal(freqtrade)
freqtrade.create_trades()
trade = Trade.query.first()
assert trade is None
def test_order_book_bid_strategy1(mocker, default_conf, order_book_l2, markets) -> None:
"""
test if function get_target_bid will return the order book price
instead of the ask rate
"""
patch_exchange(mocker)
ticker_mock = MagicMock(return_value={'ask': 0.045, 'last': 0.046})
mocker.patch.multiple(
'freqtrade.exchange.Exchange',
markets=PropertyMock(return_value=markets),
get_order_book=order_book_l2,
get_ticker=ticker_mock,
)
default_conf['exchange']['name'] = 'binance'
default_conf['bid_strategy']['use_order_book'] = True
default_conf['bid_strategy']['order_book_top'] = 2
default_conf['bid_strategy']['ask_last_balance'] = 0
default_conf['telegram']['enabled'] = False
freqtrade = FreqtradeBot(default_conf)
assert freqtrade.get_target_bid('ETH/BTC') == 0.043935
assert ticker_mock.call_count == 0
def test_order_book_bid_strategy2(mocker, default_conf, order_book_l2, markets) -> None:
"""
test if function get_target_bid will return the ask rate (since its value is lower)
instead of the order book rate (even if enabled)
"""
patch_exchange(mocker)
ticker_mock = MagicMock(return_value={'ask': 0.042, 'last': 0.046})
mocker.patch.multiple(
'freqtrade.exchange.Exchange',
markets=PropertyMock(return_value=markets),
get_order_book=order_book_l2,
get_ticker=ticker_mock,
)
default_conf['exchange']['name'] = 'binance'
default_conf['bid_strategy']['use_order_book'] = True
default_conf['bid_strategy']['order_book_top'] = 2
default_conf['bid_strategy']['ask_last_balance'] = 0
default_conf['telegram']['enabled'] = False
freqtrade = FreqtradeBot(default_conf)
# orderbook shall be used even if tickers would be lower.
assert freqtrade.get_target_bid('ETH/BTC') != 0.042
assert ticker_mock.call_count == 0
def test_check_depth_of_market_buy(default_conf, mocker, order_book_l2, markets) -> None:
"""
test check depth of market
"""
patch_exchange(mocker)
mocker.patch.multiple(
'freqtrade.exchange.Exchange',
markets=PropertyMock(return_value=markets),
get_order_book=order_book_l2
)
default_conf['telegram']['enabled'] = False
default_conf['exchange']['name'] = 'binance'
default_conf['bid_strategy']['check_depth_of_market']['enabled'] = True
# delta is 100 which is impossible to reach. hence function will return false
default_conf['bid_strategy']['check_depth_of_market']['bids_to_ask_delta'] = 100
freqtrade = FreqtradeBot(default_conf)
conf = default_conf['bid_strategy']['check_depth_of_market']
assert freqtrade._check_depth_of_market_buy('ETH/BTC', conf) is False
def test_order_book_ask_strategy(default_conf, limit_buy_order, limit_sell_order,
fee, markets, mocker, order_book_l2) -> None:
"""
test order book ask strategy
"""
mocker.patch('freqtrade.exchange.Exchange.get_order_book', order_book_l2)
default_conf['exchange']['name'] = 'binance'
default_conf['ask_strategy']['use_order_book'] = True
default_conf['ask_strategy']['order_book_min'] = 1
default_conf['ask_strategy']['order_book_max'] = 2
default_conf['telegram']['enabled'] = False
patch_RPCManager(mocker)
patch_exchange(mocker)
mocker.patch.multiple(
'freqtrade.exchange.Exchange',
get_ticker=MagicMock(return_value={
'bid': 0.00001172,
'ask': 0.00001173,
'last': 0.00001172
}),
buy=MagicMock(return_value={'id': limit_buy_order['id']}),
sell=MagicMock(return_value={'id': limit_sell_order['id']}),
get_fee=fee,
markets=PropertyMock(return_value=markets)
)
freqtrade = FreqtradeBot(default_conf)
patch_get_signal(freqtrade)
freqtrade.create_trades()
trade = Trade.query.first()
assert trade
time.sleep(0.01) # Race condition fix
trade.update(limit_buy_order)
assert trade.is_open is True
patch_get_signal(freqtrade, value=(False, True))
assert freqtrade.handle_trade(trade) is True
def test_get_sell_rate(default_conf, mocker, ticker, order_book_l2) -> None:
mocker.patch.multiple(
'freqtrade.exchange.Exchange',
get_order_book=order_book_l2,
get_ticker=ticker,
)
pair = "ETH/BTC"
# Test regular mode
ft = get_patched_freqtradebot(mocker, default_conf)
rate = ft.get_sell_rate(pair, True)
assert isinstance(rate, float)
assert rate == 0.00001098
# Test orderbook mode
default_conf['ask_strategy']['use_order_book'] = True
default_conf['ask_strategy']['order_book_min'] = 1
default_conf['ask_strategy']['order_book_max'] = 2
ft = get_patched_freqtradebot(mocker, default_conf)
rate = ft.get_sell_rate(pair, True)
assert isinstance(rate, float)
assert rate == 0.043936
def test_startup_state(default_conf, mocker):
default_conf['pairlist'] = {'method': 'VolumePairList',
'config': {'number_assets': 20}
}
mocker.patch('freqtrade.exchange.Exchange.exchange_has', MagicMock(return_value=True))
worker = get_patched_worker(mocker, default_conf)
assert worker.state is State.RUNNING
def test_startup_trade_reinit(default_conf, edge_conf, mocker):
mocker.patch('freqtrade.exchange.Exchange.exchange_has', MagicMock(return_value=True))
reinit_mock = MagicMock()
mocker.patch('freqtrade.persistence.Trade.stoploss_reinitialization', reinit_mock)
ftbot = get_patched_freqtradebot(mocker, default_conf)
ftbot.startup()
assert reinit_mock.call_count == 1
reinit_mock.reset_mock()
ftbot = get_patched_freqtradebot(mocker, edge_conf)
ftbot.startup()
assert reinit_mock.call_count == 0
def test_process_i_am_alive(default_conf, mocker, caplog):
patch_RPCManager(mocker)
patch_exchange(mocker)
mocker.patch('freqtrade.exchange.Exchange.exchange_has', MagicMock(return_value=True))
ftbot = get_patched_freqtradebot(mocker, default_conf)
message = r"Bot heartbeat\. PID=.*"
ftbot.process()
assert log_has_re(message, caplog)
assert ftbot._heartbeat_msg != 0
caplog.clear()
# Message is not shown before interval is up
ftbot.process()
assert not log_has_re(message, caplog)
caplog.clear()
# Set clock - 70 seconds
ftbot._heartbeat_msg -= 70
ftbot.process()
assert log_has_re(message, caplog)
| 35.274286 | 100 | 0.676386 | 16,024 | 129,633 | 5.199888 | 0.043997 | 0.040529 | 0.030112 | 0.040997 | 0.854566 | 0.821298 | 0.785233 | 0.742388 | 0.711796 | 0.686617 | 0 | 0.027663 | 0.219188 | 129,633 | 3,674 | 101 | 35.283887 | 0.795532 | 0.06469 | 0 | 0.72785 | 0 | 0.00353 | 0.133485 | 0.061561 | 0 | 0 | 0 | 0 | 0.147194 | 1 | 0.041299 | false | 0 | 0.006354 | 0.001412 | 0.049418 | 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 |
c1b65fdacfff1ba403bfaf94885c7a025b88688e | 241 | py | Python | src/interpreter/functions/replace.py | BowlingPizzaBall/b-star | 3e614443281702e124309ea7496314519b707b5f | [
"MIT"
] | null | null | null | src/interpreter/functions/replace.py | BowlingPizzaBall/b-star | 3e614443281702e124309ea7496314519b707b5f | [
"MIT"
] | null | null | null | src/interpreter/functions/replace.py | BowlingPizzaBall/b-star | 3e614443281702e124309ea7496314519b707b5f | [
"MIT"
] | null | null | null | from typing import List
from src.interpreter.expression import Expression
def replace_func(block: List, codebase):
return Expression(block[1], codebase).replace(str(Expression(block[2], codebase)), str(Expression(block[3], codebase)))
| 34.428571 | 123 | 0.775934 | 32 | 241 | 5.8125 | 0.53125 | 0.241935 | 0.193548 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013825 | 0.099585 | 241 | 6 | 124 | 40.166667 | 0.843318 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.5 | 0.25 | 1 | 0 | 0 | 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 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 7 |
c1d17dbc747cfa91abb637a8a3d1b4456f67f0ad | 13,024 | py | Python | source/qualities.py | mahdihosseini/GenProb | 06f946cb7b7ffe577269082e31c80ab709f81ae7 | [
"MIT"
] | 2 | 2021-11-02T19:17:47.000Z | 2021-11-15T14:19:04.000Z | source/qualities.py | mahdihosseini/GenProb | 06f946cb7b7ffe577269082e31c80ab709f81ae7 | [
"MIT"
] | null | null | null | source/qualities.py | mahdihosseini/GenProb | 06f946cb7b7ffe577269082e31c80ab709f81ae7 | [
"MIT"
] | null | null | null | import matplotlib
import pandas as pd
import numpy as np
import numpy.linalg as LA
from scipy import stats
import math
import numpy.ma as ma
import matplotlib.pyplot as plt
import numpy.ma as ma
from pathlib import Path
import sys
def agg(x, L, a=[]):
if(L == 1):
a = np.logical_not(ma.getmaskarray(x))
return np.average(np.abs(x),weights=a,axis=1)
if(L == 2):
a = np.logical_not(ma.getmaskarray(x))
return LA.norm(x,axis=1)/np.sqrt(np.sum(a,axis=1))
if(L == 3):
a = np.logical_not(ma.getmaskarray(x))
return np.prod(np.power(x,a/np.repeat(np.expand_dims(np.sum(a,axis=1),axis=1),a.shape[1],axis=1)),axis=1)
if(L == 4):
a = a*np.logical_not(ma.getmaskarray(x))
return np.average(np.abs(x),weights=a,axis=1)
if(L == 5):
a = a*np.logical_not(ma.getmaskarray(x))
return np.prod(np.power(x,a/np.repeat(np.expand_dims(np.sum(a,axis=1),axis=1),a.shape[1],axis=1)),axis=1)
def all_aggs(in_chan, out_chan, in_weight, out_weight):
return np.asarray([agg(np.ma.concatenate((in_chan,out_chan),axis=1),L=i,a=np.ma.concatenate((in_weight,out_weight),axis=1)) for i in range(1,6)])
def sqrtlog(chans, weights):
a = np.logical_not(ma.getmaskarray(weights))
all = []
for i in range(len(chans)):
all.append([])
chand = chans[i]*np.sum(a,axis=1)
all[i].append(chans[i])
all[i].append(chand)
all[i].append(np.sqrt(chans[i]))
all[i].append(np.sqrt(chand))
all[i].append(np.log(chans[i]))
all[i].append(np.log(chand))
all[i].append(np.log(np.sqrt(chans[i])))
all[i].append(np.log(np.sqrt(chand)))
return all
def correlate(filename):
file=Path(str(sys.path[0][0:-7])+"/outputs/"+filename+".csv")
df = pd.read_csv(file,skip_blank_lines=False)
data = dict()
if(pd.isna(df.iloc[-1][1])):
df = df.drop(labels=df.shape[0]-1, axis=0)
zero_models = []
idx = list(np.where(pd.isna(df["model_id"]))[0])
idxcopy = idx
idx = idx - np.arange(0,len(idx),1)
lenidx = np.append(idx,len(df["model_id"])-len(idx))
lenidx = np.insert(lenidx,0,0)
maxLength = np.max(np.abs(np.diff(lenidx)))
for key in list(df.keys()):
idxx = list(np.where(pd.isna(df[key]))[0])
idxx = list(set(idxcopy) ^ set(idxx))
data[key] = df[key]
datacopy = data[key]
data[key].loc[idxx] = 0
data[key] = data[key].dropna(axis=0)
data[key] = np.array_split(data[key],idx)
for i in range(len(data[key])):
#equalize all model sizes
prevlen = len(data[key][i])
data[key][i] = np.append(data[key][i],(np.zeros((maxLength-len(data[key][i])))))
#delete zero models
num_non_zero = np.sum(data[key][i]!=0)
threshold = 1
if(num_non_zero<threshold):
#print(key,str(i),num_non_zero,prevlen)
zero_models.append(i)
data[key] = np.asarray(data[key])
zero_models = list(set(zero_models))
print("zero models deleted: "+str(len(zero_models)))
for key in list(data.keys()):
data[key] = np.delete(data[key],zero_models,axis=0)
data[key] = ma.masked_array(data[key], mask=(data[key]==0.))
data['in_QS_BE'] = np.arctan2(data['in_S_BE'],(1-1/data['in_C_BE']))
data['out_QS_BE'] = np.arctan2(data['out_S_BE'],(1-1/data['out_C_BE']))
data['in_QS_AE'] = np.arctan2(data['in_S_AE'],(1-1/data['in_C_AE']))
data['out_QS_AE'] = np.arctan2(data['out_S_AE'],(1-1/data['out_C_AE']))
aggregates = dict()
aggregates['QS_BE'] = all_aggs(data['in_QS_BE'],data['out_QS_BE'],data['in_weight_BE'],data['out_weight_BE'])
aggregates['QS_AE'] = all_aggs(data['in_QS_AE'],data['out_QS_AE'],data['in_weight_AE'],data['out_weight_AE'])
aggregates['QE_BE'] = all_aggs(data['in_ER_BE'],data['out_ER_BE'],data['in_weight_BE'],data['out_weight_BE'])
aggregates['QE_AE'] = all_aggs(data['in_ER_AE'],data['out_ER_AE'],data['in_weight_AE'],data['out_weight_AE'])
aggregates['QS_BE'] = sqrtlog(aggregates['QS_BE'],np.ma.concatenate((data['in_weight_BE'],data['out_weight_BE']),axis=1))
aggregates['QS_AE'] = sqrtlog(aggregates['QS_AE'],np.ma.concatenate((data['in_weight_AE'],data['out_weight_AE']),axis=1))
aggregates['QE_BE'] = sqrtlog(aggregates['QE_BE'],np.ma.concatenate((data['in_weight_BE'],data['out_weight_BE']),axis=1))
aggregates['QE_AE'] = sqrtlog(aggregates['QE_AE'],np.ma.concatenate((data['in_weight_AE'],data['out_weight_AE']),axis=1))
aggregates['spec_BE'] = all_aggs(data['in_spec_BE'],data['out_spec_BE'],data['in_weight_BE'],data['out_weight_BE'])
aggregates['spec_AE'] = all_aggs(data['in_spec_AE'],data['out_spec_AE'],data['in_weight_AE'],data['out_weight_AE'])
aggregates['fro_BE'] = all_aggs(data['in_fro_BE'],data['out_fro_BE'],data['in_weight_BE'],data['out_weight_BE'])
aggregates['fro_AE'] = all_aggs(data['in_fro_AE'],data['out_fro_AE'],data['in_weight_AE'],data['out_weight_AE'])
aggregates['spec_BE'] = sqrtlog(aggregates['spec_BE'],np.ma.concatenate((data['in_weight_BE'],data['out_weight_BE']),axis=1))
aggregates['spec_AE'] = sqrtlog(aggregates['spec_AE'],np.ma.concatenate((data['in_weight_AE'],data['out_weight_AE']),axis=1))
aggregates['fro_BE'] = sqrtlog(aggregates['fro_BE'],np.ma.concatenate((data['in_weight_BE'],data['out_weight_BE']),axis=1))
aggregates['fro_AE'] = sqrtlog(aggregates['fro_AE'],np.ma.concatenate((data['in_weight_AE'],data['out_weight_AE']),axis=1))
aggregates['path'] = np.mean(data['path'],axis=1)
aggregates['test_acc'] = np.mean(data['test_acc'],axis=1)
aggregates['train_acc'] = np.mean(data['train_acc'],axis=1)
aggregates['test_loss'] = np.mean(data['test_loss'],axis=1)
aggregates['train_loss'] = np.mean(data['train_loss'],axis=1)
aggregates['gap'] = np.mean(data['gap'],axis=1)
#correlations
X = ['test_acc','gap']
Y = ['QS_BE','QS_AE','QE_BE','QE_AE','spec_BE','spec_AE','fro_BE','fro_AE']
correlationsp = dict()
correlationss = dict()
for x in X:
for y in Y:
for i in range(5):
for t in range(8):
correlationsp[y+'_'+x+'_L'+str(i+1)+"_"+str(t)] = abs(stats.pearsonr(aggregates[x], aggregates[y][i][t])[0])
correlationss[y+'_'+x+'_L'+str(i+1)+"_"+str(t)] = abs(stats.spearmanr(aggregates[x], aggregates[y][i][t])[0])
correlationsp["path_"+x] = abs(stats.pearsonr(aggregates[x], aggregates['path'])[0])
correlationss["path_"+x] = abs(stats.spearmanr(aggregates[x], aggregates['path'])[0])
correlations = {'pearson':correlationsp,'spearman':correlationss}
print(len(aggregates['test_acc']))
return correlations
if __name__ == "__main__":
filename = "results-06-18-2021_17-27-02-NATSS-cifar10-90"
file=Path(str(sys.path[0][0:-7])+"/outputs/"+filename+".csv")
#file = './csv_files/LilJon-SGD-CIFAR100/results-06-30-2021_23-15-03-LilJon-CIFAR100-5.csv'
df = pd.read_csv(file,skip_blank_lines=False)
data = dict()
if(pd.isna(df.iloc[-1][1])):
df = df.drop(labels=df.shape[0]-1, axis=0)
zero_models = []
idx = list(np.where(pd.isna(df["model_id"]))[0])
idxcopy = idx
idx = idx - np.arange(0,len(idx),1)
lenidx = np.append(idx,len(df["model_id"])-len(idx))
lenidx = np.insert(lenidx,0,0)
maxLength = np.max(np.abs(np.diff(lenidx)))
for key in list(df.keys()):
idxx = list(np.where(pd.isna(df[key]))[0])
idxx = list(set(idxcopy) ^ set(idxx))
data[key] = df[key]
datacopy = data[key]
data[key].loc[idxx] = 0
data[key] = data[key].dropna(axis=0)
data[key] = np.array_split(data[key],idx)
for i in range(len(data[key])):
#equalize all model sizes
prevlen = len(data[key][i])
data[key][i] = np.append(data[key][i],(np.zeros((maxLength-len(data[key][i])))))
#delete zero models
num_non_zero = np.sum(data[key][i]!=0)
threshold = 1
if(num_non_zero<threshold):
#print(key,str(i),num_non_zero,prevlen)
zero_models.append(i)
data[key] = np.asarray(data[key])
zero_models = list(set(zero_models))
print("zero models deleted: "+str(len(zero_models)))
for key in list(data.keys()):
data[key] = np.delete(data[key],zero_models,axis=0)
data[key] = ma.masked_array(data[key], mask=(data[key]==0.))
data['in_QS_BE'] = np.arctan2(data['in_S_BE'],(1-1/data['in_C_BE']))
data['out_QS_BE'] = np.arctan2(data['out_S_BE'],(1-1/data['out_C_BE']))
data['in_QS_AE'] = np.arctan2(data['in_S_AE'],(1-1/data['in_C_AE']))
data['out_QS_AE'] = np.arctan2(data['out_S_AE'],(1-1/data['out_C_AE']))
aggregates = dict()
aggregates['QS_BE'] = all_aggs(data['in_QS_BE'],data['out_QS_BE'],data['in_weight_BE'],data['out_weight_BE'])
aggregates['QS_AE'] = all_aggs(data['in_QS_AE'],data['out_QS_AE'],data['in_weight_AE'],data['out_weight_AE'])
aggregates['QE_BE'] = all_aggs(data['in_ER_BE'],data['out_ER_BE'],data['in_weight_BE'],data['out_weight_BE'])
aggregates['QE_AE'] = all_aggs(data['in_ER_AE'],data['out_ER_AE'],data['in_weight_AE'],data['out_weight_AE'])
aggregates['QS_BE'] = sqrtlog(aggregates['QS_BE'],np.ma.concatenate((data['in_weight_BE'],data['out_weight_BE']),axis=1))
aggregates['QS_AE'] = sqrtlog(aggregates['QS_AE'],np.ma.concatenate((data['in_weight_AE'],data['out_weight_AE']),axis=1))
aggregates['QE_BE'] = sqrtlog(aggregates['QE_BE'],np.ma.concatenate((data['in_weight_BE'],data['out_weight_BE']),axis=1))
aggregates['QE_AE'] = sqrtlog(aggregates['QE_AE'],np.ma.concatenate((data['in_weight_AE'],data['out_weight_AE']),axis=1))
aggregates['spec_BE'] = all_aggs(data['in_spec_BE'],data['out_spec_BE'],data['in_weight_BE'],data['out_weight_BE'])
aggregates['spec_AE'] = all_aggs(data['in_spec_AE'],data['out_spec_AE'],data['in_weight_AE'],data['out_weight_AE'])
aggregates['fro_BE'] = all_aggs(data['in_fro_BE'],data['out_fro_BE'],data['in_weight_BE'],data['out_weight_BE'])
aggregates['fro_AE'] = all_aggs(data['in_fro_AE'],data['out_fro_AE'],data['in_weight_AE'],data['out_weight_AE'])
aggregates['spec_BE'] = sqrtlog(aggregates['spec_BE'],np.ma.concatenate((data['in_weight_BE'],data['out_weight_BE']),axis=1))
aggregates['spec_AE'] = sqrtlog(aggregates['spec_AE'],np.ma.concatenate((data['in_weight_AE'],data['out_weight_AE']),axis=1))
aggregates['fro_BE'] = sqrtlog(aggregates['fro_BE'],np.ma.concatenate((data['in_weight_BE'],data['out_weight_BE']),axis=1))
aggregates['fro_AE'] = sqrtlog(aggregates['fro_AE'],np.ma.concatenate((data['in_weight_AE'],data['out_weight_AE']),axis=1))
aggregates['path'] = np.mean(data['path'],axis=1)
aggregates['test_acc'] = np.mean(data['test_acc'],axis=1)
aggregates['train_acc'] = np.mean(data['train_acc'],axis=1)
aggregates['test_loss'] = np.mean(data['test_loss'],axis=1)
aggregates['train_loss'] = np.mean(data['train_loss'],axis=1)
aggregates['gap'] = np.mean(data['gap'],axis=1)
#correlations
X = ['test_acc','gap']
Y = ['QS_BE','QS_AE','QE_BE','QE_AE','spec_BE','spec_AE','fro_BE','fro_AE']
correlationsp = dict()
correlationss = dict()
for x in X:
for y in Y:
for i in range(5):
for t in range(8):
if(x == 'test_acc'):
correlationsp[y+'_'+x+'_L'+str(i+1)+"_"+str(t)] = abs(stats.pearsonr(aggregates[x], aggregates[y][i][t])[0])
correlationss[y+'_'+x+'_L'+str(i+1)+"_"+str(t)] = abs(stats.spearmanr(aggregates[x], aggregates[y][i][t])[0])
else:
correlationsp[y+'_'+x+'_L'+str(i+1)+"_"+str(t)] = stats.pearsonr(aggregates[x], aggregates[y][i][t])[0]
correlationss[y+'_'+x+'_L'+str(i+1)+"_"+str(t)] = stats.spearmanr(aggregates[x], aggregates[y][i][t])[0]
correlationsp["path_"+x] = stats.pearsonr(aggregates[x], aggregates['path'])[0]
correlationss["path_"+x] = stats.spearmanr(aggregates[x], aggregates['path'])[0]
correlations = {'pearson':correlationsp,'spearman':correlationss}
print(len(aggregates['test_acc']))
#plots
#plt.subplot(2,1,1)
#plt.bar(correlationsp.keys(),correlationsp.values())
#plt.subplot(2,1,2)
x = aggregates['QS_BE'][2][0]
y = aggregates['test_acc']
fig, ax1 = plt.subplots()
ax1.plot(x,y,'ro',alpha=0.5,lw=0.5)
ax1.set_xlabel('Metric',fontsize=22)
ax1.set_ylabel('Test Accuracy',fontsize=22)
ax1.tick_params(axis='x',labelsize=18)
ax1.tick_params(axis='y',labelsize=18)
fig.tight_layout()
fig.set_size_inches(13/2, 13/2)
coefficients = np.polyfit(x,y, 1)
ax1.plot(np.arange(min(x),max(x),0.001),np.polyval(coefficients,np.arange(min(x),max(x),0.001)), c='red', lw=3)
plt.show() | 48.416357 | 149 | 0.628686 | 2,108 | 13,024 | 3.676471 | 0.094877 | 0.046452 | 0.049548 | 0.026839 | 0.876516 | 0.862581 | 0.855097 | 0.84929 | 0.833548 | 0.830323 | 0 | 0.019965 | 0.161625 | 13,024 | 269 | 150 | 48.416357 | 0.689807 | 0.028179 | 0 | 0.7277 | 0 | 0 | 0.170107 | 0.00348 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018779 | false | 0 | 0.051643 | 0.004695 | 0.107981 | 0.018779 | 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 |
a9f9cb5ea94f23f36ce204224cba489f04f355bf | 12,156 | py | Python | tests/unit/pypyr/steps/fileformatyaml_test.py | pypyr/pypyr-cli | dc0f694ac0c0e3c2844c1a20788c9af586a8a16e | [
"Apache-2.0"
] | 31 | 2017-03-24T11:27:34.000Z | 2020-05-27T20:06:28.000Z | tests/unit/pypyr/steps/fileformatyaml_test.py | pypyr/pypyr-cli | dc0f694ac0c0e3c2844c1a20788c9af586a8a16e | [
"Apache-2.0"
] | 89 | 2017-04-12T09:50:32.000Z | 2020-08-13T13:18:36.000Z | tests/unit/pypyr/steps/fileformatyaml_test.py | pypyr/pypyr-cli | dc0f694ac0c0e3c2844c1a20788c9af586a8a16e | [
"Apache-2.0"
] | 6 | 2017-06-04T14:19:59.000Z | 2020-02-10T13:16:40.000Z | """fileformatyaml.py unit tests."""
from unittest.mock import patch
import pytest
import ruamel.yaml as yaml
from pypyr.context import Context
from pypyr.errors import KeyInContextHasNoValueError, KeyNotInContextError
import pypyr.steps.fileformatyaml as fileformat
def test_fileformatyaml_no_inpath_raises():
"""None in path raises."""
context = Context({
'k1': 'v1'})
with pytest.raises(KeyNotInContextError) as err_info:
fileformat.run_step(context)
assert str(err_info.value) == (
"context['fileFormatYaml'] doesn't exist. "
"It must exist for pypyr.steps.fileformatyaml.")
def test_fileformatyaml_empty_inpath_raises():
"""Empty in path raises."""
context = Context({
'fileFormatYaml': {'in': None}})
with pytest.raises(KeyInContextHasNoValueError) as err_info:
fileformat.run_step(context)
assert str(err_info.value) == ("context['fileFormatYaml']['in'] must have "
"a value for pypyr.steps.fileformatyaml.")
def test_fileformatyaml_pass_no_substitutions(fs):
"""Relative path to file should succeed."""
in_path = './tests/testfiles/test.yaml'
fs.create_file(in_path, contents="""key: value1 !£$%# *
key2: blah
# there is a comment here
key3:
- l1
# and another
- '!£$% *'
- l2
- - l31
- l32:
- l321
- l322
""")
context = Context({
'ok1': 'ov1',
'fileFormatYaml': {'in': in_path,
'out': './tests/testfiles/out/out.yaml'}})
fileformat.run_step(context)
assert context, "context shouldn't be None"
assert len(context) == 2, "context should have 2 items"
assert context['ok1'] == 'ov1'
assert context['fileFormatYaml'] == {
'in': in_path,
'out': './tests/testfiles/out/out.yaml'}
with open('./tests/testfiles/out/out.yaml') as outfile:
yaml_loader = yaml.YAML(typ='rt', pure=True)
outcontents = yaml_loader.load(outfile)
assert len(outcontents) == 3
assert outcontents['key'] == 'value1 !£$%# *'
assert outcontents['key2'] == 'blah'
assert outcontents['key3'] == ['l1',
'!£$% *',
'l2',
[
'l31',
{'l32': ['l321', 'l322']}
]
]
def test_fileformatyaml_pass_with_substitutions(fs):
"""Relative path to file should succeed with substitutions."""
in_path = './tests/testfiles/testsubst.yaml'
fs.create_file(in_path, contents="""key: "{k1}value1 !£$%# *"
"key2{k2}": blah
# there is a comment here
key3:
- l1
# and another
- '!£$% * {k3}'
- l2
- - l31{k4}
- l32:
- l321
- l322{k5}
""")
context = Context({
'k1': 'v1',
'k2': 'v2',
'k3': 'v3',
'k4': 'v4',
'k5': 'v5',
'fileFormatYaml': {'in': in_path,
'out': './tests/testfiles/out/outsubst.yaml'}})
fileformat.run_step(context)
assert context, "context shouldn't be None"
assert len(context) == 6, "context should have 6 items"
assert context['k1'] == 'v1'
assert context['fileFormatYaml'] == {
'in': in_path,
'out': './tests/testfiles/out/outsubst.yaml'}
with open('./tests/testfiles/out/outsubst.yaml') as outfile:
yaml_loader = yaml.YAML(typ='rt', pure=True)
outcontents = yaml_loader.load(outfile)
expected = {
'key': 'v1value1 !£$%# *',
'key2v2': 'blah',
# there is a comment here
'key3': [
'l1',
# and another
'!£$% * v3',
'l2', ['l31v4',
{'l32': ['l321',
'l322v5']
}
]
]
}
assert outcontents == expected
def test_fileformatyaml_edit_with_substitutions(fs):
"""Relative path to file should succeed, with no out meaning edit."""
in_path = './tests/testfiles/out/edittestsubst.yaml'
fs.create_file(in_path, contents="""key: "{k1}value1 !£$%# *"
"key2{k2}": blah
# there is a comment here
key3:
- l1
# and another
- '!£$% * {k3}'
- l2
- - l31{k4}
- l32:
- l321
- l322{k5}
""")
context = Context({
'k1': 'v1',
'k2': 'v2',
'k3': 'v3',
'k4': 'v4',
'k5': 'v5',
'fileFormatYaml': {'in': in_path}})
fileformat.run_step(context)
assert context, "context shouldn't be None"
assert len(context) == 6, "context should have 6 items"
assert context['k1'] == 'v1'
assert context['fileFormatYaml'] == {
'in': in_path}
with open('./tests/testfiles/out/edittestsubst.yaml') as outfile:
yaml_loader = yaml.YAML(typ='rt', pure=True)
outcontents = yaml_loader.load(outfile)
expected = {
'key': 'v1value1 !£$%# *',
'key2v2': 'blah',
# there is a comment here
'key3': [
'l1',
# and another
'!£$% * v3',
'l2', ['l31v4',
{'l32': ['l321',
'l322v5']
}
]
]
}
assert outcontents == expected
def test_fileformatyaml_pass_with_path_substitutions(fs):
"""Relative path to file should succeed with path substitutions."""
in_path = './tests/testfiles/testsubst.yaml'
fs.create_file(in_path, contents="""key: "{k1}value1 !£$%# *"
"key2{k2}": blah
# there is a comment here
key3:
- l1
# and another
- '!£$% * {k3}'
- l2
- - l31{k4}
- l32:
- l321
- l322{k5}
""")
context = Context({
'k1': 'v1',
'k2': 'v2',
'k3': 'v3',
'k4': 'v4',
'k5': 'v5',
'pathIn': 'testsubst',
'pathOut': 'outsubst',
'fileFormatYaml': {'in': './tests/testfiles/{pathIn}.yaml',
'out': './tests/testfiles/out/{pathOut}.yaml'}})
fileformat.run_step(context)
assert context, "context shouldn't be None"
assert len(context) == 8, "context should have 8 items"
assert context['k1'] == 'v1'
assert context['fileFormatYaml'] == {
'in': './tests/testfiles/{pathIn}.yaml',
'out': './tests/testfiles/out/{pathOut}.yaml'}
with open('./tests/testfiles/out/outsubst.yaml') as outfile:
yaml_loader = yaml.YAML(typ='rt', pure=True)
outcontents = yaml_loader.load(outfile)
expected = {
'key': 'v1value1 !£$%# *',
'key2v2': 'blah',
# there is a comment here
'key3': [
'l1',
# and another
'!£$% * v3',
'l2', ['l31v4',
{'l32': ['l321',
'l322v5']
}
]
]
}
assert outcontents == expected
def test_fileformatyaml_pass_with_encoding(fs):
"""Relative path to file should succeed with encoding."""
in_path = './tests/testfiles/testsubst.yaml'
fs.create_file(in_path, contents="""key: "{k1}value1 !£$%# *"
"key2{k2}": blah
# there is a comment here
key3:
- l1
# and another
- '!£$% * {k3}'
- l2
- - l31{k4}
- l32:
- l321
- l322{k5}
""", encoding='utf-16')
context = Context({
'k1': 'v1',
'k2': 'v2',
'k3': 'v3',
'k4': 'v4',
'k5': 'v5',
'enc': 'utf-16',
'pathIn': 'testsubst',
'pathOut': 'outsubst',
'fileFormatYaml': {'in': './tests/testfiles/{pathIn}.yaml',
'out': './tests/testfiles/out/{pathOut}.yaml',
'encoding': '{enc}'}})
fileformat.run_step(context)
assert context, "context shouldn't be None"
assert len(context) == 9, "context should have 9 items"
assert context['k1'] == 'v1'
assert context['fileFormatYaml'] == {
'in': './tests/testfiles/{pathIn}.yaml',
'out': './tests/testfiles/out/{pathOut}.yaml',
'encoding': '{enc}'}
with open('./tests/testfiles/out/outsubst.yaml',
encoding='utf-16') as outfile:
yaml_loader = yaml.YAML(typ='rt', pure=True)
outcontents = yaml_loader.load(outfile)
expected = {
'key': 'v1value1 !£$%# *',
'key2v2': 'blah',
# there is a comment here
'key3': [
'l1',
# and another
'!£$% * v3',
'l2', ['l31v4',
{'l32': ['l321',
'l322v5']
}
]
]
}
assert outcontents == expected
@patch('pypyr.config.config.default_encoding', new='utf-16')
def test_fileformatyaml_pass_with_encoding_from_config(fs):
"""Relative path to file should succeed with path substitutions."""
in_path = './tests/testfiles/testsubst.yaml'
fs.create_file(in_path, contents="""key: "{k1}value1 !£$%# *"
"key2{k2}": blah
# there is a comment here
key3:
- l1
# and another
- '!£$% * {k3}'
- l2
- - l31{k4}
- l32:
- l321
- l322{k5}
""", encoding='utf-16')
context = Context({
'k1': 'v1',
'k2': 'v2',
'k3': 'v3',
'k4': 'v4',
'k5': 'v5',
'enc': 'utf-16',
'pathIn': 'testsubst',
'pathOut': 'outsubst',
'fileFormatYaml': {'in': './tests/testfiles/{pathIn}.yaml',
'out': './tests/testfiles/out/{pathOut}.yaml'}})
fileformat.run_step(context)
assert context, "context shouldn't be None"
assert len(context) == 9, "context should have 9 items"
assert context['k1'] == 'v1'
assert context['fileFormatYaml'] == {
'in': './tests/testfiles/{pathIn}.yaml',
'out': './tests/testfiles/out/{pathOut}.yaml'}
with open('./tests/testfiles/out/outsubst.yaml',
encoding='utf-16') as outfile:
yaml_loader = yaml.YAML(typ='rt', pure=True)
outcontents = yaml_loader.load(outfile)
expected = {
'key': 'v1value1 !£$%# *',
'key2v2': 'blah',
# there is a comment here
'key3': [
'l1',
# and another
'!£$% * v3',
'l2', ['l31v4',
{'l32': ['l321',
'l322v5']
}
]
]
}
assert outcontents == expected
def test_fileformatyaml_pass_with_encoding_ut32(fs):
"""Relative path to file should succeed with encoding."""
in_path = './tests/testfiles/testsubst.yaml'
fs.create_file(in_path, contents="""key: "{k1}value1 !£$%# *"
"key2{k2}": blah
# there is a comment here
key3:
- l1
# and another
- '!£$% * {k3}'
- l2
- - l31{k4}
- l32:
- l321
- l322{k5}
""", encoding='utf-32')
context = Context({
'k1': 'v1',
'k2': 'v2',
'k3': 'v3',
'k4': 'v4',
'k5': 'v5',
'enc': 'utf-32',
'pathIn': 'testsubst',
'pathOut': 'outsubst',
'fileFormatYaml': {'in': './tests/testfiles/{pathIn}.yaml',
'out': './tests/testfiles/out/{pathOut}.yaml',
'encoding': '{enc}'}})
fileformat.run_step(context)
assert context, "context shouldn't be None"
assert len(context) == 9, "context should have 9 items"
assert context['k1'] == 'v1'
assert context['fileFormatYaml'] == {
'in': './tests/testfiles/{pathIn}.yaml',
'out': './tests/testfiles/out/{pathOut}.yaml',
'encoding': '{enc}'}
with open('./tests/testfiles/out/outsubst.yaml',
encoding='utf-32') as outfile:
yaml_loader = yaml.YAML(typ='rt', pure=True)
outcontents = yaml_loader.load(outfile)
expected = {
'key': 'v1value1 !£$%# *',
'key2v2': 'blah',
# there is a comment here
'key3': [
'l1',
# and another
'!£$% * v3',
'l2', ['l31v4',
{'l32': ['l321',
'l322v5']
}
]
]
}
assert outcontents == expected
| 27.133929 | 79 | 0.507568 | 1,273 | 12,156 | 4.794187 | 0.098979 | 0.077994 | 0.05571 | 0.025561 | 0.878584 | 0.854334 | 0.838768 | 0.823038 | 0.810093 | 0.807963 | 0 | 0.046695 | 0.321734 | 12,156 | 447 | 80 | 27.194631 | 0.690115 | 0.05561 | 0 | 0.772222 | 0 | 0 | 0.346821 | 0.112454 | 0 | 0 | 0 | 0 | 0.111111 | 1 | 0.025 | false | 0.016667 | 0.016667 | 0 | 0.041667 | 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 |
e70167a1e6e8547a311489aa59537c6fd90139dd | 155 | py | Python | api/__init__.py | veken1199/CityLibraries | f1097c7b081acdd74f35c7aa04e2fed2ecb16e85 | [
"MIT"
] | null | null | null | api/__init__.py | veken1199/CityLibraries | f1097c7b081acdd74f35c7aa04e2fed2ecb16e85 | [
"MIT"
] | 8 | 2019-02-13T03:42:19.000Z | 2022-02-17T19:18:49.000Z | api/__init__.py | veken1199/CityLibraries | f1097c7b081acdd74f35c7aa04e2fed2ecb16e85 | [
"MIT"
] | null | null | null | from .cities_handler import cities_handler_blueprint
from .image_handler import image_handler_blueprint
from .query_handler import query_handler_blueprint
| 38.75 | 52 | 0.903226 | 21 | 155 | 6.238095 | 0.333333 | 0.29771 | 0.305344 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.077419 | 155 | 3 | 53 | 51.666667 | 0.916084 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 1 | 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 | 1 | 0 | 8 |
e728cf0cd39ed0da8a916ee5cd49cfc28ae1b3c6 | 844 | py | Python | temboo/core/Library/GovTrack/__init__.py | jordanemedlock/psychtruths | 52e09033ade9608bd5143129f8a1bfac22d634dd | [
"Apache-2.0"
] | 7 | 2016-03-07T02:07:21.000Z | 2022-01-21T02:22:41.000Z | temboo/core/Library/GovTrack/__init__.py | jordanemedlock/psychtruths | 52e09033ade9608bd5143129f8a1bfac22d634dd | [
"Apache-2.0"
] | null | null | null | temboo/core/Library/GovTrack/__init__.py | jordanemedlock/psychtruths | 52e09033ade9608bd5143129f8a1bfac22d634dd | [
"Apache-2.0"
] | 8 | 2016-06-14T06:01:11.000Z | 2020-04-22T09:21:44.000Z | from temboo.Library.GovTrack.Bill import Bill, BillInputSet, BillResultSet, BillChoreographyExecution
from temboo.Library.GovTrack.Committee import Committee, CommitteeInputSet, CommitteeResultSet, CommitteeChoreographyExecution
from temboo.Library.GovTrack.CommitteeMember import CommitteeMember, CommitteeMemberInputSet, CommitteeMemberResultSet, CommitteeMemberChoreographyExecution
from temboo.Library.GovTrack.Person import Person, PersonInputSet, PersonResultSet, PersonChoreographyExecution
from temboo.Library.GovTrack.Role import Role, RoleInputSet, RoleResultSet, RoleChoreographyExecution
from temboo.Library.GovTrack.Vote import Vote, VoteInputSet, VoteResultSet, VoteChoreographyExecution
from temboo.Library.GovTrack.VoteAndVoter import VoteAndVoter, VoteAndVoterInputSet, VoteAndVoterResultSet, VoteAndVoterChoreographyExecution
| 105.5 | 156 | 0.89218 | 70 | 844 | 10.757143 | 0.471429 | 0.092961 | 0.158035 | 0.232404 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058057 | 844 | 7 | 157 | 120.571429 | 0.94717 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
e72ec5ee25772c48c5c88545ffe939bb174d816b | 493 | py | Python | colors.py | DTSCode/rpn | f156b8acfde61111b9f9bbfb4a329159e29452f1 | [
"MIT"
] | null | null | null | colors.py | DTSCode/rpn | f156b8acfde61111b9f9bbfb4a329159e29452f1 | [
"MIT"
] | null | null | null | colors.py | DTSCode/rpn | f156b8acfde61111b9f9bbfb4a329159e29452f1 | [
"MIT"
] | null | null | null | def green(text):
return "\033[1;32m" + text + "\033[1;m"
def red(text):
return "\033[1;31m" + text + "\033[1;m"
def blue(text):
return "\033[1;34m" + text + "\033[1;m"
def yellow(text):
return "\033[1;33m" + text + "\033[1;m"
def gray(text):
return "\033[1;30m" + text + "\033[1;m"
def magenta(text):
return "\033[1;35m" + text + "\033[1;m"
def cyan(text):
return "\033[1;36m" + text + "\033[1;m"
def white(text):
return "\033[1;37m" + text + "\033[1;m"
| 20.541667 | 43 | 0.547667 | 88 | 493 | 3.068182 | 0.25 | 0.237037 | 0.385185 | 0.414815 | 0.311111 | 0 | 0 | 0 | 0 | 0 | 0 | 0.205128 | 0.208925 | 493 | 23 | 44 | 21.434783 | 0.487179 | 0 | 0 | 0 | 0 | 0 | 0.292089 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0.5 | 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 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 8 |
e7b7263a53491713476dcce9ae175af038dbef45 | 679 | py | Python | scripts/example_hough_transform.py | Molecular-Image-Recognition/Molecular-Image-Recognition | 413e74bb526f56077cd5f70bb41fb7a075636174 | [
"MIT"
] | 7 | 2017-10-04T16:04:14.000Z | 2021-03-27T21:54:41.000Z | scripts/example_hough_transform.py | tiger-tiger/Molecular-Image-Recognition | 413e74bb526f56077cd5f70bb41fb7a075636174 | [
"MIT"
] | null | null | null | scripts/example_hough_transform.py | tiger-tiger/Molecular-Image-Recognition | 413e74bb526f56077cd5f70bb41fb7a075636174 | [
"MIT"
] | 6 | 2017-10-04T15:37:05.000Z | 2021-12-29T06:50:16.000Z | import os
os.chdir('..')
from image_process.hough_transform import hough_transform_plots, get_hough_lines
# image = os.path.join(os.path.dirname(os.path.dirname(__file__)), 'data', 'hough_test', 'hexagon.JPG')
image = os.path.join(os.path.dirname(os.path.dirname(__file__)), 'data', 'hough_test', 'Test_Set_1', 'PNGs',
'C(C)C(CCCC)(C)C.png')
image = os.path.join(os.path.dirname(os.path.dirname(__file__)), 'data', 'hough_test', 'hexagon.JPG')
hough_transform_plots(image)
print get_hough_lines(os.path.join(os.path.dirname(os.path.dirname(__file__)), 'data', 'hough_test',
'Test_Set_1', 'PNGs', 'C(C)C(CCCC)(C)C.png'))
| 48.5 | 108 | 0.66863 | 105 | 679 | 4 | 0.247619 | 0.171429 | 0.247619 | 0.114286 | 0.702381 | 0.702381 | 0.702381 | 0.702381 | 0.702381 | 0.702381 | 0 | 0.003431 | 0.141384 | 679 | 13 | 109 | 52.230769 | 0.716981 | 0.148748 | 0 | 0 | 0 | 0 | 0.210069 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.222222 | null | null | 0.111111 | 0 | 0 | 0 | null | 0 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
e7cc6804dc880bc88017359e0e1af1e50dddfc9b | 110 | py | Python | cd-scripts/__init__.py | terradacs/beos-core | 31e19170bcad573b1d498811284e62babd478f92 | [
"MIT"
] | 9 | 2019-04-04T18:46:14.000Z | 2022-03-03T16:22:56.000Z | cd-scripts/__init__.py | terradacs/beos-core | 31e19170bcad573b1d498811284e62babd478f92 | [
"MIT"
] | null | null | null | cd-scripts/__init__.py | terradacs/beos-core | 31e19170bcad573b1d498811284e62babd478f92 | [
"MIT"
] | 3 | 2019-03-19T17:45:08.000Z | 2021-03-22T21:45:35.000Z | from . import config
from . import eosio_tools
from . import eosio_rpc_client
from . import eosio_rpc_actions
| 22 | 31 | 0.818182 | 17 | 110 | 5 | 0.470588 | 0.470588 | 0.529412 | 0.423529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.145455 | 110 | 4 | 32 | 27.5 | 0.904255 | 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 |
e7d450e0be29cdff02132f97ce4b8af84911517d | 4,695 | py | Python | models/resnet.py | leonieganswindt/RetinaNet | 1cf27bbb51d369d23f2fb6ec151cef2fe18b03e2 | [
"MIT"
] | 12 | 2018-12-28T14:40:57.000Z | 2020-11-19T15:01:23.000Z | models/resnet.py | dun933/RetinaNet-Text-Detection | 7fa65bb945b665b461fc798775dcf29ebf52f615 | [
"MIT"
] | 2 | 2019-02-22T02:10:28.000Z | 2019-09-17T13:24:48.000Z | models/resnet.py | dun933/RetinaNet-Text-Detection | 7fa65bb945b665b461fc798775dcf29ebf52f615 | [
"MIT"
] | 2 | 2018-12-06T17:52:19.000Z | 2019-11-27T10:20:37.000Z | """
Basemodel: ResNet
"""
import torch
from torchvision.models import resnet
import torch.nn as nn
Bottleneck = resnet.Bottleneck
class ResNet50Stages(nn.Module):
def __init__(self, pretrained_path):
super(ResNet50Stages, self).__init__()
self.inplanes = 64
self.stages = [3, 4, 6, 3]
self.mid_outputs = [64, 128, 256, 512]
self.conv1 = nn.Conv2d(3, 64, kernel_size=7, stride=2, padding=3,
bias=False)
self.bn1 = nn.BatchNorm2d(64)
self.relu = nn.ReLU(inplace=True)
self.maxpool = nn.MaxPool2d(kernel_size=3, stride=2, padding=1)
self.layer1 = self._make_layer(Bottleneck, self.mid_outputs[0], self.stages[0])
self.layer2 = self._make_layer(Bottleneck, self.mid_outputs[1], self.stages[1], stride=2)
self.layer3 = self._make_layer(Bottleneck, self.mid_outputs[2], self.stages[2], stride=2)
self.layer4 = self._make_layer(Bottleneck, self.mid_outputs[3], self.stages[3], stride=2)
# self.load_state_dict(torch.load(pretrained_path))
self.load_pretrained(pretrained_path)
def _make_layer(self, block, planes, blocks, stride=1):
downsample = None
if stride != 1 or self.inplanes != planes * block.expansion:
downsample = nn.Sequential(
nn.Conv2d(self.inplanes, planes * block.expansion,
kernel_size=1, stride=stride, bias=False),
nn.BatchNorm2d(planes * block.expansion),
)
layers = []
layers.append(block(self.inplanes, planes, stride, downsample))
self.inplanes = planes * block.expansion
for i in range(1, blocks):
layers.append(block(self.inplanes, planes))
return nn.Sequential(*layers)
def freeze_bn(self):
pass
def load_pretrained(self, mpath):
pretrained_dict = torch.load(mpath)
model_dict = self.state_dict()
pretrained_dict = {k: v for k, v in pretrained_dict.items() if k in model_dict}
self.load_state_dict(pretrained_dict)
def forward(self, x):
x = self.conv1(x)
x = self.bn1(x)
x = self.relu(x)
x = self.maxpool(x)
x1 = self.layer1(x)
x2 = self.layer2(x1)
x3 = self.layer3(x2)
x4 = self.layer4(x3)
return [x2, x3, x4]
class ResNet50(nn.Module):
def __init__(self, pretrained_path):
super(ResNet50, self).__init__()
self.layers = ResNet50Stages(pretrained_path)
def forward(self, x):
return self.layers(x)[-1]
class ResNet50C4(nn.Module):
def __init__(self, pretrained_path):
super(ResNet50C4, self).__init__()
self.inplanes = 64
self.stages = [3, 4, 6]
self.mid_outputs = [64, 128, 256, 512]
self.conv1 = nn.Conv2d(3, 64, kernel_size=7, stride=2, padding=3,
bias=False)
self.bn1 = nn.BatchNorm2d(64)
self.relu = nn.ReLU(inplace=True)
self.maxpool = nn.MaxPool2d(kernel_size=3, stride=2, padding=1)
self.layer1 = self._make_layer(Bottleneck, self.mid_outputs[0], self.stages[0])
self.layer2 = self._make_layer(Bottleneck, self.mid_outputs[1], self.stages[1], stride=2)
self.layer3 = self._make_layer(Bottleneck, self.mid_outputs[2], self.stages[2], stride=2)
# self.load_state_dict(torch.load(pretrained_path))
self.load_pretrained(pretrained_path)
def _make_layer(self, block, planes, blocks, stride=1):
downsample = None
if stride != 1 or self.inplanes != planes * block.expansion:
downsample = nn.Sequential(
nn.Conv2d(self.inplanes, planes * block.expansion,
kernel_size=1, stride=stride, bias=False),
nn.BatchNorm2d(planes * block.expansion),
)
layers = []
layers.append(block(self.inplanes, planes, stride, downsample))
self.inplanes = planes * block.expansion
for i in range(1, blocks):
layers.append(block(self.inplanes, planes))
return nn.Sequential(*layers)
def freeze_bn(self):
pass
def load_pretrained(self, mpath):
pretrained_dict = torch.load(mpath)
model_dict = self.state_dict()
pretrained_dict = {k: v for k, v in pretrained_dict.items() if k in model_dict}
self.load_state_dict(pretrained_dict)
def forward(self, x):
x = self.conv1(x)
x = self.bn1(x)
x = self.relu(x)
x = self.maxpool(x)
x1 = self.layer1(x)
x2 = self.layer2(x1)
x3 = self.layer3(x2)
return x3
| 33.535714 | 97 | 0.608307 | 604 | 4,695 | 4.574503 | 0.149007 | 0.052117 | 0.065147 | 0.05827 | 0.886717 | 0.886717 | 0.886717 | 0.873326 | 0.832067 | 0.832067 | 0 | 0.043071 | 0.273056 | 4,695 | 139 | 98 | 33.776978 | 0.766481 | 0.025133 | 0 | 0.803922 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0.019608 | 0.029412 | 0.009804 | 0.22549 | 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 |
e7dc833672f3682b8ba74bfaad60bc1cc97231b1 | 128 | py | Python | gym-bci-typing/gym_bci_typing/envs/__init__.py | jensen-gao/x2t | 20af1bbce4bca17c2088d324a2f13cdd9c0e76a3 | [
"MIT"
] | 1 | 2022-03-27T19:58:19.000Z | 2022-03-27T19:58:19.000Z | gym-bci-typing/gym_bci_typing/envs/__init__.py | jensen-gao/x2t | 20af1bbce4bca17c2088d324a2f13cdd9c0e76a3 | [
"MIT"
] | null | null | null | gym-bci-typing/gym_bci_typing/envs/__init__.py | jensen-gao/x2t | 20af1bbce4bca17c2088d324a2f13cdd9c0e76a3 | [
"MIT"
] | null | null | null | from gym_bci_typing.envs.char_typing_env import CharTypingEnv
from gym_bci_typing.envs.radial_typing_env import RadialTypingEnv
| 42.666667 | 65 | 0.90625 | 20 | 128 | 5.4 | 0.55 | 0.12963 | 0.185185 | 0.296296 | 0.37037 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0625 | 128 | 2 | 66 | 64 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 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 |
419a7df814aab0cdc8fd3f07e161f8d91ff9ee79 | 162 | py | Python | Chapter_1/stringS.py | TravisLeeWolf/ATBS | 9075eabaa0a788f58435eff9e0df488806a0770b | [
"Apache-2.0"
] | null | null | null | Chapter_1/stringS.py | TravisLeeWolf/ATBS | 9075eabaa0a788f58435eff9e0df488806a0770b | [
"Apache-2.0"
] | null | null | null | Chapter_1/stringS.py | TravisLeeWolf/ATBS | 9075eabaa0a788f58435eff9e0df488806a0770b | [
"Apache-2.0"
] | null | null | null | # String Concatenation
print('Alice + Bob')
print('Alice' + 'Bob')
print('Alice + 5 using str')
print('Alice' + str('5'))
print('Alice * 5')
print('Alice' * 5)
| 16.2 | 28 | 0.617284 | 23 | 162 | 4.347826 | 0.347826 | 0.6 | 0.33 | 0.36 | 0.36 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029197 | 0.154321 | 162 | 9 | 29 | 18 | 0.70073 | 0.123457 | 0 | 0 | 0 | 0 | 0.414286 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 1 | 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 | 0 | 0 | 0 | 1 | 0 | 7 |
68fdd1145f44d27b81e25e9d3157fdfa96417ed2 | 178 | py | Python | models/backbones/__init__.py | 18AdrianoH/SimSiam | 5567fad2b6f20e2c36bc29f16e756b27b41494c9 | [
"MIT"
] | null | null | null | models/backbones/__init__.py | 18AdrianoH/SimSiam | 5567fad2b6f20e2c36bc29f16e756b27b41494c9 | [
"MIT"
] | null | null | null | models/backbones/__init__.py | 18AdrianoH/SimSiam | 5567fad2b6f20e2c36bc29f16e756b27b41494c9 | [
"MIT"
] | null | null | null | from .cifar_resnet_1 import resnet18 as resnet18_cifar_variant1
from .cifar_resnet_2 import ResNet18 as resnet18_cifar_variant2
from .mnist_adriano import SimpleCNN as mnist_cnn
| 44.5 | 63 | 0.882022 | 28 | 178 | 5.25 | 0.5 | 0.122449 | 0.204082 | 0.326531 | 0.394558 | 0 | 0 | 0 | 0 | 0 | 0 | 0.075 | 0.101124 | 178 | 3 | 64 | 59.333333 | 0.84375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 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 |
ec4697906205dadfd05237de49b6d7635a0f40e6 | 77 | py | Python | tests/import/import_pkg3.py | sebastien-riou/micropython | 116c15842fd48ddb77b0bc016341d936a0756573 | [
"MIT"
] | 13,648 | 2015-01-01T01:34:51.000Z | 2022-03-31T16:19:53.000Z | tests/import/import_pkg3.py | sebastien-riou/micropython | 116c15842fd48ddb77b0bc016341d936a0756573 | [
"MIT"
] | 7,092 | 2015-01-01T07:59:11.000Z | 2022-03-31T23:52:18.000Z | tests/import/import_pkg3.py | sebastien-riou/micropython | 116c15842fd48ddb77b0bc016341d936a0756573 | [
"MIT"
] | 4,942 | 2015-01-02T11:48:50.000Z | 2022-03-31T19:57:10.000Z | from pkg import mod
print(mod.foo())
import pkg.mod
print(mod is pkg.mod)
| 9.625 | 21 | 0.714286 | 15 | 77 | 3.666667 | 0.466667 | 0.290909 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.168831 | 77 | 7 | 22 | 11 | 0.859375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0.5 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 7 |
6b5de57fc175b953a8f9d381ed76e7ca83052ce9 | 253 | py | Python | common/file_wrapper_transform.py | seansegal/fastMRI | 44ebd517d792c5f6e66c64c004d0e0603057e7e1 | [
"MIT"
] | 2 | 2019-04-17T22:31:21.000Z | 2019-05-28T10:28:01.000Z | common/file_wrapper_transform.py | seansegal/fastMRI | 44ebd517d792c5f6e66c64c004d0e0603057e7e1 | [
"MIT"
] | null | null | null | common/file_wrapper_transform.py | seansegal/fastMRI | 44ebd517d792c5f6e66c64c004d0e0603057e7e1 | [
"MIT"
] | null | null | null | class FileWrapperTransform:
def __init__(self, data_transform):
self.transform = data_transform
def __call__(self, kspace, target, attrs, fname, slice):
return self.transform(kspace, target, attrs, fname, slice) + (fname, slice) | 42.166667 | 83 | 0.70751 | 29 | 253 | 5.827586 | 0.482759 | 0.177515 | 0.201183 | 0.260355 | 0.319527 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.189723 | 253 | 6 | 83 | 42.166667 | 0.82439 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0 | 0.2 | 0.8 | 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 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 7 |
6b5fec26a4a8d3d4183ccf5d8d17eb3c54a87b28 | 17,760 | py | Python | sdk/python/pulumi_gcp/datastore/data_store_index.py | sisisin/pulumi-gcp | af6681d70ea457843409110c1324817fe55f68ad | [
"ECL-2.0",
"Apache-2.0"
] | 121 | 2018-06-18T19:16:42.000Z | 2022-03-31T06:06:48.000Z | sdk/python/pulumi_gcp/datastore/data_store_index.py | sisisin/pulumi-gcp | af6681d70ea457843409110c1324817fe55f68ad | [
"ECL-2.0",
"Apache-2.0"
] | 492 | 2018-06-22T19:41:03.000Z | 2022-03-31T15:33:53.000Z | sdk/python/pulumi_gcp/datastore/data_store_index.py | sisisin/pulumi-gcp | af6681d70ea457843409110c1324817fe55f68ad | [
"ECL-2.0",
"Apache-2.0"
] | 43 | 2018-06-19T01:43:13.000Z | 2022-03-23T22:43:37.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__ = ['DataStoreIndexArgs', 'DataStoreIndex']
@pulumi.input_type
class DataStoreIndexArgs:
def __init__(__self__, *,
kind: pulumi.Input[str],
ancestor: Optional[pulumi.Input[str]] = None,
project: Optional[pulumi.Input[str]] = None,
properties: Optional[pulumi.Input[Sequence[pulumi.Input['DataStoreIndexPropertyArgs']]]] = None):
"""
The set of arguments for constructing a DataStoreIndex resource.
:param pulumi.Input[str] kind: The entity kind which the index applies to.
:param pulumi.Input[str] ancestor: Policy for including ancestors in the index.
Default value is `NONE`.
Possible values are `NONE` and `ALL_ANCESTORS`.
:param pulumi.Input[str] project: The ID of the project in which the resource belongs.
If it is not provided, the provider project is used.
:param pulumi.Input[Sequence[pulumi.Input['DataStoreIndexPropertyArgs']]] properties: An ordered list of properties to index on.
Structure is documented below.
"""
pulumi.set(__self__, "kind", kind)
if ancestor is not None:
pulumi.set(__self__, "ancestor", ancestor)
if project is not None:
pulumi.set(__self__, "project", project)
if properties is not None:
pulumi.set(__self__, "properties", properties)
@property
@pulumi.getter
def kind(self) -> pulumi.Input[str]:
"""
The entity kind which the index applies to.
"""
return pulumi.get(self, "kind")
@kind.setter
def kind(self, value: pulumi.Input[str]):
pulumi.set(self, "kind", value)
@property
@pulumi.getter
def ancestor(self) -> Optional[pulumi.Input[str]]:
"""
Policy for including ancestors in the index.
Default value is `NONE`.
Possible values are `NONE` and `ALL_ANCESTORS`.
"""
return pulumi.get(self, "ancestor")
@ancestor.setter
def ancestor(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "ancestor", value)
@property
@pulumi.getter
def project(self) -> Optional[pulumi.Input[str]]:
"""
The ID of the project in which the resource belongs.
If it is not provided, the provider project is used.
"""
return pulumi.get(self, "project")
@project.setter
def project(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "project", value)
@property
@pulumi.getter
def properties(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['DataStoreIndexPropertyArgs']]]]:
"""
An ordered list of properties to index on.
Structure is documented below.
"""
return pulumi.get(self, "properties")
@properties.setter
def properties(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['DataStoreIndexPropertyArgs']]]]):
pulumi.set(self, "properties", value)
@pulumi.input_type
class _DataStoreIndexState:
def __init__(__self__, *,
ancestor: Optional[pulumi.Input[str]] = None,
index_id: Optional[pulumi.Input[str]] = None,
kind: Optional[pulumi.Input[str]] = None,
project: Optional[pulumi.Input[str]] = None,
properties: Optional[pulumi.Input[Sequence[pulumi.Input['DataStoreIndexPropertyArgs']]]] = None):
"""
Input properties used for looking up and filtering DataStoreIndex resources.
:param pulumi.Input[str] ancestor: Policy for including ancestors in the index.
Default value is `NONE`.
Possible values are `NONE` and `ALL_ANCESTORS`.
:param pulumi.Input[str] index_id: The index id.
:param pulumi.Input[str] kind: The entity kind which the index applies to.
:param pulumi.Input[str] project: The ID of the project in which the resource belongs.
If it is not provided, the provider project is used.
:param pulumi.Input[Sequence[pulumi.Input['DataStoreIndexPropertyArgs']]] properties: An ordered list of properties to index on.
Structure is documented below.
"""
if ancestor is not None:
pulumi.set(__self__, "ancestor", ancestor)
if index_id is not None:
pulumi.set(__self__, "index_id", index_id)
if kind is not None:
pulumi.set(__self__, "kind", kind)
if project is not None:
pulumi.set(__self__, "project", project)
if properties is not None:
pulumi.set(__self__, "properties", properties)
@property
@pulumi.getter
def ancestor(self) -> Optional[pulumi.Input[str]]:
"""
Policy for including ancestors in the index.
Default value is `NONE`.
Possible values are `NONE` and `ALL_ANCESTORS`.
"""
return pulumi.get(self, "ancestor")
@ancestor.setter
def ancestor(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "ancestor", value)
@property
@pulumi.getter(name="indexId")
def index_id(self) -> Optional[pulumi.Input[str]]:
"""
The index id.
"""
return pulumi.get(self, "index_id")
@index_id.setter
def index_id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "index_id", value)
@property
@pulumi.getter
def kind(self) -> Optional[pulumi.Input[str]]:
"""
The entity kind which the index applies to.
"""
return pulumi.get(self, "kind")
@kind.setter
def kind(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "kind", value)
@property
@pulumi.getter
def project(self) -> Optional[pulumi.Input[str]]:
"""
The ID of the project in which the resource belongs.
If it is not provided, the provider project is used.
"""
return pulumi.get(self, "project")
@project.setter
def project(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "project", value)
@property
@pulumi.getter
def properties(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['DataStoreIndexPropertyArgs']]]]:
"""
An ordered list of properties to index on.
Structure is documented below.
"""
return pulumi.get(self, "properties")
@properties.setter
def properties(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['DataStoreIndexPropertyArgs']]]]):
pulumi.set(self, "properties", value)
class DataStoreIndex(pulumi.CustomResource):
@overload
def __init__(__self__,
resource_name: str,
opts: Optional[pulumi.ResourceOptions] = None,
ancestor: Optional[pulumi.Input[str]] = None,
kind: Optional[pulumi.Input[str]] = None,
project: Optional[pulumi.Input[str]] = None,
properties: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['DataStoreIndexPropertyArgs']]]]] = None,
__props__=None):
"""
Describes a composite index for Cloud Datastore.
To get more information about Index, see:
* [API documentation](https://cloud.google.com/datastore/docs/reference/admin/rest/v1/projects.indexes)
* How-to Guides
* [Official Documentation](https://cloud.google.com/datastore/docs/concepts/indexes)
> **Warning:** This resource creates a Datastore Index on a project that has already
enabled a Datastore-compatible database. If you haven't already enabled
one, you can create a `appengine.Application` resource with
`database_type` set to `"CLOUD_DATASTORE_COMPATIBILITY"` to do so. Your
Datastore location will be the same as the App Engine location specified.
## Example Usage
### Datastore Index
```python
import pulumi
import pulumi_gcp as gcp
default = gcp.datastore.DataStoreIndex("default",
kind="foo",
properties=[
gcp.datastore.DataStoreIndexPropertyArgs(
direction="ASCENDING",
name="property_a",
),
gcp.datastore.DataStoreIndexPropertyArgs(
direction="ASCENDING",
name="property_b",
),
])
```
## Import
Index can be imported using any of these accepted formats
```sh
$ pulumi import gcp:datastore/dataStoreIndex:DataStoreIndex default projects/{{project}}/indexes/{{index_id}}
```
```sh
$ pulumi import gcp:datastore/dataStoreIndex:DataStoreIndex default {{project}}/{{index_id}}
```
```sh
$ pulumi import gcp:datastore/dataStoreIndex:DataStoreIndex default {{index_id}}
```
:param str resource_name: The name of the resource.
:param pulumi.ResourceOptions opts: Options for the resource.
:param pulumi.Input[str] ancestor: Policy for including ancestors in the index.
Default value is `NONE`.
Possible values are `NONE` and `ALL_ANCESTORS`.
:param pulumi.Input[str] kind: The entity kind which the index applies to.
:param pulumi.Input[str] project: The ID of the project in which the resource belongs.
If it is not provided, the provider project is used.
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['DataStoreIndexPropertyArgs']]]] properties: An ordered list of properties to index on.
Structure is documented below.
"""
...
@overload
def __init__(__self__,
resource_name: str,
args: DataStoreIndexArgs,
opts: Optional[pulumi.ResourceOptions] = None):
"""
Describes a composite index for Cloud Datastore.
To get more information about Index, see:
* [API documentation](https://cloud.google.com/datastore/docs/reference/admin/rest/v1/projects.indexes)
* How-to Guides
* [Official Documentation](https://cloud.google.com/datastore/docs/concepts/indexes)
> **Warning:** This resource creates a Datastore Index on a project that has already
enabled a Datastore-compatible database. If you haven't already enabled
one, you can create a `appengine.Application` resource with
`database_type` set to `"CLOUD_DATASTORE_COMPATIBILITY"` to do so. Your
Datastore location will be the same as the App Engine location specified.
## Example Usage
### Datastore Index
```python
import pulumi
import pulumi_gcp as gcp
default = gcp.datastore.DataStoreIndex("default",
kind="foo",
properties=[
gcp.datastore.DataStoreIndexPropertyArgs(
direction="ASCENDING",
name="property_a",
),
gcp.datastore.DataStoreIndexPropertyArgs(
direction="ASCENDING",
name="property_b",
),
])
```
## Import
Index can be imported using any of these accepted formats
```sh
$ pulumi import gcp:datastore/dataStoreIndex:DataStoreIndex default projects/{{project}}/indexes/{{index_id}}
```
```sh
$ pulumi import gcp:datastore/dataStoreIndex:DataStoreIndex default {{project}}/{{index_id}}
```
```sh
$ pulumi import gcp:datastore/dataStoreIndex:DataStoreIndex default {{index_id}}
```
:param str resource_name: The name of the resource.
:param DataStoreIndexArgs 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(DataStoreIndexArgs, 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,
ancestor: Optional[pulumi.Input[str]] = None,
kind: Optional[pulumi.Input[str]] = None,
project: Optional[pulumi.Input[str]] = None,
properties: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['DataStoreIndexPropertyArgs']]]]] = 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__ = DataStoreIndexArgs.__new__(DataStoreIndexArgs)
__props__.__dict__["ancestor"] = ancestor
if kind is None and not opts.urn:
raise TypeError("Missing required property 'kind'")
__props__.__dict__["kind"] = kind
__props__.__dict__["project"] = project
__props__.__dict__["properties"] = properties
__props__.__dict__["index_id"] = None
super(DataStoreIndex, __self__).__init__(
'gcp:datastore/dataStoreIndex:DataStoreIndex',
resource_name,
__props__,
opts)
@staticmethod
def get(resource_name: str,
id: pulumi.Input[str],
opts: Optional[pulumi.ResourceOptions] = None,
ancestor: Optional[pulumi.Input[str]] = None,
index_id: Optional[pulumi.Input[str]] = None,
kind: Optional[pulumi.Input[str]] = None,
project: Optional[pulumi.Input[str]] = None,
properties: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['DataStoreIndexPropertyArgs']]]]] = None) -> 'DataStoreIndex':
"""
Get an existing DataStoreIndex 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] ancestor: Policy for including ancestors in the index.
Default value is `NONE`.
Possible values are `NONE` and `ALL_ANCESTORS`.
:param pulumi.Input[str] index_id: The index id.
:param pulumi.Input[str] kind: The entity kind which the index applies to.
:param pulumi.Input[str] project: The ID of the project in which the resource belongs.
If it is not provided, the provider project is used.
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['DataStoreIndexPropertyArgs']]]] properties: An ordered list of properties to index on.
Structure is documented below.
"""
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
__props__ = _DataStoreIndexState.__new__(_DataStoreIndexState)
__props__.__dict__["ancestor"] = ancestor
__props__.__dict__["index_id"] = index_id
__props__.__dict__["kind"] = kind
__props__.__dict__["project"] = project
__props__.__dict__["properties"] = properties
return DataStoreIndex(resource_name, opts=opts, __props__=__props__)
@property
@pulumi.getter
def ancestor(self) -> pulumi.Output[Optional[str]]:
"""
Policy for including ancestors in the index.
Default value is `NONE`.
Possible values are `NONE` and `ALL_ANCESTORS`.
"""
return pulumi.get(self, "ancestor")
@property
@pulumi.getter(name="indexId")
def index_id(self) -> pulumi.Output[str]:
"""
The index id.
"""
return pulumi.get(self, "index_id")
@property
@pulumi.getter
def kind(self) -> pulumi.Output[str]:
"""
The entity kind which the index applies to.
"""
return pulumi.get(self, "kind")
@property
@pulumi.getter
def project(self) -> pulumi.Output[str]:
"""
The ID of the project in which the resource belongs.
If it is not provided, the provider project is used.
"""
return pulumi.get(self, "project")
@property
@pulumi.getter
def properties(self) -> pulumi.Output[Optional[Sequence['outputs.DataStoreIndexProperty']]]:
"""
An ordered list of properties to index on.
Structure is documented below.
"""
return pulumi.get(self, "properties")
| 39.820628 | 154 | 0.623029 | 1,945 | 17,760 | 5.532648 | 0.108997 | 0.076666 | 0.061147 | 0.057244 | 0.819905 | 0.80039 | 0.777623 | 0.7661 | 0.76136 | 0.750023 | 0 | 0.000234 | 0.276858 | 17,760 | 445 | 155 | 39.910112 | 0.837655 | 0.415709 | 0 | 0.673575 | 1 | 0 | 0.097322 | 0.034541 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15544 | false | 0.005181 | 0.036269 | 0 | 0.284974 | 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 |
6b6ac49a88314c76dfd9201f39ec4955cae336ae | 52,666 | py | Python | ec_grasp_planner/src/RBOHandRecipesWAM.py | SoMa-Project/ec_grasp_planner | 130a476cb46fcc3b5b405540b3a6e0080bbbda03 | [
"BSD-3-Clause"
] | 7 | 2017-11-12T05:57:15.000Z | 2021-10-01T19:28:27.000Z | ec_grasp_planner/src/RBOHandRecipesWAM.py | SoMa-Project/ec_grasp_planner | 130a476cb46fcc3b5b405540b3a6e0080bbbda03 | [
"BSD-3-Clause"
] | 36 | 2017-04-21T10:56:27.000Z | 2020-12-03T10:39:30.000Z | ec_grasp_planner/src/RBOHandRecipesWAM.py | SoMa-Project/ec_grasp_planner | 130a476cb46fcc3b5b405540b3a6e0080bbbda03 | [
"BSD-3-Clause"
] | 3 | 2017-06-07T10:52:14.000Z | 2019-07-08T05:44:13.000Z | import numpy as np
import hatools.components as ha
import math
from tf import transformations as tra
from grasp_success_estimator import RESPONSES
def create_surface_grasp(chosen_object, handarm_params, pregrasp_transform, alternative_behavior=None):
object_type = chosen_object['type']
# Get the relevant parameters for hand object combination
if object_type in handarm_params['SurfaceGrasp']:
params = handarm_params['SurfaceGrasp'][object_type]
else:
params = handarm_params['SurfaceGrasp']['object']
# ############################ #
# Get params per phase
# ############################ #
# -- Approach phase --
# Move to initial joint config that is better than vision config w.r.t. proximity to joint limits
# TODO get rid of this workaround since we actually have joint space planning capabilities
initial_jointConf = params['initial_goal']
# Pre-Grasp modification (re-introducing hacky version for our WAM)
# The grasp frame is symmetrical - check which side is nicer to reach
# TODO: check if we can remove this part now, because of feasibilty check
param_pre_grasp = params['pre_approach_transform']
# goal_ is object_pose.dot(params['hand_transform'])
goal_ = pregrasp_transform.dot(tra.inverse_matrix(param_pre_grasp))
# hacky check (if feasibility is on, this is already ensured, otherwise we need this for the basic heuristic)
if goal_[0][0] < 0:
zflip_transform = tra.rotation_matrix(math.radians(180.0), [0, 0, 1])
goal_ = goal_.dot(zflip_transform)
pregrasp_transform = goal_.dot(param_pre_grasp)
# Pre-Grasp modification end TODO get rid of it
pre_grasp_velocity = params['pre_approach_velocity']
pre_grasp_joint_velocity = params['pre_approach_joint_velocity']
# force threshold that if reached will trigger the closing of the hand
downward_force_thresh = np.array([0, 0, params['downward_force'], 0, 0, 0])
down_dist = params['down_dist']
down_dir = tra.translation_matrix([0, 0, -down_dist])
go_down_velocity = params['go_down_velocity']
go_down_joint_velocity = params['go_down_joint_velocity']
# -- Grasping phase --
# the 1 in softhand_close_1 represents a surface grasp. This way the strategy is encoded in the HA.
hand_synergy = params['hand_closing_synergy']
mode_name_hand_closing = 'softhand_close_1_' + str(hand_synergy)
hand_closing_duration = params['hand_closing_duration']
# -- Post-grasping phase --
post_grasp_transform = params['post_grasp_transform']
success_estimator_timeout = handarm_params['success_estimator_timeout']
# Set the frames to visualize with RViz # TODO bring that feature back to recipes
# rviz_frames = [object_frame, goal_, pre_grasp_pose]
# ############################ #
# Assemble controller sequence
# ############################ #
control_sequence = []
# 0. Initial position above ifco
control_sequence.append(
ha.JointControlMode(initial_jointConf, name='InitialJointConfig', controller_name='initialJointCtrl'))
# 0b. Joint config switch
control_sequence.append(ha.JointConfigurationSwitch('InitialJointConfig', 'softhand_preshape_1_1',
controller='initialJointCtrl', epsilon=str(math.radians(7.))))
# 1. Trigger pre-shaping the hand (if there is a synergy). The first 1 in the name represents a surface grasp.
control_sequence.append(ha.BlockJointControlMode(name='softhand_preshape_1_1'))
# 1b. Time to trigger pre-shape
control_sequence.append(ha.TimeSwitch('softhand_preshape_1_1', 'PreGrasp', duration=0.2))
# 2. Go above the object - PreGrasp
if alternative_behavior is not None and 'pre_approach' in alternative_behavior:
# we can not use the initially generated plan, but have to include the result of the feasibility checks
goal_traj = alternative_behavior['pre_approach'].get_trajectory()
print("Use alternative GOAL_TRAJ PreApproach Dim", goal_traj.shape)
control_sequence.append(ha.JointControlMode(goal_traj, name='PreGrasp', controller_name='GoAboveObject',
goal_is_relative='0',
v_max=pre_grasp_joint_velocity,
# for the close trajectory points linear interpolation works best.
interpolation_type='linear'))
# 2b. Switch when hand reaches the goal configuration
control_sequence.append(ha.JointConfigurationSwitch('PreGrasp', 'PrepareForReferenceMassMeasurement',
controller='GoAboveObject', epsilon=str(math.radians(7.))))
else:
# we can use the original motion
control_sequence.append(ha.InterpolatedHTransformControlMode(pregrasp_transform,
name='PreGrasp',
controller_name='GoAboveObject',
goal_is_relative='0',
v_max=pre_grasp_velocity))
# 1b. Switch when hand reaches the goal pose
control_sequence.append(ha.FramePoseSwitch('PreGrasp', 'PrepareForReferenceMassMeasurement',
controller='GoAboveObject', epsilon='0.01'))
# 3. Hold current joint config
control_sequence.append(ha.BlockJointControlMode(name='PrepareForReferenceMassMeasurement'))
# 3b. Wait for a bit to allow vibrations to attenuate
control_sequence.append(ha.TimeSwitch('PrepareForReferenceMassMeasurement', 'ReferenceMassMeasurement',
duration=0.5))
# 4. Reference mass measurement with empty hand (TODO can this be replaced by offline calibration?)
control_sequence.append(ha.BlockJointControlMode(name='ReferenceMassMeasurement'))
# 4b. Switches when reference measurement was done
# 4b.1 Successful reference measurement
control_sequence.append(ha.RosTopicSwitch('ReferenceMassMeasurement', 'GoDown',
ros_topic_name='/graspSuccessEstimator/status', ros_topic_type='Float64',
goal=np.array([RESPONSES.REFERENCE_MEASUREMENT_SUCCESS.value]),
))
# 4b.2 The grasp success estimator module is inactive
control_sequence.append(ha.RosTopicSwitch('ReferenceMassMeasurement', 'GoDown',
ros_topic_name='/graspSuccessEstimator/status', ros_topic_type='Float64',
goal=np.array([RESPONSES.GRASP_SUCCESS_ESTIMATOR_INACTIVE.value]),
))
# 4b.3 Timeout (grasp success estimator module not started, an error occurred or it takes too long)
control_sequence.append(ha.TimeSwitch('ReferenceMassMeasurement', 'GoDown',
duration=success_estimator_timeout))
# 4b.4 There is no special switch for unknown error response (estimator signals REFERENCE_MEASUREMENT_FAILURE)
# Instead the timeout will trigger giving the user an opportunity to notice the erroneous result in the GUI.
# 5. Go down onto the object - Godown
if alternative_behavior is not None and 'go_down' in alternative_behavior:
# we can not use the initially generated plan, but have to include the result of the feasibility checks
# Go down onto the object (joint controller + relative world frame motion)
goal_traj = alternative_behavior['go_down'].get_trajectory()
print("Use alternative GOAL_TRAJ GoDown Dim:", goal_traj.shape) # TODO Check if the dimensions are correct and the via points are as expected
control_sequence.append(ha.JointControlMode(goal_traj, name='GoDown', controller_name='GoDown',
goal_is_relative='0',
v_max=go_down_joint_velocity,
# for the close trajectory points linear interpolation works best.
interpolation_type='linear'))
# Relative motion that ensures that the actual force/torque threshold is reached
control_sequence.append(
ha.InterpolatedHTransformControlMode(tra.translation_matrix([0, 0, -10]),
controller_name='GoDownFurther',
goal_is_relative='1',
name="GoDownFurther",
reference_frame="world",
v_max=go_down_velocity))
# Switch when goal is reached to trigger the relative go down further motion
control_sequence.append(ha.JointConfigurationSwitch('GoDown', 'GoDownFurther', controller='GoDown',
epsilon=str(math.radians(7.))))
# Force/Torque switch for the additional relative go down further
control_sequence.append(ha.ForceTorqueSwitch('GoDownFurther',
mode_name_hand_closing,
goal=downward_force_thresh,
norm_weights=np.array([0, 0, 1, 0, 0, 0]),
jump_criterion="THRESH_UPPER_BOUND",
goal_is_relative='1',
frame_id='world',
port='2'))
else:
# Go down onto the object (relative in world frame)
control_sequence.append(
ha.InterpolatedHTransformControlMode(down_dir,
controller_name='GoDown',
goal_is_relative='1',
name="GoDown",
reference_frame="world",
v_max=go_down_velocity))
# 5b. Force/Torque switch for GoDown (in both cases joint trajectory or op-space control)
control_sequence.append(ha.ForceTorqueSwitch('GoDown',
mode_name_hand_closing,
goal=downward_force_thresh,
norm_weights=np.array([0, 0, 1, 0, 0, 0]),
jump_criterion="THRESH_UPPER_BOUND",
goal_is_relative='1',
frame_id='world',
port='2'))
# 6. Call hand controller (maintain the position during grasp)
desired_displacement = np.array([[1.0, 0.0, 0.0, 0.0],
[0.0, 1.0, 0.0, 0.0],
[0.0, 0.0, 1.0, 0.0],
[0.0, 0.0, 0.0, 1.0]])
force_gradient = np.array([[1.0, 0.0, 0.0, 0.0],
[0.0, 1.0, 0.0, 0.0],
[0.0, 0.0, 1.0, 0.005],
[0.0, 0.0, 0.0, 1.0]])
desired_force_dimension = np.array([0.0, 0.0, 1.0, 0.0, 0.0, 0.0])
control_sequence.append(ha.HandControlMode_ForceHT(name=mode_name_hand_closing, synergy=hand_synergy,
desired_displacement=desired_displacement,
force_gradient=force_gradient,
desired_force_dimension=desired_force_dimension))
# 6b. Switch when hand closing time ends
control_sequence.append(ha.TimeSwitch(mode_name_hand_closing, 'PostGraspRotate', duration=hand_closing_duration))
# 7. Rotate hand after closing and before lifting it up relative to current hand pose
control_sequence.append(ha.HTransformControlMode(post_grasp_transform, controller_name='PostGraspRotate',
name='PostGraspRotate', goal_is_relative='1'))
# 7b. Switch when hand rotated for a bit
control_sequence.append(ha.FramePoseSwitch('PostGraspRotate', 'GoUp_1', controller='PostGraspRotate',
epsilon='0.01', goal_is_relative='1', reference_frame='EE'))
return control_sequence # TODO what about rviz_frames?
# ================================================================================================
def create_wall_grasp(chosen_object, wall_frame, handarm_params, pregrasp_transform, alternative_behavior=None):
# the pre-approach (pregrasp_transform) pose should be:
# - floating above and behind the object,
# - fingers pointing downwards
# - palm facing the object and wall
object_type = chosen_object['type']
# Get the relevant parameters for hand object combination
if object_type in handarm_params['WallGrasp']:
params = handarm_params['WallGrasp'][object_type]
else:
params = handarm_params['WallGrasp']['object']
# ############################ #
# Get params per phase
# ############################ #
# -- Approach phase --
initial_jointConf = params['initial_goal']
pre_approach_transform = pregrasp_transform
pre_grasp_joint_velocity = params['max_joint_velocity']
# ---- GoDown ----
# Force threshold for guarded GoDown motion
downward_force_thresh = np.array([0, 0, params['downward_force'], 0, 0, 0])
down_dist = params['down_dist']
down_dir = tra.translation_matrix([0, 0, -down_dist])
go_down_velocity = params['go_down_velocity']
go_down_joint_velocity = params['max_joint_velocity']
# ---- LiftHand ----
lift_dist = params['corrective_lift_dist']
lift_dir = tra.translation_matrix([0, 0, lift_dist])
lift_hand_joint_velocity = params['max_joint_velocity']
# ---- SlideToWall
wall_force = params['wall_force']
wall_force_threshold = np.array([0, 0, wall_force, 0, 0, 0])
# TODO sliding_distance should be computed from wall and hand frame.
sliding_dist = params['sliding_dist']
# slide direction is given by the normal of the wall
wall_dir = tra.translation_matrix([0, 0, -sliding_dist])
wall_dir[:3, 3] = wall_frame[:3, :3].dot(wall_dir[:3, 3])
slide_velocity = params['slide_velocity']
slide_joint_velocity = params['slide_joint_velocity']
soften_impact = params['soften_impact']
# -- Grasping phase --
# The 2 in softhand_close_2 represents a wall grasp. This way the strategy is encoded in the HA.
hand_synergy = params['hand_closing_synergy']
mode_name_hand_closing = 'softhand_close_2_' + str(hand_synergy)
hand_closing_duration = params['hand_closing_duration']
# -- Post-grasping phase --
post_grasp_transform = params['post_grasp_transform']
success_estimator_timeout = handarm_params['success_estimator_timeout']
# Set the frames to visualize with Rviz # TODO bring that feature back to recipes
# global rviz_frames
# rviz_frames = []
# rviz_frames.append(pre_approach_transform)
#
# transformation between hand and EC frame (which is positioned like object and oriented like wall) at grasp time
# hand_transform = params['hand_transform']
#
# this is the EC frame. It is positioned like object and oriented to the wall
# ec_frame = np.copy(wall_frame)
# ec_frame[:3, 3] = tra.translation_from_matrix(object_frame)
# apply hand transformation
# ec_frame = (ec_frame.dot(hand_transform))
#
# rviz_frames.append(ec_frame)
# rviz_frames.append(wall_frame)
# ############################ #
# Assemble controller sequence
# ############################ #
control_sequence = []
# 0. Initial position above ifco
control_sequence.append(
ha.JointControlMode(initial_jointConf, name='InitialJointConfig', controller_name='initialJointCtrl'))
# 0b. Joint config switch
control_sequence.append(ha.JointConfigurationSwitch('InitialJointConfig', 'softhand_preshape_2_1',
controller='initialJointCtrl', epsilon=str(math.radians(7.))))
# 1. trigger pre-shaping the hand (if there is a synergy). The 2 in the name represents a wall grasp.
control_sequence.append(ha.BlockJointControlMode(name='softhand_preshape_2_1'))
# 1b. Time for pre-shape
control_sequence.append(ha.TimeSwitch('softhand_preshape_2_1', 'PreGrasp', duration=0.5))
# 2. Go above the object - Pregrasp
if alternative_behavior is not None and 'pre_approach' in alternative_behavior:
# we can not use the initially generated plan, but have to include the result of the feasibility checks
goal_traj = alternative_behavior['pre_approach'].get_trajectory()
print("Use alternative GOAL_TRAJ PreApproach Dim", goal_traj.shape)
control_sequence.append(ha.JointControlMode(goal_traj, name='PreGrasp', controller_name='GoAboveObject',
goal_is_relative='0',
v_max=pre_grasp_joint_velocity,
# for the close trajectory points linear interpolation works best.
interpolation_type='linear'))
# 2b. Switch when hand reaches the goal configuration
control_sequence.append(ha.JointConfigurationSwitch('PreGrasp', 'PrepareForReferenceMassMeasurement',
controller='GoAboveObject', epsilon=str(math.radians(7.))))
else:
# we can use the original motion
control_sequence.append(
ha.InterpolatedHTransformControlMode(pre_approach_transform, controller_name='GoAboveObject',
goal_is_relative='0', name="PreGrasp"))
# 2b. Switch when hand reaches the goal pose
control_sequence.append(ha.FramePoseSwitch('PreGrasp', 'PrepareForReferenceMassMeasurement',
controller='GoAboveObject', epsilon='0.01'))
# 3. Hold current joint config
control_sequence.append(ha.BlockJointControlMode(name='PrepareForReferenceMassMeasurement'))
# 3b. Wait for a bit to allow vibrations to attenuate
control_sequence.append(ha.TimeSwitch('PrepareForReferenceMassMeasurement', 'ReferenceMassMeasurement',
duration=0.5))
# 4. Reference mass measurement with empty hand (TODO can this be replaced by offline calibration?)
control_sequence.append(ha.BlockJointControlMode(name='ReferenceMassMeasurement'))
# 4b. Switches when reference measurement was done
# 4b.1 Successful reference measurement
control_sequence.append(ha.RosTopicSwitch('ReferenceMassMeasurement', 'GoDown',
ros_topic_name='/graspSuccessEstimator/status', ros_topic_type='Float64',
goal=np.array([RESPONSES.REFERENCE_MEASUREMENT_SUCCESS.value]),
))
# 4b.2 The grasp success estimator module is inactive
control_sequence.append(ha.RosTopicSwitch('ReferenceMassMeasurement', 'GoDown',
ros_topic_name='/graspSuccessEstimator/status', ros_topic_type='Float64',
goal=np.array([RESPONSES.GRASP_SUCCESS_ESTIMATOR_INACTIVE.value]),
))
# 4b.3 Timeout (grasp success estimator module not started, an error occurred or it takes too long)
control_sequence.append(ha.TimeSwitch('ReferenceMassMeasurement', 'GoDown',
duration=success_estimator_timeout))
# 4b.4 There is no special switch for unknown error response (estimator signals REFERENCE_MEASUREMENT_FAILURE)
# Instead the timeout will trigger giving the user an opportunity to notice the erroneous result in the GUI.
# 5. Go down onto the object/table, in world frame
if alternative_behavior is not None and 'go_down' in alternative_behavior:
# we can not use the initially generated plan, but have to include the result of the feasibility checks
# Go down onto the object (joint controller + relative world frame motion)
goal_traj = alternative_behavior['go_down'].get_trajectory()
print("Use alternative GOAL_TRAJ GoDown Dim:", goal_traj.shape) # TODO remove (only for debugging)
control_sequence.append(ha.JointControlMode(goal_traj, name='GoDown', controller_name='GoDown',
goal_is_relative='0',
v_max=go_down_joint_velocity,
# for the close trajectory points linear interpolation works best.
interpolation_type='linear'))
# Relative motion that ensures that the actual force/torque threshold is reached
control_sequence.append(
ha.InterpolatedHTransformControlMode(tra.translation_matrix([0, 0, -10]),
controller_name='GoDownFurther',
goal_is_relative='1',
name="GoDownFurther",
reference_frame="world",
v_max=go_down_velocity))
# Switch when goal is reached to trigger the relative go down further motion
control_sequence.append(ha.JointConfigurationSwitch('GoDown', 'GoDownFurther', controller='GoDown',
epsilon=str(math.radians(7.))))
# Force/Torque switch for the additional relative go down further
control_sequence.append(ha.ForceTorqueSwitch('GoDownFurther',
'LiftHand',
goal=downward_force_thresh,
norm_weights=np.array([0, 0, 1, 0, 0, 0]),
jump_criterion="THRESH_UPPER_BOUND",
goal_is_relative='1',
frame_id='world',
port='2'))
else:
control_sequence.append(
ha.InterpolatedHTransformControlMode(down_dir,
controller_name='GoDown',
goal_is_relative='1',
name="GoDown",
reference_frame="world",
v_max=go_down_velocity))
# 5b. Switch when force threshold is exceeded (in both cases joint trajectory or op-space control)
control_sequence.append(ha.ForceTorqueSwitch('GoDown',
'LiftHand',
goal=downward_force_thresh,
norm_weights=np.array([0, 0, 1, 0, 0, 0]),
jump_criterion="THRESH_UPPER_BOUND",
goal_is_relative='1',
frame_id='world',
port='2'))
# 6. Lift upwards so the hand doesn't slide directly on table surface
lift_duration = 0.2 # timeout for the TimeSwitch-hack
if alternative_behavior is not None and 'lift_hand' in alternative_behavior:
goal_traj = alternative_behavior['lift_hand'].get_trajectory()
print("Use alternative GOAL_TRAJ LiftHand Dim:", goal_traj.shape) # TODO remove (only for debugging)
control_sequence.append(ha.JointControlMode(goal_traj, name='LiftHand', controller_name='Lift1',
goal_is_relative='0',
v_max=lift_hand_joint_velocity,
# for the close trajectory points linear interpolation works best.
interpolation_type='linear'))
# Switch when goal is reached to trigger the relative go down further motion
control_sequence.append(ha.JointConfigurationSwitch('LiftHand', 'SlideToWall', controller='Lift1',
epsilon=str(math.radians(7.))))
# We also switch after a short time as this allows us to do a small, precise lift motion, in case the
# JointConfigurationSwitch above does not trigger.
# TODO partners: this can be removed if your robot is able to do small motions precisely
control_sequence.append(ha.TimeSwitch('LiftHand', 'SlideToWall', duration=lift_duration))
else:
control_sequence.append(
ha.InterpolatedHTransformControlMode(lift_dir, controller_name='Lift1', goal_is_relative='1',
name="LiftHand", reference_frame="world"))
# 6b. We switch after a short time as this allows us to do a small, precise lift motion
# TODO partners: this can be replaced by a frame pose switch if your robot is able to do small motions precisely
control_sequence.append(ha.TimeSwitch('LiftHand', 'SlideToWall', duration=lift_duration))
# 7. Go towards the wall to slide object to wall
if alternative_behavior is not None and 'slide_to_wall' in alternative_behavior:
goal_traj = alternative_behavior['slide_to_wall'].get_trajectory()
print("Use alternative GOAL_TRAJ SlideToWall Dim:", goal_traj.shape) # TODO remove (only for debugging)
# Sliding motion in joint space
control_sequence.append(ha.JointControlMode(goal_traj, name='SlideToWall', controller_name='SlideToWall',
goal_is_relative='0',
v_max=slide_joint_velocity,
# for the close trajectory points linear interpolation works best.
interpolation_type='linear'))
# Relative motion that ensures that the actual force/torque threshold is reached (world space)
control_sequence.append(
ha.InterpolatedHTransformControlMode(wall_dir,
controller_name='SlideFurther',
goal_is_relative='1',
name="SlideFurther",
reference_frame="world",
v_max=slide_velocity))
# Switch when goal is reached to trigger the relative slide further motion
control_sequence.append(ha.JointConfigurationSwitch('SlideToWall', 'SlideFurther', controller='SlideToWall',
epsilon=str(math.radians(7.))))
# Force/Torque switch for the additional relative slide further
control_sequence.append(ha.ForceTorqueSwitch('SlideFurther',
mode_name_hand_closing,
name='ForceSwitch',
goal=wall_force_threshold,
norm_weights=np.array([0, 0, 1, 0, 0, 0]),
jump_criterion="THRESH_UPPER_BOUND",
goal_is_relative='1',
frame_id='world',
frame=wall_frame,
port='2'))
else:
# Sliding motion (entirely world space controlled)
control_sequence.append(
ha.InterpolatedHTransformControlMode(wall_dir, controller_name='SlideToWall', goal_is_relative='1',
name="SlideToWall", reference_frame="world",
v_max=slide_velocity))
# 7b. Switch when the f/t sensor is triggered with normal force from wall
# (in both cases joint trajectory or op-space control)
#control_sequence.append(ha.ForceTorqueSwitch('SlideToWall', mode_name_hand_closing, name='ForceSwitch',
control_sequence.append(ha.ForceTorqueSwitch('SlideToWall', 'SoftenImpact', name='ForceSwitch',
goal=wall_force_threshold,
norm_weights=np.array([0, 0, 1, 0, 0, 0]),
jump_criterion="THRESH_UPPER_BOUND", goal_is_relative='1',
frame_id='world', frame=wall_frame, port='2'))
if soften_impact:
control_sequence.append(ha.ForceTorqueSwitch('SlideToWall', 'SoftenImpact', name='ForceSwitch',
goal=wall_force_threshold,
norm_weights=np.array([0, 0, 1, 0, 0, 0]),
jump_criterion="THRESH_UPPER_BOUND", goal_is_relative='1',
frame_id='world', frame=wall_frame, port='2'))
control_sequence.append(
ha.BlockJointControlMode('SoftenImpact', kp=np.array([300, 200, 150, 20, 10, 10, 10]) * 0.8,
kv=np.array([2, 4, 2, 0.8, 0.2, 0.2, 0.02])))
control_sequence.append(ha.TimeSwitch('SoftenImpact', mode_name_hand_closing, duration=0.1))
else:
control_sequence.append(ha.ForceTorqueSwitch('SlideToWall', mode_name_hand_closing, name='ForceSwitch',
goal=wall_force_threshold,
norm_weights=np.array([0, 0, 1, 0, 0, 0]),
jump_criterion="THRESH_UPPER_BOUND", goal_is_relative='1',
frame_id='world', frame=wall_frame, port='2'))
# 8. Maintain contact while closing the hand
# apply force on object while closing the hand
# TODO arne: validate these values
desired_displacement = np.array(
[[1.0, 0.0, 0.0, 0.0], [0.0, 1.0, 0.0, 0.0], [0.0, 0.0, 1.0, 0.0], [0.0, 0.0, 0.0, 1.0]])
force_gradient = np.array(
[[1.0, 0.0, 0.0, 0.0], [0.0, 1.0, 0.0, 0.0], [0.0, 0.0, 1.0, 0.005], [0.0, 0.0, 0.0, 1.0]])
desired_force_dimension = np.array([0.0, 0.0, 1.0, 0.0, 0.0, 0.0])
control_sequence.append(ha.HandControlMode_ForceHT(name=mode_name_hand_closing, synergy=hand_synergy,
desired_displacement=desired_displacement,
force_gradient=force_gradient,
desired_force_dimension=desired_force_dimension))
# 8b. Switch when hand closing duration ends
control_sequence.append(ha.TimeSwitch(mode_name_hand_closing, 'PostGraspRotate', duration=hand_closing_duration))
# 9. Move hand after closing and before lifting it up to roll the object in the hand
# relative to current hand pose
control_sequence.append(
ha.HTransformControlMode(post_grasp_transform, controller_name='PostGraspRotate', name='PostGraspRotate',
goal_is_relative='1', ))
# 9b. Switch when hand reaches post grasp pose
control_sequence.append(ha.FramePoseSwitch('PostGraspRotate', 'GoUp_1', controller='PostGraspRotate',
epsilon='0.01', goal_is_relative='1', reference_frame='EE'))
return control_sequence # TODO what about rviz_frames?
# ================================================================================================
def create_corner_grasp(chosen_object, corner_frame_alpha_zero, handarm_params, pregrasp_transform,
alternative_behavior=None):
# the pre-approach pose should be:
# - floating above and behind the object,
# - fingers pointing downwards
# - palm facing the object and wall
object_type = chosen_object['type']
# Get the relevant parameters for hand object combination
if object_type in handarm_params['CornerGrasp']:
params = handarm_params['CornerGrasp'][object_type]
else:
params = handarm_params['CornerGrasp']['object']
# ############################ #
# Get params per phase
# ############################ #
# -- Approach phase --
# initial configuration above IFCO. Should be easy to go from here to pregrasp pose
initial_jointConf = params['initial_goal']
pre_approach_transform = pregrasp_transform
pre_grasp_joint_velocity = params['max_joint_velocity']
# ---- GoDown ----
# Force threshold for guarded GoDown motion
downward_force_thresh = np.array([0, 0, params['downward_force'], 0, 0, 0])
down_dist = params['down_dist']
down_dir = tra.translation_matrix([0, 0, -down_dist])
go_down_velocity = params['go_down_velocity']
go_down_joint_velocity = params['max_joint_velocity']
# ---- LiftHand ----
lift_dist = params['corrective_lift_dist']
lift_dir = tra.translation_matrix([0, 0, lift_dist])
lift_hand_joint_velocity = params['max_joint_velocity']
# ---- SlideToWall
wall_force = params['wall_force']
wall_force_threshold = np.array([0, 0, wall_force, 0, 0, 0])
# TODO sliding_distance should be computed from wall and hand frame.
sliding_dist = params['sliding_dist']
wall_dir = tra.translation_matrix([0, 0, -sliding_dist])
# slide direction is given by the corner_frame_alpha_zero
wall_dir[:3, 3] = corner_frame_alpha_zero[:3, :3].dot(wall_dir[:3, 3])
slide_velocity = params['slide_velocity']
slide_joint_velocity = params['slide_joint_velocity']
soften_impact = params['soften_impact']
# -- Grasping phase --
# The 4 in softhand_close_4 represents a corner grasp. This way the strategy is encoded in the HA.
hand_synergy = params['hand_closing_synergy']
mode_name_hand_closing = 'softhand_close_4_' + str(hand_synergy)
hand_closing_duration = params['hand_closing_duration']
# -- Post-grasping phase --
post_grasp_transform = params['post_grasp_transform']
success_estimator_timeout = handarm_params['success_estimator_timeout']
# Set the debug frames to visualize with Rviz # TODO bring that feature back to recipes
# global rviz_frames
# rviz_frames = []
# rviz_frames.append(pre_approach_transform)
# rviz_frames.append(ec_frame)
# rviz_frames.append(corner_frame)
# rviz_frames.append(corner_frame_alpha_zero)
# ############################ #
# Assemble controller sequence
# ############################ #
control_sequence = []
# 0. initial position above ifco
control_sequence.append(
ha.JointControlMode(initial_jointConf, name='InitialJointConfig', controller_name='initialJointCtrl'))
# 0b. Joint config switch
control_sequence.append(ha.JointConfigurationSwitch('InitialJointConfig', 'softhand_preshape_4_1',
controller='initialJointCtrl', epsilon=str(math.radians(7.))))
# 1. trigger pre-shaping the hand (if there is a synergy). The 4 in the name represents a corner grasp.
control_sequence.append(ha.BlockJointControlMode(name='softhand_preshape_4_1'))
# 1b. Time for pre-shape
control_sequence.append(ha.TimeSwitch('softhand_preshape_4_1', 'PreGrasp', duration=0.5)) # time for pre-shape
# 2. Go above the object - Pregrasp
if alternative_behavior is not None and 'pre_approach' in alternative_behavior:
# we can not use the initially generated plan, but have to include the result of the feasibility checks
goal_traj = alternative_behavior['pre_approach'].get_trajectory()
print("Use alternative GOAL_TRAJ PreApproach Dim", goal_traj.shape)
control_sequence.append(ha.JointControlMode(goal_traj, name='PreGrasp', controller_name='GoAboveObject',
goal_is_relative='0',
v_max=pre_grasp_joint_velocity,
# for the close trajectory points linear interpolation works best.
interpolation_type='linear'))
# 2b. Switch when hand reaches the goal configuration
control_sequence.append(ha.JointConfigurationSwitch('PreGrasp', 'PrepareForReferenceMassMeasurement',
controller='GoAboveObject', epsilon=str(math.radians(7.))))
else:
control_sequence.append(
ha.InterpolatedHTransformControlMode(pre_approach_transform, controller_name='GoAboveObject',
goal_is_relative='0', name="PreGrasp"))
# 2b. Switch when hand reaches the goal pose
control_sequence.append(ha.FramePoseSwitch('PreGrasp', 'PrepareForReferenceMassMeasurement',
controller='GoAboveObject', epsilon='0.01'))
# 3. Hold current joint config
control_sequence.append(ha.BlockJointControlMode(name='PrepareForReferenceMassMeasurement'))
# 3b. Wait for a bit to allow vibrations to attenuate
control_sequence.append(ha.TimeSwitch('PrepareForReferenceMassMeasurement', 'ReferenceMassMeasurement',
duration=0.5))
# 4. Reference mass measurement with empty hand (TODO can this be replaced by offline calibration?)
control_sequence.append(ha.BlockJointControlMode(name='ReferenceMassMeasurement')) # TODO use gravity comp instead?
# 4b. Switches when reference measurement was done
# 4b.1 Successful reference measurement
control_sequence.append(ha.RosTopicSwitch('ReferenceMassMeasurement', 'GoDown',
ros_topic_name='/graspSuccessEstimator/status', ros_topic_type='Float64',
goal=np.array([RESPONSES.REFERENCE_MEASUREMENT_SUCCESS.value]),
))
# 4b.2 The grasp success estimator module is inactive
control_sequence.append(ha.RosTopicSwitch('ReferenceMassMeasurement', 'GoDown',
ros_topic_name='/graspSuccessEstimator/status', ros_topic_type='Float64',
goal=np.array([RESPONSES.GRASP_SUCCESS_ESTIMATOR_INACTIVE.value]),
))
# 4b.3 Timeout (grasp success estimator module not started, an error occurred or it takes too long)
control_sequence.append(ha.TimeSwitch('ReferenceMassMeasurement', 'GoDown',
duration=success_estimator_timeout))
# 4b.4 There is no special switch for unknown error response (estimator signals REFERENCE_MEASUREMENT_FAILURE)
# Instead the timeout will trigger giving the user an opportunity to notice the erroneous result in the GUI.
# 5. Go down onto the object/table, in world frame
if alternative_behavior is not None and 'go_down' in alternative_behavior:
# we can not use the initially generated plan, but have to include the result of the feasibility checks
# Go down onto the object (joint controller + relative world frame motion)
goal_traj = alternative_behavior['go_down'].get_trajectory()
print("Use alternative GOAL_TRAJ GoDown Dim:", goal_traj.shape) # TODO remove (only for debugging)
control_sequence.append(ha.JointControlMode(goal_traj, name='GoDown', controller_name='GoDown',
goal_is_relative='0',
v_max=go_down_joint_velocity,
# for the close trajectory points linear interpolation works best.
interpolation_type='linear'))
# Relative motion that ensures that the actual force/torque threshold is reached
control_sequence.append(
ha.InterpolatedHTransformControlMode(tra.translation_matrix([0, 0, -10]),
controller_name='GoDownFurther',
goal_is_relative='1',
name="GoDownFurther",
reference_frame="world",
v_max=go_down_velocity))
# Switch when goal is reached to trigger the relative go down further motion
control_sequence.append(ha.JointConfigurationSwitch('GoDown', 'GoDownFurther', controller='GoDown',
epsilon=str(math.radians(7.))))
# Force/Torque switch for the additional relative go down further
control_sequence.append(ha.ForceTorqueSwitch('GoDownFurther',
'LiftHand',
goal=downward_force_thresh,
norm_weights=np.array([0, 0, 1, 0, 0, 0]),
jump_criterion="THRESH_UPPER_BOUND",
goal_is_relative='1',
frame_id='world',
port='2'))
else:
control_sequence.append(
ha.InterpolatedHTransformControlMode(down_dir,
controller_name='GoDown',
goal_is_relative='1',
name="GoDown",
reference_frame="world",
v_max=go_down_velocity))
# 5b. Switch when force threshold is exceeded
control_sequence.append(ha.ForceTorqueSwitch('GoDown',
'LiftHand',
goal=downward_force_thresh,
norm_weights=np.array([0, 0, 1, 0, 0, 0]),
jump_criterion="THRESH_UPPER_BOUND",
goal_is_relative='1',
frame_id='world',
port='2'))
# 6. Lift upwards so the hand doesn't slide directly on table surface
lift_duration = 0.2 # timeout for the TimeSwitch-hack
if alternative_behavior is not None and 'lift_hand' in alternative_behavior:
goal_traj = alternative_behavior['lift_hand'].get_trajectory()
print("Use alternative GOAL_TRAJ LiftHand Dim:", goal_traj.shape) # TODO remove (only for debugging)
control_sequence.append(ha.JointControlMode(goal_traj, name='LiftHand', controller_name='Lift1',
goal_is_relative='0',
v_max=lift_hand_joint_velocity,
# for the close trajectory points linear interpolation works best.
interpolation_type='linear'))
# Switch when goal is reached to trigger the relative go down further motion
control_sequence.append(ha.JointConfigurationSwitch('LiftHand', 'SlideToWall', controller='Lift1',
epsilon=str(math.radians(7.))))
# We also switch after a short time as this allows us to do a small, precise lift motion, in case the
# JointConfigurationSwitch above does not trigger.
# TODO partners: this can be removed if your robot is able to do small motions precisely
control_sequence.append(ha.TimeSwitch('LiftHand', 'SlideToWall', duration=lift_duration))
else:
control_sequence.append(
ha.InterpolatedHTransformControlMode(lift_dir, controller_name='Lift1', goal_is_relative='1',
name="LiftHand", reference_frame="world"))
# 6b. We switch after a short time as this allows us to do a small, precise lift motion
# TODO partners: this can be replaced by a frame pose switch if your robot is able to do small motions precisely
control_sequence.append(ha.TimeSwitch('LiftHand', 'SlideToWall', duration=lift_duration))
# 7. Go towards the wall to slide object to wall
if alternative_behavior is not None and 'slide_to_wall' in alternative_behavior:
goal_traj = alternative_behavior['slide_to_wall'].get_trajectory()
print("Use alternative GOAL_TRAJ SlideToWall Dim:", goal_traj.shape) # TODO remove (only for debugging)
# Sliding motion in joint space
control_sequence.append(ha.JointControlMode(goal_traj, name='SlideToWall', controller_name='SlideToWall',
goal_is_relative='0',
v_max=slide_joint_velocity,
# for the close trajectory points linear interpolation works best.
interpolation_type='linear'))
# Relative motion that ensures that the actual force/torque threshold is reached (world space)
control_sequence.append(
ha.InterpolatedHTransformControlMode(wall_dir,
controller_name='SlideFurther',
goal_is_relative='1',
name="SlideFurther",
reference_frame="world",
v_max=slide_velocity))
# Switch when goal is reached to trigger the relative slide further motion
control_sequence.append(ha.JointConfigurationSwitch('SlideToWall', 'SlideFurther', controller='SlideToWall',
epsilon=str(math.radians(7.))))
# Force/Torque switch for the additional relative slide further
control_sequence.append(ha.ForceTorqueSwitch('SlideFurther',
mode_name_hand_closing,
name='ForceSwitch',
goal=wall_force_threshold,
norm_weights=np.array([0, 0, 1, 0, 0, 0]),
jump_criterion="THRESH_UPPER_BOUND",
goal_is_relative='1',
frame_id='world',
frame=corner_frame_alpha_zero,
port='2'))
else:
# Sliding motion (entirely world space controlled)
control_sequence.append(
ha.InterpolatedHTransformControlMode(wall_dir, controller_name='SlideToWall', goal_is_relative='1',
name="SlideToWall", reference_frame="world",
v_max=slide_velocity))
# 7b. Switch when the f/t sensor is triggered with normal force from wall
# (in both cases joint trajectory or op-space control)
# TODO arne: needs tuning
# EDITED
if soften_impact:
control_sequence.append(ha.ForceTorqueSwitch('SlideToWall', 'SoftenImpact', name='ForceSwitch',
goal=wall_force_threshold,
norm_weights=np.array([0, 0, 1, 0, 0, 0]),
jump_criterion="THRESH_UPPER_BOUND", goal_is_relative='1',
frame_id='world', frame=corner_frame_alpha_zero, port='2'))
control_sequence.append(
ha.BlockJointControlMode('SoftenImpact', kp=np.array([300, 200, 150, 20, 10, 10, 10]) * 0.8,
kv=np.array([2, 4, 2, 0.8, 0.2, 0.2, 0.02])))
control_sequence.append(ha.TimeSwitch('SoftenImpact', mode_name_hand_closing, duration=0.1))
else:
control_sequence.append(ha.ForceTorqueSwitch('SlideToWall', mode_name_hand_closing, 'ForceSwitch',
goal=wall_force_threshold,
norm_weights=np.array([0, 0, 1, 0, 0, 0]),
jump_criterion="THRESH_UPPER_BOUND", goal_is_relative='1',
frame_id='world', frame=corner_frame_alpha_zero, port='2'))
# /EDITED
# 8. Maintain contact while closing the hand
# apply force on object while closing the hand
# TODO arne: validate these values
desired_displacement = np.array(
[[1.0, 0.0, 0.0, 0.0], [0.0, 1.0, 0.0, 0.0], [0.0, 0.0, 1.0, 0.0], [0.0, 0.0, 0.0, 1.0]])
force_gradient = np.array(
[[1.0, 0.0, 0.0, 0.0], [0.0, 1.0, 0.0, 0.0], [0.0, 0.0, 1.0, 0.005], [0.0, 0.0, 0.0, 1.0]])
desired_force_dimension = np.array([0.0, 0.0, 1.0, 0.0, 0.0, 0.0])
control_sequence.append(ha.HandControlMode_ForceHT(name=mode_name_hand_closing, synergy=hand_synergy,
desired_displacement=desired_displacement,
force_gradient=force_gradient,
desired_force_dimension=desired_force_dimension))
# 8b. Switch when hand closing duration ends
control_sequence.append(ha.TimeSwitch(mode_name_hand_closing, 'PostGraspRotate', duration=hand_closing_duration))
# 9. Move hand after closing and before lifting it up
# relative to current hand pose
control_sequence.append(
ha.HTransformControlMode(post_grasp_transform, controller_name='PostGraspRotate', name='PostGraspRotate',
goal_is_relative='1', ))
# 9b. Switch when hand reaches post grasp pose
control_sequence.append(ha.FramePoseSwitch('PostGraspRotate', 'GoUp_1', controller='PostGraspRotate',
epsilon='0.01', goal_is_relative='1', reference_frame='EE'))
return control_sequence # TODO what about rviz_frames?
| 56.56928 | 150 | 0.565469 | 5,350 | 52,666 | 5.365794 | 0.079065 | 0.016233 | 0.016512 | 0.015885 | 0.927892 | 0.918661 | 0.910335 | 0.907235 | 0.902672 | 0.887658 | 0 | 0.020102 | 0.347321 | 52,666 | 930 | 151 | 56.630108 | 0.815035 | 0.238123 | 0 | 0.890656 | 0 | 0 | 0.125319 | 0.034429 | 0 | 0 | 0 | 0.001075 | 0 | 1 | 0.005964 | false | 0 | 0.00994 | 0 | 0.021869 | 0.019881 | 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 |
6b7bd3431ab6b4ccc14663af2181ab6b51ddbf88 | 46 | py | Python | supporttracker/extractor/__init__.py | aminzarshenas/slack-support-export | d5e7278a95b39cfbd4f37864579d12d37fb8a828 | [
"BSD-3-Clause"
] | null | null | null | supporttracker/extractor/__init__.py | aminzarshenas/slack-support-export | d5e7278a95b39cfbd4f37864579d12d37fb8a828 | [
"BSD-3-Clause"
] | null | null | null | supporttracker/extractor/__init__.py | aminzarshenas/slack-support-export | d5e7278a95b39cfbd4f37864579d12d37fb8a828 | [
"BSD-3-Clause"
] | 1 | 2019-11-11T17:27:15.000Z | 2019-11-11T17:27:15.000Z | from .SupportExtractor import SupportExtractor | 46 | 46 | 0.913043 | 4 | 46 | 10.5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065217 | 46 | 1 | 46 | 46 | 0.976744 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
6baf0f69daf3c82f0c7348067e4652d48630fd4b | 219 | py | Python | api/src/wt/fields/files/__init__.py | sedlar/work-tracking | 78917ff8200829eb674142ce43b503d8e892d7eb | [
"BSD-2-Clause"
] | null | null | null | api/src/wt/fields/files/__init__.py | sedlar/work-tracking | 78917ff8200829eb674142ce43b503d8e892d7eb | [
"BSD-2-Clause"
] | null | null | null | api/src/wt/fields/files/__init__.py | sedlar/work-tracking | 78917ff8200829eb674142ce43b503d8e892d7eb | [
"BSD-2-Clause"
] | null | null | null | from wt.fields.files._obj import File
from wt.fields.files._model import FilesModel
from wt.fields.files._error import DuplicateFileReceived
from wt.fields.files._serialization import FilesSerializer, FilesDeserializer
| 43.8 | 77 | 0.863014 | 29 | 219 | 6.37931 | 0.482759 | 0.12973 | 0.259459 | 0.367568 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.077626 | 219 | 4 | 78 | 54.75 | 0.915842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 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 |
d42917034a3c87926b196d7be563bcd508c63e50 | 171 | py | Python | cryptopals/tools/file_helper/__init__.py | ghostduck/my_cryptopals_solution | 10597d6787ed9f70fa6f5368958a17a53fb387a0 | [
"MIT"
] | null | null | null | cryptopals/tools/file_helper/__init__.py | ghostduck/my_cryptopals_solution | 10597d6787ed9f70fa6f5368958a17a53fb387a0 | [
"MIT"
] | null | null | null | cryptopals/tools/file_helper/__init__.py | ghostduck/my_cryptopals_solution | 10597d6787ed9f70fa6f5368958a17a53fb387a0 | [
"MIT"
] | null | null | null |
from .read_file_helper import read_hex_encoded_text_file, read_base64_encoded_text_file
__all__ = [
"read_hex_encoded_text_file", "read_base64_encoded_text_file"
]
| 21.375 | 87 | 0.836257 | 26 | 171 | 4.653846 | 0.384615 | 0.363636 | 0.495868 | 0.297521 | 0.77686 | 0.77686 | 0.77686 | 0.77686 | 0.77686 | 0.77686 | 0 | 0.026144 | 0.105263 | 171 | 7 | 88 | 24.428571 | 0.764706 | 0 | 0 | 0 | 0 | 0 | 0.325444 | 0.325444 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 10 |
d452fbfa778c90440b9a6353346040b5576a61a1 | 196 | py | Python | cinder/volume/drivers/xenapi/tools.py | tomasdubec/openstack-cinder | 4d0985ea85f4fbdf48b1ed8e35407d2b4a6cf0e4 | [
"Apache-2.0"
] | 1 | 2015-11-25T10:18:28.000Z | 2015-11-25T10:18:28.000Z | cinder/volume/drivers/xenapi/tools.py | tomasdubec/openstack-cinder | 4d0985ea85f4fbdf48b1ed8e35407d2b4a6cf0e4 | [
"Apache-2.0"
] | null | null | null | cinder/volume/drivers/xenapi/tools.py | tomasdubec/openstack-cinder | 4d0985ea85f4fbdf48b1ed8e35407d2b4a6cf0e4 | [
"Apache-2.0"
] | null | null | null | def _stripped_first_line_of(filename):
with open(filename, 'rb') as f:
return f.readline().strip()
def get_this_vm_uuid():
return _stripped_first_line_of('/sys/hypervisor/uuid')
| 24.5 | 58 | 0.714286 | 29 | 196 | 4.448276 | 0.689655 | 0.20155 | 0.263566 | 0.294574 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.158163 | 196 | 7 | 59 | 28 | 0.781818 | 0 | 0 | 0 | 0 | 0 | 0.112245 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0 | 0.2 | 0.8 | 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 |
d4620149893769df6eba69ba4b74d45ece4e56dc | 1,015 | py | Python | orb_simulator/simulation/__init__.py | dmguezjaviersnet/IA-Sim-Comp-Project | 8165b9546efc45f98091a3774e2dae4f45942048 | [
"MIT"
] | 1 | 2022-01-19T22:49:09.000Z | 2022-01-19T22:49:09.000Z | orb_simulator/simulation/__init__.py | dmguezjaviersnet/IA-Sim-Comp-Project | 8165b9546efc45f98091a3774e2dae4f45942048 | [
"MIT"
] | 15 | 2021-11-10T14:25:02.000Z | 2022-02-12T19:17:11.000Z | orb_simulator/simulation/__init__.py | dmguezjaviersnet/IA-Sim-Comp-Project | 8165b9546efc45f98091a3774e2dae4f45942048 | [
"MIT"
] | null | null | null | # from simulation.a_star import a_star, eucl_dist_qtnode
# from simulation.generate_objects import generate_new_random_orbit
# from simulation.generate_objects import generate_new_object_in_orbit
# from simulation.generate_objects import generate_new_orbit
# from simulation.generate_objects import generate_new_random_satellite
# from simulation.generate_objects import generate_new_random_space_debris
# from simulation.generate_objects import generate_new_rocket
# from simulation.generate_objects import generate_orbits
# from simulation.generate_objects import generate_waiting_time
# from simulation.generate_objects import generate_satellite_in_orbit
# from simulation.generate_objects import generate_space_debris_collector
# from simulation.generate_objects import generate_space_debris_in_orbit
# from simulation.generate_objects import generate_new_object_in_random_orbit
# from simulation.generate_objects import generate_random_orbit
# from simulation.generate_objects import generate_object_in_orbit
| 63.4375 | 77 | 0.893596 | 135 | 1,015 | 6.281481 | 0.17037 | 0.247642 | 0.363208 | 0.478774 | 0.860849 | 0.860849 | 0.708726 | 0.654481 | 0.201651 | 0.139151 | 0 | 0 | 0.075862 | 1,015 | 15 | 78 | 67.666667 | 0.904051 | 0.969458 | 0 | null | 1 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
2e63e2f69170a7e78c9251ee5efe27fe75d71516 | 73,176 | py | Python | thegame.tests/tests_element.py | bpietropaoli/THEGAME-Python | 7b7f8b411cd845145590a8f8804e1402a228899f | [
"Apache-2.0"
] | 5 | 2016-12-09T13:56:48.000Z | 2020-12-29T11:28:03.000Z | thegame.tests/tests_element.py | bpietropaoli/THEGAME-Python | 7b7f8b411cd845145590a8f8804e1402a228899f | [
"Apache-2.0"
] | null | null | null | thegame.tests/tests_element.py | bpietropaoli/THEGAME-Python | 7b7f8b411cd845145590a8f8804e1402a228899f | [
"Apache-2.0"
] | 2 | 2019-02-15T15:34:25.000Z | 2019-07-29T05:48:08.000Z | #!/usr/bin/python3
################################################################################
# thegame.tests_element.py #
# ---------------------------------------------------------------------------- #
# Author : Bastien Pietropaoli #
# Contact: Bastien.Pietropaoli@insight-centre.org #
# Bastien.Pietropaoli@gmail.com #
# ---------------------------------------------------------------------------- #
# This module only provides a main that executes short tests to check that #
# methods of element.py provide expected results. #
################################################################################
###############
# MAIN: TESTS #
###############
if __name__ == '__main__':
import tests_utility
import sys
import os
PACKAGE_PARENT = '..'
SCRIPT_DIR = os.path.dirname(os.path.realpath(os.path.join(os.getcwd(), os.path.expanduser(__file__))))
sys.path.append(os.path.normpath(os.path.join(SCRIPT_DIR, PACKAGE_PARENT)))
from thegame import element
print(
"*" * 80 + "\n" +
"*" + "{:^78}".format(os.path.basename(__file__)) + "*\n" +
"*" * 80
)
# A dictionary with function names as keys and a list of calls that failed for each one of them
# in the form ("call_that_failed()", "reason", exception if there's one (can be None))
failed = {}
##########################
# TESTS: DiscreteElement #
##########################
function = "DiscreteElement.__init__(self, size, number=0)"
print("Test of " + function + " ...")
#(function_to_call, expected_exception)
tests = [
(ValueError, element.DiscreteElement, 0, 2),
(element.IncompatibleSizeAndNumberError, element.DiscreteElement, 2, 5),
(None, element.DiscreteElement, 3, 4)
]
errors = tests_utility.exception_test(tests, False)
if len(errors) != 0:
failed[function] = errors
print("... done: %i/%i tests were successful!" % (len(tests)-len(errors), len(tests)))
print("--------------------------------------------------------------------------------")
function = "DiscreteElement.factory_from_str(self, bstr, bigendian=True)"
print("Test of " + function + "...")
tests = [
(None, element.DiscreteElement.factory_from_str, '1001'),
(ValueError, element.DiscreteElement.factory_from_str, '100110sfsd'),
(ValueError, element.DiscreteElement.factory_from_str, '1000123442'),
(None, element.DiscreteElement.factory_from_str, '1001', False),
(ValueError, element.DiscreteElement.factory_from_str, '100110sfsd', False),
(ValueError, element.DiscreteElement.factory_from_str, '1000123442', False),
(None, element.DiscreteElement.factory_from_str, '1010101010101010101010101010101010101010101010100001010101010101') #Test for very big numbers
]
errors = tests_utility.exception_test(tests, False)
if len(errors) != 0:
failed[function] = errors
print("... done: %i/%i tests were successful!" % (len(tests)-len(errors), len(tests)))
print("--------------------------------------------------------------------------------")
function = "DiscreteElement.factory_from_ref_list(self, ref_list, *states)"
print("Test of " + function + "...")
ref_list = ("Aka", "Bea", "Car", "Dib")
ref_list_fail = ("Aka", "Bea", "Aka", "Car")
states = ("Aka",)
states2 = ("Bea", "Aka")
statesFail = ("Dub",)
statesFail2 = ("Aka", "Car", "Dub")
tests = [
(None, element.DiscreteElement.factory_from_ref_list, ref_list) + states,
(None, element.DiscreteElement.factory_from_ref_list, ref_list) + states2,
(ValueError, element.DiscreteElement.factory_from_ref_list, ref_list) + statesFail,
(ValueError, element.DiscreteElement.factory_from_ref_list, ref_list) + statesFail2,
(ValueError, element.DiscreteElement.factory_from_ref_list, ref_list_fail) + states,
(ValueError, element.DiscreteElement.factory_from_ref_list, ref_list_fail) + states2,
(ValueError, element.DiscreteElement.factory_from_ref_list, ref_list_fail) + statesFail
]
errors = tests_utility.exception_test(tests, False)
if len(errors) != 0:
failed[function] = errors
print("... done: %i/%i tests were successful!" % (len(tests)-len(errors), len(tests)))
print("--------------------------------------------------------------------------------")
function = "str(DiscreteElement) / DiscreteElement.__str__(self)"
print("Test of " + function + " ...")
tests = [
("001", str, element.DiscreteElement(3, 1)),
("010", str, element.DiscreteElement(3, 2)),
("011", str, element.DiscreteElement(3, 3)),
("100", str, element.DiscreteElement(3, 4)),
("101", str, element.DiscreteElement(3, 5)),
("110", str, element.DiscreteElement(3, 6)),
("111", str, element.DiscreteElement(3, 7)),
("00111", str, element.DiscreteElement(5, 7)),
("01001", str, element.DiscreteElement(5, 9)),
("10000010", str, element.DiscreteElement(8, 130)),
("1100", str, element.DiscreteElement.factory_from_str('1100')),
("1100", str, element.DiscreteElement.factory_from_str('0011', False)),
("11001101", str, element.DiscreteElement.factory_from_str('11001101')),
("10110011", str, element.DiscreteElement.factory_from_str('11001101', False))
]
errors = tests_utility.expected_output_test(tests, False)
if len(errors) != 0:
failed[function] = errors
print("... done: %i/%i tests were successful!" % (len(tests)-len(errors), len(tests)))
print("--------------------------------------------------------------------------------")
function = "DiscreteElement.formatted_str(self, *references)"
print("Test of " + function + " ...")
tests = [
("{}", element.DiscreteElement(3, 0).formatted_str, 'Aka', 'Bea', 'Car'),
("{Aka}", element.DiscreteElement(3, 1).formatted_str, 'Aka', 'Bea', 'Car'),
("{Bea}", element.DiscreteElement(3, 2).formatted_str, 'Aka', 'Bea', 'Car'),
("{Aka u Bea}", element.DiscreteElement(3, 3).formatted_str, 'Aka', 'Bea', 'Car'),
("{Car}", element.DiscreteElement(3, 4).formatted_str, 'Aka', 'Bea', 'Car'),
("{Aka u Car}", element.DiscreteElement(3, 5).formatted_str, 'Aka', 'Bea', 'Car'),
("{Bea u Car}", element.DiscreteElement(3, 6).formatted_str, 'Aka', 'Bea', 'Car'),
("{Aka u Bea u Car}", element.DiscreteElement(3, 7).formatted_str, 'Aka', 'Bea', 'Car'),
("{}", element.DiscreteElement.factory_from_str('0000').formatted_str, 'Aka', 'Bea', 'Car', 'Dib'),
("{Aka}", element.DiscreteElement.factory_from_str('0001').formatted_str, 'Aka', 'Bea', 'Car', 'Dib'),
("{Bea}", element.DiscreteElement.factory_from_str('0010').formatted_str, 'Aka', 'Bea', 'Car', 'Dib'),
("{Aka u Bea}", element.DiscreteElement.factory_from_str('0011').formatted_str, 'Aka', 'Bea', 'Car', 'Dib'),
("{Car}", element.DiscreteElement.factory_from_str('0100').formatted_str, 'Aka', 'Bea', 'Car', 'Dib'),
("{Aka u Car}", element.DiscreteElement.factory_from_str('0101').formatted_str, 'Aka', 'Bea', 'Car', 'Dib'),
("{Bea u Car}", element.DiscreteElement.factory_from_str('0110').formatted_str, 'Aka', 'Bea', 'Car', 'Dib'),
("{Aka u Bea u Car}", element.DiscreteElement.factory_from_str('0111').formatted_str, 'Aka', 'Bea', 'Car', 'Dib'),
("{Dib}", element.DiscreteElement.factory_from_str('1000').formatted_str, 'Aka', 'Bea', 'Car', 'Dib'),
("{Aka u Dib}", element.DiscreteElement.factory_from_str('1001').formatted_str, 'Aka', 'Bea', 'Car', 'Dib'),
("{Bea u Dib}", element.DiscreteElement.factory_from_str('1010').formatted_str, 'Aka', 'Bea', 'Car', 'Dib'),
("{Aka u Bea u Dib}", element.DiscreteElement.factory_from_str('1011').formatted_str, 'Aka', 'Bea', 'Car', 'Dib'),
]
errors = tests_utility.expected_output_test(tests, False)
if len(errors) != 0:
failed[function] = errors
nbFailed = len(errors)
nbTests = len(tests)
tests = [
(None, element.DiscreteElement(3, 0).formatted_str, 'Aka', 'Bea', 'Car'),
(element.IncompatibleReferencesError, element.DiscreteElement(3, 0).formatted_str, 'Aka', 'Bea'),
(element.IncompatibleReferencesError, element.DiscreteElement(3, 0).formatted_str, 'Aka', 'Bea', 'Car', 'Dib'),
(ValueError, element.DiscreteElement(3, 0).formatted_str, 'Aka', 'Bea', 'Aka')
]
errors = tests_utility.exception_test(tests, False)
if len(errors) != 0:
if function in failed:
failed[function].extend(errors)
else:
failed[function] = errors
nbFailed += len(errors)
nbTests += len(tests)
print("... done: %i/%i tests were successful!" % (nbTests - nbFailed, nbTests))
print("--------------------------------------------------------------------------------")
function = "DiscreteElement.cardinal(self)"
print("Test of " + function + " ...")
tests = [
(1, element.DiscreteElement(3, 1), "cardinal"),
(1, element.DiscreteElement(3, 2), "cardinal"),
(2, element.DiscreteElement(3, 3), "cardinal"),
(1, element.DiscreteElement(3, 4), "cardinal"),
(2, element.DiscreteElement(3, 5), "cardinal"),
(2, element.DiscreteElement(3, 6), "cardinal"),
(3, element.DiscreteElement(3, 7), "cardinal"),
(3, element.DiscreteElement(5, 7), "cardinal"),
(2, element.DiscreteElement(5, 9), "cardinal"),
(2, element.DiscreteElement(8, 130), "cardinal"),
(2, element.DiscreteElement.factory_from_str('1100'), "cardinal"),
(2, element.DiscreteElement.factory_from_str('0011', False), "cardinal"),
(5, element.DiscreteElement.factory_from_str('11001101'), "cardinal"),
(5, element.DiscreteElement.factory_from_str('11001101', False), "cardinal")
]
errors = tests_utility.expected_property_test(tests, False)
if len(errors) != 0:
failed[function] = errors
print("... done: %i/%i tests were successful!" % (len(tests)-len(errors), len(tests)))
print("--------------------------------------------------------------------------------")
function = "DiscreteElement.opposite(self)"
print("Test of " + function + " ...")
tests = [
("110", str, element.DiscreteElement(3, 1).opposite()),
("101", str, element.DiscreteElement(3, 2).opposite()),
("100", str, element.DiscreteElement(3, 3).opposite()),
("011", str, element.DiscreteElement(3, 4).opposite()),
("010", str, element.DiscreteElement(3, 5).opposite()),
("001", str, element.DiscreteElement(3, 6).opposite()),
("000", str, element.DiscreteElement(3, 7).opposite()),
("11000", str, element.DiscreteElement(5, 7).opposite()),
("10110", str, element.DiscreteElement(5, 9).opposite()),
("01111101", str, element.DiscreteElement(8, 130).opposite()),
("0011", str, element.DiscreteElement.factory_from_str('1100').opposite()),
("0011", str, element.DiscreteElement.factory_from_str('0011', False).opposite()),
("00110010", str, element.DiscreteElement.factory_from_str('11001101').opposite()),
("01001100", str, element.DiscreteElement.factory_from_str('11001101', False).opposite())
]
errors = tests_utility.expected_output_test(tests, False)
if len(errors) != 0:
failed[function] = errors
print("... done: %i/%i tests were successful!" % (len(tests)-len(errors), len(tests)))
print("--------------------------------------------------------------------------------")
function = "~e / DiscreteElement.__invert__(self)"
print("Test of " + function + " ...")
tests = [
("110", str, ~element.DiscreteElement(3, 1)),
("101", str, ~element.DiscreteElement(3, 2)),
("100", str, ~element.DiscreteElement(3, 3)),
("011", str, ~element.DiscreteElement(3, 4)),
("010", str, ~element.DiscreteElement(3, 5)),
("001", str, ~element.DiscreteElement(3, 6)),
("000", str, ~element.DiscreteElement(3, 7)),
("11000", str, ~element.DiscreteElement(5, 7)),
("10110", str, ~element.DiscreteElement(5, 9)),
("01111101", str, ~element.DiscreteElement(8, 130)),
("0011", str, ~element.DiscreteElement.factory_from_str('1100')),
("0011", str, ~element.DiscreteElement.factory_from_str('0011', False)),
("00110010", str, ~element.DiscreteElement.factory_from_str('11001101')),
("01001100", str, ~element.DiscreteElement.factory_from_str('11001101', False))
]
errors = tests_utility.expected_output_test(tests, False)
if len(errors) != 0:
failed[function] = errors
print("... done: %i/%i tests were successful!" % (len(tests)-len(errors), len(tests)))
print("--------------------------------------------------------------------------------")
function = "DiscreteElement.exclusion(self, element)"
print("Test of " + function + " ...")
e1 = element.DiscreteElement.factory_from_str('0000')
e2 = element.DiscreteElement.factory_from_str('0001')
e3 = element.DiscreteElement.factory_from_str('0010')
e4 = element.DiscreteElement.factory_from_str('0011')
e5 = element.DiscreteElement.factory_from_str('0100')
e6 = element.DiscreteElement.factory_from_str('0101')
e7 = element.DiscreteElement.factory_from_str('0110')
e8 = element.DiscreteElement.factory_from_str('0111')
e9 = element.DiscreteElement.factory_from_str('1000')
e10 = element.DiscreteElement.factory_from_str('1001')
e11 = element.DiscreteElement.factory_from_str('1010')
e12 = element.DiscreteElement.factory_from_str('1011')
tests = [
("1011", str, e12.exclusion(e1)),
("1010", str, e12.exclusion(e2)),
("1001", str, e12.exclusion(e3)),
("1011", str, e12.exclusion(e1)),
("0001", str, e10.exclusion(e9)),
("0010", str, e8.exclusion(e6)),
("1000", str, e9.exclusion(e2)),
("0000", str, e4.exclusion(e8)),
]
errors = tests_utility.expected_output_test(tests, False)
if len(errors) != 0:
failed[function] = errors
print("... done: %i/%i tests were successful!" % (len(tests)-len(errors), len(tests)))
print("--------------------------------------------------------------------------------")
function = "e1 - e2 / DiscreteElement.__sub__(self, element)"
print("Test of " + function + " ...")
e1 = element.DiscreteElement.factory_from_str('0000')
e2 = element.DiscreteElement.factory_from_str('0001')
e3 = element.DiscreteElement.factory_from_str('0010')
e4 = element.DiscreteElement.factory_from_str('0011')
e5 = element.DiscreteElement.factory_from_str('0100')
e6 = element.DiscreteElement.factory_from_str('0101')
e7 = element.DiscreteElement.factory_from_str('0110')
e8 = element.DiscreteElement.factory_from_str('0111')
e9 = element.DiscreteElement.factory_from_str('1000')
e10 = element.DiscreteElement.factory_from_str('1001')
e11 = element.DiscreteElement.factory_from_str('1010')
e12 = element.DiscreteElement.factory_from_str('1011')
tests = [
("1011", str, e12 - e1),
("1010", str, e12 - e2),
("1001", str, e12 - e3),
("1011", str, e12 - e1),
("0001", str, e10 - e9),
("0010", str, e8 - e6),
("1000", str, e9 - e2),
("0000", str, e4 - e8),
]
errors = tests_utility.expected_output_test(tests, False)
if len(errors) != 0:
failed[function] = errors
print("... done: %i/%i tests were successful!" % (len(tests)-len(errors), len(tests)))
print("--------------------------------------------------------------------------------")
function = "DiscreteElement.conjunction(self, element)"
print("Test of " + function + " ...")
tests = [
("001", str, element.DiscreteElement(3, 1).conjunction(element.DiscreteElement(3, 1))),
("000", str, element.DiscreteElement(3, 2).conjunction(element.DiscreteElement(3, 1))),
("001", str, element.DiscreteElement(3, 3).conjunction(element.DiscreteElement(3, 1))),
("000", str, element.DiscreteElement(3, 4).conjunction(element.DiscreteElement(3, 1))),
("001", str, element.DiscreteElement(3, 5).conjunction(element.DiscreteElement(3, 1))),
("000", str, element.DiscreteElement(3, 6).conjunction(element.DiscreteElement(3, 1))),
("110", str, element.DiscreteElement(3, 7).conjunction(element.DiscreteElement(3, 6))),
("00000", str, element.DiscreteElement(5, 7).conjunction(element.DiscreteElement(5, 8))),
("00001", str, element.DiscreteElement(5, 9).conjunction(element.DiscreteElement(5, 7))),
("10000000", str, element.DiscreteElement(8, 130).conjunction(element.DiscreteElement(8, 128))),
("1000", str, element.DiscreteElement.factory_from_str('1100').conjunction(element.DiscreteElement(4, 11))),
("00001101", str, element.DiscreteElement.factory_from_str('11001101').conjunction(element.DiscreteElement(8, 13)))
]
errors = tests_utility.expected_output_test(tests, False)
if len(errors) != 0:
failed[function] = errors
nbFailed = len(errors)
nbTests = len(tests)
tests = [
(None, element.DiscreteElement(3, 1).conjunction, element.DiscreteElement(3, 3)),
(element.IncompatibleElementsError, element.DiscreteElement(3, 1).conjunction, element.DiscreteElement(5, 1)),
(None, element.DiscreteElement.factory_from_str('1100').conjunction, element.DiscreteElement(4, 11)),
(element.IncompatibleElementsError, element.DiscreteElement.factory_from_str('1100').conjunction, element.DiscreteElement(6, 11))
]
errors = tests_utility.exception_test(tests, False)
if len(errors) != 0:
if function in failed:
failed[function].extend(errors)
else:
failed[function] = errors
nbFailed += len(errors)
nbTests += len(tests)
print("... done: %i/%i tests were successful!" % (nbTests - nbFailed, nbTests))
print("--------------------------------------------------------------------------------")
function = "DiscreteElement.conjunction_unsafe(self, element)"
print("Test of " + function + " ...")
tests = [
("001", str, element.DiscreteElement(3, 1).conjunction_unsafe(element.DiscreteElement(3, 1))),
("000", str, element.DiscreteElement(3, 2).conjunction_unsafe(element.DiscreteElement(3, 1))),
("001", str, element.DiscreteElement(3, 3).conjunction_unsafe(element.DiscreteElement(3, 1))),
("000", str, element.DiscreteElement(3, 4).conjunction_unsafe(element.DiscreteElement(3, 1))),
("001", str, element.DiscreteElement(3, 5).conjunction_unsafe(element.DiscreteElement(3, 1))),
("000", str, element.DiscreteElement(3, 6).conjunction_unsafe(element.DiscreteElement(3, 1))),
("110", str, element.DiscreteElement(3, 7).conjunction_unsafe(element.DiscreteElement(3, 6))),
("00000", str, element.DiscreteElement(5, 7).conjunction_unsafe(element.DiscreteElement(5, 8))),
("00001", str, element.DiscreteElement(5, 9).conjunction_unsafe(element.DiscreteElement(5, 7))),
("10000000", str, element.DiscreteElement(8, 130).conjunction_unsafe(element.DiscreteElement(8, 128))),
("1000", str, element.DiscreteElement.factory_from_str('1100').conjunction_unsafe(element.DiscreteElement(4, 11))),
("00001101", str, element.DiscreteElement.factory_from_str('11001101').conjunction_unsafe(element.DiscreteElement(8, 13)))
]
errors = tests_utility.expected_output_test(tests, False)
if len(errors) != 0:
failed[function] = errors
print("... done: %i/%i tests were successful!" % (len(tests)-len(errors), len(tests)))
print("--------------------------------------------------------------------------------")
function = "DiscreteElement.intersection(self, element)"
print("Test of " + function + " ...")
tests = [
("001", str, element.DiscreteElement(3, 1).intersection(element.DiscreteElement(3, 1))),
("000", str, element.DiscreteElement(3, 2).intersection(element.DiscreteElement(3, 1))),
("001", str, element.DiscreteElement(3, 3).intersection(element.DiscreteElement(3, 1))),
("000", str, element.DiscreteElement(3, 4).intersection(element.DiscreteElement(3, 1))),
("001", str, element.DiscreteElement(3, 5).intersection(element.DiscreteElement(3, 1))),
("000", str, element.DiscreteElement(3, 6).intersection(element.DiscreteElement(3, 1))),
("110", str, element.DiscreteElement(3, 7).intersection(element.DiscreteElement(3, 6))),
("00000", str, element.DiscreteElement(5, 7).intersection(element.DiscreteElement(5, 8))),
("00001", str, element.DiscreteElement(5, 9).intersection(element.DiscreteElement(5, 7))),
("10000000", str, element.DiscreteElement(8, 130).intersection(element.DiscreteElement(8, 128))),
("1000", str, element.DiscreteElement.factory_from_str('1100').intersection(element.DiscreteElement(4, 11))),
("00001101", str, element.DiscreteElement.factory_from_str('11001101').intersection(element.DiscreteElement(8, 13)))
]
errors = tests_utility.expected_output_test(tests, False)
if len(errors) != 0:
failed[function] = errors
nbFailed = len(errors)
nbTests = len(tests)
tests = [
(None, element.DiscreteElement(3, 1).intersection, element.DiscreteElement(3, 3)),
(element.IncompatibleElementsError, element.DiscreteElement(3, 1).intersection, element.DiscreteElement(5, 1)),
(None, element.DiscreteElement.factory_from_str('1100').intersection, element.DiscreteElement(4, 11)),
(element.IncompatibleElementsError, element.DiscreteElement.factory_from_str('1100').intersection, element.DiscreteElement(6, 11))
]
errors = tests_utility.exception_test(tests, False)
if len(errors) != 0:
if function in failed:
failed[function].extend(errors)
else:
failed[function] = errors
nbFailed += len(errors)
nbTests += len(tests)
print("... done: %i/%i tests were successful!" % (nbTests - nbFailed, nbTests))
print("--------------------------------------------------------------------------------")
function = "e1 * e2 / DiscreteElement.__mul__(self, element)"
print("Test of " + function + " ...")
tests = [
("001", str, element.DiscreteElement(3, 1) * (element.DiscreteElement(3, 1))),
("000", str, element.DiscreteElement(3, 2) * (element.DiscreteElement(3, 1))),
("001", str, element.DiscreteElement(3, 3) * (element.DiscreteElement(3, 1))),
("000", str, element.DiscreteElement(3, 4) * (element.DiscreteElement(3, 1))),
("001", str, element.DiscreteElement(3, 5) * (element.DiscreteElement(3, 1))),
("000", str, element.DiscreteElement(3, 6) * (element.DiscreteElement(3, 1))),
("110", str, element.DiscreteElement(3, 7) * (element.DiscreteElement(3, 6))),
("00000", str, element.DiscreteElement(5, 7) * (element.DiscreteElement(5, 8))),
("00001", str, element.DiscreteElement(5, 9) * (element.DiscreteElement(5, 7))),
("10000000", str, element.DiscreteElement(8, 130) * (element.DiscreteElement(8, 128))),
("1000", str, element.DiscreteElement.factory_from_str('1100') * (element.DiscreteElement(4, 11))),
("00001101", str, element.DiscreteElement.factory_from_str('11001101') * (element.DiscreteElement(8, 13)))
]
errors = tests_utility.expected_output_test(tests, False)
if len(errors) != 0:
failed[function] = errors
nbFailed = len(errors)
nbTests = len(tests)
tests = [
(None, element.DiscreteElement(3, 1).__mul__, element.DiscreteElement(3, 3)),
(element.IncompatibleElementsError, element.DiscreteElement(3, 1).__mul__, element.DiscreteElement(5, 1)),
(None, element.DiscreteElement.factory_from_str('1100').__mul__, element.DiscreteElement(4, 11)),
(element.IncompatibleElementsError, element.DiscreteElement.factory_from_str('1100').__mul__, element.DiscreteElement(6, 11))
]
errors = tests_utility.exception_test(tests, False)
if len(errors) != 0:
if function in failed:
failed[function].extend(errors)
else:
failed[function] = errors
nbFailed += len(errors)
nbTests += len(tests)
print("... done: %i/%i tests were successful!" % (nbTests - nbFailed, nbTests))
print("--------------------------------------------------------------------------------")
function = "e1 & e2 / DiscreteElement.__and__(self, element)"
print("Test of " + function + " ...")
tests = [
("001", str, element.DiscreteElement(3, 1) & (element.DiscreteElement(3, 1))),
("000", str, element.DiscreteElement(3, 2) & (element.DiscreteElement(3, 1))),
("001", str, element.DiscreteElement(3, 3) & (element.DiscreteElement(3, 1))),
("000", str, element.DiscreteElement(3, 4) & (element.DiscreteElement(3, 1))),
("001", str, element.DiscreteElement(3, 5) & (element.DiscreteElement(3, 1))),
("000", str, element.DiscreteElement(3, 6) & (element.DiscreteElement(3, 1))),
("110", str, element.DiscreteElement(3, 7) & (element.DiscreteElement(3, 6))),
("00000", str, element.DiscreteElement(5, 7) & (element.DiscreteElement(5, 8))),
("00001", str, element.DiscreteElement(5, 9) & (element.DiscreteElement(5, 7))),
("10000000", str, element.DiscreteElement(8, 130) & (element.DiscreteElement(8, 128))),
("1000", str, element.DiscreteElement.factory_from_str('1100') & (element.DiscreteElement(4, 11))),
("00001101", str, element.DiscreteElement.factory_from_str('11001101') & (element.DiscreteElement(8, 13)))
]
errors = tests_utility.expected_output_test(tests, False)
if len(errors) != 0:
failed[function] = errors
nbFailed = len(errors)
nbTests = len(tests)
tests = [
(None, element.DiscreteElement(3, 1).__and__, element.DiscreteElement(3, 3)),
(element.IncompatibleElementsError, element.DiscreteElement(3, 1).__and__, element.DiscreteElement(5, 1)),
(None, element.DiscreteElement.factory_from_str('1100').__and__, element.DiscreteElement(4, 11)),
(element.IncompatibleElementsError, element.DiscreteElement.factory_from_str('1100').__and__, element.DiscreteElement(6, 11))
]
errors = tests_utility.exception_test(tests, False)
if len(errors) != 0:
if function in failed:
failed[function].extend(errors)
else:
failed[function] = errors
nbFailed += len(errors)
nbTests += len(tests)
print("... done: %i/%i tests were successful!" % (nbTests - nbFailed, nbTests))
print("--------------------------------------------------------------------------------")
function = "DiscreteElement.disjunction(self, element)"
print("Test of " + function + " ...")
tests = [
("001", str, element.DiscreteElement(3, 1).disjunction(element.DiscreteElement(3, 1))),
("011", str, element.DiscreteElement(3, 2).disjunction(element.DiscreteElement(3, 1))),
("011", str, element.DiscreteElement(3, 3).disjunction(element.DiscreteElement(3, 1))),
("101", str, element.DiscreteElement(3, 4).disjunction(element.DiscreteElement(3, 1))),
("101", str, element.DiscreteElement(3, 5).disjunction(element.DiscreteElement(3, 1))),
("111", str, element.DiscreteElement(3, 6).disjunction(element.DiscreteElement(3, 1))),
("111", str, element.DiscreteElement(3, 7).disjunction(element.DiscreteElement(3, 6))),
("01111", str, element.DiscreteElement(5, 7).disjunction(element.DiscreteElement(5, 8))),
("01111", str, element.DiscreteElement(5, 9).disjunction(element.DiscreteElement(5, 7))),
("10000010", str, element.DiscreteElement(8, 130).disjunction(element.DiscreteElement(8, 128))),
("1111", str, element.DiscreteElement.factory_from_str('1100').disjunction(element.DiscreteElement(4, 11))),
("11001101", str, element.DiscreteElement.factory_from_str('11001101').disjunction(element.DiscreteElement(8, 13)))
]
errors = tests_utility.expected_output_test(tests, False)
if len(errors) != 0:
failed[function] = errors
nbFailed = len(errors)
nbTests = len(tests)
tests = [
(None, element.DiscreteElement(3, 1).disjunction, element.DiscreteElement(3, 3)),
(element.IncompatibleElementsError, element.DiscreteElement(3, 1).disjunction, element.DiscreteElement(5, 1)),
(None, element.DiscreteElement.factory_from_str('1100').disjunction, element.DiscreteElement(4, 11)),
(element.IncompatibleElementsError, element.DiscreteElement.factory_from_str('1100').disjunction, element.DiscreteElement(6, 11))
]
errors = tests_utility.exception_test(tests, False)
if len(errors) != 0:
if function in failed:
failed[function].extend(errors)
else:
failed[function] = errors
nbFailed += len(errors)
nbTests += len(tests)
print("... done: %i/%i tests were successful!" % (nbTests - nbFailed, nbTests))
print("--------------------------------------------------------------------------------")
function = "DiscreteElement.disjunction_unsafe(self, element)"
print("Test of " + function + " ...")
tests = [
("001", str, element.DiscreteElement(3, 1).disjunction_unsafe(element.DiscreteElement(3, 1))),
("011", str, element.DiscreteElement(3, 2).disjunction_unsafe(element.DiscreteElement(3, 1))),
("011", str, element.DiscreteElement(3, 3).disjunction_unsafe(element.DiscreteElement(3, 1))),
("101", str, element.DiscreteElement(3, 4).disjunction_unsafe(element.DiscreteElement(3, 1))),
("101", str, element.DiscreteElement(3, 5).disjunction_unsafe(element.DiscreteElement(3, 1))),
("111", str, element.DiscreteElement(3, 6).disjunction_unsafe(element.DiscreteElement(3, 1))),
("111", str, element.DiscreteElement(3, 7).disjunction_unsafe(element.DiscreteElement(3, 6))),
("01111", str, element.DiscreteElement(5, 7).disjunction_unsafe(element.DiscreteElement(5, 8))),
("01111", str, element.DiscreteElement(5, 9).disjunction_unsafe(element.DiscreteElement(5, 7))),
("10000010", str, element.DiscreteElement(8, 130).disjunction_unsafe(element.DiscreteElement(8, 128))),
("1111", str, element.DiscreteElement.factory_from_str('1100').disjunction_unsafe(element.DiscreteElement(4, 11))),
("11001101", str, element.DiscreteElement.factory_from_str('11001101').disjunction_unsafe(element.DiscreteElement(8, 13)))
]
errors = tests_utility.expected_output_test(tests, False)
if len(errors) != 0:
failed[function] = errors
print("... done: %i/%i tests were successful!" % (len(tests)-len(errors), len(tests)))
print("--------------------------------------------------------------------------------")
function = "DiscreteElement.union(self, element)"
print("Test of " + function + " ...")
tests = [
("001", str, element.DiscreteElement(3, 1).union(element.DiscreteElement(3, 1))),
("011", str, element.DiscreteElement(3, 2).union(element.DiscreteElement(3, 1))),
("011", str, element.DiscreteElement(3, 3).union(element.DiscreteElement(3, 1))),
("101", str, element.DiscreteElement(3, 4).union(element.DiscreteElement(3, 1))),
("101", str, element.DiscreteElement(3, 5).union(element.DiscreteElement(3, 1))),
("111", str, element.DiscreteElement(3, 6).union(element.DiscreteElement(3, 1))),
("111", str, element.DiscreteElement(3, 7).union(element.DiscreteElement(3, 6))),
("01111", str, element.DiscreteElement(5, 7).union(element.DiscreteElement(5, 8))),
("01111", str, element.DiscreteElement(5, 9).union(element.DiscreteElement(5, 7))),
("10000010", str, element.DiscreteElement(8, 130).union(element.DiscreteElement(8, 128))),
("1111", str, element.DiscreteElement.factory_from_str('1100').union(element.DiscreteElement(4, 11))),
("11001101", str, element.DiscreteElement.factory_from_str('11001101').union(element.DiscreteElement(8, 13)))
]
errors = tests_utility.expected_output_test(tests, False)
if len(errors) != 0:
failed[function] = errors
nbFailed = len(errors)
nbTests = len(tests)
tests = [
(None, element.DiscreteElement(3, 1).union, element.DiscreteElement(3, 3)),
(element.IncompatibleElementsError, element.DiscreteElement(3, 1).union, element.DiscreteElement(5, 1)),
(None, element.DiscreteElement.factory_from_str('1100').union, element.DiscreteElement(4, 11)),
(element.IncompatibleElementsError, element.DiscreteElement.factory_from_str('1100').union, element.DiscreteElement(6, 11))
]
errors = tests_utility.exception_test(tests, False)
if len(errors) != 0:
if function in failed:
failed[function].extend(errors)
else:
failed[function] = errors
nbFailed += len(errors)
nbTests += len(tests)
print("... done: %i/%i tests were successful!" % (nbTests - nbFailed, nbTests))
print("--------------------------------------------------------------------------------")
function = "e1 + e2 / DiscreteElement.__add__(self, element)"
print("Test of " + function + " ...")
tests = [
("001", str, element.DiscreteElement(3, 1) + (element.DiscreteElement(3, 1))),
("011", str, element.DiscreteElement(3, 2) + (element.DiscreteElement(3, 1))),
("011", str, element.DiscreteElement(3, 3) + (element.DiscreteElement(3, 1))),
("101", str, element.DiscreteElement(3, 4) + (element.DiscreteElement(3, 1))),
("101", str, element.DiscreteElement(3, 5) + (element.DiscreteElement(3, 1))),
("111", str, element.DiscreteElement(3, 6) + (element.DiscreteElement(3, 1))),
("111", str, element.DiscreteElement(3, 7) + (element.DiscreteElement(3, 6))),
("01111", str, element.DiscreteElement(5, 7) + (element.DiscreteElement(5, 8))),
("01111", str, element.DiscreteElement(5, 9) + (element.DiscreteElement(5, 7))),
("10000010", str, element.DiscreteElement(8, 130) + (element.DiscreteElement(8, 128))),
("1111", str, element.DiscreteElement.factory_from_str('1100') + (element.DiscreteElement(4, 11))),
("11001101", str, element.DiscreteElement.factory_from_str('11001101') + (element.DiscreteElement(8, 13)))
]
errors = tests_utility.expected_output_test(tests, False)
if len(errors) != 0:
failed[function] = errors
nbFailed = len(errors)
nbTests = len(tests)
tests = [
(None, element.DiscreteElement(3, 1).__add__, element.DiscreteElement(3, 3)),
(element.IncompatibleElementsError, element.DiscreteElement(3, 1).__add__, element.DiscreteElement(5, 1)),
(None, element.DiscreteElement.factory_from_str('1100').__add__, element.DiscreteElement(4, 11)),
(element.IncompatibleElementsError, element.DiscreteElement.factory_from_str('1100').__add__, element.DiscreteElement(6, 11))
]
errors = tests_utility.exception_test(tests, False)
if len(errors) != 0:
if function in failed:
failed[function].extend(errors)
else:
failed[function] = errors
nbFailed += len(errors)
nbTests += len(tests)
print("... done: %i/%i tests were successful!" % (nbTests - nbFailed, nbTests))
print("--------------------------------------------------------------------------------")
function = "e1 | e2 / DiscreteElement.__or__(self, element)"
print("Test of " + function + " ...")
tests = [
("001", str, element.DiscreteElement(3, 1) | (element.DiscreteElement(3, 1))),
("011", str, element.DiscreteElement(3, 2) | (element.DiscreteElement(3, 1))),
("011", str, element.DiscreteElement(3, 3) | (element.DiscreteElement(3, 1))),
("101", str, element.DiscreteElement(3, 4) | (element.DiscreteElement(3, 1))),
("101", str, element.DiscreteElement(3, 5) | (element.DiscreteElement(3, 1))),
("111", str, element.DiscreteElement(3, 6) | (element.DiscreteElement(3, 1))),
("111", str, element.DiscreteElement(3, 7) | (element.DiscreteElement(3, 6))),
("01111", str, element.DiscreteElement(5, 7) | (element.DiscreteElement(5, 8))),
("01111", str, element.DiscreteElement(5, 9) | (element.DiscreteElement(5, 7))),
("10000010", str, element.DiscreteElement(8, 130) | (element.DiscreteElement(8, 128))),
("1111", str, element.DiscreteElement.factory_from_str('1100') | (element.DiscreteElement(4, 11))),
("11001101", str, element.DiscreteElement.factory_from_str('11001101') | (element.DiscreteElement(8, 13)))
]
errors = tests_utility.expected_output_test(tests, False)
if len(errors) != 0:
failed[function] = errors
nbFailed = len(errors)
nbTests = len(tests)
tests = [
(None, element.DiscreteElement(3, 1).__or__, element.DiscreteElement(3, 3)),
(element.IncompatibleElementsError, element.DiscreteElement(3, 1).__or__, element.DiscreteElement(5, 1)),
(None, element.DiscreteElement.factory_from_str('1100').__or__, element.DiscreteElement(4, 11)),
(element.IncompatibleElementsError, element.DiscreteElement.factory_from_str('1100').__or__, element.DiscreteElement(6, 11))
]
errors = tests_utility.exception_test(tests, False)
if len(errors) != 0:
if function in failed:
failed[function].extend(errors)
else:
failed[function] = errors
nbFailed += len(errors)
nbTests += len(tests)
print("... done: %i/%i tests were successful!" % (nbTests - nbFailed, nbTests))
print("--------------------------------------------------------------------------------")
function = "DiscreteElement.get_compatible_empty_element(self)"
print("Test of " + function + " ...")
tests = [
("000", str, element.DiscreteElement(3, 1).get_compatible_empty_element()),
("000", str, element.DiscreteElement(3, 2).get_compatible_empty_element()),
("00000", str, element.DiscreteElement(5, 7).get_compatible_empty_element()),
("00000", str, element.DiscreteElement(5, 9).get_compatible_empty_element()),
("00000000", str, element.DiscreteElement(8, 130).get_compatible_empty_element()),
("0000", str, element.DiscreteElement.factory_from_str('1100').get_compatible_empty_element()),
("0000", str, element.DiscreteElement.factory_from_str('0011', False).get_compatible_empty_element()),
("00000000", str, element.DiscreteElement.factory_from_str('11001101').get_compatible_empty_element()),
("00000000", str, element.DiscreteElement.factory_from_str('11001101', False).get_compatible_empty_element())
]
errors = tests_utility.expected_output_test(tests, False)
if len(errors) != 0:
failed[function] = errors
print("... done: %i/%i tests were successful!" % (len(tests)-len(errors), len(tests)))
print("--------------------------------------------------------------------------------")
function = "DiscreteElement.get_compatible_complete_element(self)"
print("Test of " + function + " ...")
tests = [
("111", str, element.DiscreteElement(3, 1).get_compatible_complete_element()),
("111", str, element.DiscreteElement(3, 2).get_compatible_complete_element()),
("11111", str, element.DiscreteElement(5, 7).get_compatible_complete_element()),
("11111", str, element.DiscreteElement(5, 9).get_compatible_complete_element()),
("11111111", str, element.DiscreteElement(8, 130).get_compatible_complete_element()),
("1111", str, element.DiscreteElement.factory_from_str('1100').get_compatible_complete_element()),
("1111", str, element.DiscreteElement.factory_from_str('0011', False).get_compatible_complete_element()),
("11111111", str, element.DiscreteElement.factory_from_str('11001101').get_compatible_complete_element()),
("11111111", str, element.DiscreteElement.factory_from_str('11001101', False).get_compatible_complete_element())
]
errors = tests_utility.expected_output_test(tests, False)
if len(errors) != 0:
failed[function] = errors
print("... done: %i/%i tests were successful!" % (len(tests)-len(errors), len(tests)))
print("--------------------------------------------------------------------------------")
function = "DiscreteElement.is_empty(self)"
print("Test of " + function + " ...")
tests = [
(False, element.DiscreteElement(3, 1).is_empty),
(True, element.DiscreteElement(3, 0).is_empty),
(True, element.DiscreteElement(5, 0).is_empty),
(False, element.DiscreteElement(5, 9).is_empty),
(False, element.DiscreteElement(8, 130).is_empty),
(True, element.DiscreteElement(8, 0).is_empty),
(False, element.DiscreteElement.factory_from_str('1100').is_empty),
(True, element.DiscreteElement.factory_from_str('0000').is_empty),
(False, element.DiscreteElement.factory_from_str('0011', False).is_empty),
(True, element.DiscreteElement.factory_from_str('0000', False).is_empty),
(False, element.DiscreteElement.factory_from_str('11001101').is_empty),
(True, element.DiscreteElement.factory_from_str('00000000').is_empty),
(False, element.DiscreteElement.factory_from_str('11001101', False).is_empty),
(True, element.DiscreteElement.factory_from_str('00000000', False).is_empty)
]
errors = tests_utility.expected_output_test(tests, False)
if len(errors) != 0:
failed[function] = errors
print("... done: %i/%i tests were successful!" % (len(tests)-len(errors), len(tests)))
print("--------------------------------------------------------------------------------")
function = "DiscreteElement.is_complete(self)"
print("Test of " + function + " ...")
tests = [
(False, element.DiscreteElement(3, 1).is_complete),
(True, element.DiscreteElement(3, 7).is_complete),
(True, element.DiscreteElement(5, 31).is_complete),
(False, element.DiscreteElement(5, 9).is_complete),
(False, element.DiscreteElement(8, 130).is_complete),
(True, element.DiscreteElement(8, 255).is_complete),
(False, element.DiscreteElement.factory_from_str('1100').is_complete),
(True, element.DiscreteElement.factory_from_str('1111').is_complete),
(False, element.DiscreteElement.factory_from_str('0011', False).is_complete),
(True, element.DiscreteElement.factory_from_str('1111', False).is_complete),
(False, element.DiscreteElement.factory_from_str('11001101').is_complete),
(True, element.DiscreteElement.factory_from_str('11111111').is_complete),
(False, element.DiscreteElement.factory_from_str('11001101', False).is_complete),
(True, element.DiscreteElement.factory_from_str('11111111', False).is_complete)
]
errors = tests_utility.expected_output_test(tests, False)
if len(errors) != 0:
failed[function] = errors
print("... done: %i/%i tests were successful!" % (len(tests)-len(errors), len(tests)))
print("--------------------------------------------------------------------------------")
function = "DiscreteElement.is_subset(self, element)"
print("Test of " + function + " ...")
tests = [
(True, element.DiscreteElement(3, 0).is_subset, element.DiscreteElement(3, 1)),
(False, element.DiscreteElement(3, 0).is_subset, element.DiscreteElement(5, 31)),
(False, element.DiscreteElement(5, 0).is_subset, element.DiscreteElement(3, 1)),
(True, element.DiscreteElement(5, 0).is_subset, element.DiscreteElement(5, 31)),
(True, element.DiscreteElement(3, 0).is_subset, element.DiscreteElement(3, 3)),
(False, element.DiscreteElement(3, 0).is_subset, element.DiscreteElement(5, 12)),
(False, element.DiscreteElement(5, 0).is_subset, element.DiscreteElement(3, 3)),
(True, element.DiscreteElement(5, 0).is_subset, element.DiscreteElement(5, 12)),
(False, element.DiscreteElement.factory_from_str('1100').is_subset, element.DiscreteElement.factory_from_str('1010')),
(True, element.DiscreteElement.factory_from_str('1100').is_subset, element.DiscreteElement.factory_from_str('1110')),
(False, element.DiscreteElement.factory_from_str('11001101').is_subset, element.DiscreteElement.factory_from_str('10111101')),
(True, element.DiscreteElement.factory_from_str('11001101').is_subset, element.DiscreteElement.factory_from_str('11011111')),
]
errors = tests_utility.expected_output_test(tests, False)
if len(errors) != 0:
failed[function] = errors
print("... done: %i/%i tests were successful!" % (len(tests)-len(errors), len(tests)))
print("--------------------------------------------------------------------------------")
function = "DiscreteElement.is_superset(self, element)"
print("Test of " + function + " ...")
tests = [
(False, element.DiscreteElement(3, 0).is_superset, element.DiscreteElement(3, 1)),
(False, element.DiscreteElement(3, 0).is_superset, element.DiscreteElement(3, 3)),
(True, element.DiscreteElement(3, 0).is_superset, element.DiscreteElement(3, 0)),
(False, element.DiscreteElement(5, 0).is_superset, element.DiscreteElement(3, 1)),
(False, element.DiscreteElement(5, 0).is_superset, element.DiscreteElement(5, 1)),
(True, element.DiscreteElement(5, 0).is_superset, element.DiscreteElement(5, 0)),
(False, element.DiscreteElement.factory_from_str('1100').is_superset, element.DiscreteElement.factory_from_str('1010')),
(True, element.DiscreteElement.factory_from_str('1100').is_superset, element.DiscreteElement.factory_from_str('1000')),
(False, element.DiscreteElement.factory_from_str('11001101').is_superset, element.DiscreteElement.factory_from_str('10111101')),
(True, element.DiscreteElement.factory_from_str('11011111').is_superset, element.DiscreteElement.factory_from_str('11001101')),
]
errors = tests_utility.expected_output_test(tests, False)
if len(errors) != 0:
failed[function] = errors
print("... done: %i/%i tests were successful!" % (len(tests)-len(errors), len(tests)))
print("--------------------------------------------------------------------------------")
################################################################################
################################################################################
################################################################################
##########################
# TESTS: IntervalElement #
##########################
function = "IntervalElement.__init__(self, *intervals)"
print("Test of " + function + " ...")
tests = [
(ValueError, element.IntervalElement, (3,0)),
(ValueError, element.IntervalElement, (1, 2, 3)),
(ValueError, element.IntervalElement, (0,3), (23, 12)),
(ValueError, element.IntervalElement, "ab")
]
errors = tests_utility.exception_test(tests, False)
if len(errors) != 0:
failed[function] = errors
print("... done: %i/%i tests were successful!" % (len(tests)-len(errors), len(tests)))
print("--------------------------------------------------------------------------------")
function = "str(IntervalElement) / IntervalElement.__str__(self)"
print("Test of " + function + " ...")
tests = [
("[0, 1]", str, element.IntervalElement((0,1))),
("[0, 1] u [2, 3]", str, element.IntervalElement((0,1), (2,3))),
("[0, 2]", str, element.IntervalElement((0,1), (1,2))),
("[-inf, 3]", str, element.IntervalElement((float("-inf"), 3))),
("[-5, 5] u [8, 10]", str, element.IntervalElement((-5,5), (-3,3), (-4,-2), (1, 5), (9,10), (8,9.5))),
("[-inf, 0] u [1, inf]", str, element.IntervalElement((float('-inf'), 0), (1, float('inf')))),
("[-inf, inf]", str, element.IntervalElement((float('-inf'), float('inf')), (0, 1))),
("[0, 1]", str, element.IntervalElement.factory_constructor_unsafe((0,1))),
("[0, 1] u [2, 3]", str, element.IntervalElement.factory_constructor_unsafe((0,1), (2,3))),
("[0, 2]", str, element.IntervalElement.factory_constructor_unsafe((0,1), (1,2))),
("[-inf, 3]", str, element.IntervalElement.factory_constructor_unsafe((float("-inf"), 3))),
("[-5, 5] u [8, 10]", str, element.IntervalElement.factory_constructor_unsafe((-5,5), (-3,3), (-4,-2), (1, 5), (9,10), (8,9.5))),
("[-inf, 0] u [1, inf]", str, element.IntervalElement.factory_constructor_unsafe((float('-inf'), 0), (1, float('inf')))),
("[-inf, inf]", str, element.IntervalElement.factory_constructor_unsafe((float('-inf'), float('inf')), (0, 1)))
]
errors = tests_utility.expected_output_test(tests, False)
if len(errors) != 0:
failed[function] = errors
print("... done: %i/%i tests were successful!" % (len(tests)-len(errors), len(tests)))
print("--------------------------------------------------------------------------------")
function = "IntervalElement.cardinal(self)"
print("Test of " + function + " ...")
tests = [
(1, element.IntervalElement((0, 1)), "cardinal"),
(1, element.IntervalElement((5678, 5679)), "cardinal"),
(float('inf'), element.IntervalElement((float("-inf"), -4)), "cardinal"),
(float('inf'), element.IntervalElement((12, float("inf"))), "cardinal"),
(12, element.IntervalElement((0, 6), (12, 18)), "cardinal"),
]
errors = tests_utility.expected_property_test(tests, False)
if len(errors) != 0:
failed[function] = errors
print("... done: %i/%i tests were successful!" % (len(tests)-len(errors), len(tests)))
print("--------------------------------------------------------------------------------")
function = "IntervalElement.opposite(self)"
print("Test of " + function + " ...")
tests = [
("[-inf, 0] u [1, inf]", str, element.IntervalElement((0,1)).opposite()),
("[0, 1]", str, element.IntervalElement((0,1)).opposite().opposite()),
("[0, inf]", str, element.IntervalElement((float('-inf'), 0)).opposite()),
("[-inf, 0]", str, element.IntervalElement((float('-inf'), 0)).opposite().opposite()),
("[-inf, -5] u [0, 5] u [10, inf]", str, element.IntervalElement((-5, 0), (5, 10)).opposite()),
("[-5, 0] u [5, 10]", str, element.IntervalElement((-5, 0), (5, 10)).opposite().opposite())
]
errors = tests_utility.expected_output_test(tests, False)
if len(errors) != 0:
failed[function] = errors
print("... done: %i/%i tests were successful!" % (len(tests)-len(errors), len(tests)))
print("--------------------------------------------------------------------------------")
function = "~e / IntervalElement.__invert__(self)"
print("Test of " + function + " ...")
tests = [
("[-inf, 0] u [1, inf]", str, ~element.IntervalElement((0,1))),
("[0, 1]", str, ~~element.IntervalElement((0,1))),
("[0, inf]", str, ~element.IntervalElement((float('-inf'), 0))),
("[-inf, 0]", str, ~~element.IntervalElement((float('-inf'), 0))),
("[-inf, -5] u [0, 5] u [10, inf]", str, ~element.IntervalElement((-5, 0), (5, 10))),
("[-5, 0] u [5, 10]", str, ~~element.IntervalElement((-5, 0), (5, 10)))
]
errors = tests_utility.expected_output_test(tests, False)
if len(errors) != 0:
failed[function] = errors
print("... done: %i/%i tests were successful!" % (len(tests)-len(errors), len(tests)))
print("--------------------------------------------------------------------------------")
function = "IntervalElement.exclusion(self, element)"
print("Test of " + function + " ...")
e1 = element.IntervalElement((float('-inf'), float('inf')))
e2 = element.IntervalElement((0, 1))
e3 = element.IntervalElement((-5, 5))
e4 = element.IntervalElement((0.2, 4))
tests = [
("[-inf, 0] u [1, inf]", str, e1.exclusion(e2)),
("[]", str, e2.exclusion(e1)),
("[-5, 0] u [1, 5]", str, e3.exclusion(e2)),
("[]", str, e2.exclusion(e3)),
("[0, 0.2]", str, e2.exclusion(e4)),
("[1, 4]", str, e4.exclusion(e2))
]
errors = tests_utility.expected_output_test(tests, False)
if len(errors) != 0:
failed[function] = errors
print("... done: %i/%i tests were successful!" % (len(tests)-len(errors), len(tests)))
print("--------------------------------------------------------------------------------")
function = "e1 - e2 / IntervalElement.__sub__(self, element)"
print("Test of " + function + " ...")
e1 = element.IntervalElement((float('-inf'), float('inf')))
e2 = element.IntervalElement((0, 1))
e3 = element.IntervalElement((-5, 5))
e4 = element.IntervalElement((0.2, 4))
tests = [
("[-inf, 0] u [1, inf]", str, e1 - e2),
("[]", str, e2 - e1),
("[-5, 0] u [1, 5]", str, e3 - e2),
("[]", str, e2 - e3),
("[0, 0.2]", str, e2 - e4),
("[1, 4]", str, e4 - e2)
]
errors = tests_utility.expected_output_test(tests, False)
if len(errors) != 0:
failed[function] = errors
print("... done: %i/%i tests were successful!" % (len(tests)-len(errors), len(tests)))
print("--------------------------------------------------------------------------------")
function = "IntervalElement.conjunction(self, element)"
print("Test of " + function + " ...")
e1 = element.IntervalElement((float('-inf'), float('inf')))
e2 = element.IntervalElement((0, 1))
e3 = element.IntervalElement((-5, 5))
e4 = element.IntervalElement((0.2, 4))
e5 = element.IntervalElement((0, 1), (2, 4))
tests = [
("[0, 1]", str, e1.conjunction(e2)),
("[0, 1]", str, e2.conjunction(e1)),
("[0, 1]", str, e2.conjunction(e2)),
("[0, 1]", str, e3.conjunction(e2)),
("[0, 1]", str, e2.conjunction(e3)),
("[0.2, 1]", str, e4.conjunction(e2)),
("[0.2, 1]", str, e2.conjunction(e4)),
("[0.2, 1] u [2, 4]", str, e5.conjunction(e4)),
("[0.2, 1] u [2, 4]", str, e4.conjunction(e5))
]
errors = tests_utility.expected_output_test(tests, False)
if len(errors) != 0:
failed[function] = errors
print("... done: %i/%i tests were successful!" % (len(tests)-len(errors), len(tests)))
print("--------------------------------------------------------------------------------")
function = "IntervalElement.conjunction_unsafe(self, element)"
print("Test of " + function + " ...")
e1 = element.IntervalElement((float('-inf'), float('inf')))
e2 = element.IntervalElement((0, 1))
e3 = element.IntervalElement((-5, 5))
e4 = element.IntervalElement((0.2, 4))
e5 = element.IntervalElement((0, 1), (2, 4))
tests = [
("[0, 1]", str, e1.conjunction_unsafe(e2)),
("[0, 1]", str, e2.conjunction_unsafe(e1)),
("[0, 1]", str, e2.conjunction_unsafe(e2)),
("[0, 1]", str, e3.conjunction_unsafe(e2)),
("[0, 1]", str, e2.conjunction_unsafe(e3)),
("[0.2, 1]", str, e4.conjunction_unsafe(e2)),
("[0.2, 1]", str, e2.conjunction_unsafe(e4)),
("[0.2, 1] u [2, 4]", str, e5.conjunction_unsafe(e4)),
("[0.2, 1] u [2, 4]", str, e4.conjunction_unsafe(e5))
]
errors = tests_utility.expected_output_test(tests, False)
if len(errors) != 0:
failed[function] = errors
print("... done: %i/%i tests were successful!" % (len(tests)-len(errors), len(tests)))
print("--------------------------------------------------------------------------------")
function = "IntervalElement.intersection(self, element)"
print("Test of " + function + " ...")
e1 = element.IntervalElement((float('-inf'), float('inf')))
e2 = element.IntervalElement((0, 1))
e3 = element.IntervalElement((-5, 5))
e4 = element.IntervalElement((0.2, 4))
e5 = element.IntervalElement((0, 1), (2, 4))
tests = [
("[0, 1]", str, e1.intersection(e2)),
("[0, 1]", str, e2.intersection(e1)),
("[0, 1]", str, e2.intersection(e2)),
("[0, 1]", str, e3.intersection(e2)),
("[0, 1]", str, e2.intersection(e3)),
("[0.2, 1]", str, e4.intersection(e2)),
("[0.2, 1]", str, e2.intersection(e4)),
("[0.2, 1] u [2, 4]", str, e5.intersection(e4)),
("[0.2, 1] u [2, 4]", str, e4.intersection(e5))
]
errors = tests_utility.expected_output_test(tests, False)
if len(errors) != 0:
failed[function] = errors
print("... done: %i/%i tests were successful!" % (len(tests)-len(errors), len(tests)))
print("--------------------------------------------------------------------------------")
function = "e1 * e2 / IntervalElement.__mul__(self, element)"
print("Test of " + function + " ...")
e1 = element.IntervalElement((float('-inf'), float('inf')))
e2 = element.IntervalElement((0, 1))
e3 = element.IntervalElement((-5, 5))
e4 = element.IntervalElement((0.2, 4))
e5 = element.IntervalElement((0, 1), (2, 4))
tests = [
("[0, 1]", str, e1 * e2),
("[0, 1]", str, e2 * e1),
("[0, 1]", str, e2 * e2),
("[0, 1]", str, e3 * e2),
("[0, 1]", str, e2 * e3),
("[0.2, 1]", str, e4 * e2),
("[0.2, 1]", str, e2 * e4),
("[0.2, 1] u [2, 4]", str, e5 * e4),
("[0.2, 1] u [2, 4]", str, e4 * e5)
]
errors = tests_utility.expected_output_test(tests, False)
if len(errors) != 0:
failed[function] = errors
print("... done: %i/%i tests were successful!" % (len(tests)-len(errors), len(tests)))
print("--------------------------------------------------------------------------------")
function = "e1 & e2 / IntervalElement.__and__(self, element)"
print("Test of " + function + " ...")
e1 = element.IntervalElement((float('-inf'), float('inf')))
e2 = element.IntervalElement((0, 1))
e3 = element.IntervalElement((-5, 5))
e4 = element.IntervalElement((0.2, 4))
e5 = element.IntervalElement((0, 1), (2, 4))
tests = [
("[0, 1]", str, e1 & e2),
("[0, 1]", str, e2 & e1),
("[0, 1]", str, e2 & e2),
("[0, 1]", str, e3 & e2),
("[0, 1]", str, e2 & e3),
("[0.2, 1]", str, e4 & e2),
("[0.2, 1]", str, e2 & e4),
("[0.2, 1] u [2, 4]", str, e5 & e4),
("[0.2, 1] u [2, 4]", str, e4 & e5)
]
errors = tests_utility.expected_output_test(tests, False)
if len(errors) != 0:
failed[function] = errors
print("... done: %i/%i tests were successful!" % (len(tests)-len(errors), len(tests)))
print("--------------------------------------------------------------------------------")
function = "IntervalElement.disjunction(self, element)"
print("Test of " + function + " ...")
e1 = element.IntervalElement((float('-inf'), float('inf')))
e2 = element.IntervalElement((0, 1))
e3 = element.IntervalElement((-5, 5))
e4 = element.IntervalElement((0.2, 4))
e5 = element.IntervalElement((0, 1), (2, 4))
tests = [
("[-inf, inf]", str, e1.disjunction(e2)),
("[-inf, inf]", str, e2.disjunction(e1)),
("[0, 1]", str, e2.disjunction(e2)),
("[-5, 5]", str, e3.disjunction(e2)),
("[-5, 5]", str, e2.disjunction(e3)),
("[0, 4]", str, e4.disjunction(e2)),
("[0, 4]", str, e2.disjunction(e4)),
("[0, 4]", str, e5.disjunction(e4)),
("[0, 4]", str, e4.disjunction(e5))
]
errors = tests_utility.expected_output_test(tests, False)
if len(errors) != 0:
failed[function] = errors
print("... done: %i/%i tests were successful!" % (len(tests)-len(errors), len(tests)))
print("--------------------------------------------------------------------------------")
function = "IntervalElement.disjunction_unsafe(self, element)"
print("Test of " + function + " ...")
e1 = element.IntervalElement((float('-inf'), float('inf')))
e2 = element.IntervalElement((0, 1))
e3 = element.IntervalElement((-5, 5))
e4 = element.IntervalElement((0.2, 4))
e5 = element.IntervalElement((0, 1), (2, 4))
tests = [
("[-inf, inf]", str, e1.disjunction_unsafe(e2)),
("[-inf, inf]", str, e2.disjunction_unsafe(e1)),
("[0, 1]", str, e2.disjunction_unsafe(e2)),
("[-5, 5]", str, e3.disjunction_unsafe(e2)),
("[-5, 5]", str, e2.disjunction_unsafe(e3)),
("[0, 4]", str, e4.disjunction_unsafe(e2)),
("[0, 4]", str, e2.disjunction_unsafe(e4)),
("[0, 4]", str, e5.disjunction_unsafe(e4)),
("[0, 4]", str, e4.disjunction_unsafe(e5))
]
errors = tests_utility.expected_output_test(tests, False)
if len(errors) != 0:
failed[function] = errors
print("... done: %i/%i tests were successful!" % (len(tests)-len(errors), len(tests)))
print("--------------------------------------------------------------------------------")
function = "IntervalElement.union(self, element)"
print("Test of " + function + " ...")
e1 = element.IntervalElement((float('-inf'), float('inf')))
e2 = element.IntervalElement((0, 1))
e3 = element.IntervalElement((-5, 5))
e4 = element.IntervalElement((0.2, 4))
e5 = element.IntervalElement((0, 1), (2, 4))
tests = [
("[-inf, inf]", str, e1.union(e2)),
("[-inf, inf]", str, e2.union(e1)),
("[0, 1]", str, e2.union(e2)),
("[-5, 5]", str, e3.union(e2)),
("[-5, 5]", str, e2.union(e3)),
("[0, 4]", str, e4.union(e2)),
("[0, 4]", str, e2.union(e4)),
("[0, 4]", str, e5.union(e4)),
("[0, 4]", str, e4.union(e5))
]
errors = tests_utility.expected_output_test(tests, False)
if len(errors) != 0:
failed[function] = errors
print("... done: %i/%i tests were successful!" % (len(tests)-len(errors), len(tests)))
print("--------------------------------------------------------------------------------")
function = "e1 + e2 / IntervalElement.__add__(self, element)"
print("Test of " + function + " ...")
e1 = element.IntervalElement((float('-inf'), float('inf')))
e2 = element.IntervalElement((0, 1))
e3 = element.IntervalElement((-5, 5))
e4 = element.IntervalElement((0.2, 4))
e5 = element.IntervalElement((0, 1), (2, 4))
tests = [
("[-inf, inf]", str, e1 + e2),
("[-inf, inf]", str, e2 + e1),
("[0, 1]", str, e2 + e2),
("[-5, 5]", str, e3 + e2),
("[-5, 5]", str, e2 + e3),
("[0, 4]", str, e4 + e2),
("[0, 4]", str, e2 + e4),
("[0, 4]", str, e5 + e4),
("[0, 4]", str, e4 + e5)
]
errors = tests_utility.expected_output_test(tests, False)
if len(errors) != 0:
failed[function] = errors
print("... done: %i/%i tests were successful!" % (len(tests)-len(errors), len(tests)))
print("--------------------------------------------------------------------------------")
function = "e1 | e2 / IntervalElement.__or__(self, element)"
print("Test of " + function + " ...")
e1 = element.IntervalElement((float('-inf'), float('inf')))
e2 = element.IntervalElement((0, 1))
e3 = element.IntervalElement((-5, 5))
e4 = element.IntervalElement((0.2, 4))
e5 = element.IntervalElement((0, 1), (2, 4))
tests = [
("[-inf, inf]", str, e1 | e2),
("[-inf, inf]", str, e2 | e1),
("[0, 1]", str, e2 | e2),
("[-5, 5]", str, e3 | e2),
("[-5, 5]", str, e2 | e3),
("[0, 4]", str, e4 | e2),
("[0, 4]", str, e2 | e4),
("[0, 4]", str, e5 | e4),
("[0, 4]", str, e4 | e5)
]
errors = tests_utility.expected_output_test(tests, False)
if len(errors) != 0:
failed[function] = errors
print("... done: %i/%i tests were successful!" % (len(tests)-len(errors), len(tests)))
print("--------------------------------------------------------------------------------")
function = "IntervalElement.get_compatible_empty_elment(self)"
print("Test of " + function + " ...")
tests = [
("[]", str, element.IntervalElement((0, 1)).get_compatible_empty_element()),
("[]", str, element.IntervalElement((float("-inf"), float("inf"))).get_compatible_empty_element()),
("[]", str, element.IntervalElement((-5, 5)).get_compatible_empty_element()),
("[]", str, element.IntervalElement((0, 1), (-18, 6), (10, 12), (6.1, 9.9)).get_compatible_empty_element()),
]
errors = tests_utility.expected_output_test(tests, False)
if len(errors) != 0:
failed[function] = errors
print("... done: %i/%i tests were successful!" % (len(tests)-len(errors), len(tests)))
print("--------------------------------------------------------------------------------")
function = "IntervalElement.get_compatible_complete_element(self)"
print("Test of " + function + " ...")
tests = [
("[-inf, inf]", str, element.IntervalElement((0, 1)).get_compatible_complete_element()),
("[-inf, inf]", str, element.IntervalElement((float("-inf"), float("inf"))).get_compatible_complete_element()),
("[-inf, inf]", str, element.IntervalElement((-5, 5)).get_compatible_complete_element()),
("[-inf, inf]", str, element.IntervalElement((0, 1), (-18, 6), (10, 12), (6.1, 9.9)).get_compatible_complete_element()),
]
errors = tests_utility.expected_output_test(tests, False)
if len(errors) != 0:
failed[function] = errors
print("... done: %i/%i tests were successful!" % (len(tests)-len(errors), len(tests)))
print("--------------------------------------------------------------------------------")
function = "IntervalElement.is_empty(self)"
print("Test of " + function + " ...")
tests = [
(True, element.IntervalElement().is_empty),
(False, element.IntervalElement((0, 1)).is_empty),
(False, element.IntervalElement((float("-inf"), float("inf"))).is_empty),
(False, element.IntervalElement((-5, 5), (0, 1), (-12, 2)).is_empty)
]
errors = tests_utility.expected_output_test(tests, False)
if len(errors) != 0:
failed[function] = errors
print("... done: %i/%i tests were successful!" % (len(tests)-len(errors), len(tests)))
print("--------------------------------------------------------------------------------")
function = "IntervalElement.is_complete(self)"
print("Test of " + function + " ...")
tests = [
(True, element.IntervalElement((float("-inf"), float("inf"))).is_complete),
(False, element.IntervalElement((float("-inf"), 0)).is_complete),
(False, element.IntervalElement((-5, float("inf"))).is_complete),
(False, element.IntervalElement((0, 1), (12, 22), (-5, 5)).is_complete)
]
errors = tests_utility.expected_output_test(tests, False)
if len(errors) != 0:
failed[function] = errors
print("... done: %i/%i tests were successful!" % (len(tests)-len(errors), len(tests)))
print("--------------------------------------------------------------------------------")
function = "IntervalElement.is_subset(self, element)"
print("Test of " + function + " ...")
e1 = element.IntervalElement((float("-inf"), float("inf")))
e2 = element.IntervalElement((0, 1))
e3 = element.IntervalElement((-5, 5))
e4 = element.IntervalElement((-8, 0), (8, 16))
e5 = element.IntervalElement((float("-inf"), 12), (15, float("inf")))
tests = [
(False, e1.is_subset, e2),
(False, e1.is_subset, e4),
(False, e1.is_subset, e5),
(True, e2.is_subset, e1),
(True, e3.is_subset, e1),
(True, e4.is_subset, e1),
(True, e5.is_subset, e1),
(True, e2.is_subset, e3),
(False, e3.is_subset, e2),
(True, e2.is_subset, e2),
(True, e4.is_subset, e4),
(False, e3.is_subset, e4),
(False, e4.is_subset, e3),
(True, e3.is_subset, e5)
]
errors = tests_utility.expected_output_test(tests, False)
if len(errors) != 0:
failed[function] = errors
print("... done: %i/%i tests were successful!" % (len(tests)-len(errors), len(tests)))
print("--------------------------------------------------------------------------------")
function = "IntervalElement.is_superset(self, element)"
print("Test of " + function + " ...")
e1 = element.IntervalElement((float("-inf"), float("inf")))
e2 = element.IntervalElement((0, 1))
e3 = element.IntervalElement((-5, 5))
e4 = element.IntervalElement((-8, 0), (8, 16))
e5 = element.IntervalElement((float("-inf"), 12), (15, float("inf")))
tests = [
(True, e1.is_superset, e2),
(True, e1.is_superset, e4),
(True, e1.is_superset, e5),
(False, e2.is_superset, e1),
(False, e3.is_superset, e1),
(False, e4.is_superset, e1),
(False, e5.is_superset, e1),
(False, e2.is_superset, e3),
(True, e3.is_superset, e2),
(True, e2.is_superset, e2),
(True, e4.is_superset, e4),
(False, e3.is_superset, e4),
(False, e4.is_superset, e3),
(False, e3.is_superset, e5),
(True, e5.is_superset, e3)
]
errors = tests_utility.expected_output_test(tests, False)
if len(errors) != 0:
failed[function] = errors
print("... done: %i/%i tests were successful!" % (len(tests)-len(errors), len(tests)))
print("--------------------------------------------------------------------------------")
print('\n')
tests_utility.browse_failures(failed)
| 52.949349 | 157 | 0.559746 | 7,659 | 73,176 | 5.230709 | 0.031466 | 0.282812 | 0.130897 | 0.116969 | 0.926988 | 0.896835 | 0.84851 | 0.807873 | 0.76761 | 0.704833 | 0 | 0.062237 | 0.211285 | 73,176 | 1,381 | 158 | 52.98769 | 0.631898 | 0.012887 | 0 | 0.456706 | 0 | 0 | 0.170794 | 0.078484 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.003396 | 0 | 0.003396 | 0.126486 | 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 |
2e76b5442215a18c807c5f0489283a84ec46631d | 1,357 | py | Python | bank/src/client_app/permissions.py | yuramorozov01/bank_system | 8d0cad692a89b913adb2df9a2a03d1793938a911 | [
"Apache-2.0"
] | null | null | null | bank/src/client_app/permissions.py | yuramorozov01/bank_system | 8d0cad692a89b913adb2df9a2a03d1793938a911 | [
"Apache-2.0"
] | null | null | null | bank/src/client_app/permissions.py | yuramorozov01/bank_system | 8d0cad692a89b913adb2df9a2a03d1793938a911 | [
"Apache-2.0"
] | null | null | null | from rest_framework import permissions
class CanAddClient(permissions.BasePermission):
'''Permission to check if current user has permission to add clients.'''
message = 'You don\'t have permissions to add a new client.'
def has_permission(self, request, view):
return bool(request.user and request.user.has_perm('client_app.add_client'))
class CanChangeClient(permissions.BasePermission):
'''Permission to check if current user has permission to change clients.'''
message = 'You don\'t have permissions to change the client.'
def has_permission(self, request, view):
return bool(request.user and request.user.has_perm('client_app.change_client'))
class CanDeleteClient(permissions.BasePermission):
'''Permission to check if current user has permission to delete clients.'''
message = 'You don\'t have permissions to delete the client.'
def has_permission(self, request, view):
return bool(request.user and request.user.has_perm('client_app.delete_client'))
class CanViewClient(permissions.BasePermission):
'''Permission to check if current user has permission to view clients.'''
message = 'You don\'t have permissions to view the client.'
def has_permission(self, request, view):
return bool(request.user and request.user.has_perm('client_app.view_client'))
| 35.710526 | 87 | 0.739867 | 182 | 1,357 | 5.423077 | 0.21978 | 0.097264 | 0.141844 | 0.149949 | 0.803445 | 0.803445 | 0.803445 | 0.803445 | 0.649443 | 0.649443 | 0 | 0 | 0.165807 | 1,357 | 37 | 88 | 36.675676 | 0.871908 | 0.201916 | 0 | 0.235294 | 0 | 0 | 0.115819 | 0.085687 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0 | 0.058824 | 0.235294 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 7 |
5ceba0922477806f633ad3694b53f1887b2e20e3 | 18,290 | py | Python | scripts/stsci_plots.py | abonaca/disrupted_gc | e1f4a19ff72dfc5e0bd389cf813a9de631478f69 | [
"MIT"
] | null | null | null | scripts/stsci_plots.py | abonaca/disrupted_gc | e1f4a19ff72dfc5e0bd389cf813a9de631478f69 | [
"MIT"
] | null | null | null | scripts/stsci_plots.py | abonaca/disrupted_gc | e1f4a19ff72dfc5e0bd389cf813a9de631478f69 | [
"MIT"
] | null | null | null | from orbit_fits import *
from mpl_toolkits.axes_grid1.inset_locator import inset_axes
plt.style.use('lgray_ucon')
def gallery(step=0):
""""""
text_color = '0.95'
# set up figure geometry
plt.close()
fig = plt.figure(figsize=(16,9), facecolor='k')
ax = plt.axes([0,0,1,1])
# plot all streams
plt.sca(ax)
d = pickle.load(open('../data/galactocentric_streams_orbits.pkl', 'rb'))
names = np.array(get_names())
Nstreams = len(names)
for j in range(Nstreams):
ms = 2
alpha = 0.15
ds = d[names[j]]
cgal = ds['stream']
phi = 180*u.deg
stream_x = cgal.x * np.cos(phi) + cgal.y * np.sin(phi)
stream_y = - cgal.x * np.sin(phi) + cgal.y * np.cos(phi)
#ind_plot = stream_y < rho_in + i*dr
plt.plot(stream_x, cgal.z, 'o', color=ds['color'], ms=ms)
#if names[j] in ['gd1', 'jhelum', 'ophiuchus']:
#plt.text(stream_x[0].value, cgal.z[0].value, names[j], color=ds['color'], fontsize='xx-small')
# annotate Galactic center
plt.plot(0, 0, 'wx')
plt.text(0,-1, 'Galactic\nCenter', ha='center', va='top', color=text_color, fontsize='small')
# annotate the Sun
xsun = -gc_frame.galcen_distance * np.cos(phi)
zsun = gc_frame.z_sun.to(u.kpc)
plt.plot(xsun, zsun, color='w', marker='$\odot$', ms=10, mew=0.4)
plt.text(xsun.value+1, zsun.value-1, 'Sun', color=text_color, fontsize='small')
#text_intro = '''Stellar streams orbiting the Milky Way
#are gravitational antennae that have
#picked up curious signals:'''
#plt.text(0.2, 0.87, text_intro, color=text_color, wrap=True, transform=plt.gca().transAxes, va='top', ha='center')
plt.xlim(-40,60)
plt.ylim(-30,13)
plt.gca().set_aspect('equal', adjustable='datalim')
plt.gca().set_facecolor('k')
plt.gca().tick_params(labelbottom=False, labelleft=False, top=False, bottom=False, right=False, left=False)
#plt.ylabel('TODAY', color=text_color)
#for spine in plt.gca().spines.values():
#spine.set_edgecolor('0.9')
#spine.set_linewidth(4)
if step>2:
# show GD-1
gd1_color = '#13d100'
g = Table.read('/home/ana/projects/legacy/GD1-DR2/output/gd1_members.fits')
ax00 = inset_axes(ax, '100%', '100%', bbox_to_anchor=[0.58, 0.73, 0.38, 0.15], loc=3, bbox_transform=ax.transAxes)
plt.sca(ax00)
plt.scatter(g['phi1'], g['phi2'], s=g['pmem']*1.5, c=g['pmem'], cmap=mpl.cm.binary, vmin=0.5, vmax=1.1, zorder=0, label='', rasterized=True)
#plt.plot(g['phi1'], g['phi2'], 'k.', ms=1, alpha=0.5)
plt.text(-40,-2, 'gap', fontsize='small', ha='center')
plt.text(-32, 2, 'spur', fontsize='small', ha='center')
plt.xlim(-60, -20)
plt.ylim(-4,4)
plt.gca().set_aspect('equal', adjustable='datalim')
plt.gca().tick_params(labelbottom=False, labelleft=False, top=False, bottom=False, right=False, left=False)
for spine in plt.gca().spines.values():
spine.set_edgecolor(gd1_color)
spine.set_linewidth(2)
plt.text(0, 1.1, 'Price-Whelan & Bonaca (2018)', transform=plt.gca().transAxes, color=gd1_color, fontsize='medium')
plt.text(0, -0.1, 'Were the GD-1 gap and spur created by an impact of a compact\nobject, like a dark-matter subhalo?', va='top', transform=plt.gca().transAxes, fontsize='small', color=gd1_color)
plt.sca(ax)
plt.annotate('', xy=(0,1), xycoords=ax00.transAxes, xytext=(13.5, 5.5), textcoords=ax.transData, arrowprops=dict(arrowstyle='-', lw=1.5, color=gd1_color, alpha=0.3))
plt.annotate('', xy=(0,0), xycoords=ax00.transAxes, xytext=(13.5, 5.5), textcoords=ax.transData, arrowprops=dict(arrowstyle='-', lw=1.5, color=gd1_color, alpha=0.3))
if step>1:
# show Pal 5
tp = Table.read('/home/ana/projects/legacy/Pal5sBiggestFan/data/pal5_likely_members.fits')
pal5_color = '#00c7ff'
ax01 = inset_axes(ax, '100%', '100%', bbox_to_anchor=[0.64, 0.2, 0.3, 0.31], loc=3, bbox_transform=ax.transAxes)
plt.sca(ax01)
plt.plot(tp['ra'], tp['dec'], 'k.', ms=0.5, alpha=0.1, rasterized=True)
plt.text(223.5, -5, 'fan', fontsize='small')
plt.text(228.5, 0.5, 'Pal 5', fontsize='small')
plt.xlim(242,222)
plt.ylim(-10,10)
plt.gca().set_aspect('equal', adjustable='datalim')
plt.gca().tick_params(labelbottom=False, labelleft=False, top=False, bottom=False, right=False, left=False)
for spine in plt.gca().spines.values():
spine.set_edgecolor(pal5_color)
spine.set_linewidth(2)
plt.text(0, 1.05, 'Bonaca et al. (2020a)', transform=plt.gca().transAxes, color=pal5_color, fontsize='medium')
pal5_text = '''Was the leading tail of the Palomar 5 stream
broadened into a fan by a large perturbation, like
the rotating Galactic bar?
[see also Starkman et al. (2020), #poster-starkman]'''
plt.text(0, -0.1, pal5_text, va='top', transform=plt.gca().transAxes, fontsize='small', color=pal5_color)
plt.sca(ax)
plt.annotate('', xy=(0,1), xycoords=ax01.transAxes, xytext=(6, 2), textcoords=ax.transData, arrowprops=dict(arrowstyle='-', lw=1.5, color=pal5_color, alpha=0.3), zorder=0)
plt.annotate('', xy=(0,0), xycoords=ax01.transAxes, xytext=(6, 2), textcoords=ax.transData, arrowprops=dict(arrowstyle='-', lw=1.5, color=pal5_color, alpha=0.3), zorder=0)
if step>0:
# show Jhelum
jhelum_color = '#ff9e00'
tj = Table.read('/home/ana/projects/legacy/jhelum/data/jhelum_likely_members.fits')
ax02 = inset_axes(ax, '100%', '100%', bbox_to_anchor=[0.01, 0.3, 0.34, 0.17], loc=3, bbox_transform=ax.transAxes)
plt.sca(ax02)
plt.plot(tj['phi1'], tj['phi2'], 'k.', ms=1.5, alpha=0.3, rasterized=True)
plt.text(10, -3.5, 'wide component', fontsize='small', ha='center', bbox=dict(facecolor='w', alpha=0.4, edgecolor='none'))
plt.text(-2, 2, 'narrow component', fontsize='small', bbox=dict(facecolor='w', alpha=0.4, edgecolor='none'))
plt.ylim(-5,5)
plt.xlim(-4, 24)
plt.gca().set_aspect('equal', adjustable='datalim')
plt.gca().tick_params(labelbottom=False, labelleft=False, top=False, bottom=False, right=False, left=False)
for spine in plt.gca().spines.values():
spine.set_edgecolor(jhelum_color)
spine.set_linewidth(2)
plt.text(0, 1.05, 'Bonaca et al. (2019b)', transform=plt.gca().transAxes, color=jhelum_color, fontsize='medium')
jhelum_text='''Is Jhelum's wide envelope a signature of its nature set
in the early universe or has it been nurtured by
the Milky Way?
[see also Malhan et al. (2020), #poster-malhan]
'''
plt.text(0, -0.1, jhelum_text, va='top', transform=plt.gca().transAxes, fontsize='small', color=jhelum_color)
plt.sca(ax)
plt.annotate('', xy=(1,1), xycoords=ax02.transAxes, xytext=(-1, -10), textcoords=ax.transData, arrowprops=dict(arrowstyle='-', lw=1.5, color=jhelum_color, alpha=0.3), zorder=0)
plt.annotate('', xy=(1,0), xycoords=ax02.transAxes, xytext=(-1, -10), textcoords=ax.transData, arrowprops=dict(arrowstyle='-', lw=1.5, color=jhelum_color, alpha=0.3), zorder=0)
plt.savefig('../plots/gallery_perturbed_{:d}.png'.format(step), dpi=120, facecolor='k')
def conclusion(step=0):
""""""
text_color = '0.95'
# set up figure geometry
plt.close()
fig = plt.figure(figsize=(16,9), facecolor='k')
ax = plt.axes([0,0,1,1])
# plot all streams
plt.sca(ax)
d = pickle.load(open('../data/galactocentric_streams_orbits.pkl', 'rb'))
names = np.array(get_names())
Nstreams = len(names)
for j in range(Nstreams):
ms = 2
alpha = 0.15
ds = d[names[j]]
cgal = ds['stream']
phi = 180*u.deg
stream_x = cgal.x * np.cos(phi) + cgal.y * np.sin(phi)
stream_y = - cgal.x * np.sin(phi) + cgal.y * np.cos(phi)
#ind_plot = stream_y < rho_in + i*dr
plt.plot(stream_x, cgal.z, 'o', color=ds['color'], ms=ms)
if (step>0) & (names[j] not in ['gd1', 'jhelum', 'fimbulthul']):
plt.text(stream_x[-1].value, cgal.z[-1].value, '?', color=ds['color'], fontsize='large', alpha=0.5)
#if names[j] in ['gd1', 'jhelum', 'ophiuchus']:
#plt.text(stream_x[0].value, cgal.z[0].value, names[j], color=ds['color'], fontsize='xx-small')
# annotate Galactic center
plt.plot(0, 0, 'wx')
plt.text(0,-1, 'Galactic\nCenter', ha='center', va='top', color=text_color, fontsize='small')
# annotate the Sun
xsun = -gc_frame.galcen_distance * np.cos(phi)
zsun = gc_frame.z_sun.to(u.kpc)
plt.plot(xsun, zsun, color='w', marker='$\odot$', ms=10, mew=0.4)
plt.text(xsun.value+1, zsun.value-1, 'Sun', color=text_color, fontsize='small')
#text_intro = '''Stellar streams orbiting the Milky Way
#are gravitational antennae that have
#picked up curious signals:'''
#plt.text(0.2, 0.87, text_intro, color=text_color, wrap=True, transform=plt.gca().transAxes, va='top', ha='center')
plt.xlim(-40,60)
plt.ylim(-30,13)
plt.gca().set_aspect('equal', adjustable='datalim')
plt.gca().set_facecolor('k')
plt.gca().tick_params(labelbottom=False, labelleft=False, top=False, bottom=False, right=False, left=False)
#plt.ylabel('TODAY', color=text_color)
#for spine in plt.gca().spines.values():
#spine.set_edgecolor('0.9')
#spine.set_linewidth(4)
if step>-1:
# show GD-1
gd1_color = '#13d100'
g = Table.read('/home/ana/projects/legacy/GD1-DR2/output/gd1_members.fits')
ax00 = inset_axes(ax, '100%', '100%', bbox_to_anchor=[0.58, 0.73, 0.38, 0.15], loc=3, bbox_transform=ax.transAxes)
plt.sca(ax00)
plt.scatter(g['phi1'], g['phi2'], s=g['pmem']*1.5, c=g['pmem'], cmap=mpl.cm.binary, vmin=0.5, vmax=1.1, zorder=0, label='', rasterized=True)
#plt.plot(g['phi1'], g['phi2'], 'k.', ms=1, alpha=0.5)
plt.text(-40,-2, 'gap', fontsize='small', ha='center')
plt.text(-32, 2, 'spur', fontsize='small', ha='center')
plt.xlim(-60, -20)
plt.ylim(-4,4)
plt.gca().set_aspect('equal', adjustable='datalim')
plt.gca().tick_params(labelbottom=False, labelleft=False, top=False, bottom=False, right=False, left=False)
for spine in plt.gca().spines.values():
spine.set_edgecolor(gd1_color)
spine.set_linewidth(2)
plt.text(0, 1.1, 'Price-Whelan & Bonaca (2018)', transform=plt.gca().transAxes, color=gd1_color, fontsize='medium')
#plt.text(0, -0.1, 'Were the GD-1 gap and spur created by an impact of a compact\nobject, like a dark-matter subhalo?', va='top', transform=plt.gca().transAxes, fontsize='small', color=gd1_color)
plt.sca(ax)
plt.annotate('', xy=(0,1), xycoords=ax00.transAxes, xytext=(13.5, 5.5), textcoords=ax.transData, arrowprops=dict(arrowstyle='-', lw=1.5, color=gd1_color, alpha=0.3))
plt.annotate('', xy=(0,0), xycoords=ax00.transAxes, xytext=(13.5, 5.5), textcoords=ax.transData, arrowprops=dict(arrowstyle='-', lw=1.5, color=gd1_color, alpha=0.3))
if step>-1:
# show Pal 5
tp = Table.read('/home/ana/projects/legacy/Pal5sBiggestFan/data/pal5_likely_members.fits')
pal5_color = '#00c7ff'
ax01 = inset_axes(ax, '100%', '100%', bbox_to_anchor=[0.03, 0.52, 0.3, 0.31], loc=3, bbox_transform=ax.transAxes)
plt.sca(ax01)
plt.plot(tp['ra'], tp['dec'], 'k.', ms=0.5, alpha=0.1, rasterized=True)
plt.text(223.5, -5, 'fan', fontsize='small')
plt.text(228.5, 0.5, 'Pal 5', fontsize='small')
plt.xlim(242,222)
plt.ylim(-10,10)
plt.gca().set_aspect('equal', adjustable='datalim')
plt.gca().tick_params(labelbottom=False, labelleft=False, top=False, bottom=False, right=False, left=False)
for spine in plt.gca().spines.values():
spine.set_edgecolor(pal5_color)
spine.set_linewidth(2)
plt.text(0, 1.05, 'Bonaca et al. (2020a)', transform=plt.gca().transAxes, color=pal5_color, fontsize='medium')
pal5_text = '''Was the leading tail of the Palomar 5 stream
broadened into a fan by a large perturbation, like
the rotating Galactic bar?
[see also Starkman et al. (2020), #poster-starkman]'''
#plt.text(0, -0.1, pal5_text, va='top', transform=plt.gca().transAxes, fontsize='small', color=pal5_color)
plt.sca(ax)
plt.annotate('', xy=(1,1), xycoords=ax01.transAxes, xytext=(6, 2), textcoords=ax.transData, arrowprops=dict(arrowstyle='-', lw=1.5, color=pal5_color, alpha=0.3), zorder=0)
plt.annotate('', xy=(1,0), xycoords=ax01.transAxes, xytext=(6, 2), textcoords=ax.transData, arrowprops=dict(arrowstyle='-', lw=1.5, color=pal5_color, alpha=0.3), zorder=0)
if step>-1:
# show Jhelum
jhelum_color = '#ff9e00'
tj = Table.read('/home/ana/projects/legacy/jhelum/data/jhelum_likely_members.fits')
ax02 = inset_axes(ax, '100%', '100%', bbox_to_anchor=[0.03, 0.12, 0.34, 0.17], loc=3, bbox_transform=ax.transAxes)
plt.sca(ax02)
plt.plot(tj['phi1'], tj['phi2'], 'k.', ms=1.5, alpha=0.3, rasterized=True)
plt.text(10, -3.5, 'wide component', fontsize='small', ha='center', bbox=dict(facecolor='w', alpha=0.4, edgecolor='none'))
plt.text(-2, 2, 'narrow component', fontsize='small', bbox=dict(facecolor='w', alpha=0.4, edgecolor='none'))
plt.ylim(-5,5)
plt.xlim(-4, 24)
plt.gca().set_aspect('equal', adjustable='datalim')
plt.gca().tick_params(labelbottom=False, labelleft=False, top=False, bottom=False, right=False, left=False)
for spine in plt.gca().spines.values():
spine.set_edgecolor(jhelum_color)
spine.set_linewidth(2)
plt.text(0, 1.05, 'Bonaca et al. (2019b)', transform=plt.gca().transAxes, color=jhelum_color, fontsize='medium')
jhelum_text='''Is Jhelum's wide envelope a signature of its nature set
in the early universe or has it been nurtured by
the Milky Way?
[see also Malhan et al. (2020), #poster-malhan]
'''
#plt.text(0, -0.1, jhelum_text, va='top', transform=plt.gca().transAxes, fontsize='small', color=jhelum_color)
plt.sca(ax)
plt.annotate('', xy=(1,1), xycoords=ax02.transAxes, xytext=(-1, -10), textcoords=ax.transData, arrowprops=dict(arrowstyle='-', lw=1.5, color=jhelum_color, alpha=0.3), zorder=0)
plt.annotate('', xy=(0,1), xycoords=ax02.transAxes, xytext=(-1, -10), textcoords=ax.transData, arrowprops=dict(arrowstyle='-', lw=1.5, color=jhelum_color, alpha=0.3), zorder=0)
plt.savefig('../plots/gallery_conclusion_{:d}.png'.format(step), dpi=120, facecolor='k')
def animate():
""""""
d = pickle.load(open('../data/galactocentric_streams_orbits.pkl', 'rb'))
names = np.array(get_names())
r = np.array([d[x]['r'].value for x in names]) * u.kpc
isort = np.argsort(r)
Nstreams = len(names)
Nind = 80
Ntot = Nstreams * Nind
x0_in, x1_in, y0_in, y1_in = -7.25, -3.75, 1, 3
x0_fin, x1_fin, y0_fin, y1_fin = -88, 88, -60, 40
dx0 = x0_fin - x0_in
dx1 = x1_fin - x1_in
dy0 = y0_fin - y0_in
dy1 = y1_fin - y1_in
rho_in, rho_out = 2*u.kpc, 50*u.kpc
dr = (rho_out - rho_in)/Ntot
dphi = np.pi*0.5/Ntot * u.radian
text_color = '0.9'
for i in range(Ntot):
plt.close()
plt.figure(figsize=(16,9))
ax = plt.axes([0,0,1,1])
ind_focus = int(i/Nind)
for j in range(Nstreams):
if ind_focus==j:
ms = 6
alpha = 0.5
else:
ms = 2
alpha = 0.15
ds = d[names[isort][j]]
cgal = ds['stream']
phi = dphi * i
stream_x = cgal.x * np.cos(phi) + cgal.y * np.sin(phi)
stream_y = - cgal.x * np.sin(phi) + cgal.y * np.cos(phi)
ind_plot = stream_y < rho_in + i*dr
plt.plot(stream_x[ind_plot], cgal.z[ind_plot], 'o', color=ds['color'], ms=ms)
orbit = ds['orbit']
orbit_x = orbit.x * np.cos(phi) + orbit.y * np.sin(phi)
orbit_y = - orbit.x * np.sin(phi) + orbit.y * np.cos(phi)
plt.plot(orbit_x, orbit.z, '-', color=ds['color'], alpha=alpha, lw=1, zorder=0)
## annotate Galactic center
#plt.plot(0, 0, 'wx')
#plt.text(0,-1, 'Galactic\nCenter', ha='center', va='top', color=text_color, fontsize='small')
## annotate the Sun
#xsun = -gc_frame.galcen_distance * np.cos(phi)
#zsun = gc_frame.z_sun.to(u.kpc)
#plt.plot(xsun, zsun, color='w', marker='$\odot$', ms=10, mew=0.4)
#plt.text(xsun.value+1, zsun.value-1, 'Sun', color=text_color, fontsize='small')
x0 = x0_in + dx0 * i/Ntot
x1 = x1_in + dx1 * i/Ntot
y0 = y0_in + dy0 * i/Ntot
y1 = y1_in + dy1 * i/Ntot
# show scale
scale_values = np.array([1, 2, 5, 10, 15])
delta = 0.1*(x1 - x0)
ind = np.argmin(np.abs(scale_values - delta))
delta = scale_values[ind]
xd0 = x0 + 0.05*(x1 - x0)
xd1 = xd0 + delta
xd = np.array([xd0, xd1])
yd = np.ones(2)*(y0 + 0.05*(y1 - y0))
plt.plot(xd, yd, '-', color=text_color, lw=2)
plt.text(xd[0], y0 + 0.07*(y1 - y0), '{:d} kpc'.format(delta), fontsize='medium', color=text_color, va='bottom')
plt.xlim(x0, x1)
plt.ylim(y0, y1)
plt.gca().tick_params(labelbottom=False, labelleft=False)
plt.gca().set_facecolor('k')
plt.savefig('../plots/stream_sample_wide/stream_sample.{:04d}.png'.format(i), dpi=120, facecolor='k', bbox_inches='tight', pad_inches=0)
| 46.777494 | 203 | 0.593822 | 2,760 | 18,290 | 3.853986 | 0.123551 | 0.023691 | 0.012786 | 0.031588 | 0.894425 | 0.886716 | 0.88305 | 0.881828 | 0.875717 | 0.869512 | 0 | 0.057956 | 0.225478 | 18,290 | 390 | 204 | 46.897436 | 0.692927 | 0.119956 | 0 | 0.719231 | 0 | 0.003846 | 0.144533 | 0.039316 | 0 | 0 | 0 | 0 | 0 | 1 | 0.011538 | false | 0 | 0.007692 | 0 | 0.019231 | 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 |
cf057a76ae6fe568dec5fb01bf1952b9d26c9cd5 | 1,532 | py | Python | projecteuler/008.py | Alu0331/python | 0a751b5acf067eae1b04e8f34559b7f580317cb3 | [
"MIT"
] | null | null | null | projecteuler/008.py | Alu0331/python | 0a751b5acf067eae1b04e8f34559b7f580317cb3 | [
"MIT"
] | 1 | 2020-12-30T14:34:06.000Z | 2020-12-31T12:00:29.000Z | projecteuler/008.py | Alu0331/python | 0a751b5acf067eae1b04e8f34559b7f580317cb3 | [
"MIT"
] | null | null | null | import functools
import time
start = time.time()
inputData = "731671765313306249192251196744265747423553491949349698352031277450632623957831801698480186947885184858615607891129494954595017379583319528532088055111254069874715852386305071569329096329522744304355766896648950445244523161731856403098711121722383113622298934233803081353362766142828064444866452387493035890729629049156044077239071381051585930796086670172427121883998797908792274921901699720888093776657273330010533678812202354218097512545405947522435258490771167055601360483958644670632441572215539753697817977846174064955149290862569321978468622482839722413756570560574902614079729686524145351004748216637048440319989000889524345065854122758866688116427171479924442928230863465674813919123162824586178664583591245665294765456828489128831426076900422421902267105562632111110937054421750694165896040807198403850962455444362981230987879927244284909188845801561660979191338754992005240636899125607176060588611646710940507754100225698315520005593572972571636269561882670428252483600823257530420752963450"
# inputData = "7316"
# print(inputData[len(inputData) - 1])
productSeries = []
def largestProductSeries(a, i):
for ele in range(0, len(a) - 1):
temp = a[ele : ele + i]
# print(temp)
temp = list(temp)
# print(temp)
product = functools.reduce(lambda x, y: int(x) * int(y), temp)
productSeries.append(product)
return max(productSeries)
print(largestProductSeries(inputData, 13))
end = time.time()
print(end-start)
| 69.636364 | 1,013 | 0.87141 | 68 | 1,532 | 19.632353 | 0.485294 | 0.011985 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.714387 | 0.078982 | 1,532 | 21 | 1,014 | 72.952381 | 0.231751 | 0.051567 | 0 | 0 | 0 | 0 | 0.689917 | 0.689917 | 0 | 1 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.133333 | 0 | 0.266667 | 0.133333 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
cf1880aaceacb6a587d4b3abb040a25fbe3c562f | 180,781 | py | Python | notebooks-text-format/bandits.py | arpitvaghela/probml-notebooks | 32ecb309dd474b989fd1c6ce4ad6dab7a25bbead | [
"MIT"
] | 166 | 2021-07-16T17:33:09.000Z | 2022-03-30T03:35:34.000Z | notebooks-text-format/bandits.py | arpitvaghela/probml-notebooks | 32ecb309dd474b989fd1c6ce4ad6dab7a25bbead | [
"MIT"
] | 29 | 2021-07-21T16:31:51.000Z | 2022-03-31T19:50:13.000Z | notebooks-text-format/bandits.py | arpitvaghela/probml-notebooks | 32ecb309dd474b989fd1c6ce4ad6dab7a25bbead | [
"MIT"
] | 48 | 2021-07-17T08:26:18.000Z | 2022-03-31T03:36:18.000Z | # ---
# jupyter:
# jupytext:
# text_representation:
# extension: .py
# format_name: light
# format_version: '1.5'
# jupytext_version: 1.11.3
# kernelspec:
# display_name: Python 3
# name: python3
# ---
# + [markdown] id="view-in-github" colab_type="text"
# <a href="https://colab.research.google.com/github/probml/pyprobml/blob/master/notebooks/bandits.ipynb" target="_parent"><img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"/></a>
# + [markdown] id="upzJBo-T36P8"
# # Multi-armed bandits
#
# + id="i4yrY5KRimOB"
import numpy as np
np.set_printoptions(precision=3)
import pandas as pd
# + [markdown] id="ygccrDDwo096"
# ## Multi-armed bandits
#
# The classic multi-armed bandit is illustrated below.
# The agent (the octopus) must choose which "arm" to pull.
# Each slot machine (aka one-armed bandit) has a different, but unknown, payout rate (reward), denoted $R(a)$.
#
#
# + [markdown] id="O1i5x_SvpHdT"
# 
# + [markdown] id="E8-Zi4-WpRy4"
# * In a MAB problem, the goal is to choose a sequence of actions (arm pulls) that maximizes the sum of expected rewards:
# $$
# a_{1:T} = \arg \max_{a_{1:T}} \sum_{t=}^T E_{a_t \sim \pi}[R(a_t | \theta)]
# $$
# where $T$ is the **finite horizon**, $\pi()$ is the (stochastic) **policy**, $R(a|\theta)$ is the reward function for action $a$ using model parameters $\theta$.
# * In the **infinite horizon** case, we use a **discount factor** $\gamma < 1$ to ensure the sum converges:
# $$
# J = \sum_{t=1}^\infty \gamma^{t-1} E_{ a_t \sim \pi}[R(a_t | \theta)]
# $$
# * For binary rewards, we can use a **Bernoulli bandit**
# $$
# p(R|a) = \text{Ber}(R|\mu_a)
# $$
# where $\mu_a=E[R|a]=p(R=1|a)$.
# * For real-valued rewards, we can use a **Gaussian bandit**
# $$
# p(R|a) = \text{Gauss}(R|\mu_a, \sigma_a^2)
# $$
#
# + [markdown] id="yrGad7Ippxbh"
# ## Contextual bandits
#
# * In **contextual bandits**, the agent is in a random state $s_t$ at each step. States are drawn iid from some unknown distribution $p(s_t)$. The policy should now depend on the inputs, $a_t \sim \pi(s_t)$.
# * The goal is to maximimize
# $$
# J = \sum_{t=1}^\infty \gamma^{t-1} E_{ s_t \sim p(s), a_t \sim \pi(a|s_t)}[R(s_t, a_t | \theta)]
# $$
# * There are numerous applications, e.g.
# ** **Online advertising**, where the action specifies which ad to show, and the state specifies user features (e.g., search history) and/or web page features (e.g., content).
# ** **Recommender systems**, where the action specifies which (set of) item(s) to show, and the state specifies user features.
# ** **Clinical trials**, where the action specifies which drug to give, and the state specifies patient features.
# * For binary rewards, we can use logistic regression model
# $$
# p(R|s,a;\theta) = \text{Ber}(R|\sigma(\theta^T \phi(s,a)))
# $$
# where $\phi(s,a)$ is a feature vector, possibly computed using a deep neural network, and $\sigma(x)=1/(1+e^{-x})$ is the sigmoid or logistic function.
# * For real-valued rewards, we can replace the sigmoid output with a linear output, and use a Gaussian observation model.
# * A key problem is that the rewards for each (state,action) pair (represented by model parameters $\theta$) are unknown.
# * The agent can infer the parameters in an online (recursive) fashion given the data stream $D_{1:t} = (s_{1:t}, a_{1:t}, r_{1:t})$ using **sequential Bayesian updating**:
# $$
# \begin{align}
# p(\theta|D_{1:t}) &=
# p(\theta|D_t, D_{1:t-1})
# = \frac{p(D_t|\theta,D_{1:t-1}) p(\theta|D_{1:t-1})}
# {p(D_t|D_{1:t-1})}
# \propto p(D_t|\theta) p(\theta|D_{1:t-1})
# \end{align}
# $$
# * The likelihood is $p(D_t|\theta)=p(r_t|s_t, a_t,\theta)$ and the prior is the belief state from the previous time step, $p(\theta|D_{1:t-1})$.
#
# + [markdown] id="VolgRhkWKB00"
# ## Exploration-exploitation tradeoff
#
# * The agent must try each (state, action) pair (possibly multiple times) in order to collect data, but these experiments incur an opportunity cost. This is called the **exploration-exploitation tradeoff**.
# * A common heuristic solution is the **upper confidence bound** method, which selects the action according to
# $$
# a_t = \arg \max_a E[R(s_t,a;\theta)] + c \;\text{std}[R(s_t,a;\theta)]
# $$
# * The constant $c \geq 0$ reflects the amount of optimism about unknown rewards, and hence the amount of exploration.
# * Below we illustrate the distribution over possible rewards for a 3-armed bandit (without contextual features).
# + [markdown] id="_yoROcuUKyL7"
# 
# + [markdown] id="rTQxAsNaDbHr"
# ## Reinforcement learning
#
#
# * In **reinforcement learning**, the setup is similar to a contextual bandit, except now the current state depends on the previously visited states, as well as the actions that the agent has taken.
# * If we assume a Markov model for the enviroment, we get a **Markov decision process** or **MDP**.
# $$
# J = \sum_{t=1}^\infty \gamma^{t-1} E_{ s_t \sim p(s|s_{t-1}, a_{t-1}; \theta), a_t \sim \pi(a|s_{1:t})}[R(s_t, a_t | \theta)]
# $$
# * Solving for the optimal policy when the parameters $\theta$ of the environment are unknown is challenging. This is beyond the scope of this tutorial.
# + [markdown] id="WEL7iOACn-PT"
# 
# + id="Ggq5DO3OX3f0"
| 1,481.811475 | 126,551 | 0.959526 | 6,204 | 180,781 | 27.948904 | 0.876209 | 0.000161 | 0.000138 | 0.000138 | 0.003645 | 0.002122 | 0.001153 | 0.001027 | 0.000588 | 0.0003 | 0 | 0.144387 | 0.004729 | 180,781 | 121 | 126,552 | 1,494.057851 | 0.819315 | 0.998318 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0.008264 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 0.666667 | 0.333333 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 8 |
cf7284c2cee49e0c6ec3c14094606bcfc61385c5 | 27,191 | py | Python | packages/gtmcore/gtmcore/activity/tests/test_activitystore.py | jjwatts/gigantum-client | 88ce0475fb6880322bdd06d987c494e29064f278 | [
"MIT"
] | null | null | null | packages/gtmcore/gtmcore/activity/tests/test_activitystore.py | jjwatts/gigantum-client | 88ce0475fb6880322bdd06d987c494e29064f278 | [
"MIT"
] | null | null | null | packages/gtmcore/gtmcore/activity/tests/test_activitystore.py | jjwatts/gigantum-client | 88ce0475fb6880322bdd06d987c494e29064f278 | [
"MIT"
] | null | null | null | # Copyright (c) 2017 FlashX, LLC
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
import pytest
import os
import random
from datetime import datetime, timedelta, timezone
from gtmcore.activity.records import ActivityType, ActivityRecord, ActivityDetailRecord, ActivityDetailType,\
ActivityAction
from gtmcore.activity import ActivityStore
from gtmcore.fixtures import mock_config_with_activitystore
def helper_create_labbook_change(labbook, cnt=0):
"""Helper method to create a change to the labbook"""
# Make a new file
new_filename = os.path.join(labbook.root_dir, ''.join(random.choice('0123456789abcdef') for i in range(15)))
with open(new_filename, 'wt') as f:
f.write(''.join(random.choice('0123456789abcdef ') for i in range(50)))
# Add and commit file
labbook.git.add_all()
return labbook.git.commit("test commit {}".format(cnt))
def helper_create_activitydetailobject():
"""Helper to create a random ActivityDetailRecord"""
adr = ActivityDetailRecord(ActivityDetailType(random.randint(0, 6)), key=f"my_key_{random.randint(0, 99999)}")
adr.add_value("text/plain", ''.join(random.choice('abcdefghijklmnopqrstuvwxyz ') for _ in range(50)))
class TestActivityStore:
def test_create_activitystore(self, mock_config_with_activitystore):
"""Test to verify the ActivityStore is initialized properly"""
assert type(mock_config_with_activitystore[0]) == ActivityStore
assert 'LabBook' in str(type(mock_config_with_activitystore[0].repository))
assert mock_config_with_activitystore[0].compress_details is True
assert mock_config_with_activitystore[0].compress_min_bytes == 4000
def test_validate_tags_length(self, mock_config_with_activitystore):
"""Method to test limiting tag length"""
max_length_tag = [''.join(random.choice('0123456789abcdef') for i in range(mock_config_with_activitystore[0].max_tag_length))]
too_big_tag = [''.join(random.choice('0123456789abcdef') for i in range(mock_config_with_activitystore[0].max_tag_length + 1))]
assert max_length_tag == mock_config_with_activitystore[0]._validate_tags(max_length_tag)
with pytest.raises(ValueError):
mock_config_with_activitystore[0]._validate_tags(too_big_tag)
def test_validate_tags_num(self, mock_config_with_activitystore):
"""Method to test limiting number of tags"""
max_num_tag = ["{}".format(x) for x in range(mock_config_with_activitystore[0].max_num_tags)]
too_many_tag = ["{}".format(x) for x in range(mock_config_with_activitystore[0].max_num_tags+1)]
assert len(max_num_tag) == len(mock_config_with_activitystore[0]._validate_tags(max_num_tag))
with pytest.raises(ValueError):
mock_config_with_activitystore[0]._validate_tags(too_many_tag)
def test_validate_tags_cleanup(self, mock_config_with_activitystore):
"""Method to test tag validation and cleanup"""
tags = ["goodtag", "another tag", "dup", "dup", "bad tag\`;"]
clean_tags = mock_config_with_activitystore[0]._validate_tags(tags)
assert len(clean_tags) == 4
assert "bad tag\`;" not in clean_tags
assert "bad tag" in clean_tags
assert "goodtag" in clean_tags
assert "another tag" in clean_tags
assert "dup" in clean_tags
def test_write_options(self, mock_config_with_activitystore):
"""Test encoding/decoding write options"""
store = mock_config_with_activitystore[0]
wo = store._encode_write_options(compress=True)
assert type(wo) == bytes
assert wo == b'\x01'
wo_decoded = store._decode_write_options(wo)
assert wo_decoded['compress'] is True
wo = store._encode_write_options(compress=False)
assert wo == b'\x00'
wo_decoded = store._decode_write_options(wo)
assert wo_decoded['compress'] is False
def test_put_get_detail_record(self, mock_config_with_activitystore):
"""Test to test storing and retrieving data from the activity detail db"""
# Create test values
adr1 = ActivityDetailRecord(ActivityDetailType.CODE)
adr1.show = True
adr1.importance = 100
adr1.add_value("text/plain", "first")
adr2 = ActivityDetailRecord(ActivityDetailType.CODE)
adr2.show = True
adr2.importance = 0
adr2.add_value("text/plain", "second")
adr1 = mock_config_with_activitystore[0].put_detail_record(adr1)
adr2 = mock_config_with_activitystore[0].put_detail_record(adr2)
assert adr1.key is not None
assert adr2.key is not None
assert type(adr1.key) == str
assert type(adr2.key) == str
# Load
adr1_loaded = mock_config_with_activitystore[0].get_detail_record(adr1.key)
adr2_loaded = mock_config_with_activitystore[0].get_detail_record(adr2.key)
assert adr1.key == adr1_loaded.key
assert adr1.importance == adr1_loaded.importance
assert adr1.type == adr1_loaded.type
assert adr1.is_loaded == adr1_loaded.is_loaded is True
assert adr1.data == adr1_loaded.data
assert adr2.key == adr2_loaded.key
assert adr2.importance == adr2_loaded.importance
assert adr2.type == adr2_loaded.type
assert adr2.is_loaded == adr2_loaded.is_loaded is True
assert adr2.data == adr2_loaded.data
def test_put_get_detail_record_with_tags(self, mock_config_with_activitystore):
"""Test to test storing and retrieving data from the activity detail db"""
# Create test values
adr1 = ActivityDetailRecord(ActivityDetailType.CODE, action=ActivityAction.CREATE)
adr1.show = True
adr1.importance = 100
adr1.add_value("text/plain", "first")
adr1.tags = ['test1']
adr2 = ActivityDetailRecord(ActivityDetailType.CODE_EXECUTED, action=ActivityAction.EXECUTE)
adr2.show = True
adr2.importance = 0
adr2.add_value("text/plain", "second")
adr2.tags = ['test2', 'test:3']
adr1 = mock_config_with_activitystore[0].put_detail_record(adr1)
adr2 = mock_config_with_activitystore[0].put_detail_record(adr2)
assert adr1.key is not None
assert adr2.key is not None
assert type(adr1.key) == str
assert type(adr2.key) == str
# Load
adr1_loaded = mock_config_with_activitystore[0].get_detail_record(adr1.key)
adr2_loaded = mock_config_with_activitystore[0].get_detail_record(adr2.key)
assert adr1.key == adr1_loaded.key
assert adr1.importance == adr1_loaded.importance
assert adr1.type == adr1_loaded.type
assert adr1.is_loaded == adr1_loaded.is_loaded is True
assert adr1.data == adr1_loaded.data
assert adr1.tags == adr1_loaded.tags
assert adr1.action == adr1_loaded.action == ActivityAction.CREATE
assert adr2.key == adr2_loaded.key
assert adr2.importance == adr2_loaded.importance
assert adr2.type == adr2_loaded.type
assert adr2.is_loaded == adr2_loaded.is_loaded is True
assert adr2.data == adr2_loaded.data
assert adr2.tags == adr2_loaded.tags
assert adr2.action == adr2_loaded.action == ActivityAction.EXECUTE
def test_put_get_detail_record_with_compression(self, mock_config_with_activitystore):
"""Test to test storing and retrieving data from the activity detail db w/ compression"""
# Create test values
adr1 = ActivityDetailRecord(ActivityDetailType.CODE)
adr1.show = True
adr1.importance = 100
adr1.add_value("text/plain", "first" * 1000)
adr2 = ActivityDetailRecord(ActivityDetailType.CODE)
adr2.show = True
adr2.importance = 0
adr2.add_value("text/plain", "second" * 1000)
adr1 = mock_config_with_activitystore[0].put_detail_record(adr1)
adr2 = mock_config_with_activitystore[0].put_detail_record(adr2)
assert adr1.key is not None
assert adr2.key is not None
assert type(adr1.key) == str
assert type(adr2.key) == str
# Load
adr1_loaded = mock_config_with_activitystore[0].get_detail_record(adr1.key)
adr2_loaded = mock_config_with_activitystore[0].get_detail_record(adr2.key)
assert adr1.key == adr1_loaded.key
assert adr1.importance == adr1_loaded.importance
assert adr1.type == adr1_loaded.type
assert adr1.is_loaded == adr1_loaded.is_loaded is True
assert adr1.data == adr1_loaded.data
assert adr2.key == adr2_loaded.key
assert adr2.importance == adr2_loaded.importance
assert adr2.type == adr2_loaded.type
assert adr2.is_loaded == adr2_loaded.is_loaded is True
assert adr2.data == adr2_loaded.data
def test_put_get_activity_record(self, mock_config_with_activitystore):
"""Method to test creating and getting an individual activity record"""
adr1 = ActivityDetailRecord(ActivityDetailType.CODE)
adr1.show = True
adr1.importance = 100
adr1.add_value("text/plain", "this is a thing" * 1000)
adr1.tags = ['tag1', 'tag2']
adr2 = ActivityDetailRecord(ActivityDetailType.RESULT)
adr2.show = False
adr2.importance = 0
adr2.add_value("text/plain", "another item")
adr2.tags = ['tag1', 'tag2']
linked_commit = helper_create_labbook_change(mock_config_with_activitystore[1], 1)
ar = ActivityRecord(ActivityType.CODE,
show=True,
message="added some code",
importance=50,
linked_commit=linked_commit.hexsha)
ar.add_detail_object(adr1)
ar.add_detail_object(adr2)
assert ar.commit is None
# Create Activity Record
ar_written = mock_config_with_activitystore[0].create_activity_record(ar)
assert ar.commit is not None
assert ar.username == 'default'
assert ar.email == 'default@test.com'
# Get Note and check
stored_ar = mock_config_with_activitystore[0].get_activity_record(ar_written.commit)
assert ar.commit == stored_ar.commit
assert ar.importance == stored_ar.importance
assert ar.linked_commit == stored_ar.linked_commit
assert ar.log_str == stored_ar.log_str
assert ar.message == stored_ar.message
assert ar.show == stored_ar.show
assert ar.tags == stored_ar.tags
assert ar.type == stored_ar.type
assert len(ar._detail_objects) == len(stored_ar._detail_objects)
assert ar._detail_objects[0][0] == stored_ar._detail_objects[0][0]
assert ar._detail_objects[0][1] == stored_ar._detail_objects[0][1]
assert ar._detail_objects[0][2] == stored_ar._detail_objects[0][2]
assert ar._detail_objects[0][3].is_loaded is True
assert ar._detail_objects[1][3].is_loaded is True
assert stored_ar._detail_objects[0][3].is_loaded is False
assert stored_ar._detail_objects[1][3].is_loaded is False
assert stored_ar.username == 'default'
assert stored_ar.email == 'default@test.com'
def test_put_get_activity_record_with_tag(self, mock_config_with_activitystore):
"""Method to test creating and getting an individual activity record with a tag"""
adr1 = ActivityDetailRecord(ActivityDetailType.CODE)
adr1.show = True
adr1.importance = 100
adr1.add_value("text/plain", "this is a thing" * 1000)
adr1.tags = ['tag1', 'tag2']
linked_commit = helper_create_labbook_change(mock_config_with_activitystore[1], 1)
ar = ActivityRecord(ActivityType.CODE,
show=True,
message="added some code",
importance=50,
linked_commit=linked_commit.hexsha)
ar.add_detail_object(adr1)
ar.tags = ['tag1', 'tag2']
assert ar.commit is None
# Create Activity Record
ar_written = mock_config_with_activitystore[0].create_activity_record(ar)
assert ar.commit is not None
# Get Note and check
stored_ar = mock_config_with_activitystore[0].get_activity_record(ar_written.commit)
assert ar.commit == stored_ar.commit
assert ar.importance == stored_ar.importance
assert ar.linked_commit == stored_ar.linked_commit
assert ar.log_str == stored_ar.log_str
assert ar.message == stored_ar.message
assert ar.show == stored_ar.show
assert ar.tags == stored_ar.tags
assert ar.type == stored_ar.type
assert len(ar._detail_objects) == len(stored_ar._detail_objects)
assert stored_ar.username == 'default'
assert stored_ar.email == 'default@test.com'
assert stored_ar.username == ar.username
assert stored_ar.email == ar.email
assert ar._detail_objects[0][0] == stored_ar._detail_objects[0][0]
assert ar._detail_objects[0][1] == stored_ar._detail_objects[0][1]
assert ar._detail_objects[0][2] == stored_ar._detail_objects[0][2]
assert ar._detail_objects[0][3].is_loaded is True
assert stored_ar._detail_objects[0][3].is_loaded is False
def test_get_activity_record_does_not_exist(self, mock_config_with_activitystore):
"""Test getting a note by a commit hash that does not exist"""
with pytest.raises(ValueError):
mock_config_with_activitystore[0].get_activity_record("abcdabcdacbd")
def test_get_log_records(self, mock_config_with_activitystore):
"""Method to test querying the git log for some records"""
linked_commit = helper_create_labbook_change(mock_config_with_activitystore[1], 1)
ar = ActivityRecord(ActivityType.CODE,
show=True,
message="added some code",
importance=50,
linked_commit=linked_commit.hexsha)
record1 = mock_config_with_activitystore[0].create_activity_record(ar)
linked_commit = helper_create_labbook_change(mock_config_with_activitystore[1], 1)
ar = ActivityRecord(ActivityType.CODE,
show=True,
message="added some code",
importance=50,
linked_commit=linked_commit.hexsha)
record2 = mock_config_with_activitystore[0].create_activity_record(ar)
linked_commit = helper_create_labbook_change(mock_config_with_activitystore[1], 1)
ar = ActivityRecord(ActivityType.CODE,
show=True,
message="added some code",
importance=50,
linked_commit=linked_commit.hexsha)
record3 = mock_config_with_activitystore[0].create_activity_record(ar)
log_records = mock_config_with_activitystore[0]._get_log_records()
assert len(log_records) == 3
assert type(log_records[0][0]) == str
assert type(log_records[0][1]) == str
assert len(log_records[0][1]) == 40
assert type(log_records[0][2]) == datetime
assert type(log_records[1][0]) == str
assert type(log_records[1][1]) == str
assert len(log_records[1][1]) == 40
assert type(log_records[1][2]) == datetime
log_records = mock_config_with_activitystore[0]._get_log_records(first=1)
assert len(log_records) >= 1
assert len(log_records) <= 4
with pytest.raises(ValueError):
_ = mock_config_with_activitystore[0]._get_log_records(before=record2.commit)
with pytest.raises(ValueError):
_ = mock_config_with_activitystore[0]._get_log_records(first=0)
def test_get_activity_records(self, mock_config_with_activitystore):
"""Method to test creating and getting a bunch of activity records"""
linked_commit = helper_create_labbook_change(mock_config_with_activitystore[1], 1)
ar = ActivityRecord(ActivityType.CODE,
show=True,
message="added some code 1",
importance=50,
linked_commit=linked_commit.hexsha)
record1 = mock_config_with_activitystore[0].create_activity_record(ar)
linked_commit = helper_create_labbook_change(mock_config_with_activitystore[1], 1)
ar = ActivityRecord(ActivityType.CODE,
show=True,
message="added some code 2",
importance=50,
linked_commit=linked_commit.hexsha)
record2 = mock_config_with_activitystore[0].create_activity_record(ar)
linked_commit = helper_create_labbook_change(mock_config_with_activitystore[1], 1)
ar = ActivityRecord(ActivityType.CODE,
show=True,
message="added some code 3",
importance=50,
linked_commit=linked_commit.hexsha)
record3 = mock_config_with_activitystore[0].create_activity_record(ar)
activity_records = mock_config_with_activitystore[0].get_activity_records()
assert len(activity_records) == 3
assert activity_records[0].commit == record3.commit
assert activity_records[0].linked_commit == record3.linked_commit
assert activity_records[0].message == record3.message
assert activity_records[1].commit == record2.commit
assert activity_records[1].linked_commit == record2.linked_commit
assert activity_records[1].message == record2.message
assert activity_records[2].commit == record1.commit
assert activity_records[2].linked_commit == record1.linked_commit
assert activity_records[2].message == record1.message
assert activity_records[2].username == 'default'
assert activity_records[2].email == 'default@test.com'
activity_records = mock_config_with_activitystore[0].get_activity_records(first=20)
assert len(activity_records) == 3
assert activity_records[0].commit == record3.commit
assert activity_records[0].linked_commit == record3.linked_commit
assert activity_records[0].message == record3.message
assert activity_records[1].commit == record2.commit
assert activity_records[1].linked_commit == record2.linked_commit
assert activity_records[1].message == record2.message
assert activity_records[2].commit == record1.commit
assert activity_records[2].linked_commit == record1.linked_commit
assert activity_records[2].message == record1.message
assert activity_records[2].username == 'default'
assert activity_records[2].email == 'default@test.com'
# Verify the timestamp is getting set properly
assert type(activity_records[0].timestamp) == datetime
assert activity_records[0].timestamp < datetime.now(timezone.utc)
assert activity_records[0].timestamp > datetime.now(timezone.utc) - timedelta(seconds=10)
activity_records = mock_config_with_activitystore[0].get_activity_records(first=1)
assert len(activity_records) == 1
assert activity_records[0].commit == record3.commit
assert activity_records[0].linked_commit == record3.linked_commit
assert activity_records[0].message == record3.message
activity_records = mock_config_with_activitystore[0].get_activity_records(after=record2.commit)
assert len(activity_records) == 1
assert activity_records[0].commit == record1.commit
assert activity_records[0].linked_commit == record1.linked_commit
assert activity_records[0].message == record1.message
activity_records = mock_config_with_activitystore[0].get_activity_records(after=record3.commit, first=1)
assert len(activity_records) == 1
assert activity_records[0].commit == record2.commit
assert activity_records[0].linked_commit == record2.linked_commit
assert activity_records[0].message == record2.message
activity_records = mock_config_with_activitystore[0].get_activity_records(after=record3.commit, first=20)
assert len(activity_records) == 2
assert activity_records[0].commit == record2.commit
assert activity_records[0].linked_commit == record2.linked_commit
assert activity_records[0].message == record2.message
def test_get_activity_records_with_intermediate_commits(self, mock_config_with_activitystore):
"""Method to test creating and getting a bunch of activity records with intermediate commits made"""
linked_commit = helper_create_labbook_change(mock_config_with_activitystore[1], 1)
ar = ActivityRecord(ActivityType.CODE,
show=True,
message="added some code 1",
importance=50,
linked_commit=linked_commit.hexsha)
record1 = mock_config_with_activitystore[0].create_activity_record(ar)
# Add some intermediate commits
for cnt in range(10):
helper_create_labbook_change(mock_config_with_activitystore[1], cnt)
linked_commit = helper_create_labbook_change(mock_config_with_activitystore[1], 1)
ar = ActivityRecord(ActivityType.CODE,
show=True,
message="added some code 2",
importance=50,
linked_commit=linked_commit.hexsha)
record2 = mock_config_with_activitystore[0].create_activity_record(ar)
linked_commit = helper_create_labbook_change(mock_config_with_activitystore[1], 1)
ar = ActivityRecord(ActivityType.CODE,
show=True,
message="added some code 3",
importance=50,
linked_commit=linked_commit.hexsha)
record3 = mock_config_with_activitystore[0].create_activity_record(ar)
# add a bunch of non-activity record commits, which previously would prevent activity from coming back
for cnt in range(20):
helper_create_labbook_change(mock_config_with_activitystore[1], cnt)
activity_records = mock_config_with_activitystore[0].get_activity_records()
assert len(activity_records) == 3
assert activity_records[0].commit == record3.commit
assert activity_records[0].linked_commit == record3.linked_commit
assert activity_records[0].message == record3.message
assert activity_records[1].commit == record2.commit
assert activity_records[1].linked_commit == record2.linked_commit
assert activity_records[1].message == record2.message
assert activity_records[2].commit == record1.commit
assert activity_records[2].linked_commit == record1.linked_commit
assert activity_records[2].message == record1.message
assert activity_records[2].username == 'default'
assert activity_records[2].email == 'default@test.com'
activity_records = mock_config_with_activitystore[0].get_activity_records(first=6)
assert len(activity_records) == 3
assert activity_records[0].commit == record3.commit
assert activity_records[0].linked_commit == record3.linked_commit
assert activity_records[0].message == record3.message
assert activity_records[1].commit == record2.commit
assert activity_records[1].linked_commit == record2.linked_commit
assert activity_records[1].message == record2.message
assert activity_records[2].commit == record1.commit
assert activity_records[2].linked_commit == record1.linked_commit
assert activity_records[2].message == record1.message
assert activity_records[2].username == 'default'
assert activity_records[2].email == 'default@test.com'
activity_records = mock_config_with_activitystore[0].get_activity_records(first=20)
assert len(activity_records) == 3
activity_records = mock_config_with_activitystore[0].get_activity_records(first=2)
assert len(activity_records) == 2
# Verify the timestamp is getting set properly
assert type(activity_records[0].timestamp) == datetime
assert activity_records[0].timestamp < datetime.now(timezone.utc)
assert activity_records[0].timestamp > datetime.now(timezone.utc) - timedelta(seconds=10)
activity_records = mock_config_with_activitystore[0].get_activity_records(first=1)
assert len(activity_records) == 1
assert activity_records[0].commit == record3.commit
assert activity_records[0].linked_commit == record3.linked_commit
assert activity_records[0].message == record3.message
activity_records = mock_config_with_activitystore[0].get_activity_records(after=record2.commit)
assert len(activity_records) == 1
assert activity_records[0].commit == record1.commit
assert activity_records[0].linked_commit == record1.linked_commit
assert activity_records[0].message == record1.message
activity_records = mock_config_with_activitystore[0].get_activity_records(after=record3.commit, first=1)
assert len(activity_records) == 1
assert activity_records[0].commit == record2.commit
assert activity_records[0].linked_commit == record2.linked_commit
assert activity_records[0].message == record2.message
activity_records = mock_config_with_activitystore[0].get_activity_records(after=record3.commit, first=20)
assert len(activity_records) == 2
assert activity_records[0].commit == record2.commit
assert activity_records[0].linked_commit == record2.linked_commit
assert activity_records[0].message == record2.message
| 46.719931 | 135 | 0.681475 | 3,359 | 27,191 | 5.255135 | 0.087526 | 0.102821 | 0.068208 | 0.131543 | 0.828008 | 0.809087 | 0.786087 | 0.774417 | 0.756005 | 0.746431 | 0 | 0.029723 | 0.231621 | 27,191 | 581 | 136 | 46.800344 | 0.815153 | 0.088412 | 0 | 0.753027 | 0 | 0 | 0.033277 | 0.002067 | 0 | 0 | 0 | 0 | 0.493947 | 1 | 0.038741 | false | 0 | 0.084746 | 0 | 0.128329 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
cf7c88e9a30a429e9cdef5fa049ce5badb975d88 | 2,330 | py | Python | actionqueues/tests/test_aqstatemachine.py | mikerhodes/actionqueues | a7a78ab116abe88af95b5315dc9f34d40ce81eb2 | [
"Apache-2.0"
] | null | null | null | actionqueues/tests/test_aqstatemachine.py | mikerhodes/actionqueues | a7a78ab116abe88af95b5315dc9f34d40ce81eb2 | [
"Apache-2.0"
] | 7 | 2018-07-03T20:49:38.000Z | 2018-07-05T15:45:39.000Z | actionqueues/tests/test_aqstatemachine.py | mikerhodes/actionqueues | a7a78ab116abe88af95b5315dc9f34d40ce81eb2 | [
"Apache-2.0"
] | null | null | null | # pylint: disable=invalid-name,missing-docstring
import pytest
from actionqueues.aqstatemachine import AQStateMachine
def test_valid_sequence():
m = AQStateMachine()
m.transition_to_add()
m.transition_to_add()
m.transition_to_execute()
m.transition_to_rollback()
m.transition_to_rollback_complete()
def test_invalid_sequence_1():
m = AQStateMachine()
with pytest.raises(AssertionError):
m.transition_to_execute()
def test_invalid_sequence_2():
m = AQStateMachine()
with pytest.raises(AssertionError):
m.transition_to_rollback()
def test_invalid_sequence_3():
m = AQStateMachine()
with pytest.raises(AssertionError):
m.transition_to_execute_complete()
def test_invalid_sequence_4():
m = AQStateMachine()
with pytest.raises(AssertionError):
m.transition_to_rollback_complete()
def test_invalid_sequence_5():
m = AQStateMachine()
with pytest.raises(AssertionError):
m.transition_to_add()
m.transition_to_execute()
m.transition_to_rollback_complete()
def test_invalid_sequence_6():
m = AQStateMachine()
with pytest.raises(AssertionError):
m.transition_to_add()
m.transition_to_execute()
m.transition_to_execute_complete()
m.transition_to_rollback_complete()
def test_invalid_sequence_7():
m = AQStateMachine()
with pytest.raises(AssertionError):
m.transition_to_add()
m.transition_to_execute()
m.transition_to_execute()
def test_invalid_sequence_8():
m = AQStateMachine()
with pytest.raises(AssertionError):
m.transition_to_add()
m.transition_to_execute()
m.transition_to_rollback()
m.transition_to_rollback()
def test_invalid_sequence_9():
m = AQStateMachine()
with pytest.raises(AssertionError):
m.transition_to_add()
m.transition_to_execute()
m.transition_to_execute_complete()
m.transition_to_execute()
def test_invalid_sequence_10():
m = AQStateMachine()
with pytest.raises(AssertionError):
m.transition_to_add()
m.transition_to_execute_complete()
def test_invalid_sequence_11():
m = AQStateMachine()
with pytest.raises(AssertionError):
m.transition_to_add()
m.transition_to_rollback_complete()
| 27.738095 | 54 | 0.711588 | 273 | 2,330 | 5.684982 | 0.131868 | 0.219716 | 0.259665 | 0.167526 | 0.903351 | 0.893041 | 0.893041 | 0.882732 | 0.807345 | 0.686211 | 0 | 0.006937 | 0.195708 | 2,330 | 83 | 55 | 28.072289 | 0.821238 | 0.019742 | 0 | 0.794118 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.161765 | 1 | 0.176471 | false | 0 | 0.029412 | 0 | 0.205882 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 10 |
d87e5d7826a347be5da3ca89914dca67bba3cca1 | 68,674 | py | Python | tests/conftest.py | CIRAIG/bw2waterbalancer | aaeace9f71fe55cb17488d020467f471b32be3d8 | [
"MIT"
] | 1 | 2021-01-27T22:16:56.000Z | 2021-01-27T22:16:56.000Z | tests/conftest.py | CIRAIG/bw2waterbalancer | aaeace9f71fe55cb17488d020467f471b32be3d8 | [
"MIT"
] | null | null | null | tests/conftest.py | CIRAIG/bw2waterbalancer | aaeace9f71fe55cb17488d020467f471b32be3d8 | [
"MIT"
] | null | null | null | import pytest
from bw2data.tests import bw2test
from brightway2 import Database, Method, methods, projects, methods
from shutil import rmtree
import numpy as np
@pytest.fixture
@bw2test
def data_for_testing():
# Make sure we are starting off with an empty project
assert not len(Database('test_db'))
assert not len(Database('biosphere'))
biosphere = Database("biosphere")
biosphere.register()
biosphere.write({
("biosphere", "Water 1, from nature, in kg"): {
'categories': ['natural resource'],
'exchanges': [],
'name': 'Water 1, from nature, in kg',
'type': 'natural resource',
'unit': 'kilogram'
},
("biosphere", "Water 2, from nature, in kg"): {
'categories': ['natural resource'],
'exchanges': [],
'name': 'Water 2, from nature, in kg',
'type': 'natural resource',
'unit': 'kilogram'
},
("biosphere", "Water, from nature, in m3"): {
'categories': ['natural resource'],
'exchanges': [],
'name': 'Water, from nature, in m3',
'type': 'natural resource',
'unit': 'cubic meter'
},
("biosphere", "Water 1, to water, in kg"): {
'categories': ['water'],
'exchanges': [],
'name': 'Water 1, to water, in kg',
'type': 'emission',
'unit': 'kilogram'
},
("biosphere", "Water 2, to water, in kg"): {
'categories': ['water', 'specific water'],
'exchanges': [],
'name': 'Water 2, to water, in kg',
'type': 'emission',
'unit': 'kilogram'
},
("biosphere", "Water, to water, in m3"): {
'categories': ['water'],
'exchanges': [],
'name': 'Water, to water, in m3',
'type': 'emission',
'unit': 'cubic meter'
},
("biosphere", "Water, to air, in kg"): {
'categories': ['air'],
'exchanges': [],
'name': 'Water to air, in kg',
'type': 'emission',
'unit': 'kilogram'
},
("biosphere", "Water, to air, in m3"): {
'categories': ['water'],
'exchanges': [],
'name': 'Water to air, in m3',
'type': 'emission',
'unit': 'cubic meter'
},
("biosphere", "Something else"): {
'categories': ['air'],
'exchanges': [],
'name': 'Something else to air, in m3',
'type': 'emission',
'unit': 'kg'
},
})
assert len(Database('biosphere')) == 9
test_db = Database("test_db")
test_db.register()
test_db.write({
("test_db", "X"): {
'name': 'X',
'unit': 'kilogram',
'location': 'GLO',
'reference product': 'non-water product',
'production amount': 1,
'activity type': 'ordinary transforming activity',
'expected results': {
'strategy': 'skip',
'ratio': None,
'balance': 0
},
'exchanges': [
{
'name': 'non-water product',
'unit': 'kilogram',
'amount': 1.0,
'input': ('test_db', 'X'),
'type': 'production',
'uncertainty type': 0,
},
],
},
("test_db", "A"): {
'name': 'A',
'unit': 'kilogram',
'location': 'GLO',
'reference product': 'non-water product',
'production amount': 1,
'activity type': 'ordinary transforming activity',
'expected results': {
'strategy': 'default',
'ratio': 1,
'balance': 0
},
'exchanges': [
{
'name': 'non-water product',
'unit': 'kilogram',
'amount': 1.0,
'input': ('test_db', 'A'),
'type': 'production',
'uncertainty type': 0,
},
{
'name': 'Water 1, from nature, in kg',
'unit': 'kilogram',
'amount': 1.0,
'input': ('biosphere', 'Water 1, from nature, in kg'),
'type': 'biosphere',
'uncertainty type': 2,
'loc': np.log(1.0),
'scale': 0.1,
'formula': 'some_good_formula'
},
{
'name': 'Water 2, from nature, in kg',
'unit': 'kilogram',
'amount': 2.0,
'input': ('biosphere', 'Water 2, from nature, in kg'),
'type': 'biosphere',
'uncertainty type': 2,
'loc': np.log(2.0),
'scale': 0.1,
'formula': 'some bad formula'
},
{
'name': 'Water 1, to water, in kg',
'unit': 'kilogram',
'amount': 1.0,
'input': ('biosphere', 'Water 1, to water, in kg'),
'type': 'biosphere',
'uncertainty type': 0,
'loc': 1.0,
},
{
'name': 'Water 2, to water, in kg',
'unit': 'kilogram',
'amount': 2.0,
'input': ('biosphere', 'Water 2, to water, in kg'),
'type': 'biosphere',
'uncertainty type': 2,
'loc': np.log(2.0),
'scale': 0.1
},
{
'name': 'Water, to air, in kg',
'unit': 'kilogram',
'amount': 4.0,
'input': ('biosphere', 'Water, to air, in kg'),
'type': 'biosphere',
'uncertainty type': 2,
'loc': np.log(4.0),
'scale': 0.1
},
{
'name': 'non-water product',
'unit': 'kilogram',
'amount': 1.0,
'input': ('test_db', 'X'),
'type': 'technosphere',
'uncertainty type': 2,
'loc': np.log(1),
'scale': 0.1,
},
{
'name': 'ww',
'unit': 'kilogram',
'amount': -6.0,
'input': ('test_db', 'L'),
'type': 'technosphere',
'uncertainty type': 2,
'loc': np.log(6),
'scale': 0.1,
'negative': True
},
{
'name': 'ww',
'unit': 'kilogram',
'amount': -7.0,
'input': ('test_db', 'N'),
'type': 'technosphere',
'uncertainty type': 2,
'loc': np.log(7),
'scale': 0.1,
'negative': True
},
{
'name': 'tap water',
'unit': 'kilogram',
'amount': 8,
'input': ('test_db', 'S'),
'type': 'technosphere',
'uncertainty type': 2,
'loc': np.log(8),
'scale': 0.1,
},
{
'name': 'tap water',
'unit': 'kilogram',
'amount': 9,
'input': ('test_db', 'U'),
'type': 'technosphere',
'uncertainty type': 2,
'loc': np.log(9),
'scale': 0.1,
},
],
},
("test_db", "B"): {
'name': 'B',
'unit': 'kilogram',
'location': 'GLO',
'reference product': 'non-water product',
'production amount': 1,
'activity type': 'ordinary transforming activity',
'expected results': {
'strategy': 'inverse',
'ratio': 1,
'balance': 0
},
'exchanges': [
{
'name': 'non-water product',
'unit': 'kilogram',
'amount': 1.0,
'input': ('test_db', 'B'),
'type': 'production',
'uncertainty type': 0,
},
{
'name': 'Water 1, from nature, in kg',
'unit': 'kilogram',
'amount': 1.0,
'input': ('biosphere', 'Water 1, from nature, in kg'),
'type': 'biosphere',
'uncertainty type': 0,
},
{
'name': 'Water 2, from nature, in kg',
'unit': 'kilogram',
'amount': 2.0,
'input': ('biosphere', 'Water 2, from nature, in kg'),
'type': 'biosphere',
'uncertainty type': 0,
},
{
'name': 'Water 1, to water, in kg',
'unit': 'kilogram',
'amount': 1.0,
'input': ('biosphere', 'Water 1, to water, in kg'),
'type': 'biosphere',
'uncertainty type': 2,
'loc': np.log(1.0),
'scale': 0.1
},
{
'name': 'Water 2, to water, in kg',
'unit': 'kilogram',
'amount': 2.0,
'input': ('biosphere', 'Water 2, to water, in kg'),
'type': 'biosphere',
'uncertainty type': 2,
'loc': np.log(2.0),
'scale': 0.1
},
{
'name': 'Water, to air, in kg',
'unit': 'kilogram',
'amount': 4.0,
'input': ('biosphere', 'Water, to air, in kg'),
'type': 'biosphere',
'uncertainty type': 2,
'loc': np.log(4.0),
'scale': 0.1
},
{
'name': 'non-water product',
'unit': 'kilogram',
'amount': 1.0,
'input': ('test_db', 'X'),
'type': 'technosphere',
'uncertainty type': 2,
'loc': np.log(1),
'scale': 0.1,
},
{
'name': 'ww',
'unit': 'kilogram',
'amount': -6.0,
'input': ('test_db', 'L'),
'type': 'technosphere',
'uncertainty type': 2,
'loc': np.log(6),
'scale': 0.1,
'negative': True
},
{
'name': 'ww',
'unit': 'kilogram',
'amount': -7.0,
'input': ('test_db', 'N'),
'type': 'technosphere',
'uncertainty type': 2,
'loc': np.log(7),
'scale': 0.1,
'negative': True
},
{
'name': 'tap water',
'unit': 'kilogram',
'amount': 8,
'input': ('test_db', 'S'),
'type': 'technosphere',
'uncertainty type': 0,
},
{
'name': 'tap water',
'unit': 'kilogram',
'amount': 9,
'input': ('test_db', 'U'),
'type': 'technosphere',
'uncertainty type': 0,
},
],
},
("test_db", "C"): {
'name': 'C',
'unit': 'kilogram',
'location': 'GLO',
'reference product': 'non-water product',
'production amount': 1,
'activity type': 'ordinary transforming activity',
'expected results': {
'strategy': 'default',
'ratio': 2,
'balance': 20
},
'exchanges': [
{
'name': 'non-water product',
'unit': 'kilogram',
'amount': 1.0,
'input': ('test_db', 'C'),
'type': 'production',
'uncertainty type': 0,
},
{
'name': 'Water 1, from nature, in kg',
'unit': 'kilogram',
'amount': 2.0,
'input': ('biosphere', 'Water 1, from nature, in kg'),
'type': 'biosphere',
'uncertainty type': 2,
'loc': np.log(2.0),
'scale': 0.1
},
{
'name': 'Water 2, from nature, in kg',
'unit': 'kilogram',
'amount': 4.0,
'input': ('biosphere', 'Water 2, from nature, in kg'),
'type': 'biosphere',
'uncertainty type': 2,
'loc': np.log(4.0),
'scale': 0.1
},
{
'name': 'Water 1, to water, in kg',
'unit': 'kilogram',
'amount': 1.0,
'input': ('biosphere', 'Water 1, to water, in kg'),
'type': 'biosphere',
'uncertainty type': 2,
'loc': np.log(1.0),
'scale': 0.1
},
{
'name': 'Water 2, to water, in kg',
'unit': 'kilogram',
'amount': 2.0,
'input': ('biosphere', 'Water 2, to water, in kg'),
'type': 'biosphere',
'uncertainty type': 2,
'loc': np.log(2.0),
'scale': 0.1
},
{
'name': 'Water, to air, in kg',
'unit': 'kilogram',
'amount': 4.0,
'input': ('biosphere', 'Water, to air, in kg'),
'type': 'biosphere',
'uncertainty type': 2,
'loc': np.log(4.0),
'scale': 0.1
},
{
'name': 'Somtething else, to air',
'unit': 'kilogram',
'amount': 100.0,
'input': ("biosphere", "Something else"),
'type': 'biosphere',
'uncertainty type': 2,
'loc': np.log(100.0),
'scale': 0.1
},
{
'name': 'non-water product',
'unit': 'kilogram',
'amount': 1.0,
'input': ('test_db', 'X'),
'type': 'technosphere',
'uncertainty type': 2,
'loc': np.log(1),
'scale': 0.1,
},
{
'name': 'ww',
'unit': 'kilogram',
'amount': -6.0,
'input': ('test_db', 'L'),
'type': 'technosphere',
'uncertainty type': 2,
'loc': np.log(6),
'scale': 0.1,
'negative': True
},
{
'name': 'ww',
'unit': 'kilogram',
'amount': -7.0,
'input': ('test_db', 'N'),
'type': 'technosphere',
'uncertainty type': 2,
'loc': np.log(7),
'scale': 0.1,
'negative': True
},
{
'name': 'tap water',
'unit': 'kilogram',
'amount': 16,
'input': ('test_db', 'S'),
'type': 'technosphere',
'uncertainty type': 2,
'loc': np.log(16),
'scale': 0.1,
},
{
'name': 'tap water',
'unit': 'kilogram',
'amount': 18,
'input': ('test_db', 'U'),
'type': 'technosphere',
'uncertainty type': 2,
'loc': np.log(18),
'scale': 0.1,
},
],
},
("test_db", "D"): {
'name': 'D',
'unit': 'kilogram',
'location': 'GLO',
'reference product': 'non-water product',
'production amount': 1,
'activity type': 'ordinary transforming activity',
'expected results': {
'strategy': 'inverse',
'ratio': 2,
'balance': 20
},
'exchanges': [
{
'name': 'non-water product',
'unit': 'kilogram',
'amount': 1.0,
'input': ('test_db', 'D'),
'type': 'production',
'uncertainty type': 0,
},
{
'name': 'Water 1, from nature, in kg',
'unit': 'kilogram',
'amount': 2.0,
'input': ('biosphere', 'Water 1, from nature, in kg'),
'type': 'biosphere',
'uncertainty type': 0,
},
{
'name': 'Water 2, from nature, in kg',
'unit': 'kilogram',
'amount': 4.0,
'input': ('biosphere', 'Water 2, from nature, in kg'),
'type': 'biosphere',
'uncertainty type': 0,
},
{
'name': 'Water 1, to water, in kg',
'unit': 'kilogram',
'amount': 1.0,
'input': ('biosphere', 'Water 1, to water, in kg'),
'type': 'biosphere',
'uncertainty type': 2,
'loc': np.log(1.0),
'scale': 0.1
},
{
'name': 'Water 2, to water, in kg',
'unit': 'kilogram',
'amount': 2.0,
'input': ('biosphere', 'Water 2, to water, in kg'),
'type': 'biosphere',
'uncertainty type': 2,
'loc': np.log(2.0),
'scale': 0.1
},
{
'name': 'Water, to air, in kg',
'unit': 'kilogram',
'amount': 4.0,
'input': ('biosphere', 'Water, to air, in kg'),
'type': 'biosphere',
'uncertainty type': 2,
'loc': np.log(4.0),
'scale': 0.1
},
{
'name': 'non-water product',
'unit': 'kilogram',
'amount': 1.0,
'input': ('test_db', 'X'),
'type': 'technosphere',
'uncertainty type': 2,
'loc': np.log(1),
'scale': 0.1,
},
{
'name': 'ww',
'unit': 'kilogram',
'amount': -6.0,
'input': ('test_db', 'L'),
'type': 'technosphere',
'uncertainty type': 2,
'loc': np.log(6),
'scale': 0.1,
'negative': True
},
{
'name': 'ww',
'unit': 'kilogram',
'amount': -7.0,
'input': ('test_db', 'N'),
'type': 'technosphere',
'uncertainty type': 2,
'loc': np.log(7),
'scale': 0.1,
'negative': True
},
{
'name': 'tap water',
'unit': 'kilogram',
'amount': 16,
'input': ('test_db', 'S'),
'type': 'technosphere',
'uncertainty type': 0,
},
{
'name': 'tap water',
'unit': 'kilogram',
'amount': 18,
'input': ('test_db', 'T'),
'type': 'technosphere',
'uncertainty type': 0,
},
],
},
("test_db", "E"): {
'name': 'E',
'unit': 'kilogram',
'location': 'GLO',
'reference product': 'non-water product',
'production amount': 1,
'activity type': 'ordinary transforming activity',
'expected results': {
'strategy': 'default',
'ratio': 1,
'balance': 0
},
'exchanges': [
{
'name': 'non-water product',
'unit': 'kilogram',
'amount': 1.0,
'input': ('test_db', 'E'),
'type': 'production',
'uncertainty type': 0,
},
{
'name': 'Water 2, from nature, in kg',
'unit': 'kilogram',
'amount': 2.0,
'input': ('biosphere', 'Water 2, from nature, in kg'),
'type': 'biosphere',
'uncertainty type': 2,
'loc': np.log(2.0),
'scale': 0.1
},
{
'name': 'Water, from nature, in m3',
'unit': 'cubic meter',
'amount': 0.001,
'input': ('biosphere', 'Water, from nature, in m3'),
'type': 'biosphere',
'uncertainty type': 2,
'loc': np.log(0.001),
'scale': 0.1
},
{
'name': 'Water to water, in m3',
'unit': 'cubic meter',
'amount': 0.003,
'input': ('biosphere', 'Water, to water, in m3'),
'type': 'biosphere',
'uncertainty type': 2,
'loc': np.log(0.003),
'scale': 0.1
},
{
'name': 'Water, to air, in m3',
'unit': 'cubic meter',
'amount': 0.004,
'input': ('biosphere', 'Water, to air, in m3'),
'type': 'biosphere',
'uncertainty type': 2,
'loc': np.log(0.004),
'scale': 0.1
},
{
'name': 'non-water product',
'unit': 'kilogram',
'amount': 1.0,
'input': ('test_db', 'X'),
'type': 'technosphere',
'uncertainty type': 2,
'loc': np.log(1),
'scale': 0.1,
},
{
'name': 'ww',
'unit': 'cubic meter',
'amount': -0.006,
'input': ('test_db', 'M'),
'type': 'technosphere',
'uncertainty type': 2,
'loc': np.log(0.006),
'scale': 0.1,
'negative': True
},
{
'name': 'ww',
'unit': 'kilogram',
'amount': -7.0,
'input': ('test_db', 'N'),
'type': 'technosphere',
'uncertainty type': 2,
'loc': np.log(7),
'scale': 0.1,
'negative': True
},
{
'name': 'tap water',
'unit': 'kilogram',
'amount': 8,
'input': ('test_db', 'S'),
'type': 'technosphere',
'uncertainty type': 2,
'loc': np.log(8),
'scale': 0.1,
},
{
'name': 'tap water',
'unit': 'cubic meter',
'amount': 0.009,
'input': ('test_db', 'T'),
'type': 'technosphere',
'uncertainty type': 2,
'loc': np.log(0.009),
'scale': 0.1,
},
],
},
("test_db", "F"): {
'name': 'F',
'unit': 'kilogram',
'location': 'GLO',
'reference product': 'non-water product',
'production amount': 1,
'activity type': 'ordinary transforming activity',
'expected results': {
'strategy': 'inverse',
'ratio': 1,
'balance': 0
},
'exchanges': [
{
'name': 'non-water product',
'unit': 'kilogram',
'amount': 1.0,
'input': ('test_db', 'F'),
'type': 'production',
'uncertainty type': 0,
},
{
'name': 'Water 2, from nature, in kg',
'unit': 'kilogram',
'amount': 2.0,
'input': ('biosphere', 'Water 2, from nature, in kg'),
'type': 'biosphere',
'uncertainty type': 0,
},
{
'name': 'Water, from nature, in m3',
'unit': 'cubic meter',
'amount': 0.001,
'input': ('biosphere', 'Water, from nature, in m3'),
'type': 'biosphere',
'uncertainty type': 0,
},
{
'name': 'Water to water, in m3',
'unit': 'cubic meter',
'amount': 0.003,
'input': ('biosphere', 'Water, to water, in m3'),
'type': 'biosphere',
'uncertainty type': 2,
'loc': np.log(0.003),
'scale': 0.1
},
{
'name': 'Water, to air, in m3',
'unit': 'cubic meter',
'amount': 0.004,
'input': ('biosphere', 'Water, to air, in m3'),
'type': 'biosphere',
'uncertainty type': 1,
'loc': np.log(0.004),
'scale': 0.1
},
{
'name': 'non-water product',
'unit': 'kilogram',
'amount': 1.0,
'input': ('test_db', 'X'),
'type': 'technosphere',
'uncertainty type': 2,
'loc': np.log(1),
'scale': 0.1,
},
{
'name': 'ww',
'unit': 'cubic meter',
'amount': -0.006,
'input': ('test_db', 'M'),
'type': 'technosphere',
'uncertainty type': 2,
'loc': np.log(0.006),
'scale': 0.1,
'negative': True
},
{
'name': 'ww',
'unit': 'kilogram',
'amount': -7.0,
'input': ('test_db', 'N'),
'type': 'technosphere',
'uncertainty type': 2,
'loc': np.log(7),
'scale': 0.1,
'negative': True
},
{
'name': 'tap water',
'unit': 'kilogram',
'amount': 8,
'input': ('test_db', 'S'),
'type': 'technosphere',
'uncertainty type': 0,
},
{
'name': 'tap water',
'unit': 'cubic meter',
'amount': 0.009,
'input': ('test_db', 'T'),
'type': 'technosphere',
'uncertainty type': 0,
},
],
},
("test_db", "G"): {
'name': 'G',
'unit': 'kilogram',
'location': 'GLO',
'reference product': 'non-water product',
'production amount': 1,
'activity type': 'ordinary transforming activity',
'expected results': {
'strategy': 'set_static',
'ratio': 1,
'balance': 0
},
'exchanges': [
{
'name': 'non-water product',
'unit': 'kilogram',
'amount': 1.0,
'input': ('test_db', 'G'),
'type': 'production',
'uncertainty type': 0,
},
{
'name': 'Water 1, from nature, in kg',
'unit': 'kilogram',
'amount': 1.0,
'input': ('biosphere', 'Water 1, from nature, in kg'),
'type': 'biosphere',
'uncertainty type': 2,
'loc': np.log(1.0),
'scale': 0.1
},
{
'name': 'Water 2, from nature, in kg',
'unit': 'kilogram',
'amount': 2.0,
'input': ('biosphere', 'Water 2, from nature, in kg'),
'type': 'biosphere',
'uncertainty type': 0,
},
{
'name': 'Water 1, to water, in kg',
'unit': 'kilogram',
'amount': 1.0,
'input': ('biosphere', 'Water 1, to water, in kg'),
'type': 'biosphere',
'uncertainty type': 0,
},
{
'name': 'Water 2, to water, in kg',
'unit': 'kilogram',
'amount': 2.0,
'input': ('biosphere', 'Water 2, to water, in kg'),
'type': 'biosphere',
'uncertainty type': 0,
},
{
'name': 'Water, to air, in kg',
'unit': 'kilogram',
'amount': 4.0,
'input': ('biosphere', 'Water, to air, in kg'),
'type': 'biosphere',
'uncertainty type': 0,
},
{
'name': 'non-water product',
'unit': 'kilogram',
'amount': 1.0,
'input': ('test_db', 'X'),
'type': 'technosphere',
'uncertainty type': 0,
},
{
'name': 'ww',
'unit': 'kilogram',
'amount': -6.0,
'input': ('test_db', 'L'),
'type': 'technosphere',
'uncertainty type': 0,
},
{
'name': 'ww',
'unit': 'kilogram',
'amount': -7.0,
'input': ('test_db', 'N'),
'type': 'technosphere',
'uncertainty type': 0,
},
{
'name': 'tap water',
'unit': 'kilogram',
'amount': 8,
'input': ('test_db', 'S'),
'type': 'technosphere',
'uncertainty type': 0,
},
{
'name': 'tap water',
'unit': 'kilogram',
'amount': 9,
'input': ('test_db', 'U'),
'type': 'technosphere',
'uncertainty type': 0,
},
],
},
("test_db", "H"): {
'name': 'H',
'unit': 'kilogram',
'location': 'GLO',
'reference product': 'non-water product',
'production amount': 1,
'activity type': 'ordinary transforming activity',
'expected results': {
'strategy': 'set_static',
'ratio': 1,
'balance': 0
},
'exchanges': [
{
'name': 'non-water product',
'unit': 'kilogram',
'amount': 1.0,
'input': ('test_db', 'H'),
'type': 'production',
'uncertainty type': 0,
},
{
'name': 'Water 1, from nature, in kg',
'unit': 'kilogram',
'amount': 1.0,
'input': ('biosphere', 'Water 1, from nature, in kg'),
'type': 'biosphere',
'uncertainty type': 0,
},
{
'name': 'Water 2, from nature, in kg',
'unit': 'kilogram',
'amount': 2.0,
'input': ('biosphere', 'Water 2, from nature, in kg'),
'type': 'biosphere',
'uncertainty type': 0,
},
{
'name': 'Water 1, to water, in kg',
'unit': 'kilogram',
'amount': 1.0,
'input': ('biosphere', 'Water 1, to water, in kg'),
'type': 'biosphere',
'uncertainty type': 2,
'loc': np.log(1.0),
'scale': 0.1
},
{
'name': 'Water 2, to water, in kg',
'unit': 'kilogram',
'amount': 2.0,
'input': ('biosphere', 'Water 2, to water, in kg'),
'type': 'biosphere',
'uncertainty type': 0,
},
{
'name': 'Water, to air, in kg',
'unit': 'kilogram',
'amount': 4.0,
'input': ('biosphere', 'Water, to air, in kg'),
'type': 'biosphere',
'uncertainty type': 0,
},
{
'name': 'non-water product',
'unit': 'kilogram',
'amount': 1.0,
'input': ('test_db', 'X'),
'type': 'technosphere',
'uncertainty type': 0,
},
{
'name': 'ww',
'unit': 'kilogram',
'amount': -6.0,
'input': ('test_db', 'L'),
'type': 'technosphere',
'uncertainty type': 0,
},
{
'name': 'ww',
'unit': 'kilogram',
'amount': -7.0,
'input': ('test_db', 'N'),
'type': 'technosphere',
'uncertainty type': 0,
},
{
'name': 'tap water',
'unit': 'kilogram',
'amount': 8,
'input': ('test_db', 'S'),
'type': 'technosphere',
'uncertainty type': 0,
},
{
'name': 'tap water',
'unit': 'kilogram',
'amount': 9,
'input': ('test_db', 'U'),
'type': 'technosphere',
'uncertainty type': 0,
},
],
},
("test_db", "I"): {
'name': 'I',
'unit': 'kilogram',
'location': 'GLO',
'reference product': 'non-water product',
'production amount': 1,
'activity type': 'ordinary transforming activity',
'expected results': {
'strategy': 'skip',
'ratio': None,
'balance': -20
},
'exchanges': [
{
'name': 'non-water product',
'unit': 'kilogram',
'amount': 1.0,
'input': ('test_db', 'I'),
'type': 'production',
'uncertainty type': 0,
},
{
'name': 'Water 1, to water, in kg',
'unit': 'kilogram',
'amount': 1.0,
'input': ('biosphere', 'Water 1, to water, in kg'),
'type': 'biosphere',
'uncertainty type': 2,
'loc': np.log(1.0),
'scale': 0.1
},
{
'name': 'Water 2, to water, in kg',
'unit': 'kilogram',
'amount': 2.0,
'input': ('biosphere', 'Water 2, to water, in kg'),
'type': 'biosphere',
'uncertainty type': 2,
'loc': np.log(2.0),
'scale': 0.1
},
{
'name': 'Water, to air, in kg',
'unit': 'kilogram',
'amount': 4.0,
'input': ('biosphere', 'Water, to air, in kg'),
'type': 'biosphere',
'uncertainty type': 2,
'loc': np.log(4.0),
'scale': 0.1
},
{
'name': 'non-water product',
'unit': 'kilogram',
'amount': 1.0,
'input': ('test_db', 'X'),
'type': 'technosphere',
'uncertainty type': 0,
},
{
'name': 'ww',
'unit': 'kilogram',
'amount': -6.0,
'input': ('test_db', 'L'),
'type': 'technosphere',
'uncertainty type': 2,
'loc': np.log(6.0),
'scale': 0.1,
'negative': True
},
{
'name': 'ww',
'unit': 'kilogram',
'amount': -7.0,
'input': ('test_db', 'N'),
'type': 'technosphere',
'uncertainty type': 0,
},
],
},
("test_db", "J"): {
'name': 'J',
'unit': 'kilogram',
'location': 'GLO',
'reference product': 'non-water product',
'production amount': 1,
'activity type': 'ordinary transforming activity',
'expected results': {
'strategy': 'skip',
'ratio': None,
'balance': 20
},
'exchanges': [
{
'name': 'non-water product',
'unit': 'kilogram',
'amount': 1.0,
'input': ('test_db', 'J'),
'type': 'production',
'uncertainty type': 0,
},
{
'name': 'Water 1, from nature, in kg',
'unit': 'kilogram',
'amount': 1.0,
'input': ('biosphere', 'Water 1, from nature, in kg'),
'type': 'biosphere',
'uncertainty type': 2,
'loc': np.log(1.0),
'scale': 0.1
},
{
'name': 'Water 2, from nature, in kg',
'unit': 'kilogram',
'amount': 2.0,
'input': ('biosphere', 'Water 2, from nature, in kg'),
'type': 'biosphere',
'uncertainty type': 2,
'loc': np.log(2.0),
'scale': 0.1
},
{
'name': 'non-water product',
'unit': 'kilogram',
'amount': 1.0,
'input': ('test_db', 'X'),
'type': 'technosphere',
'uncertainty type': 2,
'loc': np.log(1),
'scale': 0.1,
},
{
'name': 'tap water',
'unit': 'kilogram',
'amount': 8,
'input': ('test_db', 'S'),
'type': 'technosphere',
'uncertainty type': 2,
'loc': np.log(8),
'scale': 0.1,
},
{
'name': 'tap water',
'unit': 'kilogram',
'amount': 9,
'input': ('test_db', 'U'),
'type': 'technosphere',
'uncertainty type': 2,
'loc': np.log(9),
'scale': 0.1,
},
],
},
("test_db", "K"): {
'name': 'K',
'unit': 'kilogram',
'location': 'GLO',
'reference product': 'non-water product',
'production amount': 1,
'activity type': 'ordinary transforming activity',
'expected results': {
'strategy': 'skip',
'ratio': None,
'balance': 0
},
'exchanges': [
{
'name': 'non-water product',
'unit': 'kilogram',
'amount': 1.0,
'input': ('test_db', 'K'),
'type': 'production',
'uncertainty type': 0,
},
{
'name': 'Water 1, from nature, in kg',
'unit': 'kilogram',
'amount': 1.0,
'input': ('biosphere', 'Water 1, from nature, in kg'),
'type': 'biosphere',
'uncertainty type': 0,
},
{
'name': 'Water 2, from nature, in kg',
'unit': 'kilogram',
'amount': 2.0,
'input': ('biosphere', 'Water 2, from nature, in kg'),
'type': 'biosphere',
'uncertainty type': 0,
},
{
'name': 'Water 1, to water, in kg',
'unit': 'kilogram',
'amount': 1.0,
'input': ('biosphere', 'Water 1, to water, in kg'),
'type': 'biosphere',
'uncertainty type': 0,
},
{
'name': 'Water 2, to water, in kg',
'unit': 'kilogram',
'amount': 2.0,
'input': ('biosphere', 'Water 2, to water, in kg'),
'type': 'biosphere',
'uncertainty type': 0,
},
{
'name': 'Water, to air, in kg',
'unit': 'kilogram',
'amount': 4.0,
'input': ('biosphere', 'Water, to air, in kg'),
'type': 'biosphere',
'uncertainty type': 0,
},
{
'name': 'non-water product',
'unit': 'kilogram',
'amount': 1.0,
'input': ('test_db', 'X'),
'type': 'technosphere',
'uncertainty type': 0,
},
{
'name': 'ww',
'unit': 'kilogram',
'amount': -6.0,
'input': ('test_db', 'L'),
'type': 'technosphere',
'uncertainty type': 0,
},
{
'name': 'ww',
'unit': 'kilogram',
'amount': -7.0,
'input': ('test_db', 'N'),
'type': 'technosphere',
'uncertainty type': 0,
},
{
'name': 'tap water',
'unit': 'kilogram',
'amount': 8,
'input': ('test_db', 'S'),
'type': 'technosphere',
'uncertainty type': 0,
},
{
'name': 'tap water',
'unit': 'kilogram',
'amount': 9,
'input': ('test_db', 'U'),
'type': 'technosphere',
'uncertainty type': 0,
},
],
},
("test_db", "L"): {
'name': 'wastewater treatment',
'unit': 'kilogram',
'location': 'GLO',
'reference product': 'ww',
'production amount': -1,
'activity type': 'ordinary transforming activity',
'expected results': {
'strategy': 'default',
'ratio': 1,
'balance': 0
},
'exchanges': [
{
'name': 'ww',
'unit': 'kilogram',
'amount': -1.0,
'input': ('test_db', 'L'),
'type': 'production',
'uncertainty type': 0,
},
{
'name': 'Water 1, to water, in kg',
'unit': 'kilogram',
'amount': 1.0,
'input': ('biosphere', 'Water 1, to water, in kg'),
'type': 'biosphere',
'uncertainty type': 2,
'loc': np.log(1.0),
'scale': 0.1
},
{
'name': 'Water 2, to water, in kg',
'unit': 'kilogram',
'amount': 1.0,
'input': ('biosphere', 'Water 2, to water, in kg'),
'type': 'biosphere',
'uncertainty type': 2,
'loc': np.log(1.0),
'scale': 0.1
},
{
'name': 'tap water',
'unit': 'kilogram',
'amount': 1,
'input': ('test_db', 'S'),
'type': 'technosphere',
'uncertainty type': 2,
'loc': np.log(1),
'scale': 0.1,
},
]
},
("test_db", "M"): {
'name': 'wastewater treatment, in m3',
'unit': 'cubic meter',
'location': 'GLO',
'reference product': 'ww',
'production amount': -1,
'activity type': 'ordinary transforming activity',
'expected results': {
'strategy': 'default',
'ratio': 1,
'balance': 0
},
'exchanges': [
{
'name': 'ww',
'unit': 'cubic meter',
'amount': -1.0,
'input': ('test_db', 'M'),
'type': 'production',
'uncertainty type': 0,
},
{
'name': 'Water 1, to water, in kg',
'unit': 'kilogram',
'amount': 1000.0,
'input': ('biosphere', 'Water 1, to water, in kg'),
'type': 'biosphere',
'uncertainty type': 2,
'loc': np.log(1000.0),
'scale': 0.1
},
{
'name': 'Water, to water, in m3',
'unit': 'cubic meter',
'amount': 1.0,
'input': ('biosphere', 'Water, to water, in m3'),
'type': 'biosphere',
'uncertainty type': 2,
'loc': np.log(1.0),
'scale': 0.1
},
{
'name': 'tap water',
'unit': 'kilogram',
'amount': 1000,
'input': ('test_db', 'S'),
'type': 'technosphere',
'uncertainty type': 2,
'loc': np.log(1000),
'scale': 0.1,
},
]
},
("test_db", "N"): {
'name': 'wastewater treatment, in kg, 2',
'unit': 'kilogram',
'location': 'GLO',
'reference product': 'ww',
'production amount': -1,
'activity type': 'ordinary transforming activity',
'expected results': {
'strategy': 'inverse',
'ratio': 1,
'balance': 0
},
'exchanges': [
{
'name': 'ww',
'unit': 'kilogram',
'amount': -1.0,
'input': ('test_db', 'N'),
'type': 'production',
'uncertainty type': 0,
},
{
'name': 'Water 1, to water, in kg',
'unit': 'kilogram',
'amount': 1.0,
'input': ('biosphere', 'Water 1, to water, in kg'),
'type': 'biosphere',
'uncertainty type': 2,
'loc': np.log(1.0),
'scale': 0.1
},
{
'name': 'Water 2, to water, in kg',
'unit': 'kilogram',
'amount': 1.0,
'input': ('biosphere', 'Water 2, to water, in kg'),
'type': 'biosphere',
'uncertainty type': 2,
'loc': np.log(1.0),
'scale': 0.1
},
{
'name': 'tap water',
'unit': 'kilogram',
'amount': 1,
'input': ('test_db', 'S'),
'type': 'technosphere',
'uncertainty type': 0,
},
]
},
("test_db", "O"): {
'name': 'wastewater treatment, in m3, 2',
'unit': 'cubic meter',
'location': 'GLO',
'reference product': 'ww',
'production amount': -1,
'activity type': 'ordinary transforming activity',
'expected results': {
'strategy': 'inverse',
'ratio': 1,
'balance': 0
},
'exchanges': [
{
'name': 'ww',
'unit': 'cubic meter',
'amount': -1.0,
'input': ('test_db', 'O'),
'type': 'production',
'uncertainty type': 0,
},
{
'name': 'Water 1, to water, in kg',
'unit': 'kilogram',
'amount': 1000.0,
'input': ('biosphere', 'Water 1, to water, in kg'),
'type': 'biosphere',
'uncertainty type': 2,
'loc': np.log(1000.0),
'scale': 0.1
},
{
'name': 'Water, to water, in m3',
'unit': 'cubic meter',
'amount': 1.0,
'input': ('biosphere', 'Water, to water, in m3'),
'type': 'biosphere',
'uncertainty type': 2,
'loc': np.log(1.0),
'scale': 0.1
},
{
'name': 'tap water',
'unit': 'kilogram',
'amount': 1000,
'input': ('test_db', 'S'),
'type': 'technosphere',
'uncertainty type': 0,
},
]
},
("test_db", "P"): {
'name': 'wastewater treatment, in kg, 3',
'unit': 'kilogram',
'location': 'GLO',
'reference product': 'ww',
'production amount': -1,
'activity type': 'ordinary transforming activity',
'expected results': {
'strategy': 'default',
'ratio': 2,
'balance': 1
},
'exchanges': [
{
'name': 'ww',
'unit': 'kilogram',
'amount': -1.0,
'input': ('test_db', 'P'),
'type': 'production',
'uncertainty type': 0,
},
{
'name': 'Water 1, to water, in kg',
'unit': 'kilogram',
'amount': 0.5,
'input': ('biosphere', 'Water 1, to water, in kg'),
'type': 'biosphere',
'uncertainty type': 2,
'loc': np.log(0.5),
'scale': 0.1
},
{
'name': 'Water 2, to water, in kg',
'unit': 'kilogram',
'amount': 0.5,
'input': ('biosphere', 'Water 2, to water, in kg'),
'type': 'biosphere',
'uncertainty type': 2,
'loc': np.log(0.5),
'scale': 0.1
},
{
'name': 'tap water',
'unit': 'kilogram',
'amount': 1,
'input': ('test_db', 'S'),
'type': 'technosphere',
'uncertainty type': 2,
'loc': np.log(1),
'scale': 0.1,
},
]
},
("test_db", "Q"): {
'name': 'wastewater treatment, in kg, 4',
'unit': 'kilogram',
'location': 'GLO',
'reference product': 'ww',
'production amount': -1,
'activity type': 'ordinary transforming activity',
'expected results': {
'strategy': 'inverse',
'ratio': 2,
'balance': 1
},
'exchanges': [
{
'name': 'ww',
'unit': 'kilogram',
'amount': -1.0,
'input': ('test_db', 'Q'),
'type': 'production',
'uncertainty type': 0,
},
{
'name': 'Water 1, to water, in kg',
'unit': 'kilogram',
'amount': 0.5,
'input': ('biosphere', 'Water 1, to water, in kg'),
'type': 'biosphere',
'uncertainty type': 2,
'loc': np.log(0.5),
'scale': 0.1
},
{
'name': 'Water 2, to water, in kg',
'unit': 'kilogram',
'amount': 0.5,
'input': ('biosphere', 'Water 2, to water, in kg'),
'type': 'biosphere',
'uncertainty type': 2,
'loc': np.log(0.5),
'scale': 0.1
},
{
'name': 'tap water',
'unit': 'kilogram',
'amount': 1,
'input': ('test_db', 'S'),
'type': 'technosphere',
'uncertainty type': 0,
},
]
},
("test_db", "R"): {
'name': 'wastewater treatment market, in kg',
'unit': 'kilogram',
'location': 'GLO',
'reference product': 'ww',
'production amount': -1,
'activity type': 'market activity',
'expected results': {
'strategy': 'default',
'ratio': 1,
'balance': 0
},
'exchanges': [
{
'name': 'ww',
'unit': 'kilogram',
'amount': -1.0,
'input': ('test_db', 'R'),
'type': 'production',
'uncertainty type': 0,
},
{
'name': 'Water 1, to water, in kg',
'unit': 'kilogram',
'amount': 1,
'input': ('biosphere', 'Water 1, to water, in kg'),
'type': 'biosphere',
'uncertainty type': 2,
'loc': np.log(1),
'scale': 0.1
},
{
'name': 'ww',
'unit': 'kilogram',
'amount': -0.25,
'input': ('test_db', 'L'),
'type': 'technosphere',
'uncertainty type': 2,
'loc': np.log(0.25),
'scale': 0.1
},
{
'name': 'ww',
'unit': 'kilogram',
'amount': -0.25,
'input': ('test_db', 'N'),
'type': 'technosphere',
'uncertainty type': 2,
'loc': np.log(0.25),
'scale': 0.1
},
{
'name': 'ww',
'unit': 'kilogram',
'amount': -0.25,
'input': ('test_db', 'P'),
'type': 'technosphere',
'uncertainty type': 2,
'loc': np.log(0.25),
'scale': 0.1
},
{
'name': 'ww',
'unit': 'kilogram',
'amount': -0.25,
'input': ('test_db', 'Q'),
'type': 'technosphere',
'uncertainty type': 2,
'loc': np.log(0.25),
'scale': 0.1
},
{
'name': 'tap water',
'unit': 'kilogram',
'amount': 1,
'input': ('test_db', 'S'),
'type': 'technosphere',
'uncertainty type': 2,
'loc': np.log(1),
'scale': 0.1
},
]
},
("test_db", "S"): {
'name': 'tap water production, in kg',
'unit': 'kilogram',
'location': 'GLO',
'reference product': 'tap water',
'production amount': 1,
'activity type': 'ordinary transforming activity',
'expected results': {
'strategy': 'default',
'ratio': 1,
'balance': 0
},
'exchanges': [
{
'name': 'ww',
'unit': 'kilogram',
'amount': 1.0,
'input': ('test_db', 'S'),
'type': 'production',
'uncertainty type': 0,
},
{
'name': 'Water 1, from nature, in kg',
'unit': 'kilogram',
'amount': 1.0,
'input': ('biosphere', 'Water 1, from nature, in kg'),
'type': 'biosphere',
'uncertainty type': 2,
'loc': np.log(1.0),
'scale': 0.1
},
{
'name': 'Water 2, from nature, in kg',
'unit': 'kilogram',
'amount': 1.0,
'input': ('biosphere', 'Water 2, from nature, in kg'),
'type': 'biosphere',
'uncertainty type': 2,
'loc': np.log(1.0),
'scale': 0.1
},
{
'name': 'Water 1, to water, in kg',
'unit': 'kilogram',
'amount': 1.0,
'input': ('biosphere', 'Water 1, to water, in kg'),
'type': 'biosphere',
'uncertainty type': 2,
'loc': np.log(1.0),
'scale': 0.1
},
]
},
("test_db", "T"): {
'name': 'tap water production, in cubic meter',
'unit': 'cubic meter',
'location': 'GLO',
'reference product': 'tap water',
'production amount': 1,
'activity type': 'ordinary transforming activity',
'expected results': {
'strategy': 'default',
'ratio': 1,
'balance': 0
},
'exchanges': [
{
'name': 'ww',
'unit': 'cubic meter',
'amount': 1.0,
'input': ('test_db', 'T'),
'type': 'production',
'uncertainty type': 0,
},
{
'name': 'Water 1, from nature, in kg',
'unit': 'kilogram',
'amount': 1000.0,
'input': ('biosphere', 'Water 1, from nature, in kg'),
'type': 'biosphere',
'uncertainty type': 2,
'loc': np.log(1000.0),
'scale': 0.1
},
{
'name': 'Water, from nature, in m3',
'unit': 'cubic meter',
'amount': 1.0,
'input': ('biosphere', 'Water, from nature, in m3'),
'type': 'biosphere',
'uncertainty type': 2,
'loc': np.log(1.0),
'scale': 0.1
},
{
'name': 'Water 1, to water, in kg',
'unit': 'kilogram',
'amount': 1000.0,
'input': ('biosphere', 'Water 1, to water, in kg'),
'type': 'biosphere',
'uncertainty type': 2,
'loc': np.log(1000.0),
'scale': 0.1
},
]
},
("test_db", "U"): {
'name': 'tap water market',
'unit': 'kilogram',
'location': 'GLO',
'reference product': 'tap water',
'production amount': 1,
'activity type': 'market activity',
'expected results': {
'strategy': '',
'ratio': 1,
'balance': 0
},
'exchanges': [
{
'name': 'ww',
'unit': 'kilogram',
'amount': 1.0,
'input': ('test_db', 'U'),
'type': 'production',
'uncertainty type': 0,
},
{
'name': 'Water 1, to water, in kg',
'unit': 'kilogram',
'amount': 0.1,
'input': ('biosphere', 'Water 1, to water, in kg'),
'type': 'biosphere',
'uncertainty type': 2,
'loc': np.log(0.1),
'scale': 0.1
},
{
'name': 'tap water',
'unit': 'kilogram',
'amount': 1.1,
'input': ('test_db', 'S'),
'type': 'technosphere',
'uncertainty type': 0,
},
]
},
("test_db", "V"): {
'name': 'tap water market',
'unit': 'kilogram',
'location': 'GLO',
'reference product': 'tap water',
'production amount': 1,
'activity type': 'market activity',
'expected results': {
'strategy': 'tap_water_market',
'ratio': 1,
'balance': 0
},
'exchanges': [
{
'name': 'tap water',
'unit': 'kilogram',
'amount': 1.0,
'input': ('test_db', 'V'),
'type': 'production',
'uncertainty type': 0,
},
{
'name': 'Water 1, to water, in kg',
'unit': 'kilogram',
'amount': 0.1,
'input': ('biosphere', 'Water 1, to water, in kg'),
'type': 'biosphere',
'uncertainty type': 2,
'loc': np.log(0.1),
'scale': 0.1
},
{
'name': 'tap water',
'unit': 'kilogram',
'amount': 1.0,
'input': ('test_db', 'S'),
'type': 'technosphere',
'uncertainty type': 0,
},
{
'name': 'tap water',
'unit': 'kilogram',
'amount': 0.1,
'input': ('test_db', 'V'), #self
'type': 'technosphere',
'uncertainty type': 2,
'loc': np.log(0.1),
'scale': 0.1
},
]
},
})
yield {'project': projects.current}
rmtree(projects.dir, ignore_errors=True) | 36.239578 | 74 | 0.307613 | 4,897 | 68,674 | 4.28834 | 0.030427 | 0.095429 | 0.121714 | 0.07781 | 0.958905 | 0.945476 | 0.934952 | 0.928857 | 0.919238 | 0.915476 | 0 | 0.034478 | 0.54683 | 68,674 | 1,895 | 75 | 36.239578 | 0.640307 | 0.000801 | 0 | 0.739777 | 0 | 0 | 0.303103 | 0 | 0 | 0 | 0 | 0 | 0.001593 | 1 | 0.000531 | false | 0 | 0.002655 | 0 | 0.003186 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.